/* ============================================================
   Food truck — landing scrollytelling (demo)
   Palette:  bg #1A120B / #211710   accenti #FF6B35 / #FFB347
   ============================================================ */

:root {
  --bg:          #1A120B;
  --bg-2:        #211710;
  --bg-3:        #2A1610;

  --ink:         rgba(255, 255, 255, 0.92);
  --ink-2:       rgba(255, 255, 255, 0.60);
  --ink-3:       rgba(255, 255, 255, 0.38);
  --hairline:    rgba(255, 255, 255, 0.10);

  --flame:       #FF6B35;
  --amber:       #FFB347;
  --grad:        linear-gradient(120deg, var(--flame), var(--amber));

  --font-sans:   "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif:  "Bricolage Grotesque", "Hanken Grotesk", -apple-system, sans-serif;  /* display */
  --font-mono:   "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap:        1180px;
  --pad:         clamp(1.25rem, 5vw, 4rem);

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);  /* ease-out forte: entrate */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

a, button, [tabindex] { touch-action: manipulation; }

::selection { background: rgba(255, 107, 53, 0.3); }

/* ---------- focus visibile ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}
.cta:focus-visible {
  outline-color: #fff;
  outline-offset: 3px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--amber);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

/* ---------- tipografia condivisa ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.display {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.display--sm { font-size: clamp(2.6rem, 8vw, 5rem); }

.headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

/* leggibilita' degli overlay sopra il piatto */
.layer .headline { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55); }
.layer .body { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--ink);
  font-weight: 500;
}

.sub { color: var(--ink-2); max-width: 34ch; }

.body { color: var(--ink-2); font-size: 1.05rem; max-width: 40ch; }
.list { list-style: none; display: grid; gap: 0.6rem; }
.list li { padding-left: 1.1rem; position: relative; }
.list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--grad);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0 var(--pad);
  /* opacity + transform sono guidati dallo scroll in JS (render()):
     la nav emerge progressivamente, 1:1 con lo scroll, senza transizione */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: background-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}
.nav.is-visible {
  pointer-events: auto;
  background: rgba(20, 13, 8, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav__row {
  max-width: var(--wrap);
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__links a { position: relative; padding: 0.4rem 0; transition: color 0.2s ease; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); }
  .nav__links a:hover::after { transform: scaleX(1); }
}
.nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__toggle { display: none; }

/* drawer mobile — nascosto di default e su desktop; su mobile
   resta in layout e apre/chiude in transizione (vedi @media 900px) */
.nav__drawer { display: none; }
.nav__drawer a {
  padding: 0.85rem 0.25rem;
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
}
.nav__drawer a:last-child { border: 0; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.62rem; text-decoration: none; }
.logo__badge { height: 40px; width: auto; display: block; }
.logo__word {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.logo__word span { color: var(--amber); }
.footer .logo__badge { height: 50px; }
.footer .logo__word { font-size: 1.32rem; }
@media (max-width: 560px) {
  .nav .logo__word { display: none; }
}

/* ---------- CTA ---------- */
.cta {
  --pad-y: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad-y) 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1A120B;
  background: var(--grad);
  border: 1px solid rgba(255, 179, 71, 0.5);
  box-shadow: 0 8px 30px -8px rgba(255, 107, 53, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -8px rgba(255, 107, 53, 0.6);
    filter: brightness(1.05);
  }
}
.cta:active { transform: scale(0.97); transition-duration: 0.1s; }
.cta--sm { --pad-y: 0.6rem; padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.cta--block { width: 100%; margin-top: 0.75rem; }
.cta--ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(255, 179, 71, 0.4);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .cta--ghost:hover { background: rgba(255, 179, 71, 0.1); border-color: var(--amber); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink-2); font-weight: 500; font-size: 0.95rem;
  transition: color 0.18s ease;
}
.link-arrow::after { content: "→"; transition: transform 0.18s ease; }
.link-arrow:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { color: var(--ink); }
  .link-arrow:hover::after { transform: translateX(3px); }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s, filter 0.5s var(--ease-out);
}
.preloader.is-done { opacity: 0; visibility: hidden; filter: blur(8px); }
.preloader.is-done .preloader__inner { transform: scale(0.96); transition: transform 0.5s var(--ease-out); }
.preloader__inner { display: grid; justify-items: center; gap: 1.75rem; }
.preloader__badge {
  width: clamp(92px, 22vw, 120px);
  height: auto;
  animation: badge-breathe 3.2s ease-in-out infinite;
}
.preloader__bar {
  width: 180px; height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__fill {
  display: block; height: 100%; width: 0%;
  background: var(--grad);
  transition: width 0.3s linear;
}
@keyframes badge-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.86; transform: scale(0.985); }
}

/* ============================================================
   SCROLLYTELLING
   ============================================================ */
.scrolly {
  position: relative;
  /* durata scroll: ~3,2 schermate. Piu' corto = scrub piu' reattivo,
     resta comunque ~18px per frame (fluido). Vedi main.js. */
  height: 420vh;
}
.scrolly__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.scrolly__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* vignettatura per fondere il canvas con lo sfondo pagina */
.scrolly__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 120% at 50% 42%, transparent 60%, rgba(20, 13, 8, 0.55) 100%),
    radial-gradient(90% 70% at 50% 118%, rgba(255, 107, 53, 0.12), transparent 55%);
}

/* ---------- layer di testo ---------- */
.layer {
  position: absolute;
  z-index: 3;
  max-width: min(90vw, 40rem);
  display: grid;
  gap: 1rem;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(7px);
  /* uscita rapida (l'utente sta gia' guardando il beat successivo),
     entrata piu' distesa e cinematografica */
  transition: opacity 0.34s var(--ease-out), transform 0.34s var(--ease-out),
              filter 0.34s var(--ease-out);
  will-change: opacity, transform, filter;
}
.layer.is-active {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
              filter 0.55s var(--ease);
}

.layer--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 24px));
  text-align: center;
  justify-items: center;
}
/* velo sfocato dietro il testo centrato (bordi sfumati, niente rettangolo) */
.layer--center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210%;
  aspect-ratio: 1.3;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(14, 10, 5, 0.7), rgba(14, 10, 5, 0.4) 45%, transparent 78%);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  -webkit-mask: radial-gradient(closest-side, #000 42%, transparent 80%);
  mask: radial-gradient(closest-side, #000 42%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
.layer--center .lead,
.layer--center .sub,
.layer--center .display {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.layer--center .sub { color: rgba(255, 255, 255, 0.78); }
.layer--center.is-active { transform: translate(-50%, -50%); }

/* pannello sfocato dietro i testi laterali — alone morbido, niente
   bordo netto: si fonde nella scena invece di tagliarla */
.layer--left,
.layer--right {
  padding: 1.5rem 1.75rem;
  border-radius: 22px;
  background: rgba(14, 9, 4, 0.32);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  box-shadow: 0 0 54px 26px rgba(14, 9, 4, 0.32);
}

.layer--left  { left: var(--pad); top: 50%; transform: translateY(calc(-50% + 24px)); }
.layer--left.is-active  { transform: translateY(-50%); }

.layer--right { right: var(--pad); top: 50%; text-align: right; justify-items: end; transform: translateY(calc(-50% + 24px)); }
.layer--right.is-active { transform: translateY(-50%); }
.layer--right .list li { padding-left: 0; padding-right: 1.1rem; }
.layer--right .list li::before { left: auto; right: 0; }

.scroll-hint {
  margin-top: 2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--amber);
}
.scroll-hint__txt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.scroll-hint__chev {
  animation: nudge 1.7s ease-in-out infinite;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
}
@keyframes nudge {
  0%, 100% { transform: translateY(-2px); opacity: 0.55; }
  50%      { transform: translateY(3px);  opacity: 1; }
}

.actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }

/* ---------- callout diagramma ---------- */
.callouts { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease-out); }
.callouts.is-active { opacity: 1; }
.callout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.8);
  padding-right: 3.5rem;
  text-align: right;
  transform: translateY(-50%);
}
.callout::before {
  content: ""; position: absolute; right: 0.6rem; top: 50%;
  width: 2.6rem; height: 2px; border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 179, 71, 0.6);
}
.callout::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(255, 179, 71, 0.7);
}
.callout--pane         { left: 6%;  top: 26%; }
.callout--guarnizioni  { left: 6%;  top: 42%; }
.callout--ripieno      { left: 6%;  top: 58%; }
.callout--salsa        { left: 6%;  top: 74%; }

/* ---------- strada + camioncino: indicatore di scroll ---------- */
.road {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.road::before { /* manto stradale + tratteggio centrale */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  height: 2px;
  background:
    linear-gradient(rgba(255,255,255,0.16), rgba(255,255,255,0.16)) left / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-3) 0 14px, transparent 14px 30px) left bottom / 200% 1px;
  background-position-x: 0, var(--road-dash, 0px);
}
.road__trail { /* asfalto "percorso" */
  position: absolute;
  left: 0; bottom: 12px;
  height: 5px;
  width: 100%;
  transform: scaleX(var(--road-p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, rgba(255,107,53,0.4), var(--amber));
  border-radius: 3px;
}
.road__truck {
  position: absolute;
  bottom: 11px;
  left: clamp(3%, calc(3% + var(--road-p, 0) * 91%), 96%);
  width: 42px; height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
}

/* ============================================================
   SEZIONI STANDARD
   ============================================================ */
.section {
  position: relative;
  z-index: 5;
  background: var(--bg);
  padding: clamp(4.5rem, 12vw, 9rem) 0;
  border-top: 1px solid var(--hairline);
}
.section--alt { background: var(--bg-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 760px; }

.section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0.6rem 0 2.5rem;
  max-width: 20ch;
}

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; align-items: start; }

.prose { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 1.25rem; max-width: 62ch; }
.prose:last-child { margin-bottom: 0; }
.prose--ph {
  color: var(--amber);
  font-style: italic;
  font-size: 0.98rem;
  padding-left: 1rem;
  border-left: 2px dashed rgba(255, 179, 71, 0.5);
}

/* scroll-slide: fallback verticale una-tantum (mobile) */
.slide-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.slide-reveal.is-visible { opacity: 1; transform: none; }

/* Storia: testo a sinistra, furgone a destra, affiancati */
.storia-grid { align-items: center; }
.storia-text .prose { max-width: 46ch; }

/* placeholder grafico del furgone nella Storia (demo: nessuna foto reale) */
.storia-truck {
  margin: 0;
}
.storia-truck__ph {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  margin-left: auto; /* spinta a destra nella sua colonna */
  border: 1px solid rgba(242, 180, 87, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(242, 180, 87, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.03);
}
.storia-truck__ph svg {
  width: 55%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

.note { color: var(--ink-3); font-size: 0.9rem; margin: 1.75rem 0; max-width: 60ch; }
.note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- ingredienti: foto incorniciate ---------- */
.ingr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.ingr__item { display: grid; gap: 0.55rem; }
.ingr__frame {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  margin-bottom: 0.7rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 40px -22px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.35s var(--ease-out);
}
.ingr__frame::after { /* velo caldo in basso + cornice sottile */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(transparent 52%, rgba(20, 13, 8, 0.42));
  box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.14) inset;
}
.ingr__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.96) contrast(1.03);
  transform: scale(1.001);
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ingr__item:hover .ingr__frame {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 26px 55px -20px rgba(0, 0, 0, 0.75);
  }
  .ingr__item:hover .ingr__frame img { transform: scale(1.055); }
}
.ingr__item h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}
.ingr__item p { color: var(--ink-2); font-size: 0.98rem; max-width: 36ch; }

/* ---------- dove: scheda luogo + mappa ---------- */
.place__addr {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hours {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
  margin-bottom: 1.4rem;
}
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.hours__row span:first-child { color: var(--ink); font-weight: 500; }
.hours__row span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours__row--off span:last-child { color: var(--ink-3); }
.place__phone { margin-bottom: 1.5rem; }
.place__phone a {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.place__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.mapcard {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-3);
}
.mapcard__map {
  position: absolute; inset: 0;
  /* tile Esri Dark Gray abbassate e scaldate verso il carbone della pagina */
  filter: brightness(0.62) contrast(1.15) sepia(0.32) hue-rotate(-10deg) saturate(1.2);
}
.mapcard::before { /* velo scuro per far respirare la label in alto */
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(20, 13, 8, 0.85) 0%, rgba(20, 13, 8, 0) 32%);
}
.mapcard .leaflet-container { background: var(--bg-3); font: inherit; }
.mapcard .leaflet-control-attribution {
  background: rgba(20, 13, 8, 0.7);
  color: var(--ink-3);
  font-size: 10px;
}
.mapcard .leaflet-control-attribution a { color: var(--ink-2); }
.mapcard__pin {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--flame);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.3), 0 3px 10px rgba(0,0,0,0.7);
}
.mapcard__pin::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 53, 0.6);
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0%       { transform: scale(1);   opacity: 0.55; }
  70%, 100%{ transform: scale(2.8); opacity: 0; }
}
.mapcard__label {
  position: absolute; left: 0; right: 0; top: 0;
  z-index: 500;
  padding: 0.85rem 1rem 1.6rem;
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(rgba(20, 13, 8, 0.94), transparent);
  pointer-events: none;
}
.mapcard__open {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  z-index: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--ink);
  background: rgba(20, 13, 8, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
}
@media (hover: hover) and (pointer: fine) {
  .mapcard__open:hover { border-color: var(--amber); color: #fff; }
}

/* ---------- menu ---------- */
.menu { display: grid; gap: 1.5rem; }
.menu__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
}
.menu__name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.menu__dots { border-bottom: 1px dotted var(--ink-3); transform: translateY(-0.3em); }
.menu__price {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.menu__price::before { content: "€ "; font-size: 0.8em; color: var(--ink-3); }
.menu__desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.95rem; max-width: 54ch; }
.menu + .note { margin-bottom: 2rem; }

/* ---------- recensioni ---------- */
.reviews__score {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  margin-bottom: 1.5rem;
}
.reviews__num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.reviews__stars { display: inline-flex; gap: 3px; color: var(--amber); align-self: center; }
.reviews__stars svg { fill: currentColor; }
.reviews__count { color: var(--ink-2); font-size: 0.95rem; align-self: center; }
.reviews__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1.5rem;
  max-width: 24ch;
}
.reviews .section__title { max-width: 24ch; }
.reviews > .prose { max-width: 52ch; margin-top: 2.5rem; }
.reviews .cta { margin-top: 0.5rem; }

/* ---------- muro di recensioni (colonne che scorrono) ---------- */
.reviews-wall {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  max-height: 560px;
  overflow: hidden;
  /* dissolvenza in alto e in basso, il testo non si taglia di netto */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.reviews-wall__col { flex: 1; min-width: 0; }
.reviews-wall__col--2,
.reviews-wall__col--3 { display: none; }

.reviews-wall__track {
  display: flex;
  flex-direction: column;
  animation: reviews-scroll var(--dur, 42s) linear infinite;
  will-change: transform;
}
.reviews-wall__col:nth-child(1) .reviews-wall__track { --dur: 44s; }
.reviews-wall__col:nth-child(2) .reviews-wall__track { --dur: 56s; }
.reviews-wall__col:nth-child(3) .reviews-wall__track { --dur: 50s; }
.reviews-wall:hover .reviews-wall__track,
.reviews-wall:focus-within .reviews-wall__track { animation-play-state: paused; }

.reviews-wall__group { display: flex; flex-direction: column; }

@keyframes reviews-scroll {
  to { transform: translateY(-50%); }
}

.tcard {
  margin: 0 0 1.5rem;
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: 18px;
  background: var(--bg-3);
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}
.tcard blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
.tcard blockquote::before { content: "\201C"; color: var(--amber); margin-right: 0.1em; }
.tcard blockquote::after  { content: "\201D"; color: var(--amber); margin-left: 0.05em; }
.tcard figcaption {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tcard__name { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.tcard__src { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }

@media (min-width: 620px) {
  .reviews-wall__col--2 { display: block; }
}
@media (min-width: 980px) {
  .reviews-wall__col--3 { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 5;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
}
.footer__brand { max-width: 30ch; display: grid; gap: 0.75rem; }
.footer__brand p { color: var(--ink-2); font-size: 0.92rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; height: fit-content; }
.footer__nav a { color: var(--ink-2); font-size: 0.9rem; transition: color 0.2s; }
.footer__nav a:hover { color: var(--ink); }
.footer__fine { padding-top: 1.75rem; display: grid; gap: 0.4rem; }
.footer__fine p { color: var(--ink-3); font-size: 0.8rem; }
.footer__fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  z-index: 150;
  max-width: min(92vw, 30rem);
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  background: rgba(20, 13, 8, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  /* Storia in colonna: furgone sopra il testo, come prima */
  .storia-truck { order: -1; }
  .storia-truck__ph { max-width: 460px; margin: 0 auto; }
  .storia-text .prose { max-width: 62ch; }
  /* card centrate nella colonna (il titolo sezione resta a sinistra) */
  .ingr { grid-template-columns: 1fr; gap: 2.5rem; justify-items: center; }
  .ingr__item { max-width: 460px; width: 100%; }
  .mapcard { aspect-ratio: 16 / 11; }
  .place__actions .cta { flex: 1 1 auto; }
  .nav__links, .cta--sm { display: none; }
  .nav__toggle {
    display: grid;
    gap: 5px;
    width: 42px; height: 42px;
    place-content: center;
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }
  .nav__drawer {
    display: grid;
    gap: 0.25rem;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out),
                opacity 0.22s var(--ease-out), visibility 0.3s;
  }
  .nav__drawer:not([hidden]) {
    max-height: 22rem;
    padding: 0.5rem 0 1.25rem;
    opacity: 1;
    visibility: visible;
    border-top-color: var(--hairline);
  }
  /* nav piu' opaca quando il drawer e' aperto */
  .nav:has(.nav__drawer:not([hidden])).is-visible,
  .nav:has(.nav__drawer:not([hidden])) {
    background: rgba(17, 11, 6, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
  .callouts { display: none; }

  /* mobile: tutti i testi nella fascia bassa, centrati. Un'unica
     sfumatura verso #1A120B fa da fondo per OGNI schermata: nessun
     riquadro o pannello dietro i singoli testi, resa uniforme. */
  .scrolly__glow {
    background:
      linear-gradient(180deg,
        transparent 28%,
        rgba(16, 10, 6, 0.5) 43%,
        rgba(16, 10, 6, 0.93) 54%,
        var(--bg) 66%),
      radial-gradient(90% 55% at 50% 122%, rgba(255, 107, 53, 0.12), transparent 55%);
  }
  .layer {
    left: var(--pad); right: var(--pad);
    top: auto; bottom: calc(46px + 4vh);
    max-width: none;
    gap: 0.7rem;
    text-align: center; justify-items: center;
    transform: translateY(20px);
    padding: 0; background: none; border: 0; border-radius: 0;
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .layer .scroll-hint { margin-top: 1rem; }
  .layer.is-active { transform: none; }
  .layer--center { left: var(--pad); top: auto; }
  .layer--center.is-active { transform: none; }
  .layer--left, .layer--center, .layer--right { text-align: center; justify-items: center; }
  .layer--center::before { display: none; }
  /* niente pannelli: la leggibilita' la danno la sfumatura di fondo
     e un'ombra morbida sul testo, uguale per tutte le schermate */
  .layer .kicker { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
  .layer .headline,
  .layer .body,
  .layer .lead,
  .layer .sub,
  .layer .display { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }
  .layer .body,
  .layer .sub { margin-left: auto; margin-right: auto; }
  /* la lista puntata riempie la colonna: titolo centrato, righe
     allineate a sinistra che vanno a capo dentro lo schermo */
  .layer--right .list { justify-self: stretch; justify-items: start; width: 100%; text-align: left; }
  .layer--right .list li { padding-left: 1.1rem; padding-right: 0; text-align: left; }
  .layer--right .list li::before { left: 0; right: auto; }
  .layer--center .actions { justify-content: center; }
  .display { font-size: clamp(2.6rem, 12vw, 3.7rem); }
  .display--sm { font-size: clamp(2.1rem, 8vw, 2.8rem); }

  .road { height: 38px; }
  .road__truck { width: 34px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .menu__item { grid-template-columns: 1fr auto; }
  .menu__dots { display: none; }
  .slot { grid-template-columns: 2.5rem 1fr; }
  .slot__time { grid-column: 2; }
}

/* ============================================================
   REDUCED MOTION  — niente scrub, sezioni statiche
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* gentler, non zero: si tengono i fade di opacity/colore, si taglia
     la percezione del movimento e si spengono i loop */
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 120ms !important;
  }
  .scrolly { height: auto; }
  .scrolly__sticky { position: relative; height: auto; overflow: visible; }
  .scrolly__canvas { position: relative; height: 78vh; }
  .layer {
    position: relative; opacity: 1; transform: none; filter: none;
    left: auto; right: auto; top: auto; inset: auto;
    max-width: var(--wrap); margin: 3rem auto; padding: 0 var(--pad);
    text-align: left; justify-items: start;
    background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .layer--center { transform: none; }
  .layer--center::before { display: none; }
  .scroll-hint, .callouts, .road { display: none; }
  .slide-reveal { opacity: 1 !important; transform: none !important; }
  .nav { position: sticky; opacity: 1; transform: none; pointer-events: auto; background: rgba(20,13,8,0.9); }

  /* muro recensioni: niente scorrimento, griglia statica */
  .reviews-wall {
    max-height: none; overflow: visible;
    -webkit-mask-image: none; mask-image: none;
    flex-wrap: wrap;
  }
  .reviews-wall__track { animation: none; }
  .reviews-wall__group[aria-hidden="true"] { display: none; }
  .reviews-wall__col--2, .reviews-wall__col--3 { display: block; }
  .reviews-wall__col { flex: 1 1 260px; }
}

/* ============================================================
   PIU' CONTRASTO  — rinforza testo, linee e bordi
   ============================================================ */
@media (prefers-contrast: more) {
  :root {
    --ink-2: rgba(255, 255, 255, 0.82);
    --ink-3: rgba(255, 255, 255, 0.6);
    --hairline: rgba(255, 255, 255, 0.28);
  }
  .kicker { color: #ffc98a; }
  .nav.is-visible { background: rgba(14, 9, 5, 0.95); }
  .cta { border-color: #fff; }
  .layer .body, .layer .headline,
  .layer--center .lead, .layer--center .sub, .layer--center .display {
    text-shadow: 0 2px 4px #000, 0 0 18px rgba(0, 0, 0, 0.95);
  }
  .layer--center::before {
    background: radial-gradient(closest-side, rgba(10, 7, 3, 0.98), rgba(10, 7, 3, 0.9) 45%, transparent 82%);
  }
}
