/* =========================================================================
   Alberto Reggiani — Fisioterapista · Demo EntropiaLab
   Base crema + blu navy del biglietto da visita. Titoli serif (calore),
   testo sans (chiarezza clinica). Mobile-first, zero dipendenze esterne.
   ========================================================================= */

:root {
  /* --- Colori --- */
  --navy:        #1a3450;
  --navy-dark:   #102438;
  --navy-mid:    #2c5480;
  --navy-soft:   #7d99b8;
  --navy-100:    #d7e2ee;
  --navy-50:     #edf3f9;
  --edge:        #7791b0;   /* bordo dei controlli: 3:1 su bianco e su crema */

  --cream:       #fbf7f0;
  --cream-2:     #f4ecdf;
  --white:       #ffffff;
  --line:        #e3d9c9;
  --line-navy:   #2a4a6b;

  --ink:         #14202e;
  --ink-soft:    #4a5c70;
  --ink-onnavy:  #f2f6fa;
  --ink-onnavy-soft: #b9cbe0;

  --clay:        #9d5522;   /* accento caldo, usato con parsimonia */
  --clay-dark:   #7f4319;
  --clay-50:     #f7ede3;

  /* --- Tipografia --- */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  /* --- Forma & ritmo --- */
  --wrap: 1120px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 16px; --sp-4: 24px;
  --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px;

  --shadow-sm: 0 2px 8px rgba(16, 36, 56, .07);
  --shadow-md: 0 10px 28px rgba(16, 36, 56, .10);
  --shadow-lg: 0 26px 60px rgba(16, 36, 56, .22);

  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Curva quasi sinusoidale, simmetrica: serve ai cicli che vanno e tornano (il respiro del
     marchio). Con --ease, che è un ease-out, l'andata parte di scatto e il ritorno strappa. */
  --ease-breath: cubic-bezier(.45, .05, .55, .95);
  --dur: 220ms;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (min-width: 900px) { html { scroll-padding-top: 88px; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--navy); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.18; margin: 0 0 .45em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-navy :focus-visible,
.site-footer :focus-visible { outline-color: #ffc27a; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ===================== BOTTONI ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--r-md);
  font-size: 1rem; font-weight: 600; text-decoration: none; text-align: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 140ms var(--ease),
              box-shadow var(--dur) var(--ease);
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--edge); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy-50); }

.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.06rem; }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 240, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px var(--sp-3);
  min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; min-height: 48px; }
.brand-mark { width: 28px; height: auto; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 1.02rem; font-weight: 600; white-space: nowrap; }
.brand-role { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }

.main-nav { display: none; }
.header-cta { display: none; margin-left: auto; }

.nav-toggle {
  margin-left: auto; width: 48px; height: 48px;
  display: grid; place-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: var(--sp-2) 20px var(--sp-4);
  box-shadow: var(--shadow-md);
}
.main-nav a {
  padding: 14px 4px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); font-weight: 500;
}
.main-nav a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; min-height: 72px; }
  .brand-mark { width: 31px; }
  .main-nav { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
  .main-nav a { border: 0; padding: 6px 0; position: relative; }
  .main-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--clay); transition: right var(--dur) var(--ease);
  }
  .main-nav a:hover::after { right: 0; }
  .header-cta { display: inline-flex; margin-left: var(--sp-3); }
}

/* ===================== HERO ===================== */
.hero {
  background:
    radial-gradient(1100px 520px at 78% 8%, #ffffff 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: var(--sp-6) 0 var(--sp-7);
  overflow: hidden;
}
.hero-inner { display: grid; gap: var(--sp-5); }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--clay-dark); margin: 0 0 var(--sp-3);
}
.eyebrow-light { color: #ffc99c; }
.hero-title { font-size: clamp(2.05rem, 7.4vw, 3.35rem); letter-spacing: -.015em; color: var(--navy); margin-bottom: var(--sp-3); }
.hero-title-2 { color: var(--ink); }
.hero-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: var(--sp-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero-actions .btn { flex: 1 1 220px; }

.hero-facts {
  display: grid; gap: var(--sp-3); margin: 0;
  border-top: 1px solid var(--line); padding-top: var(--sp-4);
}
.hero-facts dt { font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-soft); }
.hero-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }

/* Su mobile il logo animato apre la pagina: è il primo elemento che si vede.
   Il simbolo è verticale (viewBox 400 × 503): si fissa la larghezza, l'altezza segue. */
.hero-visual { order: -1; display: flex; justify-content: flex-start; color: var(--navy); }
.wave-logo { width: 152px; height: auto; }
@media (min-width: 900px) {
  .hero-visual { order: 0; justify-content: center; }
  .wave-logo { width: min(100%, 300px); }
}
/* La scia dietro la figura deve leggere come movimento che sfuma, non come persone ripetute:
   ogni eco è appena percettibile. Colonna e mano non hanno eco: stanno con la figura (.wave-1). */
.wave-layer { opacity: .1; }
.wave-1 { opacity: 1; }
.wave-2 { opacity: .22; }
.wave-3 { opacity: .13; }
.wave-4 { opacity: .07; }

/* Le posizioni di riposo (0%/100%) devono combaciare con i transform inline delle <use> in
   index.html: la proprietà CSS transform sostituisce l'attributo, non lo somma. È anche ciò che
   fa atterrare le onde nel punto giusto con prefers-reduced-motion, che azzera la durata.

   Il movimento è costruito su tre regole, non su un tremolio uniforme:
   1. ampiezza CRESCENTE verso l'esterno (3 → 7 → 10 → 12,5 unità): la figura è la sorgente
      e resta quasi ferma, la scia si muove tanto più quanto è lontana;
   2. sfasamento di 1,2s tra un eco e il successivo (vedi i ritardi sotto): senza, i quattro strati
      si spostano come un blocco unico che trema; con, il passo tra un eco e l'altro si allarga e
      si stringe e l'onda legge come propagazione che si allontana dalla figura;
   3. opacità che cala nel punto più lontano: l'eco sembra dissolversi mentre si allontana.

   ⚠️ Limite del viewBox (-4 -22 400 503). La figura arriva a x=331 e parte da y=0: nell'istante di
   massima escursione wave-4 sta a translate(54.5,-14), cioè x=385,5 e y=-14. Restano ~10 unità di
   margine a destra e ~8 in alto: ampiezze più larghe di così taglierebbero l'eco più esterno.
   Si animano solo transform e opacity: nessuna proprietà che forzi layout o ridisegno. */
@keyframes waveDrift1 {
  0%, 100% { transform: translate(0px, 0px); }
  50%      { transform: translate(3px, -1px); }
}
@keyframes waveDrift2 {
  0%, 100% { transform: translate(14px, -3px); opacity: .22; }
  50%      { transform: translate(21px, -6px); opacity: .15; }
}
@keyframes waveDrift3 {
  0%, 100% { transform: translate(28px, -6px); opacity: .13; }
  50%      { transform: translate(38px, -10px); opacity: .085; }
}
@keyframes waveDrift4 {
  0%, 100% { transform: translate(42px, -9px); opacity: .07; }
  50%      { transform: translate(54.5px, -14px); opacity: .04; }
}
@keyframes supportBreath { 0%,100% { opacity: 1; } 50% { opacity: .86; } }

/* Ciclo lungo (9s) ed easing simmetrico: l'escursione è ampia ma la velocità resta da respiro.
   I ritardi sono NEGATIVI perché al caricamento le onde siano già in moto invece di partire da
   fermo una alla volta; lo scarto fra loro resta 1,2s, cioè lo sfasamento del punto 2. */
.wave-1 { animation: waveDrift1 9s var(--ease-breath) infinite -4.8s; }
.wave-2 { animation: waveDrift2 9s var(--ease-breath) infinite -3.6s; }
.wave-3 { animation: waveDrift3 9s var(--ease-breath) infinite -2.4s; }
.wave-4 { animation: waveDrift4 9s var(--ease-breath) infinite -1.2s; }
.wave-support { animation: supportBreath 9s var(--ease-breath) infinite -4.8s; }

@media (min-width: 900px) {
  .hero { padding: var(--sp-8) 0; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--sp-7); }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ===================== SEZIONI ===================== */
.section { padding: var(--sp-7) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--ink-onnavy); }
.section-navy a { color: #fff; }
.section-head { max-width: 62ch; margin-bottom: var(--sp-5); }
.section-title { font-size: clamp(1.7rem, 5vw, 2.4rem); color: var(--navy); letter-spacing: -.01em; }
.section-navy .section-title { color: #fff; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.lead-light { color: var(--ink-onnavy-soft); }
.section-sub { color: var(--ink-soft); margin: .6em 0 0; }

@media (min-width: 900px) { .section { padding: var(--sp-8) 0; } }

/* --- Chi sono --- */
.chi-grid { display: grid; gap: var(--sp-6); }
.steps { display: grid; gap: var(--sp-3); }
/* `>`: dentro il passo 3 c'è un secondo elenco, che non deve prendere lo stile della card. */
.steps > li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4); display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-3);
  align-items: center; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--navy-50); color: var(--navy); font-weight: 700; font-size: 1.05rem;
}
.steps h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
/* Il testo occupa tutta la card: a 390px una colonna di 44px tolta al testo pesa. */
.step-body { grid-column: 1 / -1; }
.step-body p { margin: 0 0 .7em; color: var(--ink-soft); font-size: .98rem; }
.step-body p:last-child { margin-bottom: 0; }
.step-list { margin: 0 0 .7em; display: grid; gap: 6px; }
.step-list li {
  position: relative; padding-left: 22px; color: var(--ink); font-size: .98rem;
}
.step-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--clay);
}

/* Formazione: testo discorsivo di Alberto, tre paragrafi. */
.formazione { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.formazione-title { font-size: 1.15rem; color: var(--navy); margin-bottom: var(--sp-3); }
.formazione p { margin: 0 0 var(--sp-3); }
.formazione p:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .chi-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
  .step-body { grid-column: 2; }
}

/* --- Servizi --- */
.servizi-grid { display: grid; gap: var(--sp-5); }
.servizi-cards { display: grid; gap: var(--sp-3); align-content: start; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4); box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--navy);
}
.card h3 { font-size: 1.3rem; color: var(--navy); }
.card p { color: var(--ink-soft); margin-bottom: .6em; }
.card-meta {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay-dark); font-weight: 700; margin: 0;
}

/* Su mobile la figura apre la sezione, invece di restare in coda dopo le card. */
.bodyart {
  order: -1; margin: 0; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
}
/* Su mobile la figura si limita in altezza: a piena larghezza occuperebbe due schermate.
   La larghezza è esplicita (340px di altezza nel rapporto 170:330) perché i punti si
   posizionano e si dimensionano in proporzione a lei (container query). */
.bodyart-fig {
  position: relative; width: 175px; aspect-ratio: 170 / 330;
  container-type: inline-size;
}
.bodyart-svg { display: block; width: 100%; height: 100%; }
.bodyart-cap { margin: 0; font-size: .92rem; color: var(--ink-soft); text-align: center; }
.ba-path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* Punti toccabili: il link è un quadrato di 44px centrato sul punto (area di tocco), il
   cerchio visibile resta grande come prima (raggio 5 nel viewBox). */
.ba-hot {
  position: absolute; width: 44px; height: 44px;
  left: calc(var(--x) / 170 * 100%); top: calc(var(--y) / 330 * 100%);
  transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  color: var(--navy); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.ba-hot:focus-visible { outline-offset: -2px; border-radius: 50%; }
/* Testa e bocca sono a pochi pixel: aree di tocco ridotte perché non si coprano a vicenda. */
.ba-hot--sm { width: 30px; height: 30px; }
.ba-dot {
  position: relative; display: block;
  width: calc(100cqw * 10 / 170); height: calc(100cqw * 10 / 170); min-width: 10px; min-height: 10px;
  border-radius: 50%; background: currentColor;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.ba-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0; pointer-events: none;
}
.ba-hot:hover, .ba-hot:focus-visible { color: var(--clay); }
.ba-hot:hover .ba-dot, .ba-hot:focus-visible .ba-dot { transform: scale(1.3); }
.ba-label {
  position: absolute; top: 50%; transform: translateY(-50%);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3;
  box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.ba-hot--dx .ba-label { left: calc(50% + 14px); }
.ba-hot--sx .ba-label { right: calc(50% + 14px); }
.ba-hot:hover .ba-label, .ba-hot:focus-visible .ba-label { opacity: 1; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@keyframes ba-pulse {
  0%   { opacity: .7; transform: scale(1); }
  100% { opacity: 0;  transform: scale(2.6); }
}

/* Categoria raggiunta da un punto del corpo: si accende un attimo, poi torna com'era. */
.tratt.is-flash, .tratt-list li.is-flash { box-shadow: 0 0 0 3px var(--clay), var(--shadow-md); }
.tratt-list li.is-flash { border-radius: 6px; box-shadow: 0 0 0 3px #ffc99c; }
.tratt, .tratt-list li { transition: box-shadow 600ms var(--ease); }
.tratt-list li:focus { outline: none; }
.bodyart.is-visible .ba-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1400ms var(--ease);
}
.bodyart.is-visible .ba-lines .ba-path:nth-child(n+2) { transition-delay: 120ms; }
.bodyart.is-visible .ba-spine .ba-path { transition-delay: 500ms; }
/* Con JS i punti compaiono dopo i tracciati; senza JS sono subito lì (e i link funzionano). */
.js .ba-hot { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.js .bodyart.is-visible .ba-hot {
  opacity: 1; transform: translate(-50%, -50%);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.js .bodyart.is-visible .ba-hot:nth-of-type(1) { transition-delay: 900ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(2) { transition-delay: 1000ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(3) { transition-delay: 1100ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(4) { transition-delay: 1200ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(5) { transition-delay: 1300ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(6) { transition-delay: 1400ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(7) { transition-delay: 1500ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(8) { transition-delay: 1600ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(9) { transition-delay: 1700ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(10) { transition-delay: 1800ms; }
/* L'invito: finito il disegno, ogni punto manda due cerchi e poi si ferma. Dice "si tocca"
   senza bisogno di spiegarlo, e non insiste. */
.js .bodyart.is-visible .ba-dot::after { animation: ba-pulse 1400ms var(--ease) 2300ms 2; }
.js .bodyart.is-visible .ba-hot:nth-of-type(n+4) .ba-dot::after { animation-delay: 2450ms; }
.js .bodyart.is-visible .ba-hot:nth-of-type(n+8) .ba-dot::after { animation-delay: 2600ms; }

@media (min-width: 900px) {
  .servizi-grid { grid-template-columns: 1.15fr .85fr; gap: var(--sp-7); align-items: center; }
  .bodyart { order: 0; }
  .bodyart-fig { width: min(100%, 290px); }
}

/* ===================== TRATTAMENTI ===================== */
/* Nove categorie, ~30 voci, in tre gruppi: su telefono le osteopatiche sono aperte, le altre
   <details> chiusi (l'elenco dei titoli fa da indice); da 900px main.js le apre tutte, due per riga. */
.tratt-grid { display: grid; gap: var(--sp-2); }
.tratt {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.tratt summary {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 56px; padding: 12px 18px; cursor: pointer; list-style: none;
  border-radius: var(--r-md);
}
.tratt summary::-webkit-details-marker { display: none; }
.tratt summary::after {
  content: ""; flex: 0 0 10px; height: 10px; margin-left: 4px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.tratt[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.tratt-name {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; line-height: 1.25;
  color: var(--navy); margin: 0;
}
.tratt summary .tratt-name { flex: 1 1 auto; }
.tratt-count { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.tratt-list { display: grid; gap: 10px; padding: 0 18px 18px; }
.tratt-list li {
  position: relative; padding-left: 20px; font-size: 1rem; line-height: 1.45; color: var(--ink);
}
.tratt-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy-soft);
}
.tratt-note { color: var(--ink-soft); }
.tag {
  display: inline-block; vertical-align: 1px; margin-left: 4px;
  padding: 1px 9px; border-radius: 999px;
  background: var(--navy-50); color: var(--navy); border: 1px solid var(--navy-100);
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}

/* Tre gruppi, in quest'ordine dal 2026-10-21: terapia manuale, osteopatia, onde d'urto.
   L'osteopatia ha un fondo suo (richiesta di Alberto); gli altri due stanno sul fondo della sezione. */
.tratt-gruppo + .tratt-gruppo { margin-top: var(--sp-6); }
.tratt-gruppo-title {
  font-size: 1.25rem; color: var(--navy); margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
}
.tratt-gruppo-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.tratt-gruppo--osteo {
  background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-3);
}
.tratt-gruppo--osteo .tratt-gruppo-title { font-size: 1.45rem; }
.tratt-gruppo--osteo .tratt-gruppo-title::after { background: var(--navy-100); }
.tratt-gruppo--osteo .tratt { border-top: 3px solid var(--navy); }
.tratt-gruppo--osteo .tratt-list li::before { background: var(--navy); }

/* Onde d'urto: distinte da un'icona e dall'accento caldo, ma con lo stesso peso delle altre
   schede. Non si chiudono: sono una sola scheda. */
.tratt-onde { padding: var(--sp-4) 18px; border-left: 4px solid var(--clay); }
.tratt-onde-head { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-3); }
.tratt-onde-ico { width: 40px; height: 40px; color: var(--clay); }
.tratt-onde-desc { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.tratt-onde .tratt-list { padding: 0; }
.tratt-onde .tratt-list li::before { background: var(--clay); }

@media (min-width: 560px) {
  .tratt-list-cols { grid-template-columns: 1fr 1fr; column-gap: var(--sp-5); }
}
@media (min-width: 900px) {
  .tratt-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: start; }
  .tratt-gruppo--osteo { padding: var(--sp-5); }
  .tratt-onde { padding: var(--sp-4) var(--sp-5); }
  .tratt-onde-head { max-width: 70ch; }
  .tratt-list-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ===================== CONTATTI ===================== */
.contatti-grid { display: grid; gap: var(--sp-5); }
.contatti-grid .lead { margin-bottom: 0; max-width: 46ch; }
.contatti-actions { display: grid; gap: var(--sp-3); align-content: center; }
.contact-btn-lg { min-height: 72px; padding: 14px 20px; }
.contact-btn-lg .ico { width: 28px; height: 28px; flex-basis: 28px; }
.contact-label { display: block; font-size: 1.1rem; }
.contact-sub { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-onnavy-soft); }
@media (min-width: 900px) {
  .contatti-grid { grid-template-columns: 1.1fr .9fr; gap: var(--sp-7); align-items: center; }
}

/* ===================== DOVE ===================== */
.dove-grid { display: grid; gap: var(--sp-5); }
.ico { width: 24px; height: 24px; fill: var(--navy); }
.sedi { display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
.sede { display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-3); align-items: start; }
.sede .ico { margin-top: 2px; }
.sede-city { font-size: 1.2rem; color: var(--navy); margin: 0 0 2px; }
.sede-addr { margin: 0; color: var(--ink-soft); }
/* Link a Google Maps: è un tap target, alto almeno 44px. */
.sede-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.map { margin: 0; }
.map-caption { margin-top: var(--sp-2); font-size: .9rem; color: var(--ink-soft); text-align: center; }
.map-svg { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.map-bg { fill: #eef1ea; }
.map-roads { stroke: #ffffff; }
.map-blocks rect { fill: #dfe3da; }
.map-street { font-family: var(--font-sans); font-size: 11px; font-weight: 600; fill: #6f7a68; letter-spacing: .04em; }
.map-pin path { fill: var(--navy); }
.map-pulse { fill: var(--navy); opacity: .16; }
.map.is-visible .map-pulse { animation: pinPulse 2.6s var(--ease) infinite; }
@keyframes pinPulse {
  0%, 100% { transform: scale(.75); opacity: .22; }
  50% { transform: scale(1.25); opacity: .05; }
}

@media (min-width: 900px) {
  .dove-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
}

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-dark); color: var(--ink-onnavy); padding: var(--sp-6) 0 var(--sp-4); }
.footer-inner { display: grid; gap: var(--sp-5); }
.footer-mark { width: 51px; height: auto; margin-bottom: var(--sp-3); }
.footer-name { font-family: var(--font-serif); font-size: 1.3rem; margin: 0 0 2px; }
.footer-role { color: var(--ink-onnavy-soft); font-size: .95rem; margin: 0; }
.footer-contacts { display: grid; gap: var(--sp-2); }
.contact-btn {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 18px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-navy);
  border-radius: var(--r-md); color: #fff; text-decoration: none; font-weight: 600;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 140ms var(--ease);
  overflow-wrap: anywhere;
}
.contact-btn:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-1px); }
.contact-btn .ico { fill: #fff; flex: 0 0 24px; }
.footer-where p { color: var(--ink-onnavy-soft); margin-bottom: var(--sp-3); }
.footer-where strong { color: #fff; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-7); }
}

/* ===================== SCROLL REVEAL ===================== */
/* Nascosto solo se il JS è attivo: senza JS la pagina resta leggibile. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

/* ===================== MOTION RIDOTTO ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ba-path { stroke-dashoffset: 0; }
  .js .ba-hot { opacity: 1; transform: translate(-50%, -50%); }
  .ba-dot::after { animation: none !important; }
  .ba-hot:hover .ba-dot, .ba-hot:focus-visible .ba-dot { transform: none; }
  .btn:hover, .contact-btn:hover { transform: none; }
  .map-pulse { animation: none; }
}
