/* ReStar — design system
   Palette: Inchiostro #1A1717 · Melanzana #C8141C · Zafferano #FFB400 · Nebbia #F4F3F6 · Basilico #1E7F52 · Peperoncino #C2382B */

@font-face {
  font-family: 'Bricolage';
  src: url('../fonts/bricolage.woff2') format('woff2-variations'), url('../fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800; font-display: swap;
}

:root {
  --ink: #1A1717; --ink-2: #4D4646; --ink-3: #6E6766;
  --brand: #C8141C; --brand-hover: #A50F16; --brand-text: #B5121A; --brand-soft: #FDECEC;
  --accent: #FFB400; --accent-hover: #F0A800; --accent-ink: #1A1717; --accent-soft: #FFF4D6;
  --bg: #FFFFFF; --bg-2: #F5F3F2; --bg-3: #EBE7E5; --surface: #FFFFFF; --line: #E6E1DF; --line-2: #D4CECB;
  --ok: #166B45; --ok-soft: #E3F4EB; --err: #C2382B; --err-soft: #FBE9E7;
  --scrim: rgba(26, 23, 23, .45); --night: #1A1717;
  --shadow-pop: 0 1px 2px rgba(26,23,23,.06), 0 12px 32px -8px rgba(26,23,23,.22);
  --display: 'Bricolage', ui-sans-serif, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px; --r-pill: 999px;
  --header: 64px; --tabbar: 0px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ink: #F6F2F1; --ink-2: #D0C8C6; --ink-3: #A9A09E;
  --brand: #C8141C; --brand-hover: #DD1F28; --brand-text: #FF8A8F; --brand-soft: #2E1618;
  --accent-soft: #3A2E12;
  --bg: #121010; --bg-2: #1C1918; --bg-3: #272322; --surface: #191615; --line: #302B2A; --line-2: #413B3A;
  --ok: #4CC38A; --ok-soft: #12291E; --err: #FF7A6B; --err-soft: #331512;
  --scrim: rgba(0, 0, 0, .6); --night: #221D1D;
  --shadow-pop: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -8px rgba(0,0,0,.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ink: #F6F2F1; --ink-2: #D0C8C6; --ink-3: #A9A09E; --brand: #C8141C; --brand-hover: #DD1F28; --brand-text: #FF8A8F; --brand-soft: #2E1618;
    --accent-soft: #3A2E12; --bg: #121010; --bg-2: #1C1918; --bg-3: #272322; --surface: #191615; --line: #302B2A; --line-2: #413B3A;
    --ok: #4CC38A; --ok-soft: #12291E; --err: #FF7A6B; --err-soft: #331512; --scrim: rgba(0,0,0,.6); --night: #221D1D; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; padding-bottom: var(--tabbar); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 36em; line-height: 1.5; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8125rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 44rem; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.page-top { padding-top: clamp(24px, 4vw, 48px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 750 1.375rem/1 var(--display); letter-spacing: -.04em; }
.logo svg { width: 30px; height: 30px; }
.logo img { display: block; width: auto; }
.logo .logo-mark { height: 42px; }
.logo .logo-word { height: 26px; }
.logo .on-dark { display: none; }
:root[data-theme='dark'] .logo .on-light { display: none; }
:root[data-theme='dark'] .logo .on-dark { display: block; }
.foot-brand .logo-full { height: 120px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 550; font-size: .9375rem; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--bg-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 700 .6875rem/19px var(--text); text-align: center; border: 2px solid var(--bg); }
.badge:empty { display: none; }

.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --header: 58px; --tabbar: calc(64px + env(safe-area-inset-bottom)); }
  .nav, .hide-m { display: none !important; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; inset: auto 0 0 0; height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: .6875rem; font-weight: 600; }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a[aria-current='page'] { color: var(--brand-text); }
  .tabbar .badge { top: 6px; right: calc(50% - 22px); }
}
@media (min-width: 761px) { .hide-d { display: none !important; } }

/* ---------- pulsanti ---------- */
.btn { --b: var(--brand); --t: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; background: var(--b); color: var(--t); font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-accent { --b: var(--accent); --t: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { --b: transparent; --t: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-quiet { --b: var(--bg-2); --t: var(--ink); }
.btn-quiet:hover { background: var(--bg-3); }
.btn-danger { --b: transparent; --t: var(--err); border-color: var(--line-2); }
.btn-danger:hover { background: var(--err-soft); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }
.link { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; background: none; border: 0; padding: 0; }

/* ---------- chip, segmenti ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -20px; padding-inline: 20px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll > * { flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: .9375rem; font-weight: 550; white-space: nowrap; text-decoration: none; }
.chip svg { width: 17px; height: 17px; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed='true'], .chip.on, input:checked + .chip { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check input:focus-visible + .chip { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-2); font-size: .8125rem; font-weight: 550; white-space: nowrap; }
.tag svg { width: 14px; height: 14px; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-accent { background: var(--accent-soft); color: var(--ink); }
.tag-brand { background: var(--brand-soft); color: var(--brand-text); }
.tag-err { background: var(--err-soft); color: var(--err); }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--bg-2); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.seg button svg { width: 18px; height: 18px; }
.seg [aria-pressed='true'], .seg [aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(26,23,23,.12); }
.seg-block { display: flex; }
.seg-block > * { flex: 1; justify-content: center; }

/* ---------- moduli ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 600; font-size: .9375rem; }
.hint { font-size: .8125rem; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-text) 22%, transparent); }
.input[aria-invalid='true'] { border-color: var(--err); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237A7284' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.err-msg { color: var(--err); font-size: .875rem; font-weight: 550; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line-2); position: relative; transition: background .2s; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.stepper button { width: 38px; height: 38px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.stepper button:hover { background: var(--bg-2); }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 26px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- superfici ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.panel-quiet { background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-2); font-size: .9375rem; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice-warn { background: var(--accent-soft); }
.notice-err { background: var(--err-soft); color: var(--err); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; padding: 48px 20px; display: grid; gap: 12px; justify-items: center; }
.empty svg { width: 44px; height: 44px; color: var(--ink-3); }

/* ---------- copertine locali ---------- */
.cover { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.cover svg { width: 100%; height: 100%; }
.cover .fav { position: absolute; top: 10px; right: 10px; }
.fav { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #1A1717; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.fav svg { width: 20px; height: 20px; }
.fav[aria-pressed='true'] { color: #D2283A; }
.fav[aria-pressed='true'] svg { fill: currentColor; }
.fav.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }
.cover .status { position: absolute; left: 10px; bottom: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(18,14,23,.78); color: #fff; font-size: .8125rem; font-weight: 600; backdrop-filter: blur(6px); }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9A92A5; }
.status-pill.open::before { background: #4CD98F; }
.status-pill.soon::before { background: var(--accent); }

.venue-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.venue-card { display: grid; gap: 12px; align-content: start; text-decoration: none; position: relative; }
.venue-card h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.venue-card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--ink-3); font-size: .875rem; }
.venue-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.venue-card .meta svg { width: 15px; height: 15px; }
.venue-card a.cover-link { text-decoration: none; }
.venue-card a.cover-link:hover .cover svg { transform: scale(1.03); }
.venue-card .cover svg { transition: transform .4s ease; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink); }
.rating svg { width: 15px; height: 15px; fill: var(--accent); color: var(--accent); }
.services { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- dialog e pannelli laterali ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.modal { width: min(560px, 100% - 24px); max-height: min(88vh, 900px); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); }
.modal[open] { animation: rise .28s cubic-bezier(.2,.8,.2,1); }
.sheet { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%); border-radius: var(--r-xl) 0 0 var(--r-xl); }
.sheet[open] { animation: slide .3s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 760px) {
  .modal, .sheet { margin: auto 0 0 0; width: 100%; max-width: 100%; max-height: 92vh; height: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .modal[open], .sheet[open] { animation: up .3s cubic-bezier(.2,.8,.2,1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.dlg { display: flex; flex-direction: column; max-height: inherit; height: 100%; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.dlg-body { padding: 4px 20px 20px; overflow-y: auto; flex: 1; }
.dlg-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 18px); display: grid; gap: 8px; width: min(420px, 100% - 24px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-pop); animation: up .3s cubic-bezier(.2,.8,.2,1); font-size: .9375rem; }
.toast b { display: block; }
.toast a { color: inherit; font-weight: 650; }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }

/* ---------- liste ---------- */
.list { display: grid; }
.list > * { padding: 16px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.kv.total { font: 700 1.25rem/1.3 var(--display); padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.kv .minus { color: var(--ok); }

/* ---------- menu digitale ---------- */
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start; }
.menu-item h4 { font-family: var(--text); font-size: 1rem; font-weight: 650; letter-spacing: 0; line-height: 1.35; }
.menu-item .desc { color: var(--ink-3); font-size: .9375rem; }
.menu-item .price { font-weight: 650; font-variant-numeric: tabular-nums; }
.menu-item .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.menu-item .actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.menu-item.dim { opacity: .45; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.add-btn:hover { background: var(--brand); color: #fff; }
.add-btn svg { width: 20px; height: 20px; }
.wish-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.wish-btn:hover { background: var(--bg-2); color: var(--ink); }
.wish-btn svg { width: 20px; height: 20px; }
.wish-btn[aria-pressed='true'] { color: var(--brand-text); }
.wish-btn[aria-pressed='true'] svg { fill: currentColor; }
.cat-nav { position: sticky; top: var(--header); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- avanzamento ordine ---------- */
.track { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.track li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-bottom: 22px; }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ''; position: absolute; left: 15px; top: 30px; bottom: 0; width: 2px; background: var(--line-2); }
.track li:last-child::before { display: none; }
.track .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--line-2); color: var(--ink-3); }
.track .dot svg { width: 16px; height: 16px; }
.track li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.track li.done::before { background: var(--ok); }
.track li.now .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.track .t { padding-top: 4px; font-weight: 600; }
.track li:not(.done):not(.now) .t { color: var(--ink-3); font-weight: 500; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent); } }
.progress { height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .6s ease; }

/* ---------- stelle ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; color: var(--accent); }
.stars svg.off { color: var(--line-2); }
.star-input { display: inline-flex; gap: 4px; border: 0; padding: 0; margin: 0; }
.star-input label { cursor: pointer; color: var(--line-2); }
.star-input label svg { width: 34px; height: 34px; fill: currentColor; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label.on { color: var(--accent); }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-2); margin-top: 48px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-grid h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; font-family: var(--text); font-weight: 650; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); font-size: .9375rem; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand .logo { font-size: 1.375rem; color: var(--ink); text-decoration: none; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-3); font-size: .8125rem; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :last-child { grid-column: 1 / -1; } }

/* ---------- ricerca nell'intestazione ---------- */
.hdr-search { position: relative; flex: 1; max-width: 360px; margin-left: 8px; }
.hdr-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.hdr-search input { width: 100%; height: 42px; padding: 0 16px 0 40px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg-2); font-size: .9375rem; color: var(--ink); }
.hdr-search input:focus { outline: none; background: var(--surface); border-color: var(--brand-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-text) 18%, transparent); }
@media (max-width: 1080px) { .hdr-search { display: none; } }

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.btn svg, .chip svg, .tag svg, .seg button svg { flex: none; }
.menu-item .variants { font-size: .8125rem; color: var(--ink-3); line-height: 1.45; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover, .ph-thumb, .collage > div { position: relative; }
.err-txt { color: var(--err); }

.result { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 8px 0 4px; }
.result b { font-size: 1.2rem; }
.result-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.result-ic svg { width: 34px; height: 34px; stroke-width: 2.5; }
.result-ok .result-ic { background: var(--ok-soft); color: var(--ok); }
.result-err .result-ic { background: var(--err-soft); color: var(--err); }
@media (prefers-reduced-motion: no-preference) { .result-ic { animation: result-pop .35s ease-out; } }
@keyframes result-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* gestionale: la pagina cambia e mostra solo gli strumenti del locale */
.staff-bar { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.staff-tag { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; flex: none; }
.staff-venue { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
body.staff-mode .site-header .nav, body.staff-mode .site-header .hdr-search, body.staff-mode [data-open-cart], body.staff-mode [data-open-notif],
body.staff-mode .header-actions a[href="account.html"], body.staff-mode .site-footer, body.staff-mode .tabbar { display: none !important; }
body.staff-mode { padding-bottom: 0; }
@media (max-width: 760px) { .staff-bar .staff-venue { display: none; } }
@media (min-width: 761px) { body.staff-mode .adm-side > [data-logout], body.staff-mode .adm-venue .link { display: none; } }
@media (max-width: 760px) { .staff-bar [data-staff-out] { display: none; } }

/* anteprima della pagina del locale aperta dal gestionale */
.preview-bar { position: sticky; top: 0; z-index: 60; height: 46px; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 8px clamp(12px, 3vw, 40px); background: var(--ink); color: var(--bg); font-size: .9rem; }
.preview-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: none; padding: 6px 14px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 16%, transparent); }
.preview-back:hover { background: color-mix(in srgb, var(--bg) 26%, transparent); }
.preview-back svg { width: 20px; height: 20px; }
.preview-note { opacity: .8; }
@media (max-width: 560px) { .preview-note { display: none; } }
body.previewing .site-header { top: 46px; }
body.previewing .cat-nav { top: calc(var(--header) + 46px); }
body.previewing .order-box { top: calc(var(--header) + 118px); }

/* mostra password */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { background: var(--bg-2); color: var(--ink); }
.pw-eye svg { width: 20px; height: 20px; }

.pw-forgot { display: inline-block; justify-self: start; margin-top: 6px; }


.select.sr-only, .input.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }

