/* =========================================================
   Demo "Ristorazione ed eventi" — foglio di stile unico.
   Stessa struttura per tutti i settori: cambia solo il colore
   principale (variabili --c-primary*) scelto da [data-settore]
   su <html>. Un settore nuovo porta i suoi colori nel JSON.
   Font (SIL OFL 1.1), ospitati nel sito, due soli pesi in tutto: 400 e 700.
   - Besley 400: titoli (serif caldo, da insegna di trattoria)
   - Albert Sans 400/700: testo, pulsanti, prezzi
   ========================================================= */
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/albert-sans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/besley-400-latin.woff2) format('woff2'); }

:root {
  --c-bg: #F6F0E6;
  --c-surface: #FFFFFF;
  --c-tint: #EFE6D8;
  --c-ink: #2A231D;
  --c-muted: #5E554C;
  --c-line: #E3D8C8;
  --c-primary: #B3261E;
  --c-primary-dark: #8A1C16;
  --c-soft: #FBE7E3;
  --c-wa: #1C7C45;
  --c-wa-dark: #156337;
  --c-star: #C98A0B;
  --c-error: #B42318;
  --c-error-soft: #FDECEA;
  --c-success: #1F7A45;
  --c-success-soft: #E5F4EA;
  --c-focus: #1F5E99;
  --c-urgent: #B42318;
  --c-urgent-soft: #FFF1EF;

  --f: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-display: 'Besley', Georgia, 'Times New Roman', serif;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 37, 48, .06), 0 2px 8px rgba(28, 37, 48, .05);
  --shadow-md: 0 8px 28px rgba(28, 37, 48, .10);
  --shadow-lg: 0 20px 56px rgba(28, 37, 48, .20);

  --gutter: 20px;
  --section-y: 56px;
  --demo-h: 34px;
  --header-h: 58px;
  --bar-h: 76px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gutter: 32px; --section-y: 88px; --header-h: 68px; } }

/* Temi dei 4 settori (un settore nuovo li imposta da settore.js con i colori del JSON) */
html[data-settore="pizzeria"] { --c-primary: #B3261E; --c-primary-dark: #8A1C16; --c-soft: #FBE7E3; }
html[data-settore="pesce"] { --c-primary: #1F6478; --c-primary-dark: #174C5C; --c-soft: #E2EFF2; }
html[data-settore="pasticceria"] { --c-primary: #9A3C4C; --c-primary-dark: #7A2E3B; --c-soft: #F7E7E9; }
html[data-settore="location"] { --c-primary: #56664E; --c-primary-dark: #424F3B; --c-soft: #E9EDE4; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--demo-h) + var(--header-h) + 12px); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font-family: var(--f); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-bar { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-underline-offset: 3px; }
h1, h2, .h1 { font-family: var(--f-display); font-weight: 400; color: var(--c-ink); line-height: 1.1; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h3, h4 { font-weight: 700; color: var(--c-ink); line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 19px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.noscript { padding: 16px; text-align: center; background: #FFF6E0; }

/* ---------- pulsanti (pressione 0.97, solo transform/colore: Emil Kowalski) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--r-md);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px -6px var(--c-primary); }
.btn--primary:hover:not(:disabled) { background: var(--c-primary-dark); color: #fff; }
.btn--whatsapp { background: var(--c-wa); color: #fff; }
.btn--whatsapp:hover { background: var(--c-wa-dark); color: #fff; }
.btn--ghost { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--light { background: #fff; color: var(--c-primary-dark); }
.btn--light:hover { background: var(--c-soft); color: var(--c-primary-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--urgent { background: var(--c-urgent); color: #fff; }
.btn--urgent:hover { background: #8F1C13; color: #fff; }
.btn--choice { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-ink); min-height: 46px; }
.btn--choice:hover { background: var(--c-tint); color: var(--c-ink); }
.btn .ico { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--c-primary-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--c-ink); cursor: pointer; transition: background-color .15s ease, transform .16s var(--ease-out); }
.icon-btn:hover:not(:disabled) { background: var(--c-tint); }
.icon-btn:active:not(:disabled) { transform: scale(.96); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn--primary { background: var(--c-primary); color: #fff; }
.icon-btn--primary:hover:not(:disabled) { background: var(--c-primary-dark); }

/* ---------- barra demo + header (sticky insieme) ---------- */
.topbar { position: sticky; top: 0; z-index: 60; }
.demo-strip { background: var(--c-ink); color: #EDF1F5; font-size: 13px; line-height: 1.3; }
.demo-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--demo-h); }
.demo-strip__text { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.demo-strip__text .ico { width: 15px; height: 15px; color: #F2B84B; }
.demo-strip__switch { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; min-height: var(--demo-h); padding: 0 2px; }
.demo-strip__switch .ico { width: 15px; height: 15px; }
.demo-strip__switch:hover { color: #fff; text-decoration: underline; }
.site-header { height: var(--header-h); background: rgba(246, 240, 230, .95); border-bottom: 1px solid var(--c-line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); min-height: 44px; min-width: 0; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; transition: background-color .25s ease; }
.logo__text { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; line-height: 1.15; min-width: 0; }
.logo__text > span, .logo__text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo__text small { font-size: 12.5px; font-weight: 400; color: var(--c-muted); margin-top: 2px; }
.main-nav { display: none; gap: 2px; }
.main-nav a { color: var(--c-ink); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: var(--r-sm); transition: background-color .15s ease; }
.main-nav a:hover { background: var(--c-tint); color: var(--c-ink); }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header__cta { display: none; }
.lang-switch { display: inline-flex; background: var(--c-tint); border-radius: var(--r-pill); padding: 3px; }
.lang-btn { min-width: 44px; height: 38px; border: 0; background: transparent; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--c-muted); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.lang-btn[aria-pressed="true"] { background: #fff; color: var(--c-ink); box-shadow: var(--shadow-sm); }
@media (max-width: 380px) { .logo__text small { display: none; } }
@media (max-width: 479px) { .demo-strip { font-size: 12.5px; } .demo-strip__text .ico { display: none; } .demo-strip__inner { gap: 8px; } }
@media (min-width: 1040px) { .main-nav { display: flex; } .header__cta { display: inline-flex; } }

/* ---------- selettore di settore ---------- */
.sector-band { background: var(--c-surface); border-bottom: 1px solid var(--c-line); scroll-margin-top: calc(var(--demo-h) + var(--header-h)); }
.sector-band__inner { display: grid; gap: 6px; padding-top: 10px; padding-bottom: 12px; }
.sector-band__label { font-size: 14px; font-weight: 700; color: var(--c-muted); }
.sector-switch { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 2px; padding: 4px; background: var(--c-tint); border-radius: var(--r-pill); isolation: isolate; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.sector-switch::-webkit-scrollbar { display: none; }
.sector-switch__pill { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--c-primary); box-shadow: 0 4px 12px -4px var(--c-primary); transition: transform .32s var(--ease-out), width .32s var(--ease-out), background-color .25s ease; }
.sector-switch:not(.is-ready) .sector-switch__pill { transition: none; }
.sector-btn { min-height: 44px; padding: 0 8px; border: 0; background: transparent; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: var(--c-ink); cursor: pointer; white-space: nowrap; transition: color .2s ease, transform .16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.sector-btn:hover { color: var(--c-primary-dark); }
.sector-btn[aria-checked="true"] { color: #fff; }
.sector-btn:active { transform: scale(.96); }
/* prima che il JS misuri la pillola, il pulsante attivo ha il suo sfondo */
.sector-switch:not(.is-ready) .sector-btn[aria-checked="true"] { background: var(--c-primary); }
@media (max-width: 374px) { .sector-btn { font-size: 13px; padding: 0 5px; } }
@media (min-width: 720px) {
  .sector-band__inner { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .sector-btn { padding: 0 22px; font-size: 15px; }
}

/* ---------- hero ---------- */
.hero { padding: 22px 0 40px; }
.hero__grid { display: grid; gap: 18px; }
.hero__copy [data-per] { display: none; }
html[data-settore="pizzeria"] .hero__copy [data-per="pizzeria"],
html[data-settore="pesce"] .hero__copy [data-per="pesce"],
html[data-settore="pasticceria"] .hero__copy [data-per="pasticceria"],
html[data-settore="location"] .hero__copy [data-per="location"] { display: block; }
.js-cta [data-per] { display: none; }
html[data-settore="pizzeria"] .js-cta [data-per="pizzeria"],
html[data-settore="pesce"] .js-cta [data-per="pesce"],
html[data-settore="pasticceria"] .js-cta [data-per="pasticceria"],
html[data-settore="location"] .js-cta [data-per="location"] { display: inline; }
html.settore-nuovo:not(.is-loaded) .hero__copy { visibility: hidden; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--c-primary-dark); margin-bottom: 10px; }
.eyebrow .ico { width: 16px; height: 16px; }
.hero h1, .hero .h1 { font-size: clamp(34px, 9vw, 58px); line-height: 1.04; letter-spacing: -.02em; max-width: 18ch; }
.hero__sub { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--c-muted); max-width: 54ch; }
.hero__actions { display: grid; gap: 14px; }
.hero__ctas { display: grid; gap: 10px; }
.hero__ctas .btn { width: 100%; }
.hero__next { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c-ink); min-height: 24px; }
.hero__next .ico { width: 18px; height: 18px; color: var(--c-primary); }
.hero__next strong { color: var(--c-primary-dark); }
.hero__facts { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--c-muted); }
.hero__facts li { display: flex; align-items: flex-start; gap: 8px; }
.hero__facts li .ico, .hero__facts .stars-mini { margin-top: 3px; }
.hero__facts .ico { width: 18px; height: 18px; color: var(--c-success); }
.hero__facts strong { color: var(--c-ink); }
.stars-mini { color: var(--c-star); display: inline-flex; }
.stars-mini .ico { color: var(--c-star); }
.hero__media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-soft); aspect-ratio: 5 / 4; box-shadow: var(--shadow-md); }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; }
@media (min-width: 560px) {
  .hero__ctas { grid-template-columns: auto auto; justify-content: start; }
  .hero__ctas .btn { width: auto; }
}
@media (min-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 28px; align-items: start; }
  .hero__copy { grid-column: 1; grid-row: 1; padding-top: 8px; }
  .hero__actions { grid-column: 1; grid-row: 2; align-content: start; }
  .hero__media { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: auto; align-self: stretch; min-height: 460px; }
  .hero__media picture { position: absolute; inset: 0; }
  .hero h1, .hero .h1 { font-size: clamp(42px, 4.2vw, 58px); max-width: 17ch; }
}
/* cambio di settore: la hero si ridisegna con una dissolvenza breve */
.is-switching .hero__copy, .is-switching .hero__media img { opacity: 0; transform: translateY(6px); }
.hero__copy, .hero__media img { transition: opacity .22s ease, transform .28s var(--ease-out); }

/* ---------- sezioni ---------- */
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--c-tint); }
.section__head { max-width: 720px; margin-bottom: 28px; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section__lead { margin-top: 12px; font-size: 18px; color: var(--c-muted); }
.section__cta { margin-top: 28px; display: grid; }
.section__cta .btn { width: 100%; }
@media (min-width: 560px) { .section__cta { justify-content: start; } .section__cta .btn { width: auto; } }
@media (min-width: 900px) { .section__head { margin-bottom: 40px; } }

/* ---------- recensioni ---------- */
.score { display: flex; align-items: center; gap: 12px; }
.score__value { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.score__meta { display: grid; gap: 2px; font-size: 14px; color: var(--c-muted); }
.stars-row { display: inline-flex; gap: 2px; color: var(--c-star); }
.stars-row .ico { width: 17px; height: 17px; }
.stars-row .is-empty { color: #D9D1C6; }
.sample-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-surface); border: 1px dashed var(--c-muted); font-size: 14px; font-weight: 700; color: var(--c-muted); }
.sample-tag .ico { width: 16px; height: 16px; }
.reviews { display: grid; gap: 14px; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.review { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.review blockquote { margin: 0; flex: 1; font-size: 16.5px; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.review__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-soft); color: var(--c-primary-dark); font-weight: 700; }
.review figcaption small { display: block; color: var(--c-muted); font-size: 13px; }

/* ---------- automazioni ---------- */
.auto { display: grid; gap: 36px; }
@media (min-width: 960px) { .auto { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; } }
.auto-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.auto-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); }
.auto-item__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-soft); color: var(--c-primary-dark); }
.auto-item h3 { font-size: 17px; }
.auto-item p { color: var(--c-muted); font-size: 15.5px; margin-top: 2px; }
.auto__stat { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--c-soft); font-size: 16px; }
.auto__stat strong { color: var(--c-primary-dark); }
.auto__stat small { display: block; color: var(--c-muted); font-size: 13.5px; margin-top: 2px; }
.phone { display: grid; gap: 10px; justify-items: center; }
.phone__label { font-size: 14px; font-weight: 700; color: var(--c-muted); }
.phone__screen { width: 100%; max-width: 340px; border-radius: 34px; padding: 12px; background: #1C2530; box-shadow: var(--shadow-lg); }
.phone__top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 24px 24px 0 0; background: #F0F2F5; font-weight: 700; font-size: 15px; }
.phone__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 13px; }
.phone__chat { display: grid; gap: 8px; padding: 16px 12px 22px; border-radius: 0 0 24px 24px; background: #EFE7DD; min-height: 230px; align-content: start; }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: #fff; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); overflow-wrap: anywhere; }
.bubble--me { justify-self: end; border-radius: 14px 4px 14px 14px; background: #D9FDD3; }
.phone__note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; max-width: 340px; font-size: 13.5px; line-height: 1.45; color: var(--c-muted); }
.phone__note .ico { margin-top: 2px; }
.phone__note .ico { width: 15px; height: 15px; }

/* ---------- come arrivare + orari ---------- */
.where { display: grid; gap: 28px; }
@media (min-width: 900px) { .where { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; } }
.where__main h2 { margin-bottom: 14px; }
.where__address { display: flex; align-items: flex-start; gap: 8px; font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.where__address .ico { margin-top: 3px; color: var(--c-primary); }
.ways { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.ways li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); font-size: 16px; }
.ways__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c-soft); color: var(--c-primary-dark); }
.where .btn--ghost { width: 100%; }
@media (min-width: 560px) { .where .btn--ghost { width: auto; } }
.hours-card { padding: 22px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.hours-card__title { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 12px; }
.hours-card__title .ico { color: var(--c-primary); }
.hours { display: grid; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-line); font-size: 16px; }
.hours__row dt { color: var(--c-muted); }
.hours__row dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; display: grid; justify-items: end; }
.hours__row dt { white-space: nowrap; }
.hours__row.is-today dt, .hours__row.is-today dd { color: var(--c-primary-dark); }
.hours-card__contacts { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; min-height: 56px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; border-radius: var(--r-md); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { transition: transform .2s var(--ease-out); color: var(--c-primary); }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__answer { padding: 0 18px 18px; color: var(--c-muted); }
.faq__more { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

/* ---------- chiusura + footer ---------- */
.final { background: var(--c-primary-dark); color: #fff; padding: 56px 0; transition: background-color .25s ease; }
.final h2 { color: #fff; }
.final__inner { display: grid; gap: 24px; }
.final__text { margin-top: 10px; font-size: 18px; opacity: .92; }
.final__btns { display: grid; gap: 10px; }
.final__btns .btn { width: 100%; }
@media (min-width: 560px) { .final__btns { grid-template-columns: auto auto; justify-content: start; } .final__btns .btn { width: auto; } }
@media (min-width: 960px) { .final { padding: 72px 0; } .final__inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }
.site-footer { background: var(--c-ink); color: #D5DCE3; padding: 48px 0 28px; font-size: 15px; }
.site-footer a, .site-footer .link-btn { color: #fff; }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.footer__brand { font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 6px; }
.footer__title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__list { list-style: none; display: grid; gap: 2px; }
.footer__list a, .footer__list .link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 400; }
.footer__list a:hover { text-decoration: underline; color: #fff; }
.footer__list .ico { width: 18px; height: 18px; }
.footer__bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; color: #B5C0CB; }

/* ---------- barra fissa mobile ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgba(28, 37, 48, .08);
  transform: translateY(110%); transition: transform .3s var(--ease-drawer);
}
.sticky-bar.is-on { transform: translateY(0); }
.sticky-bar .btn { min-height: 52px; padding: 0 8px; gap: 6px; font-size: 15px; }
.sticky-bar .btn .ico { width: 19px; height: 19px; }
@media (min-width: 900px) { .sticky-bar { display: none; } }

/* ---------- assistente ---------- */
.chat-launcher {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 75;
  display: inline-flex; align-items: center; gap: 8px; height: 54px; min-width: 54px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: var(--c-ink); color: #fff; font-weight: 700; box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .2s var(--ease-out), opacity .2s ease, bottom .3s var(--ease-drawer);
}
.chat-launcher:active { transform: scale(.95); }
.chat-launcher .ico { width: 22px; height: 22px; }
.chat-launcher__label { font-size: 15px; }
body.has-bar .chat-launcher { bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); }
body.cookie-open .chat-launcher, body.chat-open .chat-launcher { opacity: 0; pointer-events: none; transform: scale(.9); }
@media (max-width: 899px) { .chat-launcher__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .chat-launcher { padding: 0; justify-content: center; } }
@media (min-width: 900px) { body.has-bar .chat-launcher { bottom: 24px; } .chat-launcher { right: 24px; bottom: 24px; } }

.chat {
  position: fixed; z-index: 90; inset: auto 0 0 0; height: min(86vh, 640px); height: min(86dvh, 640px);
  display: flex; flex-direction: column; background: var(--c-surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
  transform-origin: bottom right; opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .2s ease, transform .26s var(--ease-out);
}
.chat.is-open { opacity: 1; transform: none; }
@media (min-width: 900px) { .chat { inset: auto 24px 24px auto; width: 400px; height: min(78vh, 620px); border-radius: var(--r-lg); transform: translateY(10px) scale(.96); } }
.chat__head { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--c-line); }
.chat__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 14px; }
.chat__titles { min-width: 0; }
.chat__title { font-weight: 700; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); }
.chat__notice { display: flex; align-items: flex-start; gap: 8px; padding: 9px 14px; background: #FFF6E0; font-size: 13.5px; line-height: 1.4; }
.chat__notice .ico { width: 16px; height: 16px; margin-top: 2px; color: #8A5A00; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--c-bg); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; animation: msgIn .22s var(--ease-out); }
.msg--bot { align-self: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--c-primary); color: #fff; border-bottom-right-radius: 6px; }
.msg--warn { background: var(--c-urgent-soft); border-color: #F3B8B1; }
.msg__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg__actions .btn { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); animation: typing 1s infinite ease-in-out; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat__chips { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; border-top: 1px solid var(--c-line); scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--c-line); background: var(--c-surface); border-radius: var(--r-pill); font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: border-color .15s ease, transform .16s var(--ease-out); }
.chip-btn:hover { border-color: var(--c-primary); }
.chip-btn:active { transform: scale(.96); }
.chat__form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); }
.chat__form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-pill); font: inherit; font-size: 16px; background: var(--c-bg); }
.chat__form input:focus { outline: none; border-color: var(--c-primary); }
@media (min-width: 900px) { .chat__form { padding-bottom: 10px; } }

/* ---------- flusso di prenotazione ---------- */
.flow { position: fixed; inset: 0; z-index: 100; display: flex; align-items: stretch; justify-content: center; }
.flow__backdrop { position: absolute; inset: 0; background: rgba(15, 22, 30, .55); opacity: 0; transition: opacity .22s ease; }
.flow__panel { position: relative; width: 100%; display: flex; flex-direction: column; background: var(--c-bg); transform: translateY(24px); opacity: 0; transition: transform .2s var(--ease-out), opacity .16s ease; }
.flow.is-open .flow__backdrop { opacity: 1; }
.flow.is-open .flow__panel { transform: none; opacity: 1; transition: transform .32s var(--ease-drawer), opacity .22s ease; }
@media (min-width: 760px) {
  .flow { align-items: center; padding: 24px; }
  .flow__panel { max-width: 760px; height: auto; max-height: min(92vh, 860px); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(12px) scale(.98); }
}
.flow__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 8px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.flow__titles { text-align: center; min-width: 0; }
.flow__title { font-weight: 700; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { list-style: none; display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.steps li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); }
.steps__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--c-line); font-size: 12px; font-weight: 700; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.steps__t { display: none; }
.steps li.is-current .steps__t { display: inline; color: var(--c-ink); font-weight: 700; }
.steps li.is-current .steps__n, .steps li.is-done .steps__n { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
@media (min-width: 560px) { .steps { gap: 14px; } .steps__t { display: inline; } }
.flow__body { flex: 1; overflow-y: auto; padding: 20px var(--gutter) 28px; overscroll-behavior: contain; }
.flow__body:focus { outline: none; }
@media (min-width: 760px) { .flow__body { padding: 28px 36px 32px; } }
.flow__body.step-fwd { animation: stepFwd .22s var(--ease-out); }
.flow__body.step-back { animation: stepBack .22s var(--ease-out); }
@keyframes stepFwd { from { opacity: 0; transform: translateX(12px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-12px); } }
.flow__foot { display: grid; gap: 8px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--c-surface); border-top: 1px solid var(--c-line); }
.flow__foot:empty { display: none; }
.flow__foot .btn { width: 100%; }
.flow-foot__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.flow-foot__sum strong { font-size: 17px; text-align: right; }
.flow-foot__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--c-muted); text-align: center; }
.flow-foot__note .ico { width: 15px; height: 15px; color: var(--c-success); }
@media (min-width: 760px) { .flow__foot { padding: 14px 36px; } }
.flow-h { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 6px; }
.flow-h:focus { outline: none; }
.flow-sub { color: var(--c-muted); margin-bottom: 18px; }
.flow-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.flow-summary span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-soft); color: var(--c-primary-dark); font-size: 14px; font-weight: 700; }
.flow-summary .ico { width: 15px; height: 15px; }

.choice-list { display: grid; gap: 10px; }
.choice {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; min-height: 64px; text-align: left; background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--r-md); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .16s var(--ease-out);
}
.choice:hover { border-color: var(--c-primary); }
.choice:active { transform: scale(.99); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { border-color: var(--c-primary); box-shadow: 0 0 0 1.5px var(--c-primary); background: var(--c-soft); }
.choice__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-soft); color: var(--c-primary-dark); font-weight: 700; }
.choice[aria-checked="true"] .choice__icon, .choice[aria-pressed="true"] .choice__icon { background: var(--c-primary); color: #fff; }
.choice__title { display: block; font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.choice__desc { display: block; font-size: 14.5px; color: var(--c-muted); line-height: 1.4; margin-top: 2px; }
.choice__price { font-weight: 700; text-align: right; white-space: nowrap; font-size: 16px; }
.choice__price small { display: block; font-weight: 400; font-size: 12.5px; color: var(--c-muted); }
.choice--first { border-style: dashed; }

.field-group { margin-top: 22px; }
.field-group__title { font-weight: 700; margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__btn { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c-line); background: var(--c-surface); border-radius: var(--r-pill); font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.seg__btn:hover { border-color: var(--c-primary); }
.seg__btn:active { transform: scale(.96); }
.seg__btn[aria-checked="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.days { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-snap-type: x proximity; scrollbar-width: thin; }
@media (min-width: 760px) { .days { margin: 0; padding-left: 2px; padding-right: 2px; } }
.day { scroll-snap-align: start; display: grid; justify-items: center; gap: 0; padding: 8px 0; min-height: 76px; border: 1.5px solid var(--c-line); background: var(--c-surface); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out); }
.day:hover:not(:disabled) { border-color: var(--c-primary); }
.day:active:not(:disabled) { transform: scale(.96); }
.day__wd { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.day__n { font-size: 22px; font-weight: 700; line-height: 1.2; }
.day__free { font-size: 11.5px; color: var(--c-success); font-weight: 700; }
.day:disabled { cursor: not-allowed; background: transparent; border-style: dashed; }
.day:disabled .day__n, .day:disabled .day__free { color: #9AA3AB; }
.day[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); }
.day[aria-pressed="true"] .day__wd, .day[aria-pressed="true"] .day__n, .day[aria-pressed="true"] .day__free { color: #fff; }
.slots-group { margin-top: 18px; }
.slots-group__t { font-size: 14px; font-weight: 700; color: var(--c-muted); margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border: 1.5px solid var(--c-line); background: var(--c-surface); border-radius: var(--r-sm); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.slot:hover { border-color: var(--c-primary); }
.slot:active { transform: scale(.96); }
.slot[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.slot__who { display: block; font-size: 11.5px; font-weight: 400; opacity: .85; }
.flow-empty { padding: 16px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); display: grid; gap: 10px; margin-top: 16px; }
.flow-empty .btn { justify-self: start; }

.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.field .req { color: var(--c-error); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #CFC5B8; border-radius: var(--r-md); background: var(--c-surface); font: inherit; font-size: 16px; color: var(--c-ink); transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-soft); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--c-error); }
.field__hint { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-muted); margin-top: 6px; }
.field__hint .ico { width: 16px; height: 16px; color: var(--c-wa); }
.field__error { font-size: 14px; color: var(--c-error); font-weight: 700; margin-top: 6px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-primary); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recap { display: grid; gap: 0; padding: 4px 16px; margin-bottom: 18px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); }
.recap__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-line); font-size: 15.5px; }
.recap__row:last-child { border-bottom: 0; }
.recap__row dt { color: var(--c-muted); }
.recap__row dd { font-weight: 700; text-align: right; }
.muted { color: var(--c-muted); font-weight: 400; }

.done { text-align: center; display: grid; justify-items: center; gap: 10px; }
.done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-success-soft); color: var(--c-success); animation: pop .4s var(--ease-out); }
.done__icon .ico { width: 32px; height: 32px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.done .recap { width: 100%; text-align: left; margin: 8px 0 4px; }
.done__next { width: 100%; text-align: left; padding: 16px; border-radius: var(--r-md); background: var(--c-soft); }
.done__next h3 { font-size: 17px; margin-bottom: 8px; }
.done__next ol { padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.done__btns { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
@media (min-width: 560px) { .done__btns { grid-template-columns: 1fr 1fr; } }
.done__owner { margin-top: 4px; }

/* ---------- cookie + toast ---------- */
.cookie {
  position: fixed; z-index: 95; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; gap: 10px; padding: 16px; padding-right: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); font-size: 14.5px;
  animation: cookieIn .3s var(--ease-out);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(12px); } }
.cookie__x { position: absolute; top: 6px; right: 6px; }
.cookie__title { font-weight: 700; font-size: 16px; padding-right: 40px; }
.cookie__text { line-height: 1.45; }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie__btns .btn { width: 100%; }
.cookie__custom { justify-self: start; min-height: 36px; font-size: 14.5px; }
.cookie__prefs { display: grid; gap: 8px; }
.cookie__opt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); cursor: pointer; }
.cookie__opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-ink); }
.cookie__opt strong { display: block; }
.cookie__opt small { display: block; color: var(--c-muted); font-size: 13.5px; }
@media (min-width: 700px) { .cookie { left: 24px; right: auto; bottom: 24px; max-width: 440px; } }
.toast { position: fixed; z-index: 120; left: 50%; top: calc(16px + env(safe-area-inset-top)); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-md); background: var(--c-ink); color: #fff; font-size: 15px; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, -12px); pointer-events: none; transition: opacity .2s ease, transform .3s var(--ease-out); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.icon-btn.is-hidden { visibility: hidden; }
.nowrap { white-space: nowrap; }

/* ---------- comparsa leggera delle card ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .msg--typing span { animation: none; opacity: .6; }
}

/* ---------- pagine legali ---------- */
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 18px 0 12px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p { margin-bottom: 10px; }
.legal__note { padding: 12px 14px; border-radius: var(--r-md); background: #FFF6E0; }

/* =========================================================
   Componenti della demo ristorazione
   ========================================================= */

/* ---------- informazioni rapide sotto la hero ---------- */
.info { padding: 0 0 8px; }
.info__list { list-style: none; display: grid; gap: 8px; padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.info__item { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.4; }
.info__item .ico { width: 19px; height: 19px; margin-top: 1px; color: var(--c-primary); }
.info__item--status { font-weight: 700; }
.info__dot { width: 10px; height: 10px; flex: none; margin: 6px 4px 0 5px; border-radius: 50%; background: #9A8F83; }
.info__item--status.is-open .info__dot { background: var(--c-success); box-shadow: 0 0 0 4px var(--c-success-soft); }
@media (min-width: 900px) {
  .info__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; padding: 18px 24px; }
}
@media (min-width: 1180px) { .info__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .info__list:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- menu digitale ---------- */
.menu-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter) 6px; }
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cats__a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: border-color .15s ease, transform .16s var(--ease-out); }

.menu-cats__a:active { transform: scale(.97); }
@media (min-width: 900px) { .menu-cats { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }
.menu-tools { display: grid; gap: 10px; margin-bottom: 22px; }
@media (min-width: 900px) { .menu-tools { grid-template-columns: 1fr 1fr; align-items: start; } }
.menu-tool { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.menu-tool summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--r-md); }
.menu-tool summary::-webkit-details-marker { display: none; }
.menu-tool summary > .ico:first-child { color: var(--c-primary); }
.menu-tool summary > span:first-of-type { flex: 1; }
.menu-tool summary > .ico:last-child { transition: transform .2s var(--ease-out); }
.menu-tool[open] summary > .ico:last-child { transform: rotate(180deg); }
.menu-tool__count:not(:empty) { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: var(--r-pill); background: var(--c-primary); color: #fff; font-size: 13px; }
.menu-tool__body { padding: 0 16px 16px; }
.menu-tool__hint, .menu-tool__res { font-size: 14.5px; color: var(--c-muted); }
.menu-tool__res:not(:empty) { margin-top: 10px; font-weight: 700; color: var(--c-ink); }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.al-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 1.5px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-bg); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }

.al-chip:active { transform: scale(.96); }
.al-chip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.al-chip[aria-pressed="true"] .al__n { background: #fff; color: var(--c-ink); }
.al__n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 6px; background: var(--c-tint); color: var(--c-ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.legend14 { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.legend14 li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; }
.legend14 span { color: var(--c-muted); }
.legend14 strong { color: var(--c-ink); }
.menu-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; } }
.menu-cat, .menu-day { padding: 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); scroll-margin-top: calc(var(--demo-h) + var(--header-h) + 12px); }
@media (min-width: 900px) { .menu-cat, .menu-day { padding: 26px 28px; } }
.menu-cat__t, .menu-day h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: -.01em; padding-bottom: 10px; border-bottom: 2px solid var(--c-ink); }
.dishes { list-style: none; display: grid; }
.dish { padding: 14px 0; border-bottom: 1px dashed var(--c-line); transition: opacity .2s ease; }
.dish:last-child { border-bottom: 0; padding-bottom: 0; }
.dish__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.dish__name { font-size: 17.5px; font-weight: 700; line-height: 1.3; }
.dish__star { color: var(--c-primary); margin-left: 2px; }
.dish__price { flex: none; display: grid; justify-items: end; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.dish__price small { font-size: 12.5px; font-weight: 400; color: var(--c-muted); }
.dish__desc { margin-top: 3px; font-size: 15.5px; line-height: 1.45; color: var(--c-muted); }
.dish__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: var(--r-pill); background: var(--c-tint); font-size: 12.5px; font-weight: 700; color: var(--c-ink); }
.tag--veg { background: var(--c-success-soft); color: var(--c-success); }
.dish__al { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--c-ink); }
.dish__al-k { font-weight: 700; }
.dish__al .al { white-space: nowrap; }
.dish__al .al__n { min-width: 20px; height: 20px; font-size: 11.5px; border-radius: 5px; }
.dish__al--none { color: var(--c-muted); }
.dish__hit { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--c-error); }
.dish.is-dim > :not(.dish__hit), .menu-card.is-dim > :not(.dish__hit) { opacity: .38; }
.dish__btn { margin-top: 10px; }
.menu-day { margin-bottom: 18px; border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.menu-day__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-bottom: 2px solid var(--c-ink); }
.menu-day h3 { display: flex; align-items: center; gap: 10px; border: 0; }
.menu-day h3 .ico { width: 26px; height: 26px; color: var(--c-primary); }
.menu-day__date { font-size: 14.5px; font-weight: 700; color: var(--c-primary-dark); padding-bottom: 10px; }
.menu-day__note { margin-top: 10px; font-size: 14.5px; color: var(--c-muted); }
@media (min-width: 900px) { .menu-day .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } .menu-day .dish:nth-last-child(2) { border-bottom: 0; } }
.menu-cards { list-style: none; display: grid; gap: 14px; }
@media (min-width: 760px) { .menu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.menu-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); transition: box-shadow .25s ease, transform .25s var(--ease-out), opacity .2s ease; }
@media (hover: hover) and (pointer: fine) { .menu-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } }
.menu-card .dish__name { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.menu-card .dish__desc { flex: 1; }
.menu-card .btn { margin-top: 12px; }
.menu-legal { display: grid; gap: 8px; margin-top: 20px; font-size: 14.5px; color: var(--c-muted); }
.menu-legal p { display: flex; align-items: flex-start; gap: 8px; }
.menu-legal .ico { width: 17px; height: 17px; margin-top: 3px; }
.menu-legal__main { padding: 12px 14px; border-radius: var(--r-md); background: #FFF6E0; color: var(--c-ink); }
.menu-legal__main .ico { color: #8A5A00; }

/* ---------- asporto (pizzeria) ---------- */
.asporto { display: grid; gap: 14px; margin-top: 22px; padding: 20px; border-radius: var(--r-lg); background: var(--c-soft); border: 1px solid var(--c-line); }
.asporto__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c-primary); color: #fff; }
.asporto__icon .ico { width: 24px; height: 24px; }
.asporto h3 { font-size: 20px; margin-bottom: 4px; }
.asporto__note { margin-top: 4px; font-size: 14.5px; color: var(--c-muted); }
.asporto .btn { width: 100%; }
@media (min-width: 900px) { .asporto { grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px 28px; } .asporto .btn { width: auto; } }

/* ---------- prenotando qui / come funziona ---------- */
.pq { display: grid; gap: 28px; }
@media (min-width: 960px) { .pq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.pq__example { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); font-size: 15.5px; }
.pq__num { flex: none; font-family: var(--f-display); font-size: 34px; line-height: 1; color: var(--c-primary-dark); }
.pq__btns { display: grid; gap: 10px; margin-top: 22px; }
.pq__btns .btn { width: 100%; }
@media (min-width: 560px) { .pq__btns { grid-template-columns: auto auto; justify-content: start; } .pq__btns .btn { width: auto; } }
.perks { list-style: none; display: grid; gap: 12px; }
.perk { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 2px; padding: 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.perk__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c-soft); color: var(--c-primary-dark); }
.perk h3 { font-size: 17.5px; align-self: end; }
.perk p { font-size: 15.5px; color: var(--c-muted); }

/* ---------- chi siamo: testo + mosaico di 3 foto ---------- */
.team { display: grid; gap: 32px; }
@media (min-width: 960px) { .team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.people { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 560px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); }
.person__avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 16px; }
.person__name { font-weight: 700; line-height: 1.25; }
.person__role { font-size: 14.5px; color: var(--c-primary-dark); font-weight: 700; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic__big { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.mosaic__sm { aspect-ratio: 4 / 3; }
.mosaic__big, .mosaic__sm { border-radius: var(--r-lg); overflow: hidden; background: var(--c-soft); }
.mosaic picture, .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic img { transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mosaic > div:hover img { transform: scale(1.03); } }

/* ---------- indirizzo in grande (momento tipografico) ---------- */
.bigaddr { display: grid; margin: 4px 0 28px; font-family: var(--f-display); line-height: .98; letter-spacing: -.03em; overflow-wrap: anywhere; }
.bigaddr__street { font-size: clamp(44px, 10.5vw, 128px); color: var(--c-ink); }
.bigaddr__area { font-size: clamp(22px, 4vw, 44px); color: var(--c-primary-dark); letter-spacing: -.015em; margin-top: 6px; }
.hours-card__closing { margin-top: 14px; font-size: 14.5px; color: var(--c-muted); }
.hours-card__closing strong { color: var(--c-ink); }

/* ---------- flussi: parti nuove ---------- */
.flow-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--c-muted); }
.flow-note .ico { width: 17px; height: 17px; margin-top: 2px; color: var(--c-primary); }
.flow-nudge { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; border-radius: var(--r-md); background: #FFF6E0; font-weight: 700; font-size: 15px; animation: msgIn .22s var(--ease-out); }
.flow-nudge .ico { color: #8A5A00; }
.day.is-low:not([aria-pressed="true"]) .day__free { color: #9A5B00; }
.slot { display: grid; place-content: center; gap: 1px; min-height: 52px; }
.slot__t { font-size: 16.5px; line-height: 1.2; }
.slot__who { font-size: 11.5px; font-weight: 700; color: var(--c-success); line-height: 1.2; }
.slot.is-low .slot__who { color: #9A5B00; }
.slot:disabled { cursor: not-allowed; background: transparent; border-style: dashed; color: #9A9087; }
.slot:disabled .slot__who { color: #9A9087; }
.slot[aria-pressed="true"] .slot__who { color: #fff; }
.slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.seg__btn:disabled { opacity: .4; cursor: not-allowed; border-style: dashed; }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.people-btn { min-height: 60px; border: 1.5px solid var(--c-line); background: var(--c-surface); border-radius: var(--r-md); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.people-btn:hover:not(:disabled) { border-color: var(--c-primary); }
.people-btn:active:not(:disabled) { transform: scale(.96); }
.people-btn[aria-checked="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.people-btn:disabled { opacity: .4; cursor: not-allowed; border-style: dashed; }
.flow-empty--group { margin-top: 20px; }
.flow-empty__btns { display: grid; gap: 8px; }
@media (min-width: 560px) { .flow-empty__btns { grid-template-columns: auto auto; justify-content: start; } }
.flow-empty .btn { justify-self: stretch; }
.allergy-warn { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--c-urgent-soft); color: #6E1A12; font-size: 14.5px; font-weight: 700; }
.allergy-warn .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--c-urgent); }
.check--soft { font-size: 14.5px; color: var(--c-muted); }
.field__hint--plain { color: var(--c-muted); }
.btn.is-pulse { animation: pulse 1.6s var(--ease-out) 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--c-primary); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* ---------- calendario date libere (location) ---------- */
.cal { padding: 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); max-width: 420px; }
.cal__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.cal__title { text-align: center; font-weight: 700; text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.cal__wd { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; padding: 4px 0; }
.cal__day { min-height: 44px; border: 1.5px solid transparent; border-radius: var(--r-sm); background: var(--c-soft); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--c-ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out); }
.cal__day:hover:not(:disabled) { border-color: var(--c-primary); }
.cal__day:active:not(:disabled) { transform: scale(.96); }
.cal__day:disabled { background: transparent; color: #A39A90; cursor: not-allowed; font-weight: 400; }
.cal__day.is-busy { background: repeating-linear-gradient(135deg, #EFE6D8 0 4px, transparent 4px 8px); color: #8A8076; text-decoration: line-through; }
.cal__day[aria-pressed="true"] { background: var(--c-primary); color: #fff; }
.cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 13.5px; color: var(--c-muted); }
.cal__key { width: 16px; height: 16px; border-radius: 4px; margin-left: 6px; }
.cal__key:first-child { margin-left: 0; }
.cal__key--free { background: var(--c-soft); }
.cal__key--busy { background: repeating-linear-gradient(135deg, #DCCFBC 0 3px, transparent 3px 6px); border: 1px solid var(--c-line); }

/* ---------- selettore su telefono: griglia 2×2, niente etichette tagliate ---------- */
@media (max-width: 719px) {
  .sector-switch { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 16px; overflow: visible; }
  .sector-switch__pill { display: none; }
  .sector-btn { border-radius: 12px; font-size: 14.5px; transition: color .2s ease, background-color .25s ease, transform .16s var(--ease-out); }
  .sector-btn[aria-checked="true"] { background: var(--c-primary); box-shadow: 0 4px 12px -6px var(--c-primary); }
}

/* su telefono il pulsante della chat compare insieme alla barra fissa: nella prima schermata non copre i testi */
@media (max-width: 899px) {
  body:not(.has-bar) .chat-launcher { opacity: 0; pointer-events: none; transform: scale(.9); }
}

/* menu su computer: due colonne che scorrono (niente buchi tra schede di altezza diversa) */
@media (min-width: 900px) {
  .menu-grid { display: block; columns: 2; column-gap: 24px; }
  .menu-grid > .menu-cat { break-inside: avoid; margin-bottom: 24px; }
  .menu-grid > .menu-cat:last-child { margin-bottom: 0; }
}

/* orari su telefono: giorno sopra, ore sotto (niente colonne strette spezzate) */
@media (max-width: 559px) {
  .hours__row { display: block; }
  .hours__row dt { white-space: normal; }
  .hours__row dd { text-align: left; justify-items: start; margin-top: 2px; }
}

/* orari: le colonne si adattano al numero di orari, così nessun orario resta da solo su una riga */
.slots { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }

/* note nei flussi: testo e link sulla stessa riga, icona a sinistra */
.flow-note { display: block; position: relative; padding-left: 25px; }
.flow-note .ico { position: absolute; left: 0; top: 1px; margin: 0; }

/* ---------- micro-animazioni (revisione Emil Kowalski) ---------- */
@media (hover: hover) and (pointer: fine) {
  .menu-cats__a:hover { border-color: var(--c-primary); color: var(--c-ink); }
  .al-chip:hover { border-color: var(--c-primary); }
}
/* chat: uscita più rapida dell'entrata */
.chat:not(.is-open) { transition: opacity .14s ease, transform .16s var(--ease-out); }
/* filtro allergeni: i piatti si attenuano e tornano con una dissolvenza breve */
.dish > *, .menu-card > * { transition: opacity .2s ease; }
/* riduci movimento: niente spostamenti, niente pulsazioni */
@media (prefers-reduced-motion: reduce) {
  .btn.is-pulse { animation: none; }
  .sector-switch__pill { transition: none; }
  .flow-nudge { animation: none; }
}
