/* =========================================================
   Dott. Giscardo F. Panzavolta — Medicina dello Sport
   Tema chiaro ispirato ad Apple (apple.com/mac)
   Palette: #fff / #f5f5f7 / #1d1d1f / blu #0071e3 / rosso #ff3b30
   Font: San Francisco via system stack
   ========================================================= */

:root{
  /* Backgrounds */
  --bg:            #ffffff;
  --bg-2:          #f5f5f7;
  --bg-3:          #fbfbfd;
  --surface:       #ffffff;
  --surface-2:     #f5f5f7;
  --border:        #e3e3e6;
  --border-strong: #d2d2d7;

  /* Text */
  --text:          #1d1d1f;
  --muted:         #6e6e73;
  --muted-2:       #86868b;

  /* Accent (Apple blue) — nomi storici mantenuti per compatibilità */
  --teal:          #0071e3;
  --teal-2:        #0066cc;
  --teal-soft:     rgba(0,113,227,.10);
  --aqua:          #42a5f5;
  --link:          #0066cc;
  /* iPad Air — colori prodotto e sfumature del testo */
  --blue-vivid:    #0a84ff;
  --purple:        #7c5cfc;
  --pink:          #e56ac3;
  --grad:          linear-gradient(100deg, #1e8bff 0%, #7c5cfc 50%, #e56ac3 100%);
  --grad-soft:     linear-gradient(120deg, #eef4ff, #f3eefe 45%, #fdeef7);

  /* Heart / pulse (Apple red) */
  --pulse:         #ff3b30;
  --pulse-soft:    rgba(255,59,48,.10);
  --gold:          #ff9f0a;

  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     24px;

  --shadow:        0 6px 24px rgba(0,0,0,.08);
  --shadow-lg:     0 18px 50px -20px rgba(0,0,0,.22);
  --shadow-teal:   0 8px 24px -8px rgba(0,113,227,.35);

  --maxw:          1180px;
  --gut:           clamp(20px, 5vw, 56px);

  --ease:          cubic-bezier(.28,.11,.32,1);
  --font:          -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                   "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; scroll-padding-top:88px; }
section[id]{ scroll-margin-top:88px; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.47;
  font-size:17px;
  letter-spacing:-.003em;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:rgba(124,92,252,.20); color:#1d1d1f; }

h1,h2,h3,h4{ line-height:1.08; font-weight:500; letter-spacing:-.016em; margin:0 0 .4em; color:var(--text); }
h1{ font-size:clamp(2.35rem,5.4vw,4.1rem); font-weight:500; letter-spacing:-.022em; }
h2{ font-size:clamp(1.75rem,3.4vw,2.8rem); font-weight:500; }
h3{ font-size:clamp(1.18rem,2vw,1.5rem); font-weight:500; }
p{ margin:0 0 1rem; color:var(--muted); }
strong,b{ color:var(--text); font-weight:500; }

.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut); }
section{ position:relative; padding:clamp(60px,8vw,120px) 0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-size:.78rem; font-weight:500; letter-spacing:.04em; text-transform:uppercase;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
  margin:0 0 1rem;
}
.eyebrow::before{ content:""; width:24px; height:1px; background:var(--grad); }
.lead{ font-size:clamp(1.06rem,1.6vw,1.32rem); color:var(--muted); max-width:62ch; line-height:1.45; }
.center{ text-align:center; } .center .lead{ margin-inline:auto; }
.text-grad{
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- Buttons ---------- */
.btn{
  --pad:.78em 1.35em;
  display:inline-flex; align-items:center; gap:.5em;
  padding:var(--pad); border-radius:980px; font-weight:400; font-size:1rem; line-height:1;
  border:1px solid transparent; transition:background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn svg{ width:1.05em; height:1.05em; }
.btn-primary{ background:linear-gradient(120deg,#0a84ff,#0071e3); color:#fff; }
.btn-primary:hover{ filter:brightness(1.07); }
.btn-ghost{ background:var(--surface-2); color:var(--text); border-color:var(--border-strong); }
.btn-ghost:hover{ background:#ececee; }
.btn-lg{ --pad:.95em 1.7em; font-size:1.06rem; }

.linkarrow{ display:inline-flex; align-items:center; gap:.35em; color:var(--link); font-weight:500; }
.linkarrow svg{ width:1.05em; height:1.05em; transition:transform .3s var(--ease); }
.linkarrow:hover{ text-decoration:underline; }
.linkarrow:hover svg{ transform:translateX(4px); }

/* ---------- Header ---------- */
.site-header{
  position:fixed; top:0; inset-inline:0; z-index:90;
  transition:background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:rgba(255,255,255,.82); backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom-color:rgba(0,0,0,.1);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:70px; gap:1rem; }
.brand{ display:flex; align-items:center; gap:.6rem; font-weight:600; }
.brand .logo{ width:38px; height:38px; flex:none; border-radius:9px; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.brand b{ font-weight:500; font-size:.96rem; white-space:nowrap; }
.brand small{ display:block; font-size:.72rem; color:var(--muted-2); font-weight:400; margin-top:-1px;}
.nav-links{ display:flex; align-items:center; gap:.05rem; list-style:none; margin:0; padding:0; }
.nav-links a{
  display:block; padding:.5em .55em; border-radius:8px; font-size:.82rem; font-weight:400; color:var(--text); opacity:.78;
  white-space:nowrap; transition:opacity .2s, background .2s;
}
.nav-links a:hover{ opacity:1; background:var(--surface-2); }
.nav-links a.active{ opacity:1; font-weight:400; }
.nav-cta{ display:flex; align-items:center; gap:.5rem; }
.nav-toggle{ display:none; background:none; border:0; padding:8px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--text); border-radius:2px; transition:.3s var(--ease); }
.nav-toggle span+span{ margin-top:6px; }

@media (max-width:1080px){
  .nav-toggle{ display:block; z-index:101; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
  .nav-panel{
    position:fixed; inset:0 0 0 auto; width:min(86vw,360px); z-index:100;
    background:rgba(255,255,255,.96); backdrop-filter:blur(20px);
    transform:translateX(100%); transition:transform .45s var(--ease);
    display:flex; flex-direction:column; justify-content:center; gap:1rem; padding:5rem 2rem 2rem;
    border-left:1px solid var(--border);
  }
  .nav-panel.open{ transform:translateX(0); box-shadow:var(--shadow-lg); }
  .nav-links{ flex-direction:column; align-items:stretch; gap:.2rem; }
  .nav-links a{ font-size:1.15rem; padding:.6em .6em; opacity:1; }
  .nav-cta .btn{ width:100%; justify-content:center; }
  .nav-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.25); z-index:99; opacity:0; visibility:hidden; transition:.3s; }
  .nav-backdrop.open{ opacity:1; visibility:visible; }
}

/* ---------- HERO ---------- */
.hero{ padding-top:clamp(120px,17vh,170px); padding-bottom:clamp(36px,6vw,80px); overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(24px,4vw,64px); align-items:center; }
.hero h1{ margin-bottom:.45em; }
.hero .lead{ margin-bottom:1.7em; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.6em; }
.pill{
  display:inline-flex; align-items:center; gap:.45em; padding:.42em .9em; border-radius:980px;
  background:var(--surface-2); border:1px solid var(--border); font-size:.82rem; color:var(--muted); font-weight:500;
  text-decoration:none; transition:border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
a.pill:hover{ color:var(--text); border-color:var(--teal); background:var(--teal-soft); }
.pill .dot{ width:7px; height:7px; border-radius:50%; background:var(--teal); }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; }

/* Hero visual */
.hero-stage{
  position:relative; aspect-ratio:1/1; width:100%; max-width:576px; margin-inline:auto;
  border-radius:var(--radius-lg);
  background:
    radial-gradient(120% 120% at 82% 6%, rgba(124,92,252,.22), transparent 55%),
    radial-gradient(110% 110% at 6% 94%, rgba(30,139,255,.20), transparent 55%),
    radial-gradient(90% 90% at 96% 98%, rgba(229,106,195,.18), transparent 55%),
    linear-gradient(170deg, #fbfbfd, #f3f1fb);
  border:1px solid var(--border); box-shadow:var(--shadow-lg); overflow:visible;
}
.hero-stage .ring{ position:absolute; border-radius:50%; border:1px solid var(--border-strong); inset:12%; }
.hero-stage .ring.r2{ inset:24%; border-color:rgba(0,113,227,.22); }
.hero-stage .ring.r3{ inset:36%; border-color:var(--border); }
.hero-runner{ position:absolute; inset:0; display:grid; place-items:center; }
.hero-runner svg{ width:64%; filter:drop-shadow(0 14px 24px rgba(0,0,0,.12)); }
.heart{
  position:absolute; top:13%; left:50%; transform:translateX(-50%);
  width:58px; height:58px; color:var(--pulse);
  filter:drop-shadow(0 6px 14px rgba(255,59,48,.28));
  transition:transform .12s ease-out; will-change:transform;
}
@keyframes beat{
  0%,100%{ transform:translateX(-50%) scale(1); }
  14%{ transform:translateX(-50%) scale(1.16); }
  28%{ transform:translateX(-50%) scale(1.02); }
  42%{ transform:translateX(-50%) scale(1.12); }
}
.ecg-strip{
  position:absolute; left:6%; right:6%; bottom:9%; height:84px;
  border-radius:14px; background:rgba(255,255,255,.85); border:1px solid var(--border);
  overflow:hidden; backdrop-filter:blur(4px); box-shadow:var(--shadow);
}
.ecg-strip svg{ width:200%; height:100%; }
.ecg-line{ fill:none; stroke:var(--teal); stroke-width:2.4; }
.ecg-scroll{ animation:ecgmove 3.4s linear infinite; }
@keyframes ecgmove{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.vital{
  position:absolute; display:flex; align-items:center; gap:.55rem;
  padding:.5rem .8rem; border-radius:12px; background:#fff;
  border:1px solid var(--border); box-shadow:var(--shadow);
  font-size:.8rem; color:var(--text);
  opacity:0; transform:translateY(8px); animation:vitalIn .7s var(--ease) forwards;
}
.vital .k{ color:var(--muted-2); font-size:.66rem; text-transform:uppercase; letter-spacing:.04em; display:block; }
.vital b{ font-size:1rem; }
.vital .ico{ width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal); }
.vital.v1{ top:10%; right:-6%; animation-delay:.5s; }
.vital.v2{ top:51%; left:-7%; animation-delay:.9s; }
.vital.v3{ bottom:21%; right:-6%; animation-delay:1.3s; }
@keyframes vitalIn{ to{ opacity:1; transform:translateY(0); } }
.hero-stage.float .vital{ animation:vitalIn .7s var(--ease) forwards, floaty 6s ease-in-out infinite; }
@keyframes floaty{ 0%,100%{ translate:0 0; } 50%{ translate:0 -7px; } }

/* Ergometer card */
.hero-runner svg{ width:80%; }
.ecg-strip canvas{ display:block; width:100%; height:100%; }
.vital .erg{ display:block; }
.vital .erg .k{ color:var(--muted-2); font-size:.66rem; text-transform:uppercase; letter-spacing:.04em; display:block; }
.vital .erg b{ font-size:1rem; display:block; line-height:1.05; }
.vital .erg-intro b{ font-size:.78rem; font-weight:600; line-height:1.12; max-width:122px; }
.erg-timer{ position:absolute; top:5%; left:-6%; z-index:3; display:flex; flex-direction:column; gap:2px;
  padding:.5rem .8rem; border-radius:12px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow);
  opacity:0; transform:translateY(8px); animation:vitalIn .7s var(--ease) .35s forwards; }
.erg-timer .t-title{ color:var(--muted-2); font-size:.66rem; text-transform:uppercase; letter-spacing:.04em; }
.erg-timer .t-val{ font-size:1.5rem; font-weight:700; line-height:1; color:var(--text); font-variant-numeric:tabular-nums; }
.erg-timer .t-inizio{ font-size:1.15rem; color:var(--teal); }
.erg-timer .t-picco{ color:var(--pulse); text-transform:uppercase; letter-spacing:.05em; }
.hero-stage.float .erg-timer{ animation:vitalIn .7s var(--ease) .35s forwards, floaty 6s ease-in-out infinite; }

@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-stage{ max-width:400px; order:-1; }
  .vital.v1{ right:0; } .vital.v2{ left:0; } .vital.v3{ right:0; } .erg-timer{ left:0; top:6%; }
}

/* ---------- Trust ---------- */
.trust{ padding:0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--bg-2); }
.trust-row{ display:flex; flex-wrap:wrap; gap:1rem 2.4rem; align-items:center; justify-content:center; }
.trust-item{ display:flex; align-items:center; gap:.55rem; color:var(--muted); font-size:.92rem; font-weight:500; }
.trust-item svg{ width:20px; height:20px; color:var(--teal); flex:none; }

/* ---------- Section heading ---------- */
.shead{ max-width:66ch; }
.shead.center{ margin-inline:auto; }

/* ---------- Cards grid ---------- */
.grid{ display:grid; gap:1.1rem; }
.grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.grid.cols-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid.cols-3,.grid.cols-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .grid.cols-2,.grid.cols-3,.grid.cols-4{ grid-template-columns:1fr; } }

.card{
  position:relative; padding:1.6rem; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--border);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow:hidden;
}
.card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); border-color:var(--border-strong); }
.card .ic{
  width:50px; height:50px; border-radius:14px; display:grid; place-items:center; margin-bottom:1rem;
  background:var(--teal-soft); color:var(--teal);
}
.card .ic svg{ width:24px; height:24px; }
.card h3{ margin-bottom:.4rem; }
.card p{ font-size:.96rem; margin-bottom:.9rem; }
.card .tag{ display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--teal); background:var(--teal-soft); padding:.3em .7em; border-radius:999px; margin-bottom:.9rem; }
.card.feature{ background:linear-gradient(170deg, rgba(124,92,252,.08), #fff); border-color:rgba(124,92,252,.22); }

/* ---------- Split / media ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,4vw,60px); align-items:center; }
.split.reverse > :first-child{ order:2; }
@media (max-width:860px){ .split{ grid-template-columns:1fr; } .split.reverse > :first-child{ order:0; } }
.media-card{
  border-radius:var(--radius-lg); border:1px solid var(--border); background:var(--surface);
  padding:1.4rem; box-shadow:var(--shadow); position:relative; overflow:hidden;
}

/* ---------- 12 vs 3 derivazioni ---------- */
.compare{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin:1.4rem 0; }
@media (max-width:560px){ .compare{ grid-template-columns:1fr; } }
.compare .col{ padding:1.2rem; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--bg-2); }
.compare .col.good{ border-color:rgba(0,113,227,.3); background:var(--teal-soft); }
.compare h4{ font-size:1rem; display:flex; align-items:center; gap:.5rem; }
.leads{ display:grid; grid-template-columns:repeat(6,1fr); gap:5px; margin-top:.8rem; }
.leads i{ height:26px; border-radius:5px; background:rgba(0,0,0,.08); display:block; }
.leads.twelve i{ background:linear-gradient(160deg,#0a84ff,#0071e3); }
.leads.three i:nth-child(n+4){ opacity:.2; background:rgba(0,0,0,.08); }

/* ---------- Scrollytelling ---------- */
.scrolly{ position:relative; }
.scrolly-grid{ display:grid; grid-template-columns:.95fr 1.05fr; gap:clamp(24px,5vw,72px); align-items:start; }
.scrolly-sticky{ position:sticky; top:92px; height:min(70vh,560px); }
.scrolly-visual{
  width:100%; height:100%; border-radius:var(--radius-lg); border:1px solid var(--border);
  background:radial-gradient(120% 120% at 80% 8%, rgba(124,92,252,.15), transparent 58%), radial-gradient(110% 110% at 8% 96%, rgba(30,139,255,.13), transparent 58%), var(--bg-2);
  box-shadow:var(--shadow); position:relative; overflow:hidden; display:grid; place-items:center;
}
.scrolly-heart{ width:46%; color:var(--pulse); filter:drop-shadow(0 10px 24px rgba(255,59,48,.25)); transition:transform .5s var(--ease), color .5s; }
.scrolly-visual .label{
  position:absolute; bottom:18px; left:18px; right:18px; padding:.7rem 1rem; border-radius:12px;
  background:#fff; border:1px solid var(--border); box-shadow:var(--shadow);
  font-size:.85rem; color:var(--muted); transition:.4s;
}
.scrolly-visual .label b{ color:var(--teal); }
.scrolly-visual .mini-ecg{ position:absolute; top:18px; left:18px; right:18px; height:60px; opacity:.9; }
.scrolly-visual .mini-ecg path{ fill:none; stroke:var(--teal); stroke-width:2; }
.scrolly-steps{ display:flex; flex-direction:column; gap:1rem; }
.step{
  padding:1.5rem 1.6rem; border-radius:var(--radius); border:1px solid var(--border);
  background:var(--surface); opacity:.5; transition:opacity .45s var(--ease), border-color .45s, transform .45s, box-shadow .45s;
}
.step.active{ opacity:1; border-color:rgba(0,113,227,.35); background:#fff; box-shadow:var(--shadow); transform:translateX(4px); }
.step .num{ font-size:.78rem; font-weight:600; color:var(--teal); letter-spacing:.1em; }
.step h3{ margin:.3rem 0 .4rem; }
.step p{ margin:0; font-size:.96rem; }
@media (max-width:860px){
  .scrolly-grid{ grid-template-columns:1fr; }
  .scrolly-sticky{ position:relative; top:0; height:300px; margin-bottom:1rem; }
}

/* ---------- Stats ---------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
@media (max-width:760px){ .stats{ grid-template-columns:repeat(2,1fr); } }
.stat{ padding:1.4rem; border-radius:var(--radius); border:1px solid var(--border); background:var(--bg-2); text-align:center; }
.stat .n{ font-size:clamp(2rem,4vw,2.8rem); font-weight:500; line-height:1; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; letter-spacing:-.02em; }
.stat .l{ font-size:.85rem; color:var(--muted); margin-top:.4rem; }

/* ---------- Timeline ---------- */
.timeline{ position:relative; margin-top:2rem; }
.timeline::before{ content:""; position:absolute; left:18px; top:6px; bottom:6px; width:2px; background:linear-gradient(180deg,var(--teal),transparent); }
.tl{ position:relative; padding:0 0 1.8rem 56px; }
.tl::before{ content:""; position:absolute; left:11px; top:4px; width:16px; height:16px; border-radius:50%; background:#fff; border:2px solid var(--teal); box-shadow:0 0 0 4px rgba(0,113,227,.1); }
.tl .yr{ font-size:.8rem; font-weight:500; color:var(--teal); letter-spacing:.01em; }
.tl h3{ font-size:1.12rem; margin:.2rem 0 .25rem; }
.tl p{ margin:0; font-size:.95rem; }

/* ---------- Accordion / FAQ ---------- */
.acc{ border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.acc + .acc{ margin-top:.8rem; }
.acc summary{
  list-style:none; cursor:pointer; padding:1.15rem 1.4rem; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  font-weight:500; color:var(--text); transition:background .3s;
}
.acc summary::-webkit-details-marker{ display:none; }
.acc summary:hover{ background:var(--surface-2); }
.acc .plus{ position:relative; width:20px; height:20px; flex:none; }
.acc .plus::before,.acc .plus::after{ content:""; position:absolute; inset:0; margin:auto; background:var(--teal); transition:.3s var(--ease); }
.acc .plus::before{ width:14px; height:2px; left:3px; top:9px; }
.acc .plus::after{ width:2px; height:14px; left:9px; top:3px; }
.acc[open] .plus::after{ transform:rotate(90deg); opacity:0; }
.acc .body{ padding:0 1.4rem 1.3rem; color:var(--muted); font-size:.97rem; }
.acc .body p:last-child{ margin-bottom:0; }

/* ---------- Requirement lists ---------- */
.req{ display:grid; gap:.9rem; margin:1.2rem 0; }
.req-item{ display:flex; gap:1rem; padding:1.1rem 1.2rem; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); }
.req-item .b{ width:34px; height:34px; flex:none; border-radius:10px; display:grid; place-items:center; font-weight:600; color:var(--teal); background:var(--teal-soft); }
.req-item h4{ font-size:1.02rem; margin:.1rem 0 .3rem; }
.req-item p{ margin:0; font-size:.94rem; }
.req-item.warn .b{ color:var(--gold); background:rgba(255,159,10,.14); }

.note{
  display:flex; gap:.8rem; padding:1.1rem 1.2rem; border-radius:var(--radius-sm);
  border:1px solid #f2d9a0; background:#fff8ec; color:#5a4300; font-size:.95rem;
}
.note.teal{ border-color:#bcdcff; background:#eaf3fe; color:#0b4a8f; }
.note.red{ border-color:#f5c2c0; background:#feecec; color:#8a1c16; }
.note svg{ width:22px; height:22px; flex:none; margin-top:1px; }
.note b{ color:var(--text); }

/* ---------- Download grid ---------- */
.dl-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:.8rem; }
@media (max-width:860px){ .dl-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .dl-grid{ grid-template-columns:1fr; } }
.dl{
  display:flex; align-items:center; gap:.85rem; padding:1rem 1.1rem; border-radius:var(--radius-sm);
  border:1px solid var(--border); background:var(--surface); transition:transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.dl:hover{ transform:translateY(-3px); border-color:var(--teal); box-shadow:var(--shadow); }
.dl .doc{ width:38px; height:46px; flex:none; border-radius:6px; background:linear-gradient(160deg,#eef3fa,#dfe7f1); border:1px solid var(--border-strong); position:relative; display:grid; place-items:end center; }
.dl .doc::before{ content:"PDF"; font-size:.52rem; font-weight:800; color:var(--pulse); background:#fff; padding:1px 4px; border-radius:3px; margin-bottom:5px; letter-spacing:.04em; box-shadow:0 0 0 1px var(--border); }
.dl .doc::after{ content:""; position:absolute; top:0; right:0; border-width:0 10px 10px 0; border-style:solid; border-color:#fff #fff transparent transparent; }
.dl .meta{ min-width:0; }
.dl .meta b{ display:block; font-size:.9rem; line-height:1.3; color:var(--text); }
.dl .meta span{ font-size:.76rem; color:var(--muted-2); }

/* ---------- News ---------- */
.news-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.1rem; }
.news{ display:flex; flex-direction:column; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface); overflow:hidden; box-shadow:0 1px 2px rgba(0,0,0,.04); transition:transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.news:hover{ transform:translateY(-5px); box-shadow:var(--shadow); border-color:var(--border-strong); }
.news .ph{ height:150px; position:relative; overflow:hidden; background:linear-gradient(135deg,#f5f5f7,#e8e8ec); }
.news .ph svg{ position:absolute; inset:0; width:100%; height:100%; }
.news .bd{ padding:1.3rem 1.4rem; }
.news .date{ font-size:.76rem; color:var(--teal); font-weight:500; letter-spacing:.04em; text-transform:uppercase; }
.news h3{ font-size:1.18rem; margin:.4rem 0 .5rem; }
.news p{ font-size:.93rem; }
.news.big{ grid-column:1/-1; }
@media (min-width:860px){ .news.big{ display:grid; grid-template-columns:1.1fr 1fr; } .news.big .ph{ height:auto; min-height:300px; } }

/* ---------- Flow diagram ---------- */
.flow{ display:grid; grid-template-columns:repeat(4,1fr); gap:.7rem; margin:1.6rem 0; }
@media (max-width:860px){ .flow{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .flow{ grid-template-columns:1fr; } }
.flow-node{ padding:1.1rem; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); position:relative; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.flow-node .n{ font-size:.72rem; font-weight:600; color:var(--teal); letter-spacing:.04em; text-transform:uppercase; }
.flow-node h4{ font-size:1rem; margin:.35rem 0 .25rem; }
.flow-node p{ font-size:.85rem; margin:0; }
.flow-node.alert{ border-color:#f5c2c0; }
.flow-node.alert .n{ color:var(--pulse); }
.flow-node.ok{ border-color:rgba(0,113,227,.32); background:var(--teal-soft); }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius:var(--radius-lg); padding:clamp(36px,6vw,68px); text-align:center; position:relative; overflow:hidden;
  background:var(--grad-soft); border:1px solid var(--border);
}
.cta-band::before{ content:""; position:absolute; inset:0; background:radial-gradient(70% 130% at 50% -10%, rgba(124,92,252,.16), transparent 60%); }
.cta-band > *{ position:relative; }
.cta-band h2{ margin-bottom:.4em; }
.cta-band .hero-actions{ justify-content:center; margin-top:1.4rem; }

/* ---------- Studio / contatti ---------- */
.info-list{ list-style:none; margin:1.4rem 0; padding:0; display:grid; gap:1rem; }
.info-list li{ display:flex; gap:.9rem; align-items:flex-start; }
.info-list .ic{ width:42px; height:42px; flex:none; border-radius:12px; display:grid; place-items:center; background:var(--teal-soft); color:var(--teal); }
.info-list .ic svg{ width:20px; height:20px; }
.info-list b{ display:block; color:var(--text); }
.info-list span,.info-list a{ color:var(--muted); font-size:.95rem; }
.info-list a:hover{ color:var(--teal); }
.map-wrap{ border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow); aspect-ratio:4/3; }
.map-wrap iframe{ width:100%; height:100%; border:0; filter:grayscale(.18) contrast(1.02); }

/* form */
.form{ display:grid; gap:.9rem; }
.field{ display:grid; gap:.35rem; }
.field label{ font-size:.82rem; color:var(--muted); font-weight:500; }
.field input,.field textarea,.field select{
  width:100%; padding:.85em 1em; border-radius:12px; background:#fff;
  border:1px solid var(--border-strong); color:var(--text); font-family:inherit; font-size:.95rem; transition:border-color .3s, box-shadow .3s;
}
.field input:focus,.field textarea:focus,.field select:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 4px rgba(0,113,227,.12); }
.form .msg{ font-size:.9rem; color:var(--teal); display:none; }
.form.sent .msg{ display:block; }

/* ---------- Page hero ---------- */
.page-hero{ padding-top:clamp(125px,15vh,170px); padding-bottom:clamp(28px,5vw,56px); }
.page-hero .lead{ margin-top:.6rem; }
.breadcrumb{ font-size:.82rem; color:var(--muted-2); margin-bottom:1rem; }
.breadcrumb a:hover{ color:var(--teal); }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--border); padding:clamp(44px,6vw,72px) 0 32px; background:var(--bg-2); }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:2rem; }
@media (max-width:860px){ .foot-grid{ grid-template-columns:1fr 1fr; gap:1.6rem; } }
@media (max-width:520px){ .foot-grid{ grid-template-columns:1fr; } }
.foot-grid h4{ font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); margin-bottom:.9rem; font-weight:600; }
.foot-grid ul{ list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.foot-grid a, .foot-grid li{ color:var(--muted); font-size:.9rem; }
.foot-grid a:hover{ color:var(--teal); }
.foot-bottom{ margin-top:2.4rem; padding-top:1.4rem; border-top:1px solid var(--border); display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; justify-content:space-between; align-items:center; color:var(--muted-2); font-size:.82rem; }
.disclaimer{ margin-top:1.2rem; font-size:.78rem; color:var(--muted-2); max-width:80ch; }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s; } .reveal.d2{ transition-delay:.16s; }
.reveal.d3{ transition-delay:.24s; } .reveal.d4{ transition-delay:.32s; }

/* ---------- Utilities ---------- */
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.muted{ color:var(--muted); } .small{ font-size:.86rem; }
.divider{ height:1px; background:var(--border); margin:1.4rem 0; border:0; }
.tagrow{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.6rem; }
.chip{ font-size:.78rem; padding:.35em .8em; border-radius:999px; border:1px solid var(--border); background:var(--surface-2); color:var(--muted); }
a.chip:hover{ border-color:var(--teal); color:var(--teal); }

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
}

/* ============================================================
   INTRO — tipografia cinetica stile Apple (solo home)
   ============================================================ */
html.intro-lock, html.intro-lock body{ overflow:hidden; }
.intro{
  position:fixed; inset:0; z-index:1000; display:grid; place-items:center;
  background:#ffffff; color:#1d1d1f; text-align:center; padding:5vw;
  transition:background .45s var(--ease), color .45s var(--ease);
}
.intro.dark{ background:#1d1d1f; color:#ffffff; }
.intro.gone{ opacity:0; visibility:hidden; transition:opacity 1.2s ease, visibility 1.2s; }
.intro .kt{
  max-width:16ch; font-weight:400; letter-spacing:-.025em; line-height:1.05;
  font-size:clamp(2rem,6.6vw,4.6rem); text-wrap:balance;
}
.intro .kt.small{ font-size:clamp(2rem,6.4vw,4rem); max-width:20ch; letter-spacing:-.02em; line-height:1.3; }
.intro .kt.stmt{ display:flex; flex-direction:column; align-items:center; gap:.5em; max-width:26ch; font-size:clamp(2rem,6.2vw,3.9rem); line-height:1.28; letter-spacing:-.02em; }
.intro .kt.stmt .l2{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; opacity:0; transform:translateY(14px); transition:opacity .55s var(--ease), transform .55s var(--ease); }
.intro .kt.stmt .l2.in{ opacity:1; transform:none; }
.intro .kt.list{ font-size:clamp(1.15rem,3.4vw,2.05rem); max-width:30ch; letter-spacing:-.015em; line-height:1.2; }
.intro .kt em{ font-style:normal; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.intro .kt .b{ font-weight:700; }
/* lista animata (servizi / accertamenti): entrano uno alla volta, il nuovo in gradiente, i precedenti in nero */
.intro .kt.build{ max-width:min(96vw,62ch); width:100%; }
.intro .bhead{ font-size:clamp(1.25rem,3.3vw,2.05rem); font-weight:400; color:var(--muted); margin-bottom:1.5em; letter-spacing:-.005em; text-wrap:balance; max-width:26ch; margin-inline:auto; }
.intro .blist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.6em; align-items:center; }
.intro .blist li{
  font-size:clamp(1.3rem,3.3vw,2.3rem); font-weight:400; letter-spacing:-.015em; line-height:1.3; color:#1d1d1f;
  opacity:0; transform:translateY(14px);
  transition:opacity .55s var(--ease), transform .55s var(--ease);
}
.intro .blist li.in{ opacity:1; transform:none; }
.intro .blist li.cur{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.intro .blist li.big{ font-size:clamp(1.55rem,3.9vw,2.8rem); font-weight:600; }
/* testo prevalentemente giustificato nei contenuti */
main p{ text-align:justify; text-justify:inter-word; -webkit-hyphens:auto; hyphens:auto; }
main p.small, main .msg, main .note p{ text-align:left; hyphens:manual; }

/* frame servizi ingrandito */
.intro .kt.build.bigger{ max-width:min(96vw,68ch); }
.intro .kt.build.bigger .bhead{ font-size:clamp(1.5rem,4.2vw,2.7rem); margin-bottom:1.05em; max-width:none; white-space:nowrap; }
.intro .kt.build.bigger .blist{ gap:.4em; }
.intro .kt.build.bigger .blist li{ font-size:clamp(1.42rem,3.6vw,2.45rem); }
.intro .kt.build.bigger .blist li.big{ font-size:clamp(1.68rem,4.2vw,2.9rem); }
/* outro: runner ancorato al runner della home + nome a sinistra (transizione continua) */
.intro .intro-cutout{ pointer-events:none; }
.intro .outro-name .lock{ align-items:flex-end; text-align:right; gap:14px; }
@keyframes ktIn{ 0%{ opacity:0; transform:translateY(18px); filter:blur(7px); } 100%{ opacity:1; transform:translateY(0); filter:blur(0); } }
.intro .lock{ display:flex; flex-direction:column; align-items:center; gap:18px; }
.intro .lock .logo{ width:88px; height:88px; border-radius:21px; box-shadow:0 14px 34px rgba(0,113,227,.3); }
.intro .lock .e{ font-size:clamp(.85rem,2.4vw,1.15rem); letter-spacing:.06em; text-transform:uppercase; opacity:.6; font-weight:500; max-width:22ch; }
.intro .lock .nm{ font-size:clamp(2.1rem,6vw,3.4rem); font-weight:500; letter-spacing:-.02em; }
.intro .lock .adr{ font-size:clamp(.95rem,2.4vw,1.25rem); color:var(--muted); font-weight:400; letter-spacing:.01em; margin-top:.25em; }
.intro .skip{ position:absolute; bottom:26px; left:50%; transform:translateX(-50%); font-size:.76rem; letter-spacing:.02em; opacity:.4; font-weight:500; }
@media (prefers-reduced-motion:reduce){ .intro{ display:none !important; } }
