/* =====================================================================
   HAIRSYNC · variante "Tinta"
   Idea: il sito è una cartella colore, qui con una sola tinta: arancione.
   Una variabile, --tinta, colora pulsanti, fondi, evidenziature e foto.
   Movimento: un solo verbo, "riempire". Il colore sale dal basso su
   pulsanti, righe del listino, link e voci di menu. Nient'altro si muove.
   Regola colore: la tinta è sempre uno sfondo, mai il colore di un testo
   (con l'arancione sul fondo chiaro non si leggerebbe bene); sopra la tinta il testo è nero.
   ===================================================================== */

/* ---------- 1 · variabili ---------- */
:root {
  --ground: #f3f1ec;
  --paper: #ffffff;
  --sunk: #e9e6de;
  --ink: #151515;
  --muted: #5c5a55;
  --line: #d9d5cb;
  --danger: #b3261e;
  --ok: #12573a;

  --tinta: #ff6a2b;
  --on-tinta: #151515;

  --r: 18px;                       /* unico raggio per foto, pannelli e campi grandi */
  --ease: cubic-bezier(.22, .7, .2, 1);
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --display: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 6px 6px 0 var(--ink);  /* ombra "adesivo" dei pannelli */
}
/* ---------- 2 · base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -.025em; word-spacing: .06em; margin: 0; text-wrap: balance; }
h3, h4 { letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
a { color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.band-ink :focus-visible, footer.site :focus-visible, .demo-note :focus-visible { outline-color: var(--paper); }
::selection { background: var(--tinta); color: var(--on-tinta); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- 3 · pulsanti e link (verbo: riempire) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.7rem; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--ground); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: color .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--tinta); transform: translateY(102%); transition: transform .38s var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--on-tinta); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn-sm { min-height: 42px; padding: 0 1.2rem; font-size: .93rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-accent { background: var(--tinta); color: var(--on-tinta); }
.btn-accent::before { background: var(--ink); }
.btn-accent:hover, .btn-accent:focus-visible { color: var(--ground); }
.band-tinta .btn::before, .band-tinta .btn-ghost::before { background: var(--ground); }
.band-tinta .btn:hover, .band-tinta .btn:focus-visible { color: var(--ink); }

.link, .linklike {
  font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; border: 0; padding: 0 .1em;
  background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 100% / 100% .36em; transition: background-size .3s var(--ease), color .3s;
}
button.linklike { background-color: transparent; }
.link:hover, .linklike:hover, .link:focus-visible, .linklike:focus-visible { background-size: 100% 100%; color: var(--on-tinta); }
.link-light { color: var(--ground); }

/* ---------- 4 · header ---------- */
header.site { position: sticky; top: 0; z-index: 40; min-height: 72px; background: var(--ground); border-bottom: 2px solid var(--ink); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.logo { margin-right: auto; display: inline-flex; align-items: center; gap: .3em; font: 800 1.75rem/1 var(--display); letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.logo-dot { width: .5em; height: .5em; border-radius: 50%; background: var(--tinta); border: 2px solid var(--ink); }
.menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font: 600 1rem/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; border: 0; background: none;
  padding: 11px 15px; border-radius: 999px;
  background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 100% / 100% 0; transition: background-size .3s var(--ease), color .3s;
}
.nav-link:hover, .nav-link:focus-visible { background-size: 100% 100%; color: var(--on-tinta); }
.nav-link[aria-current="page"] { background: var(--ink); color: var(--ground); }
.burger { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
body.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px var(--gut) 26px; background: var(--ground); border-bottom: 2px solid var(--ink); }
  body.menu-open .menu { display: flex; }
  .nav-link { text-align: left; font-size: 1.15rem; padding: 14px 16px; }
}

/* ---------- 5 · foto: due colori (nero + tinta) ---------- */
.duo, .member .mono, .hero-photo, .auth-photo { position: relative; isolation: isolate; overflow: hidden; background: var(--tinta); border: 2px solid var(--ink); border-radius: var(--r); }
.duo img, .member .mono img, .hero-photo img, .auth-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.1); mix-blend-mode: multiply; color: transparent; }

/* ---------- 6 · sezioni ---------- */
.sec { padding-block: clamp(56px, 9vw, 124px); }
.sec-head { margin-bottom: clamp(24px, 4vw, 48px); }
.sec-head h2, .how h2, .cta-band h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -.032em; }
.sec-head p { color: var(--muted); max-width: 46ch; margin: 14px 0 18px; }
.band-tinta { background: var(--tinta); color: var(--on-tinta); border-block: 2px solid var(--ink); }
.band-ink { background: var(--ink); color: var(--ground); }
.band-sunk { background: var(--sunk); border-block: 2px solid var(--ink); }

/* hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 80px); }
.kicker { display: inline-block; font: 600 .95rem/1 var(--sans); padding: 9px 16px; border: 2px solid var(--ink); border-radius: 999px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(3.3rem, 9.4vw, 8rem); line-height: .9; letter-spacing: -.038em; margin-bottom: .3em; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4; max-width: 30ch; margin-bottom: 30px; }
.ctas { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.hero-facts > div { padding: 20px 22px 22px 0; }
.hero-facts > div + div { padding-left: 22px; border-left: 2px solid var(--ink); }
.hero-facts dt { font: 600 .85rem/1 var(--sans); color: var(--muted); margin-bottom: 8px; }
.hero-facts dd { margin: 0; font: 700 1.15rem/1.25 var(--display); letter-spacing: -.02em; }
.hero-facts a { text-decoration: none; background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 100% / 100% .3em; transition: background-size .3s var(--ease), color .3s; }
.hero-facts a:hover { background-size: 100% 100%; color: var(--on-tinta); }
.open { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--ok); margin-right: .5em; }
.open.closed { background: var(--danger); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-facts > div:nth-child(n+3) { border-top: 2px solid var(--ink); }
}
@media (max-width: 480px) { .hero-facts { grid-template-columns: 1fr; } .hero-facts > div, .hero-facts > div + div { padding: 16px 0; border-left: 0; } .hero-facts > div + div { border-top: 2px solid var(--ink); } }

/* listino */
.services-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.services-grid .sec-head { position: sticky; top: 100px; margin: 0; }
.menu-group + .menu-group { margin-top: 38px; }
.menu-group h3 { font-size: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 18px; padding: 18px 14px; margin-inline: -14px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
a.item { background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 100% / 100% 0; transition: background-size .38s var(--ease), color .3s; }
a.item:hover, a.item:focus-visible { background-size: 100% 100%; color: var(--on-tinta); }
.item .nm { font: 700 1.25rem/1.2 var(--display); letter-spacing: -.01em; }
.item .nm small { display: block; font: 400 .9rem/1.3 var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 2px; }
a.item:hover .nm small, a.item:focus-visible .nm small { color: inherit; }
.item .pr { font: 700 1.25rem/1 var(--display); white-space: nowrap; }
.item .pr small { font: 500 .8rem var(--sans); margin-right: .3em; opacity: .7; }
.item .go { font: 700 1.3rem/1 var(--display); width: 1.4em; text-align: right; opacity: .55; transition: opacity .2s, transform .3s var(--ease); }
a.item:hover .go, a.item:focus-visible .go { opacity: 1; transform: translateX(4px); }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } .services-grid .sec-head { position: static; } .item { grid-template-columns: minmax(0, 1fr) auto auto; } }

/* come funziona */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.how > div > p { max-width: 34ch; margin: 18px 0 26px; font-size: 1.15rem; }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.how li { counter-increment: n; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 2px solid currentColor; }
.how li:last-child { border-bottom: 2px solid currentColor; }
.how li::before { content: counter(n); font: 800 3rem/.9 var(--display); letter-spacing: -.03em; }
.how h3 { font-size: 1.5rem; margin-bottom: 6px; }
.how li p { margin: 0; max-width: 40ch; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 30px); }
.member .mono { aspect-ratio: 4 / 5; display: grid; place-items: center; font: 800 4rem var(--display); }
.member h3 { font-size: 1.6rem; margin: 16px 0 4px; }
.member .role { font-weight: 600; margin: 0 0 8px; }
.member .bio { color: var(--muted); font-size: .96rem; margin-bottom: 12px; }
.member .tags { font-size: .88rem; color: var(--muted); }
@media (max-width: 980px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }

/* salone */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: stretch; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .duo { flex: 1; min-height: 200px; }
.gallery .duo img { position: absolute; inset: 0; }
.gallery figcaption { font: 600 .92rem var(--sans); }
.g1 { grid-column: 1 / 8; grid-row: 1 / 3; }
.g2 { grid-column: 8 / 13; }
.g3 { grid-column: 8 / 13; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } .g1, .g2, .g3 { grid-column: auto; grid-row: auto; } .gallery .duo { min-height: 240px; } }

/* orari e indirizzo */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); }
.visit h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 20px; }
.hours { list-style: none; margin: 0; padding: 0; max-width: 460px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; margin-inline: -14px; border-bottom: 1px solid var(--line); }
.hours li.today { background: var(--tinta); color: var(--on-tinta); font-weight: 700; border-bottom-color: transparent; border-radius: 10px; }
.where address { font: 700 1.5rem/1.25 var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
.contacts { display: grid; gap: 6px; margin-top: 22px; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* invito finale */
.cta-band h2 { max-width: 14ch; margin-bottom: 30px; font-size: clamp(2.8rem, 8vw, 6.6rem); line-height: .9; }

/* ---------- 7 · footer ---------- */
footer.site { background: var(--sunk); border-top: 2px solid var(--ink); padding: clamp(40px, 6vw, 72px) 0 90px; min-height: 200px; }
.foot-logo { font: 800 clamp(3.6rem, 17vw, 13rem)/1 var(--display); letter-spacing: -.045em; margin: 0 0 clamp(20px, 3vw, 36px); padding-bottom: .06em; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 28px; border-top: 2px solid var(--ink); }
.foot-h { font: 700 1rem/1.3 var(--sans); letter-spacing: 0; word-spacing: 0; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a, .foot-legal a { text-decoration: none; background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 100% / 0 .3em; transition: background-size .3s var(--ease); }
.foot-grid a:hover, .foot-legal a:hover { background-size: 100% .3em; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot-legal span a { margin-right: 16px; color: var(--ink); }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 8 · pagine interne ---------- */
.page { padding-bottom: clamp(48px, 8vw, 110px); min-height: 80vh; }
#step-host { min-height: 380px; }
.page-head { padding-block: clamp(32px, 6vw, 80px) clamp(20px, 3vw, 40px); }
.page-head h1 { font-size: clamp(2.7rem, 7.4vw, 6rem); line-height: .95; letter-spacing: -.03em; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin: 18px 0 0; }
.legal-text h2 { font-size: 1.7rem; margin: 38px 0 12px; }
.legal-text p, .legal-text li { line-height: 1.65; }
.legal-text ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-text a { font-weight: 600; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--ink); background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 100% / 100% 0; transition: background-size .3s var(--ease), color .3s; }
.chip:hover, .chip:focus-visible { background-size: 100% 100%; color: var(--on-tinta); }
.chip[aria-current="true"] { background: var(--ink); color: var(--ground); }
.pricelist .menu-group { scroll-margin-top: 100px; }
.pricelist .item { grid-template-columns: minmax(0, 1fr) auto; }
.pricelist .lead-dots { display: none; }
.pricelist .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.pricelist .meta .link { color: var(--ink); }

/* ---------- 9 · moduli ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; font-weight: 600; font-size: .96rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; margin-left: 6px; }
.input { width: 100%; min-height: 54px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); font: 400 1.05rem var(--sans); }
textarea.input { padding: 14px 16px; min-height: 116px; resize: vertical; }
select.input { padding-right: 12px; }
.input:focus { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px var(--tinta); }
.input:disabled { background: var(--sunk); color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.notice { padding: 13px 16px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); font-size: .96rem; margin: 0; }
.notice.err { background: #fbe3e0; color: #7e1912; border-color: #7e1912; }
.notice.ok { background: #d9f2e6; color: var(--ok); border-color: var(--ok); }
.form-foot { font-size: .95rem; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--gut) clamp(56px, 8vw, 110px); }
.auth-photo { aspect-ratio: 4 / 5; max-height: 640px; box-shadow: var(--shadow); }
.auth-box { width: 100%; max-width: 460px; }
.auth-box h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: .98; letter-spacing: -.036em; margin-bottom: 14px; }
.auth-box > p, .auth-box [id^="step-"] > p { color: var(--muted); margin-bottom: 8px; }
.auth-box .form { margin-top: 24px; }
.auth-alt { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--ink); font-size: .98rem; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-photo { display: none; } }

/* ---------- 10 · prenotazione ---------- */
.steps { list-style: none; margin: 0 0 36px; padding: 0; display: flex; gap: 8px 12px; flex-wrap: wrap; counter-reset: s; font-weight: 600; }
.steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 8px; border: 2px solid var(--line); border-radius: 999px; color: var(--muted); }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: .82rem; }
.steps li.on { border-color: var(--ink); background: var(--tinta); color: var(--on-tinta); }
.steps li.done { border-color: var(--ink); color: var(--ink); }
.steps li.done::before { content: "✓"; background: var(--ink); border-color: var(--ink); color: var(--ground); }
@media (max-width: 640px) { .steps li:not(.on) span { display: none; } .steps li:not(.on) { padding: 0 8px; } }

.step { animation: stepIn .35s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }
.step > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 24px; }
.back { margin-top: 28px; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.who { max-width: 540px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); margin-bottom: 8px; }
.seg button { border: 0; background: none; min-height: 44px; border-radius: 999px; cursor: pointer; font: 600 .98rem var(--sans); color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.who .form { margin-top: 22px; }
.who .intro { color: var(--muted); font-size: .96rem; margin-top: 16px; }
.who-me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); }
.who-me .mono { width: 52px; height: 52px; border-radius: 50%; background: var(--tinta); color: var(--on-tinta); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 1.5rem var(--display); }

.choice-list { max-width: 780px; }
.choice-group + .choice-group { margin-top: 32px; }
.choice-group h3 { font-size: 1.4rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.choice {
  width: calc(100% + 28px); margin-inline: -14px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; text-align: left;
  padding: 17px 14px; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--ink);
  background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 100% / 100% 0; transition: background-size .38s var(--ease), color .3s;
}
.choice:hover, .choice:focus-visible { background-size: 100% 100%; color: var(--on-tinta); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.choice strong { font: 700 1.2rem/1.2 var(--display); letter-spacing: -.01em; }
.choice .muted { color: inherit; opacity: .75; }
.choice .price { font: 700 1.2rem var(--display); white-space: nowrap; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; max-width: 940px; }
.staff-pick { display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); transition: background-color .25s; }
.staff-pick:hover, .staff-pick:focus-visible { background: var(--tinta); color: var(--on-tinta); }
.staff-pick[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.staff-pick .av { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--tinta); color: var(--on-tinta); display: grid; place-items: center; font: 800 1.5rem var(--display); overflow: hidden; isolation: isolate; }
.staff-pick .av.any { font-size: .85rem; font-family: var(--sans); font-weight: 700; }
.staff-pick .av img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); mix-blend-mode: multiply; }
.staff-pick strong { display: block; font: 700 1.15rem var(--display); }
.staff-pick .muted { color: inherit; opacity: .75; }

.agenda { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 52px); align-items: start; }
.agenda > div { min-width: 0; }
.month { font: 800 2rem/1 var(--display); letter-spacing: -.02em; margin-bottom: 16px; }
.month::first-letter { text-transform: uppercase; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: 0 0 78px; height: 98px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; place-items: center; padding: 9px 4px; cursor: pointer; scroll-snap-align: start; font: inherit; transition: background-color .25s; }
.day .wd { font-size: .82rem; font-weight: 500; }
.day .dn { font: 800 1.9rem/1 var(--display); }
.day .ct { font-size: .75rem; }
.day:hover:not(:disabled) { background: var(--tinta); color: var(--on-tinta); }
.day[aria-checked="true"] { background: var(--ink); color: var(--ground); }
.day:disabled { opacity: .35; cursor: default; border-style: dashed; }
.period { margin-top: 26px; }
.period h4 { font: 700 .95rem var(--sans); letter-spacing: 0; margin-bottom: 12px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.slot { min-height: 48px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; font: 600 1rem var(--sans); font-variant-numeric: tabular-nums; transition: background-color .25s; }
.slot:hover { background: var(--tinta); color: var(--on-tinta); }
.slot[aria-checked="true"] { background: var(--ink); color: var(--ground); }
.summary { position: sticky; top: 100px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; }
.summary h3 { font-size: 1.6rem; margin-bottom: 16px; }
.summary dl { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .96rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
@media (max-width: 900px) { .agenda { grid-template-columns: 1fr; } .summary { position: static; } }

.panel { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(22px, 3.2vw, 34px); }
.panel h2 { font-size: 1.9rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.success { text-align: center; }
.success h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 8px 0 14px; }
.success p { margin-bottom: 14px; }
.success .kv { text-align: left; max-width: 420px; margin: 20px auto; }
.check-mark { width: 68px; height: 68px; margin: 0 auto 10px; border-radius: 50%; background: var(--tinta); color: var(--on-tinta); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; }
.manage-link { display: grid; gap: 8px; text-align: left; margin-top: 22px; }
.manage-link .manage-row { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.manage-link .manage-row .input { flex: 1; min-width: 180px; font-size: .88rem; min-height: 46px; }
.skeleton { background: linear-gradient(90deg, var(--sunk) 25%, var(--ground) 50%, var(--sunk) 75%); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { padding: 26px 0; color: var(--muted); }

/* ---------- 11 · area cliente e gestione ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.appt { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.appt:last-child { border-bottom: 0; }
.appt .date { text-align: center; line-height: 1; background: var(--tinta); color: var(--on-tinta); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 4px 6px; }
.appt .date span { font-size: .78rem; font-weight: 600; display: block; text-transform: capitalize; }
.appt .date b { font: 800 1.9rem/1.1 var(--display); }
.appt .act { display: flex; gap: 10px; align-items: center; justify-self: end; flex-wrap: wrap; }
.pill { font: 600 .8rem var(--sans); padding: 5px 12px; border-radius: 999px; background: #d9f2e6; color: var(--ok); border: 1.5px solid var(--ok); white-space: nowrap; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .appt { grid-template-columns: 58px 1fr; } .appt .act { grid-column: 2; justify-self: start; } }
.shortcuts { margin-top: 22px; }
.shortcut { display: grid; gap: 4px; padding: 18px; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 100% / 100% 0; transition: background-size .38s var(--ease), color .3s; }
.shortcut:hover, .shortcut:focus-visible { background-size: 100% 100%; color: var(--on-tinta); }
.shortcut b { font: 800 1.3rem var(--display); letter-spacing: -.02em; }
.notice-panel { border-left-width: 10px; }
#link-box { margin-bottom: 26px; }
#link-box .panel p { margin: 8px 0 16px; }

/* ---------- 12 · elementi fissi ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 15px; border-radius: 999px; background: var(--ink); color: var(--ground); border: 2px solid var(--ink); font-weight: 600; text-decoration: none; transition: background-color .25s, color .25s; }
.wa:hover, .wa:focus-visible { background: var(--tinta); color: var(--on-tinta); }
@media (max-width: 520px) { .wa span { display: none; } .wa { width: 54px; padding: 0; justify-content: center; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--ground); padding: 13px 22px; border-radius: 999px; font-weight: 500; max-width: calc(100vw - 32px); transition: transform .3s var(--ease), opacity .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--danger); }
.demo-note { position: relative; background: var(--ink); color: #cfcbc2; font-size: .85rem; padding: 9px 52px 9px var(--gut); text-align: center; }
.demo-note b { color: var(--ground); font-weight: 600; }
.demo-note .linklike { color: var(--ground); margin-left: 6px; font-size: .85rem; }
.demo-close { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.3rem; color: #cfcbc2; border-radius: 50%; }
.demo-close:hover { background: rgba(255, 255, 255, .14); }

/* ---------- 13 · 404 ---------- */
.nf { min-height: 60vh; display: grid; align-content: center; gap: 20px; padding-block: 60px; }
.nf .big { font: 800 clamp(7rem, 30vw, 22rem)/.85 var(--display); letter-spacing: -.05em; color: var(--ink); text-shadow: .05em .05em 0 var(--tinta); margin: 0; }
.nf h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ---------- 14 · movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
