/* ART CAFÈ — Villa Borghese, Roma */
:root {
  --bg: #08080b;
  --bg2: #0e0e14;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f2efe6;
  --muted: #9a96a3;
  --gold: #d4af37;
  --gold-2: #f3dd8a;
  --gold-grad: linear-gradient(120deg, #8a6d1f, #d4af37 35%, #f7e9a8 50%, #d4af37 65%, #8a6d1f);
  --danger: #e5484d;
  --ok: #3dd68c;
  --radius: 18px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100dvh;
  padding-bottom: 90px;
  background-image:
    radial-gradient(1200px 500px at 50% -200px, rgba(212, 175, 55, 0.09), transparent 60%),
    radial-gradient(800px 400px at 90% 20%, rgba(120, 60, 200, 0.05), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(212,175,55,.35); }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 1000px; margin: 0 auto; padding: 0 18px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(255,255,255,.12)); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: #14100a;
  background: var(--gold-grad);
  box-shadow: 0 0 18px rgba(212,175,55,.35), inset 0 1px 1px rgba(255,255,255,.5);
  letter-spacing: .5px;
}
.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--gold-2);
  border: 1px solid rgba(212,175,55,.5); background: rgba(212,175,55,.08);
}
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a { color: var(--muted); font-size: 13.5px; font-weight: 500; letter-spacing: .4px; transition: color .2s; }
.topnav a:hover, .topnav a.active { color: var(--text); }
.topnav a.active { color: var(--gold-2); }
/* i bottoni dentro la topnav non ereditano il grigio dei link */
.topnav a.btn-gold, .topnav a.btn-gold:hover { color: #171204; font-weight: 600; }

/* ---------- bottom nav (mobile) ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #7d7987; font-size: 10.5px; font-weight: 500; letter-spacing: .3px;
  padding: 4px 12px; border-radius: 12px; transition: color .2s;
}
.bottomnav a svg { width: 23px; height: 23px; }
.bottomnav a.active { color: var(--gold-2); }
/* su mobile niente header: navigazione solo dalla tab bar, come un'app nativa */
@media (min-width: 720px) { .bottomnav { display: none; } body { padding-bottom: 40px; } }
@media (max-width: 719px) {
  .topbar { display: none; }
  main.app-main { padding-top: calc(10px + env(safe-area-inset-top)); }
  .back-fab { top: calc(14px + env(safe-area-inset-top)); }
}

.page-title {
  font-family: var(--font-display); font-size: 32px; font-weight: 600;
  letter-spacing: .5px; margin: 10px 0 16px;
}
.home-brand { display: flex; justify-content: center; padding: 16px 0 2px; }
.home-brand img { height: 44px; filter: drop-shadow(0 0 14px rgba(255,255,255,.12)); }
@media (min-width: 720px) { .home-brand { display: none; } }

/* lista impostazioni stile app */
.settings-list {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 18px; overflow: hidden;
}
.set-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; text-align: left;
  background: transparent; border: none; color: var(--text);
  font-family: var(--font-ui); font-size: 15px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.set-row:last-child { border-bottom: none; }
.set-row:hover { background: rgba(255,255,255,.04); }
.set-row:active { background: rgba(255,255,255,.07); }
.set-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; color: var(--gold-2);
  background: rgba(255,255,255,.06);
}
.set-icon svg { width: 19px; height: 19px; }
.set-info { flex: 1; min-width: 0; }
.set-info .t { font-weight: 600; font-size: 14.5px; }
.set-info .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.set-arrow { color: #5d5966; font-size: 22px; line-height: 1; }

/* stato vuoto */
.empty-state { text-align: center; padding: 44px 20px; }
.empty-icon {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 24px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25);
}
.empty-icon svg { width: 36px; height: 36px; }
.empty-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 4px; }

/* ---------- home stile app ---------- */
.app-main { padding-top: 16px; }
.feed-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin: 20px 2px 10px;
}
.featured-card {
  position: relative; display: flex; align-items: flex-end;
  min-height: 340px; border-radius: 22px; overflow: hidden;
  border: none;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  transition: transform .25s ease;
}
.featured-card:active { transform: scale(.985); }
.featured-overlay {
  width: 100%; padding: 20px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(6,5,10,.55) 35%, rgba(6,5,10,.92));
}
.featured-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fc-chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 11px; border-radius: 20px;
  background: rgba(212,175,55,.92); color: #171204;
}
.fc-chip.fc-ok { background: rgba(61,214,140,.9); color: #062b18; }
.fc-chip.fc-no { background: rgba(229,72,77,.9); color: #fff; }
.featured-title {
  font-family: var(--font-display); font-size: clamp(30px, 8vw, 42px);
  font-weight: 600; line-height: 1.03; text-shadow: 0 2px 20px rgba(0,0,0,.7);
}
.featured-sub { color: #cfcbd6; font-size: 13px; margin-top: 4px; }
.featured-cta { margin-top: 14px; }

.ev-list { display: flex; flex-direction: column; gap: 10px; }
.ev-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 18px; padding: 10px;
  transition: border-color .2s, background .2s, transform .15s ease;
}
.ev-row:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.ev-row:active { transform: scale(.985); }
.ev-thumb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.05; overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,.12);
}
.ev-thumb .d { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.9); position: relative; z-index: 2; }
.ev-thumb .m { font-size: 9px; letter-spacing: 2px; font-weight: 700; color: var(--gold-2); text-shadow: 0 1px 6px rgba(0,0,0,.9); position: relative; z-index: 2; }
.ev-thumb::before { content: ''; position: absolute; inset: 0; background: rgba(6,5,10,.35); }
.ev-row-info { flex: 1; min-width: 0; }
.ev-row-info .t { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-row-info .s { font-size: 12.5px; color: var(--text); opacity: .8; margin-top: 2px; }
.ev-row-info .g { font-size: 11.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-row-arrow { color: var(--gold); font-size: 26px; padding-right: 8px; }

/* ---------- event cards ---------- */
.eventi-grid { display: grid; gap: 18px; padding-bottom: 30px; }
.ev-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--bg2);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: block;
}
.ev-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.ev-cover {
  height: 195px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px;
  transition: background-position .6s ease;
}
.ev-card:hover .ev-cover { background-position: center 28%; }
.ev-cover::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; pointer-events: none;
}
/* copertine fotografiche per tema (scrim scuro sopra la foto) */
.tema-oro, .tema-viola, .tema-rosso, .tema-blu, .tema-verde {
  background-size: cover !important;
  background-position: center 35%;
  background-color: #0a0910;
}
.tema-oro   { background-image: linear-gradient(180deg, rgba(6,5,10,.25) 15%, rgba(6,5,10,.82) 92%), url('/img/covers/oro.jpg'); }
.tema-viola { background-image: linear-gradient(180deg, rgba(6,5,10,.25) 15%, rgba(6,5,10,.82) 92%), url('/img/covers/viola.jpg'); }
.tema-rosso { background-image: linear-gradient(180deg, rgba(6,5,10,.25) 15%, rgba(6,5,10,.82) 92%), url('/img/covers/rosso.jpg'); }
.tema-blu   { background-image: linear-gradient(180deg, rgba(6,5,10,.25) 15%, rgba(6,5,10,.82) 92%), url('/img/covers/blu.jpg'); }
.tema-verde { background-image: linear-gradient(180deg, rgba(6,5,10,.25) 15%, rgba(6,5,10,.82) 92%), url('/img/covers/verde.jpg'); }

.ev-cover .ev-title {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.ev-date-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(8,8,11,.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 7px 12px; text-align: center; line-height: 1.1;
}
.ev-date-badge .d { font-size: 20px; font-weight: 700; font-family: var(--font-display); color: var(--gold-2); }
.ev-date-badge .m { font-size: 9.5px; letter-spacing: 2px; color: var(--muted); font-weight: 600; }
.ev-soldout-badge, .ev-mia-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 10px; border-radius: 20px;
}
.ev-soldout-badge { background: rgba(229,72,77,.18); color: #ff8f93; border: 1px solid rgba(229,72,77,.4); }
.ev-mia-badge { background: rgba(61,214,140,.15); color: var(--ok); border: 1px solid rgba(61,214,140,.4); }
.ev-body { padding: 14px 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ev-meta { font-size: 12.5px; color: var(--muted); }
.ev-meta b { color: var(--text); font-weight: 600; }
.ev-body .arrow { color: var(--gold); font-size: 20px; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--panel-border); border-radius: 14px;
  background: var(--panel); color: var(--text);
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 600; letter-spacing: .3px;
  padding: 13px 22px; cursor: pointer; transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:not(.btn-gold):hover { background: rgba(255,255,255,.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold {
  background: var(--gold-grad); background-size: 200% 100%;
  color: #171204; border: none;
  box-shadow: 0 6px 24px rgba(212,175,55,.28);
  position: relative; overflow: hidden;
}
.btn-gold::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: btnShine 3.5s ease-in-out infinite;
}
@keyframes btnShine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 8px 30px rgba(212,175,55,.45); filter: brightness(1.06); }
.btn-danger { color: #ff8f93; border-color: rgba(229,72,77,.35); background: rgba(229,72,77,.08); }
.btn-danger:hover { background: rgba(229,72,77,.15); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 11px; }

/* ---------- panels & forms ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 22px;
  backdrop-filter: blur(10px);
}
.section-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  margin: 28px 0 14px; letter-spacing: .5px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: rgba(255,255,255,.05); border: 1px solid var(--panel-border);
  border-radius: 12px; color: var(--text); font-family: var(--font-ui); font-size: 15px;
  outline: none; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(212,175,55,.55); background: rgba(255,255,255,.07);
}
.field input::placeholder, .field textarea::placeholder { color: #5d5966; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold); flex-shrink: 0; }

/* ---------- tabs ---------- */
.tabs { display: flex; background: rgba(255,255,255,.05); border-radius: 14px; padding: 4px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 11px; border: none; border-radius: 11px; cursor: pointer;
  background: transparent; color: var(--muted); font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.tabs button.active { background: var(--gold-grad); color: #171204; }

/* ---------- evento dettaglio ---------- */
.ev-hero { position: relative; min-height: 265px; display: flex; align-items: flex-end; overflow: hidden; }
.back-fab {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; line-height: 1; padding-bottom: 3px;
  background: rgba(8,8,11,.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.ev-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg) 98%); z-index: 1; }
.ev-hero-inner { position: relative; z-index: 2; padding: 30px 18px 8px; width: 100%; }
.ev-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 8vw, 56px); font-weight: 600; line-height: 1.02; }
.ev-hero .tagline { color: var(--gold-2); font-style: italic; font-family: var(--font-display); font-size: 19px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  padding: 7px 13px; border-radius: 20px;
  background: rgba(255,255,255,.06); border: 1px solid var(--panel-border); color: var(--muted);
}
.chip b { color: var(--gold-2); font-weight: 600; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.info-cell { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 14px; }
.info-cell .k { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-cell .v { font-size: 15px; font-weight: 600; margin-top: 4px; }

/* stepper */
.stepper { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.05); border: 1px solid var(--panel-border); border-radius: 14px; padding: 8px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 11px; border: none; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--text); font-size: 22px; font-weight: 300;
  transition: background .2s;
}
.stepper button:hover { background: rgba(212,175,55,.25); }
.stepper .num { font-size: 22px; font-weight: 700; font-family: var(--font-display); }
.stepper .num small { display: block; font-family: var(--font-ui); font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 1px; text-align: center; }

.garanzia-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.25);
  border-radius: 14px; padding: 14px; font-size: 13px; color: #d8cfae; margin: 16px 0;
}
.garanzia-note svg { width: 20px; height: 20px; flex-shrink: 0; fill: var(--gold); margin-top: 1px; }

/* ---------- tessera virtuale ---------- */
.member-card-scene { perspective: 1100px; margin: 10px 0 26px; touch-action: pan-y; }
.member-card {
  position: relative; border-radius: 22px; aspect-ratio: 1.586;
  max-width: 460px; margin: 0 auto;
  background:
    radial-gradient(120% 200% at 85% -20%, rgba(212,175,55,.14), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.02) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-65deg, rgba(255,255,255,.014) 0 1px, transparent 1px 7px),
    radial-gradient(140% 170% at 12% 8%, #272013 0%, #161209 48%, #0b0a08 82%);
  border: 1px solid rgba(212,175,55,.45);
  box-shadow:
    0 24px 60px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 1px rgba(0,0,0,.7),
    inset 1px 0 0 rgba(255,255,255,.04);
  padding: 20px 22px; overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.mc-watermark {
  position: absolute; right: -10%; bottom: -18%; height: 105%; width: auto;
  opacity: .05; transform: rotate(-9deg); pointer-events: none; z-index: 1;
}
/* lamina olografica: si muove col dito/mouse, niente animazioni in loop */
.member-card .holo {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  mix-blend-mode: color-dodge; opacity: .45;
  background: linear-gradient(105deg,
    transparent 18%, rgba(255,120,210,.14) 34%, rgba(120,210,255,.17) 45%,
    rgba(255,230,140,.20) 54%, rgba(140,255,200,.13) 65%, transparent 82%);
  background-size: 240% 240%;
  background-position: var(--mx, 55%) var(--my, 35%);
}
.member-card .shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(320px 210px at var(--mx, 70%) var(--my, 20%), rgba(255,255,255,.13), transparent 60%);
}
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.mc-logo { font-family: var(--font-display); font-size: 21px; letter-spacing: 3px; font-weight: 600; }
.mc-logo em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-logo-img { height: 44px; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(255,255,255,.15)); }
.mc-sub { font-size: 8.5px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.mc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px;
  padding: 6px 11px; border-radius: 20px;
}
.mc-badge.ok { color: #1d1607; background: var(--gold-grad); box-shadow: 0 2px 12px rgba(212,175,55,.4); }
.mc-badge.no { color: #a8a3b1; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.32); }
.mc-badge svg { width: 11px; height: 11px; fill: currentColor; }
.mc-chip-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; position: relative; z-index: 3; }
.mc-chip {
  width: 42px; height: 31px; border-radius: 7px; position: relative;
  background: linear-gradient(135deg, #f2df9d, #c9a437 45%, #8f7222);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.5);
}
.mc-chip::before {
  content: ''; position: absolute; inset: 5px 7px;
  border: 1px solid rgba(80,62,14,.6); border-radius: 4px;
}
.mc-chip::after {
  content: ''; position: absolute; top: 5px; bottom: 5px; left: 50%; width: 1px;
  background: rgba(80,62,14,.6);
  box-shadow: -8px 0 0 rgba(80,62,14,.45), 8px 0 0 rgba(80,62,14,.45);
}
.mc-nfc { width: 20px; height: 20px; color: rgba(242,239,230,.5); }
.mc-name {
  position: relative; z-index: 3; margin-top: 14px;
  font-size: 16.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: #ece7da;
  text-shadow: 0 1px 0 rgba(255,255,255,.10), 0 -1px 1px rgba(0,0,0,.85);
}
.mc-bottom { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.mc-code {
  font-size: 12.5px; letter-spacing: 3px; color: var(--gold-2); font-weight: 600;
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.mc-since { font-size: 9px; color: #8d8896; letter-spacing: 1.8px; text-transform: uppercase; margin-top: 3px; }
.mc-paycard { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-align: right; }
.mc-paycard b { color: var(--text); }
/* tier tessera: MEMBER grafite/argento → GOLD oro caldo → BLACK platino */
.member-card.tier-member {
  border-color: rgba(190, 190, 205, .35);
  background:
    radial-gradient(120% 200% at 85% -20%, rgba(200,200,215,.12), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.02) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-65deg, rgba(255,255,255,.014) 0 1px, transparent 1px 7px),
    radial-gradient(140% 170% at 12% 8%, #24242b 0%, #141418 48%, #0a0a0d 82%);
}
.member-card.tier-member .mc-sub { color: #b9b5c2; }
.member-card.tier-member .mc-code { color: #d5d2dc; }
.member-card.tier-gold {
  box-shadow:
    0 24px 60px rgba(0,0,0,.65), 0 0 34px rgba(212,175,55,.14),
    inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 1px rgba(0,0,0,.7);
}
.member-card.tier-gold .mc-sub { color: var(--gold-2); }
.member-card.tier-black {
  border-color: rgba(235, 235, 245, .45);
  background:
    radial-gradient(120% 200% at 85% -20%, rgba(220,220,235,.10), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-65deg, rgba(255,255,255,.015) 0 1px, transparent 1px 7px),
    radial-gradient(140% 170% at 12% 8%, #17171c 0%, #0b0b0e 48%, #050507 82%);
  box-shadow:
    0 24px 60px rgba(0,0,0,.8), 0 0 38px rgba(190,190,220,.12),
    inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 1px rgba(0,0,0,.8);
}
.member-card.tier-black .mc-sub { color: #d8d8e2; letter-spacing: 3.5px; }
.member-card.tier-black .mc-code { color: #e8e8f0; }
.member-card.tier-black .mc-chip { background: linear-gradient(135deg, #eef, #a9a9b4 45%, #6e6e78); }
.member-card.tier-black .mc-chip::before, .member-card.tier-black .mc-chip::after { border-color: rgba(55,55,66,.65); background-color: rgba(55,55,66,.65); }

.chip-active { border-color: rgba(212,175,55,.6); color: var(--gold-2); background: rgba(212,175,55,.1); }

@media (max-width: 480px) {
  .member-card { padding: 15px 17px; }
  .mc-chip-row { margin-top: 9px; }
  .mc-chip { width: 36px; height: 27px; }
  .mc-name { margin-top: 10px; font-size: 14.5px; }
  .mc-logo-img { height: 36px; }
  .mc-bottom { margin-top: 7px; }
  .mc-code { font-size: 11px; }
}

/* ---------- prenotazione / QR ----------
   Biglietto d'ingresso: card bianca (il bianco serve al contrasto del QR),
   filo oro in testa, strappo perforato con tacche laterali. Le immagini hanno
   regole separate: il logo deve mantenere le sue proporzioni, il QR no. */
.qr-sheet {
  position: relative; background: #fff; color: #0b0b0f;
  border-radius: 22px; max-width: 360px; margin: 0 auto; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
}
.qr-sheet::before {
  content: ''; display: block; height: 4px; background: var(--gold-grad);
}
.qrt-head { padding: 20px 22px 0; text-align: center; }
.qrt-logo { display: block; width: auto; height: 44px; margin: 0 auto; }
.qrt-ev { margin-top: 12px; }
.qrt-ev .t {
  font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15;
}
.qrt-ev .s {
  font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: #8a8794; margin-top: 5px;
}
.qrt-qr { padding: 16px 22px 18px; }
.qrt-qr img {
  display: block; width: 100%; max-width: 236px; margin: 0 auto; border-radius: 6px;
}
/* linea di strappo con le due tacche sui bordi della card */
.qrt-perf { position: relative; height: 1px; margin: 0 22px; border-top: 2px dashed rgba(11,11,15,.14); }
.qrt-perf::before, .qrt-perf::after {
  content: ''; position: absolute; top: -13px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--bg);
}
.qrt-perf::before { left: -35px; }
.qrt-perf::after { right: -35px; }
.qrt-foot { padding: 18px 22px 20px; text-align: center; }
.qrt-code {
  display: inline-block; font-size: 16px; font-weight: 800; letter-spacing: 4px;
  font-variant-numeric: tabular-nums; padding: 7px 16px; border-radius: 10px;
  background: rgba(212,175,55,.14); color: #6b5313;
}
.qrt-meta { font-size: 12px; color: #6b6874; margin-top: 8px; line-height: 1.5; }
.qrt-meta b { color: #0b0b0f; font-weight: 700; }
.booking-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
  transition: border-color .2s;
}
.booking-row:hover { border-color: rgba(255,255,255,.22); }
.booking-date {
  flex-shrink: 0; width: 52px; text-align: center; line-height: 1.1;
  background: rgba(255,255,255,.05); border: 1px solid var(--panel-border); border-radius: 12px; padding: 8px 4px;
  position: relative; overflow: hidden;
}
.booking-date .d { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gold-2); position: relative; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.booking-date .m { font-size: 9px; letter-spacing: 1.5px; color: #d8d4de; font-weight: 700; position: relative; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.booking-info { flex: 1; min-width: 0; }
.booking-info .t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-info .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stato-pill { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 5px 10px; border-radius: 20px; flex-shrink: 0; }
.stato-confermata { background: rgba(61,214,140,.13); color: var(--ok); }
.stato-annullata { background: rgba(229,72,77,.13); color: #ff8f93; }
.stato-entrata { background: rgba(212,175,55,.15); color: var(--gold-2); }
.stato-richiesta { background: rgba(212,175,55,.13); color: var(--gold-2); border: 1px dashed rgba(212,175,55,.5); }
.stato-rifiutata { background: rgba(229,72,77,.13); color: #ff8f93; }
.stato-no_show { background: rgba(229,72,77,.1); color: #d8898d; }

.success-anim { text-align: center; padding: 26px 0 8px; }
.success-anim .ring {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-grad);
  box-shadow: 0 0 0 0 rgba(212,175,55,.5);
  animation: pulseGold 1.6s ease-out infinite;
}
.success-anim .ring svg { width: 34px; height: 34px; stroke: #171204; stroke-width: 3; fill: none; }
@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(212,175,55,.45); } 70% { box-shadow: 0 0 0 22px rgba(212,175,55,0); } 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); } }

/* ---------- admin ---------- */
table.admin { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.admin th { text-align: left; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--panel-border); }
table.admin td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
table.admin tr:hover td { background: rgba(255,255,255,.025); }
.table-scroll { overflow-x: auto; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel); }

/* ---------- scanner ---------- */
.scan-frame {
  position: relative; border-radius: 22px; overflow: hidden; background: #000;
  aspect-ratio: 1; max-width: 420px; margin: 0 auto;
  border: 1px solid var(--panel-border);
}
.scan-frame video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame .reticle {
  position: absolute; inset: 15%; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(0,0,0,.45);
}
.scan-frame .reticle::before { content: ''; position: absolute; inset: 0; border: 2px solid rgba(212,175,55,.9); border-radius: 18px; }
.scan-result { border-radius: 18px; padding: 20px; text-align: center; margin-top: 16px; }
.scan-ok { background: rgba(61,214,140,.12); border: 1px solid rgba(61,214,140,.5); }
.scan-bad { background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.5); }
.scan-warn { background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.5); }
.scan-result .big { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.scan-result .who { font-size: 17px; margin-top: 6px; }
.scan-result .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- tavoli VIP / piantina ---------- */
/* colori fascia di spesa (gli stessi della piantina ufficiale) */
.f-arancio { --fc: #e0862f; --fct: #fff; }
.f-giallo  { --fc: #d3c02e; --fct: #2e2a08; }
.f-magenta { --fc: #c95fc9; --fct: #fff; }
.f-verde   { --fc: #6fbf49; --fct: #10300a; }
.f-nero    { --fc: #494952; --fct: #fff; }
.f-premium { --fc: #33333c; --fct: #fff; }
.f-rosso   { --fc: #d13c3c; --fct: #fff; }

.fasce-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.fascia-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 12px var(--font-ui); letter-spacing: .4px;
  padding: 7px 12px; border-radius: 20px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--panel-border); color: var(--muted);
  transition: all .2s;
}
.fascia-pill .dot, .fascia-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--fc, #999); flex-shrink: 0; vertical-align: baseline;
}
.fascia-pill.f-premium .dot, .fascia-dot.f-premium { box-shadow: 0 0 6px rgba(230,60,60,.9); }
.fascia-pill:hover { border-color: rgba(212,175,55,.4); color: var(--text); }
.fascia-pill.on { border-color: var(--fc); color: var(--text); background: rgba(255,255,255,.09); }

.mappa-shell { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); overflow: hidden; }
.mappa-tools { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; gap: 10px; }
.vista-switch { display: flex; background: rgba(255,255,255,.06); border-radius: 12px; padding: 3px; }
.vista-btn {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 12.5px var(--font-ui); letter-spacing: .4px;
  padding: 8px 14px; border-radius: 9px; transition: all .2s;
}
.vista-btn.on { background: var(--gold-grad); color: #171204; }
.zoom-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--panel-border);
  background: rgba(255,255,255,.06); color: var(--text); font-size: 19px; cursor: pointer;
}
.zoom-btn:hover { background: rgba(212,175,55,.2); }
.mappa-scroll {
  overflow: auto; background: #fff; max-height: 74vh;
  overscroll-behavior: contain; cursor: grab; -webkit-overflow-scrolling: touch;
}
.mappa-3d { position: relative; height: min(74vh, 620px); background: #0b0b11; touch-action: none; }
.mappa-3d canvas { display: block; }
.mappa-3d-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 5; pointer-events: none; white-space: nowrap;
  font-size: 11.5px; color: #cfcbd6; letter-spacing: .3px;
  background: rgba(10,10,16,.72); border: 1px solid rgba(255,255,255,.14);
  padding: 7px 14px; border-radius: 20px; backdrop-filter: blur(8px);
}
@media (max-width: 719px) { .mappa-3d { height: min(64vh, 520px); } }
.mappa-scroll:active { cursor: grabbing; }
.mappa { position: relative; width: 1000px; max-width: none; }
.mappa img { display: block; width: 100%; user-select: none; pointer-events: none; }
.tav {
  position: absolute; transform: translate(-50%, -50%);
  min-width: 30px; height: 30px; padding: 0 5px; border-radius: 16px;
  display: grid; place-items: center;
  font: 700 10.5px/1 var(--font-ui); letter-spacing: .3px;
  background: var(--fc); color: var(--fct);
  border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: transform .15s ease, opacity .2s;
}
.tav.f-premium { box-shadow: 0 0 0 2px rgba(224,58,58,.85), 0 0 10px rgba(224,58,58,.55); }
.tav:not(.occ):hover { transform: translate(-50%, -50%) scale(1.25); z-index: 5; }
.tav.occ {
  background: #c9c6d1; color: #8b8794; border-color: #e8e6ee;
  box-shadow: none; cursor: not-allowed; text-decoration: line-through;
}
.tav.dim { opacity: .18; }

.tav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tav-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px;
  padding: 12px 14px; text-align: left; color: var(--text); cursor: pointer;
  font-family: var(--font-ui); transition: border-color .2s, background .2s;
}
.tav-card:not(.occ):hover { border-color: rgba(212,175,55,.45); background: rgba(255,255,255,.06); }
.tav-card .cod { font-weight: 700; font-size: 15px; letter-spacing: 1px; display: flex; align-items: center; gap: 7px; }
.tav-card .ok { color: var(--ok); }
.tav-card .no { color: #ff8f93; }
.tav-card.occ { opacity: .45; cursor: not-allowed; }

/* chip tavoli in admin */
.tav-admin-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tav-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px; border-radius: 10px;
  border: 1px solid var(--panel-border); background: rgba(255,255,255,.05);
  color: var(--text); font: 600 12.5px var(--font-ui); letter-spacing: .5px; cursor: pointer;
  transition: border-color .2s;
}
.tav-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fc, #999); }
.tav-chip.st-libero:hover { border-color: rgba(212,175,55,.55); }
.tav-chip.st-occupato { border-color: rgba(229,72,77,.5); color: #ff8f93; }
.tav-chip.st-bloccato { opacity: .5; }
.tav-chip.st-bloccato .cod-txt { text-decoration: line-through; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px);
  background: #1c1b22; color: var(--text); border: 1px solid var(--panel-border);
  padding: 13px 22px; border-radius: 14px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 200;
  max-width: 90vw; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: rgba(229,72,77,.5); }

/* ---------- modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: none; align-items: flex-end; justify-content: center; z-index: 100; padding: 0;
}
.modal-bg.open { display: flex; }
.modal {
  background: #131218; border: 1px solid var(--panel-border);
  border-radius: 24px 24px 0 0; padding: 24px; width: 100%; max-width: 560px;
  max-height: 88dvh; overflow-y: auto;
  animation: slideUp .3s ease;
}
@media (min-width: 720px) {
  .modal-bg { align-items: center; padding: 20px; }
  .modal { border-radius: 24px; }
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* reveal allo scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .marquee-inner, .btn-gold::after, .member-card .holo { animation: none !important; }
}

/* ---------- dashboard admin ---------- */
svg.ic { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; }
.chip .ic { width: 14px; height: 14px; margin-right: 3px; }
.btn .ic { width: 15px; height: 15px; }

/* card admin con testata */
.card-a {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--panel-border); border-radius: 18px;
  padding: 18px; margin-bottom: 16px;
}
.card-a.oro { border-color: rgba(212,175,55,.4); background: linear-gradient(180deg, rgba(212,175,55,.08), rgba(255,255,255,.015)); }
.ca-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.ca-ico {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(212,175,55,.13); color: var(--gold-2);
}
.ca-ico .ic { width: 18px; height: 18px; }
.ca-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: -0.2px; }
.ca-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.ca-spacer { flex: 1; }

/* kpi */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  display: flex; gap: 13px; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--panel-border); border-radius: 16px; padding: 14px 16px;
}
.kpi .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.kpi .ico .ic { width: 19px; height: 19px; }
.kpi.oro .ico { background: rgba(212,175,55,.14); color: var(--gold-2); }
.kpi.verde .ico { background: rgba(61,214,140,.13); color: var(--ok); }
.kpi.blu .ico { background: rgba(96,150,255,.14); color: #9dbcff; }
.kpi.viola .ico { background: rgba(168,110,255,.14); color: #c9a6ff; }
.kpi b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1.05; }
.kpi .lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }

/* avatar con iniziali */
.avv {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: .5px;
  background: var(--gold-grad); color: #171204;
}

/* riga richiesta tavolo */
.req-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--gold);
  border-radius: 14px; margin-bottom: 10px;
  background: rgba(255,255,255,.025);
}
.req-info { flex: 1; min-width: 220px; }
.req-info .t { font-weight: 700; font-size: 14.5px; }
.req-info .t b { color: var(--gold-2); }
.req-info .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.req-info .s a { color: var(--gold-2); }

/* barra capienza in tabella */
.mini-cap { min-width: 86px; }
.mini-cap .n { font-size: 12px; color: var(--text); margin-bottom: 4px; white-space: nowrap; }
.mini-track { width: 100%; max-width: 90px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.mini-fill { height: 100%; border-radius: 99px; background: var(--gold-grad); }

/* bottoni icona compatti */
.btn-ic {
  width: 33px; height: 33px; padding: 0; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--panel-border);
  background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; transition: all .2s;
}
.btn-ic:hover { color: var(--text); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.btn-ic .ic { width: 15px; height: 15px; }

/* campo ricerca dashboard */
.dash-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.dash-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.dash-search input {
  width: 100%; padding: 11px 16px 11px 38px;
  background: rgba(255,255,255,.05); border: 1px solid var(--panel-border);
  border-radius: 999px; color: var(--text); font-family: var(--font-ui); font-size: 13.5px;
  outline: none; transition: border-color .2s;
}
.dash-search input:focus { border-color: rgba(212,175,55,.5); }

/* stato serata a pallino */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--ok); box-shadow: 0 0 6px rgba(61,214,140,.7); }
.dot.off { background: #ff8f93; }
.dot.chiusa { background: #6a6675; }
.dot.live { background: var(--gold); box-shadow: 0 0 8px rgba(212,175,55,.9); animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 50% { opacity: .45; } }

.empty-mini { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; padding: 6px 0; }
.empty-mini .ic { width: 17px; height: 17px; opacity: .7; }

.nav-badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px;
  padding: 0 5px; margin-left: 5px; border-radius: 999px;
  background: var(--gold); color: #171204; font-size: 11px; font-weight: 800;
}
.fill-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.fill-bar {
  height: 100%; border-radius: 999px; background: var(--gold-grad);
  transition: width .6s ease; box-shadow: 0 0 12px rgba(212,175,55,.4);
}
.bars { display: flex; gap: 12px; align-items: flex-end; height: 160px; padding-top: 18px; overflow-x: auto; }
.bar-col { flex: 1; min-width: 52px; display: flex; flex-direction: column; height: 100%; }
.bar-pair { flex: 1; display: flex; gap: 4px; align-items: flex-end; justify-content: center; }
.bar { width: 20px; min-height: 3px; border-radius: 5px 5px 0 0; position: relative; }
.bar span {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--muted); font-weight: 600;
}
.bar.b-pren { background: rgba(212,175,55,.75); }
.bar.b-entr { background: rgba(61,214,140,.75); }
.bar-label { text-align: center; font-size: 10px; color: var(--muted); letter-spacing: .5px; margin-top: 6px; white-space: nowrap; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.footer-note { text-align: center; color: #55515e; font-size: 11.5px; padding: 34px 20px 10px; letter-spacing: .5px; }

/* ---------- scheda tavolo compatta (3D): non copre la scena ---------- */
.tav-sheet {
  position: fixed; z-index: 95; right: 16px; bottom: 16px;
  width: min(410px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(31,28,41,.96), rgba(16,15,23,.97));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  padding: 17px 16px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.7);
  transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none;
  transition: transform .32s cubic-bezier(.2,.8,.3,1), opacity .32s;
  overflow: hidden;
}
.tav-sheet::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--fc, var(--gold)) 18%, var(--fc, var(--gold)) 82%, transparent);
}
.tav-sheet.open { transform: none; opacity: 1; pointer-events: auto; }
.ts-head { display: flex; align-items: center; gap: 11px; }
.ts-dot {
  flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--fc, var(--gold)); box-shadow: 0 0 14px var(--fc, var(--gold));
}
.ts-title { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-zona { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-price { text-align: right; flex-shrink: 0; }
.ts-price .k { font-size: 8.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ts-price .v { font-size: 16.5px; font-weight: 700; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.sheet-x {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--panel-border); background: rgba(255,255,255,.06);
  color: var(--muted); cursor: pointer; font-size: 13px; transition: all .2s;
}
.sheet-x:hover { color: var(--text); background: rgba(255,255,255,.1); }
.ts-field label {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted); margin: 0 2px 5px;
}
.sheet-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 9px; margin-top: 15px; }
.sheet-grid .stepper { padding: 3px; height: 44px; border-radius: 12px; }
.sheet-grid .stepper button { width: 36px; height: 36px; font-size: 18px; border-radius: 9px; }
.sheet-grid .stepper .num { font-size: 18px; }
.ts-field input, .sheet-note {
  width: 100%; height: 44px; padding: 10px 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--panel-border);
  border-radius: 12px; color: var(--text); font-family: var(--font-ui); font-size: 14.5px; outline: none;
  transition: border-color .2s;
}
.ts-field input:focus, .sheet-note:focus { border-color: rgba(212,175,55,.55); }
.ts-garanzia {
  display: flex; gap: 9px; align-items: center;
  background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.22);
  border-radius: 12px; padding: 9px 12px; margin: 13px 0;
  font-size: 11.5px; color: #cfc7ad; line-height: 1.4;
}
.ts-garanzia svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; }
.ts-garanzia b { color: var(--gold-2); font-weight: 600; }
@media (max-width: 719px) {
  .tav-sheet { left: 10px; right: 10px; width: auto; bottom: calc(74px + env(safe-area-inset-bottom)); padding: 13px 14px 12px; }
  .ts-title { font-size: 20px; }
}

/* ---------- mappa a schermo intero ---------- */
.mappa-shell.fs { position: fixed; inset: 0; z-index: 80; border-radius: 0; border: none; background: #100e17; }
.mappa-shell.fs .mappa-3d { height: calc(100dvh - 56px); }
.mappa-shell.fs .mappa-scroll { max-height: none; height: calc(100dvh - 56px); }
body.no-scroll { overflow: hidden; }

/* sfondo scena: prugna notturno, non nero pieno */
.mappa-3d { background: radial-gradient(120% 130% at 50% 12%, #3b2f58 0%, #241d38 48%, #0d0b14 100%); }

/* header della pagina tavoli: niente foto (si sgranava), gradiente in
   continuità con la scena 3D e titolo in lamina oro */
.tav-hero {
  position: relative; padding: 60px 0 24px;
  background: radial-gradient(95% 150% at 50% -30%, #3b2f58 0%, #1d1730 55%, #0c0a12 100%);
}
.tav-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 6%, rgba(212,175,55,.85), transparent 94%);
}
.tav-hero-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: 3.6px;
  color: var(--gold-2); opacity: .8; margin-bottom: 7px;
}
.tav-hero h1 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 6vw, 54px); line-height: 1; letter-spacing: .5px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 22px rgba(212,175,55,.3));
}
.tav-hero-sub { color: #b9b3c6; font-size: 13.5px; margin-top: 9px; letter-spacing: .4px; }
@media (max-width: 719px) { .tav-hero { padding: calc(56px + env(safe-area-inset-top)) 0 20px; } }
.mappa-3d-loading {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #cfcbd6; font-size: 12.5px; letter-spacing: .4px;
  background: radial-gradient(120% 130% at 50% 12%, #2b2242 0%, #1b1529 48%, #0d0b14 100%);
  transition: opacity .55s ease;
}
.mappa-3d-loading.via { opacity: 0; pointer-events: none; }
.load-brand {
  position: relative; width: min(44vw, 190px); aspect-ratio: 1;
  animation: brandGlow 2.6s ease-in-out infinite;
}
.load-brand-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.load-brand-shine {
  /* lamina dorata che scorre DENTRO la sagoma esatta del logo */
  position: absolute; inset: 0;
  -webkit-mask-image: url('/img/logo-white.png'); mask-image: url('/img/logo-white.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background: linear-gradient(115deg,
    transparent 40%, rgba(255,233,168,.95) 49%, rgba(212,175,55,.95) 54%, transparent 63%);
  background-size: 320% 100%;
  animation: brandSweep 2.6s ease-in-out infinite;
}
@keyframes brandSweep { 0%, 18% { background-position: 130% 0; } 70%, 100% { background-position: -60% 0; } }
@keyframes brandGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(212,175,55,.2)); }
  50% { filter: drop-shadow(0 0 34px rgba(212,175,55,.45)); }
}
.load-txt { opacity: .75; animation: loadPulse 1.6s ease-in-out infinite; }
@keyframes loadPulse { 50% { opacity: .35; } }

/* ---------- popup regolamento (accettazione a ogni prenotazione) ---------- */
.reg-modal { padding: 0; display: flex; flex-direction: column; overflow: hidden; height: min(640px, 88dvh); }
.reg-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--panel-border); flex-shrink: 0;
}
.reg-title { font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.reg-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.reg-body p { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.reg-body h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold-2); margin: 18px 0 8px;
}
.reg-body ul { margin: 0 0 10px; padding-left: 18px; }
.reg-body li { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }
.reg-foot {
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--panel-border); flex-shrink: 0;
}
.reg-foot #reg-hint { text-align: center; margin-bottom: 8px; }
#reg-accetta:disabled { filter: grayscale(1) brightness(.75); opacity: .5; cursor: not-allowed; }

/* data di nascita in registrazione: giorno / mese / anno */
.nascita-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.nascita-row input::-webkit-outer-spin-button,
.nascita-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nascita-row input[type=number] { -moz-appearance: textfield; }
