/* ==========================================================================
   Alfredo – Pizza e Cucina
   Impianto: sala scura e calda, foto in primo piano. Titoli in maiuscolo da
   insegna, con una parola a pennello come nel logo; il marrone del logo torna
   nelle fasce.
   ========================================================================== */

/* Caratteri ospitati sul sito: il visitatore non fa nessuna richiesta a Google */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Satisfy"; src: url("../fonts/satisfy-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Colori */
  --espresso: #140d09;      /* fondo della pagina */
  --coffee: #1c130d;        /* superfici sollevate */
  --coffee-2: #281b12;
  --kraft: #8b6139;         /* il marrone del logo */
  --kraft-deep: #6d4b2a;
  --peach: #f2b47e;         /* le scritte a pennello */
  --amber: #f6b24d;         /* fiamma, lato chiaro */
  --flame: #ea6a2c;         /* fiamma, lato caldo */
  --cream: #f7eddd;         /* testo */
  --muted: #cfbfaa;         /* testo secondario */
  --faint: #a08e7a;
  --line: rgba(247, 237, 221, .12);
  --verde: #3d9a57;
  --rosso: #cf3f31;

  /* Caratteri */
  --ff-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ff-script: "Satisfy", "Brush Script MT", cursive;
  --ff-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Misure e movimento */
  --nav-h: 68px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 32px);
  --r: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --mo: cubic-bezier(.16, 1, .3, 1);   /* parte decisa, si posa piano */

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--espresso);
  /* Grana sottile, per togliere al fondo l'aspetto piatto */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .93  0 0 0 0 .86  0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
svg.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.ico.brand-ico { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--flame); color: #fff; }

.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--cream); color: var(--espresso); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Titoli ---------- */
.display {
  font: 400 clamp(2.3rem, 5.6vw, 4rem)/.98 var(--ff-display);
  text-transform: uppercase; letter-spacing: .015em; text-wrap: balance;
}
/* La parola a pennello sopra i titoli: leggermente storta, come una firma */
.script {
  display: block; width: fit-content;
  font: 400 clamp(1.55rem, 3.2vw, 2.15rem)/1 var(--ff-script);
  color: var(--peach);
  transform: rotate(-4deg); transform-origin: left bottom;
  margin-bottom: .12em;
}
.center .script { margin-inline: auto; transform-origin: center bottom; }
/* Pennellata sotto i titoli */
.stroke::after {
  content: ""; display: block;
  width: min(170px, 46%); height: 11px; margin-top: .42em;
  background: linear-gradient(90deg, var(--amber), var(--flame));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5C20 3 41 4.600 62 5.200S112 2 141 3.800 186 4.800 198 2.600l-1 3.600C171 9.400 151 7.200 121 8.200S71 11.400 41 9.200 11 10.600 3 9.400z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.500C20 3 41 4.600 62 5.200S112 2 141 3.800 186 4.800 198 2.600l-1 3.600C171 9.400 151 7.200 121 8.200S71 11.400 41 9.200 11 10.600 3 9.400z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: left center;
}
.center .stroke::after { margin-inline: auto; transform-origin: center; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 58ch; text-wrap: pretty; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.45em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--ff-body); white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-flame {
  background: linear-gradient(135deg, var(--amber), var(--flame)); color: #2a1408;
  box-shadow: 0 12px 30px -12px rgba(234, 106, 44, .8);
}
.btn-flame:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(234, 106, 44, .95); }
.btn-ghost { border-color: rgba(247, 237, 221, .34); background: rgba(20, 13, 9, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--peach); background: rgba(242, 180, 126, .14); transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: #2a1408; }
.btn-cream:hover { transform: translateY(-2px); background: #fff; }
.btn-dark { background: rgba(20, 13, 9, .86); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); background: var(--espresso); }
.btn-sm { padding: .72em 1.15em; font-size: .94rem; }

/* ---------- Barra di avanzamento ---------- */
#progress {
  position: fixed; top: 0; left: 0; z-index: 120; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--amber), var(--flame));
  transform: scaleX(0); transform-origin: left center;
}

/* ---------- Navigazione ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(20, 13, 9, .84); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
/* Senza JavaScript la barra non sa quando si scorre: resta sempre piena */
html:not(.js) .nav { background: rgba(20, 13, 9, .9); border-bottom-color: var(--line); }
html:not(.js) .chips { background: rgba(20, 13, 9, .9); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: auto; border-radius: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font: 400 1.7rem/1 var(--ff-script); color: var(--cream); }
.brand-text i { font: 700 .62rem/1 var(--ff-body); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--peach); margin-top: 3px; }
/* In cima alla pagina il logo grande è già nella testata: quello piccolo arriva dopo */
.js .nav .brand { opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--mo); }
.js .nav.past .brand { opacity: 1; transform: none; pointer-events: auto; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: .5em .85em; border-radius: 999px; font-weight: 600; font-size: .98rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--cream); background: rgba(247, 237, 221, .08); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .98rem; font-variant-numeric: tabular-nums; transition: color .2s; }
.nav-phone:hover { color: var(--peach); }
.nav-phone .ico { color: var(--peach); }

/* ---------- Testata ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(100svh, 640px);
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 12px) 0 86px;
  text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: -4% 0 -4%; z-index: -3; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; animation: slowZoom 32s ease-in-out infinite alternate; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero::before {   /* velo: scuro in alto per la barra, più aperto al centro, chiuso in basso */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 85% 75% at 50% 48%, rgba(20, 13, 9, .08), rgba(20, 13, 9, .58) 100%),
    linear-gradient(180deg, rgba(20, 13, 9, .8) 0%, rgba(20, 13, 9, .34) 24%, rgba(20, 13, 9, .36) 66%, rgba(20, 13, 9, .86) 91%, var(--espresso) 100%);
}
.farina { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-content { display: grid; justify-items: center; gap: 0; }
.hero-logo {
  width: clamp(132px, min(15vw, 21vh), 182px);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .75);
  margin-bottom: clamp(16px, 2.6vh, 26px);
}
.lockup {
  font: 400 clamp(2.7rem, min(7.4vw, 10.6vh), 5.25rem)/.94 var(--ff-display);
  text-transform: uppercase; letter-spacing: .012em;
  text-shadow: 0 2px 34px rgba(10, 5, 3, .6);
}
.lockup .l { display: block; }
.lockup .l2 {
  font: 400 1.5em/.9 var(--ff-script); text-transform: none; letter-spacing: 0;
  color: var(--peach); transform: rotate(-5deg);
  margin: -.05em 0 .02em; padding-inline: .1em;
  text-shadow: 0 3px 26px rgba(10, 5, 3, .8);
}
.hero-lead { margin-top: clamp(14px, 2.2vh, 22px); max-width: 62ch; color: #eadccb; font-size: clamp(1.02rem, 1.45vw, 1.17rem); text-wrap: balance; }
.hero-actions { margin-top: clamp(18px, 3vh, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-facts { margin-top: clamp(16px, 2.6vh, 24px); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-facts li { display: inline-flex; align-items: center; gap: .45em; }
.hero-facts .ico { color: var(--amber); width: 1em; height: 1em; stroke-width: 3; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  font: 700 .68rem/1 var(--ff-body); letter-spacing: .28em; text-transform: uppercase; color: var(--faint);
  transition: opacity .4s var(--ease);
}
.scroll-hint::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--peach), transparent); animation: hint 2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0%, 100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
.nav.scrolled ~ main .scroll-hint { opacity: 0; pointer-events: none; }

/* Entrata della testata: CSS puro, parte anche se il JavaScript non si carica */
.hero-logo { animation: logoIn 1.1s var(--mo) .1s both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(16px) scale(.9); filter: blur(6px); } }
.lockup .l1, .lockup .l3, .hero-lead, .hero-actions, .hero-facts { animation: rise .9s var(--mo) both; }
.lockup .l1 { animation-delay: .35s; }
.lockup .l3 { animation-delay: .62s; }
.hero-lead { animation-delay: .86s; }
.hero-actions { animation-delay: 1s; }
.hero-facts { animation-delay: 1.14s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
/* La parola a pennello si scrive da sinistra a destra */
.lockup .l2 { animation: write 1.15s var(--mo) .5s both; }
@keyframes write {
  from { clip-path: inset(-40% 100% -40% -6%); opacity: .3; }
  to { clip-path: inset(-40% -6% -40% -6%); opacity: 1; }
}

/* ---------- Nastro scorrevole ---------- */
.ticker {
  position: relative; z-index: 3;
  background: var(--kraft); color: var(--cream);
  border-block: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  transform: rotate(-1.1deg) scale(1.03);
  margin-top: -14px;
}
.ticker-track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-set span {
  display: inline-flex; align-items: center; gap: 1.5em; padding: .82em 0 .78em 1.5em;
  font: 400 clamp(1rem, 1.8vw, 1.3rem)/1 var(--ff-display); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
}
.ticker-set .ico { width: 1.05em; height: 1.05em; color: #f6dcc0; stroke-width: 1.800; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Menù ---------- */
.menu { padding-top: clamp(64px, 10vw, 120px); }
.section-head { display: grid; gap: 0; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head .lede { margin-top: 1.1em; }

/* Categorie: restano agganciate sotto la barra mentre si scorre il menù.
   Finché non si agganciano sono semplici pulsanti; una volta in alto
   diventano una fascia a tutta larghezza. */
.chips-mark { height: 1px; margin-bottom: -1px; }
.chips {
  position: sticky; top: var(--nav-h); z-index: 40;
  margin-inline: calc((100vw - 100%) / -2); padding-block: 10px;
  border-block: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.chips.stuck {
  background: rgba(20, 13, 9, .88); border-block-color: var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.chips ul {
  display: flex; gap: 8px; width: max-content; max-width: 100%; margin-inline: auto;
  padding-inline: var(--gut);
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.chips ul::-webkit-scrollbar { display: none; }
.chips a {
  display: block; padding: .58em 1.05em; border-radius: 999px; border: 1px solid rgba(247, 237, 221, .16);
  background: rgba(28, 19, 13, .7);
  font-weight: 600; font-size: .95rem; color: var(--muted); white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.chips a:hover { color: var(--cream); border-color: rgba(247, 237, 221, .34); }
.chips a.on { background: linear-gradient(135deg, var(--amber), var(--flame)); color: #2a1408; border-color: transparent; }

.cat {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(28px, 5.5vw, 76px);
  padding-block: clamp(46px, 6.4vw, 84px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 62px);
}
.cat.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cat.flip .cat-text { order: 2; }
.cat-text { display: grid; gap: 0; }
.cat-body { margin-top: 1.25em; display: grid; gap: 1.2em; }
.cat-body > p { color: var(--muted); max-width: 46ch; text-wrap: pretty; }

/* Righe da carta del menù: nome, puntini, e a destra una nota scritta a mano */
.dishes { display: grid; }
.dishes li { padding: .9em 0; border-top: 1px solid var(--line); }
.dishes li:last-child { border-bottom: 1px solid var(--line); }
.dish-row { display: flex; align-items: baseline; gap: 12px; }
.dishes h4 { font: 400 1.36rem/1.15 var(--ff-display); text-transform: uppercase; letter-spacing: .035em; }
.dots { flex: 1; min-width: 18px; border-bottom: 2px dotted rgba(247, 237, 221, .26); transform: translateY(-.3em); }
.dishes em { font: 400 1.5rem/1 var(--ff-script); font-style: normal; color: var(--peach); white-space: nowrap; }
.dishes p { margin-top: .3em; color: var(--muted); font-size: .98rem; line-height: 1.5; max-width: 44ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: .45em; padding: .42em .85em; border-radius: 999px;
  background: rgba(242, 180, 126, .12); border: 1px solid rgba(242, 180, 126, .3); color: var(--peach);
  font-weight: 700; font-size: .84rem; letter-spacing: .02em;
}
.tag .ico { width: 1em; height: 1em; }

/* Foto: una grande e due piccole */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; position: relative; }
.mosaic::before {   /* alone caldo dietro le foto */
  content: ""; position: absolute; inset: -12% -8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(234, 106, 44, .17), transparent 72%);
}
.ph { position: relative; display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--coffee-2); cursor: zoom-in; }
.ph.big { grid-row: 1 / 3; aspect-ratio: auto; }
.cat.flip .mosaic { grid-template-columns: 1fr 2fr; }
.cat.flip .ph.big { grid-column: 2; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--mo); }
.ph::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(247, 237, 221, .1); pointer-events: none;
}
.ph:hover img { transform: scale(1.07); }
.ph::before {   /* il "più" che invita a ingrandire */
  content: ""; position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(20, 13, 9, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7eddd' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.7); transition: opacity .3s var(--ease), transform .4s var(--mo);
}
.ph:hover::before, .ph:focus-visible::before { opacity: 1; transform: none; }

/* ---------- Fascia "ordina" ---------- */
.order {
  position: relative; overflow: hidden; isolation: isolate;
  margin-block: clamp(52px, 8vw, 100px);
  padding: clamp(28px, 5vw, 60px);
  border-radius: clamp(22px, 3vw, 34px);
  background: linear-gradient(135deg, #99703f 0%, var(--kraft) 46%, var(--kraft-deep) 100%);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  scroll-margin-top: calc(var(--nav-h) + 76px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
}
.order .script { color: #fbe3c8; }
.order .display { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.order p { margin-top: 1em; color: #f3e2cd; max-width: 44ch; font-size: 1.1rem; }
.order-actions { margin-top: 1.5em; display: flex; flex-wrap: wrap; gap: 12px; }
/* Due foto appoggiate una sull'altra, come su un bancone */
.stack { position: relative; aspect-ratio: 1 / 1; max-width: 360px; width: 100%; justify-self: center; }
.stack img {
  position: absolute; width: 74%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
  border: 5px solid #fbf3e6; box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .7);
  transition: transform .7s var(--mo);
}
.stack img:first-child { left: 0; top: 6%; transform: rotate(-7deg); }
.stack img:last-child { right: 0; bottom: 6%; transform: rotate(6deg); }
.order:hover .stack img:first-child { transform: rotate(-10deg) translate(-4px, -4px); }
.order:hover .stack img:last-child { transform: rotate(9deg) translate(4px, 4px); }

/* ---------- Menù completo ---------- */
.full {
  margin-block: clamp(52px, 8vw, 96px) 0;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(40, 27, 18, .9), rgba(28, 19, 13, .9));
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px 40px;
}
.full h3 { font: 400 clamp(1.7rem, 3.6vw, 2.5rem)/1.05 var(--ff-display); text-transform: uppercase; letter-spacing: .02em; }
.full p { color: var(--muted); margin-top: .5em; max-width: 52ch; }

/* ---------- Manifesto: il logo, allargato a tutta la fascia ---------- */
.manifesto {
  position: relative; isolation: isolate;
  margin-top: clamp(72px, 11vw, 140px);
  padding-block: clamp(70px, 10vw, 124px);
  background: linear-gradient(180deg, #92693c, var(--kraft) 40%, #7c5631);
  text-align: center;
}
/* Le due pennellate bianche del logo, sopra e sotto */
.manifesto::before, .manifesto::after {
  content: ""; position: absolute; left: 50%; width: min(88%, 1040px); height: 9px;
  transform: translateX(-50%); background: #fbf3e6; opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cpath d='M1 5.500C40 3.500 82 4.600 120 4.200S214 2.600 262 3.600 362 4.400 399 3l-1 3.200C352 7.800 300 6.400 250 7.200S140 8.800 96 7.400 30 8.600 2 7.800z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cpath d='M1 5.500C40 3.500 82 4.600 120 4.200S214 2.600 262 3.600 362 4.400 399 3l-1 3.200C352 7.800 300 6.400 250 7.200S140 8.800 96 7.400 30 8.600 2 7.800z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.manifesto::before { top: clamp(30px, 4.4vw, 52px); }
.manifesto::after { bottom: clamp(30px, 4.4vw, 52px); transform: translateX(-50%) scaleX(-1); }
.manifesto .posate {   /* le posate incrociate che nel logo interrompono la pennellata */
  position: absolute; left: 50%; top: clamp(30px, 4.4vw, 52px); transform: translate(-50%, -42%);
  width: 58px; height: 34px; display: grid; place-items: center; background: #8e663a; color: #fbf3e6;
}
.manifesto .posate .ico { width: 26px; height: 26px; stroke-width: 1.700; }
.manifesto .display { font-size: clamp(2.4rem, 7vw, 5rem); color: #fff8ee; }
.manifesto p { margin: 1.1em auto 0; max-width: 56ch; color: #f8e9d6; font-size: clamp(1.08rem, 1.7vw, 1.3rem); text-wrap: balance; }
.manifesto .buon { font: 400 clamp(2.4rem, 6vw, 4.2rem)/1 var(--ff-script); color: #fff8ee; display: inline-block; margin-top: .5em; transform: rotate(-4deg); }

/* Timbro che gira */
.seal {
  position: absolute; right: max(var(--gut), calc((100% - var(--wrap)) / 2)); top: 0; transform: translateY(-76%); z-index: 2;
  width: clamp(104px, 12vw, 148px); aspect-ratio: 1; border-radius: 50%;
  background: var(--espresso); color: var(--cream);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(247, 237, 221, .16);
  display: grid; place-items: center;
}
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal svg.ring text { font: 400 11.500px var(--ff-display); letter-spacing: .21em; fill: var(--cream); text-transform: uppercase; }
.seal .ico { width: 34%; height: 34%; color: var(--peach); stroke-width: 1.600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contatti ---------- */
.contacts {
  padding-block: clamp(72px, 10vw, 128px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 84px); align-items: start;
  scroll-margin-top: var(--nav-h);
}
.where address { font-style: normal; margin-top: 1.3em; font: 400 clamp(1.5rem, 2.8vw, 2.1rem)/1.2 var(--ff-display); text-transform: uppercase; letter-spacing: .03em; }
.where address small { display: block; margin-top: .35em; font: 600 1rem/1.4 var(--ff-body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.where .lede { margin-top: 1em; }
.where-actions { margin-top: 1.6em; display: flex; flex-wrap: wrap; gap: 12px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 18px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(40, 27, 18, .85), rgba(28, 19, 13, .85));
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(242, 180, 126, .5); background: linear-gradient(180deg, rgba(52, 35, 22, .95), rgba(34, 23, 15, .95)); }
.card-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 180, 126, .13); color: var(--peach); }
.card-ico .ico { width: 21px; height: 21px; }
.card-txt { min-width: 0; }
.card-txt b { display: block; font: 700 .74rem/1 var(--ff-body); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.card-txt span { display: block; margin-top: 6px; font-weight: 600; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.card .go { color: var(--faint); transition: transform .3s var(--mo), color .3s; }
.card:hover .go { transform: translate(3px, -3px); color: var(--peach); }
.card.wide { grid-column: 1 / -1; }

/* ---------- Piè di pagina ---------- */
.footer { position: relative; padding: 44px 0 40px; background: #0f0906; color: var(--muted); font-size: .95rem; }
.footer::before {   /* un filo di tricolore */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--verde) 0 33.330%, #f4ede2 33.330% 66.660%, var(--rosso) 66.660% 100%);
}
.footer-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 36px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 92px; }
.footer p { line-height: 1.55; }
.footer strong { color: var(--cream); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; font-weight: 600; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--peach); }
.footer-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

/* ---------- Torna su (computer) e barra rapida (telefono) ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(28, 19, 13, .9); border: 1px solid rgba(247, 237, 221, .2); color: var(--cream);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--mo), border-color .2s, color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--peach); color: var(--peach); }

.dock { display: none; }

/* ---------- Ingrandimento delle foto ---------- */
.lb { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; color: var(--cream); overflow: hidden; }
.lb::backdrop { background: rgba(10, 6, 4, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; animation: lbIn .25s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb figure { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 16px 8px; min-height: 0; }
.lb img { max-width: min(100%, 1100px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb figcaption { padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--muted); font-weight: 600; }
.lb button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(247, 237, 221, .25);
  background: rgba(28, 19, 13, .8); color: var(--cream); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.lb button:hover { border-color: var(--peach); color: var(--peach); }
.lb .lb-x { top: 14px; right: 14px; }
.lb .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb button .ico { width: 22px; height: 22px; }

/* ==========================================================================
   Comparsa allo scorrimento. Attiva solo se il JavaScript è partito (.js):
   senza, tutto resta visibile.
   ========================================================================== */
.js [data-r] { transition: opacity .8s var(--ease), transform .95s var(--mo); transition-delay: calc(var(--d, 0) * 85ms); }
.js [data-r]:not(.in) { opacity: 0; transform: translateY(30px); }
.js [data-r="l"]:not(.in) { transform: translateX(-46px); }
.js [data-r="r"]:not(.in) { transform: translateX(46px); }
.js .script[data-r]:not(.in) { transform: rotate(-4deg) translateX(-30px); }
.js .script[data-r] { transition: opacity .7s var(--ease), transform .9s var(--mo); }

/* La pennellata sotto il titolo si disegna dopo che il titolo è arrivato */
.js .stroke[data-r]::after { transition: transform .9s var(--mo) .35s; }
.js .stroke[data-r]:not(.in)::after { transform: scaleX(0); }

/* Le foto si scoprono dal basso, mentre l'immagine si assesta.
   Il taglio sta sull'immagine e non sulla cornice: una cornice tagliata
   a zero non verrebbe mai vista dall'osservatore di scorrimento. */
.js .ph[data-r]:not(.in) { opacity: 1; transform: none; }
.js .ph[data-r] img { transition: clip-path 1.1s var(--mo), transform 1.3s var(--mo); transition-delay: calc(var(--d, 0) * 110ms); clip-path: inset(0); }
.js .ph[data-r]:not(.in) img { clip-path: inset(100% 0 0 0); transform: scale(1.18); }
.js .ph[data-r]:not(.in) { background: transparent; }
.js .ph[data-r]:not(.in)::after { opacity: 0; }
.js .ph[data-r]::after { transition: opacity .6s var(--ease) .5s; }

/* ==========================================================================
   Schermi stretti
   ========================================================================== */
@media (max-width: 1020px) {
  .nav-phone span { display: none; }
  .nav-phone { width: 42px; height: 42px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .cat, .cat.flip { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Su telefono: titolo, poi foto, poi descrizione e piatti */
  .cat-text { display: contents; }
  .cat-head { order: 1; }
  .mosaic, .cat.flip .mosaic { order: 2; margin-top: 22px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .ph.big, .cat.flip .ph.big { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 4 / 3; }
  .cat-body { order: 3; margin-top: 22px; }
  .order { grid-template-columns: minmax(0, 1fr); }
  .stack { max-width: 300px; order: -1; aspect-ratio: 5 / 4; }
  .full { grid-template-columns: minmax(0, 1fr); }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav-cta .btn { display: none; }
  .nav-phone { display: none; }
  .nav-in { justify-content: center; }
  .hero { padding-bottom: 70px; }
  .hero-actions .only-wide { display: none; }
  .hero-actions .btn { flex: 1 1 100%; max-width: 340px; }
  .to-top { display: none; }
  .seal { right: var(--gut); }

  /* Barra rapida in basso: le quattro cose che servono dal telefono */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    position: fixed; inset: auto 0 0 0; z-index: 95;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 7px max(8px, env(safe-area-inset-left, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    background: rgba(15, 9, 6, .94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(110%); transition: transform .45s var(--mo);
  }
  .dock.show { transform: none; }
  .dock a { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border-radius: 12px; font: 700 .7rem/1 var(--ff-body); letter-spacing: .02em; color: var(--muted); }
  .dock a .ico { width: 22px; height: 22px; }
  .dock a.main { color: #2a1408; background: linear-gradient(135deg, var(--amber), var(--flame)); }
  .dock a:active { background: rgba(247, 237, 221, .1); }
  .dock a.main:active { filter: brightness(.94); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .order-actions .btn, .where-actions .btn, .full .btn { flex: 1 1 100%; }
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 84px; transform: none; }
}

/* ==========================================================================
   Chi ha chiesto meno movimento vede la pagina ferma
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .farina { display: none; }
  .js [data-r]:not(.in), .js .script[data-r]:not(.in) { opacity: 1; transform: none; }
  .js .script[data-r]:not(.in) { transform: rotate(-4deg); }
  .js .ph[data-r]:not(.in) img { clip-path: none; transform: none; }
  .js .stroke[data-r]:not(.in)::after { transform: none; }
  .js .nav .brand { transition: none; }
}
