/* ==========================================================
   L'Angolo della Pizza — Sedriano
   ========================================================== */

:root {
  --paper: #f7f1e6;
  --paper-2: #efe6d6;
  --card: #fffaf1;
  --ink: #1b1512;
  --ink-2: #4a3f38;
  --muted: #7a6d63;
  --line: #e2d6c3;
  --tomato: #c8341f;
  --tomato-d: #a32715;
  --basil: #2f6b3a;
  --basil-l: #e3eedf;
  --crust: #f2b544;
  --night: #1b1512;
  --night-2: #2a211c;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(27, 21, 18, .06), 0 10px 30px -12px rgba(27, 21, 18, .22);
  --shadow-lg: 0 30px 60px -25px rgba(27, 21, 18, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 em, h1 em { font-style: italic; font-weight: 500; color: var(--tomato); }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--crust); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--tomato); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--crust); }
.eyebrow .dot { display: none; }
.lead { font-size: 1.13rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--tomato); color: #fff; box-shadow: 0 10px 24px -10px rgba(200, 52, 31, .7); }
.btn--primary:hover { background: var(--tomato-d); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark svg { fill: none; stroke: currentColor; stroke-width: 2; }
.btn--dark:hover { background: var(--night-2); }
.btn--lg { padding: 16px 28px; font-size: 1.04rem; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: #fff; transition: background .35s, color .35s, box-shadow .35s, height .35s;
}
.nav.is-solid {
  background: rgba(247, 241, 230, .92); color: var(--ink);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); --nav-h: 66px; height: 66px;
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 42px; height: 42px; display: grid; place-items: center; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; line-height: 1.05; display: flex; flex-direction: column; }
.brand__text small { font-family: var(--f-body); font-weight: 500; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 3px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.nav__links a:hover, .nav__links a.is-current { background: rgba(127, 110, 95, .16); }
.nav__mobile-cta { display: none; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.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); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  white-space: nowrap;
}
.nav.is-solid .status-pill { background: var(--card); border-color: var(--line); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #9a8f86; flex-shrink: 0; }
.status-pill.is-open i { background: #3fbf5f; box-shadow: 0 0 0 0 rgba(63, 191, 95, .6); animation: pulse 2s infinite; }
.status-pill.is-closed i { background: #e0543f; }
.status-pill--lg { font-size: 1rem; padding: 12px 20px; background: var(--card); border-color: var(--line); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 191, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 95, 0); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 14, 11, .55) 0%, rgba(20, 14, 11, .15) 30%, rgba(20, 14, 11, .55) 62%, rgba(20, 14, 11, .92) 100%),
    linear-gradient(90deg, rgba(20, 14, 11, .7) 0%, rgba(20, 14, 11, 0) 60%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: calc(var(--nav-h) + 60px) 0 70px; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); letter-spacing: -.025em; margin-bottom: 22px; }
.hero h1 em { color: var(--crust); }
.hero__lead { max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 42px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero__facts li { display: flex; flex-direction: column; border-left: 2px solid var(--crust); padding-left: 14px; }
.hero__facts strong { font-family: var(--f-display); font-size: 2rem; line-height: 1; }
.hero__facts span { font-size: .88rem; color: rgba(255, 255, 255, .72); }
.hero__card {
  width: 280px; padding: 24px; border-radius: var(--r);
  background: rgba(27, 21, 18, .5); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero__card-kicker { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--crust); font-weight: 600; margin-bottom: 6px; }
.hero__card-status { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.15; margin-bottom: 8px; }
.hero__card-hours { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.hero__card .link-arrow { color: var(--crust); font-size: .92rem; }

/* ---------- Marquee ---------- */
.marquee { background: var(--tomato); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; gap: 28px; animation: marquee 38s linear infinite; font-family: var(--f-display); font-size: 1.35rem; font-style: italic; align-items: center; }
.marquee__track i { color: var(--crust); font-style: normal; font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__sub { max-width: 420px; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; padding: 0 60px 70px 0; }
.about__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { aspect-ratio: 4 / 5; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 8px solid var(--paper); }
.about__badge {
  position: absolute; left: -18px; top: 36px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--crust); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; line-height: 1.2;
  transform: rotate(-10deg); box-shadow: var(--shadow);
}
.about__badge strong { font-family: var(--f-display); font-size: 1.8rem; text-transform: none; letter-spacing: 0; font-style: italic; line-height: 1; margin: 2px 0; }
.about__copy h2 { margin-bottom: 24px; }
.pillars { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.pillars li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pillars__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--basil-l); color: var(--basil); }
.pillars__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillars strong { display: block; font-size: 1.02rem; }
.pillars span { color: var(--muted); font-size: .95rem; }

/* ---------- Featured rail ---------- */
.featured { background: var(--paper-2); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 310px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 24px; margin: 0 -4px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.dish {
  scroll-snap-align: start; background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column; text-align: left; padding: 0;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.dish:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dish__img { aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dish:hover .dish__img img { transform: scale(1.06); }
.dish__tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 250, 241, .94); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.dish__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dish__top h3 { font-size: 1.4rem; }
.dish__price { font-family: var(--f-display); font-weight: 700; color: var(--tomato); font-size: 1.2rem; white-space: nowrap; }
.dish__desc { color: var(--muted); font-size: .92rem; margin: 0; }
.rail__controls { display: flex; gap: 10px; justify-content: flex-end; }
.icon-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; transition: background .2s, color .2s; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- Menu ---------- */
.menu__toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; margin-bottom: 22px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27, 21, 18, .07); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input { border: 0; background: transparent; font: inherit; padding: 13px 0; width: 100%; color: var(--ink); outline: none; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); padding: 9px 15px; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .25s; flex-shrink: 0; }
.switch__track span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--basil); }
.switch input:checked + .switch__track span { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--crust); outline-offset: 2px; }
.switch__label { font-weight: 600; font-size: .95rem; }
.switch__label small { color: var(--basil); font-weight: 700; }

.tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 66px; z-index: 5;
  padding: 10px 0; margin-bottom: 26px; background: linear-gradient(var(--paper) 80%, rgba(247, 241, 230, 0));
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; border: 0; background: transparent; padding: 10px 16px; border-radius: 12px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: background .2s, color .2s; }
.tab small { font-size: .74rem; background: var(--paper-2); color: var(--muted); padding: 2px 7px; border-radius: 999px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab[aria-selected="true"] small { background: rgba(255, 255, 255, .16); color: var(--paper); }

.menu-group { margin-bottom: 56px; scroll-margin-top: 140px; }
.menu-group__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.menu-group__head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.menu-group__head p { margin: 0; color: var(--muted); font-size: .95rem; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.item { border-bottom: 1px dashed var(--line); }
.item button { width: 100%; background: none; border: 0; text-align: left; padding: 16px 6px; display: flex; gap: 16px; align-items: center; border-radius: 12px; transition: background .2s; }
.item button:hover { background: var(--card); }
.item__thumb { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--paper-2); }
.item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.item__thumb--none { display: grid; place-items: center; color: var(--crust); }
.item__thumb--none svg { width: 28px; height: 28px; }
.item__main { flex: 1; min-width: 0; }
.item__row { display: flex; align-items: baseline; gap: 10px; }
.item__name { font-family: var(--f-display); font-weight: 700; font-size: 1.14rem; min-width: 0; }
.item__badges, .item__price { flex-shrink: 0; }
.item__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.item__price { font-weight: 700; color: var(--tomato); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item__price s { color: var(--muted); font-weight: 500; font-size: .85em; margin-right: 6px; }
.item__desc { margin: 2px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.item__badges { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: middle; }
.badge { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; font-family: var(--f-body); }
.badge--veg { background: var(--basil-l); color: var(--basil); }
.badge--hot { background: #fde3dd; color: var(--tomato-d); }
.badge--sea { background: #dfecf5; color: #1f5f86; }
mark { background: rgba(242, 181, 68, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.menu__empty { text-align: center; padding: 40px 20px; color: var(--muted); background: var(--card); border-radius: var(--r); border: 1px dashed var(--line); }
.menu__notes { color: var(--muted); font-size: .9rem; margin-top: -20px; }

.extras { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.extras summary { list-style: none; cursor: pointer; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.extras summary::-webkit-details-marker { display: none; }
.extras summary strong { display: block; font-family: var(--f-display); font-size: 1.5rem; }
.extras summary small { color: var(--muted); font-size: .95rem; }
.extras summary svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; transition: transform .3s; }
.extras[open] summary svg { transform: rotate(180deg); }
.extras__body { padding: 0 28px 28px; }
.extras__rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.rule { background: var(--paper); border-radius: var(--r); padding: 16px 18px; }
.rule p { margin: 8px 0 0; font-size: .94rem; color: var(--ink-2); }
.rule__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 9px; border-radius: 999px; }
.extras__list { list-style: none; margin: 0; padding: 0; columns: 4 190px; column-gap: 30px; }
.extras__list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; font-size: .95rem; }
.extras__list li span:last-child { font-weight: 600; color: var(--tomato); font-variant-numeric: tabular-nums; }

/* ---------- Builder ---------- */
.builder { background: var(--night); color: var(--paper); overflow: hidden; }
.builder::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -200px; top: -220px;
  background: radial-gradient(circle, rgba(200, 52, 31, .35), transparent 65%); pointer-events: none;
}
.builder__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; position: relative; }
.builder__intro h2 { margin-bottom: 20px; }
.builder__intro h2 em { color: var(--crust); }
.builder__intro > p { color: rgba(247, 241, 230, .75); font-size: 1.08rem; }
.builder__facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.builder__facts li { padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); color: rgba(247, 241, 230, .75); font-size: .95rem; }
.builder__facts strong { color: var(--paper); display: block; margin-bottom: 2px; }
.builder__card { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); display: grid; gap: 20px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 11px 10px; border-radius: 11px; font-weight: 600; color: var(--muted); transition: all .2s; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(27, 21, 18, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--crust); }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.seg--sm span { padding: 9px 8px; font-size: .92rem; }
.field { display: grid; gap: 8px; }
.field > label, .field__label { font-weight: 600; font-size: .92rem; }
.field__label small { color: var(--muted); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 40px 13px 14px; width: 100%;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1512' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select:focus { outline: none; border-color: var(--ink); }
.extra-picks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; padding: 2px; }
.pick { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: .86rem; transition: all .15s; }
.pick small { color: var(--muted); margin-left: 4px; }
.pick[aria-pressed="true"] { background: var(--basil); color: #fff; border-color: var(--basil); }
.pick[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.pick:disabled { opacity: .4; cursor: not-allowed; }
.builder__warn { margin: 0; font-size: .9rem; background: #fdf0d8; color: #7a5410; padding: 10px 14px; border-radius: 12px; }
.builder__total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 2px solid var(--ink); flex-wrap: wrap; }
.builder__total span { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.builder__total strong { font-family: var(--f-display); font-size: 2.6rem; line-height: 1.05; display: block; }
.builder__total small { color: var(--muted); font-size: .86rem; }
.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); color: var(--tomato); } }

/* ---------- Delivery ---------- */
.delivery__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.delivery__copy h2 { margin-bottom: 30px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.mode__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--tomato); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.mode__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.mode h3 { font-size: 1.5rem; margin-bottom: 8px; }
.mode p { color: var(--ink-2); font-size: .95rem; }
.mode ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mode li { font-size: .92rem; font-weight: 500; padding-left: 24px; position: relative; }
.mode li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--basil); border-bottom: 2px solid var(--basil); transform: rotate(-45deg); }
.zone-check { margin-top: 22px; background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 24px; }
.zone-check label { display: block; margin-bottom: 12px; color: rgba(247, 241, 230, .8); }
.zone-check label strong { color: var(--paper); font-family: var(--f-display); font-size: 1.25rem; display: block; }
.zone-check input { width: 100%; font: inherit; padding: 14px 18px; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); outline: none; }
.zone-check input:focus { box-shadow: 0 0 0 4px rgba(242, 181, 68, .5); }
.zone-check__result { margin: 12px 0 0; min-height: 1.5em; font-weight: 500; }
.zone-check__result.ok { color: #8fdca2; }
.zone-check__result.no { color: #ff9a88; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 20px; }
.delivery__img { margin: 0 0 -60px 40px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.delivery__img img { width: 100%; height: 100%; object-fit: cover; }
.zones { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); margin-right: 40px; }
.zones h3 { font-size: 1.5rem; margin-bottom: 16px; }
.zones ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zones li { background: var(--paper); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: .95rem; line-height: 1.25; transition: background .25s, color .25s; }
.zones li small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.zones li.is-hit { background: var(--basil); color: #fff; }
.zones li.is-hit small { color: rgba(255, 255, 255, .8); }
.zones > p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Hours ---------- */
.hours { background: var(--paper-2); }
.hours__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hours h2 { margin-bottom: 20px; }
.hours__now { margin-top: 26px; }
.week { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.week li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 26px; border-bottom: 1px solid var(--line); }
.week li:last-child { border-bottom: 0; }
.week__day { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.week__slots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.week__slot { font-variant-numeric: tabular-nums; background: var(--paper); padding: 4px 11px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.week__closed { color: var(--muted); font-style: italic; }
.week li.is-today { background: var(--ink); color: var(--paper); }
.week li.is-today .week__slot { background: rgba(255, 255, 255, .12); }
.week li.is-today .week__day::after { content: "Oggi"; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: var(--crust); color: var(--ink); padding: 2px 8px; border-radius: 999px; }

/* ---------- Where ---------- */
.where__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 5vw, 70px); align-items: stretch; }
.where h2 { margin-bottom: 14px; }
.facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts__icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.facts__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.facts strong { display: block; }
.facts span { color: var(--muted); font-size: .95rem; }
.where__map { border-radius: var(--r-lg); overflow: hidden; min-height: 460px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--paper-2); }
.where__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: saturate(.9) contrast(1.02); }

/* ---------- Contact ---------- */
.contact { background: var(--tomato); color: #fff; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1.4px, transparent 0); background-size: 26px 26px;
}
.contact .wrap { position: relative; }
.contact h2 em { color: var(--crust); }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.contact-card {
  text-decoration: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  transition: transform .3s var(--ease), background .3s;
}
.contact-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .18); }
.contact-card--main { background: var(--paper); color: var(--ink); border-color: transparent; }
.contact-card--main:hover { background: #fff; }
.contact-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); margin-bottom: 14px; }
.contact-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.contact-card--main .contact-card__icon { background: var(--tomato); color: #fff; }
.contact-card--main .contact-card__icon svg { fill: currentColor; stroke: none; }
.contact-card__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.contact-card strong { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; }
.contact-card--main strong { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.contact-card__email { font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important; overflow-wrap: anywhere; }
.contact-card__hint { font-size: .9rem; opacity: .75; margin-top: auto; padding-top: 10px; }
.pay { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: rgba(27, 21, 18, .22); border-radius: var(--r-lg); padding: 24px 28px; }
.pay h3 { font-size: 1.4rem; margin-bottom: 6px; }
.pay p { margin: 0; opacity: .9; }
.pay__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay__list li { padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.pay__list .ok { background: #fff; color: var(--ink); }
.pay__list .ok::before { content: "✓ "; color: var(--basil); }
.pay__list .no { border: 1px dashed rgba(255, 255, 255, .5); opacity: .8; text-decoration: line-through; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(247, 241, 230, .72); padding: 70px 0 30px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; }
.brand--footer { color: var(--paper); margin-bottom: 16px; }
.footer h4 { font-family: var(--f-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--crust); margin-bottom: 12px; }
.footer a { text-decoration: none; color: rgba(247, 241, 230, .85); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__addr { line-height: 1.7; }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; }
.footer__bottom p { margin: 0; }
.credits { max-width: 640px; opacity: .6; }

/* ---------- Quickbar (mobile) ---------- */
.quickbar { display: none; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--card); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); overflow: hidden; }
.modal[open] { display: grid; grid-template-columns: 1fr 1.1fr; animation: modalIn .35s var(--ease); }
.modal::backdrop { background: rgba(20, 14, 11, .6); backdrop-filter: blur(4px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__img { margin: 0; min-height: 300px; background: var(--paper-2); }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__img.is-placeholder { display: grid; place-items: center; background: var(--tomato); }
.modal__img.is-placeholder img { display: none; }
.modal__img.is-placeholder::after { content: ""; width: 120px; height: 120px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M9 8v23h23' fill='none' stroke='%23f7f1e6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 26.5l4.2-13.6 9.4 9.4z' fill='%23f2b544'/%3E%3C/svg%3E") center / contain no-repeat; }
.modal__body { padding: 36px 32px 30px; display: flex; flex-direction: column; }
.modal__body h3 { font-size: 2.2rem; margin-bottom: 12px; }
.modal__body > p:not(.eyebrow) { color: var(--ink-2); }
.modal__prices { display: grid; gap: 8px; margin: 8px 0 24px; }
.modal__prices div { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--paper); border-radius: 12px; font-weight: 500; }
.modal__prices strong { color: var(--tomato); font-variant-numeric: tabular-nums; }
.modal__actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 250, 241, .92); display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow); }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links a { padding: 8px 9px; font-size: .9rem; }
  .nav .status-pill { display: none; }
}
@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .burger { display: block; }
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); flex-direction: column; gap: 2px;
    background: var(--paper); color: var(--ink); padding: 90px 22px 30px; margin: 0;
    transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1.15rem; padding: 14px 16px; font-family: var(--f-display); font-weight: 700; }
  .nav__mobile-cta { display: block; margin-top: 16px; background: var(--tomato); color: #fff !important; text-align: center; font-family: var(--f-body) !important; font-size: 1rem !important; }
  body.menu-open .nav { color: var(--ink); }
  .nav__call span { display: none; }
  .nav__call { padding: 10px 12px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { width: 100%; max-width: 420px; }
  .about__grid, .builder__grid, .delivery__grid, .hours__grid, .where__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .menu__toolbar { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: minmax(0, 1fr); }
  .extras__rules { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .delivery__img { margin-left: 0; }
  .zones { margin-right: 0; margin-left: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .wrap { width: calc(100% - 32px); }
  .brand__text { font-size: 1.05rem; }
  .brand__mark { width: 36px; height: 36px; }
  .nav__call { display: none; }
  .hero { min-height: 92svh; }
  .hero__inner { padding-bottom: 40px; }
  .hero__cta .btn { width: 100%; }
  .hero__facts { gap: 12px 22px; }
  .hero__facts strong { font-size: 1.6rem; }
  .hero__card { display: none; }
  .about__media { padding: 0 30px 50px 0; }
  .about__badge { width: 104px; height: 104px; left: -6px; font-size: .64rem; }
  .about__badge strong { font-size: 1.4rem; }
  .modes { grid-template-columns: 1fr; }
  .item button { gap: 12px; padding: 14px 2px; }
  .item__thumb { width: 50px; height: 50px; }
  .item__badges .badge + .badge { display: none; }
  .zones { margin-left: 0; }
  .delivery__img { margin-bottom: -30px; }
  .zones ul { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .week li { padding: 14px 16px; flex-wrap: wrap; }
  .where__map, .where__map iframe { min-height: 340px; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__img { min-height: 0; aspect-ratio: 16 / 10; }
  .modal__body { padding: 24px 22px; }
  .quickbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(27, 21, 18, .96); backdrop-filter: blur(10px); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .quickbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--paper); text-decoration: none; font-size: .72rem; font-weight: 600; padding: 6px 0; border-radius: 10px; }
  .quickbar a:first-child { background: var(--tomato); }
  .quickbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .quickbar a:first-child svg { fill: currentColor; stroke: none; }
}
