/* ============================================================
   Prestinè — landing scrollytelling (demo pizzeria d'autore)
   Palette:  bg #17110D / #1E1712   accenti #E24B33 (pomodoro) / #EFE1CC (crema)
   Font:     Newsreader (display, con corsivo) · Inter Tight · IBM Plex Mono
   ============================================================ */

:root {
  --bg:          #17110D;
  --bg-2:        #1E1712;
  --bg-3:        #251B14;

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

  --tomato:      #E24B33;
  --tomato-soft: #F0A35E;
  --cream:       #EFE1CC;
  --basil:       #6E8C55;
  --grad:        linear-gradient(120deg, var(--tomato), var(--tomato-soft));

  --font-sans:   "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif:  "Newsreader", Georgia, "Times New Roman", serif;  /* display */
  --font-mono:   "IBM Plex 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(226, 75, 51, 0.3); }

/* ---------- focus visibile ---------- */
:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 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(--cream);
  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.16em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
}

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

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

/* leggibilita' degli overlay sopra la scena */
.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-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink);
}

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

.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(--tomato);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0 var(--pad);
  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(23, 17, 13, 0.64);
  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(--tomato);
  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; }

.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: 34px; width: auto; display: block; }
.logo__word {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.footer .logo__badge { height: 44px; }
.footer .logo__word { font-size: 1.5rem; }
@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: #1E1712;
  background: var(--cream);
  border: 1px solid rgba(239, 225, 204, 0.5);
  box-shadow: 0 10px 34px -12px rgba(0, 0, 0, 0.75);
  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 16px 42px -12px rgba(0, 0, 0, 0.8);
    filter: brightness(1.04);
  }
}
.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(239, 225, 204, 0.35);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .cta--ghost:hover { background: rgba(239, 225, 204, 0.1); border-color: var(--cream); }
}

.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(84px, 20vw, 108px);
  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 schermate (2 di scrub). Solo andata, niente ritorno:
     i 5 beat di testo stanno tutti dentro questa corsa. */
  height: 300vh;
}
.scrolly__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.scrolly__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* vignettatura + sfumatura in basso: fonde il canvas con lo sfondo pagina
   e dà un fondo scuro sotto l'hero/CTA e i testi centrati */
.scrolly__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      transparent 28%,
      rgba(23, 17, 13, 0.32) 48%,
      rgba(23, 17, 13, 0.66) 68%,
      rgba(23, 17, 13, 0.92) 85%,
      var(--bg) 100%),
    radial-gradient(140% 120% at 50% 38%, transparent 52%, rgba(23, 17, 13, 0.5) 100%),
    radial-gradient(90% 70% at 50% 120%, rgba(226, 75, 51, 0.1), 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);
  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(12, 9, 6, 0.72), rgba(12, 9, 6, 0.42) 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 */
.layer--left,
.layer--right {
  padding: 1.5rem 1.75rem;
  border-radius: 22px;
  background: rgba(12, 8, 5, 0.32);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  box-shadow: 0 0 54px 26px rgba(12, 8, 5, 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(--cream);
}
.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; }

/* ---------- barra di cottura: indicatore di scroll ---------- */
.cottura {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 var(--pad) 1.15rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.cottura__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}
.cottura__rail {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.cottura__fill {
  position: absolute;
  inset: 0;
  /* impasto pallido -> oro -> arancione a metà -> rosso alla fine
     (il clip-path taglia da destra, quindi il bordo che avanza
     assume il colore del punto di progressione) */
  background: linear-gradient(90deg, #E9DAB9 0%, #E8B85C 22%, #EC7E2E 50%, #DE4A28 76%, #D32D1E 100%);
  clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0);
}
.cottura__temp {
  flex: none;
  min-width: 3.1em;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

/* ============================================================
   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: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  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 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-style: italic;
  font-size: 1.05rem;
  padding-left: 1rem;
  border-left: 2px dashed rgba(239, 225, 204, 0.45);
}

/* 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, forno a destra, affiancati */
.storia-grid { align-items: center; }
.storia-text .prose { max-width: 46ch; }

/* placeholder grafico del forno 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;
  border: 1px solid rgba(239, 225, 204, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(226, 75, 51, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.03);
}
.storia-truck__ph svg {
  width: 58%;
  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; }

/* ---------- materia prima: foto incorniciate ---------- */
.ingr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.ingr__item {
  flex: 0 1 300px;
  max-width: 340px;
  display: grid;
  gap: 0.55rem;
}
.ingr__frame {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  margin-bottom: 0.6rem;
  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 {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(transparent 52%, rgba(23, 17, 13, 0.42));
  box-shadow: 0 0 0 1px rgba(239, 225, 204, 0.14) inset;
}
.ingr__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.98) contrast(1.02);
  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.3rem;
  font-weight: 600;
}
.ingr__item p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- 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.25rem;
  color: var(--cream);
  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;
  filter: brightness(0.6) contrast(1.15) sepia(0.34) hue-rotate(-12deg) saturate(1.2);
}
.mapcard::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(23, 17, 13, 0.85) 0%, rgba(23, 17, 13, 0) 32%);
}
.mapcard .leaflet-container { background: var(--bg-3); font: inherit; }
.mapcard .leaflet-control-attribution {
  background: rgba(23, 17, 13, 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(--tomato);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(226, 75, 51, 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(226, 75, 51, 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(23, 17, 13, 0.94), transparent);
  pointer-events: none;
}

/* ---------- 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.3rem; 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.2rem; color: var(--tomato);
  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: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.reviews__stars { display: inline-flex; gap: 3px; color: var(--tomato-soft); 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; }

/* ---------- recensioni ---------- */
.reviews-wall { position: relative; margin-top: 1.5rem; }

/* --- griglia statica: default, mobile, reduced-motion, no-JS --- */
.reviews-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.reviews-grid > li { display: flex; }
@media (min-width: 620px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- campo infinito guidato dal cursore (attivato via JS su desktop) --- */
.reviews-field,
.reviews-field__hint { display: none; }

.reviews-wall.is-field {
  height: min(70vh, 620px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--bg-2);
  cursor: crosshair;
  /* dissolvenza morbida su tutti i bordi */
  -webkit-mask-image: radial-gradient(125% 125% at 50% 50%, #000 52%, transparent 92%);
          mask-image: radial-gradient(125% 125% at 50% 50%, #000 52%, transparent 92%);
}
.reviews-wall.is-field .reviews-field {
  display: block;
  position: absolute;
  inset: 0;
}
.reviews-wall.is-field .reviews-field__hint {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.reviews-wall.is-field.is-active .reviews-field__hint { opacity: 0; }

/* la griglia resta nel DOM (sr-only) per gli screen reader */
.reviews-wall.is-field .reviews-grid {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.reviews-field__cell {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cell-w, 300px);
  will-change: transform;
}
.reviews-field__cell .tcard {
  height: var(--card-h, 188px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.reviews-field__cell .tcard blockquote {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcard {
  margin: 0;
  padding: 1.5rem 1.5rem 1.3rem;
  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(--tomato); margin-right: 0.1em; }
.tcard blockquote::after  { content: "\201D"; color: var(--tomato); 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; }

/* ============================================================
   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: 32ch; 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(23, 17, 13, 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-truck { order: -1; }
  .storia-truck__ph { max-width: 460px; margin: 0 auto; }
  .storia-text .prose { max-width: 62ch; }
  .ingr { gap: 2.25rem; }
  .ingr__item { flex-basis: 320px; max-width: 460px; }
  .ingr__item p { font-size: 0.98rem; }
  .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: 24rem;
    padding: 0.5rem 0 1.25rem;
    opacity: 1;
    visibility: visible;
    border-top-color: var(--hairline);
  }
  .nav:has(.nav__drawer:not([hidden])).is-visible,
  .nav:has(.nav__drawer:not([hidden])) {
    background: rgba(20, 14, 9, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }

  /* mobile: tutti i testi nella fascia bassa, centrati. */
  .scrolly__glow {
    background:
      linear-gradient(180deg,
        transparent 26%,
        rgba(18, 12, 8, 0.5) 42%,
        rgba(18, 12, 8, 0.93) 54%,
        var(--bg) 66%),
      radial-gradient(90% 55% at 50% 122%, rgba(226, 75, 51, 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; }
  .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; }
  .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); }

  .cottura { padding-bottom: 0.9rem; }
}

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

/* ============================================================
   REDUCED MOTION  — niente scrub, sezioni statiche
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::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; }
  .layer--right { text-align: left; justify-items: start; }
  .layer--right .list li { padding-left: 1.1rem; padding-right: 0; }
  .layer--right .list li::before { left: 0; right: auto; }
  .scroll-hint, .cottura { display: none; }
  .slide-reveal { opacity: 1 !important; transform: none !important; }
  .nav { position: sticky; opacity: 1; transform: none; pointer-events: auto; background: rgba(23,17,13,0.9); }

  /* recensioni: il campo infinito non viene attivato (lo decide il JS),
     resta la griglia statica */
}

/* ============================================================
   PIU' CONTRASTO
   ============================================================ */
@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: #f6ead4; }
  .nav.is-visible { background: rgba(16, 11, 7, 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(9, 6, 4, 0.98), rgba(9, 6, 4, 0.9) 45%, transparent 82%);
  }
}
