/* =========================================================
   Demo "Studi su appuntamento" — 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: Figtree (SIL OFL 1.1), un solo file variabile, pesi 400 e 700.
   ========================================================= */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/figtree-latin.woff2) format('woff2'); }

:root {
  --c-bg: #FBF8F4;
  --c-surface: #FFFFFF;
  --c-tint: #F4EEE6;
  --c-ink: #1C2530;
  --c-muted: #55606B;
  --c-line: #E7DED3;
  --c-primary: #0F766E;
  --c-primary-dark: #0B5A54;
  --c-soft: #E3F2EF;
  --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: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --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="veterinario"] { --c-primary: #0F766E; --c-primary-dark: #0B5A54; --c-soft: #E3F2EF; }
html[data-settore="fisioterapia"] { --c-primary: #2B59A8; --c-primary-dark: #1F4785; --c-soft: #E6EDF8; }
html[data-settore="ottico"] { --c-primary: #A61E4D; --c-primary-dark: #84173D; --c-soft: #F8E6EC; }
html[data-settore="padel"] { --c-primary: #C2410C; --c-primary-dark: #9A3412; --c-soft: #FBEAE0; }

/* ---------- 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, h3, .h1 { font-weight: 700; color: var(--c-ink); line-height: 1.12; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
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(.94); }
.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(251, 248, 244, .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="veterinario"] .hero__copy [data-per="veterinario"],
html[data-settore="fisioterapia"] .hero__copy [data-per="fisioterapia"],
html[data-settore="ottico"] .hero__copy [data-per="ottico"],
html[data-settore="padel"] .hero__copy [data-per="padel"] { display: block; }
.js-cta [data-per] { display: none; }
html[data-settore="veterinario"] .js-cta [data-per="veterinario"],
html[data-settore="fisioterapia"] .js-cta [data-per="fisioterapia"],
html[data-settore="ottico"] .js-cta [data-per="ottico"],
html[data-settore="padel"] .js-cta [data-per="padel"] { 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(32px, 8.4vw, 54px); line-height: 1.06; letter-spacing: -.03em; max-width: 17ch; }
.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; }
.hero__badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .94); color: var(--c-ink); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.hero__badge .ico { width: 18px; height: 18px; color: var(--c-primary); }
@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(40px, 3.9vw, 52px); max-width: 19ch; }
}
/* 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; } }

/* ---------- urgenze ---------- */
.urgent-wrap { padding: 0 0 8px; }
.urgent { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--c-urgent-soft); border: 2px solid var(--c-urgent); }
.urgent__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-urgent); color: #fff; }
.urgent__title { font-size: 22px; color: #7A160E; }
.urgent__text { margin-top: 6px; }
.urgent__after { margin-top: 6px; font-size: 15px; color: #5B2420; }
.urgent .btn { width: 100%; font-size: 18px; }
@media (min-width: 900px) {
  .urgent { grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px 28px; }
  .urgent .btn { width: auto; }
}

/* ---------- servizi ---------- */
.services { display: grid; gap: 14px; }
@media (min-width: 680px) and (max-width: 1039px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .services > .service:last-child:nth-child(odd) { grid-column: 1 / -1; } /* niente scheda isolata */
}
/* su computer le colonne dipendono dal numero di servizi, così l'ultima riga non resta con una scheda sola */
@media (min-width: 1040px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .services[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
  .services[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
}
.service { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .service:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } }
.service__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-soft); color: var(--c-primary-dark); }
.service__price { text-align: right; line-height: 1.15; }
.service__price small { display: block; font-size: 13px; color: var(--c-muted); }
.service__price strong { font-size: 24px; letter-spacing: -.02em; }
.service__price .is-free { color: var(--c-success); }
.service__unit { font-size: 13px; color: var(--c-muted); }
.service h3 { margin-top: 4px; }
.service__desc { color: var(--c-muted); font-size: 16px; flex: 1; }
.service__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--c-muted); }
.service__meta span { display: inline-flex; align-items: center; gap: 6px; }
.service__meta .ico { width: 16px; height: 16px; }
.service__save { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); background: var(--c-success-soft); color: var(--c-success); font-weight: 700; font-size: 13px; }
.service .btn { margin-top: 4px; }
.service__note { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 4px; border-radius: var(--r-md); background: var(--c-tint); font-size: 15px; font-weight: 700; color: var(--c-ink); text-align: center; padding: 6px 12px; }
.service__note .ico { width: 18px; height: 18px; color: var(--c-primary); }

/* ---------- 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; }

/* ---------- chi siamo ---------- */
.team { display: grid; gap: 32px; }
@media (min-width: 960px) { .team { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; } }
.people { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); }
.person__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 17px; }
.person h3 { font-size: 17px; }
.person__role { font-size: 14px; font-weight: 700; color: var(--c-primary-dark); }
.person p:last-child { font-size: 15px; color: var(--c-muted); margin-top: 4px; }
.team__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--c-soft); box-shadow: var(--shadow-md); }
.team__media picture, .team__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 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; }
