/* ==========================================================================
   Pizza Voglia — site styles (design: option C “Valpantena”)
   Sunlit editorial · layered parallax
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --paper: #f6efe3;
  --paper-2: #efe4d2;
  --paper-3: #e6d6bc;
  --ink: #1d1915;
  --ink-2: #2b251f;
  --muted: #6b5f53;
  --tomato: #c8341f;
  --tomato-d: #a82a17;
  --olive: #5d6b2f;
  --basil: #3f7a3a;
  --crust: #c98a3d;
  --cream-hi: #fffaf1;

  --hair: rgba(29, 25, 21, .13);
  --hair-2: rgba(29, 25, 21, .28);
  --hair-light: rgba(246, 239, 227, .28);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --expo: cubic-bezier(.16, 1, .3, 1);
  --quart: cubic-bezier(.25, 1, .5, 1);

  --gutter: clamp(20px, 4.2vw, 64px);
  --nav-h: 64px;
  --shadow-warm: 0 40px 80px -40px rgba(90, 50, 15, .42);
}

@media (min-width: 960px) {
  :root { --nav-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
  background: var(--paper);
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html { overflow-x: clip; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

/* Paper grain (static, one composited layer) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .38;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .25 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

img, svg, picture, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
em { font-style: italic; }
button { font: inherit; }

::selection { background: var(--tomato); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 4px;
}
.buffet :focus-visible,
.footer :focus-visible { outline-color: var(--paper); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Masked lines for editorial reveals */
.ln {
  display: block;
  overflow: hidden;
  padding: .12em .1em .16em;
  margin: -.12em -.1em -.16em;
}
.ln__i { display: inline-block; text-wrap: balance; }

/* ---------- Skip link · progress · options pill ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 100;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 .9rem/1 var(--sans);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .4s var(--expo);
}
.skip-link:focus { transform: none; }

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 50px;
  padding: 0 1.45rem;
  border: 0;
  border-radius: 999px;
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .5s var(--expo), box-shadow .5s var(--expo);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .65s var(--expo);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .86rem; }

.btn--primary { background: var(--tomato); color: var(--paper); }
.btn--primary::before { background: var(--ink); }

.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover,
.btn--ghost:focus-visible { color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }

.btn--cream { background: var(--paper); color: var(--tomato-d); }
.btn--cream::before { background: var(--ink); }
.btn--cream:hover,
.btn--cream:focus-visible { color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: var(--ink);
  font: 500 .92rem/1.2 var(--sans);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .6s var(--expo);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); }
.link-arrow .ico { transition: transform .6s var(--expo); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Kicker / headings ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.6rem;
  color: var(--muted);
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.kicker__n { color: var(--tomato); font-variant-numeric: tabular-nums; }
.kicker__rule {
  width: clamp(2.5rem, 6vw, 5rem);
  height: 1px;
  background: currentColor;
  opacity: .55;
  transform-origin: 0 50%;
}
.kicker--light,
.kicker--light .kicker__n { color: var(--paper); }

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 1.3rem + 7vw, 8.6rem);
  line-height: .9;
  letter-spacing: -.015em;
}

.lead {
  margin: 0;
  max-width: 38ch;
  color: var(--ink-2);
  font-size: clamp(1.04rem, .95rem + .35vw, 1.24rem);
  line-height: 1.55;
}

.mini-title {
  display: block;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font: 500 .72rem/1.3 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: left;
}

.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tomato); }
.dots i:nth-child(2) { background: var(--basil); }
.dots i:nth-child(3) { background: var(--crust); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  transition: background-color .6s var(--expo), box-shadow .6s var(--expo);
}
.nav.is-scrolled {
  background: rgba(246, 239, 227, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 1px 0 var(--hair);
}
.menu-open .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font: 400 1.6rem/1 var(--serif);
  letter-spacing: -.005em;
  white-space: nowrap;
}
.brand .dots { transform: translateY(1px); }

.nav__links { display: none; }
.nav__links ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links li + li::before {
  content: "·";
  margin: 0 1.05rem;
  color: var(--muted);
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding: .9rem 0;
  color: var(--ink);
  text-decoration: none;
  font: 500 .76rem/1 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: .17em;
  bottom: .45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .6s var(--expo);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.nav__phone {
  display: none;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair-2);
  color: var(--ink);
  text-decoration: none;
  font: 500 .86rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
  transition: background-color .4s var(--expo), color .4s var(--expo), box-shadow .4s;
}
.nav__phone:hover { background: var(--tomato); color: var(--paper); box-shadow: inset 0 0 0 1px var(--tomato); }

.nav__toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  margin-right: -.4rem;
  padding: 0 .4rem 0 .6rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 .76rem/1 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__toggle-icon { position: relative; width: 26px; height: 10px; }
.nav__toggle-icon i {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .6s var(--expo);
}
.nav__toggle-icon i:first-child { top: 0; }
.nav__toggle-icon i:last-child { top: 8.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__links { display: block; }
  .nav__phone { display: inline-flex; justify-self: end; white-space: nowrap; }
  .nav__toggle { display: none; }
}
@media (min-width: 960px) and (max-width: 1199.98px) {
  .nav__links a { font-size: .7rem; letter-spacing: .12em; }
  .nav__links li + li::before { margin: 0 .62rem; }
  .nav__phone { padding: 0 .95rem; font-size: .82rem; }
}

/* No-JS mobile: show links inline (the overlay needs JS) */
@media (max-width: 959.98px) {
  .no-js .nav { height: auto; min-height: var(--nav-h); flex-wrap: wrap; padding-block: .4rem; background: rgba(246, 239, 227, .92); }
  .no-js .nav__toggle { display: none; }
  .no-js .nav__links { display: block; width: 100%; overflow-x: auto; }
  .no-js .nav__links a { font-size: .7rem; letter-spacing: .12em; }
  .no-js .nav__links li + li::before { margin: 0 .6rem; }
  .no-js .nav__links li { flex: none; white-space: nowrap; }
  .no-js .hero { padding-top: calc(var(--nav-h) + 58px); }
}

/* ---------- Mobile overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) calc(5.5rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(255, 250, 240, .9), rgba(255, 250, 240, 0) 60%),
    var(--paper);
  opacity: 0;
  transition: opacity .55s var(--expo);
}
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; }
.overlay__inner { display: flex; flex-direction: column; min-height: 100%; }
.overlay__kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.overlay__links { margin: 0 0 2rem; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.overlay__links li { border-bottom: 1px solid var(--hair); overflow: hidden; }
.overlay__links a {
  --i: 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0 .7rem;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(105%);
  transition: transform .9s var(--expo);
  transition-delay: calc(var(--i) * 55ms + 80ms);
}
.overlay.is-open .overlay__links a { transform: none; }
.overlay__links li:nth-child(2) a { --i: 1; }
.overlay__links li:nth-child(3) a { --i: 2; }
.overlay__links li:nth-child(4) a { --i: 3; }
.overlay__links li:nth-child(5) a { --i: 4; }
.overlay__n {
  flex: none;
  width: 3.2rem;
  color: var(--tomato);
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}
.overlay__t { font: 400 clamp(2.4rem, 10.5vw, 4.4rem)/1 var(--serif); letter-spacing: -.01em; }
.overlay__foot {
  margin-top: auto;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--expo) .35s, transform .8s var(--expo) .35s;
}
.overlay.is-open .overlay__foot { opacity: 1; transform: none; }
.overlay__meta { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.overlay__meta a { color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- Status pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  color: var(--ink);
  font: 500 .8rem/1.35 var(--sans);
}
.status__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(107, 95, 83, .16);
}
.status.is-open .status__dot { background: var(--basil); box-shadow: 0 0 0 3px rgba(63, 122, 58, .2); animation: pulse 2.6s ease-out infinite; }
.status.is-closed .status__dot { background: var(--tomato); box-shadow: 0 0 0 3px rgba(200, 52, 31, .16); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 122, 58, .45); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(63, 122, 58, 0); }
}

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  text-decoration: none;
  font: 500 .9rem/1 var(--sans);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 12px) / 0 1px no-repeat;
  transition: background-size .6s var(--expo);
}
.socials a:hover { background-size: 100% 1px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-wrap { position: relative; }

.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  padding: calc(var(--nav-h) + 4px) var(--gutter) calc(18px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: radial-gradient(130% 95% at 26% 14%, #fcf8f0 0%, #f7f0e4 36%, #f0e5d2 70%, #e8d9c1 100%);
}
@supports (overflow: clip) { .hero { overflow: clip; } }

/* Light: warm sun bloom + diagonal beam (geometry mirrored in main.js for the dust) */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__sun {
  position: absolute;
  left: -32vmax;
  top: -48vmax;
  width: 100vmax;
  height: 100vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 250, 238, .95), rgba(255, 246, 228, .5) 46%, rgba(255, 246, 228, 0));
}
.hero__beam {
  position: absolute;
  left: 42%;
  top: 34%;
  width: 280vmax;
  height: 40vmin;
  margin: -20vmin 0 0 -140vmax;
  transform: rotate(26deg);
  background: linear-gradient(180deg,
    rgba(255, 251, 241, 0) 0%,
    rgba(255, 250, 238, .5) 28%,
    rgba(255, 252, 245, .78) 50%,
    rgba(255, 250, 238, .5) 72%,
    rgba(255, 251, 241, 0) 100%);
}
.hero__beam--core {
  height: 13vmin;
  margin-top: -6.5vmin;
  opacity: .55;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, .9) 50%, rgba(255, 253, 248, 0));
  animation: beam 9s ease-in-out infinite alternate;
}
@keyframes beam { from { opacity: .35; } to { opacity: .8; } }

.hero__dust {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__top { position: relative; z-index: 4; flex: none; }
.overline {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  color: var(--muted);
  font: 500 .68rem/1.3 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.overline__rule { width: 2.2rem; height: 1px; background: currentColor; opacity: .6; }

/* --- Stage: everything is sized from the pizza diameter --pz (container units) --- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  margin-inline: calc(var(--gutter) * -1);
  container: stage / size;
}
.stage__o {
  --pz: min(80cqw, 72cqh);
  position: absolute;
  left: 50%;
  top: calc(50% + var(--pz) * .14);
  width: 0;
  height: 0;
}

.wordmark { margin: 0; font-weight: 400; }
.w {
  position: absolute;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
}
.w__m { display: block; overflow: hidden; padding: .1em .16em .3em; margin: -.1em -.16em -.3em; }
.w__i { display: block; }
.w--pizza {
  z-index: 2;
  font-size: calc(var(--pz) * .6);
  left: -.897em;
  top: calc(var(--pz) * -.37 - .84em);
}
.w--voglia {
  z-index: 6;
  font-style: italic;
  font-size: calc(var(--pz) * .38);
  left: calc(var(--pz) * -.33);
  top: calc(var(--pz) * .44 - .84em);
}

/* --- The teglia: six real slices on a CSS 3D tray, sized from --pz ---
   Geometry mirrors scripts/make_teglia.py: canvas 1800x1200, slices cut at
   x = 608 / 1191 and y = 600, 26px transparent margin, 70px corner radius.
   Separate wrappers own separate jobs (intro / pointer / pose / float / scroll),
   so no two animations ever fight over the same transform. */
.teglia {
  --tw: min(calc(var(--pz) * var(--tws, 1.08)), var(--twx, 86cqw));  /* tray width */
  --th: calc(var(--tw) * 2 / 3);             /* tray height (3:2) */
  --tk: calc(var(--tw) * .032);              /* thickness of the pizza */
  --tm: calc(var(--tw) * .014444);           /* transparent margin baked into the outer slices */
  --tr: calc(var(--tw) * .038889);           /* corner radius of the teglia */
  position: absolute;
  z-index: 4;
  width: var(--tw);
  height: var(--th);
  left: calc(var(--tw) * -.5);
  top: calc(var(--th) * -.5);
}
.teglia__in { position: absolute; inset: 0; perspective: calc(var(--tw) * 3.2); }
.teglia__tilt, .teglia__base, .teglia__float { position: absolute; inset: 0; }
.teglia__tilt, .teglia__base, .teglia__float, .teglia__shade, .slice, .slice__in { transform-style: preserve-3d; }
.teglia__base { transform: rotateX(var(--tx, 34deg)) rotateZ(var(--tz, -7deg)); }

/* Soft shadow lying on the “table”, below the floating tray (light from top-left) */
.teglia__shade {
  position: absolute;
  inset: 0;
  transform: translate3d(calc(var(--tw) * .028), calc(var(--th) * .06), calc(var(--tk) * -1 - var(--tw) * .06));
  pointer-events: none;
}
.teglia__pulse { position: absolute; inset: 0; }
/* contact shadow of the whole tray (fades as soon as the slices part) */
.teglia__core {
  position: absolute;
  inset: 8% 5%;
  border-radius: 8%;
  background: rgba(52, 24, 6, .32);
  filter: blur(calc(var(--tw) * .02));
}
/* one soft shadow per slice: they tile into the tray's shadow and travel with their slice */
.sshadow {
  position: absolute;
  left: calc(var(--l) * var(--tw));
  top: calc(var(--t) * var(--th));
  width: calc(var(--w) * var(--tw));
  height: calc(var(--th) / 2);
}
.sshadow::before {
  content: "";
  position: absolute;
  inset: 1.5%;
  border-radius: 10%;
  background: rgba(78, 40, 12, .3);
  filter: blur(calc(var(--tw) * .04));
}
.has-motion .sshadow { will-change: transform; }

/* Dark underside: shows through the cut lines as hairlines while the tray is whole */
.teglia__under {
  position: absolute;
  inset: var(--tm);
  border-radius: var(--tr);
  background: #4a2810;
  transform: translateZ(calc(var(--tk) * -.45));
}

.slice {
  --sw: calc(var(--w) * var(--tw));
  --sh: calc(var(--th) / 2);
  position: absolute;
  left: calc(var(--l) * var(--tw));
  top: calc(var(--t) * var(--th));
  width: var(--sw);
  height: var(--sh);
}
.slice--r0 { --ia: var(--tm); }
.slice--r1 { --ib: var(--tm); }
.slice--c0 { --fa: var(--tm); }
.slice--c2 { --fb: var(--tm); }
.slice--r1.slice--c0 { --fa: calc(var(--tm) + var(--tr)); }
.slice--r1.slice--c2 { --fb: calc(var(--tm) + var(--tr)); }
.slice__in { position: absolute; inset: 0; }
.slice__top {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  backface-visibility: hidden;
}

/* Cut faces (crumb) and outer crust, hanging below the top surface */
.face {
  position: absolute;
  left: 0;
  top: 0;
  height: var(--tk);
  transform-origin: 0 0;
  backface-visibility: hidden;
  background:
    linear-gradient(180deg, rgba(48, 22, 4, .34) 0%, rgba(48, 22, 4, 0) 26%, rgba(48, 22, 4, 0) 78%, rgba(48, 22, 4, .22) 100%) 0 0 / 100% 100% no-repeat,
    linear-gradient(var(--shade, rgba(60, 28, 6, .08)), var(--shade, rgba(60, 28, 6, .08))) 0 0 / 100% 100% no-repeat,
    url("../img/crumb-side.webp") var(--bx, 0) 0 / auto 100% repeat-x;
  background-color: #e9d7b4;
}
.face--front { width: calc(var(--sw) - var(--fa, 0px) - var(--fb, 0px)); transform: translate3d(var(--fa, 0px), calc(var(--sh) - var(--ib, 0px)), 0) rotateX(-90deg); }
.face--left { --shade: rgba(255, 246, 228, .12); width: calc(var(--sh) - var(--ia, 0px) - var(--ib, 0px)); transform: translate3d(0, var(--ia, 0px), 0) rotateY(-90deg) rotateZ(90deg); }
.face--right { --shade: rgba(60, 28, 6, .26); width: calc(var(--sh) - var(--ia, 0px) - var(--ib, 0px)); transform: translate3d(var(--sw), calc(var(--sh) - var(--ib, 0px)), 0) rotateY(90deg) rotateZ(-90deg); }
.face--crust {
  background:
    linear-gradient(180deg, rgba(120, 58, 14, .2) 0%, rgba(172, 98, 36, .78) 30%, rgba(118, 58, 16, .9) 100%) 0 0 / 100% 100% no-repeat,
    url("../img/crumb-side.webp") var(--bx, 0) 0 / auto 100% repeat-x;
  background-blend-mode: multiply, normal;
  background-color: #c88a4a;
}
.face--c { width: calc(var(--tr) * .7654 + 1px); }
.face--bl1 { transform: translate3d(calc(var(--tm) + var(--tr) * .2929), calc(var(--sh) - var(--tm) - var(--tr) * .2929), 0) rotateZ(22.5deg) rotateX(-90deg); }
.face--bl2 { transform: translate3d(var(--tm), calc(var(--sh) - var(--tm) - var(--tr)), 0) rotateZ(67.5deg) rotateX(-90deg); }
.face--br1 { transform: translate3d(calc(var(--sw) - var(--tm) - var(--tr)), calc(var(--sh) - var(--tm)), 0) rotateZ(-22.5deg) rotateX(-90deg); }
.face--br2 { transform: translate3d(calc(var(--sw) - var(--tm) - var(--tr) * .2929), calc(var(--sh) - var(--tm) - var(--tr) * .2929), 0) rotateZ(-67.5deg) rotateX(-90deg); }

/* Slow float instead of a spin (motion mode only; reduced motion = static) */
.has-motion .teglia__float { animation: tfloat 8s ease-in-out infinite; }
.has-motion .teglia__pulse { animation: tshade 8s ease-in-out infinite; }
@keyframes tfloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translate3d(0, 0, calc(var(--tw) * .03)) rotateX(-1.4deg) rotateY(1.1deg); }
}
@keyframes tshade {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: .74; }
}

/* Ingredients */
.ing {
  --px: var(--x);
  --py: var(--y);
  --ps: var(--s);
  position: absolute;
  left: calc(var(--px) * var(--pz));
  top: calc(var(--py) * var(--pz));
  width: calc(var(--ps) * var(--pz));
  height: calc(var(--ps) * var(--pz));
  margin: calc(var(--ps) * var(--pz) * -.5) 0 0 calc(var(--ps) * var(--pz) * -.5);
  pointer-events: none;
}
.ing--far { z-index: 1; }
.ing--mid { z-index: 5; }
.ing--w-only { display: none; }
.ing__p, .ing__i { width: 100%; height: 100%; }
.ing img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(var(--rot, 0deg));
  filter: drop-shadow(0 12px 12px rgba(84, 46, 14, .26));
  animation: bob var(--dur, 7s) ease-in-out var(--del, 0s) infinite;
}
.ing--far img { filter: blur(var(--blur, 1.5px)) drop-shadow(0 8px 8px rgba(84, 46, 14, .16)); opacity: .92; }
.ing--near img { filter: blur(var(--blur, 5px)) drop-shadow(0 30px 24px rgba(84, 46, 14, .22)); }
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  50% { transform: translate3d(0, calc(var(--bob, 10px) * -1), 0) rotate(calc(var(--rot, 0deg) + var(--spin, 0deg))); }
}

/* Near layer (big, out of focus). Lives inside the hero, ABOVE the stage but
   BELOW the dust and all hero copy — no ingredient can ever cover text or buttons. */
.near {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.ing--near {
  --pnx: var(--nx);
  --pny: var(--ny);
  --pns: var(--ns);
  left: var(--pnx);
  top: var(--pny);
  width: var(--pns);
  height: var(--pns);
  margin: calc(var(--pns) * -.5) 0 0 calc(var(--pns) * -.5);
}

/* Hero copy (portrait / stacked default) */
.hero__aside { display: none; }
.hero__bottom { position: relative; z-index: 4; flex: none; }
.hero__tagline {
  margin: 0 0 .75rem;
  font: 400 clamp(2.05rem, 8.6vw, 3.4rem)/1 var(--serif);
  letter-spacing: -.01em;
}
.hero__tagline .ln { display: inline-block; vertical-align: top; }
.hero__tagline .ln:last-child { display: block; }
.hero__tagline em { color: var(--tomato); }
.hero__sub {
  max-width: 40ch;
  margin: 0 0 1.15rem;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.55;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 30rem; }
.hero__ctas .btn { flex: 1 1 auto; padding: 0 .9rem; font-size: .9rem; }
.hero__cue { display: none; }

.gchip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: rgba(255, 252, 246, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 14px 30px -20px rgba(90, 50, 15, .55);
  color: var(--ink);
  text-decoration: none;
  font: 500 .84rem/1 var(--sans);
  transition: box-shadow .4s var(--expo), background-color .4s;
}
.gchip:hover { background: rgba(255, 252, 246, .95); box-shadow: inset 0 0 0 1px var(--ink), 0 18px 34px -20px rgba(90, 50, 15, .6); }
.gchip__star { color: var(--tomato); font-size: .95rem; }
.gchip__score { font: 400 1.32rem/1 var(--serif); }
.gchip__sep { color: var(--muted); }
.gchip--mobile { display: flex; width: max-content; margin: .8rem 0 0 auto; }
.hero__formats { margin: 0; color: var(--muted); font: italic 400 1.2rem/1.2 var(--serif); }

@media (max-height: 720px) and (max-width: 959.98px) {
  .gchip--mobile { display: none; }
}
@media (max-width: 400px) {
  .hero__ctas .btn--ghost .ico { display: none; }
}

/* --- Wide editorial composition --- */
@media (min-width: 960px) and (min-aspect-ratio: 5/4) and (min-height: 560px) {
  .hero { display: block; padding: 0; }
  .stage { position: absolute; inset: 0; margin: 0; }
  .stage__o { --pz: min(56cqh, 38cqw); --tws: 1.22; --twx: 42cqw; --tx: 37deg; --tz: -9deg; left: 56%; top: 56%; }
  .w--pizza { font-size: calc(var(--pz) * .54); left: -.897em; }
  .w--voglia { font-size: calc(var(--pz) * .44); left: calc(var(--pz) * -.02); }
  .ing { --px: var(--xw); --py: var(--yw); --ps: var(--sw); }
  .ing--w-only { display: block; }
  .ing--near { --pnx: var(--nxw); --pny: var(--nyw); --pns: var(--nsw); }

  .hero__top { position: absolute; top: calc(var(--nav-h) + clamp(1rem, 3.2vh, 2.4rem)); left: var(--gutter); }
  .hero__aside {
    position: absolute;
    z-index: 4;
    right: var(--gutter);
    top: 37%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }
  .hero__bottom {
    position: absolute;
    left: var(--gutter);
    bottom: clamp(4.5rem, 9vh, 5.5rem);
    width: min(430px, calc(56vw - min(28vh, 19vw) - var(--gutter) * 2 - 20px));
  }
  .hero__tagline { font-size: clamp(2.6rem, 2.2vw + 2.2vh, 4.7rem); line-height: .94; margin-bottom: 1.25rem; }
  .hero__tagline .ln { display: block; }
  .hero__sub { font-size: 1rem; max-width: 34ch; }
  .hero__ctas { max-width: none; }
  .hero__ctas .btn { flex: 0 0 auto; padding: 0 1.45rem; font-size: .95rem; }
  .hero__ctas .btn--ghost .ico { display: inline; }
  .gchip--mobile { display: none; }
  .hero__cue {
    position: absolute;
    z-index: 4;
    right: var(--gutter);
    bottom: clamp(4.5rem, 9vh, 5.5rem);
    display: block;
  }
  .hero__cue-in {
    display: flex;
    align-items: center;
    gap: .9rem;
    color: var(--muted);
    font: 500 .66rem/1 var(--sans);
    letter-spacing: .24em;
    text-transform: uppercase;
  }
  .hero__cue i { position: relative; width: 1px; height: 52px; overflow: hidden; background: var(--hair-2); }
  .hero__cue i::after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 1px;
    height: 45%;
    background: var(--ink);
    animation: cue 2.4s var(--expo) infinite;
  }
}
@keyframes cue { from { transform: translateY(-110%); } to { transform: translateY(240%); } }
/* Narrower wide screens: the tray reaches the right column — keep only the rating chip there */
@media (min-width: 960px) and (max-width: 1239.98px) and (min-aspect-ratio: 5/4) and (min-height: 560px) {
  .hero__formats { display: none; }
}
@media (min-width: 960px) and (max-width: 1119.98px) and (min-aspect-ratio: 5/4) and (min-height: 560px) {
  .hero__aside .status { display: none; }
}

/* Pre-intro hidden state (JS only; failsafe in <head> reveals it anyway) */
.js:not(.is-ready) [data-intro] { opacity: 0; }
.is-static [data-intro] { transition: opacity 1.1s var(--expo); }
[tabindex="-1"]:focus { outline: none; }

/* Pause decorative loops when the hero is off-screen */
.hero-off .teglia__float,
.hero-off .teglia__pulse,
.hero-off .ing img,
.hero-off .hero__beam--core,
.hero-off .hero__cue i::after { animation-play-state: paused; }

/* Motion mode: sticky “pinned” hero + next section sliding over it */
@media (min-height: 540px) {
  .has-motion .hero-wrap { height: 200vh; height: 200svh; }
  .has-motion .hero { position: sticky; top: 0; }
  .has-motion .storia { margin-top: -60vh; margin-top: -60svh; }
  .has-motion .ing, .has-motion .teglia, .has-motion .w { will-change: transform; }
}

/* ==========================================================================
   N°01 — LA STORIA
   ========================================================================== */
.storia {
  position: relative;
  z-index: 2;
  padding-top: clamp(4.5rem, 10vw, 9rem);
  background: var(--paper-2);
  border-radius: clamp(22px, 3vw, 44px) clamp(22px, 3vw, 44px) 0 0;
  box-shadow: 0 -30px 70px -30px rgba(80, 45, 15, .32), 0 -1px 0 rgba(255, 255, 255, .6);
}
.storia__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 960px) {
  .storia__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 4vw; }
  .storia__head .kicker { grid-column: 1 / -1; margin-bottom: .4rem; }
  .storia__lead { justify-self: end; }
}

.hx__track { margin: 0; padding: 0; list-style: none; }
.hx__progress { display: none; }

/* Vertical (mobile / reduced motion) panels */
.panel {
  position: relative;
  padding: clamp(3.2rem, 9vw, 5rem) var(--gutter) clamp(3.6rem, 10vw, 5.5rem);
  border-top: 1px solid var(--hair);
  overflow: hidden;
}
@supports (overflow: clip) { .panel { overflow: clip; } }
.panel__meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--muted);
  font: 500 .7rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.panel__meta > span:first-child { color: var(--tomato); }
.panel__of { opacity: .7; }
.panel__rule { width: 2.4rem; height: 1px; background: currentColor; opacity: .5; }
.panel__big {
  position: relative;
  z-index: 1;
  margin: 1.6rem 0 1.4rem;
  font: 400 clamp(6.5rem, 33vw, 15rem)/.8 var(--serif);
  letter-spacing: -.035em;
  color: var(--ink);
}
.panel__big--words { font-size: clamp(4rem, 17vw, 9rem); line-height: .86; letter-spacing: -.02em; }
.panel__big--words em { color: var(--tomato); }
.panel__big--ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(74vw, 22rem);
  aspect-ratio: 1;
  margin-inline: 0;
}
.panel__big--ring .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: var(--hair-2); stroke-width: .6; }
.ring__arc {
  fill: none;
  stroke: var(--tomato);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 30;   /* 100 - hydration % */
}
.panel__num { font-size: .62em; line-height: 1; font-variant-numeric: tabular-nums; }
.panel__pct { font-size: .3em; font-style: italic; align-self: flex-start; margin-top: 1.1em; color: var(--tomato); }
.panel__big--ring { font-size: clamp(9rem, 44vw, 17rem); }

.panel__copy { position: relative; z-index: 2; max-width: 32rem; }
.panel__copy p { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; max-width: 36ch; }
.panel__title {
  margin: 0 0 1rem;
  font: 400 clamp(2rem, 1.4rem + 2.4vw, 3.1rem)/1.02 var(--serif);
  letter-spacing: -.01em;
}

.formats { margin: .4rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair-2); }
.formats li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: baseline;
  gap: .1rem .8rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--hair);
}
.formats__n { color: var(--tomato); font: italic 400 1.15rem/1 var(--serif); }
.formats__t { font: 400 1.6rem/1.1 var(--serif); }
.formats__d { grid-column: 2; color: var(--muted); font-size: .9rem; }

.panel__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.art { position: absolute; max-width: none; filter: drop-shadow(0 18px 18px rgba(84, 46, 14, .24)); }
.art--tomato { width: clamp(90px, 26vw, 180px); right: 6%; top: 9%; rotate: 12deg; }
.art--sprig { width: clamp(100px, 30vw, 200px); right: 22%; top: 26%; rotate: -18deg; }
.art--garlic { width: clamp(50px, 13vw, 90px); right: 4%; top: 34%; rotate: 24deg; filter: blur(1.5px) drop-shadow(0 10px 10px rgba(84, 46, 14, .2)); }
.art--mozz { width: clamp(90px, 26vw, 170px); right: 5%; top: 8%; rotate: -10deg; }
.art--leaf { width: clamp(60px, 16vw, 110px); right: 30%; top: 4%; rotate: 40deg; filter: blur(1.2px) drop-shadow(0 10px 10px rgba(84, 46, 14, .2)); }
.art--teglia { width: clamp(250px, 80vw, 480px); right: -22%; top: 6%; rotate: -8deg; filter: drop-shadow(0 30px 30px rgba(84, 46, 14, .3)); }
.art--olive { width: clamp(40px, 11vw, 70px); right: 40%; top: 12%; rotate: -16deg; }
.art--slice { width: clamp(220px, 74vw, 460px); right: -16%; top: 2%; rotate: -6deg; filter: drop-shadow(0 30px 30px rgba(84, 46, 14, .32)); }
.art--broccoli { width: clamp(70px, 20vw, 130px); right: 52%; top: 4%; rotate: -14deg; }

/* On narrow screens leave room for the art above the number */
.panel--1 .panel__big, .panel--2 .panel__big { margin-top: 2rem; }
@media (max-width: 1023.98px) {
  .panel--3 .panel__big, .panel--4 .panel__big { margin-top: clamp(9rem, 44vw, 16rem); }
  .panel--1 .panel__big { margin-top: clamp(7rem, 34vw, 12rem); }
  .panel--2 .panel__big { margin-top: clamp(4.5rem, 20vw, 8rem); }
}

/* Horizontal mode (desktop, motion OK) — enabled by JS */
.hx-on .hx { position: relative; }
.hx-on .hx__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.hx-on .hx__track {
  display: flex;
  width: max-content;
  height: 100%;
  padding: calc(var(--nav-h) + 1.5rem) 16vw 8.4rem var(--gutter);
  will-change: transform;
}
.hx-on .panel {
  flex: none;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(66vw, 1180px);
  height: 100%;
  padding: 0 4.5vw 0 3.2vw;
  border-top: 0;
  border-left: 1px solid var(--hair-2);
  overflow: visible;
}
.hx-on .panel:first-child { border-left: 0; padding-left: 0; }
.hx-on .panel__big {
  z-index: 2;
  align-self: center;
  margin: 0;
  font-size: clamp(8rem, 30vh, 21rem);
}
.hx-on .panel__big--words { font-size: clamp(5rem, 15.5vh, 11rem); }
.hx-on .panel__big--ring { width: min(48vh, 30vw); font-size: min(30vh, 18vw); }
.hx-on .panel__copy { align-self: end; max-width: 30rem; }
.hx-on .art--tomato { width: min(22vh, 15vw); right: 12%; top: 16%; }
.hx-on .art--sprig { width: min(26vh, 17vw); right: 30%; top: auto; bottom: 18%; }
.hx-on .art--garlic { width: min(10vh, 7vw); right: 6%; top: 52%; }
.hx-on .art--mozz { width: min(24vh, 16vw); right: 8%; top: 18%; }
.hx-on .art--leaf { width: min(14vh, 9vw); right: 34%; top: 8%; }
.hx-on .art--teglia { width: min(50vh, 29vw); right: 2%; top: 19%; bottom: auto; }
.hx-on .art--olive { width: min(8vh, 5.5vw); right: 12%; top: 64%; }
.hx-on .art--slice { width: min(52vh, 31vw); right: 0; top: 36%; }
.hx-on .art--broccoli { width: min(16vh, 10vw); right: 30%; top: 10%; bottom: auto; }
.hx-on .hx__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 4.6rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font: 500 .7rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hx__count { font-variant-numeric: tabular-nums; color: var(--ink); }
.hx__bar { position: relative; flex: 1; height: 1px; background: var(--hair-2); overflow: hidden; }
.hx__fill { position: absolute; inset: 0; background: var(--tomato); transform: scaleX(0); transform-origin: 0 50%; }

/* ==========================================================================
   N°02 — IL TERRITORIO: atlas plate + product sheets
   ========================================================================== */
.terra {
  position: relative;
  padding-block: clamp(6rem, 12vw, 11rem);
  background: var(--paper);
}
.terra + .menu { border-top: 1px solid var(--hair); }
.terra__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
@media (min-width: 1000px) {
  .terra__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 5vw; }
}

.atlas { margin: 0; }
.atlas__plate {
  --plate: #f2e8d5;
  position: relative;
  width: 100%;
  max-width: 660px;
  aspect-ratio: 600 / 760;
  container-type: inline-size;
}
/* plate shadow on a static layer (a filter here would re-run on every frame the map redraws) */
.atlas__plate::before {
  content: "";
  position: absolute;
  inset: 1.58% 2%;
  border-radius: 2px;
  box-shadow: 0 30px 50px -24px rgba(90, 50, 15, .34), 0 2px 6px rgba(90, 50, 15, .08);
}
.atlas__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas__paper { fill: var(--plate); }
.atlas__frame { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.atlas__frame--outer { opacity: .22; }
.atlas__ticks { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .38; }
.atlas__line { fill: none; stroke: #8a6e4e; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.atlas__terraces .atlas__line { stroke: #6f7b45; opacity: .4; }
.atlas__river--edge { fill: none; stroke: #6d8c86; stroke-width: 9; stroke-linecap: round; opacity: .6; }
.atlas__river--water { fill: none; stroke: #dbe4dc; stroke-width: 6.6; stroke-linecap: round; }
.atlas__road { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: .1 6; opacity: .5; }
.atlas__hairpins { fill: none; stroke: var(--tomato); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.atlas__compass circle { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .35; }
.atlas__compass path { fill: var(--ink); }
.atlas__compass .atlas__compass-s { fill: var(--plate); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.atlas__compass text { fill: var(--ink); font: 500 13px var(--sans); letter-spacing: .1em; }
.atlas__city { fill: var(--ink); }
.atlas__dot { fill: var(--plate); stroke: var(--ink); stroke-width: 1.7; transition: fill .4s, stroke .4s; }
.atlas__dot--novaglie { fill: var(--basil); stroke: var(--plate); stroke-width: 2; }
.atlas__home { fill: var(--tomato); }
.atlas__home-ring { fill: none; stroke: var(--tomato); stroke-width: 1.5; opacity: .45; transform-box: fill-box; transform-origin: center; }
.has-motion .atlas__home-ring { animation: ping 3s var(--expo) infinite; }
@keyframes ping { from { transform: scale(.55); opacity: .75; } to { transform: scale(1.9); opacity: 0; } }
.atlas__car { fill: var(--tomato); stroke: var(--cream-hi); stroke-width: 1.8; }

/* Place names are real text (crisp, accessible), positioned in plate units (600 x 760) */
.atlas__places { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.place {
  position: absolute;
  left: calc(var(--x) / 600 * 100%);
  top: calc(var(--y) / 760 * 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3em;
  max-width: 30%;
  transform: translateY(-50%);
}
.place--l { align-items: flex-end; text-align: right; transform: translate(-100%, -50%); }
.place--c { align-items: center; text-align: center; max-width: 72%; transform: translate(-50%, -50%); }
.place__name, .place__note { text-shadow: 0 0 3px var(--plate), 0 0 6px var(--plate), 0 0 10px var(--plate); }
.place__name { color: var(--ink); font: 400 clamp(.92rem, 3.2cqi, 1.36rem)/1 var(--serif); }
.place__name--caps { font: 500 clamp(.66rem, 2.1cqi, .9rem)/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; }
.place__note { color: var(--muted); font: 500 clamp(.58rem, 1.6cqi, .68rem)/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-wrap: balance; }
.place--c .place__note { font: italic 400 clamp(.82rem, 2.5cqi, 1.08rem)/1.2 var(--serif); letter-spacing: 0; text-transform: none; }
.place--home .place__name, .place--city .place__name { font-size: clamp(1rem, 3.9cqi, 1.6rem); }
.place--home .place__note { color: var(--tomato-d); }
.place--home { max-width: 46%; }
.place--novaglie { max-width: 26%; }
.place--novaglie .place__note { color: var(--basil); }
.place--rally { max-width: 25%; transform: translateY(-100%); }
.place--rally .place__name { color: var(--tomato-d); font-style: italic; }
/* a quiet rally nod: three skewed “livery” stripes in the house colours */
.place--rally .place__name::before {
  content: "";
  display: block;
  width: 2.1em;
  height: .32em;
  margin: 0 0 .45em .15em;
  background: linear-gradient(90deg, var(--tomato) 0 33%, var(--basil) 33% 66%, var(--crust) 66%);
  transform: skewX(-28deg);
}
.place--river .place__name { color: #4e6e68; font: italic 400 clamp(.78rem, 2.5cqi, 1.05rem)/1 var(--serif); letter-spacing: .06em; }
.atlas__coords {
  position: absolute;
  right: calc(30 / 600 * 100%);
  bottom: calc(30 / 760 * 100%);
  margin: 0;
  color: var(--muted);
  font: 500 clamp(.54rem, 1.45cqi, .62rem)/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.atlas__cap { margin: 1.1rem 0 0; color: var(--muted); font: italic 400 1.02rem/1.45 var(--serif); }
.atlas__cap span { margin-right: .55rem; color: var(--tomato); font: 500 .66rem/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; }

/* Product sheets */
.terra__cards { display: grid; gap: 1.4rem; }
@media (min-width: 700px) and (max-width: 999.98px) { .terra__cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.spec {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 16px;
  background: rgba(255, 252, 246, .62);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 30px 60px -44px rgba(90, 50, 15, .5);
  transition: box-shadow .5s var(--expo);
}
.spec:hover { box-shadow: inset 0 0 0 1px var(--ink), 0 34px 70px -44px rgba(90, 50, 15, .6); }
.spec__art { position: absolute; top: clamp(1rem, 2.4vw, 1.6rem); right: clamp(1rem, 2.4vw, 1.6rem); width: clamp(92px, 24%, 132px); height: auto; }
.spec__k { margin: 0 0 1.3rem; color: var(--muted); font: 500 .68rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.spec__title { margin: 0 0 .9rem; padding-right: 26%; font: 400 clamp(2rem, 1.5rem + 1.5vw, 2.85rem)/.98 var(--serif); letter-spacing: -.01em; }
.spec__title em { color: var(--tomato); }
.spec--broc .spec__title em { color: var(--basil); }
.spec__text { max-width: 42ch; margin: 0 0 1.4rem; color: var(--ink-2); font-size: .98rem; line-height: 1.62; }
.spec__facts { margin: 0; border-top: 1px solid var(--hair-2); }
.spec__facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; align-items: baseline; padding: .72rem 0; border-bottom: 1px solid var(--hair); }
.spec__facts dt { color: var(--muted); font: 500 .66rem/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.spec__facts dd { margin: 0; font: 400 1.12rem/1.3 var(--serif); }
.spec__fill { stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.spec__fill--rind { fill: #e2bd74; }
.spec__fill--top { fill: #f6e6bd; }
.spec__fill--cut { fill: #efd8a2; }
.spec__fill--crown { fill: #8cab5c; }
.spec__fill--stem { fill: #cbd8a0; }
.spec__line { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; opacity: .38; }
.spec__eyes ellipse { fill: #d9b977; stroke: var(--ink); stroke-width: .8; opacity: .85; }
.spec__buds circle { fill: none; stroke: #234a21; stroke-width: 1; opacity: .5; }

/* Sheet ↔ map: hovering a sheet points at its place */
.atlas__dot--novaglie, .place__name { transition: color .4s, fill .4s; }
.terra__grid:has(.spec--broc:hover) .place--novaglie .place__name { color: var(--basil); }
.terra__grid:has(.spec--broc:hover) .atlas__dot--novaglie { fill: var(--tomato); }
.terra__grid:has(.spec--cheese:hover) .place--lessinia .place__name { color: var(--crust); }

/* ==========================================================================
   N°03 — MENU
   ========================================================================== */
.menu {
  position: relative;
  padding-block: clamp(6rem, 12vw, 11rem);
  background: var(--paper);
}
.sec-head { margin-bottom: clamp(3rem, 7vw, 6rem); }
.sec-head--split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 960px) {
  .sec-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 4vw; }
  .sec-head__aside { justify-self: end; }
}
.note {
  display: flex;
  gap: .85rem;
  max-width: 42ch;
  margin: 1.6rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 252, 246, .55);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  color: var(--ink-2);
  font-size: .92rem;
  line-height: 1.5;
}
.note strong { font-weight: 600; }
.note__mark { color: var(--tomato); font-size: 1.1rem; line-height: 1.3; }

.menu__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

/* Index: chip bar on mobile, sticky column on desktop */
.menu__index {
  min-width: 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 6;
  margin: 0 calc(var(--gutter) * -1);
  padding: .65rem var(--gutter);
  background: rgba(246, 239, 227, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.menu__index-title, .menu__index .btn { display: none; }
.menu__index ol {
  display: flex;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu__index ol::-webkit-scrollbar { display: none; }
.menu__index ol a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: 0 .95rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair-2);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font: 500 .82rem/1 var(--sans);
  transition: background-color .4s var(--expo), color .4s var(--expo), box-shadow .4s;
}
.menu__index ol a span { color: var(--tomato); font-size: .7rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; transition: color .4s; }
.menu__index ol a.is-active { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.menu__index ol a.is-active span { color: var(--crust); }

@media (min-width: 1100px) {
  .menu__grid { grid-template-columns: minmax(210px, 3fr) minmax(0, 9fr); column-gap: 4.5vw; }
  .menu__index {
    top: calc(var(--nav-h) + 2.5rem);
    align-self: start;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
  }
  .menu__index-title { display: block; margin: 0 0 1rem; color: var(--muted); font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
  .menu__index ol { display: block; overflow: visible; border-top: 1px solid var(--hair-2); margin-bottom: 1.8rem; }
  .menu__index li { border-bottom: 1px solid var(--hair); }
  .menu__index ol a {
    display: flex;
    gap: .9rem;
    min-height: 0;
    padding: .9rem 0;
    border-radius: 0;
    box-shadow: none;
    font: 400 1.3rem/1.1 var(--serif);
    white-space: normal;
  }
  .menu__index ol a span { flex: none; width: 1.6rem; font: 500 .7rem/1 var(--sans); }
  .menu__index ol a:hover { padding-left: .4rem; }
  .menu__index ol a { transition: padding .5s var(--expo), color .3s; }
  .menu__index ol a.is-active { background: none; color: var(--tomato-d); box-shadow: none; }
  .menu__index ol a.is-active span { color: var(--tomato); }
  .menu__index .btn { display: inline-flex; }
}

.cat { margin-bottom: clamp(4rem, 8vw, 7rem); scroll-margin-top: 4.5rem; }
.cat:last-child { margin-bottom: 0; }
.cat__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 1.1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--ink);
}
.cat__n { color: var(--tomato); font: 500 .8rem/1 var(--sans); letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.cat__title { margin: 0; font: 400 clamp(2.3rem, 1.5rem + 3vw, 3.8rem)/1 var(--serif); letter-spacing: -.01em; }
.cat__note { grid-column: 2; margin: .45rem 0 0; color: var(--muted); font: italic 400 1.25rem/1.2 var(--serif); }
@media (min-width: 700px) {
  .cat__head { grid-template-columns: 3rem auto minmax(0, 1fr); }
  .cat__note { grid-column: 3; justify-self: end; margin: 0; text-align: right; }
}

.dishes { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) {
  .dishes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4.5rem); }
  .dishes--single { grid-template-columns: minmax(0, 1fr); }
}
.dish { padding: 1.3rem 0 1.2rem; border-bottom: 1px solid var(--hair); }
.dish__name { margin: 0 0 .3rem; font: 400 clamp(1.55rem, 1.25rem + .8vw, 1.95rem)/1.1 var(--serif); }
.dish__desc { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.tag {
  display: inline-block;
  margin-left: .5rem;
  padding: .32rem .55rem .3rem;
  border-radius: 999px;
  vertical-align: .35em;
  font: 600 .6rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tag--veg { color: var(--basil); box-shadow: inset 0 0 0 1px rgba(63, 122, 58, .5); }
.cat .link-arrow { margin-top: 1.4rem; }

/* Featured spread */
.spread {
  position: relative;
  container: spread / inline-size;
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 50px 90px -60px rgba(80, 45, 15, .6), 0 0 0 1px rgba(29, 25, 21, .07);
}
.spread__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.spread__page { position: relative; padding: clamp(1.8rem, 4.5vw, 3.6rem); }
.spread__page--text { container-type: inline-size; }
.spread__page--img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: radial-gradient(90% 80% at 40% 35%, #fbf5ea, #efe4d2 70%);
}
@supports (overflow: clip) { .spread__page--img { overflow: clip; } }
.spread__fig { position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto; }
.spread__mask { overflow: hidden; padding: 8% 2% 10%; margin: -8% -2% -10%; }
.spread__mask img { width: 100%; filter: drop-shadow(0 34px 30px rgba(80, 45, 15, .34)); }
.spread__fig figcaption {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
  color: var(--muted);
  font: italic 400 1.05rem/1.3 var(--serif);
}
.spread__fig figcaption span {
  color: var(--tomato);
  font: 500 .68rem/1.9 var(--sans);
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.spread__ing { position: absolute; z-index: 3; pointer-events: none; filter: drop-shadow(0 16px 14px rgba(80, 45, 15, .26)); }
.spread__ing--a { width: clamp(70px, 16vw, 130px); right: 4%; top: 6%; rotate: 14deg; }
.spread__ing--b { width: clamp(46px, 9vw, 80px); left: 5%; bottom: 10%; rotate: -30deg; filter: blur(1.4px) drop-shadow(0 12px 10px rgba(80, 45, 15, .2)); }

.cat__head--spread { border-bottom-color: var(--hair-2); grid-template-columns: auto 1fr; }
.cat__head--spread .cat__note { grid-column: 2; justify-self: start; margin: 0; text-align: left; font-size: 1.15rem; }
.spread__title {
  margin: 1.4rem 0 .6rem;
  color: var(--tomato);
  font: italic 400 clamp(3rem, 23cqi, 8rem)/.88 var(--serif);
  letter-spacing: -.02em;
}
.spread__ings {
  margin: 0 0 1.7rem;
  color: var(--olive);
  font: 600 .7rem/1.7 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
}
.dropcap { max-width: 42ch; margin: 0 0 1.1rem; font-size: 1.06rem; line-height: 1.68; color: var(--ink-2); }
.dropcap::first-letter {
  float: left;
  margin: .07em .12em 0 -.03em;
  color: var(--tomato);
  font: 400 5.3em/.8 var(--serif);
}
.spread__aside { margin: 0 0 .6rem; color: var(--muted); font: italic 400 1.15rem/1.4 var(--serif); max-width: 36ch; }

/* Two facing pages only when the spread itself is wide enough */
@container spread (min-width: 920px) {
  .spread__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spread__page--img { border-radius: 8px 0 0 8px; min-height: 100%; }
  .spread__grid::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    z-index: 4;
    width: 90px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(60, 35, 10, 0) 0%, rgba(60, 35, 10, .09) 46%, rgba(60, 35, 10, .16) 50%, rgba(255, 252, 245, .35) 52%, rgba(60, 35, 10, 0) 100%);
    pointer-events: none;
  }
}

/* ==========================================================================
   N°04 — RECENSIONI
   ========================================================================== */
.reviews {
  position: relative;
  padding-top: clamp(6rem, 12vw, 11rem);
  background: var(--paper);
  border-top: 1px solid var(--hair);
}
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
@media (min-width: 960px) {
  .reviews__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 6vw; align-items: start; }
}
.score__value {
  margin: 0;
  font: 400 clamp(8.5rem, 4rem + 18vw, 20rem)/.78 var(--serif);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.stars { display: block; width: clamp(150px, 16vw, 220px); height: auto; margin: 1.6rem 0 .9rem; overflow: visible; }
.stars__base { fill: rgba(29, 25, 21, .13); }
.stars__fill { fill: var(--crust); }
.score__caption { margin: 0 0 1.2rem; color: var(--ink-2); font-size: 1.05rem; }
.score__caption strong { font-weight: 600; }

.reviews__data { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.2rem; }
.dist { margin: 0; }
.dist__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair-2); }
.dist__row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 2.6rem;
  align-items: center;
  gap: 1.1rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--hair);
}
.dist__label { font: 400 1.4rem/1 var(--serif); white-space: nowrap; }
.dist__label > span[aria-hidden] { margin-left: .15rem; color: var(--crust); font-size: .78rem; vertical-align: .25em; }
.dist__track { position: relative; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(29, 25, 21, .08); }
.dist__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: var(--ink);
  transform-origin: 0 50%;
}
.dist__row:first-child .dist__bar { background: var(--tomato); }
.dist__count { text-align: right; font: 400 1.4rem/1 var(--serif); font-variant-numeric: tabular-nums; }

.topics { margin: 0; }
.topics .mini-title span { color: var(--muted); letter-spacing: .08em; text-transform: none; font-weight: 400; }
.topics__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair-2); }
@media (min-width: 700px) {
  .topics__list { columns: 2; column-gap: 3rem; border-top: 0; }
  .topics__list li:first-child { border-top: 1px solid var(--hair-2); }
}
.topics__list li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .6rem 0;
  break-inside: avoid;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 700px) {
  .topics__list li:nth-child(4) { border-top: 1px solid var(--hair-2); }
}
.topics__t { font: 400 1.55rem/1.1 var(--serif); }
.topics__dots { flex: 1; transform: translateY(-.28em); border-bottom: 1px dotted rgba(29, 25, 21, .4); }
.topics__n { color: var(--tomato); font: 600 .9rem/1 var(--sans); font-variant-numeric: tabular-nums; }

/* Themes — editorial statements (paraphrased, never quotes) */
.themes {
  margin-top: clamp(5rem, 10vw, 9rem);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4.5rem, 9vw, 7.5rem);
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  overflow: hidden;
}
.themes__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 960px) {
  .themes__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: 4vw; }
  .themes__intro { justify-self: end; }
}
.themes__title { margin: 0; font: italic 400 clamp(2.1rem, 1.4rem + 2.5vw, 3.6rem)/1 var(--serif); letter-spacing: -.01em; }
.themes__intro { margin: 0; max-width: 40ch; color: var(--muted); }

.marquee { padding-inline: var(--gutter); border-top: 1px solid var(--hair-2); }
.marquee + .marquee { border-top-color: var(--hair); }
.marquee:last-of-type { border-bottom: 1px solid var(--hair-2); }
.marquee__group { margin: 0; padding: 0; list-style: none; }
.marquee__group li {
  padding: .9rem 0;
  font: 400 clamp(1.7rem, 1.2rem + 2.2vw, 3rem)/1.12 var(--serif);
  letter-spacing: -.01em;
}
.marquee__group li + li { border-top: 1px solid var(--hair); }

/* Animated marquee (JS adds .is-marquee) */
.is-marquee { padding-inline: 0; overflow: hidden; }
.is-marquee .marquee__track { display: flex; width: max-content; will-change: transform; }
.is-marquee .marquee__group { display: flex; flex: none; }
.is-marquee .marquee__group li {
  display: flex;
  align-items: center;
  padding: .55rem 0;
  border: 0;
  white-space: nowrap;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 5.4rem);
}
.is-marquee .marquee__group li::after {
  content: "";
  flex: none;
  width: .62em;
  height: .2em;
  margin: 0 .55em 0 .6em;
  background:
    radial-gradient(circle at 16% 50%, var(--tomato) 0 .07em, transparent .075em),
    radial-gradient(circle at 50% 50%, var(--basil) 0 .07em, transparent .075em),
    radial-gradient(circle at 84% 50%, var(--crust) 0 .07em, transparent .075em);
}
.is-marquee + .is-marquee .marquee__group li { color: var(--ink-2); }

.themes__cta { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ==========================================================================
   N°05 — APERITIVI & BUFFET
   ========================================================================== */
.buffet {
  position: relative;
  padding-block: clamp(6rem, 12vw, 10rem);
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 40%, rgba(255, 170, 120, .22), rgba(255, 170, 120, 0) 70%),
    radial-gradient(80% 80% at 0% 100%, rgba(80, 10, 0, .22), rgba(80, 10, 0, 0) 70%),
    var(--tomato);
  color: var(--paper);
}
@supports (overflow: clip) { .buffet { overflow: clip; } }
.buffet__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .buffet__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5vw; } }
.buffet .display { max-width: 11ch; }
.buffet .lead { margin-top: 1.8rem; color: var(--paper); }
.occasions {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 0;
  margin: 2rem 0 2.4rem;
  padding: 1rem 0;
  list-style: none;
  border-block: 1px solid var(--hair-light);
  font: italic 400 clamp(1.5rem, 1.2rem + 1vw, 2.15rem)/1.25 var(--serif);
}
.occasions li + li::before { content: "·"; margin: 0 .7rem; opacity: .7; font-style: normal; }
.buffet__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; }
.buffet__phone {
  color: var(--paper);
  font: 400 1.6rem/1 var(--serif);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding: .7rem 0;
}

.tray { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / .9; justify-self: center; }
.tray__plate {
  position: absolute;
  inset: 6% 3%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 214, .2), rgba(255, 236, 214, .06) 72%, rgba(255, 236, 214, 0));
  box-shadow: inset 0 0 0 1px rgba(246, 239, 227, .4);
}
.tray__plate::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(246, 239, 227, .18);
}
.tray__slice { position: absolute; width: 56%; max-width: none; filter: drop-shadow(0 28px 24px rgba(70, 10, 0, .4)); }
.tray__slice--1 { left: 1%; top: 14%; rotate: -16deg; }
.tray__slice--2 { right: 0; top: 30%; rotate: 12deg; }
.tray__slice--3 { left: 18%; bottom: 4%; rotate: -2deg; }
.tray__ing { position: absolute; max-width: none; filter: drop-shadow(0 16px 14px rgba(70, 10, 0, .35)); }
.tray__ing--a { width: 22%; right: 10%; top: 0; rotate: 18deg; }
.tray__ing--b { width: 14%; left: 4%; bottom: 10%; rotate: -12deg; filter: blur(1.2px) drop-shadow(0 14px 12px rgba(70, 10, 0, .3)); }

/* ==========================================================================
   N°06 — DOVE SIAMO
   ========================================================================== */
.visit { padding-block: clamp(6rem, 12vw, 11rem); background: var(--paper); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
@media (min-width: 1000px) { .visit__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 5vw; align-items: start; } }
.visit__address { display: grid; gap: .5rem; margin-bottom: 1.6rem; font-style: normal; color: var(--muted); }
.visit__street { color: var(--ink); font: 400 clamp(2.1rem, 1.5rem + 2.3vw, 3.3rem)/1 var(--serif); }
.status--lg {
  margin-bottom: 2.2rem;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 252, 246, .65);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  font-size: .9rem;
}
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { display: table-caption; caption-side: top; }
.hours__slot { white-space: nowrap; }
@media (max-width: 520px) {
  .hours__slot { display: block; }
  .hours__sep { display: none; }
}
.hours th, .hours td { padding: .78rem 0; border-bottom: 1px solid var(--hair); text-align: left; font-weight: 400; vertical-align: baseline; }
.hours tbody tr:first-child th, .hours tbody tr:first-child td { border-top: 1px solid var(--hair-2); }
.hours th { font: 400 1.32rem/1.2 var(--serif); }
.hours td { text-align: right; color: var(--ink-2); font-size: .94rem; }
.hours__sep { color: var(--muted); white-space: pre; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--tomato-d); }
.hours tr.is-today th::after {
  content: "Oggi";
  margin-left: .7rem;
  padding: .28rem .5rem .26rem;
  border-radius: 999px;
  background: var(--tomato);
  color: var(--paper);
  vertical-align: .3em;
  font: 600 .58rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fine { margin: .9rem 0 2.2rem; color: var(--muted); font-size: .84rem; }
.visit__phone { display: grid; gap: .2rem; margin-bottom: 1.4rem; }
.visit__phone .mini-title { margin: 0; }
.visit__phone a { color: var(--ink); text-decoration: none; font: 400 clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem)/1.05 var(--serif); font-variant-numeric: tabular-nums; }
.visit__phone a:hover { color: var(--tomato-d); }
.visit__ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.visit__extras { display: grid; gap: .55rem; margin: 0 0 1.4rem; padding: 1.2rem 0 0; list-style: none; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: .95rem; }
.visit__extras li { display: flex; gap: .7rem; }
.visit__extras li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--basil); }
.visit__extras li:nth-child(2)::before { background: var(--crust); }
.socials--row a { color: var(--ink); }

.map { margin: 0; }
.map__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: var(--paper-2);
  box-shadow: var(--shadow-warm), 0 0 0 1px var(--hair);
  isolation: isolate;
}
@media (min-width: 640px) { .map__frame { aspect-ratio: 4 / 3.4; } }
@media (min-width: 1000px) { .map__frame { aspect-ratio: auto; height: min(80vh, 780px); position: sticky; top: calc(var(--nav-h) + 2rem); } }
.map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(.42) saturate(.82) hue-rotate(-8deg) contrast(.96) brightness(1.03);
}
.map__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(29, 25, 21, .08), inset 0 0 70px rgba(201, 138, 61, .16);
}
.map__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font: 500 .7rem/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.map__coords { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   REAL PHOTOS (from @pizzavoglia_denis)
   ========================================================================== */

/* Story panels: photos as prints pinned among the floating ingredients */
.art--print {
  height: auto;
  padding: clamp(5px, 1vw, 9px) clamp(5px, 1vw, 9px) clamp(16px, 2.6vw, 28px);
  border-radius: 3px;
  background: var(--cream-hi);
  box-shadow: 0 34px 44px -26px rgba(84, 46, 14, .5), 0 0 0 1px rgba(29, 25, 21, .07);
  filter: none;
}
/* Narrow screens: prints sit below the panel label, ingredients move to the free side */
.art--print-denis { width: clamp(130px, 36vw, 230px); right: 5%; top: 4.2rem; rotate: 4deg; }
.art--print-board { width: clamp(210px, 62vw, 400px); right: -2%; top: 4.2rem; rotate: -5deg; }
.art--print-broc { width: clamp(170px, 50vw, 320px); right: 3%; top: 4.2rem; rotate: 5deg; }
.panel--1 .art--garlic { right: auto; left: 10%; top: 7.5rem; }
.panel--3 .art--olive { right: auto; left: 9%; top: 7rem; }
.panel--4 .art--broccoli { right: auto; left: 7%; top: 6rem; }
@media (max-width: 1023.98px) {
  .panel--1 .panel__big { margin-top: clamp(13.5rem, 60vw, 20rem); }
  .panel--3 .panel__big { margin-top: clamp(12.5rem, 56vw, 21rem); }
  .panel--4 .panel__big { margin-top: clamp(13.5rem, 62vw, 23rem); }
}
.hx-on .art--print-denis { width: min(40vh, 21vw); right: 7%; top: 12%; }
.hx-on .art--print-board { width: min(50vh, 27vw); right: -3%; top: 9%; }
.hx-on .art--print-broc { width: min(46vh, 25vw); right: 6%; top: 14%; }
.hx-on .panel--1 .art--garlic { left: auto; right: 30%; top: 58%; }
.hx-on .panel--3 .art--olive { left: auto; right: 12%; top: 64%; }
.hx-on .panel--4 .art--broccoli { left: auto; right: 30%; top: 10%; }

/* Menu: real photo in the territory spread, seasonal tags */
.spread__mask img.is-photo {
  border-radius: 6px;
  filter: none;
  box-shadow: 0 40px 60px -34px rgba(80, 45, 15, .55), 0 0 0 1px rgba(29, 25, 21, .06);
}
.tag--season { color: var(--crust); box-shadow: inset 0 0 0 1px rgba(201, 138, 61, .55); }

/* Gallery band */
.ig {
  position: relative;
  padding-block: clamp(6rem, 12vw, 11rem);
  background: var(--paper-2);
}
.ig .sec-head__aside { display: grid; gap: 1rem; justify-items: start; }
.ig__grid { columns: 1; column-gap: clamp(14px, 2vw, 26px); }
@media (min-width: 600px) { .ig__grid { columns: 2; } }
@media (min-width: 1000px) { .ig__grid { columns: 3; } }
.ig__item {
  break-inside: avoid;
  margin: 0 0 clamp(18px, 2.6vw, 34px);
}
.ig__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--paper-3);
  box-shadow: 0 30px 50px -36px rgba(80, 45, 15, .55), 0 0 0 1px rgba(29, 25, 21, .06);
}
.ig__item figcaption {
  margin-top: .75rem;
  max-width: 34ch;
  color: var(--muted);
  font: italic 400 1.08rem/1.35 var(--serif);
}

/* Reviews: press line */
.reviews__press { margin-top: 1.6rem; }

/* Map: nothing loads from Google until the visitor asks */
.map__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.25) saturate(.85) brightness(.9);
}
.map__consent {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: .9rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: linear-gradient(to top, rgba(29, 25, 21, .88), rgba(29, 25, 21, .55) 70%, rgba(29, 25, 21, 0));
  color: var(--paper);
}
.map__consent-t { margin: 0; font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.05 var(--serif); }
.map__consent-note { margin: 0; max-width: 40ch; color: rgba(246, 239, 227, .82); font-size: .82rem; line-height: 1.45; }
.map__consent-note a { color: var(--paper); }
.map__frame.is-loaded .map__poster,
.map__frame.is-loaded .map__consent { display: none; }

.footer__fine { color: rgba(246, 239, 227, .7); font-size: .85rem; }
.footer__base a { color: var(--paper); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding: clamp(5.5rem, 11vw, 10rem) 0 calc(5.5rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.footer__sign {
  margin: 0 0 clamp(3.5rem, 8vw, 7rem);
  font: 400 clamp(3.8rem, 1rem + 11.5vw, 13.5rem)/.86 var(--serif);
  letter-spacing: -.03em;
}
.footer__sign em { color: var(--crust); }
.footer__grid {
  display: grid;
  gap: 2.4rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--hair-light);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 4vw; align-items: start; } }
.footer .mini-title { color: rgba(246, 239, 227, .7); }
.footer__col p { margin: 0 0 .5rem; color: rgba(246, 239, 227, .92); font-size: .95rem; line-height: 1.6; }
.footer__col a { color: var(--paper); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--expo); }
.footer__col a:hover { background-size: 100% 1px; }
.footer .socials { display: grid; gap: 0; }
.footer .socials a { min-height: 36px; font-size: .95rem; }

.badge {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbf1cf, #f1df9f);
  color: var(--ink);
  box-shadow: inset 0 0 0 5px rgba(29, 25, 21, .06), 0 20px 40px -20px rgba(0, 0, 0, .6);
  rotate: -8deg;
}
.badge__box {
  display: grid;
  padding: .45rem .6rem .4rem;
  border: 1.5px solid var(--ink);
  font: 700 .82rem/1.05 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
}
.badge__box span:last-child { letter-spacing: .14em; }
.badge .dots i { width: 7px; height: 7px; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--hair-light);
  color: rgba(246, 239, 227, .72);
  font-size: .82rem;
}
.footer__base p { margin: 0; }
.footer__top { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--paper); text-decoration: none; font-size: .85rem; }
.footer__top:hover { color: var(--crust); }

/* Floating call button (mobile) */
.call-fab {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font: 500 .9rem/1 var(--sans);
  box-shadow: 0 18px 40px -14px rgba(29, 25, 21, .65);
  transform: translateY(160%);
  transition: transform .8s var(--expo);
}
.call-fab .ico { color: var(--crust); }
.call-fab.is-visible,
.no-js .call-fab { transform: none; }
@media (max-width: 959.98px) {
  .no-js .hero { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.menu-open .call-fab { transform: translateY(160%); }
@media (min-width: 960px) { .call-fab { display: none; } }

/* ==========================================================================
   Reduced motion: everything static, still composed
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
