/* =====================================================================
   Stile del sito · tema scuro (predefinito) e chiaro
   ===================================================================== */
:root{
  --bg:#0b0f14;--surface:#11161d;--surface2:#161c25;--line:#232b36;--line-soft:#1a212b;
  --text:#e9eef3;--muted:#8d99a8;--subtle:#677384;--accent:#5b8cff;--accent-soft:rgba(91,140,255,.12);
  --green:#2bbf8a;--red:#ef5d68;--amber:#e3a84b;--blue:#5b8cff;
  --c-up:#2bbf8a;--c-down:#ef5d68;--c-grid:#232b36;--c-axis:#2b3440;--c-label:#7e8a99;--c-label-strong:#c9d2dc;--c-band:rgba(91,140,255,.14);--c-ring:#0b0f14;--c-strong:#e9eef3;
  --radius:14px;--shadow:0 1px 0 rgba(255,255,255,.02),0 10px 30px -18px rgba(0,0,0,.6);
  --font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
:root[data-theme="light"]{
  --bg:#f5f6f8;--surface:#ffffff;--surface2:#f2f4f7;--line:#e2e6eb;--line-soft:#edf0f3;
  --text:#0f1720;--muted:#5c6776;--subtle:#8a94a2;--accent:#2f5fe0;--accent-soft:rgba(47,95,224,.08);
  --green:#0e9466;--red:#d23847;--amber:#b7791f;--blue:#2f5fe0;
  --c-up:#0e9466;--c-down:#d23847;--c-grid:#e7ebef;--c-axis:#d5dbe2;--c-label:#7b8593;--c-label-strong:#2a3440;--c-band:rgba(47,95,224,.10);--c-ring:#ffffff;--c-strong:#0f1720;
  --shadow:0 1px 2px rgba(15,23,32,.04),0 8px 24px -16px rgba(15,23,32,.18);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.55;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,h3,h4{margin:0;font-weight:600;letter-spacing:-.01em;line-height:1.25}
p{margin:0}
.wrap{max-width:1200px;margin:0 auto;padding:0 28px}
.page{padding-top:40px;padding-bottom:72px;min-height:60vh}
.muted{color:var(--muted)}
.small{font-size:12px}
.hidden{display:none!important}
.positive{color:var(--green)!important}
.negative{color:var(--red)!important}
.neutral{color:var(--text)}
.loading{padding:60px 0;color:var(--muted)}

/* ---------- intestazione ---------- */
.site-header{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;gap:28px;height:66px}
.brand{display:flex;align-items:center;gap:11px;flex:0 0 auto}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--text);color:var(--bg);font-weight:700;font-size:13px;letter-spacing:.02em}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-text b{font-size:14.5px;font-weight:600}
.brand-text small{font-size:11.5px;color:var(--muted)}
.topnav{display:flex;gap:4px;flex:1}
.topnav a{padding:8px 13px;border-radius:8px;color:var(--muted);font-weight:500;font-size:13.5px;transition:color .15s,background .15s}
.topnav a:hover{color:var(--text);background:var(--surface2)}
.topnav a.active{color:var(--text);background:var(--surface2)}
.header-tools{display:flex;align-items:center;gap:14px}
.live-status{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);white-space:nowrap}
.live-status .dot{width:7px;height:7px;border-radius:50%;background:var(--subtle);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 18%,transparent)}
.demo-tag{font-size:10px;font-weight:600;color:var(--amber);border:1px solid currentColor;border-radius:5px;padding:1px 5px}
.theme-switch{display:flex;border:1px solid var(--line);border-radius:9px;padding:2px;background:var(--surface)}
.theme-switch button{display:grid;place-items:center;width:30px;height:28px;border:0;border-radius:7px;background:none;color:var(--subtle);cursor:pointer}
.theme-switch button svg{width:15px;height:15px}
.theme-switch button[aria-pressed="true"]{background:var(--surface2);color:var(--text)}

/* ---------- titoli pagina ---------- */
.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:28px}
.hero-text{max-width:720px}
.eyebrow{display:inline-block;font-size:12px;font-weight:600;color:var(--accent);letter-spacing:.04em;text-transform:uppercase;margin-bottom:10px}
.hero h1{font-size:34px;font-weight:650;letter-spacing:-.025em}
.lead{margin-top:12px;font-size:15.5px;color:var(--muted);max-width:640px}
.hero-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);white-space:nowrap}
.hero-meta span{font-size:11.5px;color:var(--muted)}
.hero-meta b{font-size:15px;font-weight:600}
.demo-banner{margin-bottom:22px;padding:10px 14px;border-radius:10px;border:1px solid color-mix(in srgb,var(--amber) 45%,transparent);background:color-mix(in srgb,var(--amber) 10%,transparent);color:var(--amber);font-size:13px}

/* ---------- riquadri ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;min-width:0}
.card h3{font-size:15px;font-weight:600}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.card-head p{font-size:12.5px;margin-top:3px}
.card-title{font-size:14px;font-weight:600;margin:0}
.card-sub{font-size:12.5px;color:var(--muted);margin-top:3px}
.pill{display:inline-block;padding:4px 9px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:11.5px;white-space:nowrap}

/* statistiche principali */
.stat-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:20px;box-shadow:var(--shadow)}
.stat-row-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.stat{background:var(--surface);padding:18px 20px;min-width:0}
.stat span{display:block;font-size:12.5px;color:var(--muted)}
.stat b{display:block;font-size:25px;font-weight:650;letter-spacing:-.02em;margin-top:6px}
.stat b.stat-sm{font-size:18px;margin-top:10px}
.stat small{display:block;font-size:11.5px;color:var(--subtle);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* grafico + conto */
.grid-main{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px}
.perf-card{display:flex;flex-direction:column}
.primary-value{display:flex;align-items:baseline;gap:12px;margin:18px 0 6px;flex-wrap:wrap}
.primary-value strong{font-size:36px;font-weight:650;letter-spacing:-.03em;line-height:1.1}
.primary-value span{font-size:13px}
.perf-chart{height:230px;margin:6px -4px 0}
.perf-chart svg{width:100%;height:100%;display:block;overflow:visible}
.chart-caption{display:flex;justify-content:space-between;font-size:11.5px;color:var(--subtle);margin-top:8px}
.kv-list{margin:14px 0 0}
.kv-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line-soft);font-size:13px}
.kv-list>div:first-child{border-top:0}
.kv-list dt{color:var(--muted)}
.kv-list dd{margin:0;font-weight:600;text-align:right}
.account-card>p{font-size:12.5px;margin-top:3px}
.kv{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:9px 0;font-size:13px}
.kv span{color:var(--muted)}
.kv strong{font-weight:600}

/* selettore intervallo */
.range-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.range{display:flex;gap:2px;padding:3px;background:var(--surface2);border:1px solid var(--line);border-radius:9px}
.range button{background:none;border:0;border-radius:6px;color:var(--muted);padding:5px 11px;font:inherit;font-size:12px;font-weight:500;cursor:pointer}
.range button:hover{color:var(--text)}
.range button.selected{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.18)}
.range-custom{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.range-custom label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.range-custom input{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:6px 8px;font:inherit;font-size:12.5px;color-scheme:dark}
:root[data-theme="light"] .range-custom input{color-scheme:light}

/* ---------- sezioni ---------- */
.section{margin-top:56px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px}
.section-head h2{font-size:22px;font-weight:650;letter-spacing:-.02em}
.section-head p{margin-top:4px;font-size:13.5px}
.link-btn{font-size:13px;font-weight:500;color:var(--accent);white-space:nowrap}
.link-btn:hover{text-decoration:underline}

/* tabella strategie */
.table-card{padding:0;overflow:hidden}
.strategy-table{width:100%;border-collapse:collapse;table-layout:fixed}
.strategy-table th{padding:13px 18px;text-align:left;font-size:12px;font-weight:500;color:var(--muted);background:var(--surface2);border-bottom:1px solid var(--line)}
.strategy-table th:nth-child(1){width:31%}.strategy-table th:nth-child(2){width:23%}.strategy-table th:nth-child(3){width:15%}.strategy-table th:nth-child(4){width:11%}.strategy-table th:nth-child(5){width:10%}
.strategy-row td{padding:14px 18px;border-bottom:1px solid var(--line-soft);vertical-align:middle;font-size:13.5px}
.strategy-row{cursor:pointer;transition:background .12s}
.strategy-row:hover,.strategy-row.is-open{background:var(--surface2)}
.strategy-name{display:flex;align-items:center;gap:12px;min-width:0}
.strategy-name strong{display:block;font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.strategy-name small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.strategy-symbol{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:var(--surface2);border:1px solid var(--line);color:var(--muted);font-size:11.5px;font-weight:600}
.strategy-row.is-open .strategy-symbol,.strategy-row:hover .strategy-symbol{background:var(--surface)}
.perf-cell{display:flex;align-items:center;gap:14px}
.perf-cell b{font-weight:600;min-width:64px}
.spark{width:96px;height:28px;flex:0 0 96px}
.spark svg{width:100%;height:100%;display:block}
.open-count{color:var(--subtle);font-size:12px}
.table-muted{color:var(--muted)}
.arrow{display:inline-block;margin-left:6px;color:var(--subtle);transition:transform .15s}
.strategy-row.is-open .arrow{transform:rotate(180deg)}
.details-row{display:none}
.details-row.visible{display:table-row}
.details-row td{padding:18px;background:var(--surface2);border-bottom:1px solid var(--line)}
.strategy-footer{display:flex;justify-content:space-between;gap:12px;padding:12px 18px;font-size:12px;color:var(--subtle)}
.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.detail-metric{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:11px 13px;min-width:0}
.detail-metric span{display:block;color:var(--muted);font-size:11.5px}
.detail-metric b{display:block;margin-top:3px;font-size:15px;font-weight:600}
.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}
.detail-list h4{font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:8px}
.trade-list{display:flex;flex-direction:column}
.trade-row{display:grid;grid-template-columns:120px 1fr auto;gap:10px;padding:8px 0;border-top:1px solid var(--line-soft);font-size:12.5px}
.trade-row:first-child{border-top:0}
.trade-row span:first-child{color:var(--muted)}
.trade-row b{font-weight:600}
.empty{color:var(--muted);font-size:12.5px;margin:6px 0}

/* rendimenti mensili */
.mo-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
select,.mo-head select{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:7px 10px;font:inherit;font-size:12.5px}
.mo-wrap,.corr-wrap{overflow-x:auto}
.mo-table,.corr{width:100%;border-collapse:separate;border-spacing:3px;font-size:12.5px}
.mo-table{min-width:760px}.corr{min-width:600px}
.mo-table th,.corr th{color:var(--muted);font-size:11.5px;font-weight:500;padding:6px 4px;text-align:center}
.mo-table td,.corr td{text-align:center;padding:10px 4px;border-radius:7px;font-weight:600;white-space:nowrap}
.mo-table td.mo-y{text-align:left;font-weight:600;padding-left:4px}
.mo-table td.mo-empty{color:var(--subtle);background:var(--surface2);font-weight:400}
.mo-table td.mo-tot{border:1px solid var(--line)}
.corr td.corr-name{text-align:left;font-weight:500}
.corr-num{color:var(--subtle);margin-right:8px;font-size:11.5px}
.corr td.corr-diag{color:var(--subtle);background:var(--surface2);font-weight:400}
.note-sm{font-size:12.5px;color:var(--muted);margin-top:12px;line-height:1.55}

/* simulatore */
.sim-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:20px}
.config-title{font-size:15px;font-weight:600;margin-bottom:14px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{margin-bottom:12px}
.field label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.field input,.field select{width:100%;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:9px 11px;font:inherit;font-size:13.5px}
.mode-title,.mini-label{font-size:12px;color:var(--muted);margin:14px 0 7px}
.mode-group{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:var(--surface2);border:1px solid var(--line);border-radius:9px}
.mode-btn{border:0;background:none;border-radius:6px;padding:7px 6px;font:inherit;font-size:12.5px;color:var(--muted);cursor:pointer}
.mode-btn.chosen{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.18)}
.checkbox-line{display:flex;align-items:center;gap:8px;font-size:13px;margin-top:14px;cursor:pointer}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;font-size:12px;cursor:pointer;background:var(--surface)}
.chip input{margin:0;accent-color:var(--accent)}
.checkbox-line input{accent-color:var(--accent)}
.sim-explain{font-size:12px;color:var(--subtle);margin-top:14px}
.sim-results-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.sim-result-value{font-size:32px;font-weight:650;letter-spacing:-.03em;margin:14px 0 2px}
.sim-chart{height:210px;margin:16px 0 4px}
.sim-chart svg{width:100%;height:100%;display:block;overflow:visible}
.scenarios{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.scenario{border:1px solid var(--line);border-radius:10px;padding:11px 13px;display:flex;flex-direction:column;gap:2px}
.scenario.median{border-color:color-mix(in srgb,var(--accent) 50%,var(--line));background:var(--accent-soft)}
.scenario span{font-size:11.5px;color:var(--muted)}
.scenario b{font-size:16px;font-weight:650}
.scenario em{font-style:normal;font-size:12px;font-weight:600}
.sim-foot{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:14px;font-size:12.5px;color:var(--muted)}
.sim-foot strong{color:var(--text)}
.sim-error{color:var(--red);font-size:13px}
.disclaimer{font-size:12px;color:var(--subtle);margin-top:12px}

/* storico extra */
.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}

/* schede strategie */
.port-card .detail-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:16px}
.prof-grid-wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.prof-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.prof-label{margin:20px 0 9px;color:var(--muted);font-size:12px;font-weight:500}
.prof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.prof-grid .detail-metric{background:var(--surface2)}
.yb{display:flex;gap:12px;height:110px}
.yb-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
.yb-bar{flex:1;width:100%;max-width:44px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}
.yb-bar i{display:block;width:100%;border-radius:5px 5px 0 0;background:var(--accent);opacity:.85}
.yb-bar i.down{background:var(--red)}
.yb-val{font-size:11.5px;font-weight:600}
.yb-y{font-size:11.5px;color:var(--muted)}
.prof-foot{margin-top:16px;border-top:1px solid var(--line-soft);padding-top:4px}
.prof-foot .kv strong{text-align:right}
.prof-note{margin-top:12px;font-size:12.5px;color:var(--amber)}

/* metodo */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;counter-reset:st}
.steps li{counter-increment:st;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}
.steps li::before{content:counter(st,decimal-leading-zero);display:block;font-size:12px;font-weight:600;color:var(--accent);margin-bottom:12px}
.steps h3{font-size:15.5px;margin-bottom:7px}
.steps p,.feature p,.note-card p{color:var(--muted);font-size:13.5px}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.feature h3{font-size:15.5px;margin-bottom:7px}
.note-card{border-left:3px solid var(--accent)}
.note-card h3{margin-bottom:6px}

/* contatti */
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:900px}
.contact-card{display:flex;align-items:center;gap:16px;transition:border-color .15s,transform .15s}
.contact-card:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));transform:translateY(-1px)}
.contact-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:12px;background:var(--accent-soft);color:var(--accent)}
.contact-icon svg{width:22px;height:22px}
.contact-text{display:flex;flex-direction:column;min-width:0;flex:1}
.contact-text b{font-size:15px;font-weight:600}
.contact-value{font-size:13.5px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contact-text small{font-size:12px;color:var(--muted)}
.contact-arrow{color:var(--subtle);font-size:18px}

/* invito al contatto */
.cta{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:64px;padding:30px 32px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.cta h2{font-size:21px;font-weight:650;letter-spacing:-.02em}
.cta p{color:var(--muted);margin-top:4px}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.btn:hover{border-color:var(--subtle)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary:hover{filter:brightness(1.08)}

/* accesso */
.login-card{max-width:400px;margin:30px auto;padding:30px;display:flex;flex-direction:column;gap:10px}
.login-card h1{font-size:24px}
.login-card label{font-size:12.5px;color:var(--muted);margin-top:8px}
.login-card input{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:11px 12px;font:inherit}
.login-card a{color:var(--accent)}
.login-err{color:var(--red);font-size:13px}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);background:var(--surface);padding:44px 0 26px;margin-top:20px}
.footer-top{display:grid;grid-template-columns:minmax(0,1.5fr) 1fr 1fr;gap:40px}
.footer-brand p{color:var(--muted);font-size:13px;margin-top:14px;max-width:380px}
.footer-col{display:flex;flex-direction:column;gap:9px}
.footer-col h4{font-size:12px;font-weight:600;color:var(--subtle);text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}
.footer-col a{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13.5px}
.footer-col a:hover{color:var(--text)}
.footer-col a svg{width:16px;height:16px;flex:0 0 16px}
.risk-note{margin-top:34px;padding-top:20px;border-top:1px solid var(--line);font-size:12px;color:var(--subtle);line-height:1.6}
.risk-note b{color:var(--muted);font-weight:600}
.footer-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:16px;font-size:12px;color:var(--subtle)}

/* ---------- schermi medi ---------- */
@media(max-width:1080px){
  .grid-main{grid-template-columns:1fr}
  .stat-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stat-row-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sim-grid{grid-template-columns:1fr}
  .port-card .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .steps,.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .live-status{display:none}
}
@media(max-width:900px){
  .prof-grid-wrap{grid-template-columns:1fr}
  .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-top{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
}
/* ---------- telefono ---------- */
@media(max-width:700px){
  .wrap{padding:0 16px}
  .page{padding-top:26px}
  .header-inner{flex-wrap:wrap;height:auto;padding-top:10px;gap:10px 14px}
  .brand-text small{display:none}
  .header-tools{margin-left:auto}
  .topnav{order:3;flex:0 0 100%;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 12px 8px}
  .topnav::-webkit-scrollbar{display:none}
  .topnav a{white-space:nowrap;padding:7px 11px;font-size:13px}
  .hero{flex-direction:column;align-items:flex-start;gap:16px}
  .hero h1{font-size:26px}
  .lead{font-size:14.5px}
  .hero-meta{flex-direction:row;align-items:baseline;gap:8px}
  .stat-row,.stat-row-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat-row .stat:last-child:nth-child(odd){grid-column:1/-1}
  .stat{padding:14px 15px}
  .stat b{font-size:21px}
  .stat small{white-space:normal}
  .card{padding:17px}
  .card-head{flex-direction:column}
  .range-wrap{align-items:flex-start;width:100%}
  .range-custom{justify-content:flex-start}
  .primary-value strong{font-size:30px}
  .perf-chart{height:180px}
  .section{margin-top:44px}
  .section-head{flex-direction:column;align-items:flex-start;gap:8px}
  .section-head h2{font-size:20px}
  /* tabella strategie a schede */
  .strategy-table,.strategy-table tbody{display:block;width:100%}
  .strategy-table thead{display:none}
  .strategy-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:15px 16px;border-bottom:1px solid var(--line-soft)}
  .strategy-row td{display:block;padding:0;border:0;min-width:0}
  .strategy-row td:first-child{grid-column:1/-1}
  .strategy-row td:nth-child(n+2)::before{display:block;color:var(--subtle);font-size:11px;margin-bottom:2px}
  .strategy-row td:nth-child(2)::before{content:"Rendimento"}
  .strategy-row td:nth-child(3)::before{content:"Flottante"}
  .strategy-row td:nth-child(4)::before{content:"Mese"}
  .strategy-row td:nth-child(5)::before{content:"Operazioni"}
  .strategy-row td:nth-child(6)::before{content:"Win rate"}
  .spark{width:70px;flex-basis:70px}
  .details-row.visible{display:block}
  .details-row td{display:block;padding:15px 16px}
  .detail-list{grid-template-columns:1fr}
  .strategy-footer{flex-direction:column;gap:2px}
  .trade-row{grid-template-columns:105px 1fr auto}
  .bottom-grid{grid-template-columns:1fr}
  .scenarios{grid-template-columns:1fr}
  .port-card .detail-grid,.prof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps,.feature-grid,.contact-grid{grid-template-columns:1fr}
  .cta{flex-direction:column;align-items:flex-start;padding:24px 20px;margin-top:48px}
  .footer-top{grid-template-columns:1fr;gap:26px}
  .footer-bottom{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* =====================================================================
   Home
   ===================================================================== */
.home-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:44px;align-items:center;padding:28px 0 18px}
.home-hero h1{font-size:46px;font-weight:700;letter-spacing:-.035em;line-height:1.08}
.home-hero .lead{font-size:17px;margin-top:18px;max-width:560px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.hero-actions .btn{padding:12px 20px;font-size:14px}
.live-card{display:flex;flex-direction:column;gap:14px;padding:24px;transition:border-color .15s,transform .15s}
.live-card:hover{border-color:color-mix(in srgb,var(--accent) 50%,var(--line));transform:translateY(-1px)}
.live-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.live-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--green);background:color-mix(in srgb,var(--green) 12%,transparent);padding:4px 10px;border-radius:999px}
.live-badge .dot{width:7px;height:7px;border-radius:50%;background:var(--green);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--green) 55%,transparent)}70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
.live-main{display:flex;flex-direction:column;gap:2px}
.live-main strong{font-size:40px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
.live-main span{font-size:13px}
.live-chart{height:110px}
.live-chart svg{width:100%;height:100%;display:block}
.live-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line-soft);border:1px solid var(--line-soft);border-radius:10px;overflow:hidden}
.live-stats div{background:var(--surface);padding:10px 12px}
.live-stats span{display:block;font-size:11.5px;color:var(--muted)}
.live-stats b{font-size:15px;font-weight:650}
.live-foot{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--subtle)}
.feature-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent);margin-bottom:14px}
.feature-icon svg{width:20px;height:20px}
.inline-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.soon-card{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:32px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 14%,var(--surface)),var(--surface) 65%);border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.soon-text{max-width:640px}
.soon-badge{display:inline-block;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);border-radius:999px;padding:3px 10px;margin-bottom:12px}
.soon-card h2{font-size:26px;font-weight:700;letter-spacing:-.02em}
.soon-card p{color:var(--muted);margin-top:8px;font-size:15px}
.about{display:grid;grid-template-columns:minmax(0,1fr);max-width:760px}
.about h2{font-size:28px;font-weight:700;letter-spacing:-.025em;margin-bottom:14px}
.about p{color:var(--muted);font-size:15.5px;margin-top:10px}
.about-links{display:flex;flex-wrap:wrap;gap:18px;margin-top:20px}
.about-links a{display:inline-flex;align-items:center;gap:8px;font-weight:500;font-size:14px;color:var(--text)}
.about-links a:hover{color:var(--accent)}
.about-links svg{width:18px;height:18px;color:var(--accent)}
.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.video-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.video-card h3{font-size:14.5px;font-weight:600;padding:14px 16px 16px;line-height:1.4}
.video-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;background:#000;cursor:pointer;overflow:hidden}
.video-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s,opacity .25s;opacity:.92}
.video-thumb:hover img{transform:scale(1.03);opacity:1}
.video-thumb .play{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.62);color:#fff;backdrop-filter:blur(4px)}
.video-thumb .play svg{width:26px;height:26px;margin-left:3px}
.video-card iframe{width:100%;aspect-ratio:16/9;border:0;display:block}
.legal{max-width:820px}
.legal h2{font-size:17px;font-weight:650;margin:26px 0 8px}
.legal h2:first-child{margin-top:0}
.legal p{color:var(--muted);font-size:14.5px;line-height:1.7}
.legal-date{margin-top:26px}
.risk-note a{color:var(--muted);text-decoration:underline}
@media(max-width:1080px){
  .home-hero{grid-template-columns:1fr;gap:28px}
  .home-hero h1{font-size:40px}
  .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .home-hero{padding-top:6px}
  .home-hero h1{font-size:31px}
  .home-hero .lead{font-size:15.5px}
  .hero-actions .btn{flex:1 1 auto}
  .live-main strong{font-size:34px}
  .soon-card{flex-direction:column;align-items:flex-start;padding:24px 20px}
  .soon-actions,.soon-actions .btn{width:100%}
  .about h2{font-size:23px}
  .video-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.live-badge .dot{animation:none}}


/* menu su schermi medi (tablet, finestre strette) */
.topnav a{white-space:nowrap}
@media(max-width:900px){
  .header-inner{flex-wrap:wrap;height:auto;padding-top:10px;gap:10px 14px}
  .header-tools{margin-left:auto}
  .topnav{order:3;flex:0 0 100%;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}
  .topnav::-webkit-scrollbar{display:none}
}
.soon-tags{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.soon-tags li{font-size:12.5px;font-weight:500;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text)}
