/* Bada Bing — demo Vanko Lab · palette e materiali dal locale (vedi DESIGN-PLAN.md) */
/* League Gothic ha un solo peso: dichiararlo su 400-900 evita il grassetto finto del browser */
@font-face { font-family: "League Gothic"; src: url("../fonts/league-gothic-400.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --notte: #0D100E;
  --notte-2: #141812;
  --parete: #0F4A2D;
  --parete-scura: #0A3520;
  --verde-vivo: #35A85F;
  --cornice: #A3202A;
  --cornice-scura: #6F1219;
  --legno: #5A341C;
  --legno-scuro: #2C190D;
  --legno-chiaro: #C98B4E;
  --carta: #E6DBC3;
  --carta-scura: #CDBF9F;
  --giallo: #F4E04D;
  --gesso: #ECE8DD;
  --inchiostro: #1B1A16;
  --muro-segnaletico: #C9C4B8;
  --titolo: "League Gothic", "Arial Narrow", sans-serif;
  --testo: "Courier Prime", "Courier New", monospace;
  --grana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grana-lieve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grana-timbro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --legno-vero: url("../texture/legno-mogano-1k.webp"); /* Poly Haven «Dark Wood», CC0 */
  --legno-pannelli: linear-gradient(180deg, rgba(10, 4, 1, .4), rgba(10, 4, 1, .58)), repeating-linear-gradient(180deg, rgba(0, 0, 0, .62) 0 2px, rgba(255, 214, 170, .13) 2px 3px, transparent 3px 172px), var(--legno-vero) 0 0 / 760px auto;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0; background: var(--notte); color: var(--gesso);
  font: 400 1.0625rem/1.55 var(--testo);
  overflow-x: clip;
}
body::after { /* grana su tutto, come carta stampata e muri veri */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: var(--grana); opacity: .07; mix-blend-mode: overlay;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--legno-chiaro); outline-offset: 3px; }
.vh, .defs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salta { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--legno-chiaro); color: var(--inchiostro); padding: 10px 14px; font-weight: 700; }
.salta:focus { top: 12px; }

.titolo { font: 800 clamp(2.6rem, 6.4vw, 5.6rem)/.88 var(--titolo); text-transform: uppercase; letter-spacing: .005em; margin: 0 0 .3em; }
.titolo--scuro { color: var(--inchiostro); }
.voce { font-style: italic; font-size: 1.15rem; margin: 0 0 1rem; }
.voce--grande { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-style: normal; font-weight: 700; }

.bottone {
  display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 12px 20px;
  background: var(--cornice); color: var(--gesso); text-decoration: none;
  font: 800 1.15rem/1 var(--titolo); text-transform: uppercase; letter-spacing: .04em;
  border: 2px solid var(--cornice); box-shadow: 4px 4px 0 var(--inchiostro);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.bottone:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--inchiostro); }
.bottone:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--inchiostro); }
.bottone--vuoto { background: transparent; border-color: var(--gesso); box-shadow: none; }
.bottone--vuoto:hover { background: var(--gesso); color: var(--notte); box-shadow: none; transform: none; }
.bottone--chiaro { background: var(--gesso); color: var(--cornice); border-color: var(--gesso); }
.bottone--piccolo { min-height: 40px; padding: 8px 14px; font-size: 1rem; box-shadow: 3px 3px 0 #000; }

/* ---------- testata ---------- */
.testata {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); transition: background-color .3s, box-shadow .3s;
}
.testata.piena { background: linear-gradient(180deg, rgba(14, 6, 2, .55), rgba(14, 6, 2, .74)), var(--legno-vero) 0 40% / 760px auto; box-shadow: 0 2px 0 rgba(201, 139, 78, .35), 0 10px 24px rgba(0, 0, 0, .35); }
.testata__marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--titolo); text-transform: uppercase; letter-spacing: .06em; }
.testata__nav { display: flex; gap: 22px; margin-left: auto; }
.testata__nav a { font: 600 1.15rem/1 var(--titolo); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding: 8px 0; background: linear-gradient(var(--legno-chiaro), var(--legno-chiaro)) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); }
.testata__nav a:hover { background-size: 100% 2px; }

/* ---------- hero: il faro cerca il logo ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: #050605; overflow: hidden; }
.scena { position: absolute; inset: 0; z-index: 0; }
.scena__muro { /* il muro senza 3D: verde irlandese e boiserie, come nella scena */
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0a3420 0, #13573a 60%, transparent 60%), linear-gradient(rgba(10, 4, 1, .35), rgba(10, 4, 1, .35)), var(--legno-vero) 0 0 / 640px auto;
}
.scena__poster { position: absolute; left: 71%; top: 52%; height: 72%; width: auto; transform: translate(-50%, -50%); filter: drop-shadow(26px 30px 16px rgba(0, 0, 0, .6)); }
.scena__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s linear; touch-action: pan-y; }
.hero.gl .scena__gl { opacity: 1; }
.hero.trovato .scena__gl { cursor: grab; }
.hero.trovato .scena__gl:active { cursor: grabbing; }
.scena__buio { /* il buio prima che il faro si accenda: resta solo il chiarore della torretta */
  position: absolute; inset: 0;
  background: radial-gradient(38% 34% at 0 0, rgba(255, 236, 205, .1), transparent 70%), #050605;
  animation: svela 1s ease 5.5s forwards; /* anche senza JS il logo prima o poi si vede */
}
.hero.gl .scena__buio { opacity: 0; animation: none; transition: opacity .35s linear; }
.hero.js .scena__buio { animation: none; }
.hero.senza3d .scena__buio { animation: svela 1.1s ease .2s forwards; }
.spina { /* barra di caricamento: si riempie solo con i byte che arrivano davvero */
  position: absolute; z-index: 5; left: 71%; top: 56%; width: min(380px, 78vw); transform: translate(-50%, -50%);
  display: grid; gap: 12px; justify-items: center; transition: opacity .45s ease, transform .45s ease;
  animation: svela .6s ease 5.5s forwards; /* senza JS sparisce da sola */
}
.hero.js .spina { animation: none; }
.hero.pronto .spina { opacity: 0; transform: translate(-50%, -38%); pointer-events: none; }
.hero.senza3d .spina { display: none; }
.spina__riga { display: flex; align-items: center; gap: 12px; width: 100%; }
.spina__logo { width: 26px; height: auto; flex: none; opacity: .9; }
.spina__barra { position: relative; flex: 1; height: 22px; border-radius: 12px; overflow: hidden; background: rgba(255, 240, 220, .05); box-shadow: inset 0 0 0 1px rgba(255, 214, 170, .3), inset 0 2px 6px rgba(0, 0, 0, .7); }
.spina__birra {
  position: absolute; inset: 0; transform: translateX(calc((var(--p, 0) - 1) * 100%)); transition: transform .3s ease-out;
  background: radial-gradient(circle at 20% 70%, rgba(255, 255, 255, .5) 0 1.4px, transparent 2px) 0 0 / 14px 12px,
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .35) 0 1px, transparent 1.5px) 0 0 / 10px 9px,
    linear-gradient(180deg, #F6C35A, #D9861E 60%, #B4630E);
}
.spina__birra::after { /* la schiuma in testa */
  content: ""; position: absolute; right: -2px; top: -1px; bottom: -1px; width: 14px; border-radius: 8px; background: #FFF4DE; box-shadow: 0 0 8px rgba(255, 244, 222, .75);
}
.spina__testo { display: flex; gap: 12px; margin: 0; font: 700 .9rem/1 var(--testo); letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 231, 207, .85); }
.spina__testo b { min-width: 3.4em; text-align: right; color: var(--legno-chiaro); font-variant-numeric: tabular-nums; }
@keyframes svela { to { opacity: 0; visibility: hidden; } }
.scena::after { /* velo sotto il testo, per leggerlo anche quando il muro si illumina */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, rgba(5, 6, 5, .84) 0, rgba(5, 6, 5, .55) 32%, rgba(5, 6, 5, 0) 56%), linear-gradient(0deg, rgba(5, 6, 5, .75), transparent 22%);
}
.scena__nota { position: absolute; right: 5%; bottom: 72px; z-index: 4; margin: 0; font-size: .85rem; color: rgba(236, 232, 221, .75); opacity: 0; transition: opacity .6s .8s; }
.hero.trovato .scena__nota { opacity: 1; }
.hero__testo { position: relative; z-index: 2; width: min(50%, 660px); padding: 120px var(--gutter) 96px; }
.hero__titolo { margin: 0 0 22px; width: min(100%, 560px); }
.hero__insegna { /* l'insegna in bianco caldo, come una lampadina a filamento */
  width: 100%; height: auto;
  filter: drop-shadow(0 0 2px #fff8ea) drop-shadow(0 0 9px rgba(255, 190, 120, .75)) drop-shadow(0 0 26px rgba(214, 132, 62, .45));
}
.stato { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 700; font-size: 1.05rem; }
.stato__luce { width: 11px; height: 11px; border-radius: 50%; background: #6c6f69; flex: none; }
.stato.aperto .stato__luce { background: var(--verde-vivo); box-shadow: 0 0 0 0 rgba(53, 168, 95, .7); animation: battito 2.2s infinite; }
.stato.aperto .stato__testo { color: var(--legno-chiaro); }
@keyframes battito { 70% { box-shadow: 0 0 0 10px rgba(53, 168, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 168, 95, 0); } }
.hero__dove { margin: 0 0 18px; font-size: 1rem; opacity: .85; }
.hero__cosa { max-width: 44ch; margin: 0 0 28px; }
.hero__azioni { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- striscia ---------- */
.striscia { position: relative; background: var(--grana) 0 0 / 180px, var(--parete); transform: rotate(-1.2deg); margin: -18px -2vw 0; z-index: 3; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.striscia::before, .striscia::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 214, 170, .24), rgba(0, 0, 0, .38)), var(--legno-vero) 0 50% / 600px auto; }
.striscia::before { top: 0; } .striscia::after { bottom: 0; }
.striscia__binario { display: flex; width: max-content; animation: scorre 38s linear infinite; }
.striscia__vetro { overflow: hidden; }
.striscia.ferma .striscia__binario { animation-play-state: paused; }
.striscia__testo { display: flex; align-items: center; margin: 0; padding: 20px 0 18px; color: #F3E7CF; white-space: nowrap; font: 800 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--titolo); text-transform: uppercase; letter-spacing: .03em; }
.striscia__testo span { padding: 0 .55em; }
.striscia__testo i { font-style: normal; color: var(--legno-chiaro); transform: skewX(-14deg); display: inline-block; }
@keyframes scorre { to { transform: translateX(-50%); } }
.striscia__pausa {
  position: absolute; right: calc(var(--gutter) + 2vw); top: calc(100% + 6px); transform: rotate(1.2deg); z-index: 2;
  background: var(--inchiostro); color: var(--gesso); border: 1px solid rgba(236, 232, 221, .4);
  font: 700 .8rem/1 var(--testo); padding: 9px 10px; cursor: pointer; min-height: 36px;
}

/* ---------- il locale ---------- */
.locale {
  display: grid; gap: 24px; padding: 110px var(--gutter) 90px; position: relative; background: var(--legno-pannelli);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr);
  grid-template-areas: "banc testo testo" "banc lav buono";
}
.foto { margin: 0; position: relative; background: #000; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto::before { /* nastro adesivo */
  content: ""; position: absolute; z-index: 2; width: 92px; height: 26px; top: -12px; left: 50%;
  background: rgba(230, 219, 195, .78); transform: translateX(-50%) rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.foto--bancone { grid-area: banc; transform: rotate(-1deg); border: 10px solid var(--gesso); border-bottom-width: 44px; align-self: start; }
.foto--lavagna { grid-area: lav; transform: rotate(1.6deg) translateY(28px); border: 8px solid var(--gesso); }
.foto--lavagna img { height: auto; aspect-ratio: 537 / 500; object-position: 50% 100%; } /* via il soffitto azzurro della foto */
.foto--guinness { grid-area: guin; transform: rotate(-2.4deg); border: 8px solid var(--gesso); width: 78%; justify-self: end; margin-top: -20px; }
.locale__testo { grid-area: testo; padding: 4px 0 18px; }
.locale__fatti { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.locale__fatti li { padding-left: 1.6em; position: relative; }
.locale__fatti li::before { content: "!"; position: absolute; left: .3em; color: var(--legno-chiaro); font: 900 1.3rem/1.1 var(--titolo); transform: skewX(-14deg); }

.buono {
  grid-area: buono; align-self: center; color: var(--inchiostro); padding: 24px 22px 20px; transform: rotate(-2deg);
  background: var(--grana-lieve), var(--carta); background-size: 180px, auto;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 22px repeat-y, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 22px repeat-y;
  mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 22px repeat-y, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 22px repeat-y;
}
.buono p { margin: 0 0 10px; }
.buono__orario { font: 900 clamp(2.4rem, 4vw, 3.4rem)/.9 var(--titolo); color: var(--cornice); }
.buono__titolo { font: 800 1.5rem/1 var(--titolo); text-transform: uppercase; margin: 0 0 10px; }
.buono__prezzo { font: 900 3.4rem/1 var(--titolo); }
.buono__nota { font-size: .9rem; border-top: 1px dashed rgba(27, 26, 22, .5); padding-top: 10px; }

/* ---------- alla spina: la pinta che si spilla scorrendo ---------- */
.spine { position: relative; height: 330vh; background: radial-gradient(42% 46% at 28% 52%, rgba(255, 186, 104, .17), transparent 70%), linear-gradient(180deg, var(--parete-scura), #061f15); }
.spine.scura { background: radial-gradient(42% 46% at 28% 52%, rgba(239, 225, 191, .12), transparent 70%), linear-gradient(180deg, var(--parete-scura), #061f15); }
.spine__palco { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 30px; padding: 72px var(--gutter) 24px; }
.spine__scena { height: 100%; min-height: 0; display: grid; place-items: end center; }
.pinta { height: min(84svh, 780px); width: auto; max-width: 100%; overflow: visible; }
.pinta .bolla { fill: rgba(255, 246, 220, .6); animation: sale var(--d, 3s) linear var(--r, 0s) infinite; }
.spine.scura .pinta .bolla { fill: rgba(239, 225, 191, .28); animation-direction: reverse; } /* nella Guinness le bollicine scendono */
@keyframes sale { from { transform: translateY(0); } to { transform: translateY(-300px); } }
.getto-flusso { animation: scorre-getto .5s linear infinite; }
@keyframes scorre-getto { to { stroke-dashoffset: -20; } }
.spine__testo { max-width: 520px; }
.spine__intro { margin: 0 0 22px; }
.spine__scelta { display: inline-flex; margin: 0 0 26px; border: 2px solid rgba(243, 231, 207, .5); }
.spine__birra { min-height: 44px; padding: 10px 18px; border: 0; background: transparent; color: var(--gesso); font: 400 1.25rem/1 var(--titolo); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.spine__birra[aria-pressed="true"] { background: var(--legno-chiaro); color: var(--inchiostro); }
.passi { list-style: none; margin: 0 0 22px; padding: 0 0 0 22px; border-left: 3px solid rgba(201, 139, 78, .35); display: grid; gap: 14px; }
.passi li { opacity: .3; transition: opacity .35s ease, transform .35s ease; font-size: 1.05rem; }
.passi li.attivo { opacity: 1; transform: translateX(6px); }
.passi li b { font: 400 2rem/1 var(--titolo); text-transform: uppercase; color: var(--legno-chiaro); margin-right: .2em; }
.spine__nota { margin: 0; font-size: .9rem; opacity: .75; font-style: italic; }
.spine.ferma { height: auto; }
.spine.ferma .spine__palco { position: static; height: auto; min-height: 100svh; }
.spine.ferma .passi li { opacity: 1; transform: none; }

/* ---------- la lineup ---------- */
.lineup {
  padding: 100px var(--gutter) 110px; color: var(--inchiostro);
  background: var(--grana-lieve), linear-gradient(180deg, #d9d4c8, var(--muro-segnaletico));
  background-size: 180px, auto; position: relative;
}
.lineup__testa { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: end; margin-bottom: 34px; }
.lineup__testa p { margin: 0 0 .9em; max-width: 42ch; }
.muro {
  position: relative; height: clamp(380px, 40vw, 500px); overflow: hidden;
  background: repeating-linear-gradient(180deg, transparent 0 calc(100% / 9 - 1px), rgba(27, 26, 22, .55) calc(100% / 9 - 1px) calc(100% / 9)),
    linear-gradient(180deg, #e7e3d9, #d9d4c8);
  border: 2px solid var(--inchiostro);
}
.muro__metro { position: absolute; inset: 0 auto 0 0; display: grid; grid-template-rows: repeat(9, 1fr); padding: 0 8px; pointer-events: none; z-index: 1; }
.muro__metro span { align-self: end; font: 700 .8rem/1 var(--testo); padding-bottom: 3px; }
.muro__fila {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 0; padding: 0 3% 0 7%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; z-index: 2;
}
.muro__fila::-webkit-scrollbar { display: none; }
.sosp {
  --h: .8; flex: 1 0 auto; width: calc(100% / 13); min-width: 64px; height: 100%; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--inchiostro); scroll-snap-align: center;
  font: inherit;
}
.sosp svg { width: 100%; height: calc((100% - 42px) * var(--h)); fill: #26241f; overflow: visible; transition: transform .35s var(--ease), fill .35s; transform-origin: 50% 100%; filter: blur(.4px); }
.sosp .dett { fill: #45423a; }
.sosp .impronta { color: var(--carta); opacity: 0; transition: opacity .35s; }
.sosp:hover svg { transform: translateY(-4px); }
.sosp[aria-pressed="true"] svg { fill: #121110; transform: scale(1.04); filter: none; }
.sosp[aria-pressed="true"] .impronta { opacity: .95; }
.sosp:focus-visible { outline-offset: -3px; }
.cartello {
  display: block; height: 42px; margin-top: 0; padding: 5px 4px 0; width: 100%; text-align: center;
  background: var(--inchiostro); color: var(--carta); font: 700 .68rem/1.1 var(--testo); letter-spacing: .02em;
}
.cartello b { display: block; font: 800 .95rem/1.1 var(--titolo); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sosp[aria-pressed="true"] .cartello { background: var(--cornice); color: var(--gesso); }
.sosp:nth-child(1) { --h: .86; } .sosp:nth-child(2) { --h: .79; } .sosp:nth-child(3) { --h: .73; }
.sosp:nth-child(4) { --h: .93; } .sosp:nth-child(5) { --h: .82; } .sosp:nth-child(6) { --h: .77; }
.sosp:nth-child(7) { --h: .8; } .sosp:nth-child(8) { --h: .71; } .sosp:nth-child(9) { --h: .69; }
.sosp:nth-child(10) { --h: .64; } .sosp:nth-child(11) { --h: .9; } .sosp:nth-child(12) { --h: .97; }
.sosp:nth-child(13) { --h: .86; }
.muro__faro { /* il faro: un velo scuro con un buco di luce, si sposta solo con transform */
  position: absolute; top: 0; bottom: 0; left: 0; width: 3200px; z-index: 3; pointer-events: none;
  background: radial-gradient(120px 70% at 1600px 46%, rgba(255, 248, 225, .2) 0, rgba(255, 248, 225, .06) 55%, rgba(14, 16, 14, .6) 100%);
  transform: translateX(-1600px); transition: transform .45s var(--ease);
}
.muro__comandi { position: absolute; right: 10px; top: 10px; z-index: 4; display: flex; gap: 6px; }
.freccia { width: 44px; height: 44px; background: var(--inchiostro); color: var(--carta); border: 0; font: 700 1.2rem/1 var(--testo); cursor: pointer; }
.freccia:hover { background: var(--cornice); }

.fascicolo-zona { display: grid; grid-template-columns: minmax(0, 860px) minmax(0, 1fr); gap: 40px; align-items: end; margin-top: 58px; position: relative; z-index: 5; padding-left: 4%; }
.fascicolo {
  position: relative; padding: 46px 30px 26px; transform: rotate(-1.1deg);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 270px); column-gap: 28px; align-content: start;
  background: var(--grana-lieve), linear-gradient(180deg, #ece2cc, var(--carta)); background-size: 180px, auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32), 0 1px 0 #b8a983;
}
.fascicolo__linguetta {
  position: absolute; top: -30px; left: 0; margin: 0; padding: 8px 18px 6px; background: var(--carta-scura);
  font: 700 .85rem/1 var(--testo); text-transform: uppercase; letter-spacing: .12em; clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}
.fascicolo__nome { grid-column: 1; font: 900 clamp(2rem, 4vw, 3.2rem)/.9 var(--titolo); text-transform: uppercase; margin: 0 0 18px; }
.fascicolo__dati, .fascicolo__cauzione { grid-column: 1; }
.fascicolo__dati { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; }
.fascicolo__dati dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; padding-top: .3em; opacity: .75; }
.fascicolo__dati dd { margin: 0; }
.fascicolo__dati dd:empty::before { content: "—"; }
mark { background: var(--giallo); color: var(--inchiostro); padding: 0 .25em; }
.reperto { /* la busta delle prove con il panino dentro */
  grid-column: 2; grid-row: 1 / span 3; align-self: center; position: relative; margin: 0; padding: 26px 10px 8px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, .32) 70%, rgba(255, 255, 255, .1)), rgba(220, 214, 196, .35);
  border: 1px solid rgba(27, 26, 22, .25); border-radius: 4px; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25), 0 10px 18px rgba(0, 0, 0, .12); transform: rotate(2.4deg);
}
.reperto::before { /* la chiusura a zip */
  content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 4px; border-top: 2px solid rgba(163, 32, 42, .7); border-bottom: 2px solid rgba(163, 32, 42, .7);
}
.reperto__etichetta { position: absolute; top: -14px; right: 10px; margin: 0; padding: 4px 10px; background: var(--cornice); color: var(--gesso); font: 400 1rem/1 var(--titolo); text-transform: uppercase; letter-spacing: .08em; transform: rotate(-3deg); }
.reperto__panino { width: 100%; height: auto; overflow: visible; }
.muro__flash { position: absolute; inset: 0; z-index: 6; background: #fffdf6; opacity: 0; pointer-events: none; }
.fascicolo__cauzione { margin: 0; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.fascicolo__cauzione b { display: block; font: 900 3.6rem/1 var(--titolo); color: var(--cornice); letter-spacing: 0; }
.timbro {
  position: absolute; right: 22px; bottom: 30px; margin: 0; padding: 6px 14px 4px;
  border: 4px solid var(--cornice); color: var(--cornice); font: 900 1.9rem/1 var(--titolo); text-transform: uppercase; letter-spacing: .08em;
  transform: rotate(-12deg); opacity: .9; mix-blend-mode: multiply;
  -webkit-mask: var(--grana-timbro); mask: var(--grana-timbro); -webkit-mask-size: 120px; mask-size: 120px;
}
.fascicolo-zona__note { font-size: .92rem; padding-bottom: 12px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; align-items: end; }
.foto--poster { transform: rotate(3deg); border: 7px solid var(--gesso); box-shadow: 0 18px 30px rgba(0, 0, 0, .3); }
.fascicolo-zona__note a { color: var(--cornice); font-weight: 700; }
.fascicolo-zona__note p { margin: 0 0 10px; }

/* ---------- menu ---------- */
.menu { padding: 100px var(--gutter); background: var(--grana), var(--parete); background-size: 180px, auto; }
.foglio {
  max-width: 1180px; margin: 0 auto; padding: 48px clamp(20px, 4vw, 54px) 40px; color: var(--inchiostro);
  background: var(--grana-lieve), linear-gradient(180deg, #ede4cf, var(--carta)); background-size: 180px, auto; transform: rotate(.5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}
.foglio__sotto { margin: 0 0 30px; font-style: italic; }
.foglio__colonne { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.foglio h3 { font: 800 1.7rem/1 var(--titolo); text-transform: uppercase; margin: 0 0 12px; border-bottom: 3px solid var(--inchiostro); padding-bottom: 6px; }
.foglio h3 small { font: 700 1rem/1 var(--testo); text-transform: none; color: var(--cornice); }
.foglio h3:not(:first-child) { margin-top: 28px; }
.voci { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.voci li { display: flex; gap: 10px; align-items: baseline; }
.voci li span { flex: 1; }
.voci li span::after { content: ""; display: inline-block; width: 100%; }
.voci small { display: block; font-size: .85rem; opacity: .75; }
.voci b, .elenco b { font: 800 1.35rem/1 var(--titolo); color: var(--cornice); white-space: nowrap; }
.elenco { margin: 0 0 12px; }
.elenco b { margin-left: .3em; }
.foglio__glutine { display: inline-block; background: var(--giallo); padding: 4px 8px; transform: rotate(-1deg); font-weight: 700; }

/* ---------- serate ---------- */
.serate { padding: 110px var(--gutter) 120px; background: radial-gradient(50% 40% at 80% 20%, rgba(255, 176, 102, .12), transparent 70%), var(--legno-pannelli); }
.serate__testa { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: end; margin-bottom: 50px; }
.serate__testa p { margin: 0 0 1em; max-width: 46ch; }
.serate__testa a { color: var(--legno-chiaro); }
.bacheca { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.1fr .8fr 1fr .9fr; gap: 28px; align-items: start; }
.locandina { position: relative; }
.locandina img { width: 100%; height: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
.locandina::before { content: ""; position: absolute; z-index: 2; width: 80px; height: 24px; top: -10px; left: 30%; background: rgba(230, 219, 195, .7); transform: rotate(4deg); }
.locandina p { margin: 14px 4px 0; font-size: .95rem; }
.locandina p b { font: 800 1.3rem/1 var(--titolo); text-transform: uppercase; color: var(--legno-chiaro); margin-right: .3em; }
.locandina:nth-child(1) { transform: rotate(-2deg); }
.locandina:nth-child(2) { transform: rotate(1.5deg) translateY(40px); }
.locandina:nth-child(3) { transform: rotate(-.8deg) translateY(-10px); }
.locandina:nth-child(4) { transform: rotate(2.4deg) translateY(56px); }
.locandina--foto img { border: 8px solid var(--gesso); }

/* ---------- feste ---------- */
.feste {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 50px; align-items: center;
  padding: 110px var(--gutter); background: var(--grana), var(--cornice); background-size: 180px, auto; color: var(--gesso);
}
.feste__titolo { font: 900 clamp(3rem, 8vw, 7.4rem)/.84 var(--titolo); text-transform: uppercase; margin: 0 0 28px; }
.feste .voce { max-width: 40ch; }
.feste .bottone { margin-top: 12px; box-shadow: 5px 5px 0 var(--inchiostro); }
.foto--festa { transform: rotate(2.2deg); border: 10px solid var(--gesso); border-bottom-width: 46px; box-shadow: 0 30px 50px rgba(0, 0, 0, .45); }

/* ---------- dove ---------- */
.dove { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 50px; padding: 110px var(--gutter) 100px; align-items: start; background: var(--grana) 0 0 / 180px, linear-gradient(180deg, var(--parete), var(--parete-scura)); }
.dove__via { font: 900 clamp(2.2rem, 5.4vw, 4.6rem)/.9 var(--titolo); text-transform: uppercase; margin: 0; color: #F3E7CF; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.dove__citta { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1 var(--titolo); text-transform: uppercase; margin: 6px 0 28px; }
.dove__consegna { margin: 26px 0 0; font-size: .95rem; opacity: .85; }
.orari { /* la lavagna degli orari nella cornice di legno */
  padding: 26px 26px 18px; border: 16px solid transparent;
  background: radial-gradient(60% 50% at 40% 30%, rgba(236, 232, 221, .05), transparent 70%) padding-box, linear-gradient(#121512, #121512) padding-box,
    linear-gradient(135deg, rgba(255, 214, 170, .16), rgba(0, 0, 0, .3)) border-box, var(--legno-vero) 0 0 / 420px auto border-box;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), 0 24px 40px rgba(0, 0, 0, .45);
}
.stato--grande { font-size: 1.15rem; margin-bottom: 18px; }
.orari__tabella { width: 100%; border-collapse: collapse; }
.orari__tabella th, .orari__tabella td { padding: 10px 0; border-bottom: 1px dashed rgba(236, 232, 221, .18); text-align: left; font-weight: 400; }
.orari__tabella td { text-align: right; font-variant-numeric: tabular-nums; }
.orari__tabella tr.oggi th, .orari__tabella tr.oggi td { color: var(--inchiostro); background: var(--legno-chiaro); font-weight: 700; }
.orari__tabella tr.oggi th { padding-left: 10px; } .orari__tabella tr.oggi td { padding-right: 10px; }

/* ---------- piede ---------- */
.piede { display: grid; grid-template-columns: auto 1fr minmax(0, 360px); gap: 30px; align-items: center; padding: 50px var(--gutter) 60px; background: linear-gradient(180deg, rgba(10, 4, 1, .55), rgba(10, 4, 1, .72)), var(--legno-vero) 0 0 / 760px auto; box-shadow: inset 0 3px 0 rgba(255, 214, 170, .18); font-size: .92rem; }
.piede p { margin: 0 0 6px; }
.piede__mono { width: 64px; height: auto; }
.piede__nome { font: 800 1.6rem/1 var(--titolo); text-transform: uppercase; }
.piede__demo { opacity: .6; font-size: .8rem; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .spine { height: 300svh; }
  .spine__palco { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; padding: 66px var(--gutter) 18px; }
  .pinta { height: 100%; max-height: 52svh; }
  .spine__testo .titolo { font-size: 2.6rem; margin-bottom: 4px; }
  .spine__intro, .spine__nota { display: none; }
  .spine__scelta { margin-bottom: 12px; }
  .passi { min-height: 3.4em; gap: 0; }
  .passi li:not(.attivo) { display: none; }
  .spine.ferma .passi li { display: block; }
  .hero { display: block; min-height: auto; }
  .scena { position: relative; height: 70svh; min-height: 460px; max-height: 760px; }
  .scena::after { background: linear-gradient(0deg, rgba(5, 6, 5, .92), rgba(5, 6, 5, 0) 22%); }
  .scena__poster { left: 50%; top: 48%; height: 64%; }
  .spina { left: 50%; top: 46%; }
  .scena__nota { right: 50%; transform: translateX(50%); bottom: 18px; white-space: nowrap; }
  .hero__testo { width: auto; padding: 0 var(--gutter) 60px; margin-top: -26px; }
  .hero__titolo { width: min(72%, 360px); }
}

@media (max-width: 1040px) {
  .testata__nav { display: none; }
  .testata .bottone { margin-left: auto; }
  .locale { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "testo testo" "banc banc" "lav buono"; }
  .bacheca { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 70px; }
  .sosp { width: 100px; flex: 0 0 100px; }
}

/* ---------- telefono ---------- */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .striscia__pausa { right: 50%; transform: translateX(50%) rotate(1.2deg); }
  .locale { grid-template-columns: 1fr; grid-template-areas: "testo" "banc" "lav" "buono"; padding-top: 80px; }
  .foto--lavagna { transform: rotate(1.6deg); width: 72%; justify-self: end; margin-top: 10px; }
  .buono { max-width: 360px; justify-self: center; margin-top: 20px; }
  .lineup__testa, .serate__testa { grid-template-columns: 1fr; }
  .muro { height: 380px; }
  .muro__fila { padding: 0 calc(50% - 60px); }
  .sosp { width: 120px; flex: 0 0 120px; }
  .muro__faro { transform: translateX(calc(-1600px + 50vw - var(--gutter))) !important; transition: none; }
  .fascicolo-zona { grid-template-columns: 1fr; margin-top: 50px; padding-left: 0; gap: 34px; }
  .fascicolo-zona__note { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 18px; }
  .fascicolo { padding: 42px 20px 24px; grid-template-columns: 1fr; }
  .reperto { grid-column: 1; grid-row: auto; order: -1; width: min(78%, 280px); justify-self: center; margin: 4px 0 18px; }
  .fascicolo__nome, .fascicolo__dati, .fascicolo__cauzione { grid-column: 1; }
  .timbro { right: 14px; bottom: 22px; font-size: 1.4rem; }
  .foglio__colonne { grid-template-columns: 1fr; gap: 10px; }
  .foglio { transform: none; }
  .bacheca { grid-template-columns: 1fr 1fr; gap: 18px; row-gap: 50px; }
  .locandina:nth-child(n) { transform: rotate(0deg); }
  .locandina:nth-child(odd) { transform: rotate(-1.5deg); }
  .locandina:nth-child(even) { transform: rotate(1.5deg) translateY(24px); }
  .feste, .dove { grid-template-columns: 1fr; gap: 36px; }
  .foto--festa { max-width: 340px; justify-self: center; }
  .piede { grid-template-columns: auto 1fr; }
  .piede__demo { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .striscia__binario { animation: none; }
}
