/* Gusti Pizzeria e Rosticceria · Melissano.
   Colori dal logo del locale (navy #002E49, crema #FFE6CA), giallo dal pomodorino delle «Gialle», listelli dal bancone.
   Titoli in Just Another Hand (la mano del logo e delle magliette), testi in Aleo (la scritta sotto il logo). */
:root {
  --navy: #002e49;
  --navy-scuro: #00233a;
  --navy-chiaro: #0a3f60;
  --navy-riga: rgba(255, 230, 202, .16);
  --crema: #ffe6ca;
  --crema-chiara: #fff3e4;
  --giallo: #f7b928;
  --giallo-chiaro: #ffcb4f;
  --testo: #fff3e4;
  --testo-muto: #c9d6dd;
  --testo-navy-muto: #35566b;
  --rosso: #b3261e;
  --mano: "Just Another Hand", "Marker Felt", "Segoe Print", cursive;
  --testo-font: "Aleo", Georgia, "Times New Roman", serif;
  --barra: 68px;
  --ombra: 0 18px 40px rgba(0, 20, 34, .45);
  --taglio: 14px 18px 12px 20px / 18px 12px 20px 14px;
  --esce: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--barra) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--testo);
  font-family: var(--testo-font); font-size: 1.0625rem; line-height: 1.62; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
h2, h3 { text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--giallo-chiaro); outline-offset: 3px; border-radius: 6px; }
.gialle :focus-visible, .regole :focus-visible, .dove :focus-visible, .ordina :focus-visible { outline-color: var(--navy); }

.wrap { width: min(100% - 40px, 1240px); margin-inline: auto; }
.salta { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--giallo); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 800; }
.salta:focus { top: 10px; }

/* titoli di sezione a mano */
.testa h2, .tasselli__titolo, .chi__txt h2, .ordina__txt h2, .dove__txt h2, .gialle__txt h2 {
  font-family: var(--mano); font-weight: 400; line-height: .98; letter-spacing: .005em;
  font-size: clamp(3.1rem, 6.4vw, 5.2rem);
}
.testa { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 28px; margin-bottom: clamp(28px, 4vw, 48px); }
.testa h2 { color: var(--crema); }
.testa--navy h2 { color: var(--navy); }

/* pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  padding: 11px 20px; border: 2px solid transparent; border-radius: var(--taglio);
  font-family: var(--testo-font); font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--esce), background-color .2s, color .2s, box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px) rotate(-.6deg); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding: 13px 24px; font-size: 1.0938rem; }
.btn--giallo { background: var(--giallo); color: var(--navy); box-shadow: 0 8px 22px rgba(247, 185, 40, .28); }
.btn--giallo:hover { background: var(--giallo-chiaro); }
.btn--linea { border-color: var(--crema); color: var(--crema); }
.btn--linea:hover { background: var(--crema); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--crema); }
.btn--navy:hover { background: var(--navy-chiaro); }
.btn--linea-navy { border-color: var(--navy); color: var(--navy); }
.btn--linea-navy:hover { background: var(--navy); color: var(--crema); }

.intero { white-space: nowrap; }

.link-freccia { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--crema); text-underline-offset: 4px; }
.link-freccia svg { width: 20px; height: 20px; transition: transform .25s var(--esce); }
.link-freccia:hover svg { transform: translateX(5px); }

/* ---------- barra in alto ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--navy); transition: box-shadow .25s; }
.topbar.is-solid { box-shadow: 0 6px 22px rgba(0, 15, 26, .55); }
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: var(--barra); }
.brand { flex: none; display: block; transition: opacity .3s, visibility .3s; }
/* in cima alla pagina il logo grande è già nell'hero: quello piccolo arriva quando si scorre */
.topbar--cima .brand { opacity: 0; visibility: hidden; }
.brand img { width: 108px; }
.nav { display: flex; gap: clamp(12px, 1.7vw, 26px); margin-left: auto; }
.nav a { font-weight: 600; font-size: .9688rem; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; white-space: nowrap; }
.nav a:hover { color: var(--giallo-chiaro); border-color: currentColor; }
.topbar__call { flex: none; min-height: 44px; padding: 8px 16px; }
.topbar__chiama { display: none; }
.burger { display: none; width: 46px; height: 46px; padding: 11px; border: 2px solid var(--navy-riga); border-radius: 12px; background: transparent; cursor: pointer; flex: none; }
.burger span { display: block; height: 2px; background: var(--crema); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: min(calc(100vh - var(--barra) - 28px), 820px); align-items: center; padding-block: clamp(24px, 4vw, 56px); }
.hero__txt { position: relative; z-index: 2; max-width: min(540px, 45vw); }
.hero__logo img { width: min(100%, 420px); }
.hero__motto { font-family: var(--mano); color: var(--giallo); font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: 1; margin-top: 20px; transform: rotate(-1.6deg); transform-origin: left; }
.hero__lead { margin-top: 14px; font-size: clamp(1.0938rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__tel { margin-top: 10px; font-size: .9688rem; color: var(--testo-muto); }
.hero__tel a { color: var(--crema); font-weight: 700; }
.hero__fatti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--navy-riga); }
.hero__fatti b { display: block; font-size: 1rem; font-weight: 800; color: var(--crema); line-height: 1.25; }
.hero__fatti span { display: block; margin-top: 3px; font-size: .875rem; line-height: 1.35; color: var(--testo-muto); }

.hero__foto { position: absolute; z-index: 1; top: 50%; right: max(-14vw, -215px); width: min(60vw, 880px); transform: translateY(-50%); }
.hero__entra { position: relative; animation: entra 1.2s var(--esce) both; }
.hero__entra::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; box-shadow: 0 26px 70px 20px rgba(0, 12, 22, .6); }
.hero__pizza { position: relative; width: 100%; will-change: transform; }
.hero__nota {
  position: absolute; left: 3%; bottom: 7%; padding: 8px 16px 9px; background: var(--giallo); color: var(--navy);
  border-radius: var(--taglio); transform: rotate(-4deg); font-size: .9375rem; line-height: 1.25;
  box-shadow: 0 10px 24px rgba(0, 15, 26, .4); animation: nota .7s .75s var(--esce) both;
}
.hero__nota b { font-family: var(--mano); font-size: 1.85rem; font-weight: 400; line-height: 1; }
.hero__nota span { font-weight: 800; }
.hero__nota small { display: block; font-size: .8125rem; }
@keyframes entra { from { opacity: 0; transform: translateX(14%) rotate(28deg); } to { opacity: 1; transform: none; } }
@keyframes nota { from { opacity: 0; transform: translateY(14px) rotate(4deg); } to { opacity: 1; transform: rotate(-4deg); } }

/* listelli di legno come il bancone */
.listelli { height: 28px; background: url(../img/listelli.svg) center / 720px 28px repeat-x; }

/* ---------- punti di forza ---------- */
.forza { background: var(--navy-scuro); padding-block: clamp(30px, 4vw, 48px); }
.forza__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.forza__item { display: flex; align-items: center; gap: 16px; }
.forza__item img { flex: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--navy-chiaro); transition: transform .5s var(--esce); }
.forza__item:hover img { transform: scale(1.06) rotate(-4deg); }
.forza__item h2 { font-size: 1.125rem; line-height: 1.25; color: var(--crema); }
.forza__item p { margin-top: 4px; font-size: .9688rem; line-height: 1.45; color: var(--testo-muto); }

/* ---------- Le Gialle ---------- */
.gialle { background: var(--giallo); color: var(--navy); padding-block: clamp(44px, 6vw, 84px); overflow: hidden; }
.gialle__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(26px, 5vw, 72px); align-items: center; }
.gialle__foto { position: relative; width: min(100%, 540px); justify-self: center; }
.gialle__foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 10px var(--navy), 0 28px 50px rgba(0, 46, 73, .35); transition: transform 1.2s var(--esce); }
.gialle__foto:hover img { transform: rotate(10deg) scale(1.02); }
.gialle__txt h2 { font-size: clamp(4.2rem, 10vw, 7.2rem); line-height: .9; }
.gialle__intro { margin-top: 10px; font-size: clamp(1.0938rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 32em; }
.firma { margin-top: 22px; padding-top: 16px; border-top: 3px solid var(--navy); }
.firma__nome { font-family: var(--mano); font-size: clamp(2.6rem, 4.8vw, 3.6rem); line-height: 1; }
.firma__ingr { margin-top: 6px; font-weight: 500; max-width: 34em; }
.firma__azione { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.prezzo-tondo { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: var(--giallo); font-weight: 800; font-size: 1.0625rem; line-height: 1; text-align: center; transform: rotate(-8deg); }
.gialle__altre { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px clamp(16px, 2vw, 28px); margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 3px solid var(--navy); }
.gialle__altre b { font-family: var(--mano); font-weight: 400; font-size: 1.85rem; line-height: 1.02; display: block; }
.gialle__altre span { font-weight: 800; font-size: .9688rem; }
.gialle__altre small { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.35; }
.gialle__tutte { display: flex; align-items: center; }
.gialle .link-freccia { color: var(--navy); font-weight: 800; }

/* ---------- le speciali ---------- */
.speciali { padding-block: clamp(52px, 7vw, 96px) clamp(30px, 4vw, 56px); overflow: hidden; }
.speciali__griglia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.spec { position: relative; }
.spec:nth-child(even) { margin-top: clamp(0px, 3vw, 44px); }
.spec img { width: 100%; filter: drop-shadow(0 16px 26px rgba(0, 12, 22, .5)); transition: transform 1s var(--esce); }
.spec:hover img { transform: rotate(38deg) scale(1.03); }
.spec h3 { margin-top: 12px; font-family: var(--mano); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--crema); }
.spec p { margin-top: 5px; font-size: .9375rem; line-height: 1.42; color: var(--testo-muto); }
.prezzo { display: inline-block; margin-top: 9px; padding: 3px 12px; background: var(--giallo); color: var(--navy); font-weight: 800; font-size: .9688rem; border-radius: var(--taglio); }

/* ---------- tasselli ---------- */
.tasselli { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.tasselli__titolo { color: var(--crema); margin-bottom: clamp(20px, 3vw, 32px); }
.tasselli__griglia {
  --r: clamp(150px, 16.5vw, 228px);
  display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: var(--r) var(--r) calc(var(--r) * 1.45) var(--r);
}
.tile { position: relative; display: block; overflow: hidden; border-radius: 18px; text-decoration: none; background: var(--navy-chiaro); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--esce); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 30, 48, .88) 0%, rgba(0, 30, 48, .35) 38%, rgba(0, 30, 48, 0) 62%); z-index: 1; transition: opacity .3s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.07) rotate(1.2deg); }
.tile__t { position: absolute; z-index: 2; left: 14px; right: 12px; bottom: 11px; font-family: var(--mano); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: #fff; }
.tile__t small { display: block; margin-top: 3px; font-family: var(--testo-font); font-size: .875rem; font-weight: 700; color: var(--giallo-chiaro); }
.tile--pizze { grid-column: span 2; grid-row: span 2; }
.tile--pizze .tile__t { font-size: clamp(2.6rem, 5vw, 4rem); }
.tile--largo { grid-column: span 2; }
.tile--largo img { object-position: center 30%; }
.tile--piccola { background: var(--giallo); }
.tile--piccola::after { display: none; }
.tile--piccola img { inset: 7% 7% auto auto; width: 50%; height: auto; aspect-ratio: 300 / 294; filter: drop-shadow(0 8px 12px rgba(0, 46, 73, .4)); }
.tile--piccola:hover img, .tile--piccola:focus-visible img { transform: rotate(30deg) scale(1.04); }
.tile--piccola .tile__t { color: var(--navy); font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.tile--piccola .tile__t small { color: var(--navy); }

/* ---------- muro di pizze ---------- */
.muro { overflow: hidden; height: 112px; padding-block: 6px; background: var(--navy-scuro); }
.muro__riga { display: flex; gap: 12px; width: max-content; animation: muro 70s linear infinite; }
.muro:hover .muro__riga { animation-play-state: paused; }
.muro img { flex: none; width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
@keyframes muro { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- menu ---------- */
.menu { background: var(--navy-scuro); padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 72px); }
.testa--menu { align-items: flex-end; margin-bottom: 14px; }
.testa--menu p { margin-top: 4px; color: var(--testo-muto); }
.menu-tools { position: sticky; top: var(--barra); z-index: 20; padding-block: 10px; background: var(--navy-scuro); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tab {
  appearance: none; border: 2px solid var(--navy-riga); background: transparent; color: var(--crema); cursor: pointer;
  font-family: var(--testo-font); font-weight: 700; font-size: .9375rem; line-height: 1.2; padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--crema); }
.tab[aria-selected="true"] { background: var(--giallo); border-color: var(--giallo); color: var(--navy); }
.search { position: relative; flex: 0 1 340px; display: block; min-width: 240px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--testo-muto); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 8px 12px 8px 40px; border: 2px solid var(--navy-riga); border-radius: 12px; background: var(--navy);
  color: var(--testo); font: 500 1rem var(--testo-font);
}
.search input::placeholder { color: var(--testo-muto); opacity: 1; }
.search input:focus { border-color: var(--giallo); outline: none; }
.menu-list { min-height: 320px; padding-top: 12px; }
.menu-cat { margin: 26px 0 8px; font-family: var(--mano); font-weight: 400; font-size: 2.5rem; line-height: 1; color: var(--giallo); }
.menu-cat:first-child { margin-top: 6px; }
.menu-nota { margin: 4px 0 12px; font-size: .9688rem; color: var(--crema); max-width: 62em; }
.menu-vuoto { padding: 36px 0; color: var(--crema); font-size: 1.125rem; }
.voci { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.voce { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--navy-riga); }
.voce__foto { display: block; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--navy-chiaro); }
.voce__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--esce); }
.voce:hover .voce__foto img { transform: rotate(14deg) scale(1.06); }
.voce__foto--lettera { display: grid; place-items: center; font-family: var(--mano); font-size: 3rem; line-height: 1; color: var(--giallo); }
.voce__corpo h3 { font-size: 1.0625rem; line-height: 1.25; color: var(--crema); font-weight: 800; }
.voce__tag { margin-left: 8px; padding: 1px 7px; border: 1px solid var(--testo-muto); border-radius: 999px; font-style: normal; font-weight: 600; font-size: .75rem; color: var(--testo-muto); vertical-align: 2px; }
.voce__corpo p { margin-top: 2px; font-size: .9063rem; line-height: 1.4; color: var(--testo-muto); }
.voce__prezzo { font-size: 1.0625rem; font-weight: 800; color: var(--giallo); white-space: nowrap; }
.voce__formati { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.voce__corpo .voce__formati span { color: var(--crema); }
.voce__formati b { color: var(--giallo); font-weight: 800; white-space: nowrap; }
.voce--compatta { grid-template-columns: minmax(0, 1fr) auto; min-height: 48px; padding: 8px 0; }
.voci--compatte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aggiunte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.agg { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--navy-riga); }
.agg__n { font-weight: 600; font-size: .9688rem; line-height: 1.3; color: var(--crema); }
.agg__n small { display: block; font-weight: 400; font-size: .8125rem; color: var(--testo-muto); }
.agg b { color: var(--giallo); font-weight: 800; font-size: .9688rem; white-space: nowrap; }
.menu-note { margin-top: 26px; padding: 14px 18px; background: var(--navy); border-radius: 14px; font-size: .9688rem; color: var(--crema); }

/* ---------- impasti e regole ---------- */
.regole { background: var(--crema); color: var(--navy); padding-block: clamp(44px, 6vw, 80px); }
.impasti { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.impasto { padding: 16px 18px 14px; background: var(--navy); color: var(--crema); border-radius: var(--taglio); transition: transform .3s var(--esce); }
.impasto:hover { transform: translateY(-4px) rotate(-.8deg); }
.impasto h3 { font-family: var(--mano); font-weight: 400; font-size: clamp(2.1rem, 3.4vw, 2.8rem); line-height: 1; }
.impasto__p { margin-top: 3px; font-weight: 800; color: var(--giallo); }
.impasto__n { margin-top: 3px; font-size: .9063rem; line-height: 1.3; }
.impasti__nota { margin-top: 12px; font-size: .9688rem; color: var(--testo-navy-muto); font-weight: 500; }
.regole__griglia { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 72px); margin-top: clamp(32px, 5vw, 56px); }
.regola h3 { font-family: var(--mano); font-weight: 400; font-size: clamp(2.5rem, 4.2vw, 3.3rem); line-height: 1; }
.regola p { margin-top: 5px; }
.regola .btn { margin-top: 12px; }
.regola--meta, .regola--piccola { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.meta-disco { position: relative; flex: none; width: clamp(150px, 19vw, 240px); aspect-ratio: 1; }
.meta-disco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform .6s var(--esce); filter: drop-shadow(0 10px 14px rgba(0, 46, 73, .3)); }
.meta-disco__a { clip-path: inset(-20% 50% -20% -20%); }
.meta-disco__b { clip-path: inset(-20% -20% -20% 50%); }
.regola--meta:hover .meta-disco__a { transform: translateX(-9px) rotate(-5deg); }
.regola--meta:hover .meta-disco__b { transform: translateX(9px) rotate(5deg); }
.basi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.basi li { padding: 9px 10px; border: 2px solid var(--navy); border-radius: var(--taglio); text-align: center; line-height: 1.2; }
.basi b { display: block; font-size: .9375rem; }
.basi span { font-weight: 800; font-size: .9375rem; }
.regola__n { font-size: .9688rem; color: var(--testo-navy-muto); font-weight: 500; }
.regola--piccola img { flex: none; width: clamp(92px, 11vw, 132px); filter: drop-shadow(0 8px 12px rgba(0, 46, 73, .3)); transition: transform .9s var(--esce); }
.regola--piccola:hover img { transform: rotate(40deg); }

/* ---------- chi siamo ---------- */
.chi { padding-block: clamp(48px, 7vw, 92px); overflow: hidden; }
.chi__griglia { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: start; }
.chi figure { overflow: hidden; border-radius: 18px; }
.chi figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--esce); }
.chi figure:hover img { transform: scale(1.04); }
.chi__grande { grid-column: 1 / span 7; }
.chi__txt { grid-column: 8 / span 5; padding-left: clamp(8px, 2vw, 24px); }
.chi__txt h2 { color: var(--crema); margin-bottom: 14px; font-size: clamp(2.9rem, 5.2vw, 4.4rem); }
.chi__txt p { margin-top: 10px; }
.chi__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px !important; }
.chi__vetrina { grid-column: 1 / span 6; aspect-ratio: 16 / 10; }
.chi__motto { grid-column: 7 / span 3; aspect-ratio: 1 / 1.03; }
.chi__pennello { grid-column: 10 / span 3; aspect-ratio: 1 / 1.03; }

/* ---------- come ordinare ---------- */
.ordina { background: var(--giallo); color: var(--navy); padding-block: clamp(44px, 6vw, 80px); overflow: hidden; }
.ordina__griglia { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.passi { counter-reset: passo; margin-top: 18px; }
.passi li { counter-increment: passo; position: relative; padding: 14px 0 14px 66px; border-top: 3px solid var(--navy); }
.passi li::before { content: counter(passo); position: absolute; left: 0; top: 8px; font-family: var(--mano); font-size: 4.2rem; line-height: 1; }
.passi h3 { font-size: 1.25rem; line-height: 1.25; }
.passi h3 a { text-underline-offset: 3px; white-space: nowrap; }
.passi p { margin-top: 3px; }
.ordina__paga { margin-top: 6px; padding-top: 14px; border-top: 3px solid var(--navy); font-weight: 500; }
.ordina__foto { justify-self: center; width: min(100%, 520px); transform: rotate(2.5deg); }
.ordina__foto img { width: 100%; border-radius: 22px; box-shadow: 0 0 0 8px var(--navy), 0 24px 44px rgba(0, 46, 73, .35); }

/* ---------- dove siamo ---------- */
.dove { background: var(--crema-chiara); color: var(--navy); padding-block: clamp(44px, 6vw, 80px); }
.dove__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.dove__txt address { margin-top: 12px; font-size: 1.125rem; line-height: 1.45; }
.dove__azioni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hours { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 1rem; }
.hours caption { text-align: left; font-weight: 800; padding-bottom: 6px; }
.hours th, .hours td { padding: 7px 10px; border-top: 1px solid rgba(0, 46, 73, .2); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.chiuso td { font-weight: 700; color: var(--rosso); }
.hours tr.oggi th, .hours tr.oggi td { background: var(--navy); color: var(--crema); font-weight: 800; }
.hours tr.oggi th { border-radius: 10px 0 0 10px; }
.hours tr.oggi td { border-radius: 0 10px 10px 0; }
.dove__mappa a { display: block; overflow: hidden; border-radius: 18px; }
.dove__mappa img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1s var(--esce); }
.dove__mappa a:hover img { transform: scale(1.03); }
.dove__mappa figcaption { margin-top: 4px; font-size: .8125rem; color: var(--testo-navy-muto); text-align: right; }
.dove__foto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.dove__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.dove__foto figcaption { margin-top: 5px; font-size: .9063rem; font-weight: 600; }

/* ---------- footer ---------- */
.piede { background: var(--navy-scuro); padding-block: clamp(34px, 5vw, 52px) clamp(84px, 6vw, 56px); font-size: .9688rem; color: var(--testo-muto); }
.piede__in { display: grid; grid-template-columns: auto 1fr 1.2fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.piede__logo { width: 170px; }
.piede a { color: var(--crema); font-weight: 700; }
.piede__social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.piede__social a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.piede__social svg { width: 19px; height: 19px; }
.piede__note p + p { margin-top: 6px; }

/* ---------- pulsante Chiama fisso (solo telefono) ---------- */
.fab { display: none; }

/* ---------- comparse ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--esce) var(--ritardo, 0ms), transform .7s var(--esce) var(--ritardo, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.ordina__foto.reveal { transform: translateY(20px) rotate(2.5deg); }
.ordina__foto.reveal.is-in { transform: rotate(2.5deg); }

/* ---------- schermi medi ---------- */
@media (max-width: 1120px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 6px 20px 16px; background: var(--navy); box-shadow: 0 16px 28px rgba(0, 15, 26, .5); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 2px; font-size: 1.0625rem; border-bottom: 1px solid var(--navy-riga); }
  .burger { display: block; }
  .topbar__call { margin-left: auto; }
  .gialle__altre { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero__fatti { grid-template-columns: 1fr; gap: 8px; }
  .forza__in { grid-template-columns: 1fr; gap: 16px; }
  .forza__item img { width: 88px; height: 88px; }
  .speciali__griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(even) { margin-top: 0; }
  .regole__griglia { grid-template-columns: 1fr; }
  .chi__grande, .chi__txt { grid-column: 1 / -1; }
  .chi__txt { padding-left: 0; order: -1; }
  .ordina__griglia, .dove__griglia { grid-template-columns: 1fr; }
  .piede__in { grid-template-columns: auto 1fr; }
  .piede__note { grid-column: 1 / -1; }
}

/* ---------- telefono ---------- */
@media (max-width: 760px) {
  :root { --barra: 62px; }
  body { font-size: 1.03rem; }
  .wrap { width: min(100% - 32px, 1240px); }
  .brand img { width: 92px; }
  .topbar__in { gap: 10px; }
  .topbar__call { padding: 8px 13px; min-height: 42px; font-size: .9375rem; }
  .topbar__num { display: none; }
  .topbar__chiama { display: inline; }
  .burger { width: 44px; height: 44px; padding: 10px; }

  .hero__in { display: block; min-height: 0; padding-block: 18px 0; }
  .hero__txt { max-width: none; }
  .hero__motto { margin-top: 14px; }
  .hero__logo img { width: 56vw; max-width: 270px; }
  .hero__motto { font-size: 3.1rem; margin-top: 8px; }
  .hero__lead { margin-top: 10px; font-size: 1.0625rem; }
  .hero__cta { flex-wrap: nowrap; gap: 10px; margin-top: 16px; }
  .hero__cta .btn { flex: 1 1 auto; padding-inline: 10px; font-size: 1rem; white-space: nowrap; }
  .hero__fatti { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; padding-top: 12px; }
  .hero__fatti li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .hero__fatti span { margin-top: 0; }
  .hero__foto { position: relative; top: auto; right: auto; width: 104vw; max-width: 560px; margin: 10px auto -12%; left: 50%; transform: translateX(-50%); }
  .hero__nota { left: 7%; bottom: auto; top: 8%; }

  .listelli { position: relative; z-index: 2; height: 22px; background-size: 565px 22px; }

  .gialle__top { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .gialle__txt { display: contents; }
  .gialle__txt h2 { order: 1; }
  .gialle__intro { order: 2; }
  .gialle__foto { order: 3; width: 74vw; max-width: 340px; margin: 26px auto 8px; }
  .firma { order: 4; }
  .gialle__foto img { box-shadow: 0 0 0 7px var(--navy), 0 18px 34px rgba(0, 46, 73, .35); }
  .gialle__altre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gialle__tutte { grid-column: 1 / -1; min-height: 44px; }
  .firma__azione .btn { flex: 1 1 200px; }

  .spec h3 { font-size: 2rem; }
  .spec p { font-size: .875rem; }

  .tasselli__griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 44vw; gap: 10px; }
  .tile--pizze { grid-row: span 1; grid-column: span 2; }
  .tile--largo { grid-column: span 2; }
  .tile { border-radius: 14px; }

  .muro { height: 92px; }
  .muro img { width: 80px; height: 80px; }

  .testa--menu { display: block; }
  .menu-tools { padding-block: 8px; margin-inline: -16px; padding-inline: 16px; }
  /* trappola nota: sotto i 760 px le schede scorrono dentro lo schermo, non vanno a capo */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; min-height: 42px; }
  .search { margin-top: 12px; min-width: 0; }
  .voci, .voci--compatte { grid-template-columns: 1fr; }
  .aggiunte { grid-template-columns: 1fr; }
  .voce { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; }
  .voce--compatta { grid-template-columns: minmax(0, 1fr) auto; }
  .voce__foto { width: 68px; height: 68px; }
  .voce__foto--lettera { font-size: 2.5rem; }

  .impasti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .impasto { padding: 13px 14px; }
  .regola--meta { align-items: center; }
  .meta-disco { width: 128px; }
  .basi { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .chi__grande { grid-column: 1 / -1; }
  .chi__vetrina { grid-column: 1 / -1; }
  .chi__motto { grid-column: 1 / span 6; }
  .chi__pennello { grid-column: 7 / span 6; }
  .chi__griglia { gap: 10px; }

  .passi li { padding-left: 52px; }
  .passi li::before { font-size: 3.5rem; top: 10px; }
  .ordina__foto { transform: rotate(1.5deg); }
  .ordina__foto.reveal { transform: translateY(20px) rotate(1.5deg); }
  .ordina__foto.reveal.is-in { transform: rotate(1.5deg); }

  .dove__azioni .btn { flex: 1 1 auto; }
  .dove__foto { gap: 10px; }

  .piede__in { grid-template-columns: 1fr; }
  .piede__logo { width: 150px; }

  .fab {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 14px; bottom: 14px; z-index: 30;
    min-height: 52px; padding: 11px 20px; background: var(--giallo); color: var(--navy); font-weight: 800; text-decoration: none;
    border-radius: 999px; box-shadow: 0 10px 26px rgba(0, 15, 26, .5); transition: transform .3s var(--esce), opacity .25s;
  }
  .fab svg { width: 20px; height: 20px; }
  .fab--via { transform: translateY(90px); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; }
  .muro { overflow-x: auto; }
}
