/* Font self-hosted: nessuna chiamata a Google Fonts (GDPR) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #2f6b4f;
  --green-dark: #1f4a36;
  --mint: #e3f1e8;
  --cream: #fbf7f0;
  --paper: #ffffff;
  --ink: #1d2621;
  --muted: #5d6b63;
  --line: #e4e0d6;
  --tomato: #c8432b;
  --wa: #1fa855;

  --radius: 18px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1.08rem/1.6 var(--sans); /* stessa dimensione del testo di "Chi siamo" in tutto il sito */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { color: var(--tomato); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .5em; }
.section-head { margin-bottom: 2rem; }
section { padding: clamp(56px, 9vw, 104px) 0; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.4em; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font: 600 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:active { transform: scale(.98); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn--small { padding: .6em 1.1em; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--mint); color: var(--green-dark); }
.btn--wa { background: var(--wa); border-color: var(--wa); }
.btn--wa:hover { background: #178a45; border-color: #178a45; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Barra in alto ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgb(251 247 240 / .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.topbar__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.2rem var(--serif); margin-right: auto; }
.topbar__brand img { width: 44px; height: auto; mix-blend-mode: multiply; }
.topbar__nav { display: flex; gap: 1.6rem; }
.topbar__nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.topbar__nav a:hover { color: var(--green); }
.burger { display: none; }

/* Su telefono: hamburger con tendina */
@media (max-width: 759px) {
  .topbar__call { display: none; }
  .burger {
    display: grid; gap: 5px; place-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mint); cursor: pointer;
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar__nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(0 0 0 / .08);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .topbar__nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .topbar__nav a { padding: 14px 4px; font: 600 1.25rem var(--serif); border-bottom: 1px solid var(--line); }
  .topbar__nav a:last-child { border-bottom: 0; }
}

/* ---------- Apertura ---------- */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--green); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.hero__chips li { background: var(--mint); color: var(--green-dark); padding: .35em .9em; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.hero__img { margin: 0; position: relative; }
.hero__img img { border-radius: 28px; box-shadow: 0 30px 60px -24px rgb(31 74 54 / .5); aspect-ratio: 4 / 3.6; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .hero__img img { aspect-ratio: 4 / 4.4; } }

.status { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; font-size: .92rem; background: var(--paper); border: 1px solid var(--line); padding: .45em 1em; border-radius: 999px; margin-bottom: 1.5rem; }
.status__dot { width: .6em; height: .6em; border-radius: 50%; background: var(--muted); }
.status.is-open .status__dot { background: var(--wa); box-shadow: 0 0 0 4px rgb(31 168 85 / .2); }
.status.is-closed .status__dot { background: var(--tomato); }

/* ---------- Menù ---------- */
.menu { background: var(--paper); border-block: 1px solid var(--line); }
.menu__controls {
  position: sticky; top: 64px; z-index: 10;
  background: rgb(255 255 255 / .94); backdrop-filter: blur(10px);
  padding: 12px 0; margin: 0 0 1.5rem;
  display: grid; gap: 12px;
}
@media (min-width: 900px) { .menu__controls { grid-template-columns: auto 1fr; align-items: center; } }

.seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: .55em 1.1em; font: 600 .95rem var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button small { font-weight: 400; opacity: .8; margin-left: .2em; }
.seg button[aria-checked="true"] { background: var(--green); color: #fff; box-shadow: var(--shadow); }

.menu__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (min-width: 900px) { .menu__filters { justify-content: flex-end; } }
.search { flex: 1 1 220px; max-width: 340px; display: flex; align-items: center; gap: .5em; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 0 1em; }
.search:focus-within { border-color: var(--green); }
.search svg { width: 18px; fill: var(--muted); flex: none; }
.search input { border: 0; background: none; font: inherit; padding: .6em 0; width: 100%; outline: none; color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--paper); padding: .45em 1em; border-radius: 999px; font: 500 .9rem var(--sans); cursor: pointer; color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pizze { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 3rem; }
@media (min-width: 760px) { .pizze { grid-template-columns: 1fr 1fr; } }
.pizza { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.1rem 0; border-bottom: 1px dashed var(--line); }
.pizza__name { font: 700 1.2rem/1.2 var(--serif); margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pizza__ing { grid-column: 1; color: var(--muted); margin: 0; }
.pizza { grid-template-columns: 64px 1fr auto; }
.pizza .pizza__name, .pizza .pizza__ing { grid-column: 2; }
.pizza__foto { grid-row: 1 / span 2; grid-column: 1; align-self: start; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; width: 64px; height: 64px; }
.pizza__foto--vuota { display: grid; place-items: center; background: var(--cream); cursor: default; }
.pizza__foto--vuota svg { width: 26px; fill: #cfc6b4; }
.pizza__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.pizza__foto:hover img { transform: scale(1.08); }
.pizza > .pizza__price { grid-row: 1 / span 2; grid-column: -2; }
.pizza__price { font: 700 1.15rem var(--sans); color: var(--green-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { font: 600 .68rem var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: .25em .6em; border-radius: 999px; }
.tag--veg { background: var(--mint); color: var(--green-dark); }
.tag--piccante { background: #fbe4de; color: var(--tomato); }
.tag--bianca { background: #f1ede4; color: #6b5d45; }
.tag--gourmet { background: #2a2a2a; color: #f3d48a; }
.pizze__empty { text-align: center; color: var(--muted); padding: 2rem 0; }

.menu__notes { margin-top: 2rem; display: grid; gap: 1rem; color: var(--muted); }
.menu__notes > p { margin: 0; }
.allergeni { background: var(--cream); border-radius: var(--radius); padding: 1rem 1.25rem; }
.allergeni summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.allergeni p { margin: .75rem 0 0; }

/* ---------- Ordina ---------- */
.order__grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .order__grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card--accent { background: var(--green); border-color: var(--green); color: #fff; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--line); }
.contact { display: block; color: #fff; text-decoration: none; font: 700 1.5rem var(--serif); padding: .6rem 0; border-top: 1px solid rgb(255 255 255 / .2); }
.contact small { display: block; font: 500 .8rem var(--sans); opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.contact:hover { text-decoration: underline; }

/* ---------- Chi siamo ---------- */
.about { background: var(--mint); }
.about__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .about__inner { grid-template-columns: 1fr 1fr; } }
.about__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about__imgs img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.about__imgs img:last-child { margin-top: 2.5rem; }

/* ---------- Dove siamo ---------- */
.where__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .where__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.hours { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.hours ul { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: .65rem .75rem; border-radius: 10px; }
.hours li:nth-child(-n+2) span:last-child { color: var(--muted); }
.hours li.is-today { background: var(--mint); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfd6d2; padding: 3rem 0 6rem; font-size: .92rem; }
.footer a { color: #fff; }
.footer__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: auto 1fr; } .footer { padding-bottom: 3rem; } }
.footer img { width: 96px; filter: invert(1); mix-blend-mode: screen; }
.footer p { margin: 0 0 .4rem; }
.social { display: flex; gap: .6rem; margin-top: .8rem !important; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .1); transition: background .15s; }
.social a:hover { background: var(--green); }
.social svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Foto grande ---------- */
.lightbox { border: 0; padding: 0; background: none; max-width: min(92vw, 560px); width: 100%; overflow: visible; }
.lightbox::backdrop { background: rgb(15 20 17 / .8); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; aspect-ratio: 1; max-height: 80vh; object-fit: cover; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; font: 700 1.4rem var(--serif); text-align: center; margin-top: .75rem; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.footer__legal { opacity: .7; font-size: .85rem; margin-top: 1rem !important; }

/* ---------- Barra rapida mobile ---------- */
.quickbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.quickbar a { text-align: center; padding: .85em; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--green); color: #fff; }
.quickbar .quickbar__wa { background: var(--wa); }
@media (min-width: 760px) { .quickbar { display: none; } }

/* ---------- Banner cookie ---------- */
.cookie {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px;
  max-width: 480px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgb(0 0 0 / .2); padding: 1.25rem 1.4rem;
  font-size: .9rem;
}
@media (min-width: 760px) { .cookie { left: 24px; right: auto; bottom: 24px; } }
.cookie h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.cookie p { color: var(--muted); margin-bottom: 1rem; }
.cookie__prefs { display: grid; gap: .5rem; margin-bottom: 1rem; }
.cookie__prefs label { display: flex; gap: .6rem; align-items: center; }
.cookie__prefs input { width: 18px; height: 18px; accent-color: var(--green); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.cookie [hidden], [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.muted { color: var(--muted); font-weight: 400; font-size: .85em; }

/* Filtri scorrevoli in orizzontale su telefono, così la barra del menù resta bassa */
@media (max-width: 759px) {
  .menu__controls { grid-template-columns: minmax(0, 1fr); }
  .menu__filters { flex-wrap: nowrap; flex-direction: column; align-items: stretch; min-width: 0; }
  .search { max-width: none; flex: none; }
  .seg { display: grid; width: 100%; }
  .seg button { padding: .5em .6em; line-height: 1.2; }
  .seg button small { display: block; margin: 0; font-size: .75em; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (min-width: 760px) { .search { min-width: 260px; } }
.where__img { margin: .25rem 0 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero__note { color: var(--muted); margin-bottom: 1.25rem; }
.hero__note strong { color: var(--ink); }
.contact__note { color: rgb(255 255 255 / .8) !important; font-size: .88rem; margin: .75rem 0 0; }

.menu__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--muted); }
.card__cta { width: 100%; margin: .25rem 0 1rem; }

/* ---------- Pagina ordina ---------- */
.topbar__back { color: var(--ink); text-decoration: none; font-weight: 500; }
.topbar__back:hover { color: var(--green); }
@media (max-width: 759px) { .page-ordina .topbar__call { display: inline-flex; } .topbar__back { display: none; } }
.ordina__menu { padding: 0; }
.ordina { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.ordina__head { max-width: 40em; margin-bottom: 2rem; }
.ordina__head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.02em; }
.ordina__lead { color: var(--muted); }
.ordina__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) {
  .ordina__grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); }
  .ordina__cart { position: sticky; top: 80px; max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
}
.ordina__cart { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 1.4rem; scroll-margin-top: 76px; }
.step { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; margin: 1.5rem 0 .75rem; }
.ordina__menu .step:first-child { margin-top: 0; }
.step > span { display: grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--green); color: #fff; font: 700 .8em var(--sans); }
.step__hint { color: var(--muted); font-size: .92rem; margin: 0 0 .75rem; }
.step__hint--alert { color: var(--tomato); font-weight: 600; }
.ordina__search { max-width: none; margin-bottom: .5rem; }
.ordina__search input { padding: .75em 0; }

/* Elenco pizze con trancio / teglia */
.om { list-style: none; padding: 0; margin: 0; }
.om__pizza { display: grid; gap: .6rem 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
@media (min-width: 640px) { .om__pizza { grid-template-columns: 1fr auto; align-items: center; } .om__opt { width: 176px; } }
.om__info h3 { font-size: 1.15rem; margin: 0 0 .15rem; }
.om__info p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.om__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.om__opt { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 150px; padding: .4rem .45rem .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.om__opt.is-scelta { border-color: var(--green); background: var(--mint); }
.om__label { display: grid; font-size: .78rem; color: var(--muted); line-height: 1.15; }
.om__label b { font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.add { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font: 500 1.45rem/1 var(--sans); cursor: pointer; transition: background .15s, transform .15s; }
.add:hover { background: var(--green-dark); }
.add:active { transform: scale(.92); }
.stepper { display: inline-flex; align-items: center; gap: .1rem; background: var(--mint); border-radius: 999px; padding: 2px; font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.stepper > span { min-width: 1.5em; text-align: center; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--paper); color: var(--green-dark); font: 600 1.2rem/1 var(--sans); cursor: pointer; }
.stepper button:hover { background: var(--green); color: #fff; }

/* Riepilogo */
.righe { list-style: none; padding: 0; margin: 0 0 .5rem; }
.righe li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .3rem .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.riga__nome { font: 700 1.05rem/1.25 var(--serif); }
.riga__nome small { display: block; font: 400 .85rem var(--sans); color: var(--muted); }
.riga__prezzo { min-width: 4.8em; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.riga__extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .2rem .75rem; font-size: .88rem; color: var(--muted); }
.riga__extra > span { color: var(--green-dark); font-weight: 600; }
.riga__extra .linklike { color: var(--green); font-weight: 600; }

.scelta { border: 0; padding: 0; margin: 0 0 .75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.scelta legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.scelta label { position: relative; }
.scelta input { position: absolute; opacity: 0; inset: 50% auto auto 50%; }
.scelta label span { display: block; height: 100%; padding: .75rem 1rem; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; }
.scelta label small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.scelta input:checked + span { border-color: var(--green); background: var(--mint); }
.scelta input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.scelta input:disabled + span { opacity: .45; cursor: not-allowed; }
.campi { display: grid; grid-template-columns: 3fr 2fr; gap: .6rem; margin: .25rem 0 .75rem; }
.campi--indirizzo { grid-template-columns: 3fr 2fr; }
.campi__wide { grid-column: 1 / -1; }
.campi label, .campo { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.campo { margin: .25rem 0 0; }
.campo--tel { margin: 0 0 .75rem; }
.campi small, .campo small { font-weight: 400; color: var(--muted); }
.ordina__form select, .ordina__form input:not([type="radio"]), .ordina__form textarea {
  width: 100%; min-width: 0; font: 400 1rem var(--sans); color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: 12px; padding: .7em .8em;
}
.ordina__form :is(select, input, textarea):focus { outline: 2px solid var(--green); outline-offset: 1px; }
.ordina__form textarea { resize: vertical; }
.avviso-orario { background: #fff6e0; border-left: 4px solid #e2a417; border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; color: #5b4a1f; margin: .25rem 0 .5rem; }

.ordina__foot { position: sticky; bottom: 0; background: var(--paper); padding: .9rem 0 1.1rem; margin-top: 1.25rem; border-top: 1px solid var(--line); }
.ordina__foot .btn { width: 100%; }
.ordina__foot .btn:disabled { opacity: .45; cursor: not-allowed; }
.totali { list-style: none; padding: 0; margin: 0 0 .75rem; }
.totali li { display: flex; justify-content: space-between; color: var(--muted); font-variant-numeric: tabular-nums; }
.totali .totale { color: var(--ink); font: 700 1.3rem var(--serif); margin-top: .2rem; }
.ordina__small { color: var(--muted); font-size: .82rem; text-align: center; margin: .6rem 0 0; }

.ordina__done { text-align: center; padding: 2rem 0 1.5rem; display: grid; gap: .8rem; justify-items: center; }
.ordina__done h2 { font-size: 1.7rem; margin: 0; }
.ordina__done > p { color: var(--muted); margin: 0; max-width: 26em; }
.ordina__done .avviso-orario { text-align: left; }
.ordina__done .btn { width: min(100%, 320px); }
.done__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); font-size: 2rem; font-weight: 700; }

/* Barra "Il tuo ordine" (solo telefono, quando il riepilogo non si vede) */
.cartbar {
  position: fixed; z-index: 31; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1em 1.4em; border-radius: 999px; text-decoration: none;
  background: var(--green); color: #fff; font: 600 1rem var(--sans);
  box-shadow: 0 14px 34px -10px rgb(31 74 54 / .6);
}
.cartbar__n { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: .35em; padding: 0 .35em; border-radius: 999px; background: #fff; color: var(--green-dark); font-size: .85em; }
.cartbar strong { font-variant-numeric: tabular-nums; }
body.cart-visibile .cartbar { display: none; }
@media (min-width: 980px) { .cartbar { display: none; } }

/* Finestra ingredienti extra */
html:has(.sheet[open]) { overflow: hidden; }
.sheet {
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0;
  border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgb(0 0 0 / .25);
}
@media (min-width: 760px) { .sheet { max-width: 620px; max-height: 88dvh; margin: auto; border-radius: 24px; } }
.sheet::backdrop { background: rgb(15 20 17 / .6); backdrop-filter: blur(3px); }
.sheet__inner { padding: 0 1.4rem; }
.sheet__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0 .4rem; background: var(--paper); }
.sheet__head h2 { font-size: 1.5rem; margin: 0; }
.sheet__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet__foot { position: sticky; bottom: 0; background: var(--paper); padding: .9rem 0 calc(1rem + env(safe-area-inset-bottom)); margin-top: 1rem; border-top: 1px solid var(--line); }
.extra__pizza { font: 700 1.15rem var(--serif); margin: 0 0 .2rem; }
.extra__lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .45rem; }
.extra { position: relative; }
.extra input { position: absolute; opacity: 0; inset: 50% auto auto 50%; }
.extra span { display: flex; justify-content: space-between; align-items: center; gap: .5rem; height: 100%; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .92rem; font-weight: 500; }
.extra small { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.extra input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green-dark); font-weight: 600; }
.extra input:checked + span::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: -.2rem; }
.extra input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.extra__prezzo { display: flex; justify-content: space-between; margin: 0 0 .75rem; color: var(--muted); }
.extra__prezzo strong { color: var(--ink); font: 700 1.2rem var(--serif); }
.extra__azioni { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* Errori dei campi e campo trappola antibot */
.ordina__form .campo-errore { color: var(--tomato); font-weight: 600; font-size: .82rem; }
.campo-errore:empty { display: none; }
.ordina__form [aria-invalid] { border-color: var(--tomato) !important; background: #fdf0ec !important; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Calendario per il giorno dell'ordine */
.campo-giorno { display: grid; gap: .35rem; min-width: 0; align-content: start; }
.campo-giorno__label { font-weight: 600; font-size: .95rem; }
.giorno-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-width: 0; text-align: left;
  font: 400 1rem var(--sans); color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: .7em .8em; cursor: pointer; }
.giorno-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.giorno-btn svg { width: 20px; flex: none; fill: var(--green); }
.giorno-btn[aria-expanded="true"] { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 1px; }
.calendario { border: 1px solid var(--line); border-radius: 16px; padding: .75rem; margin: 0 0 .75rem; background: var(--paper); box-shadow: var(--shadow); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal__head strong { font: 700 1.1rem var(--serif); text-transform: capitalize; }
.cal__head button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--green-dark); }
.cal__head button:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow { font-size: .75rem; font-weight: 700; color: var(--muted); padding: .2rem 0; }
.cal__giorno { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font: 600 .95rem var(--sans); font-variant-numeric: tabular-nums; }
button.cal__giorno { border: 1px solid var(--line); background: var(--mint); color: var(--green-dark); cursor: pointer; padding: 0; }
button.cal__giorno:hover { background: var(--green); color: #fff; }
.cal__giorno.is-chiuso { color: #c9c2b4; text-decoration: line-through; }
.cal__giorno.is-oggi { box-shadow: inset 0 0 0 2px var(--tomato); }
.cal__giorno.is-scelto { background: var(--green); border-color: var(--green); color: #fff; }
.cal__nota { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.cal__giorno.is-speciale { position: relative; }
.cal__giorno.is-speciale::after { content: ""; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #e2a417; }
.cal__punto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e2a417; vertical-align: middle; }
.avvisi { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: #fff6e0; border-left: 4px solid #e2a417; }
.avvisi h4 { margin: 0 0 .4rem; font: 700 1rem var(--sans); }
.avvisi ul { margin: 0; padding-left: 1.1rem; }
.hours .avvisi li { display: list-item; padding: 0; margin: .25rem 0; border-radius: 0; font-size: .95rem; }

/* Pagina privacy */
.legale { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.wrap--testo { width: min(760px, 100% - 32px); }
.legale h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.legale h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.legale h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.legale ul { padding-left: 1.2rem; }
.tabella { overflow-x: auto; margin: 1rem 0; }
.tabella table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.tabella th, .tabella td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabella th { background: var(--mint); }
.legale code { font-size: .88em; background: var(--cream); padding: .1em .35em; border-radius: 6px; }
