/* ReStar — stili delle singole pagine */

/* ================= HOME ================= */
.h-sec { padding-block: clamp(36px, 5.5vw, 80px); }
.h-title { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); letter-spacing: -.03em; }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.h-head p { margin-top: 6px; }

/* apertura */
.h-hero { padding: clamp(20px, 4vw, 56px) 0 clamp(24px, 4vw, 48px); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.h-hero h1 { font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5.4rem); line-height: .98; letter-spacing: -.045em; font-weight: 750; }
.h-hero .lead { margin-top: 18px; max-width: 34em; }
.finder { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 8px; box-shadow: var(--shadow-pop); }
.finder-tabs { display: flex; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.finder-tabs::-webkit-scrollbar { display: none; }
.finder-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-weight: 650; font-size: .9375rem; white-space: nowrap; }
.finder-tabs button svg { width: 18px; height: 18px; flex: none; }
.finder-tabs button:hover { background: var(--bg-2); color: var(--ink); }
.finder-tabs [aria-selected='true'] { background: var(--ink); color: var(--bg); }
.finder-tabs [aria-selected='true']:hover { background: var(--ink); color: var(--bg); }
.finder-row { display: flex; align-items: stretch; gap: 6px; padding: 6px; }
.finder-field { display: grid; gap: 1px; padding: 8px 14px; border-radius: 16px; background: var(--bg-2); min-width: 0; cursor: text; }
.finder-field:focus-within { box-shadow: inset 0 0 0 2px var(--brand-text); background: var(--surface); }
.finder-field > span { font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.finder-field input, .finder-field select { border: 0; background: transparent; padding: 2px 0; font-size: 1rem; min-width: 0; width: 100%; outline: none; color: var(--ink); }
.finder-field select { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237A7284' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right center; }
.finder-field select option { color: #1A1717; }
.finder-what { flex: 1; }
.finder-field[data-show='booking'] { width: 128px; flex: none; }
.finder-field[data-show='booking'] + .finder-field[data-show='booking'] { width: 100px; }
.finder-field[data-show='delivery'] { flex: .8; }
.finder-go { min-height: auto; border-radius: 16px; padding: 0 22px; }
.finder-qr { display: grid; gap: 12px; justify-items: start; padding: 10px 12px 12px; color: var(--ink-2); }
.h-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 20px 0 0; color: var(--ink-2); font-size: .9375rem; }
.h-proof li { display: inline-flex; align-items: center; gap: 6px; }
.h-proof svg { width: 18px; height: 18px; color: var(--ok); }
.h-hero-art { position: relative; }
.h-hero-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: linear-gradient(135deg, #7A2E3A, #F2C6A0); }
.h-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-float { position: absolute; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-pop); padding: 14px 16px; }
.h-float-order { left: -28px; bottom: 32px; width: 270px; display: grid; gap: 8px; }
.h-float-book { right: -18px; top: 28px; display: flex; gap: 12px; align-items: center; }
.h-float-book b { display: block; font-size: .9375rem; }
.h-float-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.h-float-ic svg { width: 20px; height: 20px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.live-state { font: 700 1.2rem/1.2 var(--display); letter-spacing: -.02em; }
.live-state.swap { animation: swap .45s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 960px) {
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-hero-art { order: -1; }
  .h-hero-photo { aspect-ratio: 16 / 10; border-radius: 24px; }
  .h-float-order { left: 12px; bottom: -22px; width: 230px; padding: 12px 14px; }
  .h-float-book { right: 12px; top: 12px; padding: 10px 12px; }
  .h-hero-copy { padding-top: 18px; }
}
@media (max-width: 640px) {
  .finder-row { flex-wrap: wrap; }
  .finder-what, .finder-field[data-show='delivery'] { flex: 1 1 100%; }
  .finder-field[data-show='booking'] { flex: 1 1 40%; width: auto; }
  .finder-field[data-show='booking'] + .finder-field[data-show='booking'] { width: auto; }
  .finder-go { flex: 1 1 100%; min-height: 52px; }
  .h-float-book { display: none; }
}

/* categorie */
.cat-rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.cat { display: grid; justify-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: .9375rem; text-align: center; }
.cat-img { position: relative; width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg-2); transition: transform .25s ease; }
.cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat-img { transform: translateY(-3px); }
@media (max-width: 860px) {
  .cat-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; gap: 16px; }
  .cat-rail::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 84px; scroll-snap-align: start; }
}

/* locali a scorrimento */
.venue-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.venue-rail::-webkit-scrollbar { display: none; }
.venue-rail > * { scroll-snap-align: start; }
.rail-btn { border: 1px solid var(--line-2); }
@media (max-width: 760px) { .venue-rail { grid-auto-columns: 78%; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; } .rail-btn { display: none; } }

/* locale in evidenza */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 32px; overflow: hidden; background: var(--night); color: #fff; --ink: #fff; --ink-2: rgba(255,255,255,.8); }
.spotlight-img { aspect-ratio: auto; min-height: 340px; border-radius: 0; }
.spotlight-copy { padding: clamp(28px, 4.5vw, 56px); display: grid; gap: 16px; align-content: center; justify-items: start; }
.spotlight-copy h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spot-list li { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.88); }
.spot-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.spot-ghost { --b: transparent; --t: #fff; border-color: rgba(255,255,255,.35); }
.spot-ghost:hover { background: rgba(255,255,255,.1); }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } .spotlight-img { min-height: 0; aspect-ratio: 16 / 9; } }

/* modalità */
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mode-card { position: relative; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; background: var(--night); display: flex; align-items: flex-end; }
.mode-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mode-card:hover img { transform: scale(1.04); }
.mode-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,12,24,.88) 0%, rgba(18,12,24,.35) 45%, rgba(18,12,24,0) 70%); }
.mode-ic { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.mode-ic svg { width: 22px; height: 22px; }
.mode-text { position: relative; display: grid; gap: 4px; padding: 18px; }
.mode-text b { font: 700 1.25rem/1.15 var(--display); letter-spacing: -.02em; }
.mode-text span { font-size: .9375rem; opacity: .88; }
@media (max-width: 960px) { .mode-grid { grid-template-columns: 1fr 1fr; } .mode-card { aspect-ratio: 4 / 5; } }
@media (max-width: 480px) { .mode-card { aspect-ratio: 1 / 1.15; } .mode-text { padding: 14px; } .mode-text b { font-size: 1.0625rem; } .mode-text span { font-size: .8125rem; } }

/* come funziona */
.h-steps-sec { background: var(--bg-2); }
.h-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--surface); }
.h-step-n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 750 1.25rem/1 var(--display); }
.h-steps h3 { font-size: 1.1875rem; margin-bottom: 4px; }
.h-steps p { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) { .h-steps { grid-template-columns: 1fr; } }

/* fedeltà */
.loyalty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.loyalty-copy { display: grid; gap: 18px; justify-items: start; }
.loy-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 4px; width: 100%; }
.loy-facts div { padding: 16px; border-radius: 18px; background: var(--bg-2); }
.loy-facts dt { font: 750 1.5rem/1.1 var(--display); letter-spacing: -.02em; }
.loy-facts dd { margin: 4px 0 0; color: var(--ink-2); font-size: .875rem; }
.loy-card-wrap { display: grid; place-items: center; padding: 20px; }
.loy-card { width: min(400px, 100%); aspect-ratio: 1.586; border-radius: 26px; padding: 26px; color: #fff; display: grid; align-content: space-between; gap: 10px; background: radial-gradient(120% 140% at 100% 0%, #6E4689 0%, #A50F16 55%, #1A1717 100%); box-shadow: 0 30px 60px -24px rgba(58,33,73,.6); transform: rotate(-4deg); position: relative; overflow: hidden; }
.loy-card::after { content: ''; position: absolute; right: -36px; top: -44px; width: 150px; height: 150px; background: var(--accent); opacity: .9; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.loy-card > * { position: relative; z-index: 1; }
.loy-card .progress { background: rgba(255,255,255,.22); max-width: 70%; }
.loy-logo { display: inline-flex; gap: 6px; align-items: center; font: 750 1.125rem var(--display); }
.loy-logo svg { width: 20px; height: 20px; fill: var(--accent); color: var(--accent); }
.loy-level { display: block; font: 750 2rem/1 var(--display); letter-spacing: -.03em; }
.loy-num { font: 750 1.25rem var(--display); }
@media (max-width: 860px) { .loyalty { grid-template-columns: 1fr; } .loy-facts { grid-template-columns: 1fr; } }

/* recensioni vere */
.trust { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 32px; border: 2px solid var(--accent); }
.visits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.visits li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.visits span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ok); flex: none; }
.visits span svg { width: 22px; height: 22px; }
.visits .unlock span { background: var(--accent); color: var(--accent-ink); }
.visits .unlock span svg { fill: currentColor; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* per i locali */
.biz { background: var(--night); color: #fff; --ink: #fff; --ink-2: rgba(255,255,255,.8); --ink-3: rgba(255,255,255,.66); }
.biz-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.biz-copy { display: grid; gap: 18px; justify-items: start; }
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.biz-list li { padding-left: 20px; position: relative; color: rgba(255,255,255,.82); }
.biz-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.biz-list b { color: #fff; }
.biz-demo-tabs { margin-top: 14px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); width: 100%; }
.biz .seg { background: rgba(255,255,255,.1); }
.biz .seg button { color: rgba(255,255,255,.85); }
.biz .seg [aria-selected='true'] { background: #fff; color: #1A1717; }
@media (max-width: 900px) { .biz-grid { grid-template-columns: 1fr; justify-items: center; } .biz-copy { justify-self: stretch; } }
.phone { position: relative; width: 320px; height: 640px; border-radius: 48px; padding: 12px; background: #0E0A12; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 0 0 2px #2A2230; flex: none; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 14px; background: #0E0A12; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #fff; color: #1A1717; --ink: #1A1717; --ink-2: #4E4659; --ink-3: #6F6779; --bg-2: #F4F3F6; --line: #E3E0E8; --line-2: #D2CDD9; --surface: #fff; --bg: #fff; padding: 56px 18px 18px; display: flex; flex-direction: column; gap: 12px; font-size: .9375rem; }
.phone-screen h3 { font-size: 1.25rem; }
.phone-screen .btn { min-height: 46px; }
.ph-venue { display: flex; gap: 10px; align-items: center; }
.ph-venue .ph-thumb { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; }
.ph-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-slots button { min-height: 40px; border-radius: 12px; border: 1px solid #D2CDD9; background: #fff; font-weight: 600; color: #1A1717; }
.ph-slots button[aria-pressed='true'] { background: #1A1717; color: #fff; border-color: #1A1717; }
.ph-slots button:disabled { opacity: .35; text-decoration: line-through; }
.ph-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #E3E0E8; }
.ph-item .grow small { display: block; color: #6F6779; }
.ph-bottom { margin-top: auto; }
.ph-done { margin: auto 0; text-align: center; display: grid; gap: 10px; justify-items: center; }
.ph-check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #166B45; color: #fff; animation: pop .5s ease; }
.ph-check svg { width: 36px; height: 36px; }
.ph-code { font: 700 1.5rem/1 var(--display); letter-spacing: .08em; padding: 10px 16px; border-radius: 12px; background: #FFF4D6; }
.ph-qr { width: 150px; margin: 6px auto; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid #E3E0E8; }
.ph-qr img { width: 100%; image-rendering: pixelated; }

/* app */
.appband { display: flex; align-items: center; gap: 22px; padding: clamp(20px, 3.5vw, 32px); border-radius: 28px; background: var(--accent-soft); flex-wrap: wrap; }
.appband-icon { border-radius: 18px; box-shadow: 0 10px 24px -10px rgba(58,33,73,.5); }
.appband h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); margin-bottom: 4px; }

/* domande */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font: 650 1.125rem/1.35 var(--display); letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 22px; height: 22px; flex: none; transition: transform .25s; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* chiusura */
.cta { background: var(--night); color: #fff; --ink: #fff; --ink-2: rgba(255,255,255,.78); }
.cta .lead { color: var(--ink-2); }
.cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.cta-ghost { --t: #fff; border-color: rgba(255,255,255,.35); }
.cta-ghost:hover { background: rgba(255,255,255,.1); }
.cta-form { display: grid; gap: 14px; padding: 28px; border-radius: var(--r-xl); background: rgba(255,255,255,.07); }
.cta-form .input { background: #fff; color: #1A1717; border-color: transparent; }
.cta-form label { color: #fff; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }
.page-home .site-footer { margin-top: 0; }

/* ================= ESPLORA ================= */
.page-explore .site-footer { display: none; }
.explore { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; height: calc(100dvh - var(--header)); }
.explore-side { overflow-y: auto; border-right: 1px solid var(--line); }
.explore-head { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 20px 20px 12px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.explore-title { font-size: 1.75rem; }
.search { position: relative; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 44px; border-radius: var(--r-pill); background: var(--bg-2); border-color: transparent; }
.search .input:focus { background: var(--surface); }
.explore-head .chips-scroll { margin-inline: -20px; padding-inline: 20px; }
.explore-tools { flex-wrap: wrap; }
.explore-list { padding: 20px; display: grid; gap: 28px; }
.explore-list .venue-card { grid-template-columns: 1fr; }
.explore-list .venue-card.hl .cover { outline: 3px solid var(--accent); outline-offset: 3px; }
.explore-map { position: relative; }
#map { position: absolute; inset: 0; background: var(--bg-2); }
.view-toggle { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 16px); z-index: 30; }
.view-toggle .seg { background: var(--ink); box-shadow: var(--shadow-pop); }
.view-toggle .seg button { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.view-toggle .seg [aria-pressed='true'] { background: var(--bg); color: var(--ink); }
@media (min-width: 1100px) { .explore-list { grid-template-columns: 1fr 1fr; gap: 28px 18px; } .explore { grid-template-columns: 640px 1fr; } }
@media (max-width: 760px) {
  .explore { display: block; height: auto; }
  .explore-side { border: 0; overflow: visible; }
  .explore-head { top: var(--header); }
  .explore-list { padding-bottom: 96px; }
  .explore-map { display: none; position: fixed; inset: var(--header) 0 var(--tabbar) 0; z-index: 10; }
  .explore[data-view='map'] .explore-map { display: block; }
  .explore[data-view='map'] .explore-list { display: none; }
}
.leaflet-container { font: inherit; }
.map-pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.map-pin span { transform: rotate(45deg); font: 700 .8125rem/1 var(--text); color: #fff; }
.map-pin.closed { filter: grayscale(.7) brightness(.9); }
.map-pin.hl { outline: 4px solid #FFB400; }
.leaflet-popup-content-wrapper { border-radius: 16px; background: var(--surface); color: var(--ink); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 14px 16px; font-size: .9375rem; }
.leaflet-popup-content a.btn { color: #fff; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2F7BF5; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,123,245,.25); }
[data-theme='dark'] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }

/* ================= LOCALE ================= */
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs svg { width: 14px; height: 14px; }
.venue-hero { padding: 16px 0 32px; }
.venue-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.venue-cover { aspect-ratio: 5 / 4; border-radius: var(--r-xl); }
.venue-intro { display: grid; gap: 14px; justify-items: start; }
.venue-intro h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); }
.venue-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: .9375rem; }
.venue-facts > * { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.venue-facts svg { width: 17px; height: 17px; }
.venue-actions { flex-wrap: wrap; margin-top: 8px; }
.fav-lg { width: 56px; height: 56px; background: var(--bg-2); color: var(--ink); box-shadow: none; }
.fav-lg svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .venue-hero-grid { grid-template-columns: 1fr; } .venue-cover { aspect-ratio: 16 / 10; } .venue-actions .btn { flex: 1; } }
.venue-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); padding-top: 24px; }
.venue-aside { position: relative; }
.order-box { position: sticky; top: calc(var(--header) + 72px); display: grid; gap: 14px; }
@media (max-width: 960px) { .venue-body { grid-template-columns: 1fr; } .venue-aside { display: none; } }
.menu-tools { display: grid; gap: 12px; margin-bottom: 8px; }
.menu-cat { padding-top: 28px; scroll-margin-top: calc(var(--header) + 70px); }
.menu-cat h3 { font-size: 1.5rem; margin-bottom: 4px; }
.venue-section { padding-top: 56px; scroll-margin-top: calc(var(--header) + 70px); }
.h-sm { font-family: var(--text); font-size: 1rem; font-weight: 650; letter-spacing: 0; margin-bottom: 8px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 24px; }
.hours { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.hours th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 4px 12px 4px 0; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; padding: 4px 0; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--ink); }
.mini-map { height: 180px; border-radius: var(--r-md); overflow: hidden; margin: 10px 0 6px; background: var(--bg-2); }
.qr-box { width: 140px; padding: 10px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); margin: 8px 0; }
.qr-box img { width: 100%; image-rendering: pixelated; }
.review { display: grid; gap: 6px; }
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 20px 0; }
.review-avg { font: 750 3.5rem/1 var(--display); letter-spacing: -.04em; }
.bars { display: grid; gap: 4px; font-size: .8125rem; }
.bars > div { display: grid; grid-template-columns: 14px 1fr 24px; gap: 8px; align-items: center; }
.bars .progress { height: 6px; }
.review-lock { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--bg-2); margin-bottom: 8px; }
.visit-dots { display: flex; gap: 8px; }
.visit-dots span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line-2); color: var(--ink-3); font-weight: 700; font-size: .875rem; }
.visit-dots span.on { border: 0; background: var(--ok); color: #fff; }
.visit-dots span svg { width: 16px; height: 16px; }
.review.mine { background: var(--brand-soft); margin: 0 -14px; padding: 16px 14px; border-radius: var(--r-md); border: 0; }
.mobile-cart { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 12px); z-index: 30; }
.mobile-cart .btn { width: 100%; box-shadow: var(--shadow-pop); justify-content: space-between; }

/* ================= PRENOTA ================= */
.page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); padding-bottom: 40px; }
.booking-form { display: grid; gap: 8px; margin-top: 28px; }
.bk-step { border: 0; margin: 0; padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.bk-step legend { display: flex; align-items: center; gap: 12px; font: 700 1.25rem/1.2 var(--display); letter-spacing: -.015em; padding: 0; margin-bottom: 16px; float: left; width: 100%; }
.bk-step legend + * { clear: both; }
.bk-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: .9375rem; flex: none; }
.bk-venue-card { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.bk-venue-card .cover { width: 84px; flex: none; border-radius: var(--r-md); }
.date-chip { display: grid; justify-items: center; gap: 0; min-width: 64px; min-height: 64px; padding: 8px 10px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); font-size: .8125rem; color: var(--ink-2); line-height: 1.2; }
.date-chip b { font: 700 1.375rem/1.1 var(--display); color: var(--ink); }
.date-chip[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.date-chip[aria-checked='true'] b { color: var(--bg); }
.date-chip:disabled { opacity: .4; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { position: relative; min-height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-weight: 650; font-variant-numeric: tabular-nums; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot[aria-checked='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slot:disabled { color: var(--ink-3); background: var(--bg-2); border-color: transparent; text-decoration: line-through; cursor: not-allowed; }
.slot .few { position: absolute; top: -7px; right: -4px; font-size: .625rem; font-weight: 700; padding: 1px 5px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.booking-aside { position: relative; }
.bk-summary { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 14px; }
.bk-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .9375rem; }
.bk-summary dt { color: var(--ink-3); }
.bk-summary dd { margin: 0; font-weight: 600; text-align: right; }
.bk-success { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 32px 0; }
.bk-success .ph-check { width: 84px; height: 84px; }
.bk-code { font: 750 2rem/1 var(--display); letter-spacing: .12em; padding: 14px 22px; border-radius: var(--r-md); background: var(--accent-soft); }
@media (max-width: 960px) {
  .booking { grid-template-columns: 1fr; }
  .bk-summary { position: static; }
}

/* ================= CARRELLO ================= */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(24px, 4vw, 56px); padding-bottom: 48px; }
.co-sec { padding: 24px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.co-sec h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--brand); }
.pay-opt svg { width: 22px; height: 22px; color: var(--ink-2); }
.pay-logo { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; }
.pay-sat { background: #F94C43; }
/* gestionale: pagamenti */
.pm-list { display: grid; gap: 14px; }
.pm-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.pm-card > .row-between { gap: 12px; flex-wrap: wrap; }
.pm-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.pm-card h3 svg, .pm-card h3 .pay-logo { width: 24px; height: 24px; }
.pm-code { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-code .input { max-width: 180px; text-transform: uppercase; letter-spacing: .1em; }
.co-summary { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 14px; align-self: start; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { text-transform: uppercase; min-height: 46px; }
.coupon-list { display: flex; flex-wrap: wrap; gap: 6px; }
.coupon-list button { border: 1px dashed var(--line-2); background: none; padding: 4px 10px; border-radius: var(--r-sm); font: 600 .8125rem var(--text); letter-spacing: .04em; }
.coupon-list button:hover { border-color: var(--ink); }
.earn { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); font-size: .9375rem; }
.earn svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .co-summary { position: static; } }

/* ================= ORDINE ================= */
.order-head { display: grid; gap: 8px; padding: 28px; border-radius: var(--r-xl); background: var(--bg-2); margin-bottom: 24px; }
.order-state { font: 750 clamp(1.75rem, 1.2rem + 2vw, 2.5rem)/1.1 var(--display); letter-spacing: -.03em; }
.order-eta { font-size: 1.0625rem; color: var(--ink-2); }
.order-code { font: 700 1.25rem/1 var(--display); letter-spacing: .1em; }
.demo-note { font-size: .8125rem; color: var(--ink-3); }

/* ================= ACCOUNT ================= */
.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 48px; }
.acc-nav { position: static; align-self: start; display: grid; gap: 18px; }
.acc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 550; }
.acc-nav a:hover, .acc-nav a.on { background: var(--bg-2); color: var(--ink); }
.acc-nav a svg { width: 20px; height: 20px; }
.acc-user { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 1.125rem var(--display); flex: none; }
.acc-nav > *, .acc-main, .acc-nav, .booking-main, .venue-main, .checkout > * { min-width: 0; }
.acc-sec { padding-bottom: 48px; scroll-margin-top: calc(var(--header) + 20px); }
.acc-sec > h2 { font-size: 1.75rem; margin-bottom: 18px; }
.level-card { position: relative; overflow: hidden; display: grid; gap: 16px; padding: 28px; border-radius: var(--r-xl); background: var(--brand); color: #fff; }
.level-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: var(--accent); opacity: .9; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.level-card .progress { background: rgba(255,255,255,.2); }
.level-name { font: 750 2.25rem/1 var(--display); letter-spacing: -.03em; }
.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.wallet > div { padding: 20px; border-radius: var(--r-lg); background: var(--bg-2); display: grid; gap: 4px; }
.wallet b { font: 750 1.75rem/1.1 var(--display); letter-spacing: -.02em; }
.order-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.order-row .cover { width: 56px; border-radius: var(--r-sm); aspect-ratio: 1; }
.order-row .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; }
  .acc-nav { position: static; }
  .acc-nav ul { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .acc-nav a { white-space: nowrap; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 8px 14px; }
  .order-row { grid-template-columns: 48px 1fr; }
  .order-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
  #prenotazioni .order-row { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  #prenotazioni .order-row > :nth-child(2),
  #prenotazioni .msg > div { min-width: 0; overflow-wrap: anywhere; }
  #prenotazioni .order-row > .msgs,
  #prenotazioni .order-row > .msg-reply { grid-column: 1 / -1; margin: 0; }
  #prenotazioni .msg-reply .textarea { flex: 1 1 0; min-width: 0; }
}

/* ================= TAVOLO ================= */
.table-head { background: var(--ink); color: var(--bg); padding: 22px 0; }
.table-head .wrap { display: flex; align-items: center; gap: 16px; }
.table-num { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 750 1.75rem/1 var(--display); flex: none; }
.table-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 12px); z-index: 30; max-width: 560px; margin: 0 auto; }
.table-bar .btn { width: 100%; justify-content: space-between; box-shadow: var(--shadow-pop); }
.ben .btn { justify-self: start; }
.leaflet-container .leaflet-control-attribution { background: rgba(255,255,255,.9); color: #1A1717; }
.leaflet-container .leaflet-control-attribution a { color: #1A1717; text-decoration: underline; }

/* ================= GESTIONE ATTIVITÀ ================= */
.page-admin .site-footer { display: none; }
.admin-login { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto 48px; align-items: start; }
@media (max-width: 760px) { .admin-login { grid-template-columns: 1fr; } }
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding-bottom: 48px; }
.adm-side { position: sticky; top: calc(var(--header) + 16px); align-self: start; display: grid; gap: 16px; min-width: 0; }
.adm-venue { display: flex; gap: 12px; align-items: center; }
.adm-venue .cover { width: 56px; flex: none; aspect-ratio: 1; border-radius: var(--r-sm); }
.adm-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.adm-side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 550; }
.adm-side nav a:hover, .adm-side nav a[aria-current='page'] { background: var(--bg-2); color: var(--ink); }
.adm-side nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--accent); }
.adm-side nav svg { width: 19px; height: 19px; }
.adm-side .btn { justify-self: start; }
.adm-main { min-width: 0; }
.adm-head { display: grid; gap: 6px; margin-bottom: 20px; }
.adm-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.adm-h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-stats > div { display: grid; gap: 2px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-2); }
.adm-stats b { font: 750 1.75rem/1.1 var(--display); letter-spacing: -.02em; }
.adm-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.adm-row > .grow { min-width: 220px; }
.adm-cat { margin-bottom: 28px; }
.adm-cat-head { position: sticky; top: var(--header); z-index: 5; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.adm-cat-head h2 { font-size: 1.25rem; }
.adm-cat .icon-btn:disabled { opacity: .3; }
.adm-item { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-item.dim .grow { opacity: .55; }
.adm-item .switch input { width: 42px; height: 26px; border-radius: 13px; }
.adm-item .switch input::after { width: 20px; height: 20px; }
.adm-item .switch input:checked::after { transform: translateX(16px); }
.adm-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.adm-day { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin: 0; display: grid; gap: 10px; }
.adm-day legend { font-weight: 650; padding: 0 6px; }
.av-preview-controls { display: grid; grid-template-columns: minmax(0, 14rem) minmax(4.5rem, 6rem); gap: 12px; align-items: end; margin-bottom: 16px; }
.av-preview-controls .field { min-width: 0; }
.av-preview-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6rem), 1fr)); gap: 8px; }
.av-preview-time { display: grid; place-content: center; justify-items: center; gap: 3px; min-height: 48px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-weight: 650; font-variant-numeric: tabular-nums; }
.av-preview-time.is-unavailable { color: var(--ink-3); text-decoration: line-through; }
.av-preview-time small { padding: 1px 5px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: .625rem; }
.adm-slots { display: grid; gap: 8px; }
.qr-print { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.qr-card { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: #1A1717; display: grid; gap: 8px; justify-items: center; text-align: center; break-inside: avoid; }
.qr-card img { width: 130px; image-rendering: pixelated; }
.qr-card figcaption { display: grid; font-size: .875rem; }
.reply { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; display: grid; gap: 2px; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .adm-side { position: static; }
  .adm-side ul { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .adm-side nav a { white-space: nowrap; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 7px 13px; box-shadow: none !important; }
  .adm-side nav a[aria-current='page'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .adm-stats { grid-template-columns: 1fr 1fr; }
}
@media print {
  .site-header, .tabbar, .adm-side, .adm-main > .notice, .adm-head, .adm-main .row, .toasts { display: none !important; }
  .admin { display: block; padding: 0; }
  .qr-print { grid-template-columns: repeat(3, 1fr); }
  body { background: #fff; padding: 0; }
}
.adm-side > *, .admin > * { min-width: 0; }
.spotlight .tag-accent { color: #1A1717; background: var(--accent); }
.h-hero-grid > *, .loyalty > *, .biz-grid > *, .faq-grid > *, .cta-grid > *, .spotlight > *, .trust > * { min-width: 0; }
@media (max-width: 560px) { .loy-card { aspect-ratio: auto; min-height: 220px; gap: 16px; transform: rotate(-2deg); } }

.explore-head { transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s; will-change: transform; }
.explore-head.is-hidden { transform: translateY(calc(-100% - 2px)); box-shadow: none; }
@media (max-width: 760px) { .explore-head.is-hidden { transform: translateY(calc(-100% - var(--header) - 2px)); } }
@media (prefers-reduced-motion: reduce) { .explore-head { transition: none; } }

/* ================= GESTIONALE: prenotazioni, sala, foto e video ================= */
.adm-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px; }
.adm-head > div { display: grid; gap: 6px; min-width: 0; }
@media (max-width: 640px) { .adm-head { grid-template-columns: 1fr; } .adm-head > .btn { justify-self: start; } }
.adm-demo { border-top: 1px solid var(--line); padding-top: 14px; }
.adm-demo summary { cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--ink-2); }
.bk-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.bk-day { margin: 4px 0 14px; font-size: 1.0625rem; }
.bk-day b { text-transform: capitalize; }
.bk-group { margin-top: 22px; }
.bk-slot { font: 750 1.25rem/1.2 var(--display); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.bk-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.bk-card.st-cancellata, .bk-card.st-non-presentato { opacity: .62; }
.bk-card.st-completata { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.bk-time { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-sm); background: var(--bg-2); font-variant-numeric: tabular-nums; }
.bk-time b { font-size: 1.0625rem; }
.bk-time span { font-size: .75rem; color: var(--ink-3); }
.bk-side { display: grid; gap: 8px; justify-items: end; min-width: 0; }
.bk-table { min-height: 40px; padding-block: 6px; width: auto; max-width: 200px; }
@media (max-width: 760px) { .bk-card { grid-template-columns: 56px minmax(0, 1fr); } .bk-side { grid-column: 1 / -1; justify-items: start; } .bk-side .row { justify-content: flex-start !important; } }
dialog .bk-card { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 12px; }
dialog .bk-card > .grow { overflow-wrap: anywhere; }
dialog .bk-card .bk-name { max-width: 100%; overflow-wrap: anywhere; }
dialog .bk-side { grid-column: 1 / -1; justify-items: start; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
dialog .bk-assignment { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 10px; width: 100%; }
dialog .bk-assignment .field { min-width: 0; }
dialog .bk-assignment select { width: 100%; min-width: 0; }
dialog .bk-side .bk-table { width: 100%; max-width: 100%; }
dialog .bk-side > .row { max-width: 100%; justify-content: flex-start !important; }
.bk-load { margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; }
.bk-load summary { cursor: pointer; font-weight: 600; }
.bk-load-grid { display: grid; gap: 6px; margin-top: 12px; }
.bk-load-row, .bz-rows > div { display: grid; grid-template-columns: 52px minmax(0, 1fr) 74px; gap: 10px; align-items: center; }
.bk-load-row .bar, .bz-rows .bar, .media-progress .bar { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.bk-load-row .bar i, .bz-rows .bar i, .media-progress .bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
[data-theme='dark'] .bk-load-row .bar i, [data-theme='dark'] .media-progress .bar i { background: var(--brand-text); }
.tb-head, .tb-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px 44px; gap: 10px; align-items: center; }
.tb-head span:nth-child(3) { text-align: center; }
.media-drop { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-style: dashed; border-width: 2px; }
.media-drop > div:first-child { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; max-width: 60ch; }
.media-drop > div:first-child svg { grid-row: span 2; width: 28px; height: 28px; color: var(--brand-text); }
.media-drop.over { border-color: var(--brand-text); background: var(--brand-soft); }
.media-progress { flex-basis: 100%; display: grid; gap: 6px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.media-item { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.media-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 4px; align-items: center; padding: 4px 8px; border-radius: 99px; background: rgba(18, 16, 16, .78); color: #fff; font-size: .75rem; font-weight: 650; }
.media-badge svg { width: 14px; height: 14px; }
.media-badge.cover { left: auto; right: 8px; background: var(--accent); color: #1A1717; }
.media-item figcaption { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; }
.media-actions { display: grid; gap: 8px; margin-top: auto; }
.media-actions [data-cover] { white-space: normal; }
.media-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.media-tools .icon-btn { border: 1px solid var(--line-2); background: var(--bg-2); }
.media-tools .icon-btn:disabled { opacity: .45; }
.media-tools .icon-btn:hover:enabled { background: var(--bg-3); }
.media-delete { min-height: 42px; margin-inline-start: auto; padding-inline: 10px; }
.media-item figcaption .input { min-height: 40px; padding-block: 8px; font-size: .9375rem; }

/* ================= PAGINA DEL LOCALE: galleria ================= */
.venue-gallery { margin-top: 8px; margin-bottom: 28px; }
.gal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.gal-grid { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; border-radius: var(--r-lg); overflow: hidden; }
.gal-grid.n1 { grid-template-columns: 1fr; grid-template-rows: 340px; }
.gal-grid.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 300px; }
.gal-grid.n3 { grid-template-columns: 2fr 1fr; }
.gal-grid.n4 { grid-template-columns: 2fr 1fr 1fr; }
.gal-grid .gal-item:first-child { grid-row: span 2; }
.gal-grid.n2 .gal-item:first-child { grid-row: auto; }
.gal-grid.n4 .gal-item:nth-child(4) { grid-column: span 2; }
.gal-item { position: relative; padding: 0; border: 0; background: var(--bg-2); overflow: hidden; cursor: zoom-in; min-height: 0; }
.gal-item img, .gal-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gal-item:hover img { transform: scale(1.03); }
.gal-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(18, 16, 16, .7); color: #fff; }
.gal-play svg { width: 26px; height: 26px; fill: currentColor; }
.gal-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 16, 16, .55); color: #fff; font: 750 1.5rem/1 var(--display); }
@media (max-width: 760px) {
  .gal-grid, .gal-grid.n1, .gal-grid.n2, .gal-grid.n3, .gal-grid.n4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; margin-inline: calc(var(--gutter, 20px) * -1); padding-inline: var(--gutter, 20px); scrollbar-width: none; }
  .gal-item { flex: 0 0 78%; aspect-ratio: 4 / 3; border-radius: var(--r-md); scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { .gal-item img { transition: none; } }
dialog.lightbox { width: min(1100px, 96vw); max-width: none; }
dialog.lightbox .dlg-body { padding-top: 0; }
.lb { position: relative; display: grid; place-items: center; background: #000; border-radius: var(--r-md); overflow: hidden; min-height: 240px; }
.lb-stage img, .lb-stage video { display: block; max-width: 100%; max-height: 74vh; margin: auto; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .92); color: #1A1717; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-nav:disabled { opacity: 0; pointer-events: none; }
.lb-cap { margin-top: 10px; text-align: center; color: var(--ink-2); }

/* ================= PORTALE RISTORATORI ================= */
.bz-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 4vw, 40px); }
.bz-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.bz-title { font: 780 clamp(2.4rem, 1.4rem + 4vw, 4.4rem)/1 var(--display); letter-spacing: -.035em; max-width: 14ch; }
.bz-hero-copy .lead { margin-top: 20px; max-width: 52ch; }
.bz-hero-art { position: relative; }
.bz-hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; display: block; background: var(--bg-2); }
.bz-card { position: absolute; left: -28px; bottom: 28px; width: min(320px, 90%); padding: 16px 18px; display: grid; gap: 12px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-pop); }
.bz-rows { display: grid; gap: 8px; }
.bz-rows .bar.full i { background: var(--err); }
[data-theme='dark'] .bz-rows .bar i { background: var(--brand-text); }
[data-theme='dark'] .bz-rows .bar.full i { background: var(--err); }
.bz-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.bz-feat { padding: 22px; border-radius: var(--r-lg); background: var(--bg-2); display: grid; gap: 8px; align-content: start; }
.bz-feat h3 { font-size: 1.125rem; }
.bz-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; }
.bz-reg { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) {
  .bz-hero-grid, .bz-reg { grid-template-columns: 1fr; }
  .bz-hero-art img { aspect-ratio: 16 / 11; border-radius: 24px; }
  .bz-card { left: 12px; bottom: 12px; }
  .bz-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .bz-features { grid-template-columns: 1fr; } .bz-card { position: static; width: auto; margin-top: -40px; margin-inline: 12px; } }
.bz-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.bz-checks li { display: flex; gap: 10px; align-items: center; }
.bz-checks svg { color: var(--ok); flex: none; width: 20px; height: 20px; }
/* foto dell'ingresso in home: inquadrata sulle vetrine con l'insegna */
.h-hero-photo { aspect-ratio: 1 / 1; }
.h-hero-photo img { object-position: 50% 62%; }
@media (max-width: 900px) { .h-hero-photo { aspect-ratio: 4 / 3; } }
/* le schede sopra la foto non coprono l'insegna */
.h-float-order { left: auto; right: -24px; bottom: -26px; }
@media (max-width: 900px) { .h-hero-art { margin-bottom: 40px; } .h-float-order { right: 12px; left: auto; bottom: -34px; } }

/* ================= ORDINI DEL CLIENTE ================= */
.mo-list { display: grid; gap: 14px; }
.h-sec.my-orders .mo-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.mo-sec { margin: 26px 0 12px; }
.mo-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; display: grid; gap: 12px; align-content: start; }
.mo-card.live { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.mo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mo-head > div { display: grid; gap: 2px; min-width: 0; }
.mo-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9375rem; }
.mo-items li { display: flex; gap: 8px; align-items: baseline; }
.mo-qty { font-weight: 700; min-width: 28px; font-variant-numeric: tabular-nums; }
.mo-note { display: block; }
.mo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.h-venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 18px; align-content: start; }
.h-bands { display: grid; gap: 14px; }
.h-biz-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--brand); color: #fff; }
.h-biz-ic svg { width: 30px; height: 30px; }
.h-hero { padding-bottom: clamp(16px, 3vw, 32px); }

/* ================= GESTIONALE: ordini ================= */
.oc-list { display: grid; gap: 12px; }
.oc-group { margin-top: 8px; }
.oc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 14px 16px; display: grid; gap: 10px; }
.oc.new { border: 2px solid var(--accent); }
.oc.done { opacity: .75; }
.oc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.oc-code { font: 750 1.125rem/1 var(--display); letter-spacing: .04em; }
.oc-items { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; background: var(--bg-2); border-radius: var(--r-sm); font-size: 1rem; }
.oc-items li { display: flex; gap: 8px; align-items: baseline; }
.oc-note { display: block; font-size: .875rem; color: var(--err); font-weight: 600; }
.oc-info { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); }
.oc-info span { display: inline-flex; gap: 6px; align-items: center; }
.oc-info svg { width: 16px; height: 16px; flex: none; }
.oc-notes { color: var(--ink); font-weight: 600; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.oc-eta { min-height: 36px; padding-block: 4px; width: auto; }
.pay-opt.dim { opacity: .6; }

/* ================= CREDITO RESTAR (cliente) ================= */
.cr-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .cr-auth { grid-template-columns: 1fr; } }
.cr-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 760px) { .cr-top { grid-template-columns: 1fr; } }
.cr-balance { display: grid; gap: 4px; align-content: center; padding: 22px; border-radius: var(--r-lg); background: var(--brand); color: #fff; }
.cr-balance b { font: 780 2.5rem/1 var(--display); letter-spacing: -.02em; }
.cr-code { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); }
.cr-code img { width: 104px; height: 104px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.cr-code > div { display: grid; gap: 2px; }
.cr-code-txt { font: 780 1.5rem/1.1 var(--display); letter-spacing: .12em; }
.cr-bank { margin-top: 12px; display: grid; gap: 10px; border-color: var(--accent); }
.cr-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.cr-dl dt { color: var(--ink-3); }
.cr-dl dd { margin: 0; font-weight: 600; word-break: break-all; }

/* scelta del locale nella prenotazione */
.bk-find { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bk-find-q { flex: 1 1 260px; }
.bk-map { height: 300px; border-radius: var(--r-md); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.bk-results { display: grid; gap: 8px; margin-bottom: 4px; }
.bk-res { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.bk-res[aria-checked='true'] { border: 2px solid var(--brand); padding: 9px; }
.bk-res .cover { width: 72px; height: 54px; flex: none; border-radius: var(--r-sm); overflow: hidden; }
.bk-res .grow { display: grid; gap: 1px; min-width: 0; }
.bk-res-ok { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.bk-res-ok svg { width: 16px; height: 16px; }
.nav a { white-space: nowrap; }
@media (max-width: 1000px) { .nav a { padding: 8px 10px; } }
.booking .bk-venue-card { display: none; }

/* gestionale: ordini ai tavoli */
.room-settings-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.room-settings-bar .field { min-width: 0; max-width: 100%; }
.room-settings-bar .select, .room-settings-bar .btn { min-height: 50px; }
.room-filter { gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tq-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 14px 0 18px; }
.tq-toolbar > .room-filter { margin: 0; min-width: 0; }
.adm-stats.tq-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
@media (max-width: 560px) {
  .tq-stats > div { padding: 10px; }
  .tq-stats b { font-size: 1.15rem; overflow-wrap: anywhere; }
  .adm-stats.tq-stats { gap: 6px; }
}
.tq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.tq { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 14px 16px; display: grid; gap: 10px; }
.table-detail::backdrop { background: rgb(0 0 0 / 24%); backdrop-filter: none; }
.table-detail .dlg-head h2 { font-size: 1.3rem; }
.table-detail .dlg-body { display: grid; align-content: start; gap: 12px; }
.table-detail .tq-head b { display: none; }
.table-detail .tq-pending .tq-head b { display: inline; }
.table-detail .tq-grid { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .sheet.table-detail { max-height: 70dvh; }
}
.tq-live { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tq-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tq-head b { font-size: 1.1rem; }
.tq-order { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.tq-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: .9rem; }
.tq-order .tiny svg { width: 14px; height: 14px; vertical-align: -2px; }
.tq-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* gestionale: vista sala delle prenotazioni */
.pl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.pl { display: grid; grid-template-rows: 36px; grid-auto-rows: 56px; min-width: max-content; position: relative; }
.pl > * { border-bottom: 1px solid var(--line); }
.pl-corner, .pl-time { grid-row: 1; height: 36px; display: flex; align-items: center; font-size: .78rem; font-weight: 600; color: var(--ink-2); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.pl-corner { grid-column: 1; padding-left: 12px; left: 0; z-index: 3; }
.pl-time { padding-left: 6px; border-left: 1px solid var(--line); }
.pl-time.pl-now { color: var(--brand); }
.pl-table { grid-column: 1; display: grid; align-content: center; padding: 0 12px; position: sticky; left: 0; background: var(--surface); z-index: 1; border-right: 1px solid var(--line); }
.pl-free { border: 0; border-left: 1px dashed var(--line); background: transparent; color: transparent; font-size: 1.2rem; cursor: pointer; }
.pl-free:hover, .pl-free:focus-visible { background: var(--surface-2, rgba(127,127,127,.08)); color: var(--ink-2); }
.pl-bk { margin: 5px 3px; border-radius: 10px; padding: 6px 10px; background: color-mix(in srgb, var(--brand) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); display: grid; align-content: center; overflow: hidden; min-width: 0; z-index: 1; }
.pl-bk b, .pl-bk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .8rem; line-height: 1.25; }
.pl-bk span { color: var(--ink-2); font-size: .72rem; }
.pl-manual { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pl-in { opacity: .6; }
.pl-hit { outline: 2px solid var(--ink); }
/* portale ristoratori: anteprima della sala */
.bz-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .bz-plan { grid-template-columns: minmax(0, 1fr); } }
.bz-plan > *, .bz-plan-art { min-width: 0; }
.bz-plan-art .pl { grid-auto-rows: 50px; }

/* home senza foto: titolo e ricerca a tutta larghezza, locali in schede di solo testo */
.h-hero-solo { grid-template-columns: 1fr; }
.h-hero-solo .h-hero-copy { max-width: 820px; padding-top: 0; }
.venue-card-text { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); gap: 10px; }
.venue-card-text .row-between { align-items: flex-start; gap: 12px; }
.venue-card-text .fav { flex: none; width: 36px; height: 36px; background: var(--bg-2); color: var(--ink); box-shadow: none; }
.venue-card-text .vc-status { font-weight: 600; color: var(--ink-2); }
.venue-card-text .vc-status.open { color: var(--ok); }
.venue-card-text .vc-status.soon { color: var(--brand-text); }
.venue-card-text .vc-go { justify-self: start; margin-top: 4px; }

/* ristoratori: riepilogo dei servizi al posto della foto in alto */
.bz-services { padding: clamp(20px, 3vw, 28px); border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); }
.bz-services-title { font-size: 1.25rem; letter-spacing: -.01em; }
.bz-services-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.bz-services-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.bz-services-list .bz-ic { width: 40px; height: 40px; border-radius: 11px; }
.bz-services-list .bz-ic svg { width: 20px; height: 20px; }
.bz-services-list strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.bz-services-list .muted { display: block; font-size: .9rem; line-height: 1.45; }
.bz-soon { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.bz-hero-grid { align-items: start; }

/* ristoratori: una sezione grande per ogni funzione, con un esempio visivo */
.bz-hero-solo .bz-title, .bz-hero-solo .lead { max-width: 820px; }
.bz-hero-solo .lead { margin-top: 20px; }
.bz-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.bz-jump .chip svg { width: 16px; height: 16px; }
.bz-alt { background: var(--bg-2); }
.bz-sec .bz-ic { margin-bottom: 16px; }
.bz-sec .bz-checks { gap: 12px; }
.bz-sec .bz-checks li { align-items: flex-start; font-size: 1.0625rem; }
.bz-sec .bz-checks svg { margin-top: 3px; }
.bz-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.bz-flip > figure { order: -1; }
@media (max-width: 860px) { .bz-flip { grid-template-columns: 1fr; } .bz-flip > figure { order: 0; } }

.mk { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px; display: grid; gap: 12px; box-shadow: var(--shadow-pop); }
.mk .btn { pointer-events: none; }
.mk p { margin: 0; }
.mk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mk-lines { display: grid; gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); }
.mk-lines div { display: grid; }
.mk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-steps span { font-size: .78rem; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-3); }
.mk-steps span.on { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.mk-tables { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-t { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; display: grid; gap: 2px; font-size: .85rem; min-height: 96px; align-content: start; }
.mk-t b { font-size: .95rem; }
.mk-t.busy { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.mk-t.wait { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.mk-t-sum { margin-top: 8px; font-weight: 650; }
.mk-kitchen { grid-template-columns: 1fr 1fr; background: #1A1717; color: #fff; border-color: transparent; }
.mk-k { background: rgba(255,255,255,.08); border-radius: var(--r-md); padding: 14px; display: grid; gap: 6px; font-size: 1.05rem; align-content: start; }
.mk-k .muted { color: rgba(255,255,255,.65); font-size: .85rem; }
.mk-k .mk-row span { color: rgba(255,255,255,.7); font-size: .85rem; }
.mk-k .btn { margin-top: 6px; }
.mk-roles { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.mk-roles .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.mk-roles .chip.on { background: #fff; color: #1A1717; border-color: #fff; }
.mk-opt { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.mk-opt div { display: grid; }
.mk-opt .muted { font-size: .85rem; }
.mk-opt.on { border-color: var(--ink); }
.mk-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; box-sizing: border-box; }
.mk-opt.on .mk-radio { border: 6px solid var(--ink); }
.mk-dish { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.mk-dish > div { display: grid; gap: 2px; }
.mk-dish .muted { font-size: .85rem; }
.mk-allerg { font-size: .75rem; color: var(--ink-3); }
.mk-sw { width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; flex: none; }
.mk-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.mk-sw.on { background: var(--ok); }
.mk-sw.on::after { transform: translateX(18px); }
.mk-ph { border-radius: var(--r-md); background: var(--bg-2); border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--ink-3); font-size: .85rem; min-height: 64px; }
.mk-ph-big { min-height: 150px; }
.mk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-review { display: grid; gap: 8px; }
.mk-review .tag { justify-self: start; }
.mk-stars { color: var(--accent); letter-spacing: 2px; }
.mk-reply { border-left: 3px solid var(--line-2); padding-left: 12px; font-size: .9rem; display: grid; gap: 2px; }
.mk-coupon { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 2px dashed var(--accent); background: var(--accent-soft); flex-wrap: wrap; }
@media (max-width: 560px) { .mk-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-kitchen { grid-template-columns: 1fr; } }

/* ---------- calendario ---------- */
.cal { display: grid; gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-title { font: 700 1.0625rem/1.2 var(--display); text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-nav:disabled { opacity: .35; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; padding: 4px 0; }
.cal-day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 12px; background: var(--bg-2); color: var(--ink); font-weight: 650; font-size: .95rem; display: grid; place-items: center; }
.cal-day:hover:not(:disabled) { background: var(--bg-3); }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--line-2); }
.cal-day[aria-pressed='true'] { background: var(--ink); color: var(--bg); box-shadow: none; }
.cal-day:disabled { background: transparent; color: var(--ink-3); opacity: .45; text-decoration: line-through; text-decoration-thickness: 1px; }
.cal-box { max-width: 420px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cal-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.cal-trigger { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; color: var(--ink); }
.cal-trigger svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.cal-trigger.input { width: 100%; }
.finder-field .cal-trigger { border: 0; background: transparent; padding: 2px 0; font-size: 1rem; width: 100%; }
.finder-field .cal-trigger svg { display: none; }
.cal-pop { position: fixed; z-index: 200; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 14px; }
.cal-pop.is-sheet { left: 0; right: 0; bottom: 0; top: auto; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }

/* ---------- specialità ---------- */
.vc-spec { display: flex; gap: 6px; align-items: flex-start; font-size: .9rem; font-weight: 600; color: var(--brand-text); line-height: 1.35; margin: 0; }
.vc-spec svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.venue-spec { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.venue-spec-t { font-size: .8125rem; font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.tag-spec { background: var(--brand-soft); color: var(--brand-text); font-weight: 650; }

/* ---------- da telefono ---------- */
@media (max-width: 760px) {
  /* Esplora: la testata scorre via con la pagina; i filtri si aprono con il pulsante */
  .explore-head, .explore-head.is-hidden { position: static; transform: none; box-shadow: none; }
  .explore-filters-btn { justify-self: start; }
  .explore-filters { display: none; }
  .explore-head.filters-open .explore-filters { display: grid; gap: 12px; }
  /* Home: le quattro schede della ricerca stanno tutte in una riga */
  .finder-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .finder-tabs button { flex-direction: column; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; border-radius: 14px; font-size: .78rem; }
  /* riquadri "ReStar sul telefono" e "Hai un locale?": icona e testo sopra, pulsante sotto a tutta larghezza */
  .appband { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
  .appband .appband-icon { width: 56px; height: 56px; }
  .appband > .btn, .appband > a.btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
@media (min-width: 761px) { .explore-filters { display: grid; gap: 12px; } }

/* ---------- accesso staff ---------- */
.page-staff main .wrap { display: grid; justify-items: center; }
.stf { width: 100%; max-width: 480px; display: grid; gap: 16px; margin: 0 auto 48px; }
.stf-title { font-size: 2rem; }
.stf-head { display: flex; gap: 14px; align-items: center; }
.stf-cover { position: relative; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex: none; }
.stf-cover > * { width: 100%; height: 100%; object-fit: cover; }
.stf-code { font-size: 1.6rem; letter-spacing: .18em; text-align: center; text-transform: uppercase; font-weight: 700; }
.stf-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stf-name { min-height: 64px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.stf-name:hover, .stf-name:focus-visible { border-color: var(--brand); }
.stf-back { justify-self: start; display: inline-flex; gap: 6px; align-items: center; }
.stf-back svg { width: 16px; height: 16px; }
.stf-dots { display: flex; gap: 16px; justify-content: center; margin: 4px 0; }
.stf-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); }
.stf-dots span.on { background: var(--ink); }
.stf-dots.shake { animation: stf-shake .35s; }
@keyframes stf-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.stf-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; width: 100%; margin: 0 auto; }
.stf-key { aspect-ratio: 1.4; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.8rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.stf-key svg { width: 26px; height: 26px; }
.stf-key:active { background: var(--brand); color: #fff; border-color: var(--brand); }
.stf-key:disabled { opacity: .5; }
.stf .err-msg { text-align: center; }

/* ---------- gestionale: staff, cucina ---------- */
.staff-who { font-size: .9rem; white-space: nowrap; }
@media (max-width: 760px) { .staff-bar .staff-who { display: none; } }
.adm-limited [data-add-cat], .adm-limited [data-cat-up], .adm-limited [data-cat-down], .adm-limited [data-cat-rename], .adm-limited [data-cat-del], .adm-limited [data-add-item],
.adm-limited [data-it-up], .adm-limited [data-it-down], .adm-limited [data-it-edit], .adm-limited [data-it-del] { display: none !important; }
.log-line { margin-top: 4px; }
.oc-ready { color: var(--ok, #1E7A46); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.oc-ready svg { width: 16px; height: 16px; }
.tq-pending { margin-bottom: 24px; }
.tq-pending .tq { border-color: var(--brand); }
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.kds-card { border: 2px solid var(--line-2); border-radius: 18px; padding: 16px; background: var(--surface); display: grid; gap: 10px; }
.kds-card.is-late { border-color: var(--brand); }
.kds-card.is-ready { opacity: .6; }
.kds-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kds-head b { font-size: 1.5rem; }
.kds-min { font-weight: 700; font-size: 1.1rem; color: var(--ink-2); }
.is-late .kds-min { color: var(--brand); }
.kds-when { display: flex; gap: 6px; align-items: center; font-weight: 700; }
.kds-when svg, .kds-onote svg { width: 18px; height: 18px; flex: none; }
.kds-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1.25rem; }
.kds-items li { display: flex; gap: 10px; align-items: baseline; }
.kds-qty { font-size: 1.4rem; min-width: 2.2ch; }
.kds-items i { font-style: normal; font-weight: 700; }
.kds-note { display: block; font-size: 1rem; font-weight: 700; color: var(--brand-text, var(--brand)); }
.kds-onote { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); }
.kds-btn { min-height: 64px; font-size: 1.3rem; }
.kds-done { text-align: center; font-weight: 700; color: var(--ink-2); }
.kds-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; color: var(--ink-3); text-align: center; }
.kds-empty svg { width: 64px; height: 64px; }
:fullscreen .site-header, :fullscreen .adm-side { display: none; }
:fullscreen .admin { grid-template-columns: 1fr; }
.stf-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .stf-grid { grid-template-columns: 1fr; } }
.stq { display: grid; gap: 12px; justify-items: start; }
.stf-bigcode { font-size: 2.2rem; font-weight: 800; letter-spacing: .12em; }
.stf-qr img { width: 180px; }
.stf-list { margin-top: 12px; }
.stf-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stf-row.dim .grow { opacity: .6; }
.stf-role { width: auto; min-width: 150px; }
.stf-roles { margin-top: 16px; display: grid; gap: 4px; color: var(--ink-2); }
.stf-pin { font-size: 3rem; font-weight: 800; letter-spacing: .3em; text-align: center; margin: 12px 0; }
@media print {
  body.print-stq .adm-main > *:not([data-sec]), body.print-stq [data-sec] > *:not(.stf-grid), body.print-stq .stf-grid > *:not(.stq), body.print-stq .stq > *:not(.stf-qr) { display: none !important; }
  body.print-stq .stf-grid { display: block; }
  body.print-stq .stf-qr { border: 0; }
  body.print-stq .stf-qr img { width: 8cm; }
}
.stf-row .grow { flex: 1 1 180px; }
.tq-open { justify-self: start; margin-top: 4px; }

/* ---------- account cliente ---------- */
.acct-seg { display: flex; width: 100%; }
.acct-seg button { flex: 1; justify-content: center; }
.acc-who { margin-top: 10px; width: 100%; }
[data-acc-user] { flex-wrap: wrap; }
[data-acc-user] .btn { margin-top: 8px; }
button.link { background: none; border: 0; padding: 0; color: var(--brand-text); text-decoration: underline; cursor: pointer; font: inherit; }

/* slogan nel piè di pagina */
.foot-slogan { margin-top: 14px; font: 750 1.375rem/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }

/* Preferiti in cima (Prenota e Ordina) */
.fav-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--brand-text); font-size: .75rem; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.fav-tag svg { width: 12px; height: 12px; fill: currentColor; }
.or-find { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 26px; }
.or-find .search { flex: 1 1 260px; }
.or-h { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.or-h svg { width: 18px; height: 18px; color: var(--brand-text); }
.or-h ~ .or-h { margin-top: 30px; }
.or-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 760px) { .or-find .seg { width: 100%; } .or-find .seg button { flex: 1; justify-content: center; padding: 0 10px; } }

/* social del locale */
.so-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.so-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.so-link:hover, .so-link:focus-visible { border-color: var(--brand); }
.so-link svg { width: 18px; height: 18px; }

/* riassunto disponibilità */
.av-sum { margin-bottom: 18px; display: grid; gap: 10px; }
.av-sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.av-sum li { display: flex; gap: 10px; align-items: flex-start; }
.av-sum li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok); }

/* messaggi del locale al cliente */
.msgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 8px 0; }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); }
.msg > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand-text); }
.msg > div { min-width: 0; overflow-wrap: anywhere; }
.msg p { margin-top: 2px; white-space: pre-line; }

/* ===== gestionale: tempo reale e gestione ===== */
.adm-side nav li.adm-nav-h { margin: 14px 0 4px; padding: 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.live-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 22px; }
.live-tabs a { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 10px 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.live-tabs a svg { width: 24px; height: 24px; flex: none; }
.live-tabs a:hover, .live-tabs a:focus-visible { border-color: var(--brand); }
.live-tabs a[aria-current='page'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.live-n { position: absolute; top: -8px; right: -6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: grid; place-items: center; background: var(--accent, #F5B700); color: #1A1717; font-size: .85rem; font-weight: 800; box-shadow: 0 0 0 3px var(--bg); }
.live-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.live-tile { display: grid; gap: 2px; align-content: start; min-height: 120px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.live-tile b { font-size: 2.6rem; line-height: 1; font-weight: 800; }
.live-tile span { font-weight: 700; font-size: 1.05rem; }
.live-tile small { color: var(--ink-2); font-size: .85rem; }
.live-tile:hover, .live-tile:focus-visible { border-color: var(--brand); }
.live-tile.hot { background: var(--brand); border-color: var(--brand); color: #fff; animation: livepulse 2s ease-in-out infinite; }
.live-tile.hot small { color: rgba(255,255,255,.85); }
@keyframes livepulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .live-tile.hot { animation: none; } }
.live-h { display: flex; align-items: center; gap: 8px; margin: 30px 0 12px; }
.live-h svg, .live-h h2 svg { width: 22px; height: 22px; vertical-align: -4px; margin-right: 6px; }
.live-empty { padding: 14px 0; }
/* pulsanti grandi dove si lavora in tempo reale */
.adm-main.is-live .btn-sm { min-height: 48px; padding: 0 18px; font-size: 1rem; border-radius: 14px; }
.adm-main.is-live .btn-sm svg { width: 20px; height: 20px; }
.adm-main.is-live .select.oc-eta, .adm-main.is-live .select.bk-table { min-height: 48px; font-size: 1rem; }
.adm-main.is-live .oc-foot, .adm-main.is-live .bk-side { gap: 10px; }
/* gestione */
.mg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mg-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.mg-tabs button svg { width: 20px; height: 20px; }
.mg-tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mg-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.mg-bar .select { width: auto; min-height: 48px; }
.mg-search { flex: 1 1 240px; }
.mg-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.mg-main { flex: 1 1 320px; min-width: 0; display: grid; gap: 4px; }
.mg-main svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.mg-when { font-size: 1.05rem; }
.mg-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-acts .btn, .mg-kit .btn { min-height: 48px; border-radius: 14px; }
.mg-del { color: var(--err, #C8102E); }
.mg-kit { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 12px; }
.mg-kit ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mg-kit li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); font-size: 1.05rem; }
.mg-kit li.is-done .grow { text-decoration: line-through; opacity: .55; }
.mg-tpl { gap: 8px; }
.mg-tpl .chip { text-align: left; white-space: normal; height: auto; padding: 8px 12px; cursor: pointer; }
.eo-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.eo-row .grow { display: grid; gap: 2px; }
.eo-row.is-out .grow { text-decoration: line-through; opacity: .5; }
/* cucina: piatto già fatto */
.kds-items li[data-kitem] { cursor: pointer; border-radius: 10px; }
.kds-items li[data-kitem]:hover { background: var(--bg-2); }
.kds-items li.is-done > span, .kds-items li.is-done > b { text-decoration: line-through; opacity: .5; }
@media (max-width: 760px) { .live-tabs { grid-template-columns: repeat(2, 1fr); } .live-tile { min-height: 100px; } .live-tile b { font-size: 2.2rem; } .mg-acts { width: 100%; } .mg-acts .btn { flex: 1; justify-content: center; } }
@media (max-width: 760px) { .live-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .live-tile { padding: 14px; } .live-tile span { font-size: .95rem; } .adm-side nav li.adm-nav-h { margin: 0; padding: 0 6px; align-self: center; } }

/* zona di consegna */
.zone-msg { margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); min-height: 1.2em; }
.zone-msg.is-ok { color: var(--ok); }
.zone-msg.is-out { color: var(--err, #C8102E); }
.zone-seg { flex-wrap: wrap; }
.zone-opt { display: inline-flex; }
.zone-opt input { position: absolute; opacity: 0; pointer-events: none; }
.zone-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 600; cursor: pointer; }
.zone-opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(26,23,23,.12); }
.zone-opt input:focus-visible + span { outline: 2px solid var(--brand); }
.zone-map { height: 300px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.field[hidden], .zone-map[hidden] { display: none !important; }

/* conversazione cliente-locale */
.msg.msg-c { background: color-mix(in srgb, var(--brand) 10%, var(--bg-2)); margin-left: 24px; }
.msg.msg-c > svg { color: var(--ink-2); }
.msg-reply { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.msg-reply .textarea { flex: 1; min-height: 48px; resize: vertical; }
.msg-reply .btn { flex: none; min-height: 48px; }
.mg-thread { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.inbox-row { border-color: var(--accent, #F5B700); }

/* zona disegnata */
.zone-map-wrap { position: relative; }
.zone-map-wrap .zone-map { height: 340px; }
.zone-full-btn { position: absolute; right: 10px; bottom: 10px; z-index: 500; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.zone-map-wrap.is-full { position: fixed; inset: 0; z-index: 9000; background: var(--bg); padding: 0; margin: 0; }
.zone-map-wrap.is-full .zone-map { height: 100%; border-radius: 0; }
.zone-map-wrap.is-full .zone-full-btn { top: 12px; bottom: auto; right: 12px; }
body.zone-noscroll { overflow: hidden; }
.zone-pt { background: #fff; border: 3px solid #C8102E; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: grab; }

/* calendario prenotazioni */
.bkcal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bkcal-title { font-size: 1.05rem; }
.bkcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bkcal-w { text-align: center; font-size: .75rem; color: var(--ink-2); padding: 4px 0; }
.bkcal-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 72px; padding: 6px 2px; border-radius: var(--r-md, 12px); border: 1px solid var(--line); background: var(--bg-2); color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.bkcal-day:hover { border-color: var(--brand); }
.bkcal-day.is-closed { opacity: .45; }
.bkcal-day.is-today { border-color: var(--brand); }
.bkcal-day.is-sel { background: color-mix(in srgb, var(--brand) 18%, var(--bg-2)); border-color: var(--brand); }
.bkcal-n { font-weight: 700; }
.bkcal-b { background: var(--brand); color: #fff; border-radius: 999px; min-width: 22px; padding: 0 6px; font-size: .78rem; font-weight: 700; line-height: 20px; text-align: center; }
.bkcal-s { font-size: .68rem; color: var(--ink-2); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 480px) { .bkcal-h { display: none; } .bkcal-day { min-height: 58px; } .bkcal-grid { gap: 4px; } }

/* Gestione: sezioni una sotto l'altra */
.mg-sec { margin-top: 26px; }
.mg-sec .adm-h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mg-sec .adm-h2 svg { width: 20px; height: 20px; color: var(--ink-2); }

.mg-wrap { margin-top: 34px; padding-top: 6px; border-top: 1px solid var(--line); }

.adm-nav-h { white-space: nowrap; }

[data-sa] .panel, [data-sa] .panel .link { overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .live-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-tabs a { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; }
  .adm-cat-head, .adm-cat-head > .row, .adm-item > .row { flex-wrap: wrap; }
  .adm-item > .grow { min-width: 0; overflow-wrap: anywhere; }
}


/* Barre del gestionale e modulo ristoratori sugli schermi stretti. */
@media (max-width: 860px) {
  .staff-mode .site-header .wrap { gap: 8px; }
  .staff-mode .staff-bar { gap: 6px; }
  .staff-mode .header-actions { flex: 0 0 auto; margin-left: 0; }
  .staff-mode .staff-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bz-reg { grid-template-columns: minmax(0, 1fr); }
  .bz-reg > *, .bz-reg input, .bz-reg select { min-width: 0; }
}
@media (max-width: 560px) {
  .staff-mode .site-header .logo .logo-word { display: none; }
  .staff-mode .staff-bar .grow { display: none; }
  .staff-mode .staff-bar .stf-switch { margin-left: auto; min-height: 44px; }
  .staff-mode .header-actions [data-theme-toggle] { width: 44px; height: 44px; }
}
@media (max-width: 400px) {
  .staff-mode .staff-bar .stf-switch { font-size: 0; gap: 0; width: 44px; padding: 0; }
  .staff-mode .staff-bar .stf-switch svg { width: 20px; height: 20px; }
  .bz-reg .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.staff-mode .header-actions [data-customer-chats] {display:none}
body:has(.chat-page) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
body:has(.chat-page) > .site-header { flex-shrink: 0; }
main:has(> .chat-page) { flex: 1; }
body:has(.chat-page) > .site-footer { margin-top: 0; }
.chat-page {
  max-width: 760px;
  padding-block: clamp(32px, 5vw, 64px);
}
.chat-page > .page-title { margin-bottom: 20px; }
main:has(.chat-page [data-chat-login]) {
  display: grid;
  place-items: center;
  padding-block: clamp(32px, 5vw, 72px);
}
.chat-page:has([data-chat-login]) {
  max-width: 560px;
  padding: clamp(28px, 4.5vw, 54px) clamp(18px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}
.chat-page:has([data-chat-login]) .page-title { margin-bottom: clamp(18px, 2.4vw, 28px); }
.chat-page [data-chat-login] { max-width: 100%; white-space: normal; }
.chat-list,.chat-thread {display:grid;gap:12px;margin-top:16px}
.chat-row {display:grid;gap:6px;text-decoration:none;color:inherit;overflow-wrap:anywhere}
.chat-row small {display:block;color:var(--ink-2)}
.chat-thread .msg {overflow-wrap:anywhere}
.chat-thread .msg > div {min-width:0}
.chat-thread .btn {justify-self:end}

/* ---------- home: hero con foto e logo animato (come la pagina del locale) ---------- */
.h-hero-bold .h-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 64px); align-items: center; }
.h-hero-bold .h-hero-copy, .h-hero-bold .finder, .h-hero-bold .finder-row, .h-hero-bold .finder-field { min-width: 0; }
.h-hero-bold h1 { font-size: clamp(2.8rem, 1rem + 6vw, 5.6rem); line-height: .95; letter-spacing: -.05em; font-weight: 800; }
.h-hero-bold .h-claim { margin: 18px 0 0; max-width: 34ch; font: 650 clamp(1.15rem, 1rem + .7vw, 1.5rem)/1.3 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.h-hero-bold .h-lead { margin-top: 10px; }
.h-hero-bold .h-hero-photo { display: block; aspect-ratio: 4 / 4.4; border-radius: 32px; text-decoration: none; color: #fff; }
.h-hero-bold .h-hero-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-hero-tag { position: absolute; left: 14px; bottom: 14px; display: grid; padding: 8px 14px; border-radius: 16px; background: rgba(18,16,16,.72); backdrop-filter: blur(6px); font-size: .8125rem; line-height: 1.25; }
.h-hero-tag b { font-size: .9375rem; }
.h-mascot { position: absolute; right: -10px; top: -16px; width: clamp(92px, 12vw, 150px); aspect-ratio: 453 / 480; transform-origin: 50% 90%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); pointer-events: none; }
.h-mascot img { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .h-mascot { animation: mascot-in .8s cubic-bezier(.2,.9,.3,1.4) both, mascot-float 3.6s 1s ease-in-out infinite; }
  @keyframes mascot-in { from { opacity: 0; transform: translateY(-40px) rotate(-18deg) scale(.6); } }
  @keyframes mascot-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 40% { transform: translateY(-10px) rotate(4deg); } 70% { transform: translateY(-4px) rotate(-1deg); } }
}
@media (max-width: 960px) {
  .h-hero-bold .h-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .h-hero-bold .h-hero-photo { aspect-ratio: 16 / 10; border-radius: 24px; }
  .h-mascot { right: 6px; top: -12px; width: clamp(80px, 22vw, 110px); }
}.h-mascot .on-dark { display: none; }
:root[data-theme='dark'] .h-mascot .on-light { display: none; }
:root[data-theme='dark'] .h-mascot .on-dark { display: block; }.h-hero-bold { position: relative; overflow: hidden; isolation: isolate; }
.h-hero-bold .h-hero-art { position: relative; }
.h-mascot { translate: var(--gx, 0px) var(--gy, 0px); pointer-events: none; }
.h-mascot.game { animation-play-state: paused !important; }
.logo-game { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; display: none; }
.h-hint { margin: 10px 0 0; font-size: .875rem; color: var(--ink-3); max-width: 44ch; }
@media (max-width: 960px) { .h-mascot { width: clamp(104px, 30vw, 150px); } }.h-hero-bold .h-hero-art { display: grid; place-items: center; min-height: clamp(260px, 36vw, 480px); }
.h-hero-bold .h-mascot { position: relative; right: auto; top: auto; width: clamp(240px, 36vw, 460px); }
@media (max-width: 960px) { .h-hero-bold .h-hero-art { min-height: 0; } .h-hero-bold .h-mascot { width: clamp(180px, 56vw, 300px); } }
/* ---------- home: rotazione dei piatti ---------- */
.h-food { position: relative; width: clamp(240px, 34vw, 430px); aspect-ratio: 1; }
.h-food .food { position: absolute; inset: 4% 4% 10%; opacity: 0; will-change: transform, opacity, filter; animation: food-cycle 18s cubic-bezier(.3,.7,.3,1) infinite both; }
.h-food .food img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); animation: food-float 4.5s ease-in-out infinite; transform-origin: 50% 80%; }
.h-food .f-burger { animation-delay: 3s; }
.h-food .f-sushi { animation-delay: 6s; }
.h-food .f-pasta { animation-delay: 9s; }
.h-food .f-taco { animation-delay: 12s; }
.h-food .f-jiaozi { animation-delay: 15s; }
.h-food-shadow { position: absolute; left: 18%; right: 18%; bottom: 6%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); animation: food-shadow 4.5s ease-in-out infinite; }
.h-food-poof { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,190,60,.55), rgba(255,190,60,0)); opacity: 0; animation: food-poof 3s ease-out infinite; animation-delay: .3s; pointer-events: none; }
.h-food-steam { position: absolute; left: 25%; width: 50%; top: -4%; fill: none; stroke: var(--ink-3, #999); stroke-width: 4; stroke-linecap: round; opacity: .55; }
.h-food-steam path { animation: food-steam 2.4s ease-in-out infinite; }
.h-food-steam path:nth-child(2) { animation-delay: .8s; }
.h-food-steam path:nth-child(3) { animation-delay: 1.6s; }
@keyframes food-cycle {
  0%   { opacity: 0; transform: translateY(26px) scale(.86); filter: blur(6px); }
  4%   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  14%  { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  18%  { opacity: 0; transform: translateY(-22px) scale(.92); filter: blur(6px); }
  100% { opacity: 0; transform: translateY(-22px) scale(.92); filter: blur(6px); }
}
@keyframes food-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes food-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.88); opacity: .65; } }
@keyframes food-poof { 0%, 80% { opacity: 0; transform: scale(.5) rotate(0); } 86% { opacity: .9; } 100% { opacity: 0; transform: scale(1.25) rotate(40deg); } }
@keyframes food-steam { 0% { opacity: 0; transform: translateY(14px) scaleY(.8); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px) scaleY(1.1); } }
@media (max-width: 960px) { .h-food { width: clamp(190px, 58vw, 300px); } }
@media (prefers-reduced-motion: reduce) {
  .h-food .food, .h-food .food img, .h-food-shadow, .h-food-poof, .h-food-steam path { animation: none; }
  .h-food .f-pizza { opacity: 1; }
  .h-food-steam { display: none; }
}
/* ---------- piatti caldi: bagliore (il sushi, freddo, non lo ha) ---------- */
.h-food .food.hot::before { content: ""; position: absolute; inset: 0 -4% 2%; border-radius: 50%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255,150,50,.62), rgba(255,110,30,.26) 62%, rgba(255,110,30,0)); animation: heat-glow 4.5s ease-in-out infinite; }
@keyframes heat-glow { 0%, 100% { opacity: .65; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .h-food .food.hot::before { animation: none; } }
/* ---------- pagine legali ---------- */
.foot-legal { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 760px; }
.legal .lead { margin-top: 12px; }
.legal-toc { margin: 24px 0 8px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--bg-2); }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal section { margin-top: 36px; scroll-margin-top: calc(var(--header) + 16px); }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -.02em; margin-bottom: 10px; }
.legal p, .legal li { line-height: 1.65; max-width: 68ch; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal-end { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
/* gestionale prenotazioni stile resOS: walk-in, stati di sala, pianta, schede clienti */
.adm-head > .bk-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-self: end; }
@media (max-width: 640px) { .adm-head > .bk-actions { justify-content: flex-start; } .bk-actions [data-print-day] span { display: none; } }
.bk-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bk-stats .stat-live { background: color-mix(in srgb, var(--ok) 12%, var(--bg-2)); }
.bk-views { flex-wrap: wrap; }
.tag-warn { background: var(--err-soft); color: var(--err); }
.tag-g { background: var(--bg-2); color: var(--ink-2); }
.tag-vip { background: var(--accent); color: #1A1717; }
.tag-abituale { background: var(--ok-soft); color: var(--ok); }
.tag-allergie, .tag-attenzione { background: var(--err-soft); color: var(--err); }
.bk-name { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.bk-name:hover { text-decoration-color: var(--ink); }
.bk-gnote { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; color: var(--ink-2); }
.bk-gnote svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.bk-card.st-late { border-color: color-mix(in srgb, var(--err) 50%, var(--line)); }
.bk-card.st-left { opacity: .7; }
.gs-stats { margin: 12px 0 6px; }
.gs-stats > div { padding: 12px; }
.gs-stats b { font-size: 1.35rem; }
.gs-tags { border: 0; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gs-tags legend { margin-bottom: 8px; }
.gs-hist { display: grid; gap: 2px; }
.gs-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.wi-party { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wi-n { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 700 1.05rem/1 inherit; cursor: pointer; }
.wi-n[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wi-more { width: 72px; height: 48px; }
.seg-sm button { min-height: 32px; padding: 0 12px; font-size: .8rem; }
.pl-tools, .fp-tools { flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); }
.pl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid transparent; }
.lg-coming { background: color-mix(in srgb, var(--brand) 22%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.lg-late { background: var(--err-soft); border-color: var(--err); }
.lg-seated { background: color-mix(in srgb, var(--ok) 28%, var(--surface)); border-color: var(--ok); }
.lg-left { background: var(--bg-2); border-color: var(--line-2); }
.lg-free { background: var(--surface); border-color: var(--line-2); }
.lg-soon { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); border-color: var(--accent); }
button.pl-bk { font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
button.pl-bk:hover { filter: brightness(.97); box-shadow: 0 1px 4px rgba(26,23,23,.15); }
.pl-late { background: var(--err-soft); border-color: var(--err); }
.pl-seated { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); border-color: var(--ok); }
.pl-left { background: var(--bg-2); border-color: var(--line-2); opacity: .75; }
/* pianta della sala */
.fp-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: auto; max-height: min(78vh, 760px); background: var(--surface); overscroll-behavior: contain; }
.fp { container-type: inline-size; position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background-color: var(--surface); background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
.fp-t { position: absolute; transform: translate(-50%, -50%); min-width: 0; overflow: visible; display: grid; place-content: center; justify-items: center; gap: 1px; padding: 4px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 1px 3px rgba(26,23,23,.12); transition: box-shadow .15s, transform .15s; touch-action: none; }
.fp-t:hover { box-shadow: 0 4px 12px rgba(26,23,23,.18); }
.fp-round { border-radius: 50%; }
.fp-n { font-size: clamp(.6rem, 1.7cqw, 1.3rem); line-height: 1.1; }
.fp-s { font-size: clamp(.5rem, 1.1cqw, .85rem); color: var(--ink-3); }
.fp-who { max-width: 100%; font-size: clamp(.5rem, 1.15cqw, .85rem); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.fp-free { border-style: dashed; }
.fp-soon { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-color: var(--accent); }
.fp-booked { background: color-mix(in srgb, var(--brand) 16%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.fp-late { background: var(--err-soft); border-color: var(--err); }
.fp-seated { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); border-color: var(--ok); }
.fp-editing {
  --grid-columns: 24;
  --grid-rows: 16;
  --grid-line: color-mix(in srgb, var(--ink) 18%, transparent);
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: calc(100% / var(--grid-columns)) calc(100% / var(--grid-rows));
}
.fp-editing .fp-t { cursor: grab; }
.fp-t.fp-drag { cursor: grabbing; transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 8px 22px rgba(26,23,23,.25); z-index: 5; }
.fp-shape { position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: .7rem; cursor: pointer; }
.fp-time { width: auto; min-height: 38px; }
.fp-zoom { gap: 4px; align-items: center; }
.fp-zoom .icon-btn { font-size: 1.25rem; line-height: 1; }
.fp-zoom .icon-btn[disabled] { opacity: .35; cursor: default; }
.fp-help { max-width: 62ch; }
/* angolino per cambiare la grandezza del tavolo */
.fp-rs { position: absolute; right: -7px; bottom: -7px; width: 18px; height: 18px; border-radius: 5px; background: var(--accent); border: 2px solid var(--bg); cursor: nwse-resize; touch-action: none; }
@media (pointer: coarse) { .fp-rs { width: 26px; height: 26px; right: -11px; bottom: -11px; } .fp-shape { width: 30px; height: 30px; top: -14px; right: -14px; } }

/* ---------- Controllo impaginazione 03/12/2026 ---------- */
/* campi: in una griglia a due colonne l'input non si allunga se il vicino ha un suggerimento sotto */
.field { align-content: start; }
.textarea { field-sizing: content; max-height: 60vh; }
.coupon-row .input::placeholder, .pm-code .input::placeholder { text-transform: none; letter-spacing: 0; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--brand); }
/* riquadri numerici: tante colonne quante ne servono, senza un riquadro da solo sotto */
.adm-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* schede in tempo reale: testo su una riga */
.live-tabs a { white-space: nowrap; }
/* elenchi di Gestione: spazio tra una scheda e l'altra */
[data-mg-list], [data-threads].list { display: grid; gap: 10px; }
[data-threads].list > * { border-bottom: 0; padding: 0; }
/* foto e video: miniature tutte uguali */
.media-thumb { flex: none; min-height: 0; overflow: hidden; }
.media-thumb img, .media-thumb video { position: absolute; inset: 0; }
/* pianificazione per orari: la colonna dei tavoli resta sopra le prenotazioni quando si scorre */
.pl-table { z-index: 3; }
.pl-corner { z-index: 4; }
/* finestre: pulsanti sempre a destra */
.dlg-foot > .row { justify-content: flex-end; }

@media (max-width: 860px) {
  /* menu del gestionale su telefono e tablet: locale ed Esci sulla stessa riga, sezioni in una striscia */
  .adm-side { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .adm-side > .btn { order: 2; justify-self: end; }
  .adm-side > nav { order: 3; grid-column: 1 / -1; }
  .adm-side > .field { order: 4; grid-column: 1 / -1; }
  .adm-side nav li.adm-nav-h { display: none; }
  /* staff: "Cambia utente" c'e' gia' nella barra in alto */
  .adm-staff .adm-side > [data-staff-switch] { display: none; }
}
@media (max-width: 760px) {
  /* schede in tempo reale in una striscia scorrevole invece di tre righe */
  .live-tabs { display: flex; overflow-x: auto; gap: 8px; margin: -4px -20px 18px; padding: 14px 20px 4px; scrollbar-width: none; }
  .adm-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .live-tabs::-webkit-scrollbar { display: none; }
  .live-tabs a { flex: none; flex-direction: row; min-height: 48px; padding: 8px 14px; gap: 8px; border-radius: 14px; font-size: .95rem; }
  .live-tabs a svg { width: 20px; height: 20px; }
  .bk-views { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .bk-views button { flex: none; }
}

/* ---------- Amministrazione ReStar ---------- */
[data-sa] .admin-login { justify-content: center; }
[data-sa] details > summary { cursor: pointer; font-weight: 600; }
[data-sa] > a:first-child { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
[data-sa] > a:first-child:hover { color: var(--brand); }
[data-sa] > h1, [data-sa] .adm-head h1 { font: 750 clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
[data-sa] > h1 + p { color: var(--ink-2); margin-bottom: 18px; }
[data-sa] .adm-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
[data-sa] .adm-head > .row { display: flex; flex-wrap: wrap; align-items: center; }
[data-sa] .sa-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
[data-sa] .adm-h2 { margin: 30px 0 12px; }
[data-sa] .adm-stats { margin: 14px 0 10px; }
[data-sa] .panel:not(.form-grid) > * + *, [data-sa] .panel section > * + *, [data-sa] .panel details > * + * { margin-top: 10px; }
[data-sa] .panel h3 { font-size: 1.05rem; }
[data-sa] .panel > h3:not(:first-child), [data-sa] .panel > section, [data-sa] .panel > article, [data-sa] .panel > form, [data-sa] .panel > details { margin-top: 22px; }
[data-sa] .panel > section, [data-sa] .panel > article, [data-sa] .panel > form, [data-sa] .panel > details { padding-top: 18px; border-top: 1px solid var(--line); }
[data-sa] .panel > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
[data-sa] .panel h2 { font: 750 clamp(1.4rem, 3vw, 1.9rem)/1.15 var(--display); letter-spacing: -.02em; }
[data-sa] form label:not(.field):not(.chip-check) { display: grid; gap: 6px; font-weight: 600; }
[data-sa] .list { gap: 10px; }
[data-sa] .list > .panel { padding: 14px 18px; border-bottom: 1px solid var(--line); }
[data-sa] .list > .adm-row { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
[data-sa] .list > .adm-row p { margin-top: 4px; }
[data-sa] article.panel + article.panel, [data-sa] [data-log] > .panel + .panel { margin-top: 10px; }
[data-sa] [data-log] > .btn { margin: 14px 8px 0 0; }
[data-sa] table.panel { border-collapse: separate; border-spacing: 0; }
[data-sa] table.panel th, [data-sa] table.panel td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
[data-sa] table.panel tr:last-child > * { border-bottom: 0; }
[data-sa] .form-grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
[data-sa] code { font-size: .9em; padding: 1px 5px; border-radius: 6px; background: var(--bg-2); overflow-wrap: anywhere; }

/* per i ristoratori: costi e differenze */
.bz-zero-lead { margin-top: 12px; max-width: 62ch; }
.bz-zero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.bz-zero-card { padding: 24px; border-radius: 20px; background: var(--surface); }
.bz-zero-n { display: block; font: 780 clamp(2.4rem, 1.6rem + 2.6vw, 3.4rem)/1 var(--display); letter-spacing: -.03em; color: var(--brand-text); }
.bz-zero-card h3 { font-size: 1.1875rem; margin: 8px 0 6px; }
.bz-zero-card p { color: var(--ink-2); font-size: .9375rem; }
.bz-zero-math { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 16px; padding: 24px; border-radius: 20px; background: var(--surface); }
.bz-bars { display: grid; gap: 16px; }
.bz-bar { display: grid; gap: 6px; }
.bz-track { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--bg-3); }
.bz-track i { background: var(--ok); }
.bz-track s { background: repeating-linear-gradient(45deg, var(--err) 0 6px, color-mix(in srgb, var(--err) 55%, transparent) 6px 12px); }
.bz-diff-t { margin-top: clamp(40px, 6vw, 64px); }
.bz-zero .bz-feat { background: var(--surface); }
.bz-zero .bz-feat p { font-size: .9375rem; line-height: 1.5; }
@media (max-width: 860px) { .bz-zero-grid, .bz-zero-math { grid-template-columns: 1fr; } }
.mk-chat .mk-msg { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg-2); max-width: 85%; justify-self: start; }
.mk-chat .mk-msg.me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--brand); color: #fff; }
