:root{
  --bg:#fbfbfd;
  --surface:#ffffff;
  --tint:#f5f5f7;
  --ink:#1d1d1f;
  --dim:#6e6e73;
  --faint:#86868b;
  --line:#e3e3e6;
  --accent:#0071e3;
  --ok:#1a9c4a;
  --no:#d6362b;
  --warn:#b8730a;
  --shadow:0 2px 10px rgba(0,0,0,.05), 0 12px 40px rgba(0,0,0,.05);
  --hero-bg:#000000;
  --hero-ink:#f5f5f7;
  --hero-dim:#a1a1a6;
  --r-lg:28px;
  --r-md:20px;
  --ui:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --brand:"Poppins","Inter",-apple-system,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#000000;--surface:#151517;--tint:#1c1c1e;--ink:#f5f5f7;--dim:#a1a1a6;--faint:#86868b;--line:#2a2a2e;
    --accent:#2997ff;--ok:#30d158;--no:#ff6961;--warn:#ffb340;
    --shadow:0 2px 10px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.35);
    --hero-bg:#0a0a0c;
    color-scheme:dark;
  }
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:64px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--ui);font-size:17px;line-height:1.55;
  -webkit-font-smoothing:antialiased;letter-spacing:-.01em}
.wrap{width:100%;max-width:980px;margin:0 auto;padding-inline:clamp(16px,5vw,32px)}
.section{padding-block:clamp(56px,9vw,112px)}
.center{text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px}
h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.03em;text-wrap:balance}
h1{font-size:clamp(40px,7vw,76px);line-height:1.04}
h2{font-size:clamp(28px,4.4vw,46px);line-height:1.1}
h3{font-size:19px;line-height:1.3;letter-spacing:-.02em}
p{margin:0}
.lead{font-size:clamp(18px,2.2vw,22px);line-height:1.5;color:var(--dim);max-width:36ch}
.body-text{color:var(--dim);max-width:62ch}
.kicker{font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--accent)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:999px}

/* barra in alto */
.bar{position:sticky;top:0;z-index:10;background:rgba(0,0,0,.78);backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid rgba(255,255,255,.08)}
.bar .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:52px}
.bar .logo{display:flex;align-items:center;gap:9px;color:#f5f5f7;font-family:var(--brand);font-weight:500;font-size:17px}
.bar .logo svg{width:20px;height:auto}
.bar nav{display:flex;gap:clamp(12px,3vw,26px);font-size:13px}
.bar nav a{color:#d2d2d7}
.bar nav a:hover{color:#fff;text-decoration:none}
.bar nav .lang{color:#fff;font-weight:600}
@media (max-width:640px){.bar nav a:not(.lang){display:none}}

/* hero */
.hero{background:var(--hero-bg);color:var(--hero-ink);border-radius:0 0 var(--r-lg) var(--r-lg)}
.hero .wrap{padding-block:clamp(64px,10vw,124px) clamp(56px,9vw,104px)}
.hero h1{color:var(--hero-ink)}
.hero .lead{color:var(--hero-dim);max-width:40ch}
.mark{width:74px;height:auto;margin-bottom:8px}
.wordmark{font-family:var(--brand);font-weight:500;font-size:22px;letter-spacing:.01em;color:var(--hero-ink)}
.pill-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:10px}
.pill-btn{display:inline-block;border-radius:999px;padding:12px 24px;font-size:15px;font-weight:500;background:var(--accent);
  color:#fff;transition:opacity .2s ease}
.pill-btn:hover{opacity:.88;text-decoration:none}
.pill-btn--ghost{background:transparent;color:var(--hero-ink);border:1px solid rgba(245,245,247,.35)}
.pill-btn--ghost:hover{border-color:var(--hero-ink)}
.status{display:inline-flex;align-items:center;gap:9px;border-radius:999px;padding:7px 16px;background:rgba(245,245,247,.1);
  color:var(--hero-dim);font-size:13px;font-weight:500}
.led{width:8px;height:8px;border-radius:50%;background:#30d158;box-shadow:0 0 0 3px rgba(48,209,88,.2)}

/* numeri */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-top:44px}
.stat{background:var(--surface);border-radius:var(--r-md);box-shadow:var(--shadow);padding:24px 22px;text-align:left}
.stat b{display:block;font-size:40px;font-weight:600;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
.stat span{display:block;margin-top:8px;color:var(--dim);font-size:15px;line-height:1.35}

/* schede */
.grid{display:grid;gap:16px;margin-top:44px}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.card{background:var(--surface);border-radius:var(--r-md);padding:30px 28px 32px;box-shadow:var(--shadow);display:flex;
  flex-direction:column;gap:12px;text-align:left}
.card p{color:var(--dim);font-size:16px}
.card .num{width:34px;height:34px;border-radius:50%;background:var(--tint);color:var(--ink);display:grid;place-items:center;
  font-size:14px;font-weight:600}
.gate{font-size:14px;color:var(--faint);margin-top:auto;padding-top:8px}

/* registro: linea del tempo per fasi */
.filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:30px}
.filters button{font:inherit;font-size:14px;font-weight:500;border:0;border-radius:999px;padding:8px 16px;cursor:pointer;
  background:var(--tint);color:var(--dim)}
.filters button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.ledger{display:flex;flex-direction:column;gap:18px;margin-top:28px;text-align:left}
.phase{background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:clamp(22px,4vw,36px)}
.phase-head{display:flex;gap:18px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--line)}
.phase-n{font-size:15px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums;background:var(--tint);
  border-radius:12px;padding:8px 10px;line-height:1}
.phase-head h3{font-size:22px}
.phase-head p{color:var(--dim);font-size:15px;margin-top:4px}
.phase-sum{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px!important}
.c{font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.c::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.c--ok{color:var(--ok)}.c--no{color:var(--no)}.c--warn{color:var(--warn)}.c--run{color:var(--accent)}
.tl{list-style:none;margin:0;padding:6px 0 0;position:relative}
.tl::before{content:"";position:absolute;left:5px;top:22px;bottom:22px;width:2px;background:var(--line)}
.ev{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:4px 18px;align-items:start;padding:16px 0;
  border-bottom:1px solid var(--line)}
.ev:last-child{border-bottom:0;padding-bottom:0}
.dot{width:12px;height:12px;border-radius:50%;margin-top:5px;background:var(--surface);border:3px solid var(--faint);position:relative}
.ev[data-k="ok"] .dot{border-color:var(--ok)}
.ev[data-k="no"] .dot{border-color:var(--no)}
.ev[data-k="warn"] .dot{border-color:var(--warn)}
.ev[data-k="run"] .dot{border-color:var(--accent);background:var(--accent)}
.ev-body{display:flex;flex-direction:column;gap:3px}
.when{font-size:13px;color:var(--faint);font-variant-numeric:tabular-nums}
.what{font-size:17px;font-weight:500;line-height:1.35}
.how{font-size:15px;color:var(--dim)}
.tag{border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;white-space:nowrap;background:var(--tint);color:var(--dim)}
.tag--ok{color:var(--ok)}.tag--no{color:var(--no)}.tag--warn{color:var(--warn)}.tag--run{color:var(--accent)}
@media (max-width:600px){.ev{grid-template-columns:12px minmax(0,1fr)}.ev .tag{grid-column:2;justify-self:start;margin-top:6px}}

/* metodo */
.method{display:flex;flex-direction:column;margin-top:40px;background:var(--surface);border-radius:var(--r-md);box-shadow:var(--shadow);
  overflow:hidden;text-align:left}
.method-item{display:flex;flex-direction:column;gap:6px;padding:24px 28px;border-top:1px solid var(--line)}
.method-item:first-child{border-top:0}
.method-item p{color:var(--dim);font-size:16px;max-width:62ch}

/* organismo */
.organism{background:var(--tint);border-radius:var(--r-lg);padding:clamp(28px,5vw,52px);display:grid;gap:28px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:center;margin-top:44px}
.organism figure{margin:0;display:flex;justify-content:center;color:var(--ink)}
.organism svg{width:100%;max-width:300px;height:auto}
.organism ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.organism li{display:flex;gap:12px;align-items:flex-start;color:var(--dim);font-size:16px}
.organism li b{color:var(--ink);font-weight:600}
.bullet{width:8px;height:8px;border-radius:50%;background:var(--accent);margin-top:9px;flex:none}

/* teoria */
.thesis{background:var(--hero-bg);color:var(--hero-ink);border-radius:var(--r-lg);padding:clamp(28px,5vw,56px);margin-top:44px;
  text-align:left;display:grid;gap:22px}
.thesis blockquote{margin:0;font-size:clamp(20px,2.6vw,27px);line-height:1.4;letter-spacing:-.02em;font-weight:500}
.thesis .pp{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.thesis .pp div{background:rgba(245,245,247,.08);border-radius:16px;padding:18px 20px}
.thesis .pp b{display:block;font-size:15px;margin-bottom:4px}
.thesis .pp span{color:var(--hero-dim);font-size:15px}

/* contatti */
.mailbox{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;background:var(--surface);
  box-shadow:var(--shadow);border-radius:999px;padding:10px 12px 10px 24px;margin-top:6px}
.mailbox code{font-family:var(--ui);font-size:19px;font-weight:500;user-select:all}
.mailbox button{font:inherit;font-size:14px;font-weight:500;border:0;border-radius:999px;padding:9px 18px;cursor:pointer;
  background:var(--accent);color:#fff}
.note{background:var(--tint);border-radius:var(--r-md);padding:22px 26px;color:var(--dim);font-size:15px;max-width:62ch;text-align:left}

footer{border-top:1px solid var(--line)}
footer .wrap{padding-block:28px 40px;display:flex;flex-wrap:wrap;gap:10px 28px;justify-content:space-between;color:var(--faint);font-size:13px}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
[hidden]{display:none!important}
