
/* NoveMentum · fogli di stile. Layout: colonna stretta per l'interfaccia, "tavole" bianche per gli stimoli, come i materiali stampati dei test */
:root{
  --paper:#EEF1F4; --surface:#FFFFFF; --ink:#16212C; --muted:#5A6774; --line:#D2D9E0;
  --accent:#1E6B57; --accent-soft:#DDEDE7; --warn:#B4441C;
  --card:#FFFFFF; --stim:#151A20; --stim-line:#C5CCD4; --stim-muted:#5F6873;
  --board:#1F2731; --blk:#2E5C9E; --blk-lit:#F2C14E;
  --q:#1877F2; --tile:#F1F3F5;
  --f-display:"Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --paper:#0F151B; --surface:#17212A; --ink:#E4EAF0; --muted:#97A4B1; --line:#2B3845;
  --accent:#62C2A4; --accent-soft:#1D3A32; --warn:#F08B5E;
  --card:#F7F8F9; --stim:#151A20; --stim-line:#C5CCD4; --stim-muted:#5F6873;
  --board:#0B1016; --blk:#3D6DB3; --blk-lit:#F2C14E; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#0F151B; --surface:#17212A; --ink:#E4EAF0; --muted:#97A4B1; --line:#2B3845;
  --accent:#62C2A4; --accent-soft:#1D3A32; --warn:#F08B5E;
  --card:#F7F8F9; --stim:#151A20; --stim-line:#C5CCD4; --stim-muted:#5F6873;
  --board:#0B1016; --blk:#3D6DB3; --blk-lit:#F2C14E; color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
.card>svg{width:min(60%,210px);height:auto}
body{background:var(--paper);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.55;
  padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px))}
.wrap{max-width:720px;margin:0 auto;padding-block:20px 56px;display:flex;flex-direction:column;gap:26px}
section{display:flex;flex-direction:column;gap:20px}
h1,h2,h3{font-family:var(--f-display);font-weight:700;line-height:1.1;text-wrap:balance;margin:0}
h1{font-size:clamp(2rem,6vw,2.9rem);letter-spacing:-.02em}
h2{font-size:1.5rem;letter-spacing:-.01em}
h3{font-size:1.08rem}
p{margin:0;max-width:64ch}
.label{font-family:var(--f-mono);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.muted{color:var(--muted)}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.small{font-size:.86rem}

.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--f-display);font-weight:700;font-size:1.15rem}
.brand-mark{display:block;color:var(--ink)}
.devtag{font-family:var(--f-mono);font-size:.7rem;padding:3px 8px;border:1px dashed var(--muted);border-radius:4px;color:var(--muted)}

.btn{font:inherit;font-weight:600;border-radius:8px;padding:12px 20px;border:1.5px solid var(--ink);background:var(--ink);color:var(--paper);cursor:pointer;transition:transform .12s ease}
.btn:hover{transform:translateY(-1px)}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.accent{background:var(--accent);border-color:var(--accent);color:var(--surface)}
.btn[disabled]{opacity:.4;cursor:default;transform:none}
.btn:focus-visible,.opt:focus-visible,input:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.linkbtn{font:inherit;font-size:.82rem;background:none;border:none;color:var(--muted);text-decoration:underline;cursor:pointer;padding:4px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row.end{justify-content:flex-end}
.row.between{justify-content:space-between}

/* tavola stimolo */
.card{background:var(--card);color:var(--stim);border:1px solid var(--line);border-radius:6px;padding:22px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:150px;box-shadow:0 1px 0 var(--line)}
.ask{text-align:center;color:var(--muted);margin:0 auto}
.pair{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;justify-content:center;font-family:var(--f-display);font-weight:700;font-size:clamp(1.7rem,5vw,2.3rem)}
.pair .amp{font-family:var(--f-body);font-weight:400;font-size:1.05rem;color:var(--stim-muted)}
.word{font-family:var(--f-display);font-size:clamp(2rem,6vw,2.7rem);font-weight:700;letter-spacing:-.01em}

/* matrici */
.matrix{display:grid;grid-template-columns:repeat(3,1fr);background:var(--card);border:1.5px solid var(--stim);width:100%;max-width:330px;color:var(--stim)}
.matrix .c{aspect-ratio:1;border-right:1px solid var(--stim-line);border-bottom:1px solid var(--stim-line);display:flex;align-items:center;justify-content:center;max-width:100%}
.matrix .c:nth-child(3n){border-right:none}
.matrix .c:nth-child(n+7){border-bottom:none}
.matrix .c svg{width:84%;height:84%}
.matrix .c.q{font-family:var(--f-display);font-size:2.2rem;font-weight:700;color:var(--stim-muted)}

/* opzioni */
.opt{position:relative;background:var(--card);border:1.5px solid var(--stim-line);border-radius:6px;cursor:pointer;color:var(--stim);display:flex;align-items:center;justify-content:center;padding:6px;font:inherit}
.opt b{position:absolute;top:4px;left:7px;font-family:var(--f-mono);font-size:.72rem;font-weight:500;color:var(--stim-muted)}
.opt:hover{border-color:var(--stim-muted)}
.opt.sel{border-color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent)}
.optsF{display:grid;gap:10px;width:100%;margin:0 auto}
.optsF .opt{aspect-ratio:1}
.optsF .opt svg{width:84%;height:84%}
.optsF.n4{grid-template-columns:repeat(4,1fr);max-width:520px}
.optsF.n5{grid-template-columns:repeat(5,1fr);max-width:640px}
.optsF.n6{grid-template-columns:repeat(6,1fr);max-width:640px}
.optsT{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.optsT .opt{justify-content:flex-start;gap:12px;padding:13px 14px;text-align:left;font-size:1rem}
.optsT .opt b{position:static;flex:none}
@media (max-width:560px){
  .optsF.n4{grid-template-columns:repeat(2,1fr);max-width:320px}
  .optsF.n5,.optsF.n6{grid-template-columns:repeat(3,1fr)}
  .optsT{grid-template-columns:1fr}
}

/* testata prova */
.runhead{display:flex;flex-direction:column;gap:8px}
.testbar{display:flex;align-items:center;gap:14px}
.progress{flex:1;height:6px;background:var(--line);border-radius:3px;overflow:hidden}
.progress span{display:block;height:100%;background:var(--accent);width:0;transition:width .2s ease}
.timer{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.timer.warn{color:var(--warn)}

/* cubi */
.dcwrap{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;width:100%}
.dcbox{display:flex;flex-direction:column;gap:6px;align-items:center}
.dcbox .label{color:var(--stim-muted)}
.dcmodel,.dcgrid{width:min(40vw,210px)}
.dcmodel svg{width:100%;display:block}
.dcgrid{display:grid;gap:3px}
.dcgrid.g2{grid-template-columns:repeat(2,1fr)}
.dcgrid.g3{grid-template-columns:repeat(3,1fr)}
.dcgrid button{aspect-ratio:1;border:1.5px dashed #9AA3AD;background:#fff;padding:0;cursor:pointer;display:block}
.dcgrid button.f{border:1px solid #2A2F35}
.dcgrid button svg{width:100%;height:100%;display:block}
.palette{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.palette button{width:50px;height:50px;padding:0;border:2px solid var(--line);border-radius:6px;background:#fff;cursor:pointer;position:relative}
.palette button svg{width:100%;height:100%;display:block;border-radius:4px}
.palette button.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
@media (max-width:480px){.dcmodel,.dcgrid{width:min(70vw,210px)}}

/* bilance */
.scales{display:flex;gap:6px 14px;flex-wrap:wrap;justify-content:center;align-items:flex-end;width:100%}
.scales svg{width:min(44%,210px);height:auto}
.scales svg.tgt{width:min(70%,280px)}
.scaleset{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.scaleset .rule{width:100%;border-top:1px solid var(--stim-line)}

/* cifre */
.bigdigit{font-family:var(--f-display);font-size:5.5rem;font-weight:700;line-height:1;min-height:5.6rem;color:var(--stim)}
.entry{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;min-height:2.9rem}
.entry span{width:2.1rem;height:2.7rem;border-bottom:2px solid var(--stim);font-family:var(--f-mono);font-size:1.6rem;text-align:center;line-height:2.6rem}
.keypad{display:grid;grid-template-columns:repeat(3,68px);gap:8px;justify-content:center}
.keypad button{height:52px;font-family:var(--f-mono);font-size:1.3rem;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;cursor:pointer}
.keypad button.wide{font-family:var(--f-body);font-size:.9rem}

/* blocchi di Corsi */
.board{position:relative;width:min(100%,440px);aspect-ratio:4/3;background:var(--board);border-radius:8px;margin:0 auto}
.blk{position:absolute;width:13%;aspect-ratio:1;background:var(--blk);border:none;border-radius:4px;transform:translate(-50%,-50%);cursor:pointer;box-shadow:0 3px 0 rgba(0,0,0,.35)}
.blk.lit{background:var(--blk-lit)}
.board.wait .blk{cursor:default}

/* ricerca simboli e cifrario */
.sym{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--stim-line);background:#fff;color:var(--stim);flex:none}
.sym svg{width:80%;height:80%}
.rsrow{display:flex;align-items:center;gap:6px;max-width:100%;overflow-x:auto;padding:4px}
.rsrow .sep{width:2px;align-self:stretch;background:var(--stim);margin:0 8px;flex:none}
.yn{display:flex;gap:12px;justify-content:center}
.yn .btn{min-width:120px}
.key{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));border:1.5px solid var(--stim);width:100%;max-width:520px;background:#fff;color:var(--stim)}
.key div{display:flex;flex-direction:column;align-items:center;border-right:1px solid var(--stim-line)}
.key div:last-child{border-right:none}
.key .d{font-family:var(--f-mono);font-size:1.05rem;padding:4px 0;border-bottom:1px solid var(--stim-line);width:100%;text-align:center}
.key .s{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center}
.key .s svg{width:72%;height:72%}
.strip{display:flex;gap:6px;justify-content:center;flex-wrap:nowrap;max-width:100%;overflow:hidden}
.strip div{width:46px;border:1px solid var(--stim-line);background:#fff;color:var(--stim);display:flex;flex-direction:column;align-items:center;flex:none}
.strip .d{font-family:var(--f-mono);font-size:1.15rem;padding:2px 0;border-bottom:1px solid var(--stim-line);width:100%;text-align:center}
.strip .s{width:100%;height:42px;display:flex;align-items:center;justify-content:center}
.strip .s svg{width:72%;height:72%}
.strip .cur{border:2px solid var(--accent)}
.strip .past{opacity:.55}
.symbtns{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;width:100%;max-width:560px;margin:0 auto}
.symbtns button{aspect-ratio:1;background:var(--card);color:var(--stim);border:1.5px solid var(--stim-line);border-radius:6px;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
.symbtns button svg{width:70%;height:70%}
@media (max-width:560px){.symbtns{grid-template-columns:repeat(5,1fr);max-width:320px}.strip div{width:38px}.sym{width:38px;height:38px}}

/* stile delle domande: titolo grande, tavola + risposte a fianco */
.q{font-family:var(--f-display);font-weight:700;font-size:clamp(1.45rem,4.2vw,2.05rem);line-height:1.15;text-align:center;text-wrap:balance;max-width:24ch;margin:0 auto;letter-spacing:-.01em}
.rows{display:flex;flex-direction:column;gap:10px;max-width:520px;margin:0 auto;width:100%}
.rows .opt{justify-content:flex-start;gap:14px;padding:14px 16px;border-radius:10px;border:1px solid var(--stim-line);text-align:left;font-size:1rem;line-height:1.3}
.rows .opt b{position:static;flex:none;min-width:1.1em;font-size:.72rem}
.rows .opt.sel{border-color:var(--q);box-shadow:inset 0 0 0 1.5px var(--q)}
.fig{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:center;width:100%}
.fig>*{min-width:0}
.stimp{background:var(--card);color:var(--stim);border:1px solid var(--stim-line);border-radius:10px;padding:14px;display:flex;justify-content:center;align-items:center}
.stimp svg{width:100%;height:auto;max-height:360px;display:block}
.ansp{display:flex;flex-direction:column;gap:10px}
.ansp>p{font-size:.82rem;text-align:center;color:var(--muted);margin:0 auto}
.agrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.agrid .opt{aspect-ratio:1.2;background:var(--tile);border:1.5px solid transparent;border-radius:8px;padding:8px}
.agrid .opt svg{width:100%;height:100%;display:block}
.agrid .opt:hover{border-color:var(--stim-line)}
.agrid .opt.sel{border-color:var(--q);box-shadow:inset 0 0 0 1.5px var(--q);background:var(--card)}
.agrid .opt b{display:none}
.fig.wide{grid-template-columns:1fr}.fig.wide .stimp svg{max-height:420px}.fig.wide .agrid{grid-template-columns:repeat(6,minmax(0,1fr))}
@media (max-width:600px){.fig{grid-template-columns:1fr;gap:14px}.fig.wide .agrid{grid-template-columns:repeat(3,minmax(0,1fr))}.agrid{grid-template-columns:repeat(3,minmax(0,1fr))}.agrid.n4{grid-template-columns:repeat(2,minmax(0,1fr))}}

.demo{display:flex;gap:12px;flex-wrap:wrap}
.demo label{display:flex;flex-direction:column;gap:4px;font-size:.88rem;flex:1;min-width:200px}
.demo select{font:inherit;padding:10px;border-radius:8px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink)}
.pkgs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pkgs label{display:flex;flex-direction:column;gap:4px;padding:16px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;position:relative}
.pkgs label:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.pkgs input{position:absolute;opacity:0;pointer-events:none}
.pkgs label:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.pkgs .pp{font-family:var(--f-mono);font-size:1.35rem}
.pkgs .pn{font-weight:600}
.pkgs .pd{font-size:.84rem;color:var(--muted)}
.pkgs .tag{position:absolute;top:-10px;right:12px;font-family:var(--f-mono);font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;background:var(--accent);color:var(--surface);padding:2px 8px;border-radius:99px}
.dpick label:has(input:disabled){cursor:default}
@media (max-width:560px){.pkgs{grid-template-columns:1fr}}
/* intro */
.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:28px;align-items:center}
.hero>*{min-width:0}
@media (max-width:600px){.hero{grid-template-columns:1fr}}
.dpick{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.dpick label{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1.5px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer}
.dpick label:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.dpick input{margin-top:4px;accent-color:var(--accent);width:18px;height:18px;flex:none}
.dpick strong{display:block;font-weight:600}
.dpick span{font-size:.84rem;color:var(--muted)}
.summary{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.pricing{width:100%;border-collapse:collapse;font-size:.92rem}
.pricing td{padding:9px 0;border-bottom:1px solid var(--line)}
.pricing td:last-child{text-align:right;font-family:var(--f-mono)}
.pricing tr.cur td{color:var(--accent);font-weight:600}

/* risultati */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:14px}
.bandrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.bandrow:last-child{border-bottom:none}
.bandrow .nm{font-weight:600}
.bandrow .nm small{display:block;font-weight:400;color:var(--muted);font-family:var(--f-mono);font-size:.72rem;letter-spacing:.06em}
.segs{display:grid;grid-template-columns:repeat(4,minmax(58px,1fr));gap:3px}
.segs span{font-family:var(--f-mono);font-size:.72rem;padding:6px 4px;text-align:center;border-radius:4px;background:var(--paper);color:var(--muted)}
.segs span.on{background:var(--ink);color:var(--paper);font-weight:500}
.bandrow.qit .nm{font-family:var(--f-display);font-size:1.1rem}
@media (max-width:560px){.bandrow{grid-template-columns:1fr}.segs{grid-template-columns:repeat(4,1fr)}}
.unlock{border:1.5px solid var(--accent)}
.unlock .price{font-family:var(--f-mono);font-size:1.7rem}
.unlock ul{margin:0;padding-left:18px;color:var(--muted);font-size:.92rem}
.tblwrap{overflow-x:auto;max-width:100%}
.tbl{width:100%;border-collapse:collapse;font-size:.9rem;min-width:460px}
.tbl th{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:500;text-align:left;padding:6px 8px;border-bottom:1.5px solid var(--ink)}
.tbl td{padding:8px;border-bottom:1px solid var(--line)}
.tbl td.n{font-family:var(--f-mono);font-variant-numeric:tabular-nums;text-align:right}
.tbl th.n{text-align:right}
.tbl tr.tot td{font-weight:600;border-top:1.5px solid var(--ink)}
.profile{width:100%;height:auto;display:block}
.idx{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid var(--line)}
.idx:last-child{border-bottom:none}
.idx .t{display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap}
.chip{font-family:var(--f-mono);font-size:.72rem;padding:2px 8px;border-radius:99px;border:1px solid var(--line);color:var(--muted)}
.chip.up{border-color:var(--accent);color:var(--accent)}
.chip.down{border-color:var(--warn);color:var(--warn)}
.devnote{border:1px dashed var(--muted);border-radius:8px;padding:12px 14px;font-size:.84rem;color:var(--muted)}
.field{display:flex;gap:8px;flex-wrap:wrap}
.field input{flex:1;min-width:0;font:inherit;padding:11px 12px;border-radius:8px;border:1.5px solid var(--line);background:var(--paper);color:var(--ink)}
#certImg{width:100%;border:1px solid var(--line);border-radius:6px;display:block}
.example{display:flex;flex-direction:column;gap:10px}
.defs{position:absolute;width:0;height:0;overflow:hidden;color:var(--stim)}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}

/* ---------- aggiunte del sito ---------- */
html{-webkit-text-size-adjust:100%}
body{margin:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
a{color:var(--accent)}
.brand{color:var(--ink);text-decoration:none}
.w5{font-weight:500}
.stack{display:flex;flex-direction:column;gap:10px}
.stack.center{align-items:center}
.h2{font-size:1.5rem}
.b6{font-weight:600}
.cmuted{color:var(--stim-muted);text-align:center}
.err{color:var(--warn);font-size:.9rem}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:.9rem}
.consent input{margin-top:4px;accent-color:var(--accent);width:18px;height:18px;flex:none}
.foot{border-top:1px solid var(--line);padding-top:18px;display:flex;flex-direction:column;gap:8px;font-size:.84rem;color:var(--muted)}
.foot nav{display:flex;gap:16px;flex-wrap:wrap}
.foot a{color:var(--muted)}
.board.mini{width:min(100%,280px);pointer-events:none}
.board.mini .blk{display:flex;align-items:center;justify-content:center;color:#16212C;font-family:var(--f-mono);font-size:.8rem;cursor:default}
.legal h3{margin:10px 0 0}
.note{border:1px dashed var(--warn);color:var(--warn);border-radius:8px;padding:10px 12px;font-size:.88rem}
.kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;margin:0}
.kv dt{color:var(--muted)}
.kv dd{margin:0;font-weight:600}
.verified .ok{color:var(--accent);font-weight:600;font-size:1.1rem}
.q.qs{font-size:clamp(1.1rem,3.2vw,1.45rem)}
.cert-preview{width:100%;border:1px solid var(--line);border-radius:6px;display:block;background:#fff}
.field input[type=email],.field input[type=text],.field input[type=password]{flex:1;min-width:200px}
.devnote.mensa{border-style:solid;border-color:var(--accent);color:var(--ink)}
.wrap{padding-left:0;padding-right:0}
