/* Burgeria 539 — stile condiviso. Palette del logo: nero, bianco, rosso. */
:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --card: #1b1b1b;
  --text: #f5f5f5;
  --muted: #a9a9a9;
  --red: #e3061b;        /* rosso logo: fondi e bottoni */
  --red-hi: #ff1a2f;
  --red-text: #ff3b4a;   /* rosso per testo piccolo su nero (contrasto AA) */
  --line: #2c2c2c;
  --sg: #23913f;         /* verde senza glutine: leggibile su chiaro e su scuro */
  --radius: 16px;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --section: clamp(72px, 11vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: 76px; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 Karla, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
/* sfumatura di tutto lo schermo, da destra (grigio) verso sinistra (nero) */
body::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; background: linear-gradient(270deg, rgb(255 255 255 / .1) 0%, rgb(255 255 255 / .03) 40%, transparent 70%); }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .45em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h4 { font-size: 1.5rem; }
h2 i, h3 i, h4 i { font-style: italic; font-weight: 600; color: var(--red-text); }
.r { color: var(--red); }
.eyebrow { display: block; font: 700 .875rem var(--mono); letter-spacing: .06em; color: var(--red-text); margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 50ch; margin: 0 0 var(--s4); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--red); font: 700 1rem Karla, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hi); border-color: var(--red-hi); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(227 6 27 / .35); }
.btn-ghost { background: none; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.icon-btn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--text); cursor: pointer; text-decoration: none; font-size: 1.4rem; transition: border-color .2s, color .2s, transform .25s var(--ease); }
.icon-btn:hover { border-color: var(--red); color: var(--red-text); transform: translateY(-2px); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- header ---------- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: rgb(11 11 11 / .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 10px; height: 76px; }
.brand { margin-right: auto; display: flex; color: var(--text); }
.brand svg { height: 60px; width: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.bar .btn { min-height: 44px; padding: 0 20px; }
.bar .btn[aria-current] { background: none; color: var(--red-text); }
/* "Componi" nella navbar: porta al builder, con un leggero bagliore che gira (fermo con "riduci movimento") */
.nav-build { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--red); color: var(--text); font: 700 1rem Karla, sans-serif; text-decoration: none; white-space: nowrap; background: linear-gradient(110deg, transparent 35%, rgb(227 6 27 / .35) 50%, transparent 65%) -100% 0 / 250% 100% no-repeat; animation: shine 3.5s ease-in-out infinite; transition: background-color .2s, transform .25s var(--ease); }
.nav-build span { color: var(--red-text); display: inline-block; animation: twinkle 3.5s ease-in-out infinite; }
.nav-build:hover { background-color: rgb(227 6 27 / .2); transform: translateY(-2px); }
@keyframes shine { 0%, 40% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
@keyframes twinkle { 0%, 70%, 100% { transform: none; } 85% { transform: rotate(90deg) scale(1.3); } }
@media (max-width: 420px) { .bar { gap: 6px; } .nav-build, .bar .btn { padding: 0 12px; } .bar .icon-btn { width: 44px; height: 44px; } }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-links.open { display: block; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s1) 16px var(--s3); animation: drop .3s var(--ease); }
.nav-links.open a { display: block; padding: 14px 0; font: 600 1.4rem var(--serif); color: var(--text); border-bottom: 1px solid var(--line); }
.nav-links.open a::after { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: var(--s4); margin-right: var(--s2); }
}

/* ---------- hero ---------- */
/* telefono: prima la foto intera (mai tagliata, al massimo alta quanto lo schermo), sotto titolo, pulsanti e info */
.hero { position: relative; overflow: hidden; }
.hero > img { width: 100%; height: auto; max-height: calc(100svh - 76px); object-fit: contain; animation: heroZoom 2.2s var(--ease) both; -webkit-mask-image: linear-gradient(#000 94%, transparent); mask-image: linear-gradient(#000 94%, transparent); }
.hero > .wrap { position: relative; z-index: 2; }
.hero-text { padding: var(--s3) 0 var(--s4); }
.hero-text > * { animation: rise .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .12s; }
.hero-text > :nth-child(3) { animation-delay: .24s; }
.hero-text > :nth-child(4) { animation-delay: .36s; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.strip { display: grid; gap: 14px; margin-bottom: var(--s4); animation: rise .9s .5s var(--ease) both; }
.strip div { padding: 2px 0 2px 14px; border-left: 2px solid var(--red); line-height: 1.4; }
.strip b { display: block; font: 700 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.strip span, .strip a { color: #cfcfcf; text-decoration: none; font-size: .975rem; }
.strip a:hover { color: var(--red-text); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; animation: pulse 2s infinite; }
.status.closed::before { background: var(--muted); animation: none; }
@keyframes heroZoom { from { transform: scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(227 6 27 / .6); } 50% { box-shadow: 0 0 0 6px rgb(227 6 27 / 0); } }
@media (min-width: 900px) {
  .hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(620px, calc(100svh - 76px), 920px); }
  .hero-text { padding: 120px 0 40px; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 0%, rgb(11 11 11 / .92) 45%, rgb(11 11 11 / 0) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
  .hero > img { position: absolute; inset: 0; left: auto; height: 100%; max-height: none; object-fit: cover; width: min(58%, 820px); object-position: center 30%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
  .strip { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s5); }
}

/* ---------- menù ---------- */
.menu { border-top: 1px solid var(--line); padding: var(--section) 0; }
.tabs { position: sticky; top: 76px; z-index: 10; display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; margin: 0 0 var(--s4); padding: 10px 2px; background: rgb(11 11 11 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs a:first-child { margin-left: auto; } .tabs a:last-child { margin-right: auto; }
.tabs a { flex: none; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 700 .95rem Karla, sans-serif; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.tabs a:hover { color: var(--text); border-color: var(--red); transform: translateY(-2px); }
.tabs a.on { background: var(--red); border-color: var(--red); color: #fff; }
.panel { max-width: 860px; margin-inline: auto; text-align: left; }
.panel + .panel { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } }
.ttl { margin-bottom: var(--s4); text-align: center; }
.ttl h3 { margin: 0; }
/* foto del piatto come sfondo della sezione, sfuma nel nero dall'alto verso il basso */
.panel.has-bg { position: relative; isolation: isolate; padding: clamp(120px, 22vw, 200px) var(--s3) var(--s2); }
.panel.has-bg::before { content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: min(620px, 100%); border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(180deg, rgb(11 11 11 / .15) 0%, rgb(11 11 11 / .7) 45%, var(--bg) 100%), var(--bg-img) var(--bg-pos, center) / cover; }
.panel.has-bg .ttl h3, .panel.has-bg .ttl .eyebrow { text-shadow: 0 2px 16px rgb(0 0 0 / .9), 0 0 4px rgb(0 0 0 / .8); }
.panel.has-bg .ttl .eyebrow { color: #fff; }
.panel + .panel.has-bg { padding-top: clamp(120px, 22vw, 200px); }
.menu-note { color: var(--muted); font: italic 600 1.1rem/1.5 var(--serif); margin: 0 0 var(--s3); max-width: 60ch; padding-left: var(--s2); border-left: 3px solid var(--red); }
.grp { display: flex; align-items: center; gap: 14px; margin: var(--s5) 0 var(--s1); }
.grp::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ttl + .grp, .menu-note + .grp { margin-top: var(--s2); }
/* sottocategorie degli antipasti: come il cartaceo, parolina in corsivo + parola forte in maiuscolo, linea rossa */
.grp.caps { font-size: clamp(1.5rem, 4vw, 1.9rem); text-transform: uppercase; letter-spacing: .04em; }
.grp.caps i { text-transform: none; letter-spacing: 0; }
.grp.caps::after { height: 2px; background: linear-gradient(90deg, var(--red), var(--line) 60%); }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; gap: var(--s2); padding: 18px 0; border-bottom: 1px dashed var(--line); }
.item h5 { margin: 0; font: 700 1.05rem/1.3 Karla, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.item h5 em { font: 700 .72rem var(--mono); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--red-text); margin-left: 6px; white-space: nowrap; }
.item .price { color: var(--text); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item p { margin: 4px 0 0; color: #c4c4c4; font-size: .975rem; max-width: 62ch; }
.item .side-note { color: var(--red-text); font: 700 .8rem var(--mono); }
.item.plain h5 { text-transform: none; font-weight: 500; letter-spacing: 0; font-size: 1.05rem; }
.menu-cta { text-align: center; margin-top: var(--s6); }
.menu-cta p { font: 700 clamp(1.6rem, 4vw, 2.2rem) var(--serif); margin: 0 0 var(--s3); }

/* ---------- galleria orizzontale ---------- */
.gallery { padding: var(--section) 0; }
.gal-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.gal-head h2 { margin: 0; }
.gal-nav { display: flex; gap: var(--s1); }
.track { display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--red) var(--card); }
.track figure { margin: 0; flex: 0 0 min(78%, 380px); scroll-snap-align: start; transition: transform .4s var(--ease); }
.track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.track figure:hover { transform: translateY(-6px); }
.track figcaption { padding: 12px 0 0; font: 700 .85rem var(--mono); color: var(--muted); }
.gallery .btn { margin-top: var(--s4); }

/* ---------- chi siamo ---------- */
.about { border-top: 1px solid var(--line); padding: var(--section) 0; }
.about p { font: italic 600 clamp(1.15rem, 2.4vw, 1.4rem)/1.6 var(--serif); max-width: 62ch; margin: 0; padding-left: var(--s3); border-left: 3px solid var(--red); }

/* ---------- recensioni ---------- */
.reviews { border-top: 1px solid var(--line); padding: var(--section) 0; }
.rev-grid { display: grid; gap: var(--s2); margin-top: var(--s4); }
.rev-grid figure { margin: 0; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .3s var(--ease); }
.rev-grid figure:hover { border-color: var(--red); transform: translateY(-4px); }
.stars { color: var(--red-text); letter-spacing: 3px; }
.rev-grid blockquote { margin: 0; flex: 1; font: italic 600 1.05rem/1.55 var(--serif); }
.rev-grid figcaption { font: 700 .85rem var(--mono); }
.rev-grid figcaption span { display: block; color: var(--muted); font-weight: 400; }
@media (min-width: 700px) { .rev-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.info { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s4); }
.info-grid { display: grid; gap: var(--s5); }
.info .brand svg { height: 120px; }
.info h3 { font-size: 1.3rem; }
.info-grid p { color: var(--muted); margin: var(--s2) 0 0; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: var(--s2); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours li.today, .hours li.today span:last-child { color: var(--red-text); font-weight: 700; }
address { font-style: normal; line-height: 1.9; }
address a { text-decoration: none; }
address a:hover { color: var(--red-text); }
.maps { margin-top: var(--s2); }
.copy { margin: var(--s5) 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.copy a { text-decoration: none; }
@media (min-width: 900px) { .info-grid { grid-template-columns: .8fr 1fr 1.3fr; gap: 56px; } }

/* ---------- pagina ordini ---------- */
.order-page { padding: var(--s6) 0 var(--section); }
.order-head { margin-bottom: var(--s5); }
.order-head > * { animation: rise .8s var(--ease) both; }
.order-head > :nth-child(2) { animation-delay: .1s; }
.order-head > :nth-child(3) { animation-delay: .2s; }
.closed-box { display: block; width: fit-content; margin: var(--s2) 0 0; padding: 12px 18px; border: 1px solid var(--red); border-radius: 12px; background: rgb(227 6 27 / .1); font-weight: 700; }
.order-grid { display: grid; gap: var(--s5); align-items: start; }
.order-grid > * { min-width: 0; } /* la barra categorie scorrevole non deve allargare la colonna */
.order-grid .tabs a:first-child { margin-left: 0; }
.order-grid .panel { max-width: none; }
.order-grid .items { display: grid; gap: 12px; }
.order-grid .item { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #1f1f1f, #161616); transition: border-color .2s; }
.order-grid .item:hover { border-color: rgb(227 6 27 / .55); }
/* card "Componi il tuo burger": prima dei Burger, evidenziata */
.order-grid .item.hl { border: 1.5px solid var(--red); background: linear-gradient(135deg, rgb(227 6 27 / .22), #161616 70%); box-shadow: 0 10px 30px rgb(227 6 27 / .18); scroll-margin-top: 140px; }
.item.hl h5 em { background: var(--red); color: #fff; padding: 2px 8px; border-radius: 999px; }
.build-cta { margin-top: var(--s2); }
.build-cta em { font: 700 .72rem var(--mono); font-style: normal; background: #fff; color: var(--red); padding: 2px 8px; border-radius: 999px; }
.build-note { margin: 0 0 8px; color: var(--muted); font-size: .875rem; }
.build-miss { margin: 0; color: var(--red-text); font-weight: 700; font-size: .9rem; }
.build-miss:empty { display: none; }
.adds { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: 12px; }
.add { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--red); background: none; color: var(--text); font: 700 .95rem Karla, sans-serif; cursor: pointer; transition: background-color .2s, transform .25s var(--ease); }
.add:hover { background: var(--red); transform: translateY(-2px); }
.add.added { background: var(--red); animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.1); } }
.mode { border: 0; padding: 0; margin: 0 0 14px; }
.mode legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.mode label, .side-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); cursor: pointer; }
.mode label:has(:checked), .side-opt:has(:checked) { border-color: var(--red); background: rgb(227 6 27 / .1); }
.mode input, .side-opt input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.side-opt.dessert { width: 100%; font: inherit; color: inherit; text-align: left; }
.side-opt small { color: var(--red-text); font-weight: 700; }
.side-opt.dessert.in { border-color: var(--red); background: rgb(227 6 27 / .1); }
.side-opt b { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart li.fee { grid-template-columns: 1fr auto; color: var(--muted); }
.side-dlg { width: min(460px, 100% - 32px); max-height: calc(100svh - 32px); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); }
.side-dlg::backdrop { background: rgb(0 0 0 / .7); backdrop-filter: blur(4px); }
.side-dlg[open] { animation: rise .3s var(--ease); }
.side-dlg h2 { font-size: 1.6rem; margin-bottom: 4px; }
.build-grp { font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red-text); margin: var(--s2) 0 8px; }
.build-grp em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; }
.build-foot { position: sticky; bottom: calc(-1 * var(--s3)); margin: var(--s2) calc(-1 * var(--s3)) calc(-1 * var(--s3)); padding: 8px var(--s3) var(--s3); background: var(--card); border-top: 1px solid var(--line); }
.side-sub { color: var(--muted); margin: 0 0 var(--s2); }
.side-actions { display: flex; gap: var(--s1); }
.side-actions .btn { flex: 1; padding: 0 16px; }
.side-actions .btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
.only-table { margin: 0 0 var(--s1); color: var(--muted); font-style: italic; }

.opts { display: grid; gap: 6px; margin-top: 12px; max-width: 420px; }
.opts span { font-weight: 700; font-size: .95rem; }
.opts select { appearance: none; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff3b4a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.opts select { width: 100%; min-height: 48px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 1rem; cursor: pointer; }
.opts select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(227 6 27 / .25); }

.cart-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.cart-box h2 { font-size: 1.9rem; }
.cart-empty { color: var(--muted); margin: 0 0 var(--s2); }
.cart { list-style: none; margin: 0; padding: 0; }
.cart li { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s2); padding: 12px 0; border-bottom: 1px dashed var(--line); animation: fadeIn .3s var(--ease); }
.cart .c-name { font-weight: 500; line-height: 1.35; }
.cart .c-price { font-weight: 700; color: var(--red-text); font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: var(--s1); }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: border-color .2s; }
.qty button:hover { border-color: var(--red); }
.qty span { min-width: 1.5ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; margin: var(--s2) 0 var(--s3); font: 700 1.4rem var(--serif); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 1rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(227 6 27 / .25); }
.hint { color: var(--muted); font-size: .875rem; margin: 0 0 var(--s2); }
.cart-box .btn { width: 100%; }
.cart-box .btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }

.order-bar { position: fixed; z-index: 15; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 10px 10px 10px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 30px rgb(0 0 0 / .6); animation: rise .35s var(--ease); }
.order-bar[hidden] { display: none; }
.order-bar b { font-variant-numeric: tabular-nums; }
.order-bar .btn { min-height: 44px; padding: 0 20px; }
@media (min-width: 1000px) {
  .order-grid { grid-template-columns: 1fr 400px; gap: 56px; }
  .cart-box { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .order-bar { display: none !important; }
}

/* ---------- senza glutine: icona, interruttore "Solo senza glutine", legenda ---------- */
.sg-ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; margin-left: 6px; }
.sg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin: 0 0 var(--s2); }
.sg-bar .sg-ic { margin: 0; }
.sg-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: 700 1rem Karla, sans-serif; cursor: pointer; transition: border-color .2s; }
.sg-switch:hover { border-color: var(--red); }
.sg-switch .knob { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: var(--line); transition: background-color .2s; }
.sg-switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.sg-switch[aria-checked="true"] { border-color: var(--red); background: rgb(227 6 27 / .12); }
.sg-switch[aria-checked="true"] .knob { background: var(--red); }
.sg-switch[aria-checked="true"] .knob::after { transform: translateX(18px); }
.sg-legend { margin: 0; color: var(--muted); font-size: .95rem; }
.sg-info { display: none; flex-basis: 100%; margin: 0; padding: 12px 16px; border-left: 3px solid var(--red); background: rgb(227 6 27 / .08); border-radius: 0 12px 12px 0; font-size: .95rem; text-align: left; }
.sg-only .sg-info { display: block; }
.sg-only .nosg { display: none !important; }
.cart li.sg { padding-left: 12px; border-left: 3px solid var(--sg); }
.cart li.sg .sg-ic { margin: 0 6px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- popup del piatto: ingredienti da togliere (chip) ---------- */
.ing-dlg h2 { padding-right: 44px; }
.ing-dlg h2 .sg-ic { width: .8em; height: .8em; vertical-align: -.05em; }
.dlg-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-2); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.dlg-x:hover { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--red); background: var(--red); color: #fff; font: 700 .95rem/1.2 Karla, sans-serif; text-align: left; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip[aria-pressed="false"] { background: none; border-color: var(--line); color: var(--muted); text-decoration: line-through; }
.chip[aria-pressed="false"]::before { content: "✕"; display: inline-block; color: var(--red-text); }
.chip.fixed { background: var(--line); border-color: var(--line); color: var(--muted); cursor: default; }
.chip svg { width: 14px; height: 14px; flex: none; fill: currentColor; }
.ing-sum { margin: 0; color: var(--red-text); font-weight: 700; font-size: .95rem; }
.ing-sum:empty { display: none; }
.ing-dlg .total { margin: 6px 0 var(--s2); }
/* da telefono: si apre dal basso, a tutta larghezza */
@media (max-width: 599px) {
  .ing-dlg { width: 100%; max-width: 100%; max-height: 90svh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
  .ing-dlg[open] { animation: sheet .3s var(--ease); }
}
@keyframes sheet { from { transform: translateY(100%); } }

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