/* =====================================================================
   MoSarpi Firenze — stylesheet
   Direzione "Inchiostro e lacca": fondi carbone e crema, lacca come accento,
   filetti oro, titoli in serif. Mobile-first. La scia di spezie (.trail)
   collega le sezioni.
   ===================================================================== */

:root {
  /* Palette: lacca cinese smorzata, carbone, crema del mantou, oro antico */
  --lacca: #a8101b;
  --lacca-scura: #7a0b14;
  --lacca-viva: #c1121f;
  --mantou: #f4e9d3;
  --mantou-scuro: #e9dbbd;
  --carbone: #141110;
  --carbone-2: #1d1816;
  --carbone-3: #0e0b0a;
  --peperoncino: #e8632a;
  --giada: #1f6f5f;
  --oro: #c9a45c;
  --oro-35: rgba(201, 164, 92, .35);
  --inchiostro: #1b1512;
  --inchiostro-70: rgba(27, 21, 18, .72);
  --inchiostro-45: rgba(27, 21, 18, .45);
  --inchiostro-12: rgba(27, 21, 18, .12);
  --bianco: #fbf6ec;
  --crema-12: rgba(244, 233, 211, .12);
  --crema-70: rgba(244, 233, 211, .72);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1180px;
  --radius: 10px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --bottombar-h: 68px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
  --t-slow: 1.1s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--inchiostro);
  background: var(--mantou);
  overflow-x: clip;
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1; margin: 0; letter-spacing: -.015em; font-variation-settings: "opsz" 144; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--inchiostro); color: var(--mantou); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

/* ---------- Sezioni e scia ---------- */
.section { position: relative; isolation: isolate; }
.section > .wrap { position: relative; z-index: 1; }
.section, .marquee { scroll-margin-top: var(--nav-h); }

/* La scia di spezie: elementi a cavallo del confine con la sezione precedente */
.trail { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 3; pointer-events: none; overflow-x: clip; overflow-y: visible; }
.spice {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(var(--s) * var(--k, .85)); aspect-ratio: var(--ar, 1);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .22));
}
.spice svg { width: 100%; height: 100%; }
.spice.lg { display: none; }
/* Fascia riservata alle spezie: chi precede una scia lascia spazio sotto, chi la ospita lascia spazio sopra */
.before-trail { padding-bottom: 110px !important; }
.has-trail { padding-top: 115px !important; }
.menu.has-trail { padding-top: 60px !important; }
@media (min-width: 720px) { .spice { --k: 1.15; } .spice.lg { display: block; } }
@media (min-width: 1024px) {
  .spice { --k: 1.6; }
  .before-trail { padding-bottom: 140px !important; }
  .has-trail { padding-top: 150px !important; }
  .menu.has-trail { padding-top: 90px !important; }
  .hero .wrap { padding-bottom: 120px; }
}

.section-title {
  font-size: clamp(2.5rem, 9.6vw, 5rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: .98;
  text-wrap: balance;
}
.section-kicker {
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.2rem;
  color: var(--lacca); margin-bottom: 14px; font-variation-settings: "opsz" 48;
}
.section-intro { max-width: 38ch; color: var(--inchiostro-70); margin-top: 18px; font-size: 1.05rem; line-height: 1.65; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-decoration: none; border: 1px solid transparent;
  transition: transform .3s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--lacca); color: var(--mantou); box-shadow: 0 12px 30px -16px rgba(168, 16, 27, .8); }
.btn-primary:hover { background: var(--lacca-scura); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(201, 164, 92, .6); background: transparent; color: var(--mantou); }
.btn-ghost:hover { background: rgba(244, 233, 211, .08); border-color: var(--oro); }
.btn-dark { background: var(--inchiostro); color: var(--mantou); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

/* ---------- Intro (prima visita): sipario di carbone, filetto oro, nome ---------- */
html.intro-open { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--carbone); color: var(--mantou);
  display: grid; place-items: center; overflow: hidden;
}
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 55%, rgba(168, 16, 27, .22), transparent 70%); }
.intro-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; text-align: center; padding: 0 var(--gutter); }
.intro-seen .intro { display: none; }
.intro-mark {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--oro); color: var(--oro);
  display: grid; place-items: center; font-family: var(--font-body); font-size: 1.35rem;
  animation: introPop 1.2s var(--ease-out) both .1s;
}
@keyframes introPop { from { transform: scale(.8); opacity: 0; } }
.intro-rule { width: min(40vw, 180px); height: 1px; background: linear-gradient(90deg, transparent, var(--oro), transparent); transform: scaleX(0); animation: introRule 1.4s var(--ease-out) both .3s; }
@keyframes introRule { to { transform: scaleX(1); } }
.intro-word span { animation: introRise 1.1s var(--ease-out) both; transform: translateY(110%); }
@keyframes introRise { to { transform: translateY(0); } }
.intro-word span:nth-child(1) { animation-delay: .55s; } .intro-word span:nth-child(2) { animation-delay: .61s; }
.intro-word span:nth-child(3) { animation-delay: .67s; } .intro-word span:nth-child(4) { animation-delay: .73s; }
.intro-word span:nth-child(5) { animation-delay: .79s; } .intro-word span:nth-child(6) { animation-delay: .85s; }
.intro-word span:nth-child(7) { animation-delay: .91s; }
.intro-tag { animation: introFade .9s var(--ease-out) both 1.2s; opacity: 0; transform: translateY(8px); }
@keyframes introFade { to { opacity: .8; transform: none; } }
.intro-word { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.2rem, 16vw, 7.2rem); letter-spacing: -.03em; line-height: .95; overflow: hidden; padding: 0 .08em; margin-top: 4px; font-variation-settings: "opsz" 144; }
.intro-word span { display: inline-block; }
.intro-tag { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; font-weight: 400; letter-spacing: .01em; color: var(--oro); }
.intro-skip {
  position: absolute; right: 18px; top: calc(16px + env(safe-area-inset-top)); z-index: 2;
  background: transparent; color: var(--mantou); border: 1px solid rgba(244, 233, 211, .35);
  border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; min-height: 44px;
}
.intro.is-leaving { opacity: 0; transform: scale(1.03); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
/* Clip video dietro al nome: a tutto schermo sul telefono, colonna verticale al centro sugli schermi larghi */
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease-out); }
.intro.has-video .intro-video { opacity: 1; }
.intro.has-video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(75% 40% at 50% 52%, rgba(20, 17, 16, .6), rgba(20, 17, 16, .15) 75%), linear-gradient(180deg, rgba(20, 17, 16, .5), rgba(20, 17, 16, .1) 45%, rgba(20, 17, 16, .6)); }
@media (min-aspect-ratio: 4 / 5) {
  .intro-video { inset: 0 auto; left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
}
.reduced .intro, .no-js .intro { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  color: var(--mantou);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.nav.is-solid { background: rgba(244, 233, 211, .97); color: var(--inchiostro); box-shadow: 0 1px 0 rgba(27, 21, 18, .1); }
.nav-inner { width: min(100%, var(--max)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--oro); display: grid; place-items: center; color: var(--oro); font-family: var(--font-body); font-size: .95rem; transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.nav.is-solid .brand-mark { border-color: var(--lacca); color: var(--lacca); }
.brand:hover .brand-mark { transform: rotate(-10deg); }
.nav-links { display: none; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .4s var(--ease-out); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.lang-toggle {
  min-width: 40px; min-height: 36px; border-radius: var(--radius-sm); border: 1px solid currentColor; background: transparent;
  color: inherit; font-weight: 600; font-size: .78rem; letter-spacing: .06em; padding: 0 10px;
  transition: background-color .25s, color .25s;
}
.lang-toggle:hover { background: rgba(244, 233, 211, .12); }
.nav.is-solid .lang-toggle:hover { background: rgba(27, 21, 18, .07); }
.nav-burger {
  width: 44px; height: 44px; border: 0; background: transparent; color: inherit; display: grid; place-items: center;
  gap: 5px; padding: 0; border-radius: 50%;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.status .status-short { display: none; }
@media (max-width: 480px) { .status .status-text { display: none; } .status .status-short { display: inline; } }

/* Drawer di navigazione mobile */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 45; background: var(--carbone); color: var(--mantou);
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px var(--gutter) calc(24px + var(--bottombar-h) + env(safe-area-inset-bottom));
  transform: translateY(-8px); opacity: 0; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; transform: none; }
.drawer-links { display: grid; gap: 2px; }
.drawer-links a {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 8.5vw, 3rem); letter-spacing: -.02em; line-height: 1.15;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--crema-12);
  transform: translateY(12px); opacity: 0; transition: transform .55s var(--ease-out), opacity .55s var(--ease-out), color .3s;
}
.drawer.is-open .drawer-links a { transform: none; opacity: 1; }
.drawer-links a:nth-child(2) { transition-delay: .06s; } .drawer-links a:nth-child(3) { transition-delay: .12s; }
.drawer-links a:nth-child(4) { transition-delay: .18s; } .drawer-links a:nth-child(5) { transition-delay: .24s; }
.drawer-links a.is-active { color: var(--oro); }
.drawer-foot { display: grid; gap: 12px; justify-items: start; }
.drawer-foot p { color: var(--crema-70); }
html.drawer-open .nav { background: var(--carbone); color: var(--mantou); box-shadow: none; }
html.drawer-open .nav .brand-mark { border-color: var(--oro); color: var(--oro); }
html.drawer-open .nav .status { background: var(--crema-12); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; padding: 6px 10px; border-radius: var(--radius-sm);
  background: rgba(244, 233, 211, .1); border: 1px solid rgba(244, 233, 211, .14); white-space: nowrap;
}
.nav.is-solid .status { background: rgba(27, 21, 18, .05); border-color: rgba(27, 21, 18, .1); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa; position: relative; }
.status.is-open .status-dot { background: #3fbf8f; }
.status.is-closed .status-dot { background: var(--peperoncino); }
.status.is-open .status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #3fbf8f; opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Hero: foto a tutta larghezza che si fonde nel carbone ---------- */
.hero {
  min-height: 100svh;
  background: var(--carbone);
  color: var(--mantou);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 8px) 0 0;
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; z-index: 0; margin: 0; overflow: hidden; }
.hero-photo picture { display: block; height: 100%; }
.hero-photo img { width: 100%; height: 112%; object-fit: cover; object-position: 44% 58%; will-change: transform; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 16, .6) 0%, rgba(20, 17, 16, .4) 26%, rgba(20, 17, 16, .62) 50%, rgba(20, 17, 16, .93) 72%, var(--carbone) 100%);
}
.hero::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) - 1px); height: 1px; z-index: 1;
  background: linear-gradient(90deg, var(--oro-35), transparent 70%);
}
.hero .wrap { display: flex; flex-direction: column; gap: 16px; padding-bottom: calc(var(--bottombar-h) + 22px); }
.hero-title {
  font-size: clamp(2.7rem, 11vw, 6.4rem); font-weight: 500; letter-spacing: -.025em; line-height: .98;
  max-width: 12ch; text-wrap: balance;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero-title .line > span { display: block; }
.hero-sub { font-size: 1.05rem; max-width: 36ch; color: var(--crema-70); line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; font-weight: 500; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--crema-12); color: var(--crema-70); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 15px; height: 15px; }
.hero-facts .star { color: var(--oro); }
.hero-facts strong { color: var(--mantou); font-weight: 600; }


/* ---------- Marquee: filetto oro, corsivo ---------- */
.marquee {
  position: relative;
  background: var(--carbone); color: var(--crema-70); overflow: hidden; padding: 16px 0;
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.2rem; letter-spacing: .01em;
  border-top: 1px solid var(--oro-35);
  font-variation-settings: "opsz" 48;
}
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 46s linear infinite; }
.marquee-track span { padding: 0 24px; display: inline-flex; align-items: center; gap: 24px; white-space: nowrap; }
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--oro); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Specialità (carosello snap) ---------- */
.specials { padding: 72px 0 56px; background: var(--mantou); }
.specials-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 30px; }
.specials-scroller {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 26px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.specials-scroller::-webkit-scrollbar { display: none; }
.special {
  flex: 0 0 min(74vw, 300px); scroll-snap-align: start;
  background: transparent; border-radius: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px; position: relative;
}
.special-art { height: 150px; display: grid; place-items: center; }
.special-art.has-photo { display: none; }
.special-art svg { width: 150px; height: 150px; transition: transform .6s var(--ease-out); }
.special h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -.015em; margin-top: 8px; }
.special .cn { font-family: var(--font-body); font-weight: 500; color: var(--lacca); font-size: .9rem; display: block; margin-bottom: 4px; letter-spacing: .02em; }
.special p { color: var(--inchiostro-70); font-size: .95rem; line-height: 1.6; }
.special .tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(251, 246, 236, .94); color: var(--inchiostro); font-size: .7rem; font-weight: 600; letter-spacing: .03em; padding: 5px 9px; border-radius: 4px; border: 1px solid var(--inchiostro-12); }
.special .tag.veg { color: var(--giada); }
.specials-hint { font-size: .85rem; color: var(--inchiostro-45); display: flex; align-items: center; gap: 8px; margin-top: -10px; }
.specials-hint svg { width: 18px; height: 18px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ---------- Fatto a mano: il pane del roujiamo in cinque passaggi ---------- */
.making { background: var(--carbone); color: var(--mantou); padding: 72px 0 30px; }
.making .section-kicker { color: var(--oro); }
.making .section-intro { color: var(--crema-70); }
.making-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 30px; }
.making-hint { color: var(--crema-70); }
.making-steps {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 26px;
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.making-steps::-webkit-scrollbar { display: none; }
.making-step { flex: 0 0 min(74vw, 300px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.making-step figure { margin: 0 0 8px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--carbone-2); border: 1px solid var(--crema-12); }
.making-step img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.making-step:hover img { transform: scale(1.04); }
.making-step .step-n { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--oro); line-height: 1; font-variation-settings: "opsz" 144; }
.making-step h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -.015em; }
.making-step p { color: var(--crema-70); font-size: .95rem; line-height: 1.6; }

/* ---------- Menù ---------- */
.menu { background: var(--bianco); padding: 0 0 70px; margin-top: 0; }
.menu-dome { display: none; }
.menu .wrap { padding-top: 10px; }
.menu-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.tabs {
  position: sticky; top: var(--nav-h); z-index: 5;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0; margin-bottom: 14px;
  background: linear-gradient(var(--bianco) 80%, rgba(251, 246, 236, 0));
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; background: transparent; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; color: var(--inchiostro-70); position: relative; z-index: 1;
  transition: color .3s;
}
.tab[aria-selected="true"] { color: var(--mantou); }
.tab-pill { position: absolute; top: 10px; height: 41px; border-radius: var(--radius-sm); background: var(--inchiostro); z-index: 0; transition: left .45s var(--ease-out), width .45s var(--ease-out); }
.menu-panel { display: none; }
.menu-panel.is-active { display: block; }
.menu-panel h3 { font-size: 1.7rem; font-weight: 500; margin: 20px 0 10px; letter-spacing: -.015em; }
.menu-panel .panel-note { color: var(--inchiostro-45); margin-bottom: 8px; font-family: var(--font-display); font-style: italic; font-size: 1rem; }
.dish {
  display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--inchiostro-12);
}
.dish-name { font-weight: 600; font-size: 1.04rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dish-desc { grid-column: 1; color: var(--inchiostro-70); font-size: .92rem; margin-top: 3px; }
.dish-price { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--inchiostro); white-space: nowrap; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 48; }
.dish .badge { font-size: .66rem; font-weight: 600; letter-spacing: .03em; padding: 2px 7px; border-radius: 4px; border: 1px solid currentColor; background: transparent; }
.badge.hot { color: var(--lacca); }
.badge.veg { color: var(--giada); }
.badge.top { color: #8a6a2a; }
.menu-foot { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.menu-foot small { color: var(--inchiostro-45); font-size: .85rem; max-width: 52ch; }

/* ---------- Storia — Via della Seta ---------- */
.story { background: var(--carbone); color: var(--mantou); padding: 80px 0 90px; }
.story .section-kicker { color: var(--oro); }
.story .section-intro { color: var(--crema-70); }
.story-grid { display: grid; gap: 36px; }
.route { position: relative; margin-top: 10px; overflow: hidden; }
.route svg { width: 100%; height: auto; }
.route .road { fill: none; stroke: var(--oro); stroke-width: 2; stroke-dasharray: 1; }
.route .road-ghost { fill: none; stroke: rgba(201, 164, 92, .2); stroke-width: 2; stroke-dasharray: 4 8; }
.route .stop circle { fill: var(--carbone); stroke: var(--oro); stroke-width: 2; }
.route .stop.end circle { fill: var(--lacca); stroke: var(--mantou); }
.route .stop text { fill: var(--mantou); font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.route .stop tspan.sub { fill: rgba(244, 233, 211, .6); font-weight: 500; font-size: 11px; }
.story-cols { display: grid; gap: 8px; }
.story-card { padding: 22px 0 18px; border-top: 1px solid var(--oro-35); }
.story-card h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: 8px; letter-spacing: -.01em; }
.story-card p { color: var(--crema-70); font-size: .96rem; }
.story-card .num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; color: var(--oro); line-height: 1; display: block; margin-bottom: 10px; font-variation-settings: "opsz" 144; }

/* ---------- Recensioni ---------- */
.reviews { background: var(--mantou); padding: 80px 0 60px; }
.reviews-score { display: flex; align-items: center; gap: 16px; margin: 20px 0 28px; }
.reviews-score .big { font-family: var(--font-display); font-size: 3.8rem; font-weight: 400; line-height: 1; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.stars { display: flex; gap: 2px; color: var(--oro); }
.stars svg { width: 20px; height: 20px; }
.reviews-score small { color: var(--inchiostro-45); display: block; font-size: .85rem; margin-top: 4px; }
.review-list { display: grid; gap: 14px; }
.review {
  background: var(--bianco); border-radius: var(--radius); padding: 24px 22px 20px;
  border: 1px solid var(--inchiostro-12);
  transition: transform .5s var(--ease-out), border-color .3s;
}
.review:hover { transform: translateY(-3px); border-color: rgba(27, 21, 18, .22); }
.review p { font-size: 1.04rem; line-height: 1.55; font-family: var(--font-display); font-weight: 400; font-variation-settings: "opsz" 24; }
.review p::before { content: "“"; color: var(--lacca); margin-right: 2px; }
.review footer { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .88rem; color: var(--inchiostro-70); }
.review .avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--oro); color: var(--inchiostro); display: grid; place-items: center; font-weight: 500; font-family: var(--font-display); }
.review .stars svg { width: 14px; height: 14px; }
.reviews-cta { margin-top: 26px; }

/* ---------- Dove siamo ---------- */
.visit { background: var(--carbone); color: var(--mantou); padding: 80px 0 90px; }
.visit .section-kicker { color: var(--oro); }
.visit .section-intro { color: var(--crema-70); }
.visit-grid { display: grid; gap: 18px; margin-top: 28px; }
.visit-card { background: rgba(244, 233, 211, .04); border: 1px solid var(--crema-12); border-radius: var(--radius); padding: 24px; }
.visit-card h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 14px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.visit-card h3 svg { width: 20px; height: 20px; color: var(--oro); }
.hours { display: grid; gap: 4px; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--crema-12); font-weight: 500; color: var(--crema-70); }
.hours li.is-today { font-weight: 600; color: var(--oro); }
.hours li.is-today span:first-child::after { content: var(--today, " · oggi"); font-weight: 500; font-size: .8em; }
.visit-photo { margin: 0 0 20px; }
.visit-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.visit-photo figcaption { font-size: .88rem; color: var(--crema-70); margin-top: 10px; }
.visit-card address { font-style: normal; line-height: 1.65; color: var(--crema-70); }
.visit-card .big-tel { font-family: var(--font-display); font-size: 2rem; font-weight: 500; text-decoration: none; letter-spacing: -.01em; display: inline-block; margin: 6px 0 10px; color: var(--mantou); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--carbone-2); position: relative; border: 1px solid var(--crema-12); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) saturate(.8) contrast(1.05); }
.visit-note { font-size: .9rem; color: var(--crema-70); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--carbone-3); color: var(--crema-70); padding: 36px 0 32px; font-size: .9rem; border-top: 1px solid var(--crema-12); }
.footer .wrap { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--mantou); letter-spacing: -.01em; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(244, 233, 211, .2); color: var(--mantou); transition: border-color .3s, color .3s, transform .3s var(--ease-out); }
.socials a:hover { border-color: var(--oro); color: var(--oro); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer-credits { font-size: .78rem; color: rgba(244, 233, 211, .4); margin-top: 6px; max-width: 46ch; }
.footer-made { font-size: .78rem; color: rgba(244, 233, 211, .5); margin-top: 4px; }
.footer-made a { color: var(--oro); text-decoration: none; }
.footer-made a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--mantou); }

/* ---------- Bottom bar (mobile) ---------- */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
  background: rgba(251, 246, 236, .97);
  box-shadow: 0 -1px 0 rgba(27, 21, 18, .1), 0 -12px 30px -20px rgba(27, 21, 18, .35);
  transform: translateY(0); transition: transform .4s var(--ease-out);
}
.bottombar.is-hidden { transform: translateY(110%); }
.bottombar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .93rem; min-height: 48px;
  background: transparent; border: 1px solid var(--inchiostro-12); color: var(--inchiostro);
  transition: transform .2s var(--ease-out), background-color .25s;
}
.bottombar a:active { transform: scale(.97); }
.bottombar a svg { width: 19px; height: 19px; }
.bottombar a.primary { background: var(--lacca); border-color: var(--lacca); color: var(--mantou); }

/* ---------- Reveal helpers (IntersectionObserver + transizioni CSS) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .nav-links { display: flex; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero .wrap { padding-bottom: 60px; gap: 20px; }
  .hero-sub { font-size: 1.15rem; }
  .hero-photo img { object-position: 70% 45%; }
  .hero-title { max-width: 11ch; }
  .story-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .review-list { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .map-frame { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .specials-scroller { padding-bottom: 30px; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottombar { display: none; }
  .nav-burger, .drawer { display: none; }
  .hero-photo img { object-position: 78% 50%; }
  .hero-photo::after {
    background:
      linear-gradient(90deg, rgba(20, 17, 16, .96) 0%, rgba(20, 17, 16, .72) 34%, rgba(20, 17, 16, .18) 62%, rgba(20, 17, 16, .05) 100%),
      linear-gradient(180deg, rgba(20, 17, 16, .45) 0%, transparent 25%, transparent 60%, var(--carbone) 100%);
  }
  .story-cols { grid-template-columns: 1fr; }
  .review-list { grid-template-columns: repeat(3, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1fr 1.4fr; }
  .map-frame { grid-column: auto; aspect-ratio: auto; min-height: 360px; }
  .specials-scroller { gap: 18px; }
  .special { flex-basis: 300px; }
}

/* ---------- Motion ridotta ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Foto ---------- */
.special-photo {
  margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mantou-scuro);
  border-radius: var(--radius);
}
.special-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.special:hover .special-photo img { transform: scale(1.04); }
.special .special-art.has-photo { display: none; }

.gallery { background: var(--mantou); padding: 10px 0 0; overflow: hidden; }
.gallery-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery figure { margin: 0; width: min(62vw, 300px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); flex: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-credit { text-align: center; font-size: .75rem; color: var(--inchiostro-45); padding: 14px var(--gutter) 0; }
.gallery-credit a { color: inherit; }

.story-photo { margin-top: 30px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--crema-12); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-pair { display: grid; gap: 14px; }
.story-photo-cut { aspect-ratio: 4 / 3; }
.story-photo-cut img { object-position: 50% 40%; }
@media (min-width: 720px) { .story-pair { grid-template-columns: 1fr 1fr; } .story-photo-cut { aspect-ratio: 1; } }
@media (prefers-reduced-motion: reduce) { .gallery-track { animation: none; } }


/* ---------- Desktop: impaginazione ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --max: 1240px; }

  /* Intestazioni su due colonne: titolo a sinistra, intro a destra, allineata in basso */
  .section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .section-head .section-kicker { grid-column: 1; }
  .section-head .section-title { grid-column: 1; }
  .section-head .section-intro { grid-column: 2; grid-row: 1 / 3; align-self: end; margin-top: 0; max-width: 40ch; padding-bottom: .4em; }

  /* Specialità: quattro card affiancate, niente scorrimento */
  .specials-scroller { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; overflow: visible; margin-inline: 0; padding: 14px 0 20px; scroll-snap-type: none; }
  .special { flex-basis: auto; width: auto; }
  .specials-hint { display: none; }
  .special-photo { aspect-ratio: 4 / 5; }

  /* Fatto a mano: i cinque passaggi affiancati, niente scorrimento */
  .making { padding-top: 90px; }
  .making-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; overflow: visible; margin-inline: 0; padding: 14px 0 20px; scroll-snap-type: none; }
  .making-step { flex-basis: auto; width: auto; }
  .making-step p { font-size: .9rem; }
  .making-hint { display: none; }

  /* Menù: tutte le categorie visibili, due colonne, puntini guida tra piatto e prezzo */
  .tabs { display: none; }
  #menu-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 72px; margin-top: 28px; }
  .menu-panel { display: block; }
  .menu-panel h3 { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--inchiostro); }
  .dish { grid-template-columns: minmax(0, 1fr) auto; }
  .dish-name { flex-wrap: nowrap; }
  .dish-name::after { content: ""; flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted rgba(27, 21, 18, .35); margin: 0 10px 0 12px; transform: translateY(-.35em); }
  .menu-foot { flex-direction: row; align-items: center; gap: 24px; margin-top: 48px; }

  /* Recensioni: punteggio accanto al titolo */
  .reviews .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
  .reviews-head { grid-column: 1; }
  .reviews-score { grid-column: 2; margin: 0 0 10px; }
  .reviews-score .big { font-size: 4.8rem; }
  .review-list { grid-column: 1 / -1; margin-top: 34px; }
  .reviews-cta { grid-column: 1 / -1; }

  /* Storia: foto e rotta affiancate sotto il testo */
  .story-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 64px; }
  .story-cols { gap: 8px; }

  /* Dove siamo: mappa più alta */
  .map-frame { min-height: 420px; }
}
@media (min-width: 1440px) {
  :root { --max: 1320px; }
  .hero-title { font-size: 7rem; }
}

/* =====================================================================
   Ordine da asporto su WhatsApp (js/order.js)
   Nel menù si tocca il piatto e accanto al prezzo compare "×2", come una nota a penna.
   La barra in basso porta un timbro rosso con il conto; il riepilogo è un foglio d'ordine.
   ===================================================================== */
.menu-hint { font-family: var(--font-display); font-style: italic; color: var(--inchiostro-70); font-size: 1.02rem; margin: 6px 0 2px; }
button.dish {
  width: calc(100% + 20px); margin: 0 -10px; padding: 15px 10px; border-radius: 8px;
  background: none; border: 0; border-bottom: 1px solid var(--inchiostro-12);
  text-align: left; font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background-color .2s;
}
button.dish:focus-visible { outline-color: var(--inchiostro); outline-offset: -2px; border-radius: 8px; }
@media (hover: hover) { button.dish:hover { background: rgba(27, 21, 18, .045); } }
button.dish:active { background: rgba(168, 16, 27, .08); }
.dish-desc { display: block; margin: 3px 0 0; }
/* Etichetta "Aggiungi": leggera finché il piatto non è nell'ordine, poi un timbro rosso con "×2" */
.dish-cta {
  grid-column: 2; grid-row: 2; justify-self: end; align-self: start; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--inchiostro-45); color: var(--inchiostro-70); font-size: .8rem; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.dish-cta svg { width: 12px; height: 12px; }
@media (hover: hover) { button.dish:hover .dish-cta { border-color: var(--inchiostro); color: var(--inchiostro); } }
.dish.is-in-order .dish-cta { background: var(--lacca); border-color: var(--lacca); color: var(--mantou); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: .98rem; padding: 0; gap: 0; overflow: hidden; }
/* Nel timbro, a sinistra, il "−" che toglie un pezzo: largo quanto basta per il pollice */
.dish-minus { display: inline-grid; place-items: center; width: 36px; min-height: 30px; align-self: stretch; border-right: 1px solid rgba(244, 233, 211, .35); font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 1.15rem; transition: background-color .2s; }
.dish-qty { padding: 3px 13px 3px 11px; }
@media (hover: hover) { .dish-minus:hover { background: rgba(0, 0, 0, .22); } }
.dish-minus:active { background: rgba(0, 0, 0, .3); }
.dish-cta.is-pop { animation: markPop .45s var(--ease-out); }
.order-open svg { width: 20px; height: 20px; fill: currentColor; }
@keyframes markPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: none; opacity: 1; } }

/* Barra: timbro con il numero dei piatti, totale in oro, "Vedi" */
.order-bar {
  position: fixed; left: 12px; right: 12px; z-index: 61;
  bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom) + 10px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 60px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: var(--inchiostro); color: var(--mantou); text-align: left; font: inherit; cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(27, 21, 18, .7);
  transition: transform .4s var(--ease-out);
}
.order-bar[hidden] { display: none; }
.seal {
  width: 42px; height: 42px; border-radius: 50%; background: var(--lacca); color: var(--mantou);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; font-variant-numeric: tabular-nums;
  transform: rotate(-8deg); box-shadow: inset 0 0 0 2px var(--lacca), inset 0 0 0 3.5px rgba(244, 233, 211, .55);
}
.seal.is-pop { animation: sealPop .5s var(--ease-out); }
@keyframes sealPop { 0% { transform: rotate(-8deg) scale(1); } 40% { transform: rotate(-3deg) scale(1.18); } 100% { transform: rotate(-8deg) scale(1); } }
.order-bar-text { display: grid; line-height: 1.2; min-width: 0; }
.order-bar-text span { font-size: .82rem; color: var(--crema-70); }
.order-bar-text strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--oro); font-variant-numeric: tabular-nums; }
.order-bar-cta { border: 1px solid rgba(244, 233, 211, .45); border-radius: 8px; padding: 0 16px; min-height: 42px; display: inline-flex; align-items: center; font-weight: 600; transition: background-color .2s; }
.order-bar:hover .order-bar-cta { background: rgba(244, 233, 211, .12); }
.bottombar-hidden .order-bar { transform: translateY(calc(var(--bottombar-h) - 2px)); }
html.has-order body { padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom) + 84px); }

/* Foglio d'ordine: dal basso sul telefono, al centro sugli schermi larghi */
.order-dialog { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: none; max-height: calc(100dvh - 24px); background: transparent; color: var(--inchiostro); }
.order-dialog::backdrop { background: rgba(20, 17, 16, .55); }
.order-dialog[open] .order-sheet { animation: orderUp .5s var(--ease-out); }
@keyframes orderUp { from { transform: translateY(48px); opacity: 0; } }
.order-sheet {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 24px); margin: 0;
  background: var(--bianco); border-radius: 16px 16px 0 0; box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .55); overflow: hidden;
}
.order-sheet::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--inchiostro-12); border-radius: 10px; pointer-events: none; z-index: 1; }
.order-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 12px; padding: 24px 26px 8px; }
.order-kicker { font-size: .8rem; color: var(--inchiostro-45); margin: 0 0 4px; }
.order-head h2 { font-size: 2rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; margin: 0; }
.order-head .seal { width: 52px; height: 52px; font-size: 1.5rem; margin-top: -2px; }
.order-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--inchiostro-70); display: grid; place-items: center; padding: 0; }
.order-close svg { width: 18px; height: 18px; }
.order-close:hover { background: var(--mantou); color: var(--inchiostro); }
.order-body { overflow: auto; overscroll-behavior: contain; padding: 4px 26px 10px; }
.order-lines { list-style: none; margin: 6px 0 0; padding: 0; }
.order-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dotted rgba(27, 21, 18, .3); }
.ol-qty { display: inline-flex; align-items: center; border: 1px solid var(--inchiostro-45); border-radius: 6px; height: 36px; }
.ol-qty .qty-btn { width: 34px; height: 34px; border: 0; border-radius: 5px; background: none; color: var(--inchiostro); font-size: 1.15rem; line-height: 1; padding: 0; display: grid; place-items: center; }
.ol-qty .qty-btn:hover { background: var(--mantou); }
.ol-qty b { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ol-name { font-weight: 600; line-height: 1.3; }
.ol-name small { display: block; font-weight: 400; color: var(--inchiostro-45); font-size: .82rem; margin-top: 1px; }
.ol-price { font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-empty { padding: 26px 0 10px; color: var(--inchiostro-70); line-height: 1.6; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; }
.order-total span { font-weight: 600; }
.order-total strong { font-family: var(--font-display); font-size: 2rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.order-closed { background: rgba(201, 164, 92, .18); border: 1px solid var(--oro-35); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .92rem; margin: 12px 0 0; line-height: 1.5; }
.order-fields { display: grid; gap: 18px; padding: 10px 0 6px; }
.order-field { display: grid; gap: 2px; }
.order-field > span { font-size: .8rem; font-weight: 600; color: var(--inchiostro-70); }
.order-field input, .order-field select, .order-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--inchiostro-45); border-radius: 0; background: transparent;
  padding: 8px 0 7px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; color: var(--inchiostro);
  appearance: none; -webkit-appearance: none;
}
.order-field input:focus, .order-field select:focus, .order-field textarea:focus { outline: 0; border-bottom-color: var(--inchiostro); box-shadow: 0 1px 0 var(--inchiostro); }
.order-field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1512' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat; padding-right: 22px; }
.order-field textarea { resize: none; min-height: 42px; overflow: hidden; }
.order-field small { color: var(--inchiostro-45); font-size: .8rem; margin-top: 4px; }
.order-field input[aria-invalid="true"] { border-bottom-color: var(--lacca); box-shadow: 0 1px 0 var(--lacca); }
.order-error { color: var(--lacca); font-weight: 600; font-size: .92rem; margin: 10px 0 0; }
.order-foot { padding: 14px 26px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--inchiostro-12); display: grid; gap: 8px; justify-items: center; }
.order-send { width: 100%; min-height: 54px; font-size: 1.02rem; }
.order-send svg { width: 20px; height: 20px; fill: currentColor; }
.order-foot small { color: var(--inchiostro-45); font-size: .8rem; text-align: center; max-width: 42ch; line-height: 1.45; }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--inchiostro-70); text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.link-btn:hover { color: var(--inchiostro); }
html.order-open { overflow: hidden; }

/* Avviso dopo l'invio */
.order-toast {
  position: fixed; left: 12px; right: 12px; z-index: 70;
  bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom) + 82px);
  background: var(--giada); color: var(--mantou); padding: 12px 16px; border-radius: 12px;
  font-size: .93rem; line-height: 1.45; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5);
}
.order-toast a { color: inherit; font-weight: 600; }

@media (min-width: 720px) {
  .order-dialog { margin: auto; width: min(540px, calc(100vw - 48px)); max-height: calc(100dvh - 64px); }
  .order-sheet { border-radius: 14px; max-height: calc(100dvh - 64px); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
  .order-toast { left: auto; right: 24px; max-width: 400px; }
}
@media (min-width: 1024px) {
  .dish { grid-template-columns: minmax(0, 1fr) auto auto; }
  .dish-cta { grid-column: 3; grid-row: 1; align-self: center; margin: -4px 0; }
  .dish-desc { grid-column: 1; }
  .order-bar { left: auto; right: 32px; bottom: 28px; width: min(380px, calc(100vw - 64px)); }
  .bottombar-hidden .order-bar { transform: none; }
  html.has-order body { padding-bottom: 96px; }
  .order-toast { bottom: 100px; right: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .order-dialog[open] .order-sheet, .dish-cta.is-pop, .seal.is-pop { animation: none; }
  .order-bar, button.dish { transition: none; }
}

/* ---------- Mappa Google: si carica solo al tocco ---------- */
.map-gate {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 24px; text-align: center;
  background: radial-gradient(60% 60% at 50% 40%, rgba(201, 164, 92, .14), transparent 70%), var(--carbone-2);
}
.map-gate svg { width: 30px; height: 30px; color: var(--oro); }
.map-gate p { color: var(--crema-70); font-size: .9rem; line-height: 1.5; max-width: 34ch; margin: 0; }
.map-alt { color: var(--crema-70); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.map-alt:hover { color: var(--mantou); }

/* ---------- Pagina Privacy e cookie ---------- */
body.legal { padding-bottom: 0; }
.legal-head { max-width: 760px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; text-decoration: none; color: var(--inchiostro); display: inline-flex; align-items: center; gap: 8px; }
.legal-brand span { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--oro); color: var(--lacca); display: grid; place-items: center; font-family: var(--font-body); font-size: .95rem; }
.legal-back { font-size: .92rem; font-weight: 600; color: var(--inchiostro-70); text-decoration: underline; text-underline-offset: 3px; }
.legal-main { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.legal-main h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3rem); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 8px; }
.legal-updated { color: var(--inchiostro-45); font-size: .9rem; margin: 0 0 22px; }
.legal-intro { font-size: 1.08rem; line-height: 1.65; }
.legal-main h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.015em; margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--inchiostro-12); }
.legal-main h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 24px 0 6px; }
.legal-main p { line-height: 1.7; margin: 0 0 14px; }
.legal-main a { color: var(--lacca); text-underline-offset: 3px; }
.legal-main mark { background: #ffe58a; color: var(--inchiostro); padding: 1px 5px; border-radius: 3px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 8px 0 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--inchiostro-12); line-height: 1.5; }
.legal-table th { font-weight: 600; color: var(--inchiostro-70); font-size: .82rem; }
.legal-table code { font-size: .85em; background: var(--mantou-scuro); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.legal-foot { background: var(--carbone-3); color: var(--crema-70); padding: 28px var(--gutter); text-align: center; font-size: .88rem; }
.legal-foot p { margin: 0 0 6px; }
.legal-foot a { color: var(--oro); text-decoration: none; }
.legal-foot a:hover { text-decoration: underline; }
@media (max-width: 480px) { .legal-table thead { display: none; } .legal-table tr { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--inchiostro-12); } .legal-table td { border: 0; padding: 0; } }
