/* Sito pubblico Ambulo (home, specialistiche, funzionalità, prezzi, contatti).
   Pagine statiche, indipendenti dall'app React.
   Direzione grafica: "carta millimetrata + tavola anatomica", palette inchiostro + ambra
   (2026-11-30, rebrand CardioRef -> Ambulo). La griglia della carta millimetrata fa da
   superficie (hero, testate, pannelli); il cuore anatomico resta l'immagine di cardiologia. Niente icone decorative: al loro posto immagini
   vere del mestiere (cuore, schermata ecografica) e frammenti dell'interfaccia.
   Bottoni "a timbro": rettangolo inchiostro con ombra piena ambra che si schiaccia
   al passaggio e al clic. Le azioni secondarie sono link sottolineati, non bottoni.
   Font self-hosted (OFL) in /sito/fonts/: niente richieste a Google Fonts. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* colori brand Ambulo: inchiostro + ambra su carta calda (solo sito pubblico e login) */
  --ink: #1f2a37;          /* inchiostro: testo, titoli, bottoni */
  --muted: #5b6370;        /* testo secondario (AA su bianco e su carta) */
  --accent: #d9822b;       /* ambra: ombra bottoni, tracciato, filetti, focus */
  --accent-hover: #b5651a;
  --accent-text: #9a5512;  /* ambra scura: link e testo accento (AA su chiaro) */
  --accent-light: #f2b872; /* accento su fondo inchiostro */
  --ink-2: #33414f;
  --ink-deep: #141c25;
  --paper: #f7f4ee;        /* carta */
  --paper-soft: #fbf9f5;   /* fascia alternata, senza griglia */
  --grid-fine: rgba(31, 42, 55, .05);
  --grid-bold: rgba(31, 42, 55, .10);
  --line: #ece6dc;
  --line-strong: #e0d8ca;
  --white: #fff;
  --ok: #17693a;
  --ok-bg: #e3f4ea;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --r-panel: 20px;
  --r-band: 28px;
  --max: 1160px;

  /* griglia ECG: 1 quadretto fine = 8px, 1 quadretto grande = 40px */
  --ecg-grid:
    linear-gradient(var(--grid-bold) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(var(--grid-fine) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px) 0 0 / 8px 8px;
  --ecg-grid-dark:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 40px 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.0; font-weight: 750; letter-spacing: -.038em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 750; font-size: 1.32rem; letter-spacing: -.03em;
}
.brand b { color: var(--accent); font-weight: inherit; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(20, 28, 37, .25)); }
.nav { display: flex; gap: 4px; margin-left: 20px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .98rem; padding: 8px 12px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.login-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.login-link:hover { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Bottoni "a timbro" e link d'azione ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  padding: 15px 26px; border: 0; border-radius: 4px;
  background: var(--ink); color: var(--white);
  box-shadow: 4px 4px 0 var(--accent);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--white); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--accent); }
.btn-sm { padding: 10px 16px; font-size: .95rem; box-shadow: 3px 3px 0 var(--accent); }
.btn-sm:hover { transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0 var(--accent); }
.btn-sm:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--accent); }
.btn-on-dark { background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--accent-light); }
.btn-on-dark:hover { color: var(--ink); box-shadow: 2px 2px 0 var(--accent-light); }
.btn-on-dark:active { box-shadow: 0 0 0 var(--accent-light); }
.btn-block { width: 100%; }

.link {
  display: inline-block; color: var(--ink); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .28em;
}
.link:hover { color: var(--accent-text); }
.link-on-dark { color: var(--white); text-decoration-color: var(--accent-light); }
.link-on-dark:hover { color: var(--accent-light); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

/* menu mobile senza JS */
.menu-mobile { display: none; position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; font-weight: 700; padding: 7px 14px; border-radius: 4px; border: 1.5px solid var(--ink); color: var(--ink); }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--ink); color: var(--white); }
.menu-mobile .panel { position: absolute; right: 0; top: 50px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 24px 48px -20px rgba(20, 28, 37, .3); padding: 10px; width: 250px; display: grid; gap: 2px; }
.menu-mobile .panel a:not(.btn) { padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu-mobile .panel a:not(.btn):hover { background: var(--paper); }
.menu-mobile .panel .btn { margin: 8px 4px 4px 0; }

@media (max-width: 920px) {
  .nav, .header-cta .btn-sm { display: none; }
  .menu-mobile { display: block; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ecg-grid), var(--paper); border-bottom: 1px solid var(--line-strong); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero h1 { max-width: 12ch; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; margin-bottom: 34px; }
.hero .fineprint { margin: 26px 0 0; font-size: .95rem; color: var(--muted); }

.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(247, 244, 238, 0) 68%); }
.hero-visual picture { position: relative; z-index: 2; }
.heart { position: relative; width: min(420px, 84%); height: auto; margin: 0 auto; filter: drop-shadow(0 28px 34px rgba(20, 28, 37, .28)); animation: beat 2.4s ease-in-out infinite; transform-origin: 50% 55%; }

/* tracciato: si disegna una volta sola al caricamento, dietro al cuore */
.ecg { position: absolute; z-index: 1; left: -40%; width: 150%; max-width: none; top: 50%; height: 96px; transform: translateY(-50%); pointer-events: none; }
.ecg path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trace 2.4s cubic-bezier(.4, 0, .2, 1) .2s forwards; }

/* didascalie a richiamo, come in un atlante */
.chip {
  position: absolute; z-index: 3;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 9px 13px; font-size: .82rem; line-height: 1.3;
  box-shadow: 0 10px 24px -14px rgba(20, 28, 37, .35);
  animation: callout .5s ease-out both;
}
.chip strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip span { color: var(--muted); }
.chip .ok { color: var(--ok); font-weight: 700; }
.chip::before { content: ""; position: absolute; top: 50%; width: 56px; height: 1.5px; background: var(--ink); opacity: .55; }
.chip::after { content: ""; position: absolute; top: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); }
.chip-1 { top: 8%; left: -4%; animation-delay: 1.6s; }
.chip-1::before { left: 100%; }
.chip-1::after { left: calc(100% + 54px); }
.chip-2 { top: 34%; right: -4%; animation-delay: 1.9s; }
.chip-2::before { right: 100%; }
.chip-2::after { right: calc(100% + 54px); }
.chip-3 { bottom: 6%; left: 2%; animation-delay: 2.2s; }
.chip-3::before { left: 100%; width: 40px; }
.chip-3::after { left: calc(100% + 38px); }

@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.025); } 24% { transform: scale(1); } 36% { transform: scale(1.015); } 48% { transform: scale(1); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes callout { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Testata delle pagine interne ---------- */
.page-hero { position: relative; overflow: hidden; padding: 68px 0 64px; background: var(--ecg-grid), var(--paper); border-bottom: 1px solid var(--line-strong); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 15ch; }
.page-hero p { color: var(--muted); font-size: 1.2rem; max-width: 52ch; margin: 0; }
.page-hero .deco { position: absolute; right: max(4%, calc((100% - var(--max)) / 2)); top: 50%; width: 260px; height: auto; transform: translateY(-50%) rotate(-6deg); filter: drop-shadow(0 22px 26px rgba(20, 28, 37, .25)); pointer-events: none; }
.crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; font-size: .92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.jump a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--white); }
.jump a:hover { background: var(--ink); color: var(--white); }

/* ---------- Sezioni ---------- */
section { scroll-margin-top: 86px; }
.section { padding: 112px 0; }
.section-alt { background: var(--paper-soft); }
.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.section-foot { margin: 48px 0 0; }

/* passi: una sequenza vera, su una linea */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps::before { content: ""; position: absolute; top: 23px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--line-strong)); }
.step { position: relative; padding-right: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 22px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--accent); color: var(--accent-text);
  font-family: var(--font-display); font-weight: 750; font-size: 1.2rem;
}
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; max-width: 34ch; }

/* elenco di funzioni: testo, filetti, niente icone */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 44px; list-style: none; padding: 0; margin: 0; }
.features.two { grid-template-columns: repeat(2, 1fr); }
.feature { padding-top: 22px; border-top: 2px solid var(--ink); }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; max-width: 40ch; }

/* specialistiche in home: due riquadri con l'immagine vera del mestiere */
.spec-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.spec-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line-strong); background: var(--white); transition: border-color .15s ease; }
.spec-tile:hover { color: var(--ink); border-color: var(--ink); }
.spec-tile:hover .link { color: var(--accent-text); }
.spec-art { position: relative; height: 280px; display: grid; place-items: center; overflow: hidden; }
.spec-cardio .spec-art { background: var(--ecg-grid), var(--paper); }
.spec-cardio .spec-art img { width: 230px; height: auto; filter: drop-shadow(0 20px 24px rgba(20, 28, 37, .28)); }
.spec-eco .spec-art { background: radial-gradient(120% 90% at 50% 0%, #1d2733, #0b1016); }
.spec-eco .spec-art .us { width: 100%; height: 100%; }
.spec-body { padding: 30px 32px 34px; }
.spec-body h3 { font-size: 1.6rem; letter-spacing: -.022em; margin-bottom: .35em; }
.spec-body p { color: var(--muted); margin: 0 0 20px; max-width: 46ch; }
.spec-more { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; margin-top: 28px; padding: 28px 32px; border-radius: var(--r-panel); background: var(--paper-soft); border: 1px dashed var(--line-strong); }
.spec-more h3 { margin: 0 0 .25em; }
.spec-more p { margin: 0; color: var(--muted); max-width: 62ch; }

/* schermata ecografica (SVG inline) */
.us .us-label { font-family: var(--font-text); font-size: 10px; fill: #aab1ba; }

/* pagina specialistiche: testo + pannello con immagine e frammento d'interfaccia */
.spec-section .split { align-items: start; }
.spec-visual { display: flex; flex-direction: column; padding: 0 24px 24px; border-radius: var(--r-band); overflow: hidden; }
.spec-visual.cardio { background: var(--ecg-grid), var(--paper); border: 1px solid var(--line-strong); }
.spec-visual.cardio img { width: 240px; height: auto; margin: 28px auto 0; filter: drop-shadow(0 20px 24px rgba(20, 28, 37, .28)); }
.spec-visual.eco { background: radial-gradient(120% 90% at 50% 0%, #1d2733, #0b1016); }
.spec-visual.eco .us { width: calc(100% + 48px); height: 300px; margin: 0 -24px; }
.spec-visual .mock { position: relative; margin: -56px 0 0; }
.spec-meta { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .97rem; }

/* mockup interfaccia */
.mock { background: var(--white); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 48px -28px rgba(20, 28, 37, .4); overflow: hidden; font-size: .87rem; color: var(--ink); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--paper-soft); color: var(--muted); font-size: .8rem; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 14px 18px 16px; }
.mock-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-steps b { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.mock-steps b.on { background: var(--accent); }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; padding: 6px 4px; }
.mock td { padding: 8px 4px; border-top: 1px solid var(--line); }
.mock td:last-child, .mock th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mock td:last-child { font-weight: 700; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.tag.edit { background: #fbebd8; color: var(--accent-text); }
.mock .total td { font-family: var(--font-display); font-weight: 750; font-size: 1rem; color: var(--ink); border-top: 2px solid var(--ink); }

/* split (testo + immagine) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 120px; padding-top: 120px; border-top: 1px solid var(--line); }
.split.rev > :first-child { order: 2; }
.split p { color: var(--muted); max-width: 52ch; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--accent); }
.split .actions { margin-top: 32px; }

/* foglio (referto, email) in miniatura */
.doc { position: relative; background: var(--white); border-radius: 6px; box-shadow: 0 2px 0 var(--line), 0 40px 70px -30px rgba(20, 28, 37, .45); padding: 30px 30px 24px; border: 1px solid var(--line); font-size: .8rem; color: #2b343f; width: 100%; max-width: 440px; margin: 0 auto; transform: rotate(-1.5deg); }
.doc.tilt-right { transform: rotate(1.2deg); }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--accent); padding-bottom: 12px; margin-bottom: 14px; }
.doc-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.doc-logo i { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); }
.doc small { color: var(--muted); }
.doc .doc-title { margin: 14px 0 6px; font-size: .78rem; font-weight: 700; color: var(--accent-text); }
.doc .lines i { display: block; height: 6px; border-radius: 3px; background: #ece7df; margin: 7px 0; }
.doc .attach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.doc .attach span { font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink); }
.doc .sign { margin-top: 18px; text-align: right; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.3rem; color: var(--ink-2); }

/* prezzi */
.price-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 40px; border-radius: var(--r-panel); background: var(--white); border: 1px solid var(--line-strong); }
.price.main { border: 2px solid var(--ink); }
.price .ribbon { position: absolute; top: -14px; left: 36px; background: var(--accent); color: var(--ink); font-size: .85rem; font-weight: 700; padding: 4px 14px; border-radius: 4px; }
.price h3 { font-size: 1.5rem; margin-bottom: .2em; }
.amount { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 2px; }
.amount strong { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 750; letter-spacing: -.045em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.amount span { color: var(--muted); font-size: 1.05rem; }
.amount-text { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 20px 0 6px; }
.price .note { color: var(--muted); font-size: .97rem; margin: 0; }
.price .checks { margin-bottom: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.price > .btn, .price > .link { margin-top: auto; }
.price > .link { align-self: flex-start; }
.price-notes { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; padding: 0; margin: 32px 0 0; color: var(--muted); font-size: .97rem; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--font-display); font-weight: 650; font-size: 1.18rem; letter-spacing: -.012em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat; transition: transform .2s ease; }
.faq summary:hover::after { border-color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: -4px 0 24px; max-width: 64ch; }

/* contatti */
.contact-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.mail-big { display: inline-block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .18em; word-break: break-word; }
.mail-big:hover { color: var(--accent-text); }
.contact-split .lead { color: var(--muted); font-size: 1.15rem; max-width: 44ch; margin: 18px 0 0; }
.contact-box { padding: 32px; border-radius: var(--r-panel); background: var(--paper-soft); border: 1px solid var(--line-strong); }
.contact-box h2 { font-size: 1.5rem; }
.contact-box p { color: var(--muted); }
.contact-box .checks { margin-top: 16px; }
.contact-split .actions { margin-top: 30px; }
.contact-note { margin: 20px 0 0; }

/* CTA finale: banda inchiostro con la griglia ECG in trasparenza */
.section-alt + .cta-wrap { margin-top: 112px; }
.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center;
  padding: 64px; border-radius: var(--r-band); color: var(--white);
  background: var(--ecg-grid-dark), linear-gradient(120deg, var(--accent) -20%, var(--ink-2) 55%, var(--ink-deep));
}
.cta-band h2 { position: relative; color: var(--white); margin-bottom: 10px; max-width: 18ch; }
.cta-band p { position: relative; color: #dfe4ea; margin: 0; font-size: 1.1rem; max-width: 44ch; }
.cta-band img { position: absolute; right: 30%; bottom: -120px; width: 300px; height: auto; opacity: .14; pointer-events: none; }
.cta-band .actions { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #d5dbe2; padding: 64px 0 32px; margin-top: 112px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand b { color: var(--accent-light); }
.site-footer p { color: #b9c2cc; max-width: 36ch; margin-top: 14px; }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #d5dbe2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .copy { grid-column: 1 / -1; max-width: none; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; margin-top: 16px; font-size: .85rem; color: #9aa5b1; }

/* ---------- Per chi è (due colonne: sì / no) ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fit-col { padding: 36px 36px 38px; border-radius: var(--r-panel); background: var(--white); border: 2px solid var(--ink); }
.fit-col.no { border: 1px dashed var(--line-strong); background: var(--paper-soft); }
.fit-col h3 { font-size: 1.4rem; margin-bottom: .2em; }
.fit-col .checks { margin-top: 20px; }
.fit-col > p { color: var(--muted); margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.checks.no li { color: var(--muted); }
.checks.no li::before { background: var(--muted); opacity: .6; }

/* ---------- Prossime specialistiche (lista d'attesa via email) ---------- */
.spec-next-wrap { margin-top: 28px; padding: 30px 32px 32px; border-radius: var(--r-panel); background: var(--paper-soft); border: 1px dashed var(--line-strong); }
.spec-next-wrap > h3 { margin: 0 0 .25em; }
.spec-next-wrap > p { margin: 0; color: var(--muted); max-width: 62ch; }
.spec-next { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); background: var(--white); }
.spec-next li { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.spec-next strong { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.015em; color: var(--ink); }
.spec-next .link { font-size: .92rem; align-self: flex-start; }
.split .spec-next { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.spec-next-wrap > .actions { margin-top: 20px; }
.contact-split + .wrap .spec-next-wrap { margin-top: 64px; }
.spec-next-wrap > p.spec-next-foot { margin: 16px 0 0; font-size: .95rem; }

/* ---------- Moduli ---------- */
.tag.soon { background: #ece8e1; color: var(--muted); }
.mock tr.soon td { color: var(--muted); font-weight: 400; }
.mod-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.mod-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.mod-list strong { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.mod-list .d { grid-column: 1 / -1; color: var(--muted); font-size: .97rem; max-width: 60ch; }

@media (max-width: 980px) {
  .fit { grid-template-columns: 1fr; }
  .spec-next { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fit-col { padding: 26px 22px 28px; }
  .spec-next-wrap { padding: 24px 18px; }
  .spec-next li { padding: 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .page-hero .deco { width: 200px; opacity: .35; right: -30px; }
}
@media (max-width: 980px) {
  .hero .wrap, .split, .price-wrap, .contact-split { grid-template-columns: 1fr; }
  .hero .wrap { gap: 8px; }
  .split, .contact-split { gap: 44px; }
  .split.rev > :first-child { order: 0; }
  .hero-visual { min-height: 440px; }
  .features, .features.two { grid-template-columns: 1fr 1fr; }
  .spec-tiles { grid-template-columns: 1fr; }
  .spec-more { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 0; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-strong)); }
  .step { padding-left: 72px; }
  .step::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 32px; }
  .cta-band img { right: -60px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .page-hero .deco { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 76px 0; }
  .section-alt + .cta-wrap { margin-top: 76px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 60px; }
  .hero-visual { min-height: 380px; }
  .features, .features.two { grid-template-columns: 1fr; gap: 36px; }
  .split + .split { margin-top: 76px; padding-top: 76px; }
  .spec-art { height: 220px; }
  .spec-body { padding: 24px 22px 28px; }
  .spec-more { padding: 24px 22px; }
  .spec-visual { padding: 0 14px 14px; }
  .spec-visual.cardio img { width: 180px; }
  .spec-visual.eco .us { width: calc(100% + 28px); height: 240px; margin: 0 -14px; }
  .chip { font-size: .74rem; padding: 7px 10px; }
  .chip strong { font-size: 1rem; }
  .chip::before { width: 28px; }
  .chip-1::after { left: calc(100% + 26px); }
  .chip-2::after { right: calc(100% + 26px); }
  .chip-3::before { width: 24px; }
  .chip-3::after { left: calc(100% + 22px); }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .price { padding: 32px 22px; }
  .contact-box { padding: 24px 22px; }
  .header-cta { gap: 16px; }
  .brand { font-size: 1.18rem; }
  .faq summary { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ecg path { stroke-dashoffset: 0; }
}
