/* =====================================================================
   HAIRSYNC · variante "Agenda"
   Idea: la pagina è una giornata di lavoro. Ogni sezione ha il suo orario, e
   una barra a sinistra segna a che punto della giornata sei. Il sito esiste
   per far prenotare, quindi la home mostra i prossimi posti liberi veri.
   Colori: blu cobalto pieno, carta, nero, rosa. Il rosa è l'evidenziatore.
   Movimento: un solo verbo, "scivolare". Il colore scorre da sinistra su
   pulsanti, righe e link; i blocchi entrano dal basso; il segnaposto della
   barra degli orari scorre da una sezione all'altra.
   Regola colore: il rosa e il blu non sono mai il colore di un testo piccolo
   sul fondo sbagliato; il rosa è sempre uno sfondo (con testo nero) oppure
   un grande titolo su fondo scuro.
   ===================================================================== */

/* ---------- 1 · variabili ---------- */
:root {
  --ground: #f1efea;
  --paper: #ffffff;
  --sunk: #e5e2db;
  --ink: #0f0f14;
  --muted: #5a5963;
  --line: #d7d3ca;
  --blue: #2437ff;
  --on-blue: #f6f3ec;
  --tinta: #ffb5d3;       /* il rosa: evidenziatore di tutto il sito */
  --on-tinta: #0f0f14;
  --danger: #b3261e;
  --ok: #12573a;

  --r: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --display: "Clash Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 44px -28px rgba(15, 15, 20, .5);
}

/* ---------- 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: 600; line-height: 1; letter-spacing: -.012em; margin: 0; text-wrap: balance; word-spacing: .12em; }
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: 6px; }
header.site :focus-visible, footer.site :focus-visible, .hero :focus-visible, .band-blue :focus-visible, .band-ink :focus-visible, .demo-note :focus-visible, .rail :focus-visible { outline-color: var(--paper); }
::selection { background: var(--tinta); color: var(--ink); }

.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(--on-blue); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
main { animation: pageIn .55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 3 · pulsanti e link (verbo: scivolare) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: 0 1.8rem; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--on-blue); 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: translateX(-102%); transition: transform .42s 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: 44px; padding: 0 1.3rem; font-size: .95rem; }
.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(--on-blue); }

.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); }
.band-blue .link, .band-ink .link, .hero .link { color: var(--on-blue); }
.band-blue .link:hover, .band-ink .link:hover, .hero .link:hover, .band-blue .link:focus-visible, .band-ink .link:focus-visible, .hero .link:focus-visible { color: var(--on-tinta); }

/* ---------- 4 · header ---------- */
header.site { position: sticky; top: 0; z-index: 40; min-height: 72px; background: var(--blue); color: var(--on-blue); }
.nav { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { margin-right: auto; display: inline-flex; align-items: center; gap: .55rem; font: 700 1.7rem/1 var(--display); letter-spacing: -.01em; color: var(--on-blue); text-decoration: none; word-spacing: .12em; }
.logo-blk { width: .95em; height: .5em; border-radius: .25em; background: var(--tinta); }
.menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font: 500 1rem/1 var(--sans); color: var(--on-blue); text-decoration: none; cursor: pointer; border: 0;
  padding: 11px 16px; border-radius: 999px;
  background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 0 / 0 100%; transition: background-size .35s 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(--on-blue); color: var(--blue); }
.burger { display: none; width: 46px; height: 46px; border: 2px solid var(--on-blue); 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(--on-blue); 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: 10px var(--gut) 26px; background: var(--ink); border-bottom: 3px solid var(--tinta); box-shadow: 0 30px 40px -20px rgba(15, 15, 20, .6); }
  body.menu-open .menu { display: flex; }
  .nav-link { text-align: left; font-size: 1.2rem; padding: 15px 16px; }
}

/* ---------- 5 · barra delle sezioni (solo home, da 1100 px) ---------- */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail { display: block; position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 30; }
  .rail ol { list-style: none; margin: 0; padding: 6px; border-radius: 30px; background: var(--ink); position: relative; display: grid; box-shadow: var(--shadow), 0 0 0 1px rgba(246, 243, 236, .3); }
  .rail-marker { position: absolute; left: 6px; right: 6px; top: 6px; height: 46px; border-radius: 999px; background: var(--tinta); transform: translateY(calc(var(--i, 0) * 46px)); transition: transform .6s var(--ease); }
  .rail li:not(.rail-marker) { position: relative; z-index: 1; }
  .rail a { display: grid; place-content: center; height: 46px; width: 92px; color: var(--on-blue); text-decoration: none; border-radius: 999px; }
  .rail span { font: 600 .95rem/1 var(--sans); }
  .rail a[aria-current="true"] { color: var(--on-tinta); }
  .home main .wrap { padding-left: calc(var(--gut) + 96px); max-width: calc(var(--wrap) + 96px); }
}

/* ---------- 6 · sezioni ---------- */
.sec { padding-block: clamp(64px, 9vw, 130px); }
.sec h2 { font: 700 clamp(2.4rem, 5.6vw, 4.6rem)/.98 var(--display); letter-spacing: -.015em; word-spacing: .12em; }
.sec-time { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 15px; border-radius: 999px; background: var(--ink); color: var(--on-blue); font: 600 .95rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.band-blue .sec-time { background: var(--on-blue); color: var(--blue); }
.band-ink .sec-time, .band-pink .sec-time { background: var(--tinta); color: var(--on-tinta); }
.band-pink .sec-time { background: var(--ink); color: var(--on-blue); }
.sec-head { margin-bottom: clamp(24px, 4vw, 48px); }
.sec-head p:not(.sec-time) { color: var(--muted); max-width: 44ch; margin: 16px 0 18px; }
.band-blue { background: var(--blue); color: var(--on-blue); }
.band-ink { background: var(--ink); color: var(--on-blue); }
.band-pink { background: var(--tinta); color: var(--ink); }

/* blocchi che entrano mentre si scorre (attivi solo se lo script è partito) */
.reveal-on .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { background: var(--blue); color: var(--on-blue); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 5vw, 80px) clamp(40px, 6vw, 72px); }
.hero h1 { word-spacing: .16em; font: 700 clamp(3.4rem, 9.6vw, 8.4rem)/.92 var(--display); letter-spacing: -.02em; margin-bottom: .32em; word-spacing: .12em; }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; animation: rise .95s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(108%); } }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.4; max-width: 34ch; margin-bottom: 28px; }
.ctas { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; }
.next { margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 2px solid rgba(246, 243, 236, .35); }
.next-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 14px; font: 600 1rem/1.3 var(--sans); }
.next-h small { font-weight: 400; opacity: .85; font-size: .95rem; }
.live { width: .7em; height: .7em; border-radius: 50%; background: var(--tinta); animation: blink 1.9s ease-in-out infinite; flex: none; }
@keyframes blink { 50% { opacity: .2; } }
.slot-chips { display: flex; flex-wrap: wrap; gap: 10px; min-height: 52px; }
.slot-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 2px solid var(--on-blue); border-radius: 14px;
  color: var(--on-blue); text-decoration: none; font: 500 1rem/1 var(--sans);
  background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 0 / 0 100%; transition: background-size .38s var(--ease), color .3s, border-color .3s;
}
.slot-chip b { font: 700 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; word-spacing: .12em; }
.slot-chip:hover, .slot-chip:focus-visible { background-size: 100% 100%; color: var(--on-tinta); border-color: var(--tinta); }
.none { margin: 0; }
.hero-visual { position: relative; }
.mirror { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--on-blue); background: var(--on-blue); }
.mirror img { width: 100%; height: 100%; object-fit: cover; }
.status { position: absolute; left: 4%; bottom: 6%; display: inline-flex; align-items: center; gap: .5em; padding: 12px 18px; border-radius: 999px; background: var(--tinta); color: var(--on-tinta); font: 600 1rem/1.2 var(--sans); box-shadow: var(--shadow); }
.open { display: inline-block; width: .65em; height: .65em; border-radius: 50%; background: var(--ok); flex: none; }
.open.closed { background: var(--danger); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mirror { max-width: 420px; margin-inline: auto; }
  .status { left: 50%; transform: translateX(-50%); bottom: 2%; white-space: nowrap; }
}

/* 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: 104px; margin: 0; }
.menu-group + .menu-group { margin-top: 40px; }
.menu-group h3 { font: 700 1.5rem/1 var(--display); padding-bottom: 12px; border-bottom: 2px solid var(--ink); word-spacing: .12em; }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(70px, 14vw, 150px) auto auto; align-items: center; gap: 6px 18px; padding: 20px 16px; margin-inline: -16px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
a.item { background: linear-gradient(var(--tinta), var(--tinta)) no-repeat 0 0 / 0 100%; transition: background-size .45s var(--ease), color .3s; }
a.item:hover, a.item:focus-visible { background-size: 100% 100%; }
.item .nm { font: 600 1.3rem/1.2 var(--display); letter-spacing: -.01em; word-spacing: .12em; }
.item .nm small { display: block; font: 400 .92rem/1.3 var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 3px; }
a.item:hover .nm small, a.item:focus-visible .nm small { color: var(--ink); }
.blk { height: 14px; border-radius: 7px; background: var(--sunk); position: relative; overflow: hidden; }
.blk i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 7px; background: var(--blue); }
a.item:hover .blk { background: rgba(15, 15, 20, .12); }
.item .pr { font: 700 1.3rem/1 var(--display); white-space: nowrap; word-spacing: .12em; }
.item .pr small { font: 500 .8rem var(--sans); margin-right: .3em; opacity: .75; }
.item .go { font: 600 1.3rem/1 var(--display); width: 1.4em; text-align: right; opacity: .5; transition: opacity .2s, transform .3s var(--ease); word-spacing: .12em; }
a.item:hover .go, a.item:focus-visible .go { opacity: 1; transform: translateX(5px); }
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .sec-head { position: static; }
  .item { grid-template-columns: minmax(0, 1fr) 64px auto; }
  .item .go { display: none; }
}

/* team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 30px); }
.member .mono { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px var(--r) var(--r); background: var(--sunk); display: grid; place-items: center; font: 700 4rem var(--display); border: 2px solid var(--ink); word-spacing: .12em; }
.member .mono img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font: 700 1.7rem/1 var(--display); margin: 18px 0 4px; word-spacing: .12em; }
.member .role { font-weight: 600; margin: 0 0 8px; }
.member .bio { color: var(--muted); font-size: .96rem; margin-bottom: 12px; }
.band-pink .bio { color: var(--ink); }
.band-pink .link { background-image: linear-gradient(var(--paper), var(--paper)); }
.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 .shot { flex: 1; min-height: 200px; position: relative; overflow: hidden; border-radius: var(--r); background: #25252d; }
.gallery .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font: 600 .95rem var(--sans); }
.band-ink .sec-head p:not(.sec-time) { color: #c8c6cf; }
.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 .shot { 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(2rem, 4vw, 3.2rem); margin-bottom: 22px; }
.hours { list-style: none; margin: 0; padding: 0; max-width: 480px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; margin-inline: -16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours li.today { background: var(--tinta); color: var(--on-tinta); font-weight: 600; border-bottom-color: transparent; border-radius: 14px; }
.where address { font: 600 1.6rem/1.25 var(--display); letter-spacing: -.01em; margin-bottom: 8px; word-spacing: .12em; }
.contacts { display: grid; gap: 6px; margin-top: 22px; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* invito finale */
.cta-band h2 { max-width: 11ch; margin-bottom: 32px; font-size: clamp(3rem, 9vw, 7.6rem); line-height: .9; }

/* ---------- 7 · footer ---------- */
footer.site { background: var(--ink); color: var(--on-blue); padding: clamp(44px, 6vw, 80px) 0 96px; min-height: 200px; }
.foot-logo { font: 700 clamp(3.6rem, 17vw, 13rem)/1 var(--display); letter-spacing: -.02em; margin: 0 0 clamp(20px, 3vw, 36px); padding-bottom: .06em; color: var(--tinta); word-spacing: .12em; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 28px; border-top: 1px solid rgba(246, 243, 236, .3); }
.foot-h { font: 600 1rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: 10px; color: var(--tinta); }
.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), color .3s; }
.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 rgba(246, 243, 236, .2); font-size: .9rem; color: #c8c6cf; }
.foot-legal span a { margin-right: 16px; color: var(--on-blue); }
@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 0 / 0 100%; 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(--blue); color: var(--on-blue); }
.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(--blue); color: var(--on-blue); }
.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: var(--shadow); }
.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); word-spacing: .12em; }

.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 0 / 0 100%; 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(--blue); color: var(--on-blue); }
.choice strong { font: 700 1.2rem/1.2 var(--display); letter-spacing: -.01em; word-spacing: .12em; }
.choice .muted { color: inherit; opacity: .75; }
.choice .price { font: 700 1.2rem var(--display); white-space: nowrap; word-spacing: .12em; }

.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(--blue); color: var(--on-blue); }
.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; word-spacing: .12em; }
.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); word-spacing: .12em; }
.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; word-spacing: .12em; }
.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); word-spacing: .12em; }
.day .ct { font-size: .75rem; }
.day:hover:not(:disabled) { background: var(--tinta); color: var(--on-tinta); }
.day[aria-checked="true"] { background: var(--blue); color: var(--on-blue); }
.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(--blue); color: var(--on-blue); }
.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); word-spacing: .12em; }
.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 0 / 0 100%; 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; word-spacing: .12em; }
.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; word-spacing: .12em; }
.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; }
}

/* ---------- 15 · ritocchi di questa variante ---------- */
.auth-photo { overflow: hidden; border-radius: 999px 999px var(--r) var(--r); background: var(--sunk); border: 2px solid var(--ink); }
.auth-photo img { width: 100%; height: 100%; object-fit: cover; }
.slot { border-radius: 14px; }
.day { border-radius: 18px; }
.day[aria-checked="true"], .slot[aria-checked="true"] { border-color: var(--blue); }
.summary dl { gap: 0 16px; }
.summary dt, .summary dd { padding: 11px 0; border-bottom: 2px dashed var(--line); }
.page-head h1 { font-family: var(--display); font-weight: 700; word-spacing: .12em; }
.legal-text a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; background: none; }
