:root {
  --teal: #146a77;
  --teal-2: #0f525d;
  --deep: #0a2a30;
  --deep-2: #0d353c;
  --gold: #ecc35c;
  --gold-2: #d9a93a;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --ink: #1b2526;
  --muted: #5d6b6d;
  --line: #e6dfd0;
  --radius: 18px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --script: "Yellowtail", cursive;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
main > * { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.02; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
.script { font-family: var(--script); text-transform: none; font-weight: 400; letter-spacing: 0; }
.eyebrow { font-family: var(--head); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .9rem; color: var(--gold-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(10, 42, 48, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: translateZ(0); will-change: transform;
  border-bottom: 1px solid rgba(236, 195, 92, .18);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #e9f0ef; text-decoration: none; font-family: var(--head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: 1.02rem; padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .cta { background: var(--gold); color: var(--deep); margin-left: 6px; }
.nav .cta:hover { background: #f3d27e; color: var(--deep); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: var(--deep); border-bottom: 1px solid rgba(236,195,92,.2);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; font-size: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nav .cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; transition: .18s ease; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: #f3d27e; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }

/* ---------- Badge "aperto ora" (home e menu) ---------- */
.open-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); font-size: .92rem; backdrop-filter: blur(6px);
}
.open-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #8a9a9b; }
.open-badge.is-open .dot { background: #5ee08a; box-shadow: 0 0 0 4px rgba(94,224,138,.25); }

/* ================= HOME ================= */
.home .script { text-transform: none; }
.h-section { padding: clamp(64px, 9vw, 120px) 0; }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.h-head h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--deep); margin-top: 6px; }
.h-head h2 .script { color: var(--teal); font-size: .85em; }
.h-head > p { max-width: 44ch; margin: 0; color: var(--muted); font-size: 1.08rem; }
.h-more { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); text-decoration: none; font-size: 1.1rem; }
.h-more:hover { color: var(--deep); }

/* Hero: testo + collage di foto vere */
.h-hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(20,106,119,.55), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(236,195,92,.10), transparent 60%),
    var(--deep);
}
.h-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.h-hero h1 { font-size: clamp(3.4rem, 8.4vw, 7.4rem); line-height: .92; }
.h-hero h1 .script { display: block; color: var(--gold); font-size: .78em; line-height: 1.05; margin-top: 4px; }
.h-hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: #cfdedd; max-width: 46ch; margin: 22px 0 30px; line-height: 1.6; }
.h-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h-facts { list-style: none; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.h-facts b { display: block; font-family: var(--head); font-size: 2rem; color: var(--gold); line-height: 1; }
.h-facts span { font-size: .88rem; color: #a9bcbc; }
.h-hero-photos { position: relative; aspect-ratio: 1 / 1.02; margin: 12px 0; }
.h-hero-photos img { position: absolute; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.h-hero-photos .p1 { left: 16%; top: 4%; width: 56%; height: 84%; }
.h-hero-photos .p2 { left: 0; bottom: 0; width: 34%; height: auto; aspect-ratio: 1; border: 6px solid var(--deep); }
.h-hero-photos .p3 { right: 0; bottom: 8%; width: 32%; height: 44%; border: 6px solid var(--deep); }
.h-stamp {
  position: absolute; right: 6%; top: 8%; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--gold); color: var(--deep); font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1;
  transform: rotate(10deg); box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.h-stamp em { font-style: normal; font-family: var(--script); text-transform: none; font-size: 1.5rem; letter-spacing: 0; font-weight: 400; }

/* Nastro con le parole */
.ticker { background: var(--gold); color: var(--deep); overflow: hidden; border-block: 1px solid #d9a93a; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.35rem; padding: 14px 0; white-space: nowrap; }
.ticker span::after { content: "✦"; margin: 0 26px; font-size: .9rem; vertical-align: middle; color: var(--teal); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* I preferiti */
.faves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fave { position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: var(--deep); }
.fave img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.fave::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,42,48,0) 35%, rgba(10,42,48,.92) 100%); }
.fave:hover img { transform: scale(1.06); }
.fave > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.fave h3 { font-size: 2rem; margin: 10px 0 6px; }
.fave p { margin: 0; color: #d6e3e2; font-size: .95rem; line-height: 1.45; }
.fave-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--deep); font-weight: 700; font-size: .8rem; }
@media (max-width: 980px) {
  .faves { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .fave { scroll-snap-align: start; }
}

/* Ordina dal tavolo */
.h-order { background: var(--paper); border-block: 1px solid var(--line); }
.h-order-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.h-order h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--deep); margin: 6px 0 26px; }
.h-order h2 .script { color: var(--teal); display: block; font-size: .8em; }
.steps-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.steps-list li { display: flex; gap: 16px; align-items: flex-start; }
.steps-list b {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep); color: var(--gold); font-family: var(--head); font-size: 1.4rem;
}
.steps-list strong { display: block; font-size: 1.1rem; color: var(--deep); }
.steps-list span { color: var(--muted); }
.h-order-note { display: flex; gap: 16px; align-items: center; background: var(--cream); border-radius: 18px; padding: 12px; margin-bottom: 26px; }
.h-order-note img { width: 76px; height: 96px; aspect-ratio: auto; object-fit: cover; border-radius: 12px; flex: none; }
.h-order-note p { margin: 0; font-size: .96rem; color: var(--ink); }
.phone {
  justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 46px; background: #10191b;
  box-shadow: 0 40px 80px -30px rgba(10,42,48,.6), inset 0 0 0 2px #2b3a3d; position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 999px; background: #10191b; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--cream); }
.phone-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .h-order-grid { grid-template-columns: 1fr; }
  .phone { display: none; }
}

/* Pasticceria: mosaico */
.h-dark { background: var(--deep); color: #e6eeed; }
.h-dark .h-head h2 { color: #fff; }
.h-dark .h-head h2 .script { color: var(--gold); }
.h-dark .h-head > p { color: #a9bcbc; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 14px; margin-bottom: 36px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.mosaic .m-a { grid-row: span 2; }
.mosaic .m-d { grid-row: 1 / span 2; grid-column: 3; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
  .mosaic .m-a { grid-column: span 2; grid-row: auto; }
  .mosaic .m-d { grid-column: 2; grid-row: 2 / span 2; }
}

/* Il locale: striscia scorrevole */
.strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(16px, calc((100% - 1160px) / 2)) 6px; scroll-padding-inline: max(16px, calc((100% - 1160px) / 2));
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { position: relative; flex: none; margin: 0; height: clamp(340px, 46vw, 520px); scroll-snap-align: start; border-radius: 22px; overflow: hidden; }
.strip img { height: 100%; width: auto; display: block; }
.strip figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(10,42,48,.8); color: #fff; font-size: .88rem; font-weight: 600; backdrop-filter: blur(6px);
}

/* Filosofia */
.h-quote { background: var(--teal); color: #fff; padding: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.h-quote .wrap { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.h-quote img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 120px 120px 20px 20px; }
.h-quote blockquote { margin: 0; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; }
.h-quote blockquote .script { color: var(--gold); text-transform: none; font-weight: 400; }
.h-quote p { color: #d8ecee; font-size: 1.08rem; max-width: 60ch; margin: 18px 0 0; }
@media (max-width: 700px) { .h-quote .wrap { grid-template-columns: 1fr; } .h-quote img { width: 160px; } }

/* Orari e contatti */
.h-visit { background: var(--deep); color: #e6eeed; }
.h-visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.h-visit h2 { font-size: clamp(2.6rem, 5vw, 4rem); color: #fff; margin: 6px 0 18px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 1.05rem; }
.hours td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); vertical-align: top; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--gold); font-weight: 700; }
.h-visit address { font-style: normal; color: #a9bcbc; }
.big-link { display: block; font-family: var(--head); font-size: 2.2rem; font-weight: 700; color: #fff; text-decoration: none; margin: 4px 0 22px; }
.big-link:hover { color: var(--gold); }
.h-visit .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map { border-radius: 22px; overflow: hidden; min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.85); }
@media (max-width: 900px) { .h-visit-grid { grid-template-columns: 1fr; } }

/* Recensioni Google e Instagram */
.h-social { background: var(--cream); padding: clamp(48px, 7vw, 88px) 0; }
.h-social-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.reviews-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 20px; }
.rv-head { display: flex; align-items: center; gap: 16px; }
.g-logo { flex: none; }
.rv-score { display: flex; align-items: center; gap: 12px; }
.rv-score b { font-family: var(--head); font-size: 2.8rem; line-height: 1; color: var(--deep); }
.stars { --size: 24px; position: relative; display: inline-block; width: calc(var(--size) * 5); height: var(--size); }
.stars::before, .stars::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
  background: #e3dccb;
}
.stars::after { background: #fbbc04; width: calc(var(--rating) / 5 * 100%); }
.rv-count { color: var(--muted); font-size: .95rem; }
.rv-quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rv-quotes li { background: var(--cream); border-radius: 16px; padding: 16px; font-size: .98rem; line-height: 1.45; color: var(--ink); }
.rv-quotes li { display: flex; flex-direction: column; gap: 8px; }
.rv-quotes p { margin: 0; }
.rv-quotes cite { margin-top: auto; font-style: normal; font-size: .82rem; color: var(--muted); }
.rv-quotes cite a { color: inherit; }
.stars.small { --size: 14px; }
.rv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.reviews-card .btn-ghost { border-color: var(--line); color: var(--deep); }
.reviews-card .btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.social-card {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px; border-radius: 22px; text-decoration: none; color: #fff; min-height: 220px;
  background: linear-gradient(180deg, rgba(10,42,48,.1), rgba(10,42,48,.92)), url("../img/sala-neon.jpg") center 30% / cover;
  transition: transform .2s ease;
}
.social-card:hover { transform: translateY(-3px); }
.social-card strong { font-family: var(--head); text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; }
.social-card > span:last-child { color: #dbe6e5; }
@media (max-width: 980px) { .h-social-grid { grid-template-columns: 1fr; } .rv-quotes { grid-template-columns: 1fr; } }


/* Hero su telefono */
@media (max-width: 900px) {
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-hero-photos { order: -1; aspect-ratio: 4 / 3.6; max-width: 520px; width: 100%; margin: 0 auto; }
  .h-hero-photos .p1 { left: 18%; top: 0; width: 56%; height: 94%; }
  .h-hero-photos .p2 { width: 34%; }
  .h-hero-photos .p3 { width: 30%; height: 48%; }
  .h-stamp { width: 92px; height: 92px; font-size: .85rem; right: 2%; }
  .h-stamp em { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Footer */
.site-footer { background: var(--deep); color: #a9bcbc; padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer img { height: 44px; width: auto; margin-bottom: 10px; }
.site-footer a { color: #e6eeed; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0 0 8px; font-size: 1rem; }

/* ================= MENU PAGE ================= */
.menu-hero { background: var(--deep); color: #fff; padding: 56px 0 28px; position: relative; overflow: hidden; }
.menu-hero::after {
  content: ""; position: absolute; inset: 0; background: url("../img/bancone.jpg") center/cover; opacity: .18; z-index: 0;
}
.menu-hero .wrap { position: relative; z-index: 1; }
.menu-hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
.menu-hero h1 .script { color: var(--gold); }
.menu-hero p { color: #c9d8d7; max-width: 52ch; margin: 10px 0 0; }

.menu-tools {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 40;
  background: rgba(247, 242, 232, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0); will-change: transform; border-bottom: 1px solid var(--line);
}
.menu-tools .wrap { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; height: 46px;
}
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,106,119,.15); }
.search svg { flex: none; color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 1rem; background: transparent; min-width: 0; }
.search button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.3rem; padding: 4px; display: none; }
.search.has-value button { display: block; }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-snap-type: x proximity; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; scroll-snap-align: start; text-decoration: none; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; white-space: nowrap; transition: .15s;
}
.cat-nav a.active { background: var(--deep); color: var(--gold); border-color: var(--deep); }

.menu-body { padding: 28px 0 80px; }
.menu-section { padding: 28px 0 12px; scroll-margin-top: calc(var(--header-h) + 130px); }
.menu-section > header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.menu-section > header h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--deep); }
.menu-section > header .emoji { font-size: 1.8rem; }
.menu-section .intro { color: var(--muted); max-width: 70ch; margin: 4px 0 18px; }
.menu-group { margin-top: 22px; }
.menu-group h3 {
  font-size: 1.15rem; letter-spacing: .14em; color: var(--teal); padding-bottom: 8px; margin-bottom: 4px;
  border-bottom: 2px solid var(--gold);display: inline-block;
}
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
@media (max-width: 760px) { .items { grid-template-columns: 1fr; } }
.item { border-bottom: 1px solid var(--line); }
.item-btn {
  all: unset; box-sizing: border-box; display: block; width: 100%; padding: 14px 44px 14px 0; position: relative;
  cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent;
}
.item-btn:hover .name { color: var(--teal); }
.item-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.item-btn .add {
  position: absolute; right: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--deep); color: var(--gold); font-size: 1.3rem; line-height: 1; font-weight: 700;
  transition: transform .15s;
}
.item-btn:active .add { transform: scale(.88); }
.item .desc, .item .opts-preview { display: block; }
.item .opts-preview { font-size: .84rem; color: var(--teal); margin-top: 4px; font-weight: 600; }
.item .price small { font-family: var(--body); font-weight: 600; font-size: .75rem; color: var(--muted); }
.item .price.ask { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 600; }
.item .row { display: flex; align-items: baseline; gap: 10px; }
.item .name { font-weight: 700; font-size: 1.06rem; }
.item .dots { flex: 1; border-bottom: 2px dotted #cfc6b3; transform: translateY(-4px); min-width: 16px; }
.item .price { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .desc { color: var(--muted); font-size: .94rem; margin-top: 3px; }
.item .extra { color: var(--teal); font-size: .88rem; font-weight: 600; margin-top: 3px; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.badge.star { background: var(--gold); color: var(--deep); }
.badge.vegan { background: #dcefdc; color: #2c6b33; }
.badge.sicilia { background: #fbe1d2; color: #a3431a; }
.frozen { color: var(--gold-2); font-weight: 700; margin-left: 2px; }
mark { background: rgba(236,195,92,.5); color: inherit; border-radius: 3px; padding: 0 1px; }

.flavors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.flavor-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.flavor-box h3 { font-size: 1.15rem; letter-spacing: .14em; color: var(--teal); margin-bottom: 12px; }
.flavor-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flavor-box li { background: var(--cream); border-radius: 999px; padding: 6px 12px; font-size: .95rem; }
@media (max-width: 760px) { .flavors { grid-template-columns: 1fr; } }

.empty { text-align: center; padding: 60px 0; color: var(--muted); display: none; }
.empty.show { display: block; }
.legend { margin-top: 40px; padding: 18px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--deep); color: var(--gold); cursor: pointer; box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: .2s; display: grid; place-items: center;
}
.to-top.show { opacity: 1; pointer-events: auto; }
body.has-order .to-top { bottom: calc(88px + env(safe-area-inset-bottom)); }
body.has-order .menu-body { padding-bottom: 140px; }

/* Prodotto esaurito: visibile ma non ordinabile */
.item.is-out .item-btn { cursor: default; opacity: .5; }
.item.is-out .add { display: none; }

/* ---------- Scheda prodotto / ordine ---------- */
.sheet {
  border: 0; padding: 0; margin: auto; width: min(520px, 100%); max-height: min(88vh, 760px);
  border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(10, 42, 48, .55); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 600px) {
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; max-height: 90vh; }
}
.sheet-inner { display: flex; flex-direction: column; padding: 22px 20px 0; margin: 0; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.sheet-title { font-size: 2rem; color: var(--deep); }
.sheet-desc { color: var(--muted); margin: 4px 0 0; }
.sheet-x {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.5rem; line-height: 1;
  cursor: pointer; color: var(--ink);
}
.sheet-price { font-family: var(--head); font-weight: 700; font-size: 1.9rem; color: var(--teal); margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.opt { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.opt legend { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; color: var(--deep); padding: 0; margin-bottom: 8px; }
.opt-meta { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .82rem; color: var(--gold-2); margin-left: 6px; }
.opt-hint { margin: -2px 0 10px; color: var(--muted); font-size: .88rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 600; font-size: .95rem; transition: .12s; user-select: none;
}
.choice span em { font-style: normal; font-size: .8rem; color: var(--teal); }
.choice input:checked + span { background: var(--deep); border-color: var(--deep); color: #fff; }
.choice input:checked + span em { color: var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.choice input:disabled + span { opacity: .4; }
.sheet-foot {
  position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; margin: 22px -20px 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
}
.sheet-foot .btn { flex: 1; justify-content: space-between; white-space: nowrap; }
.sheet-add:disabled { opacity: .5; cursor: not-allowed; justify-content: center; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 999px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--deep); }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper.small button { width: 30px; height: 30px; font-size: 1.1rem; }

.order-bar {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35;
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border: 0; border-radius: 999px;
  background: var(--deep); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
}
.order-bar[hidden] { display: none; }
.order-bar.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.04); } }
.order-bar .bar-label { flex: 1; text-align: left; font-weight: 700; }
.order-bar .bar-count { font-weight: 400; color: #a9bcbc; margin-left: 4px; }
.order-bar .bar-total { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--gold); }
.order-lines { list-style: none; margin: 16px 0 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-main span { display: block; color: var(--muted); font-size: .88rem; }
.line-price { font-family: var(--head); font-weight: 700; font-size: 1.15rem; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.empty-line { display: block; color: var(--muted); }
.order-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 0; font-family: var(--head); text-transform: uppercase; font-size: 1.3rem; }
.order-sum strong { font-size: 1.9rem; color: var(--teal); }
.order-clear { flex: 0 0 auto !important; background: var(--cream); color: var(--ink); }
.order-bar.is-status { background: var(--teal); }
.order-bar.is-status .bar-total { font-size: 1rem; font-family: var(--body); }
.active-note {
  all: unset; box-sizing: border-box; display: block; width: 100%; margin-top: 14px; padding: 10px 14px; border-radius: 12px;
  background: #e3f0f1; color: var(--teal-2); font-weight: 600; font-size: .92rem; cursor: pointer;
}

/* Checkout */
.checkout { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block; text-align: center; padding: 14px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700;
}
.seg input:checked + span { border-color: var(--deep); background: var(--deep); color: #fff; }
.seg span small { display: block; margin-top: 3px; font-weight: 400; font-size: .78rem; opacity: .75; }
.pay-note { margin: 0; color: var(--muted); font-size: .92rem; }
.pay-state { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--cream); font-weight: 600; font-size: .92rem; }
.pay-state.is-paid { background: #dcefdc; color: #2c6b33; }
.pay-state a { color: inherit; }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field > span { font-weight: 700; font-size: .95rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field small { color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,106,119,.15); }
.field input[readonly] { background: var(--cream); font-weight: 700; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fde4e1; color: #a12a1b; font-weight: 600; }
.checkout .sheet-foot { margin-top: 8px; }

/* Stato ordine */
.status-msg { margin: 16px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-weight: 700; font-size: 1.05rem; }
.status-msg.ready { background: var(--gold); color: var(--deep); }
.status-msg.done { background: #dcefdc; color: #2c6b33; }
.status-msg.cancelled { background: #fde4e1; color: #a12a1b; }
.steps { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.steps li span { width: 16px; height: 16px; border-radius: 50%; background: var(--line); position: relative; z-index: 1; }
.steps li::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.done, .steps li.now { color: var(--deep); }
.steps li.done span, .steps li.done::before, .steps li.now::before { background: var(--teal); }
.steps li.now span { background: var(--gold); box-shadow: 0 0 0 5px rgba(236,195,92,.35); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(236,195,92,.1); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
