/* ═══════════════════════════════════════════════════════════
   Ca' dei Baloss · style.css
   Palette del logo e del sito storico: crema, rosso Baloss,
   giallo oro, mattone. Il rosso è l'accento delle azioni,
   l'oro è per prezzi ed etichette sulle parti scure.
   Le sezioni scure (.dark) ridefiniscono --bg/--fg/--hl.
   Forme: azioni = pillola, contenitori = 22px, pizze = cerchio.
   Livelli: nav 50 · menu mobile 45 · cookie 60 · grana 70
   ═══════════════════════════════════════════════════════════ */

:root {
  --crema: #fdf4e3;
  --crema-2: #f5e2c0;
  --crema-3: #ede0c4;
  --carta: #fffaf1;
  --rosso: #cc2200;
  --rosso-hover: #a81b00;
  --arancio: #e05a10;
  --oro: #f0a500;
  --oro-chiaro: #ffd166;
  --mattone: #8b3a1a;
  --mattone-scuro: #5c2209;
  --brace: #3d1508;
  --testo: #2e1005;
  --testo-70: rgba(46, 16, 5, .72);

  /* tema chiaro (default) */
  --bg: var(--crema);
  --fg: var(--testo);
  --fg-70: rgba(46, 16, 5, .72);
  --fg-45: rgba(46, 16, 5, .42);
  --fg-15: rgba(46, 16, 5, .14);
  --hl: var(--rosso);
  --shadow: rgba(74, 31, 10, .45);

  --f-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --sec: clamp(5rem, 11vw, 10rem);
  --r: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* tema scuro: hero, pizze del Baloss, bevande, nav, footer, overlay */
.dark, .nav, .mnav, .foot, .cookie, .lang-list {
  --fg: var(--crema);
  --fg-70: rgba(253, 244, 227, .74);
  --fg-45: rgba(253, 244, 227, .46);
  --fg-15: rgba(253, 244, 227, .16);
  --hl: var(--oro);
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
body::after { /* grana leggera, fissa: niente repaint durante lo scroll */
  content: ''; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rosso); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--oro); color: var(--brace); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 80;
  background: var(--oro); color: var(--brace); padding: .6rem 1rem; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ── Tipografia ── */
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 78;
  font-size: clamp(2.5rem, 5.6vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.035em;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--fg-70); max-width: 44ch; margin-top: 1rem; }
.price { font-family: var(--f-mono); font-weight: 500; color: var(--hl); white-space: nowrap; letter-spacing: -.02em; }
.sec-head { padding: 0 var(--pad); margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ── Bottoni ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .85rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--rosso); color: #fff; }
.btn-red:hover { background: var(--rosso-hover); }
.btn-ghost { border-color: var(--fg-45); color: var(--fg); background: transparent; }
.dark .btn-ghost { background: rgba(61, 21, 8, .3); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-light { background: var(--oro); color: var(--brace); }
.btn-light:hover { background: var(--oro-chiaro); }
.btn-ink { background: var(--mattone-scuro); color: var(--crema); }
.btn-sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .9375rem; }
.btn-lg { min-height: 62px; padding: 1rem 1.9rem; font-size: 1.0625rem; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.link-arrow {
  display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--fg-45); padding-bottom: 2px; transition: border-color .25s;
}
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: var(--hl); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ═══ NAV ═══ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
}
.nav.is-solid {
  background: rgba(92, 34, 9, .9);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 -3px 0 var(--oro), 0 6px 24px rgba(46, 16, 5, .25);
}
.nav.is-away { transform: translateY(-110%); pointer-events: none; }
.nav { background: rgba(92, 34, 9, .94); box-shadow: inset 0 -3px 0 var(--oro), 0 6px 24px rgba(46, 16, 5, .25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--hl); }
.nav-brand span { font: 800 1.2rem/1 var(--f-display); font-variation-settings: 'wdth' 80; letter-spacing: -.02em; }
.nav-links { display: flex; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: .4rem 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hl);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }

.lang { position: relative; }
.lang-flag, .lang-list img { width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); object-fit: cover; flex: none; }
.lang-btn {
  display: flex; align-items: center; gap: .45rem; height: 42px; padding: 0 .9rem;
  background: rgba(61, 21, 8, .35); border: 1.5px solid var(--fg-15); border-radius: 999px;
  font: 500 .875rem var(--f-mono);
}
.lang-list {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 170px; padding: .4rem;
  background: var(--brace); border: 1px solid var(--fg-15); border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(30, 10, 3, .6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.lang.is-open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list button {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; text-align: left; background: none; border: 0; padding: .65rem .8rem; border-radius: 10px; font-size: .95rem;
}
.lang-list button:hover, .lang-list button[aria-selected="true"] { background: var(--mattone-scuro); }
.lang-list button[aria-selected="true"]::after { content: ' ✓'; color: var(--hl); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(61, 21, 8, .35); border: 1.5px solid var(--fg-15); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--brace);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: 6rem var(--pad) 3rem;
  opacity: 0; transition: opacity .35s;
}
[hidden] { display: none !important; }
.mnav.is-open { opacity: 1; }
.mnav a {
  font: 800 clamp(2.6rem, 11vw, 4rem)/1.05 var(--f-display); font-variation-settings: 'wdth' 78; letter-spacing: -.03em;
  text-decoration: none; transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.mnav.is-open a { transform: none; opacity: 1; }
.mnav.is-open a:nth-child(2) { transition-delay: .05s; }
.mnav.is-open a:nth-child(3) { transition-delay: .1s; }
.mnav.is-open a:nth-child(4) { transition-delay: .15s; }
.mnav.is-open a:nth-child(5) { transition-delay: .2s; }
.mnav .mnav-tel { font: 500 1.2rem var(--f-mono); color: var(--hl); margin-top: 1.5rem; }
body.mnav-open { overflow: hidden; }

/* ═══ HERO ═══ */
.hero-logo { position: absolute; top: clamp(1rem, 3vh, 1.75rem); left: var(--pad); z-index: 5; width: clamp(52px, 5vw, 68px); height: auto; border-radius: 50%; border: 2px solid var(--oro); box-shadow: 0 8px 24px rgba(30, 10, 3, .4); }
.hero-lang { position: absolute; top: clamp(1rem, 3vh, 1.75rem); right: var(--pad); z-index: 5; }
.hero { position: relative; height: 560vh; background: #4e1e0f; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-poster, .hero-canvas, .hero-end {
  position: absolute; top: 50%; left: 63%;
  width: min(96vw, 165dvh); aspect-ratio: 16 / 9; height: auto;
  transform: translate(-50%, -50%);
  max-width: none; object-fit: cover;
  /* i bordi del tavolo sfumano nel blu della pagina */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(0deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(0deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.hero-end { display: none; }
.hero-canvas { opacity: 0; transition: opacity .4s; }
.hero-canvas.is-ready { opacity: 1; }
.hero-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(78, 30, 15, .88) 0%, rgba(78, 30, 15, .6) 30%, rgba(78, 30, 15, 0) 48%),
    linear-gradient(0deg, rgba(61, 21, 8, .6) 0%, rgba(61, 21, 8, 0) 26%);
}
.hero-copy { position: absolute; inset: 0; padding: 0 var(--pad); pointer-events: none; }
.hero-intro, .hero-stages, .hero-outro {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  width: min(36vw, 520px);
}
.hero-intro, .hero-outro, .hero-ctas a { pointer-events: auto; }
.hero-title {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: 'wdth' 76;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem); line-height: .93; letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--fg-70); max-width: 34ch; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-intro { animation: heroIn 1.2s var(--ease) both .15s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(calc(-50% + 30px)); } }

.hero-stages { height: 14rem; margin-top: -7rem; transform: none; }
.stage { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; }
.stage h2 {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: 'wdth' 76;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem); line-height: .92; letter-spacing: -.045em;
}
.stage p { margin-top: .9rem; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--fg-70); }
.hero-outro { opacity: 0; pointer-events: none; }

.hero-track {
  position: absolute; left: var(--pad); bottom: clamp(1.5rem, 4vh, 2.75rem);
  width: min(560px, calc(100% - 2 * var(--pad)));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  padding-top: .9rem; opacity: 0;
  font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .02em; color: var(--fg-45);
  counter-reset: st;
}
.hero-track::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--fg-15); border-radius: 2px; }
.hero-track-fill { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hl); transform-origin: left; transform: scaleX(0); border-radius: 2px; }
.hero-track li { transition: color .3s; }
.hero-track li::before { counter-increment: st; content: counter(st) ' '; }
.hero-track li.is-on { color: var(--fg); }

/* ═══ PIZZE DEL MESE ═══ */
.mese { padding: var(--sec) var(--pad); }
.mese-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.mese-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.mese-card--alt { margin-top: clamp(4rem, 14vw, 13rem); }
.mese-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 80px -30px var(--shadow); }
.mese-img img { width: 100%; height: 100%; object-fit: cover; scale: 1.2; }
.mese-body { position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 30rem; }
.sticker {
  display: inline-block; background: var(--oro); color: var(--brace);
  font: 500 .8rem/1 var(--f-mono); letter-spacing: .02em; padding: .55rem .9rem; border-radius: 999px;
  transform: rotate(-3deg); margin-bottom: 1rem;
}
.mese-body h3 {
  font: 800 clamp(2.6rem, 5vw, 4.6rem)/.95 var(--f-display); font-variation-settings: 'wdth' 76; letter-spacing: -.04em;
}
.mese-body p { margin-top: .9rem; color: var(--fg-70); font-size: 1.1rem; max-width: 38ch; }
.mese-body .price { display: block; margin-top: 1.1rem; font-size: 1.6rem; }

/* ═══ PIZZE DEL BALOSS (pan) ═══ */
.baloss { background: linear-gradient(180deg, var(--mattone-scuro) 0%, #7a3010 100%); }
.baloss-pin { height: 100vh; height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.baloss-track { display: flex; align-items: center; gap: clamp(2rem, 4vw, 4.5rem); padding: 0 var(--pad); will-change: transform; }
.baloss-intro { flex: 0 0 min(34vw, 460px); }
.pz { flex: 0 0 clamp(270px, 24vw, 360px); }
.pz-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--brace); box-shadow: 0 30px 60px -28px rgba(30, 10, 3, .8); }
.pz-img img { width: 100%; height: 100%; object-fit: cover; scale: 1.2; }
.pz-body { margin-top: 1.4rem; }
.pz-body h3 { font: 800 1.85rem/1 var(--f-display); font-variation-settings: 'wdth' 80; letter-spacing: -.03em; }
.pz-body p { margin-top: .6rem; color: var(--fg-70); font-size: .98rem; min-height: 4.8em; }
.pz-body .price { display: block; margin-top: .7rem; font-size: 1.25rem; }
.baloss-nav { display: none; }
.badge-new {
  display: inline-block; vertical-align: middle; margin-left: .3rem; position: relative; top: -.15em;
  background: var(--rosso); color: #fff; font: 500 .7rem/1 var(--f-mono); padding: .35rem .55rem; border-radius: 999px; letter-spacing: .02em;
}

/* ═══ CARTA (menù classico) ═══ */
.carta { padding: var(--sec) var(--pad); background: var(--crema-2); }
.carta-sheet {
  max-width: 1180px; margin: 0 auto; background: var(--carta); color: var(--testo);
  border-radius: 28px; padding: clamp(1.75rem, 5vw, 4.5rem);
  transform: rotate(-.6deg);
  box-shadow: 0 50px 100px -40px var(--shadow);
}
.carta-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tabs button {
  min-height: 44px; padding: .55rem 1.15rem; border-radius: 999px; border: 1.5px solid rgba(46, 16, 5, .22);
  background: transparent; color: var(--testo); font-weight: 600; transition: background-color .25s, color .25s, border-color .25s;
}
.tabs button[aria-selected="true"] { background: var(--mattone-scuro); border-color: var(--mattone-scuro); color: var(--crema); }
.carta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem clamp(2rem, 5vw, 4.5rem); }
.carta-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; }
.carta-list h3 { font: 700 1.3rem/1.1 var(--f-display); font-variation-settings: 'wdth' 85; letter-spacing: -.02em; }
.carta-list p { margin-top: .3rem; font-size: .95rem; line-height: 1.45; color: var(--testo-70); }
.carta-list .price { color: var(--rosso); font-size: 1.1rem; }
.carta-panel:not([hidden]) .carta-list { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.carta-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.5rem; border-top: 1.5px dashed rgba(46, 16, 5, .2); }
.carta-foot p { font-size: .9rem; color: var(--testo-70); max-width: 60ch; }

/* ═══ PIZZICHI (bento) ═══ */
.pizzichi { padding: clamp(3rem, 5vw, 4.5rem) 0 var(--sec); }
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(330px, auto); gap: 1rem;
  padding: 0 var(--pad);
}
.cell { position: relative; border-radius: var(--r); overflow: hidden; background: var(--brace); isolation: isolate; color: var(--crema); --fg-70: rgba(253, 244, 227, .78); --fg-45: rgba(253, 244, 227, .42); --hl: var(--oro); }
.cell > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cell:hover > img { transform: scale(1.04); }
.cell-spizz:hover > img { transform: none; }
.cell::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(46, 14, 4, .96) 0%, rgba(46, 14, 4, .82) 34%, rgba(46, 14, 4, .25) 62%, rgba(46, 14, 4, 0) 78%); }
.cell-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 2.5vw, 2rem); }
.cell h3 { font: 800 clamp(1.6rem, 2.4vw, 2.2rem)/1 var(--f-display); font-variation-settings: 'wdth' 80; letter-spacing: -.03em; }
.cell p { margin-top: .5rem; color: var(--fg-70); max-width: 40ch; }
.cell .price { display: block; margin-top: .6rem; font-size: 1.15rem; }
.cell-tagliere { grid-column: 1 / 7; grid-row: span 2; min-height: 680px; }
.cell-polpette { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; }
.cell-polpette > img { position: relative; grid-column: 1; grid-row: 1; z-index: 0; }
.cell-polpette::before { display: none; }
.cell-polpette .cell-body { position: relative; grid-column: 2; display: flex; flex-direction: column; justify-content: center; }
.cell-parmi { grid-column: 7 / 10; }
.cell-parmi > img, .cell-dolci > img { object-position: center 30%; }
.cell-parmi h3, .cell-dolci h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.cell-parmi .mini li, .cell-dolci p { font-size: .95rem; }
.cell-dolci { grid-column: 10 / 13; }
/* Spizzichin: come le polpette ma specchiato (testo a sinistra, foto a destra) */
.cell-spizz { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.cell-spizz::before { display: none; }
.cell-spizz > img { position: relative; grid-column: 2; grid-row: 1; z-index: 0; aspect-ratio: 16 / 9; }
.cell-spizz .mini { gap: .7rem; font-size: 1.05rem; }
.cell-spizz .cell-body, .cell-polpette .cell-body { align-items: center; text-align: center; padding: clamp(2.25rem, 4vw, 3.5rem); }
/* cornice oro doppia, come la copertina del menù stampato */
.cell-spizz .cell-body::before, .cell-polpette .cell-body::before,
.cell-spizz .cell-body::after, .cell-polpette .cell-body::after { content: ''; position: absolute; pointer-events: none; border-radius: 14px; }
.cell-spizz .cell-body::before, .cell-polpette .cell-body::before { inset: 16px; border: 1.5px solid rgba(240, 165, 0, .55); }
.cell-spizz .cell-body::after, .cell-polpette .cell-body::after { inset: 22px; border: 1px solid rgba(240, 165, 0, .22); border-radius: 10px; }
.orn { display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--oro); font-size: .7rem; margin: .9rem 0 .3rem; }
.orn::before, .orn::after { content: ''; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 165, 0, .75)); }
.orn::after { background: linear-gradient(90deg, rgba(240, 165, 0, .75), transparent); }
.cell .orn + .mini { margin-top: .6rem; }
.cell-spizz .cell-title, .cell-polpette .cell-title { justify-content: center; }
.cell-spizz .cell-body { position: relative; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; }

/* liste prezzi come nei menù da ristorante: il prezzo segue il nome nella stessa riga di lettura,
   piccolo e in oro, invece di stare in colonna (la colonna trasforma il menù in un listino) */
.mini { display: grid; gap: .5rem; }
.mini li { display: block; line-height: 1.4; text-wrap: pretty; }
.mini li > span:first-child { font-weight: 500; }
.mini .price { display: inline; margin: 0 0 0 .6em; font-size: .88em; letter-spacing: 0; }
.cell .mini { margin-top: .9rem; }
.cell-title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.tag-price {
  font: 500 .95rem/1 var(--f-mono); color: var(--brace); background: var(--oro);
  padding: .4rem .7rem; border-radius: 999px; letter-spacing: 0; transform: rotate(-3deg);
}
.mini--names li > span:first-child { font-weight: 400; }

/* ═══ LA CASA (album: foto vere stampate e appoggiate sul tavolo) ═══ */
.casa {
  background: var(--crema-2); padding: clamp(3.5rem, 6vw, 5.5rem) var(--pad); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.casa .h2 { font-size: clamp(2.8rem, 6vw, 5.6rem); text-wrap: balance; }
.casa-link { margin-top: 1.75rem; }
.chair { display: inline-block; }
.album { position: relative; height: clamp(560px, 52vw, 760px); }
.print { position: absolute; margin: 0; will-change: transform; }
.print-in {
  background: var(--carta); padding: clamp(.6rem, 1vw, .9rem) clamp(.6rem, 1vw, .9rem) 0; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(74, 31, 10, .18), 0 24px 48px -18px rgba(74, 31, 10, .5);
  transform: rotate(var(--r, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.print img { width: 100%; height: auto; display: block; border-radius: 2px; filter: saturate(1.05) contrast(1.02); }
.print figcaption {
  font: 500 clamp(.78rem, 1vw, .9rem)/1 var(--f-mono); color: var(--testo-70);
  padding: clamp(.8rem, 1.3vw, 1.15rem) .2rem clamp(.9rem, 1.4vw, 1.25rem);
}
.print:hover { z-index: 5; }
.print:hover .print-in { transform: rotate(0deg) scale(1.04); box-shadow: 0 2px 4px rgba(74, 31, 10, .2), 0 40px 70px -20px rgba(74, 31, 10, .55); }
.print--a { left: 0; top: 4%; width: 43%; z-index: 2; --r: -5deg; }
.print--b { right: 1%; top: 0; width: 38%; z-index: 1; --r: 6deg; }
.print--c { left: 24%; bottom: 0; width: 56%; z-index: 3; --r: -2.5deg; }

/* ═══ DA BERE (categorie a fisarmonica + video in loop della categoria aperta) ═══ */
.bere { background: linear-gradient(180deg, #6b2410 0%, var(--mattone) 100%); padding: var(--sec) var(--pad); }
.bere-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.bar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bar-cat { border-top: 1px solid var(--fg-15); }
.bar-cat:last-child { border-bottom: 1px solid var(--fg-15); }
.bar-cat h3 { margin: 0; }
.bar-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; padding: clamp(1.1rem, 2vw, 1.6rem) 0; text-align: left; color: var(--fg-45);
  transition: color .35s;
}
.bar-name { font: 800 clamp(2rem, 4.2vw, 3.6rem)/1 var(--f-display); font-variation-settings: 'wdth' 78; letter-spacing: -.035em; }
.bar-btn:hover, .bar-cat.is-open .bar-btn { color: var(--crema); }
.bar-icon { position: relative; width: 22px; height: 22px; flex: none; }
.bar-icon::before, .bar-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease); }
.bar-icon::after { transform: rotate(90deg); }
.bar-cat.is-open .bar-icon { color: var(--oro); }
.bar-cat.is-open .bar-icon::after { transform: rotate(0deg); }
.bar-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.bar-cat.is-open .bar-panel { grid-template-rows: 1fr; }
.bar-panel-in { overflow: hidden; }
.bar-panel .mini { gap: .8rem; padding: 0 0 clamp(1.4rem, 2.4vw, 2rem); font-size: 1.1rem; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .6s var(--ease); }
.bar-cat.is-open .bar-panel .mini { opacity: 1; transform: none; transition-delay: .12s; }
.bar-panel .price { color: var(--oro-chiaro); }
.bar-media {
  position: sticky; top: 104px; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--brace);
  box-shadow: 0 40px 80px -30px rgba(30, 10, 3, .7);
}
.bar-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.bar-video.is-on { opacity: 1; transform: none; }

/* ═══ PRENOTA ═══ */
.prenota {
  padding: var(--sec) var(--pad);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.prenota-title {
  font: 800 clamp(3.2rem, 8.4vw, 8.4rem)/.9 var(--f-display); font-variation-settings: 'wdth' 82; letter-spacing: -.035em;
  max-width: 10ch; text-wrap: balance;
}
.prenota-title em { font-style: normal; color: var(--rosso); }
.prenota .lead { margin-top: 1.5rem; }
.prenota-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

/* la giornata di oggi: fasce orarie su una linea 11:00-23:30, il pallino rosso è l'ora attuale */
.today { margin-top: clamp(2.5rem, 5vw, 3.75rem); max-width: 34rem; }
.today-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .9rem; font-weight: 600; }
.today-label { font: 700 1.2rem/1.2 var(--f-display); font-variation-settings: 'wdth' 85; text-transform: capitalize; }
.today-note { color: var(--fg-70); font-weight: 500; }
.today-bar { position: relative; height: 14px; border-radius: 999px; background: rgba(46, 16, 5, .1); }
.today-slots span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--oro); transform-origin: left; animation: slotIn 1.2s var(--ease) both; }
.today-slots span.is-past { background: rgba(240, 165, 0, .38); }
@keyframes slotIn { from { transform: scaleX(0); } }
.today-now { position: absolute; top: 50%; width: 0; height: 0; }
.today-now span {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--rosso); border: 3px solid var(--crema); box-shadow: 0 0 0 0 rgba(204, 34, 0, .45); animation: nowPing 2.2s infinite;
}
@keyframes nowPing { 70% { box-shadow: 0 0 0 12px rgba(204, 34, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(204, 34, 0, 0); } }
.today-ticks { position: relative; height: 1.4rem; margin-top: .55rem; font: 500 .78rem/1 var(--f-mono); color: var(--fg-45); }
.today-ticks span { position: absolute; left: var(--x); transform: translateX(-50%); }

/* biglietto: tacche laterali e taglio tratteggiato, come una prenotazione */
.ticket {
  position: relative; background: var(--brace); border-radius: var(--r);
  padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: 0 50px 90px -40px rgba(46, 16, 5, .65);
  transform: rotate(1.2deg); transition: transform .6s var(--ease);
}
.ticket:hover { transform: rotate(0deg); }
.ticket::before { content: ''; position: absolute; inset: 12px; border: 1.5px solid rgba(240, 165, 0, .45); border-radius: 14px; pointer-events: none; }
.ticket-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.ticket-top img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--oro); }
.ticket-top strong { display: block; font: 800 1.45rem/1 var(--f-display); font-variation-settings: 'wdth' 80; margin-bottom: .5rem; }
.ticket h3 { font: 700 1.15rem/1 var(--f-display); font-variation-settings: 'wdth' 85; margin-bottom: .6rem; color: var(--oro); }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed rgba(240, 165, 0, .5); margin: 1.6rem calc(-1 * clamp(1.75rem, 3vw, 2.5rem)); }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--crema); }
.ticket-cut::before { left: -14px; }
.ticket-cut::after { right: -14px; }
.ticket-where { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.ticket-links { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.status { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 122, 92, .16); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff7a5c; flex: none; }
.status.is-open { background: rgba(95, 211, 141, .16); }
.status.is-open .status-dot { background: #5fd38d; box-shadow: 0 0 0 0 rgba(95, 211, 141, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(95, 211, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 141, 0); } }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; color: var(--fg-70); }
.hours-row dd { font-family: var(--f-mono); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem 1.2rem; text-align: right; }
.hours-row.is-today { color: var(--oro); font-weight: 600; }
.hours-row.is-today dt::after { content: ' ●'; font-size: .6em; vertical-align: middle; }
.addr { font-size: 1.1rem; line-height: 1.5; }

/* ═══ FOOTER ═══ */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 2.5rem var(--pad) calc(2.5rem + env(safe-area-inset-bottom)); background: var(--brace); border-top: 3px solid var(--oro); font-size: .92rem; color: var(--fg-70);
}
.foot-brand { display: flex; align-items: center; gap: 1rem; }
.foot-brand img { width: 64px; height: 64px; border-radius: 50%; }
.foot-brand strong { display: block; font: 800 1.35rem/1.1 var(--f-display); color: var(--fg); font-variation-settings: 'wdth' 80; }
.foot-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { color: var(--fg); }
.foot-ai { font-size: .82rem; opacity: .75; }
.foot-credit a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--oro); text-underline-offset: 3px; }
.foot-credit a:hover { color: var(--oro); }

/* ═══ COOKIE + PRIVACY ═══ */
.cookie {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 60; max-width: 430px;
  background: var(--brace); border: 1px solid var(--fg-15); border-radius: var(--r);
  padding: 1.25rem 1.35rem; box-shadow: 0 30px 60px -20px rgba(30, 10, 3, .7);
  transform: translateY(130%); transition: transform .6s var(--ease);
  font-size: .95rem;
}
.cookie.is-in { transform: none; }
.cookie-actions { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.cookie-actions .link-btn { margin-right: auto; color: var(--fg-70); }
.privacy {
  max-width: 560px; width: calc(100% - 2rem); border: 0; border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--crema); color: var(--testo); font-size: .97rem;
}
.privacy::backdrop { background: rgba(46, 16, 5, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.privacy h2 { font: 800 2rem/1 var(--f-display); font-variation-settings: 'wdth' 80; margin-bottom: 1.25rem; }
.privacy p { margin-bottom: 1rem; line-height: 1.55; }
.privacy-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ═══ REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4) { transition-delay: .24s; }

/* ═══ TABLET / MOBILE ═══ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
}
@media (max-width: 899px) {
  .baloss-pin { height: auto; display: block; padding: var(--sec) 0; }
  .baloss-track {
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
    padding-bottom: 1rem; align-items: flex-start; scrollbar-width: none; flex-wrap: nowrap;
  }
  .baloss-track::-webkit-scrollbar { display: none; }
  .baloss-intro { flex-basis: 78vw; align-self: center; }
  .pz { flex-basis: 74vw; scroll-snap-align: start; }
  .pz-body p { min-height: 0; }
  .mese-grid { grid-template-columns: 1fr; }
  .mese-card--alt { margin-top: 0; }
  .carta-list { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento > .cell { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .cell-polpette { grid-template-columns: 1fr; }
  .cell-polpette > img { position: absolute; z-index: -2; }
  .cell-polpette::before { display: block; }
  .cell-polpette .cell-body { position: absolute; grid-column: 1; }
  .cell-spizz, .cell-polpette { display: block; }
  .cell-spizz > img, .cell-polpette > img { position: absolute; z-index: -2; aspect-ratio: auto; }
  .cell-spizz::before { display: block; }
  .cell-spizz .cell-body { position: absolute; }
  .cell-spizz .cell-body, .cell-polpette .cell-body { align-items: stretch; text-align: left; padding: clamp(1.25rem, 2.5vw, 2rem); }
  .cell-spizz .cell-body::before, .cell-polpette .cell-body::before, .cell-spizz .cell-body::after, .cell-polpette .cell-body::after { display: none; }
  .orn { justify-content: flex-start; }
  .cell-spizz .cell-title, .cell-polpette .cell-title { justify-content: flex-start; }
  .casa { grid-template-columns: 1fr; }
  .album { height: auto; display: flex; flex-direction: column; padding: 1rem 0 0; }
  .print { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .print--a { width: 80%; }
  .print--b { width: 70%; align-self: flex-end; margin-top: -22%; }
  .print--c { width: 94%; margin-top: -8%; align-self: center; }
  .bar { grid-template-columns: 1fr; }
  .bar-media { position: relative; top: 0; order: -1; aspect-ratio: 16 / 10; }
  .prenota { grid-template-columns: 1fr; }
  .ticket { transform: none; }
  .carta-sheet { transform: none; }
}
@media (max-width: 560px) {
  .nav { height: 64px; }
  .nav-brand span { display: none; }
  .nav-actions .btn-sm { padding: .55rem .9rem; }
  .btn-lg { width: 100%; }
}

/* Hero su schermi verticali: video quadrato al centro, testi sopra e sotto */
@media (max-aspect-ratio: 1/1) {
  .hero { height: 520vh; }
  .hero-poster, .hero-canvas, .hero-end {
    left: 50%; top: 47%; width: min(110vw, 80dvh); aspect-ratio: 1;
    -webkit-mask-image: radial-gradient(circle at center, #000 52%, transparent 71%);
    mask-image: radial-gradient(circle at center, #000 52%, transparent 71%);
    -webkit-mask-composite: source-over; mask-composite: add;
    background: transparent;
  }
  .hero-scrim { background: linear-gradient(180deg, #4e1e0f 0%, rgba(78, 30, 15, .85) 22%, rgba(78, 30, 15, 0) 42%, rgba(78, 30, 15, 0) 66%, rgba(61, 21, 8, .92) 100%); }
  .hero-intro, .hero-outro { top: calc(64px + 4vh); transform: none; width: auto; right: var(--pad); }
  .hero-intro { animation-name: heroInM; }
  @keyframes heroInM { from { opacity: 0; transform: translateY(24px); } }
  .hero-title { font-size: clamp(2.4rem, 10.5vw, 4rem); }
  .hero-sub { margin-top: .8rem; font-size: 1.02rem; }
  .hero-ctas { margin-top: 1.25rem; gap: .5rem; flex-wrap: nowrap; }
  .hero-ctas .btn { min-height: 46px; padding: .7rem 1.05rem; font-size: .94rem; }
  .hero-outro { top: auto; bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .hero-stages { top: auto; bottom: calc(4.5rem + env(safe-area-inset-bottom)); width: auto; right: var(--pad); margin: 0; height: 9rem; }
  .stage h2 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .stage p { margin-top: .4rem; font-size: 1.05rem; }
  .hero-track { font-size: .6rem; gap: .35rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
}

/* Movimento ridotto o niente GSAP: hero statico con la pizza finita */
.is-static .hero { height: auto; }
.is-static .hero-sticky { position: relative; min-height: 100dvh; }
.is-static .hero-poster, .is-static .hero-canvas, .is-static .hero-stages, .is-static .hero-outro, .is-static .hero-track { display: none; }
.is-static .hero-end { display: block; }
.is-static .baloss-pin { height: auto; display: block; padding: var(--sec) 0; }
.is-static .baloss-track { overflow-x: auto; scroll-snap-type: x mandatory; }
.is-static .pz { scroll-snap-align: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   SOLO MOBILE (rifinitura): nulla qui sotto tocca il desktop
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  /* Pizze del Baloss: titolo sopra il carosello (spostato da JS), card più grandi */
  .baloss-pin > .baloss-intro { padding: 0 var(--pad); margin-bottom: 1.75rem; }
  .baloss-track { gap: 1.1rem; }
  .pz { flex-basis: 78vw; }
  .pz:last-child { margin-right: var(--pad); }
  /* frecce e avanzamento sotto al carosello */
  .baloss-nav { display: flex; align-items: center; gap: .9rem; padding: 0 var(--pad); margin-top: 1.4rem; }
  .bn-btn {
    flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(61, 21, 8, .35); border: 1.5px solid var(--fg-15); color: var(--crema);
    transition: opacity .3s, background-color .25s, border-color .25s, transform .2s;
  }
  .bn-btn:active { transform: scale(.94); }
  .bn-next { background: var(--oro); border-color: var(--oro); color: var(--brace); }
  .bn-btn:disabled { opacity: .3; }
  .bn-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--fg-15); overflow: hidden; }
  .bn-bar span { display: block; height: 100%; width: 100%; background: var(--oro); border-radius: 3px; transform-origin: left; transform: scaleX(.11); transition: transform .25s ease-out; }
  .bn-count { flex: none; font: 500 .85rem/1 var(--f-mono); color: var(--fg-70); min-width: 3.2em; text-align: center; }
  /* piccola spinta la prima volta: fa capire che si scorre di lato */
  .baloss-track.is-nudge .pz { animation: nudge 1.3s var(--ease) 2; }
  @keyframes nudge { 0%, 100% { transform: none; } 40% { transform: translateX(-38px); } }

  /* tab del menù su una riga sola, scorrevole se serve */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding: .2rem; margin: -.2rem; }
  .tabs::-webkit-scrollbar { display: none; }
  .carta-sheet { padding: 1.75rem 1.25rem; }
  .tabs { gap: .35rem; }
  .tabs button { flex: 1 1 auto; padding: .55rem .6rem; font-size: .92rem; white-space: nowrap; }
  .badge-new { font-size: .75rem; }

  /* link comodi da toccare (almeno 44px) */
  .link-arrow { padding: .85rem 0 .3rem; }
  .ticket-links { gap: 0; }
  .casa-link { margin-top: .75rem; }
}
@media (max-width: 380px) {
  .tabs button { font-size: .84rem; padding: .5rem .45rem; }
}
@media (max-aspect-ratio: 1/1) {
  /* hero su telefono: video verticale 9:16 a tutta larghezza dall'alto, il fondo sfuma nel colore del tavolo;
     i testi stanno tutti in basso, sulla parte libera del tavolo, mai sopra la pizza */
  .hero { background: #4b2016; }
  .hero-lang .lang-btn { background: rgba(46, 16, 8, .72); border-color: rgba(253, 244, 227, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero-poster, .hero-canvas, .hero-end {
    left: 0; top: 0; transform: none; width: 100%; height: auto; aspect-ratio: 9 / 16;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .hero-scrim { background: linear-gradient(180deg, rgba(46, 16, 8, .5) 0%, rgba(46, 16, 8, 0) 14%, rgba(46, 16, 8, 0) 52%, rgba(52, 19, 10, .88) 70%, #4b2016 86%); }
  .hero-intro, .hero-outro { top: auto; bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
  .hero-intro { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; animation: none; }
  .hero-intro { animation-name: heroInM; }
  .hero-stages { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .hero-sub { font-size: 1rem; }
  .hero-ctas { margin-top: 1.1rem; }
  .is-static .hero-sticky { min-height: 100svh; }
}
@media (max-aspect-ratio: 1/1) {
  /* barra delle fasi nell'hero: su schermi stretti solo i numeri, leggibili */
  .hero-track li { font-size: 0; }
  .hero-track li::before { content: counter(st); font-size: .78rem; }
}

/* ═══ PROVA: hero desktop a tavolo pieno (pomodori, basilico, farina, mattarello).
   Per tornare alla versione precedente: togliere la classe hero--full dall'hero in index.html ═══ */
@media (min-aspect-ratio: 1/1) {
  .hero--full .hero-poster, .hero--full .hero-canvas, .hero--full .hero-end {
    left: 50%; top: 50%; width: max(100vw, 177.78dvh); aspect-ratio: 16 / 9; height: auto;
    transform: translate(-50%, -50%);
    -webkit-mask-image: none; mask-image: none;
  }
  .hero--full .hero-lang .lang-btn { background: rgba(46, 16, 8, .72); border-color: rgba(253, 244, 227, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero--full .hero-scrim {
    background:
      linear-gradient(90deg, rgba(46, 16, 8, .78) 0%, rgba(46, 16, 8, .5) 26%, rgba(46, 16, 8, 0) 46%),
      linear-gradient(0deg, rgba(46, 16, 8, .55) 0%, rgba(46, 16, 8, 0) 24%),
      linear-gradient(180deg, rgba(46, 16, 8, .35) 0%, rgba(46, 16, 8, 0) 14%);
  }
}

/* ═══ INTRO COL LOGO (prima visita della sessione) ═══
   L'uscita è gestita dal CSS stesso: anche se il JS non partisse, dopo ~1,3 s il sipario si alza da solo. */
.intro { display: none; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #6b2410 0%, var(--mattone-scuro) 45%, var(--brace) 100%);
  animation: introOut .85s cubic-bezier(.76, 0, .24, 1) 1.25s forwards;
}
.has-intro .intro.is-out { animation-delay: 0s; animation-duration: .6s; }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro-in { display: grid; justify-items: center; gap: 1.1rem; animation: introIn .7s var(--ease) both; }
@keyframes introIn { from { opacity: 0; transform: scale(.86); } }
.intro-badge { position: relative; width: clamp(150px, 22vw, 210px); aspect-ratio: 1; }
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 9s linear infinite; }
.intro-ring text { font: 600 13.5px var(--f-mono); letter-spacing: .14em; fill: var(--oro); }
.intro-badge img { position: absolute; inset: 21%; width: 58%; height: 58%; border-radius: 50%; box-shadow: 0 10px 30px rgba(20, 6, 2, .5); }
.intro-name {
  font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--f-display); font-variation-settings: 'wdth' 80; letter-spacing: -.02em;
  color: var(--crema); animation: introIn .7s var(--ease) .15s both;
}
/* il titolo dell'hero entra dopo il sipario */
.has-intro .hero-intro { animation-delay: 1.55s; }

/* ═══ LINEA DI CARICAMENTO DEL VIDEO (solo se si scorre prima che sia pronto) ═══ */
.hero-load { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 6; opacity: 0; transition: opacity .4s; pointer-events: none; }
.hero-load span { display: block; height: 100%; background: var(--oro); transform-origin: left; transform: scaleX(0); transition: transform .3s ease-out; box-shadow: 0 0 12px rgba(240, 165, 0, .6); }
.hero.is-waiting .hero-load { opacity: 1; }

/* ═══ INVITO A SCORRERE (all'arrivo sull'hero, sparisce al primo scroll) ═══ */
.scroll-cue {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: grid; place-items: end center; padding: 0 var(--pad) calc(clamp(4.5rem, 13vh, 8.5rem) + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 90% 70% at 50% 72%, rgba(30, 10, 3, .62) 0%, rgba(30, 10, 3, .38) 55%, rgba(30, 10, 3, .22) 100%);
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s;
}
.scroll-cue.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.sc-box { display: grid; justify-items: center; gap: 1.1rem; text-align: center; transform: translateY(14px); transition: transform .8s var(--ease); }
.scroll-cue.is-on .sc-box { transform: none; }
.sc-text {
  font: 800 clamp(1.55rem, 2.6vw, 2.3rem)/1.02 var(--f-display); font-variation-settings: 'wdth' 80; letter-spacing: -.025em;
  color: var(--crema); max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 20px rgba(20, 6, 2, .65);
}
/* computer: il mouse con la rotellina che scende */
.sc-mouse { position: relative; width: 34px; height: 54px; border: 2.5px solid var(--crema); border-radius: 18px; }
.sc-wheel { position: absolute; left: 50%; top: 9px; width: 5px; height: 11px; margin-left: -2.5px; border-radius: 3px; background: var(--oro); animation: scWheel 1.7s var(--ease) infinite; }
@keyframes scWheel { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: 1; } 70% { transform: translateY(19px); opacity: 0; } 100% { transform: translateY(19px); opacity: 0; } }
/* telefono: il dito che scorre verso l'alto */
.sc-touch { display: none; position: relative; width: 50px; height: 92px; border: 2.5px solid rgba(253, 244, 227, .9); border-radius: 999px; }
.sc-finger { position: absolute; left: 50%; bottom: 8px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 7px rgba(240, 165, 0, .28); animation: scSwipe 1.9s var(--ease) infinite; }
@keyframes scSwipe {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  14% { transform: translateY(0) scale(1); opacity: 1; }
  68% { transform: translateY(-46px) scale(1); opacity: 1; }
  100% { transform: translateY(-46px) scale(.6); opacity: 0; }
}
@media (hover: none) and (pointer: coarse) { .sc-mouse { display: none; } .sc-touch { display: block; } }
.sc-arrows i { display: block; width: 15px; height: 15px; margin: -5px auto 0; border-right: 2.5px solid var(--oro); border-bottom: 2.5px solid var(--oro); transform: rotate(45deg); animation: scArrow 1.5s ease-in-out infinite; }
.sc-arrows i + i { animation-delay: .2s; }
@keyframes scArrow { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sc-wheel, .sc-finger, .sc-arrows i { animation: none; }
  .sc-arrows i { opacity: .8; }
}

/* ═══ HERO SU TELEFONO: IL VIDEO PARTE DA SOLO (classe .hero-auto messa in <head>)
   Il desktop non usa nulla di questo blocco. Per tornare allo scroll anche su telefono:
   togliere la riga "hero-auto" nello script in <head> di index.html ═══ */
.hero-ctrl, .hero-play, .only-auto { display: none; }
/* su telefono l'hero è una schermata normale, non "agganciata": così quando Safari nasconde
   la barra dell'indirizzo il contenuto non deborda sopra la sezione successiva */
.hero-auto .hero { height: auto; }
.hero-auto .hero-sticky { position: relative; height: 100vh; height: 100svh; }
.hero-auto .hero-canvas, .hero-auto .scroll-cue { display: none; }
.hero-auto .hero-video {
  position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.hero-auto .hero-video.is-on { opacity: 1; }
.hero-auto .only-auto { display: inline-flex; }

/* pausa / play / rivedi: piccolo, sotto la lingua */
.hero-auto .hero-ctrl {
  position: absolute; z-index: 5; right: var(--pad); top: calc(clamp(1rem, 3vh, 1.75rem) + 54px);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 44px; height: 44px; padding: 0 .85rem; border-radius: 999px;
  background: rgba(46, 16, 8, .72); border: 1px solid rgba(253, 244, 227, .22); color: var(--crema);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 .9rem/1 var(--f-body); fill: currentColor;
  opacity: 0; transition: opacity .4s, background-color .25s, transform .2s;
}
.hero-auto .hero[data-state] .hero-ctrl { opacity: 1; }
.hero-auto .hero-ctrl:active { transform: scale(.94); }
.hero-ctrl svg, .hero-ctrl .hc-txt { display: none; }
.hero[data-state="playing"] .hc-pause, .hero[data-state="paused"] .hc-play { display: block; }
.hero[data-state="ended"] .hc-replay, .hero[data-state="ended"] .hc-txt { display: block; }
.hero-auto .hero[data-state="ended"] .hero-ctrl { background: var(--oro); border-color: var(--oro); color: var(--brace); }
.hero-auto .hero[data-state="blocked"] .hero-ctrl { opacity: 0; pointer-events: none; }

/* se il telefono blocca l'avvio automatico (es. risparmio energetico): grande ▶ da toccare */
.hero-auto .hero[data-state="blocked"] .hero-play {
  position: absolute; z-index: 5; left: 50%; top: 66%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 1rem; color: var(--crema); text-align: center;
  animation: heroInM .6s var(--ease) both;
}
.hero-play { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hp-ring { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--oro); color: var(--brace); fill: currentColor; padding-left: 5px; box-shadow: 0 0 0 10px rgba(240, 165, 0, .25), 0 16px 40px rgba(20, 6, 2, .5); }
.hp-txt { font: 800 1.5rem/1.05 var(--f-display); font-variation-settings: 'wdth' 80; letter-spacing: -.02em; max-width: 13ch; text-shadow: 0 2px 18px rgba(20, 6, 2, .7); }

/* ═══ SAFARI SU TELEFONO: zona di ora e batteria dello stesso marrone della barra ═══
   Safari colora quella zona con lo sfondo della pagina (sulla hero) o con la barra fissa in alto
   (solo se è piena). Lo sfondo pagina diventa marrone e le sezioni chiare hanno il loro crema. */
.hero-auto body { background-color: #5c2209; }
.hero-auto #mese, .hero-auto #pizzichi, .hero-auto #prenota { background-color: var(--crema); }
.hero-auto .nav, .hero-auto .nav.is-solid { background-color: #5c2209; }
/* Safari prende il colore dall'elemento fisso che trova 4px sotto il bordo alto:
   1) la grana non deve stare "attaccata" al body (sarebbe scambiata per il body): diventa un livello vero,
      quasi trasparente e non cliccabile, che Safari salta;
   2) la barra deve essere di un colore solo: niente sfocatura dietro. */
.hero-auto body::after { display: none; }
.grain-layer {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-auto .nav, .hero-auto .nav.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-auto { background-color: #5c2209; }
