/* Stile condiviso delle pagine SLM ridisegnate: variabili, sfondo discreto, barra in alto e menu.
   Usato insieme a slm-shell.js. Le pagine non ancora ridisegnate non lo caricano e restano come prima. */
:root{
  --bg:#f1f5f9; --card:#ffffff; --ink:#0f172a; --muted:#475569; --line:#e2e8f0; --line2:#8795a9;
  --brand:#4338ca; --brand-d:#3730a3; --brand-soft:#eef2ff;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink);font-size:14px}
/* sfondo discreto: linee diagonali sottilissime + due aloni sfumati; fisso, non intercetta i clic */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(1000px 600px at 100% 0%,rgba(99,102,241,.16),transparent 70%),
    radial-gradient(900px 560px at 0% 100%,rgba(14,165,233,.14),transparent 70%),
    repeating-linear-gradient(135deg,rgba(79,70,229,.10) 0 1px,transparent 1px 30px)}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* barra superiore: marchio, navigazione con icone, utente */
header.top{display:flex;align-items:center;gap:20px;padding:10px 24px;background:linear-gradient(135deg,#3730a3 0%,#5b21b6 100%);box-shadow:0 2px 10px rgba(30,27,75,.25)}
header.top :focus-visible{outline-color:#fff}
.brand{display:flex;align-items:center;gap:12px;min-width:0;flex-shrink:0}
.logo{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.16);display:grid;place-items:center;flex-shrink:0}
.logo svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
header.top h1{display:block;font-size:17px;font-weight:700;line-height:1.2;color:#fff;letter-spacing:-.005em}
header.top h1 span{font-weight:500;color:#e0e7ff}
header.top p{font-size:12px;line-height:1.3;margin:0;color:#c7d2fe}
.topnav{display:flex;align-items:center;gap:2px;margin-left:auto;overflow-x:auto;scrollbar-width:none}
.topnav::-webkit-scrollbar{display:none}
.topnav a{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:9px;color:#e0e7ff;text-decoration:none;font-size:13px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.topnav a svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.topnav a:hover{background:rgba(255,255,255,.16);color:#fff}
.topnav a[aria-current=page]{background:#fff;color:#312e81}
.authbox{display:flex;align-items:center;gap:10px;padding-left:16px;border-left:1px solid rgba(255,255,255,.3);color:#fff;font-size:13px;white-space:nowrap;flex-shrink:0}
.authbox #slmLoginLink{display:inline-flex!important;align-items:center;gap:7px;background:#fff!important;color:#312e81!important;padding:7px 14px!important;border-radius:9px!important;font-weight:600}
.authbox #slmLoginLink svg,.authbox #slmLogout svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.authbox .who{display:inline-flex;align-items:center;gap:8px;opacity:1!important;font-weight:600}
.authbox .av{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;font-size:11px;font-weight:700;letter-spacing:.02em}
.authbox #slmLogout{display:inline-flex!important;align-items:center;gap:6px;color:#e0e7ff!important;text-decoration:none!important;opacity:1!important;margin-left:0!important;font-size:12px!important;font-weight:600;padding:5px 9px;border-radius:8px}
.authbox #slmLogout:hover{background:rgba(255,255,255,.16);color:#fff!important}
@media (max-width:1180px){.topnav a span{display:none}.topnav a{padding:9px 10px}}
@media (max-width:760px){header.top{flex-wrap:wrap;gap:10px}.topnav{order:3;width:100%;margin-left:0}.brand .btxt p{display:none}.authbox{margin-left:auto}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
