/* ===================== PROCARGIUS 2026 ===================== */
:root {
  --fuoco: #CA5227;          /* arancione del logo */
  --fuoco-chiaro: #F08A3C;
  --brace: #F6B44B;
  --notte: #140d0a;
  --notte-2: #1f1611;
  --notte-3: #2c2019;
  --crema: #F4ECE0;
  --crema-2: #e8dccb;
  --testo: #2a1f19;
  --testo-2: #6d5d52;
  --you: #2f7cf6;
  --radius: 16px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font-titoli: 'Oswald', 'Arial Narrow', sans-serif;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--notte); color: var(--testo); font-family: var(--font); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Logo (maschere ricolorabili) ---------- */
.logo-simbolo { background: var(--fuoco); -webkit-mask: url(../assets/logo-simbolo.png) center/contain no-repeat; mask: url(../assets/logo-simbolo.png) center/contain no-repeat; aspect-ratio: 600/435; }
.logo-scritta { background: var(--crema); -webkit-mask: url(../assets/logo-scritta.png) center/contain no-repeat; mask: url(../assets/logo-scritta.png) center/contain no-repeat; aspect-ratio: 763/178; }

/* ---------- Bottoni ---------- */
.btn { border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 15px; }
.btn-fuoco { background: var(--fuoco); color: #fff; box-shadow: 0 6px 24px rgba(202,82,39,.45); }
.btn-fuoco:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--crema); border: 1px solid rgba(244,236,224,.35); }
.btn-scuro { background: var(--notte); color: var(--crema); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ===================== INTRO ===================== */
#intro { position: fixed; inset: 0; z-index: 100; background: radial-gradient(ellipse at 50% 70%, #3a1a0d 0%, #1a0f0a 45%, #0b0705 100%); overflow: hidden; transition: opacity 1s ease; }
#intro.svanisce { opacity: 0; pointer-events: none; }
#braci { position: absolute; inset: 0; width: 100%; height: 100%; }
#inchiostro { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
#intro.fase-vie #inchiostro { opacity: 1; }
#inchiostro path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* ombre in alto e in basso: separano scritte e animazioni */
#intro::before, #intro::after { content: ''; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
#intro::before { top: 0; height: 30vh; background: linear-gradient(rgba(8,5,3,.85), rgba(8,5,3,0)); opacity: 0; transition: opacity .8s; }
#intro.fase-vie::before { opacity: 1; }
#intro::after { bottom: 0; height: 34vh; background: linear-gradient(rgba(8,5,3,0), rgba(8,5,3,.88) 70%); }
.intro-centro { z-index: 3; padding-bottom: 18vh !important; }
.intro-centro p { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.8); }
.intro-basso { position: absolute; z-index: 4; left: 16px; right: 16px; bottom: calc(var(--safe-b, 0px) + 58px);
  display: flex; flex-direction: column; align-items: center; gap: 12px; }
.intro-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; transition: transform 1.2s cubic-bezier(.6,0,.2,1), opacity 1s ease; }
.intro-centro .logo-simbolo { width: min(42vw, 190px); opacity: 0; transform: scale(.7); animation: compari 1.4s .3s cubic-bezier(.2,.8,.2,1) forwards; }
.intro-centro .logo-scritta { width: min(70vw, 320px); margin-top: 14px; opacity: 0; animation: compari 1.2s .9s ease forwards; }
.glow { filter: drop-shadow(0 0 18px rgba(240,138,60,.75)) drop-shadow(0 0 40px rgba(202,82,39,.5)); animation: compari 1.4s .3s forwards, pulsa 2.4s 1.7s ease-in-out infinite !important; }
.intro-data { color: var(--brace); font-family: var(--font-titoli); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 17px; margin: 20px 0 4px; opacity: 0; animation: compari 1s 1.4s forwards; }
.intro-tappa { color: rgba(244,236,224,.88); font-size: 14px; margin: 0; opacity: 0; animation: compari 1s 1.7s forwards; }
.intro-stato { color: var(--crema); font-size: 14.5px; font-weight: 500; margin: 0; padding: 9px 16px; border-radius: 20px;
  background: rgba(20,13,10,.72); border: 1px solid rgba(244,236,224,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: center; max-width: 100%; }
.intro-stato:empty { display: none; }
.intro-stato .spin { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brace); margin-right: 8px; animation: lampeggia 1s infinite; vertical-align: 1px; }
.intro-azioni { display: flex; flex-direction: column; gap: 10px; width: min(320px, 100%); }
.intro-azioni[hidden] { display: none; }
.intro-salta { z-index: 5; position: absolute; right: 16px; top: calc(16px + var(--safe-t)); background: rgba(0,0,0,.3); color: rgba(244,236,224,.75); border: 1px solid rgba(244,236,224,.2); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
#intro.fase-vie .intro-centro { transform: translateY(-31vh) scale(.6); }
#intro.fase-vie .intro-tappa, #intro.fase-vie .intro-data { opacity: 0 !important; animation: none; transition: opacity .4s; }
@keyframes compari { to { opacity: 1; transform: none; } }
@keyframes pulsa { 0%,100% { filter: drop-shadow(0 0 14px rgba(240,138,60,.6)) drop-shadow(0 0 30px rgba(202,82,39,.4)); } 50% { filter: drop-shadow(0 0 26px rgba(246,180,75,.9)) drop-shadow(0 0 60px rgba(202,82,39,.6)); } }
@keyframes lampeggia { 50% { opacity: .25; } }

/* ===================== TOPBAR ===================== */
#topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding: calc(10px + var(--safe-t)) 12px 8px; background: linear-gradient(180deg, rgba(20,13,10,.92) 0%, rgba(20,13,10,.78) 70%, rgba(20,13,10,0) 100%); pointer-events: none; }
#topbar > * { pointer-events: auto; }
.tb-riga { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-simbolo.mini { width: 34px; }
.logo-scritta.mini { width: 112px; }
.lingue { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lingue button { background: none; border: 0; color: rgba(244,236,224,.7); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.lingue button.attivo { background: var(--crema); color: var(--notte); }
.live { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 9px 14px; border: 0; border-radius: 12px; background: var(--fuoco); color: #fff; text-align: left; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.live .etichetta { font-family: var(--font-titoli); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.live .punto { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lampeggia 1.2s infinite; }
.live .titolo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.live.countdown { background: var(--notte-3); }
.live.countdown .punto { display: none; }

/* ===================== MAPPA ===================== */
#vista-mappa { position: fixed; inset: 0; }
#mappa { position: absolute; inset: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); background: var(--crema-2); }
.filtri { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 108px); z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 8px; scrollbar-width: none; }
.filtri::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; background: #fff; color: var(--testo); box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chip.attivo { background: var(--notte); color: var(--crema); }
.chip.fuochi { background: linear-gradient(135deg, #E04E1B, #F08A3C); color: #fff; }
.chip.fuochi.spento { background: #fff; color: var(--testo); }
.fab { position: absolute; right: 14px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); z-index: 6; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: var(--you); box-shadow: 0 4px 16px rgba(0,0,0,.22); display: grid; place-items: center; transition: bottom .3s; }
.fab svg { width: 24px; height: 24px; }
body.scheda-aperta .fab { bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--scheda-h, 220px) + 14px); }

/* Marker cortes */
.mk { width: 32px; height: 32px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.3); border: 2px solid #fff; cursor: pointer; transition: transform .2s; }
.mk svg { transform: rotate(45deg); width: 19px; height: 19px; color: #fff; }
.mk-num { transform: rotate(45deg); color: #fff; font: 700 14px/1 Inter, system-ui, sans-serif; letter-spacing: -.02em; text-align: center; }
.mk-num.lungo { font-size: 9.5px; line-height: 1.05; }
.mk:hover, .mk.sel { transform: rotate(-45deg) scale(1.18); }
.mk-fuoco { width: 56px; height: 56px; border-radius: 50%; transform: none; border: 3px solid #fff; background: radial-gradient(circle at 50% 60%, #F6B44B 0%, #F08A3C 35%, #E04E1B 70%); box-shadow: 0 0 0 0 rgba(240,138,60,.6), 0 0 26px 6px rgba(240,138,60,.65); animation: fiamma 1.8s ease-in-out infinite; }
.mk-fuoco svg { transform: none; width: 30px; height: 30px; }
.mk-fuoco:hover, .mk-fuoco.sel { transform: scale(1.12); }
.mk-fuoco.minore { width: 34px; height: 34px; border-width: 2px; }
.mk-fuoco.minore svg { width: 19px; height: 19px; }
@keyframes fiamma { 0%,100% { box-shadow: 0 0 0 0 rgba(240,138,60,.55), 0 0 22px 4px rgba(240,138,60,.6); } 50% { box-shadow: 0 0 0 14px rgba(240,138,60,0), 0 0 36px 10px rgba(246,180,75,.75); } }
.mk-etichetta { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-titoli); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--notte); background: rgba(255,255,255,.92); padding: 2px 8px; border-radius: 6px; pointer-events: none; }

/* Pallino utente */
.tu { width: 20px; height: 20px; border-radius: 50%; background: var(--you); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47,124,246,.5), 0 2px 8px rgba(0,0,0,.3); animation: tu 2s infinite; }
@keyframes tu { 0% { box-shadow: 0 0 0 0 rgba(47,124,246,.5), 0 2px 8px rgba(0,0,0,.3); } 70% { box-shadow: 0 0 0 18px rgba(47,124,246,0), 0 2px 8px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 0 rgba(47,124,246,0), 0 2px 8px rgba(0,0,0,.3); } }

/* Scheda corte */
.scheda { position: absolute; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 8; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px 18px; box-shadow: 0 -8px 30px rgba(0,0,0,.18); animation: sali .35s cubic-bezier(.2,.8,.2,1); max-height: 60vh; overflow-y: auto; }
@keyframes sali { from { transform: translateY(100%); } }
.scheda .maniglia { width: 40px; height: 4px; border-radius: 4px; background: #ddd; margin: 0 auto 12px; }
.scheda .cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.scheda h2 { font-family: var(--font-titoli); font-weight: 500; font-size: 24px; margin: 4px 0 2px; }
.scheda .via { color: var(--testo-2); font-size: 14px; margin: 0 0 8px; }
.scheda p { font-size: 15px; line-height: 1.5; margin: 8px 0; }
.scheda .azioni { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.scheda .chiudi { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2ede6; font-size: 18px; color: var(--testo); }
.percorso-info { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-titoli); font-size: 22px; color: var(--fuoco); }
.percorso-info small { font-family: var(--font); font-size: 13px; color: var(--testo-2); }
.tag-esempio { display: inline-block; font-size: 11px; font-weight: 600; background: #fff4d6; color: #8a6200; border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }

/* ===================== PANNELLI ===================== */
.pannello { position: fixed; inset: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 20; background: var(--crema); overflow-y: auto; padding-top: calc(var(--safe-t) + 64px); animation: entra .3s ease; }
body.con-live .pannello { padding-top: calc(var(--safe-t) + 112px); }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }
.pannello-int { max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; }
.pannello h1 { font-family: var(--font-titoli); font-weight: 500; font-size: 34px; text-transform: uppercase; letter-spacing: .02em; margin: 8px 0 6px; color: var(--notte); }
.pannello h2 { font-family: var(--font-titoli); font-weight: 500; font-size: 22px; text-transform: uppercase; margin: 28px 0 10px; color: var(--notte); }
.pannello p { line-height: 1.6; color: var(--testo); }
.lead { font-size: 17px; }
.nota { font-size: 13px; color: #8a6200; background: #fff4d6; padding: 8px 12px; border-radius: 10px; }

/* Lista cortes */
.gruppo { margin-top: 22px; }
.gruppo-tit { display: flex; align-items: center; gap: 10px; font-family: var(--font-titoli); font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.gruppo-tit .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.gruppo-tit .ico svg { width: 17px; height: 17px; color: #fff; }
.gruppo-tit .n { margin-left: auto; font-family: var(--font); font-size: 13px; color: var(--testo-2); }
.gruppo.evidenza { background: linear-gradient(135deg, #2a140b, #4a1d0c); border-radius: var(--radius); padding: 16px; color: var(--crema); box-shadow: 0 10px 30px rgba(202,82,39,.25); }
.gruppo.evidenza .gruppo-tit { color: var(--brace); }
.gruppo.evidenza .riga { background: rgba(255,255,255,.07); color: var(--crema); }
.gruppo.evidenza .riga .sub { color: rgba(244,236,224,.65); }
.riga { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 6px; color: var(--testo); }
.riga .txt { flex: 1; min-width: 0; }
.riga .nm { font-weight: 600; font-size: 15px; }
.riga .sub { font-size: 13px; color: var(--testo-2); }
.riga .dist { font-size: 13px; font-weight: 600; color: var(--fuoco); white-space: nowrap; }

/* Programma */
.giorni { display: flex; gap: 8px; margin: 16px 0; }
.giorni button { flex: 1; border: 0; border-radius: 12px; padding: 12px; background: #fff; font-family: var(--font-titoli); font-size: 17px; text-transform: uppercase; color: var(--testo); }
.giorni button.attivo { background: var(--notte); color: var(--crema); }
.evento { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; background: #fff; border-radius: 14px; margin-bottom: 8px; border-left: 4px solid transparent; }
.evento .ora { font-family: var(--font-titoli); font-size: 20px; color: var(--fuoco); line-height: 1.1; }
.evento .ora small { display: block; font-family: var(--font); font-size: 12px; color: var(--testo-2); }
.evento .tit { font-weight: 600; font-size: 16px; }
.evento .luogo { font-size: 13px; color: var(--testo-2); margin-top: 2px; }
.evento .link { margin-top: 8px; display: flex; gap: 12px; }
.evento .link button { border: 0; background: none; padding: 0; color: var(--fuoco); font-weight: 600; font-size: 13px; }
.evento.ora-in-corso { border-left-color: var(--fuoco); background: #fff3ec; }
.evento.passato { opacity: .5; }
.badge-ora { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #fff; background: var(--fuoco); border-radius: 6px; padding: 2px 7px; text-transform: uppercase; margin-bottom: 4px; }

/* Showcooking */
.turno { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.turno .quando { font-family: var(--font-titoli); font-size: 20px; text-transform: uppercase; }
.turno .prezzo { font-weight: 700; font-size: 18px; text-align: right; }
.turno .prezzo small { display: block; font-weight: 400; font-size: 12px; color: var(--testo-2); }
.turno .barra { grid-column: 1 / -1; height: 8px; background: #efe6da; border-radius: 8px; overflow: hidden; }
.turno .barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--fuoco), var(--brace)); border-radius: 8px; transition: width .6s; }
.turno .posti { font-size: 14px; color: var(--testo-2); }
.turno .posti b { color: var(--testo); font-size: 18px; }
.turno .posti.pochi b { color: var(--fuoco); }
/* etichetta "in tempo reale" con pallino che pulsa */
.dal-vivo { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #1F8A4C; vertical-align: 2px; }
.dal-vivo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1F8A4C; animation: pulsa-vivo 1.6s ease-in-out infinite; }
@keyframes pulsa-vivo { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .dal-vivo::before { animation: none; } }
.turno.esaurito { opacity: .6; }
.turno .chef { grid-column: 1 / -1; font-size: 14px; color: var(--testo-2); }
.turno .chef b { color: var(--testo); font-weight: 600; }
.scheda .sottotit, .evento .sottotit { font-size: 14px; color: var(--testo-2); font-style: italic; margin: 0 0 4px; }
.evento .det { font-size: 13px; color: var(--testo); margin-top: 4px; line-height: 1.45; }
.scheda .dettagli { margin: 8px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.eventi-corte { background: #fbf6ef; border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.eventi-corte b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fuoco); margin-bottom: 4px; }
.eventi-corte span { font-weight: 600; display: inline-block; min-width: 74px; }
.btn-ghost-scuro { background: #f2ede6; color: var(--testo); text-decoration: none; display: inline-flex; align-items: center; }
.scheda .azioni { flex-wrap: wrap; }
.scheda-modale { position: static; box-shadow: none; animation: none; padding: 0; max-height: none; background: transparent; }
.scheda-modale .maniglia { display: none; }
.riga .dist.fuori { color: var(--testo-2); font-weight: 500; font-size: 12px; }
.live .altri { background: rgba(255,255,255,.25); border-radius: 999px; padding: 1px 7px; font-size: 12px; font-weight: 700; }

/* Media slot (foto/video da caricare) */
.media-slot { background: repeating-linear-gradient(45deg, #ece2d4, #ece2d4 10px, #e6dacb 10px, #e6dacb 20px); border-radius: 14px; display: grid; place-items: center; color: var(--testo-2); font-size: 13px; aspect-ratio: 4/3; overflow: hidden; }
.media-slot img, .media-slot video { width: 100%; height: 100%; object-fit: cover; }
.hero-slot { aspect-ratio: 16/8; margin: 14px 0; }
.video-slot { aspect-ratio: 16/9; margin-bottom: 10px; }
.galleria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pannello-int .badge-tappa { display: flex; align-items: center; gap: 10px; background: var(--fuoco); color: #fff; border-radius: 12px;
  padding: 12px 14px; font-weight: 600; font-size: 14.5px; line-height: 1.35; box-shadow: 0 4px 14px rgba(202, 82, 39, .25); }
.pannello-int .badge-tappa::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brace); box-shadow: 0 0 0 4px rgba(246, 180, 75, .35); }
.btn-ig { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #fff; font-weight: 600;
  background: linear-gradient(120deg, #CA5227, #b8325a 60%, #7a3fa0); }
.btn-ig svg { width: 26px; height: 26px; flex: none; }
.btn-ig small { margin-left: auto; font-weight: 500; opacity: .9; }
.ig-feed { margin-top: 14px; }
.ig-nota { font-size: 12.5px; color: var(--testo-2); margin: 0 0 10px; }
.ig-feed .instagram-media { margin: 0 0 14px !important; min-width: 0 !important; width: 100% !important; }
.num-corte { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; margin-right: 7px; border-radius: 6px;
  background: var(--notte); color: var(--brace); font: 600 11.5px/1 Inter, sans-serif; vertical-align: 2px; }
.scheda h2 .num-corte { height: 24px; min-width: 28px; font-size: 13px; vertical-align: 4px; }
.hero-foto { position: relative; margin: 4px 0 18px; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: var(--notte); }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-foto span { position: absolute; left: 14px; bottom: 12px; color: #fff; font: 500 15px/1.2 Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.logo-autunno { display: block; width: 100%; max-width: 360px; height: auto; margin: 4px 0 8px; }
.partner { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.partner img { width: 100%; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 10px; box-sizing: border-box; }
.show-hero { background: var(--fuoco); color: #fff; border-radius: 16px; padding: 18px 16px 16px; margin: 4px 0 14px; text-align: center; }
.pannello-int .show-hero h1 { color: #fff; margin: 2px 0 4px; font-size: 34px; }
.show-kicker { font: 500 11px/1.3 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.pannello-int .show-tit2 { margin: 0; color: #fff; font: 600 16px/1.25 Oswald, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.pannello-int .show-sub { margin: 6px 0 0; color: #fff; opacity: .9; font-size: 13px; font-style: italic; }
/* Menu completo (apribile) */
.menu-show { background: #fff; border-radius: 14px; margin: 14px 0; overflow: hidden; }
.menu-show summary { list-style: none; cursor: pointer; padding: 15px 16px; font: 600 17px/1.2 Oswald, sans-serif; text-transform: uppercase; letter-spacing: .03em;
  color: var(--fuoco); display: flex; justify-content: space-between; align-items: center; }
.menu-show summary::-webkit-details-marker { display: none; }
.menu-show summary::after { content: '+'; font: 400 26px/1 Inter, sans-serif; transition: transform .2s; }
.menu-show[open] summary::after { transform: rotate(45deg); }
.menu-turno { padding: 0 16px 6px; }
.menu-tit { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--fuoco); padding-bottom: 4px; margin: 6px 0 4px; }
.menu-tit span { font: 600 22px/1 Oswald, sans-serif; text-transform: uppercase; color: var(--fuoco); }
.menu-tit small { margin-left: auto; color: var(--testo-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.menu-piatto { padding: 10px 0; border-bottom: 1px solid #efe5d8; }
.menu-piatto:last-child { border-bottom: 0; }
.menu-piatto h3 { margin: 0; font: 600 17px/1.2 Oswald, sans-serif; text-transform: uppercase; }
.menu-chef { font-size: 11.5px; font-weight: 600; color: var(--fuoco); text-transform: uppercase; letter-spacing: .05em; margin: 2px 0 4px; }
.pannello-int .menu-piatto p { margin: 0 0 4px; font-size: 13.5px; }
.pannello-int .menu-piatto .ingr { font-size: 12.5px; color: var(--testo-2); font-style: italic; }
.menu-show .show-extra { margin: 8px 16px 14px; }
/* Gli chef: foto e testo affiancati, alternati */
.chef-wrap h2 { margin-top: 26px; }
.chef-riga { display: grid; grid-template-columns: 44% 1fr; grid-template-areas: "img txt" "img desc"; column-gap: 14px; row-gap: 6px;
  align-items: start; margin: 18px 0 26px; }
.chef-riga.dx { grid-template-columns: 1fr 44%; grid-template-areas: "txt img" "desc img"; }
.chef-img { grid-area: img; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--notte); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(20, 13, 10, .18); position: sticky; top: 120px; }
.chef-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chef-img span { color: var(--brace); font: 600 34px Oswald, sans-serif; letter-spacing: .04em; }
.chef-txt { grid-area: txt; }
.chef-desc { grid-area: desc; }
.chef-nome { font: 600 22px/1.05 Oswald, sans-serif; text-transform: uppercase; color: var(--testo); }
.chef-rist { font-size: 13px; font-weight: 600; color: var(--fuoco); margin-top: 4px; }
.chef-stella { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 700; color: #a31621; background: #fde8e8; border-radius: 6px; padding: 2px 7px; }
.chef-turno { font-size: 11.5px; color: var(--testo-2); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.pannello-int .chef-desc p { font-size: 13.5px; line-height: 1.5; margin: 0 0 8px; }
.link-corte { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--fuoco); font: 600 13px Inter, sans-serif; cursor: pointer; text-align: left; }
.show-extra { background: var(--notte); color: var(--crema); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.show-extra h3 { margin: 0 0 4px; color: var(--brace); font: 600 16px/1.25 Oswald, sans-serif; text-transform: uppercase; }
.pannello-int .show-extra p { margin: 0; color: var(--crema); font-size: 13.5px; }
/* ===================== LA VIA DEL VINO ===================== */
.pannello-vino { --vino: #5a1219; --vino-2: #7d1d27; --oro: #8a6a3b; background: #f6ebe3; }
.vino-hero { text-align: center; padding: 6px 0 4px; }
.vino-logo { position: relative; width: 230px; height: 230px; margin: 0 auto; }
.vino-logo img { position: absolute; inset: 30px; width: 170px; height: 170px; border-radius: 50%; object-fit: cover; animation: vino-entra 1s .2s both cubic-bezier(.2,.8,.2,1); }
.vino-anello { position: absolute; inset: 0; width: 100%; height: 100%; animation: vino-gira 60s linear infinite; }
.vino-anello text { font: 400 9.5px Georgia, 'Times New Roman', serif; fill: var(--vino); letter-spacing: 1.6px; opacity: .75; }
.vino-cerchio { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.vino-cerchio circle { fill: none; stroke: var(--vino); stroke-width: 2; stroke-dasharray: 491; stroke-dashoffset: 491; animation: vino-traccia 2.2s .3s forwards ease-in-out; }
@keyframes vino-gira { to { transform: rotate(360deg); } }
@keyframes vino-traccia { to { stroke-dashoffset: 0; } }
@keyframes vino-entra { from { opacity: 0; transform: scale(.85); } }
.pannello-vino .vino-hero h1 { color: var(--vino); margin: 6px 0 0; font-size: 38px; }
.pannello-vino .vino-acura { margin: 0; color: var(--oro); font: italic 15px/1.3 Georgia, serif; }
.vino-numeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.vino-numeri div { background: #fff; border-radius: 14px; padding: 12px 6px; text-align: center; }
.vino-numeri b { display: block; font: 600 34px/1 Oswald, sans-serif; color: var(--vino); }
.vino-numeri span { font-size: 11.5px; color: var(--testo-2); text-transform: uppercase; letter-spacing: .05em; }
.pannello-vino h2 { color: var(--vino); }
.pannello-vino .vino-nota { margin: -4px 0 8px; font-size: 13px; color: var(--testo-2); }
.vino-territorio { background: #fff; border-radius: 16px; padding: 6px; }
.vino-territorio svg { width: 100%; height: auto; display: block; }
.vt-linea { fill: none; stroke: var(--vino); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; }
.vino-territorio svg.vista .vt-linea { animation: vino-linea 1.4s forwards ease-out; }
@keyframes vino-linea { to { stroke-dashoffset: 0; } }
.vt-paese { cursor: pointer; opacity: 0; }
.vino-territorio svg.vista .vt-paese { animation: vino-pop .5s forwards cubic-bezier(.3,1.6,.5,1); }
@keyframes vino-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vt-paese circle { fill: #fff; stroke: var(--vino); stroke-width: 2.5; transition: fill .2s; }
.vt-paese.seulo circle, .vt-paese.sel circle, .vt-paese:hover circle { fill: var(--vino); }
.vt-n { font: 700 9px Inter, sans-serif; fill: #fff; pointer-events: none; }
.vt-paese:not(.seulo):not(.sel) .vt-n { fill: var(--vino); }
.vt-nome { font: 600 13px Oswald, sans-serif; fill: var(--notte); text-transform: uppercase; letter-spacing: .03em; }
.vt-sub { font: 400 9.5px Inter, sans-serif; fill: var(--oro); }
.vt-alone { animation: vino-pulsa 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes vino-pulsa { 50% { opacity: .45; transform: scale(.8); } }
/* percorso a tappe */
.vino-tappe { position: relative; padding-left: 0; }
.vt-binario { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; background: #e6d6cb; }
.vt-binario i { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 2px; background: linear-gradient(var(--vino-2), var(--vino)); transition: height .15s linear; }
.vt-binario b { position: absolute; left: 50%; top: 0; width: 14px; height: 18px; margin: -6px 0 0 -7px; background: var(--vino);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: 0 2px 8px rgba(90, 18, 25, .45); transition: top .15s linear; }
.tappa { position: relative; display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 10px 0;
  cursor: pointer; opacity: 0; transform: translateX(16px); transition: opacity .5s, transform .5s; font: inherit; color: inherit; }
.tappa.vista { opacity: 1; transform: none; }
.tappa-pallino { flex: none; position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid #e6d6cb; color: var(--vino); font: 600 15px Oswald, sans-serif; transition: background .3s, border-color .3s, color .3s, transform .3s; }
.tappa.raggiunta .tappa-pallino { background: var(--vino); border-color: var(--vino); color: #fff; transform: scale(1.06); }
.tappa-txt { flex: 1; background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 1px 0 rgba(0,0,0,.03); transition: box-shadow .3s; }
.tappa.evid .tappa-txt { box-shadow: 0 0 0 2px var(--vino); }
.tappa-txt small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--oro); font-weight: 600; }
.tappa-txt b { font: 600 17px/1.15 Oswald, sans-serif; text-transform: uppercase; color: var(--notte); }
.tappa-txt span { font-size: 13px; color: var(--vino); font-weight: 600; }
.tappa-txt em { font-style: normal; font-size: 12px; color: var(--testo-2); }
.tappa-logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; margin: 4px 0; }
.btn-vino { width: 100%; margin-top: 16px; background: var(--vino); color: #fff; }
.scheda-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; float: right; margin: 0 0 6px 10px; }
@media (prefers-reduced-motion: reduce) { .vino-anello, .vt-alone { animation: none; } .tappa { opacity: 1; transform: none; } }
/* Firma NovaWeb */
.firma { margin-top: 28px; }
.firma-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--notte); color: var(--crema); text-decoration: none; }
.firma-txt { display: flex; flex-direction: column; line-height: 1.2; }
.firma-txt small { white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(244,236,224,.6); }
.firma-txt b { font: 600 20px Oswald, sans-serif; letter-spacing: .03em; color: var(--brace); }
.firma-txt img { height: 34px; width: auto; margin-top: 4px; }
.firma-sub { margin-left: auto; font-size: 13px; font-weight: 600; text-align: right; }
.firma-freccia { font-size: 18px; color: var(--brace); }
a.firma-card:active { transform: scale(.99); }
.intro-firma { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b, 0px) + 16px); text-align: center; z-index: 4;
  font-size: 12px; letter-spacing: .06em; color: rgba(244,236,224,.75); opacity: .15; transition: opacity .8s ease, filter .8s ease; }
.intro-firma.acceso { opacity: 1; animation: nova-accendi 1.2s ease-out; }
@keyframes nova-accendi { 0% { filter: brightness(2.2) drop-shadow(0 0 10px rgba(46,197,255,.9)); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { .intro-firma { opacity: 1; } }
.intro-firma a { color: inherit; text-decoration: none; }
.intro-firma b { color: rgba(246,180,75,.85); font-weight: 600; }
.intro-firma img { height: 20px; vertical-align: -6px; margin-left: 2px; opacity: .85; }
.firma-card { border: 1px solid rgba(46,197,255,.18); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 15% 120%, rgba(202,82,39,.35), transparent 55%), radial-gradient(90% 120% at 100% 0%, rgba(46,197,255,.12), transparent 60%), var(--notte); }
a.firma-card .firma-freccia { color: #2ec5ff; transition: transform .3s; }
a.firma-card:hover .firma-freccia, a.firma-card:focus-visible .firma-freccia { transform: translate(3px, -3px); }
.firma-card > span:not(.firma-braci) { position: relative; z-index: 1; }
/* scintille che salgono nel riquadro */
.firma-braci { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.firma-braci i { position: absolute; bottom: -6px; width: 3px; height: 3px; border-radius: 50%; background: #f6b44b;
  box-shadow: 0 0 6px 1px rgba(240,120,40,.8); opacity: 0; animation: firma-sale 4s linear infinite; }
.firma-braci i:nth-child(3n) { background: #2ec5ff; box-shadow: 0 0 6px 1px rgba(46,197,255,.8); width: 2px; height: 2px; }
@keyframes firma-sale { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(10px, -90px); opacity: 0; } }
/* orbita azzurra attorno alla stella del logo e lampo */
.firma-logo { position: relative; display: inline-block; margin-top: 4px; }
.firma-logo img { display: block; height: 34px; width: auto; animation: firma-lampo 7s ease-in-out infinite; }
.firma-orbita { position: absolute; left: -8px; top: -5px; width: 44px; height: 44px; pointer-events: none; animation: firma-gira 9s linear infinite; }
.firma-orbita circle { fill: none; stroke: #2ec5ff; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 62 38; opacity: .7; }
@keyframes firma-gira { to { transform: rotate(360deg); } }
@keyframes firma-lampo { 0%, 86%, 100% { filter: none; } 90% { filter: brightness(1.8) drop-shadow(0 0 8px rgba(46,197,255,.95)); } }
a.firma-card:hover .firma-logo img, a.firma-card:active .firma-logo img { animation: firma-lampo-subito .7s ease-out; }
@keyframes firma-lampo-subito { 0% { filter: brightness(2.2) drop-shadow(0 0 12px rgba(46,197,255,1)); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { .firma-braci, .firma-orbita { display: none; } .firma-logo img { animation: none; } }
/* stella nascosta sulla mappa */
.stella-nova { position: absolute; left: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 26px); z-index: 6; width: 30px; height: 30px; padding: 0; border: 0;
  background: none; cursor: pointer; transition: bottom .3s, opacity .3s; }
.stella-nova svg { width: 100%; height: 100%; fill: #2ec5ff; filter: drop-shadow(0 0 4px rgba(46,197,255,.9)); opacity: .35; animation: stella-brilla 6s ease-in-out infinite; }
.stella-nova i { position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(46,197,255,.7); opacity: 0; animation: stella-onda 6s ease-out infinite; }
@keyframes stella-brilla { 0%, 70%, 100% { opacity: .3; transform: scale(.75) rotate(0); } 78% { opacity: 1; transform: scale(1.15) rotate(45deg); } 86% { opacity: .55; transform: scale(.9) rotate(45deg); } }
@keyframes stella-onda { 0%, 74% { opacity: 0; transform: scale(.6); } 78% { opacity: .9; } 100% { opacity: 0; transform: scale(2.4); } }
body.scheda-aperta .stella-nova { opacity: 0; pointer-events: none; }
.nova-modale { text-align: center; }
.nova-cielo { position: relative; width: 110px; height: 110px; margin: 2px auto 6px; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #0d2a3a 0%, #071019 60%, #140d0a 100%); display: grid; place-items: center; overflow: hidden; }
.nova-cielo svg { width: 46px; height: 46px; fill: #e6f8ff; filter: drop-shadow(0 0 10px #2ec5ff); animation: nova-pop .9s cubic-bezier(.3,1.6,.5,1) both; }
.nova-orbita { position: absolute; inset: 18px; border-radius: 50%; border: 2px solid transparent; border-top-color: #2ec5ff; border-right-color: rgba(46,197,255,.4); animation: firma-gira 3s linear infinite; }
@keyframes nova-pop { from { transform: scale(0) rotate(-90deg); } }
.nova-modale p { color: var(--testo-2); margin: 6px 0 12px; }
.nova-logo { background: var(--notte); border-radius: 14px; padding: 12px; margin: 0 0 12px; }
.nova-logo img { height: 36px; display: block; margin: 0 auto; }
.nova-btn { display: block; width: 100%; background: linear-gradient(90deg, #1a8fd0, #2ec5ff); color: #06131c; text-decoration: none; font-weight: 700; }
.nova-chiudi { width: 100%; margin-top: 8px; justify-content: center; }
/* firma piccola in fondo alle sezioni e cometa */
.firma-mini { margin: 34px 0 6px; text-align: center; font-size: 11.5px; letter-spacing: .06em; color: var(--testo-2); }
.firma-mini a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: var(--notte); color: rgba(244,236,224,.7);
  padding: 6px 12px 6px 14px; border-radius: 999px; }
.firma-mini img { height: 20px; }
.firma-mini.acceso a { animation: mini-accendi 1.4s ease-out; }
@keyframes mini-accendi { 0% { box-shadow: 0 0 0 0 rgba(46,197,255,.9); filter: brightness(1.8); } 60% { box-shadow: 0 0 0 14px rgba(46,197,255,0); } 100% { filter: none; } }
.cometa { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: 0; height: 0; }
.cometa-testa { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #e6f8ff;
  box-shadow: 0 0 10px 3px #2ec5ff, 0 0 22px 8px rgba(46,197,255,.45); }
.cometa-coda { position: absolute; right: 0; top: -2px; width: 120px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(240,120,40,0), rgba(246,180,75,.75) 55%, rgba(46,197,255,.95)); filter: blur(.6px); }
.crediti { font-size: 12px; color: var(--testo-2); margin-top: 30px; }

/* ===================== TABBAR ===================== */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: var(--notte); border-top: 1px solid rgba(255,255,255,.06); }
#tabbar button { flex: 1; border: 0; background: none; color: rgba(244,236,224,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; }
#tabbar svg { width: 23px; height: 23px; }
#tabbar button.attivo { color: var(--brace); }
/* ===================== MODALE / TOAST ===================== */
.modale { position: fixed; inset: 0; z-index: 60; background: rgba(10,6,4,.6); display: flex; align-items: flex-end; justify-content: center; animation: entra .2s; }
.modale-box { background: var(--crema); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + var(--safe-b)); }
@media (min-width: 640px) { .modale { align-items: center; } .modale-box { border-radius: 22px; } }
.modale-box h2 { font-family: var(--font-titoli); font-weight: 500; font-size: 26px; text-transform: uppercase; margin: 0 0 4px; }
.campo { display: block; margin: 12px 0; }
.campo span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--testo-2); }
.campo input, .campo select { width: 100%; padding: 12px 14px; border: 1px solid #d8cbb9; border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--testo); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--testo-2); margin: 14px 0; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--fuoco); }
.riepilogo { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #e2d6c5; margin-top: 8px; font-size: 16px; }
.riepilogo b { font-size: 22px; }
.demo { font-size: 12px; color: #8a6200; background: #fff4d6; padding: 8px 10px; border-radius: 10px; margin-top: 10px; }
.biglietto { background: #fff; border-radius: 18px; padding: 18px; text-align: center; border: 2px dashed #e2d6c5; margin: 14px 0; }
.biglietto .qr { width: 180px; height: 180px; margin: 10px auto; }
.biglietto .qr svg, .biglietto .qr img { width: 100%; height: 100%; }
.biglietto .cod { font-family: monospace; letter-spacing: .1em; color: var(--testo-2); }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 80px); z-index: 50; background: var(--notte); color: var(--crema); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.3); animation: entra .3s; max-width: 520px; margin: 0 auto; }
.toast .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }

/* MapLibre */
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-bottom-right { bottom: 0; }
