/* ══════════════ StructuRad · portale ══════════════ */
:root{
  --molla:cubic-bezier(.34,1.28,.64,1);
  --ease-intro:cubic-bezier(.785,.135,.15,.86);
  --bg:#F1F4F9; --surface:#FFFFFF; --surface2:#F7F9FC;
  --border:#DCE3EE; --border2:#C3CEDD;
  --text:#0F1A2B; --muted:#56667E; --faint:#93A2B8;
  --ink:#0A1628; --accent:#1E4FA8; --accent-bg:#EAF0FB; --accent-line:#C7D6F2;
  --sky:#2F7DE1; --light:#6AB0FF; --deep:#0B2350;
  --mono:'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --sans:'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box;}
html{background:var(--bg);}
body{margin:0; min-height:100vh; font-family:var(--sans); color:var(--text); background:
  radial-gradient(ellipse 60% 50% at 50% 30%, rgba(47,125,225,.10), transparent 70%), var(--bg);
  display:flex; flex-direction:column; overflow-x:hidden;}

/* ── testata ── */
.testata{position:relative; z-index:2; height:56px; display:flex; align-items:center; padding:0 1.6rem; background:var(--ink);}
.marchio{display:flex; align-items:center; gap:10px; text-decoration:none; color:#C6D3E8;}
.marchio-logo{display:block; width:30px; height:18px;}
.marchio-logo svg{display:block; width:100%; height:100%;}
.marchio-nome{font-family:var(--mono); font-size:14px; letter-spacing:.04em;}
.marchio-nome b{color:var(--light); font-weight:500;}

/* ── contenuto ── */
.pagina{position:relative; z-index:1; flex:1; width:100%; max-width:1080px; margin:0 auto; padding:3.5rem 1.5rem 3rem;}
.eroe{text-align:center; max-width:720px; margin:0 auto 3rem;}
.eroe-logo{width:150px; margin:0 auto 1rem; filter:drop-shadow(0 14px 30px rgba(47,125,225,.25));}
.eroe-logo svg{display:block; width:100%; height:auto;}
.eroe h1{margin:0; font-size:clamp(40px, 6vw, 64px); font-weight:300; letter-spacing:-.01em; color:var(--ink);}
.eroe h1 b{font-weight:600; background:linear-gradient(90deg, var(--deep), var(--accent) 45%, var(--sky)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.eroe-sottotitolo{margin:.4rem 0 1rem; font-family:var(--mono); font-size:12.5px; letter-spacing:.22em; text-transform:uppercase; color:var(--sky);}
.eroe-testo{margin:0 auto; max-width:60ch; font-size:16px; line-height:1.65; color:var(--muted);}

/* ── schede delle metodiche ── */
.metodiche{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px;}
.metodica{position:relative; display:flex; flex-direction:column; gap:6px; min-height:250px; padding:20px 18px 18px;
  border:1px solid var(--border); border-radius:16px; background:rgba(255,255,255,.86); backdrop-filter:blur(3px);
  color:var(--text); text-decoration:none; box-shadow:0 20px 40px -32px rgba(15,26,43,.5);
  animation:entra .6s var(--molla) both;}
.metodica:nth-child(2){animation-delay:.08s;} .metodica:nth-child(3){animation-delay:.16s;} .metodica:nth-child(4){animation-delay:.24s;}
@keyframes entra{from{opacity:0; transform:translateY(14px) scale(.97);} to{opacity:1; transform:none;}}
.metodica-num{font-family:var(--mono); font-size:11px; color:var(--faint);}
.metodica-sigla{font-family:var(--mono); font-size:40px; font-weight:300; line-height:1; color:transparent; -webkit-text-stroke:1.2px var(--accent); margin:6px 0 4px;}
.metodica-nome{font-size:16px; font-weight:500; color:var(--ink);}
.metodica-app{font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--sky);}
.metodica-descr{flex:1; font-size:13px; line-height:1.55; color:var(--muted);}
.metodica-stato{align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px;
  font-size:12.5px; font-weight:600; color:#fff; background:linear-gradient(135deg, var(--sky), var(--accent) 70%);
  transition:transform .25s var(--molla), box-shadow .2s ease;}
.metodica-stato svg{width:14px; height:14px; transition:transform .25s var(--molla);}
.metodica-stato.in-arrivo{color:var(--muted); background:var(--surface2); border:1px solid var(--border); font-weight:500;}
.metodica.attiva{border-color:var(--accent-line); transition:transform .3s var(--molla), box-shadow .3s ease, border-color .2s ease;}
.metodica.attiva:hover{transform:translateY(-4px); border-color:var(--sky); box-shadow:0 26px 50px -30px rgba(30,79,168,.6);}
.metodica.attiva:hover .metodica-stato svg{transform:translateX(3px);}
.metodica.attiva .metodica-sigla{-webkit-text-stroke-color:var(--sky);}
.metodica:not(.attiva) .metodica-sigla{-webkit-text-stroke-color:var(--border2);}
.nota{margin:2rem 0 0; text-align:center; font-size:12.5px; color:var(--faint);}
.piede{position:relative; z-index:1; padding:1rem 1.6rem; text-align:right; color:var(--faint);}
.copyright{font-size:11px; color:var(--faint); opacity:.85;}

/* logo che si disegna */
.logo-disegna path{stroke:url(#srGrad); stroke-width:30; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:1; stroke-dashoffset:1; fill-opacity:0;
  animation:disegna 1.1s var(--ease-intro) forwards, riempi .6s ease-out .6s forwards;}
@keyframes disegna{to{stroke-dashoffset:0;}}
@keyframes riempi{to{fill-opacity:1; stroke-opacity:0;}}

/* ── sfondo: STRUCTURAD verticale, tratto che percorre le lettere ── */
.sfondo-firma{position:fixed; inset:0; z-index:0; display:flex; justify-content:space-between; padding:0 2vw;
  overflow:hidden; pointer-events:none; user-select:none;
  -webkit-mask-image:radial-gradient(ellipse 85% 90% at 50% 50%, #000 40%, transparent 100%);
          mask-image:radial-gradient(ellipse 85% 90% at 50% 50%, #000 40%, transparent 100%);}
.firma-colonna{display:flex; flex-direction:column; flex-shrink:0; align-self:flex-start; will-change:transform;}
.firma-svg{display:block; flex:none; width:clamp(70px, 8.5vw, 140px); height:auto; overflow:visible;}
.firma-lettera{font-family:var(--mono); font-weight:300; font-size:112px;
  fill:none; stroke:#1E4FA8; stroke-width:1.1; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:520; stroke-dashoffset:520; animation:firmaTraccia 7s cubic-bezier(.45,.05,.35,1) infinite;}
.firma-lettera:nth-child(odd){opacity:.34;}
.firma-lettera:nth-child(even){opacity:.16;}
.onda-1{animation-delay:.35s;} .onda-2{animation-delay:.7s;} .onda-3{animation-delay:1.05s;} .onda-4{animation-delay:1.4s;}
.onda-5{animation-delay:1.75s;} .onda-6{animation-delay:2.1s;} .onda-7{animation-delay:2.45s;} .onda-8{animation-delay:2.8s;} .onda-9{animation-delay:3.15s;}
.sfasata-1 .firma-lettera{animation-duration:8.2s;} .sfasata-2 .firma-lettera{animation-duration:6.4s;} .sfasata-3 .firma-lettera{animation-duration:9s;}
@keyframes firmaTraccia{0%{stroke-dashoffset:520;} 45%{stroke-dashoffset:0;} 70%{stroke-dashoffset:0;} 100%{stroke-dashoffset:-520;}}
.firma-colonna.scende{animation:firmaScende 48s linear infinite;}
.firma-colonna.sale{animation:firmaSale 48s linear infinite;}
.firma-colonna.velocita-1{animation-duration:60s;} .firma-colonna.velocita-2{animation-duration:72s;}
.firma-colonna:nth-child(3n) .firma-lettera{stroke:#2F7DE1;}
@keyframes firmaScende{from{transform:translate3d(0,-50%,0);} to{transform:translate3d(0,0,0);}}
@keyframes firmaSale{from{transform:translate3d(0,0,0);} to{transform:translate3d(0,-50%,0);}}

@media (max-width:900px){
  .metodiche{grid-template-columns:repeat(2, minmax(0,1fr));}
  .piede{text-align:center;}
}
@media (max-width:520px){
  .metodiche{grid-template-columns:1fr;} .metodica{min-height:0;}
  .pagina{padding-top:2rem;} .firma-colonna:nth-child(n+5){display:none;}
}
@media (prefers-reduced-motion: reduce){
  .firma-colonna, .metodica{animation:none !important;}
  .firma-lettera{animation:none !important; stroke-dashoffset:0;}
  .logo-disegna path{animation:none; stroke-dashoffset:0; fill-opacity:1; stroke-opacity:0;}
}
