/* ════════════════════════════════════════════════════════════════════
   Dott. Federico Filippi — Osteopata · Sistema di design condiviso
   "LO SPECIALISTA" — clinical editorial. Tokens, scala e componenti
   portati 1:1 dalla HOME (index.html) che resta la fonte di verità.
   Solo DM Sans · palette invariata (teal #0a5552, navy #26313F,
   off-white #FBFAF7, beige #F3EFE8, dark #0e1822, mint #5fd3c6).
   Usato da: chi-sono · osteopatia · prima-visita · tecniche · blog · articoli.
   ════════════════════════════════════════════════════════════════════ */

/* ── TOKENS (fonte di verità: home) ──────────────────────────────────── */
:root {
  --bg:        #FBFAF7;   /* base off-white caldo */
  --bg-alt:    #F3EFE8;   /* beige, sezioni alternate */
  --surface:   #FFFFFF;   /* card / input */
  --ink:       #26313F;   /* navy morbido — titoli */
  --text:      #2b3640;   /* corpo testo */
  --muted:     #5d626a;   /* grigio caldo secondario */
  --sub:       #55606B;   /* testo secondario su chiaro */
  --teal:      #0a5552;   /* accento unico */
  --teal-dk:   #07403d;   /* hover CTA */
  --dark:      #0e1822;   /* sezioni "gravitas" */
  --dark-2:    #15222e;
  --mint:      #5fd3c6;   /* accento su fondo scuro */
  --cream:     #F4F1EA;   /* testo su scuro */
  --wa:        #16803f;
  --amber:     #E0A52E;   /* stelle recensioni */
  --hair:      rgba(38,49,63,.13);    /* filetto su chiaro */
  --hair-soft: rgba(38,49,63,.08);
  --hair-lt:   rgba(255,255,255,.14); /* filetto su scuro */
  --r:         7px;       /* bottoni / card / media */
  --r-lg:      12px;
  --r-sm:      5px;
  --ff: 'DM Sans', system-ui, -apple-system, sans-serif;
  --maxw: 1200px;
  --gut:  clamp(1.25rem, 5vw, 4rem);
  --pad:  clamp(4.5rem, 8.5vw, 7.75rem);
  --pad-section: clamp(4.5rem, 8.5vw, 7.75rem);
  --shadow-soft:  0 14px 34px rgba(38,49,63,.08);
  --shadow-card:  0 14px 40px rgba(38,49,63,.08);
  --shadow-modal: 0 24px 60px rgba(10,18,26,.26);

  /* ── alias legacy: usati dal markup/JS delle sottopagine ── */
  --c-dark:    #FBFAF7;  --c-dark2:   #F3EFE8;  --c-surface: #FFFFFF;
  --c-gold:    #0a5552;  --c-amber:   #0a5552;  --c-text:    #2b3640;
  --c-muted:   #6b7078;  --c-border:  rgba(38,49,63,.13);  --c-cream: #F3EFE8;
  --c-ink:     #26313F;  --c-sub:     #55606B;  --c-wa:      #16803f;
  --ochre:     #0a5552;  --ochre-deep:#0a5552;  --ochre-soft: rgba(10,85,82,.10);
  --ff-serif:  'DM Sans', system-ui, sans-serif;
  --ff-sans:   'DM Sans', system-ui, sans-serif;
  --focus: 0 0 0 3px rgba(10,85,82,.18);
}

/* ── RESET ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; }
body {
  font-family: var(--ff); color: var(--text); background: var(--bg);
  font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; color: var(--ink); }

/* ── ACCESSIBILITÀ ───────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 50%; top: -70px; transform: translateX(-50%);
  background: var(--teal); color: #fff; padding: .7rem 1.4rem;
  border-radius: 0 0 .5rem .5rem; font-size: .9rem; font-weight: 600; z-index: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .card-reveal { opacity: 1 !important; transform: none !important; }
}

/* ── LAYOUT PRIMITIVES ───────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.wrap--narrow { max-width: 760px; }
.band { padding: var(--pad-section) var(--gut); }
.band--cream   { background: var(--bg-alt); color: var(--ink); }
.band--dark    { background: var(--bg); }
.band--dark2   { background: var(--bg-alt); }
.band--surface { background: var(--surface); }
.band + .band { border-top: 1px solid var(--hair); }
.band--cream + .band--cream,
.band--cream + .band--dark2,
.band--dark2 + .band--cream { border-top: 1px solid var(--hair-soft); }

/* ── SECTION HEADINGS (= .eyebrow / .h2 / .lead della home) ───────────── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.25rem;
}
.section-eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.section-eyebrow.gold { color: var(--teal); }
.section-h2 {
  font-size: clamp(2.05rem, 4.2vw, 3.3rem); font-weight: 600;
  line-height: 1.06; color: var(--ink); letter-spacing: -.038em; text-wrap: balance;
}
.section-h2.light { color: var(--ink); }
.section-intro {
  font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.7; font-weight: 500;
  color: var(--sub); max-width: 60ch; margin-top: 1.15rem; text-wrap: pretty;
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { text-align: center; }
.section-head--center .section-eyebrow { justify-content: center; }
.section-head--center .section-intro { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--ff); font-size: .94rem; font-weight: 600; letter-spacing: .01em;
  padding: .95rem 1.85rem; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn--amber, .btn--gold { background: var(--teal); color: #fff; }
.btn--amber:hover, .btn--gold:hover { background: var(--teal-dk); }
.btn--ink   { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1c2733; }
.btn--wa    { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1da851; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.band--cream .btn--ghost { color: var(--ink); border-color: var(--hair); }

/* ── HEADER ──────────────────────────────────────────────────────────── */
#siteHeader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 84px;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 var(--gut);
  transition: background .35s, box-shadow .35s, height .35s, backdrop-filter .35s;
}
#siteHeader.scrolled, #siteHeader.solid {
  height: 72px; background: rgba(251,250,247,.9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--hair);
}
.hdr-logo { display: flex; align-items: center; gap: .9rem; flex: 1; min-width: 0; }
.hdr-logo-img { height: 60px; width: auto; object-fit: contain; display: block; transition: height .35s, filter .35s; }
#siteHeader.scrolled .hdr-logo-img, #siteHeader.solid .hdr-logo-img { height: 50px; }
#siteHeader:not(.solid):not(.scrolled) .hdr-logo-img { filter: brightness(0) invert(1); }
.hdr-brand { display: none; }  /* il nome è già nel logo */
.hdr-nav { display: flex; align-items: center; gap: 1.9rem; }
.hdr-nav a {
  font-size: .9rem; font-weight: 500; letter-spacing: .005em; color: rgba(255,255,255,.82);
  transition: color .2s; white-space: nowrap; position: relative; padding: .2rem 0;
}
.hdr-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.hdr-nav a:hover::after, .hdr-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { color: #fff; }
#siteHeader.scrolled .hdr-nav a, #siteHeader.solid .hdr-nav a { color: var(--sub); }
#siteHeader.scrolled .hdr-nav a:hover, #siteHeader.solid .hdr-nav a:hover,
#siteHeader.scrolled .hdr-nav a[aria-current="page"], #siteHeader.solid .hdr-nav a[aria-current="page"] { color: var(--ink); }
#headerWaBtn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal); color: #fff; padding: .62rem 1.4rem; border-radius: var(--r);
  font-size: .88rem; font-weight: 600; transition: background .2s, transform .15s;
}
#headerWaBtn:hover { background: var(--teal-dk); transform: translateY(-1px); }
#hamburgerBtn { display: none; background: none; border: none; cursor: pointer; padding: .4rem; color: #fff; margin-left: auto; }
#siteHeader.scrolled #hamburgerBtn, #siteHeader.solid #hamburgerBtn { color: var(--ink); }
#hamburgerBtn svg { display: block; }
@media (max-width: 1000px) {
  .hdr-nav, #headerWaBtn { display: none; }
  #hamburgerBtn { display: flex; }
}

/* ── MOBILE NAV (off-canvas) ─────────────────────────────────────────── */
#mobileNav {
  position: fixed; inset: 0; z-index: 200; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding: 2rem; overflow-y: auto;
}
#mobileNav.open { transform: translateX(0); }
#mobileNavLinks { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; width: 100%; }
#mobileNav a.nav-link { font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
#mobileNav a.nav-link[aria-current="page"], #mobileNav a.nav-link:hover { color: var(--mint); }
.mnav-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.7); padding: .5rem; }
#mobileWaBtn {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .6rem;
  background: var(--wa); color: #fff; padding: .85rem 2rem; border-radius: var(--r); font-weight: 600;
}

/* ── PAGE HERO (intestazione sottopagina, scuro pulito) ──────────────── */
.page-hero {
  position: relative; overflow: hidden; background: var(--dark);
  min-height: 60vh;
  display: flex; align-items: center;
  padding: clamp(8.5rem, 15vh, 11.5rem) var(--gut) clamp(3.5rem, 7vh, 5.5rem);
}
.page-hero-grain, .page-hero-glow { display: none; }  /* grana + bagliore rimossi: hero puliti come la home */
.page-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,.72); margin-bottom: 1.5rem;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb span[aria-current] { color: #fff; }
.breadcrumb-sep { opacity: .45; }
.page-hero h1 {
  font-weight: 600; letter-spacing: -.04em;
  font-size: clamp(2.5rem, 5.8vw, 4.5rem); line-height: 1.04; color: #fff; max-width: 17ch;
}
.page-hero h1 em { font-style: normal; color: var(--mint); }
.page-hero-lede {
  font-size: clamp(1.14rem, 1.7vw, 1.32rem); line-height: 1.65; font-weight: 500;
  color: rgba(255,255,255,.88); max-width: 58ch; margin-top: 1.5rem; text-wrap: pretty;
}

/* ── PAGE-HERO con foto di sfondo (scrim direzionale pulito) ──────────── */
.page-hero--photo { background: var(--dark); }
.page-hero--photo .page-hero-photo {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1;
}
.page-hero--photo::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg,
    rgba(14,24,34,.94) 0%, rgba(14,24,34,.80) 42%, rgba(14,24,34,.40) 78%, rgba(14,24,34,.30) 100%);
}
/* mobile: scrim verticale — testo leggibile a tutta larghezza */
@media (max-width: 600px) {
  .page-hero--photo::after {
    background: linear-gradient(180deg,
      rgba(14,24,34,.66) 0%, rgba(14,24,34,.82) 52%, rgba(14,24,34,.93) 100%);
  }
}

/* ── Foto VERTICALE (ritratto) in hero largo — 2 magheggi per il desktop:
      (1) hero più alto su desktop → si vede più del dottore, non solo la testa;
      (2) inquadratura sul volto/busto + scrim che schiarisce il lato foto.
      Su mobile l'hero è stretto e mostra già quasi tutta la foto. ── */
.page-hero--portrait .page-hero-photo { object-position: 50% 30%; }
@media (min-width: 601px) {
  .page-hero--portrait::after {
    background: linear-gradient(100deg,
      rgba(14,24,34,.93) 0%, rgba(14,24,34,.75) 28%, rgba(14,24,34,.34) 60%, rgba(14,24,34,.15) 100%);
  }
}
@media (min-width: 1024px) {
  .page-hero--portrait { min-height: 86vh; }
}

/* ── HERO "Chi sono": testo + video di presentazione in primo piano ──── */
.chisono-hero {
  background: var(--dark); min-height: clamp(620px, 92vh, 880px); display: flex; align-items: center;
  padding: clamp(6rem, 12vw, 8rem) var(--gut) clamp(3rem, 6vw, 4.5rem);
}
.chisono-hero-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr minmax(280px, 360px);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.chisono-hero-text h1 { max-width: 16ch; }
.chisono-hero-ctas { margin-top: 2rem; }
.chisono-hero-video {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 9 / 16; max-height: 76vh; background: var(--dark-2);
  box-shadow: 0 26px 64px rgba(10,18,26,.5); border: 1px solid var(--hair-lt);
}
.chisono-hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .chisono-hero { min-height: 0; }
  .chisono-hero-inner { grid-template-columns: 1fr; gap: 1.7rem; }
  .chisono-hero-video { order: -1; width: 100%; max-width: 300px; max-height: 70vh; margin: 0 auto; }
  .chisono-hero-text { text-align: center; }
  .chisono-hero-text h1 { max-width: none; }
  .chisono-hero-text .breadcrumb { justify-content: center; }
  .chisono-hero-text .page-hero-lede { max-width: none; margin-left: auto; margin-right: auto; }
  .chisono-hero-ctas { display: flex; justify-content: center; }
}
@media (max-width: 600px) {
  .chisono-hero { padding-left: 0; padding-right: 0; padding-top: 76px; align-items: flex-start; }
  .chisono-hero-inner { gap: 0; max-width: 100%; }
  .chisono-hero-video {
    order: -1; width: 100%; max-width: none; max-height: none; margin: 0;
    border-radius: 0; box-shadow: none; border: 0; aspect-ratio: 9 / 16;
  }
  .chisono-hero-text { padding: 1.9rem clamp(1.3rem, 5vw, 1.8rem) 0; }
}

/* ── TIMELINE (formazione / fasi) ────────────────────────────────────── */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--teal), rgba(10,85,82,.12));
}
.tl-item { position: relative; padding: 0 0 3rem 5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 16px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.tl-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.tl-year {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .45rem;
}
.tl-item h3 { font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.25; letter-spacing: -.02em; margin-bottom: .3rem; }
.tl-org { font-size: .95rem; color: var(--teal); margin-bottom: .7rem; font-weight: 500; }
.tl-item p { font-size: 1.04rem; line-height: 1.78; color: var(--sub); }
.tl-figure { margin-top: 1.2rem; max-width: 320px; }
.tl-inner { display: flex; gap: 2rem; align-items: flex-start; }
.tl-thumb { flex: 0 0 155px; }
.tl-thumb img {
  width: 100%; border-radius: var(--r); border: 1px solid var(--hair);
  box-shadow: var(--shadow-soft); filter: saturate(.97); transition: filter .4s ease;
}
.tl-item.visible .tl-thumb img { filter: saturate(1) brightness(1); }
.tl-body { flex: 1; min-width: 0; }

/* ── IL METODO / LE FASI (4 card numerate, filetto — come la home) ───── */
.protocol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.step {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem) clamp(1.7rem, 2.4vw, 2.2rem);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.step:hover { border-color: rgba(10,85,82,.32); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.step-n { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 600; color: var(--teal); letter-spacing: -.04em; line-height: 1; }
.step-ic { color: var(--teal); display: inline-flex; }
.step-ic svg { width: 26px; height: 26px; display: block; }
.step-b h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin-bottom: .5rem; }
.step-b p { color: var(--sub); line-height: 1.75; font-size: 1.02rem; text-wrap: pretty; }
@media (max-width: 760px) { .protocol { grid-template-columns: 1fr; } }

/* ── FACT / CREDENTIAL CARDS (filetto, niente badge pastello) ────────── */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.fact-card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: 1.9rem 1.8rem; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.fact-card:hover { border-color: rgba(10,85,82,.3); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.fact-card .fact-icon { width: auto; height: auto; background: none; color: var(--teal); display: inline-flex; margin-bottom: 1rem; }
.fact-card .fact-icon svg { width: 28px; height: 28px; }
.fact-card h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); margin-bottom: .5rem; }
.fact-card p { font-size: 1.02rem; line-height: 1.72; color: var(--sub); }

/* ── TECHNIQUE CARDS (foto + eyebrow + titolo + corpo + pill tags) ───── */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.tech-card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: rgba(10,85,82,.3); }
.tech-card .tech-media { aspect-ratio: 16/10; background: var(--bg-alt); }
.tech-card .tech-body { padding: 1.7rem; display: flex; flex-direction: column; gap: .7rem; }
.tech-card .tech-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.tech-card h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.tech-card p { font-size: 1.01rem; line-height: 1.72; color: var(--sub); }
.tech-card .tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.tech-tag {
  font-size: .82rem; font-weight: 500; color: var(--sub);
  border: 1px solid var(--hair); border-radius: 100px; padding: .4rem .9rem;
  transition: border-color .2s, color .2s, background .2s;
}
.tech-card:hover .tech-tag { border-color: rgba(10,85,82,.22); }

/* ── BLOG / POST CARDS ───────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.post-card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: rgba(10,85,82,.3); }
.post-card .post-media { aspect-ratio: 3/2; position: relative; display: block; overflow: hidden; background: var(--bg-alt); }
.post-card .post-cat {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--ink); color: var(--cream);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .85rem; border-radius: var(--r);
}
.post-card .post-body { padding: 1.6rem 1.7rem 1.7rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.post-card .post-meta { font-size: .78rem; color: var(--teal); font-weight: 600; letter-spacing: .04em; }
.post-card h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.post-card h3 a { transition: color .2s; }
.post-card h3 a:hover { color: var(--teal); }
.post-card p { font-size: 1rem; line-height: 1.7; color: var(--sub); }
.post-card .post-more {
  margin-top: auto; font-size: .92rem; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: .45rem; transition: gap .2s;
}
.post-card:hover .post-more { gap: .75rem; }

/* ── DISTURBI per area (filetto + pill chips, come "Cosa tratto") ────── */
.disturbi-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.disturbo-group {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: 1.8rem 1.7rem; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.disturbo-group:hover { border-color: rgba(10,85,82,.3); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.disturbo-group .dg-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.disturbo-group .dg-ico { background: none; color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.disturbo-group .dg-ico svg { width: 24px; height: 24px; }
.disturbo-group h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.disturbo-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.disturbo-list span {
  font-size: .86rem; font-weight: 500; color: var(--sub);
  border: 1px solid var(--hair); border-radius: 100px; padding: .4rem .9rem;
  transition: border-color .2s, color .2s, background .2s;
}
.disturbo-list span:hover { border-color: rgba(10,85,82,.4); color: var(--teal); background: rgba(10,85,82,.05); }

/* ── MEDIA SPLIT (testo + foto, inquadratura a filetto) ──────────────── */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.media-split.reverse .media-split-img { order: 2; }
.media-split-img { position: relative; }
.media-split-copy h2 { margin-bottom: 1.2rem; }
.media-split-copy p { font-size: 1.16rem; line-height: 1.75; color: var(--sub); font-weight: 500; }
.band--cream .media-split-copy p { color: var(--sub); }
.media-split-copy p + p { margin-top: 1rem; }
@media (min-width: 901px) {
  .media-split:not(.reverse) .media-split-img::before {
    content: ''; position: absolute; left: -16px; top: 26px; bottom: 26px; width: 3px;
    background: var(--teal); border-radius: 2px; z-index: 2;
  }
  .media-split.reverse .media-split-img::before {
    content: ''; position: absolute; right: -16px; top: 26px; bottom: 26px; width: 3px;
    background: var(--teal); border-radius: 2px; z-index: 2;
  }
}

/* ── IMAGE FRAME + PLACEHOLDER ───────────────────────────────────────── */
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.media-frame.tall { aspect-ratio: 3/4; }
.media-frame.wide { aspect-ratio: 16/9; }
.media-frame.arch { border-radius: 200px 200px var(--r-lg) var(--r-lg); }
.media-frame.doc { aspect-ratio: 4/3; background: #f3ede2; border: 1px solid var(--hair); }
.media-frame.doc img.photo { object-fit: contain; padding: .5rem; }
img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-ph {
  position: relative; width: 100%; height: 100%; min-height: 180px;
  background:
    repeating-linear-gradient(45deg, rgba(10,85,82,.045) 0 14px, rgba(10,85,82,.085) 14px 28px),
    linear-gradient(160deg, #fff, var(--bg-alt));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem;
  color: var(--teal); text-align: center; padding: 1.2rem;
}
.band--cream .img-ph {
  background:
    repeating-linear-gradient(45deg, rgba(38,49,63,.03) 0 14px, rgba(38,49,63,.055) 14px 28px),
    linear-gradient(160deg, #fff, #e9e1d4);
  color: var(--teal);
}
.img-ph svg { opacity: .55; }
.img-ph .img-ph-label { font-size: .8rem; font-weight: 500; letter-spacing: .03em; max-width: 24ch; line-height: 1.4; opacity: .8; }

/* ── PROSE (articoli) ────────────────────────────────────────────────── */
.prose { color: var(--ink); }
.prose > * + * { margin-top: 1.45rem; }
.prose p { font-size: 1.2rem; line-height: 1.8; color: var(--text); font-weight: 500; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.2; letter-spacing: -.028em; color: var(--ink); margin-top: 2.8rem; }
.prose h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.prose ol { list-style: decimal; }
.prose li { font-size: 1.14rem; line-height: 1.8; color: var(--text); margin-top: .6rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 2px solid var(--teal); padding: .25rem 0 .25rem 1.5rem;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem); line-height: 1.5; color: var(--ink);
  font-weight: 500; letter-spacing: -.015em; font-style: normal; text-wrap: balance;
}
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .9rem; color: var(--sub); margin-top: .6rem; text-align: center; }
.prose a:not(.btn) { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ── ARTICLE ─────────────────────────────────────────────────────────── */
.article-cat {
  display: inline-block; background: var(--teal); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .38rem .9rem; border-radius: var(--r); margin-bottom: 1.3rem;
}
.article-meta { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .9rem; color: rgba(255,255,255,.72); }
.article-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.page-hero .article-meta { color: rgba(255,255,255,.72); }
.article-feature { margin: 0 auto; max-width: 980px; }
.article-feature .media-frame { aspect-ratio: 16/8; border-radius: 0; }
.article-back { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--teal); font-size: .95rem; transition: gap .2s; }
.article-back:hover { gap: .8rem; }
.article-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.article-note {
  background: rgba(10,85,82,.06); border: 1px solid rgba(10,85,82,.18);
  border-left: 3px solid var(--teal); border-radius: var(--r); padding: 1.4rem 1.6rem;
  font-size: 1.02rem; line-height: 1.7; color: var(--text);
}
/* CTA contestuale a fine articolo: banda teal piena, bottone rettangolare */
.article-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); background: var(--teal); color: #fff; border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 2.5rem) clamp(1.8rem, 4vw, 2.7rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.2rem, 3vw, 2rem); flex-wrap: wrap;
}
.article-cta-text h3 { font-size: clamp(1.3rem, 3.2vw, 1.65rem); font-weight: 600; color: #fff; margin: 0 0 .45rem; line-height: 1.2; letter-spacing: -.02em; }
.article-cta-text p { color: rgba(255,255,255,.9); margin: 0; max-width: 48ch; line-height: 1.6; }
.article-cta-btn.btn { flex-shrink: 0; background: #fff; color: var(--teal); }
.article-cta-btn.btn:hover { background: rgba(255,255,255,.9); color: var(--teal); }
@media (max-width: 600px) {
  .article-cta { flex-direction: column; align-items: stretch; }
  .article-cta-btn.btn { width: 100%; justify-content: center; }
}

/* ── CTA BAND (scura, come quote/footer della home) ──────────────────── */
.cta-band { background: var(--dark); padding: var(--pad-section) var(--gut); text-align: center; }
.cta-band h2 { font-size: clamp(2.05rem, 4.2vw, 3.2rem); font-weight: 600; color: #fff; line-height: 1.1; max-width: 22ch; margin: 0 auto 1rem; letter-spacing: -.038em; text-wrap: balance; }
.cta-band h2 em { font-style: normal; color: var(--mint); }
.cta-band p { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 2rem; line-height: 1.65; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ── STICKY CTA (mobile + pillola centrata desktop) ──────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: .55rem; padding: .55rem .8rem;
  padding-bottom: calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(251,250,247,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--hair); box-shadow: 0 -7px 22px rgba(38,49,63,.13);
  transform: translateY(110%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .82rem .6rem; border-radius: var(--r); font-weight: 600; font-size: .95rem; }
.sticky-cta .scta-wa  { background: var(--wa); color: #fff; }
.sticky-cta .scta-tel { background: #fff; color: var(--ink); border: 1px solid var(--hair); }
.sticky-cta svg { flex-shrink: 0; }
@media (min-width: 601px) {
  .sticky-cta {
    left: 50%; right: auto; bottom: 1.4rem; width: auto; max-width: 460px;
    padding: .5rem .55rem; padding-bottom: .5rem; border: 1px solid var(--hair);
    border-radius: var(--r-lg); box-shadow: 0 14px 38px rgba(38,49,63,.2);
    transform: translateX(-50%) translateY(180%);
  }
  .sticky-cta.show { transform: translateX(-50%) translateY(0); }
  .sticky-cta a { flex: 0 0 auto; padding: .72rem 1.6rem; }
}

/* ── FOOTER (scuro, come la home) ────────────────────────────────────── */
#siteFooter { background: var(--dark); color: rgba(244,241,234,.7); padding: clamp(3.5rem, 6vw, 5rem) var(--gut) 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 2.5rem; border-bottom: 1px solid var(--hair-lt); margin-bottom: 1.8rem; }
.footer-brand { font-size: 1.2rem; font-weight: 600; color: #fff; letter-spacing: -.02em; margin-bottom: .6rem; }
.footer-tagline { font-size: .9rem; color: rgba(244,241,234,.6); line-height: 1.65; }
.footer-col h3 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul a { font-size: .92rem; color: rgba(244,241,234,.72); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-hours-row { font-size: .9rem; color: rgba(244,241,234,.72); margin-bottom: .4rem; }
.footer-hours-row a { transition: color .2s; }
.footer-hours-row a:hover { color: #fff; }
.footer-socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--hair-lt);
  display: flex; align-items: center; justify-content: center; color: rgba(244,241,234,.8);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
#footerWaBtn { color: rgba(244,241,234,.8); }
#footerWaBtn:hover { background: var(--wa); color: #fff; border-color: var(--wa); }
.footer-map { margin-top: 1rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair-lt); line-height: 0; }
.footer-map iframe { width: 100%; height: 150px; border: 0; display: block; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding-top: 0; font-size: .8rem; color: rgba(244,241,234,.55); }
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: #fff; }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────── */
.card-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.card-reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .media-split { grid-template-columns: 1fr; gap: 2.2rem; }
  .media-split.reverse .media-split-img { order: 0; }
  .media-split-img { max-width: 460px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  #siteHeader { height: 70px; }
  #siteHeader.scrolled, #siteHeader.solid { height: 64px; }
  .hdr-logo-img { height: 48px; }
  #siteHeader.scrolled .hdr-logo-img, #siteHeader.solid .hdr-logo-img { height: 42px; }
  .page-hero { min-height: 0; padding-top: clamp(7rem, 22vw, 9rem); }
  .tl-item { padding-left: 3.6rem; }
  .timeline::before { left: 19px; }
  .tl-dot { left: 8px; }
  .tl-inner { flex-direction: column; gap: 1rem; }
  .tl-thumb { width: 100%; max-width: 180px; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════════
   COMPONENTI CONDIVISI — modal contatto, video, certificati, lightbox
   ════════════════════════════════════════════════════════════════════ */

/* ── SELETTORE CONTATTO (modal aperto da ogni CTA .js-contact) ───────── */
.contact-modal {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.contact-modal.open { opacity: 1; visibility: visible; }
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(10,18,26,.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.contact-modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: #fff; color: var(--ink); border-radius: var(--r-lg);
  padding: 2rem 1.8rem 1.8rem; box-shadow: var(--shadow-modal);
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.contact-modal.open .contact-modal-card { transform: none; }
.contact-modal-close {
  position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(25,42,61,.07); color: var(--sub);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.contact-modal-close:hover { background: rgba(25,42,61,.14); }
.contact-modal-card h3 { font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-bottom: .35rem; }
.contact-modal-card .cm-sub { font-size: .95rem; color: var(--sub); margin-bottom: 1.4rem; }
.cm-options { display: flex; flex-direction: column; gap: .7rem; }
.cm-option { display: flex; align-items: center; gap: .95rem; padding: .9rem 1.1rem; border-radius: var(--r); border: 1px solid var(--hair); color: var(--ink); transition: border-color .2s, background .2s, transform .15s; }
.cm-option:hover { border-color: var(--teal); background: rgba(10,85,82,.05); transform: translateY(-1px); }
.cm-option .cm-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.cm-option.cm-wa  .cm-ico { background: var(--wa); }
.cm-option.cm-tel .cm-ico { background: var(--teal); }
.cm-option.cm-map .cm-ico { background: #2b3a4b; }
.cm-option .cm-txt strong { display: block; font-size: 1rem; font-weight: 600; }
.cm-option .cm-txt span { font-size: .84rem; color: var(--sub); }
.cm-option .cm-arrow { margin-left: auto; color: var(--sub); }

/* ── TESTIMONIANZE VIDEO ─────────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem; }
.video-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 9/13; background: var(--dark-2); border: 1px solid var(--hair); cursor: pointer; display: block; }
.video-card video, .video-card iframe, .video-card .vc-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-card .vc-poster { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(10,18,26,.25), rgba(10,18,26,.55)); color: #fff; transition: opacity .25s; }
.video-card.playing .vc-poster, .video-card.playing .vc-label { opacity: 0; pointer-events: none; }
.video-card .vc-play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .2s, background .2s, border-color .2s; }
.video-card:hover .vc-play { transform: scale(1.08); background: var(--teal); border-color: var(--teal); }
.video-card .vc-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.1rem 1.1rem .95rem; background: linear-gradient(to top, rgba(10,18,26,.92) 0%, rgba(10,18,26,.72) 38%, rgba(10,18,26,.32) 70%, transparent 100%); color: #fff; font-size: .92rem; font-weight: 600; }
.video-card .vc-label span { display: block; font-size: .78rem; font-weight: 500; opacity: .82; margin-top: .15rem; }

/* ── CERTIFICATI (anteprima + lightbox) ──────────────────────────────── */
.cert-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair); box-shadow: var(--shadow-soft); aspect-ratio: 1.41 / 1; background: #f4f1ea; }
.cert-frame.portrait { aspect-ratio: 1 / 1.3; }
.cert-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.cert-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .5rem; cursor: zoom-in; }
img.js-zoom, .photo.js-zoom { cursor: zoom-in; }
.cert-years { display: flex; flex-direction: column; gap: clamp(2.8rem, 6vw, 5rem); }
.cert-year-group .media-split { margin-top: clamp(2rem, 4vw, 3rem); }
.cert-year-group .media-split:first-of-type { margin-top: 0; }
.cert-year-label {
  font-size: clamp(2rem, 6vw, 3rem); font-weight: 600; color: var(--teal); line-height: 1; letter-spacing: -.03em;
  display: flex; align-items: center; gap: 1.1rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.cert-year-label::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(10,85,82,.35), rgba(10,85,82,0)); }
.cert-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: clamp(.9rem, 2vw, 1.3rem); }
.cert-mini {
  display: flex; flex-direction: column; text-align: left; padding: 0;
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg);
  overflow: hidden; cursor: zoom-in; font: inherit; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cert-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: rgba(10,85,82,.3); }
.cert-mini-img { width: 100%; aspect-ratio: 1.45 / 1; object-fit: cover; object-position: center; background: #f4f1ea; display: block; }
.cert-mini-body { padding: .75rem .9rem .85rem; display: block; }
.cert-mini-h4 { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: .22rem; letter-spacing: -.01em; }
.cert-mini-meta { display: block; font-size: .77rem; color: var(--sub); }
@media (max-width: 600px) {
  .cert-mini-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .cert-mini-h4 { font-size: .82rem; }
  .cert-mini-meta { font-size: .72rem; }
}
.cert-open { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: zoom-in; background: transparent; display: flex; align-items: flex-end; justify-content: flex-end; padding: .7rem; }
.cert-open span { display: inline-flex; align-items: center; gap: .35rem; background: rgba(38,49,63,.82); color: #fff; font-size: .74rem; font-weight: 600; padding: .35rem .7rem; border-radius: var(--r); opacity: 0; transition: opacity .2s; }
.cert-frame:hover .cert-open span, .cert-open:focus-visible span { opacity: 1; }
.cert-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; }
.cert-meta { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.roi-badge { aspect-ratio: 1.41 / 1; border-radius: var(--r-lg); box-shadow: var(--shadow-soft); background: #fff; border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.roi-badge img { max-width: 72%; max-height: 78%; object-fit: contain; }
.cert-scroller { display: flex; gap: 1rem; overflow-x: auto; padding: .4rem .2rem 1.2rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.cert-scroller::-webkit-scrollbar { height: 8px; }
.cert-scroller::-webkit-scrollbar-thumb { background: rgba(38,49,63,.2); border-radius: 4px; }
.cert-thumb {
  flex: 0 0 210px; scroll-snap-align: start; cursor: zoom-in; text-align: left;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.1rem;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: .5rem;
  transition: transform .2s, border-color .2s;
}
.cert-thumb:hover { transform: translateY(-3px); border-color: rgba(10,85,82,.3); }
.cert-thumb .ct-ico { width: 38px; height: 38px; color: var(--teal); display: flex; align-items: center; justify-content: center; }
.cert-thumb h4 { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.cert-thumb .ct-meta { font-size: .76rem; color: var(--sub); }

/* ── LIGHTBOX (zoom certificati/immagini) ────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 3vh 3vw; background: rgba(18,26,34,.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; width: min(1040px, 95vw); height: min(86vh, 820px); background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.lightbox-inner iframe { width: 100%; height: 100%; border: 0; }
.lightbox-inner img { width: 100%; height: 100%; object-fit: contain; background: #f4f1ea; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.lightbox-dl { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: .5rem; background: var(--teal); color: #fff; font-size: .85rem; font-weight: 600; padding: .55rem 1.2rem; border-radius: var(--r); box-shadow: 0 4px 16px rgba(0,0,0,.3); }

/* ── TESTIMONIANZE VIDEO — componente condiviso (sottopagine + testimonianze) ─
   Card 9:13 con poster + play-on-click (handler in site.js: .vt-card). ───── */
.vt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.4vw, 1.6rem); margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.vt-grid--1 { grid-template-columns: 1fr; max-width: 330px; margin-left: auto; margin-right: auto; }
.vt-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin-left: auto; margin-right: auto; }
.vt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.vt-card {
  position: relative; display: block; width: 100%; aspect-ratio: 9/13; cursor: pointer;
  border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; background: var(--dark-2);
  transition: border-color .25s, box-shadow .25s, transform .18s;
}
.vt-card:hover { border-color: rgba(10,85,82,.32); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.vt-card:focus-visible { outline: none; box-shadow: var(--focus); }
.vt-card video, .vt-card .vt-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
/* A schermo intero QUALSIASI video mantiene le proporzioni originali (niente crop): cover→contain.
   Vale per hero (.chisono-hero-video), card testimonianze (.vt-card) e carosello (.video-card). */
video:fullscreen { object-fit: contain; background: #0a121a; }
video:-webkit-full-screen { object-fit: contain; background: #0a121a; }
.vt-card .vt-poster { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(10,18,26,.18), rgba(10,18,26,.52)); z-index: 1; transition: opacity .25s; }
.vt-card.playing .vt-poster, .vt-card.playing .vt-label { opacity: 0; pointer-events: none; }
.vt-play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .2s, background .2s, border-color .2s; }
.vt-card:hover .vt-play { transform: scale(1.08); background: var(--teal); border-color: var(--teal); }
.vt-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2rem 1.05rem .9rem; color: #fff; font-size: .92rem; font-weight: 600; transition: opacity .25s; background: linear-gradient(to top, rgba(10,18,26,.92) 0%, rgba(10,18,26,.66) 42%, transparent 100%); }
.vt-label span { display: block; font-size: .78rem; font-weight: 500; opacity: .84; margin-top: .12rem; }
.vt-note { text-align: center; margin-top: 1.6rem; font-size: .86rem; color: var(--muted); }
.vt-more-row { text-align: center; margin-top: 1.5rem; }
.vt-more { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--teal); transition: gap .2s; }
.vt-more:hover { gap: .7rem; }
@media (max-width: 900px) { .vt-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .vt-grid, .vt-grid--2, .vt-grid--4 { grid-template-columns: 1fr; max-width: 330px; margin-left: auto; margin-right: auto; }
}


/* ── Self-hosted DM Sans (GDPR + no render-block) ── */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:300 700;font-display:swap;font-optical-sizing:auto;src:url('fonts/dmsans-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:300 700;font-display:swap;font-optical-sizing:auto;src:url('fonts/dmsans-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:italic;font-weight:300 700;font-display:swap;font-optical-sizing:auto;src:url('fonts/dmsans-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'DM Sans';font-style:italic;font-weight:300 700;font-display:swap;font-optical-sizing:auto;src:url('fonts/dmsans-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
