/* ===== Tema chiaro/scuro — pagina Confronto ===== */
html{color-scheme:dark;} html[data-theme="light"]{color-scheme:light;}
/* ---------- Interruttore ---------- */
.theme-toggle{position:relative;flex:none;width:58px;height:30px;padding:0;border-radius:99px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);cursor:pointer;color:#9a98b3;transition:background .25s,border-color .25s,box-shadow .25s;-webkit-tap-highlight-color:transparent;}
.theme-toggle:hover{border-color:rgba(139,92,246,.5);}
.theme-toggle:focus-visible{outline:2px solid #a78bfa;outline-offset:3px;}
.tt-icons{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 8px;pointer-events:none;}
.tt-i{display:flex;opacity:.55;}
.tt-knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;transition:transform .35s cubic-bezier(.2,.9,.3,1.2),background .3s,box-shadow .3s;pointer-events:none;}
.tt-k{position:absolute;display:flex;transition:opacity .25s,transform .35s;}
.tt-k svg{width:13px;height:13px;}
html:not([data-theme="light"]) .tt-knob{transform:translateX(28px);background:linear-gradient(135deg,#8b5cf6,#4f46e5);box-shadow:0 0 12px rgba(139,92,246,.5);}
html:not([data-theme="light"]) .tt-k-sun{opacity:0;transform:rotate(-90deg) scale(.5);}
html[data-theme="light"] .tt-knob{transform:translateX(0);background:linear-gradient(135deg,#fbbf24,#f59e0b);box-shadow:0 2px 10px rgba(245,158,11,.45);}
html[data-theme="light"] .tt-k-moon{opacity:0;transform:rotate(90deg) scale(.5);}
html[data-theme="light"] .theme-toggle{background:rgba(15,23,42,.06);border-color:rgba(30,20,70,.16);color:#544f6e;}
.theme-toggle--desk{margin-left:14px;}
.theme-toggle--solo{margin-left:14px;margin-right:2px;}
.theme-toggle--mob{display:none;}
@media(max-width:640px){
  .theme-toggle--desk{display:none;}
  .theme-toggle--mob{display:block;margin-left:auto;margin-right:12px;}
}



.theme-toggle--float{position:fixed;top:14px;right:14px;z-index:9999;margin:0;}
html[data-theme="light"] body{background:#f7f6fc;color:#14111f;}
html[data-theme="light"] a{color:#0f766e;}
html[data-theme="light"] .nav{background:rgba(255,255,255,.92);border-bottom-color:rgba(30,20,70,.11);}
html[data-theme="light"] .nav-logo{color:#14111f;}
html[data-theme="light"] .nav-logo-dot{background:#0f766e;box-shadow:0 0 8px rgba(15,118,110,.6);}
html[data-theme="light"] .nav-cta,html[data-theme="light"] .hero-cta{background:#0f766e;color:#fff;}
html[data-theme="light"] .nav-cta:hover,html[data-theme="light"] .hero-cta:hover{background:#115e59;}
html[data-theme="light"] .hero-badge{border-color:rgba(15,118,110,.3);background:rgba(15,118,110,.08);color:#0f766e;}
html[data-theme="light"] .hero .cyan{color:#0f766e;}
html[data-theme="light"] .hero p,html[data-theme="light"] .card p,html[data-theme="light"] .card-verdict p,html[data-theme="light"] th,html[data-theme="light"] td:first-child{color:#544f6e;}
html[data-theme="light"] .table-wrap,html[data-theme="light"] .card{background:#fff;border-color:rgba(30,20,70,.11);}
html[data-theme="light"] td,html[data-theme="light"] th{border-bottom-color:rgba(30,20,70,.08);}
html[data-theme="light"] .winner{color:#0f766e;}
html[data-theme="light"] .neutral{color:#14111f;}
html[data-theme="light"] .loser,html[data-theme="light"] .cross{color:#dc2626;}
html[data-theme="light"] .check{color:#059669;}
html[data-theme="light"] .partial{color:#b45309;}
html[data-theme="light"] .card-verdict,html[data-theme="light"] .cta-final{background:linear-gradient(135deg,rgba(15,118,110,.07),rgba(3,105,161,.05));border-color:rgba(15,118,110,.2);}
html[data-theme="light"] footer{color:#7a7595;}
html[data-theme="light"] footer a{color:#544f6e;}
html[data-theme="light"] [style*="color:#8888aa"],html[data-theme="light"] [style*="color: #8888aa"]{color:#544f6e!important;}
html[data-theme="light"] .nav-logo,html[data-theme="light"] .nav-logo *{color:#14111f!important;}
.nav-inner .theme-toggle--solo{margin-left:auto;margin-right:14px;}
@media(max-width:640px){.nav-logo span[style]{display:none;} .nav-cta{padding:8px 14px;white-space:nowrap;}}
html[data-theme="light"] .check{color:#047857;}
html[data-theme="light"] th[style*="00f5d4"]{color:#0f766e!important;}
html[data-theme="light"] section[style*="background:#0d0d14"]{background:#eef2f6!important;border-color:rgba(30,20,70,.1)!important;}
html[data-theme="light"] span[style*="00f5d4"],html[data-theme="light"] strong[style*="00f5d4"],html[data-theme="light"] a[style*="00f5d4"]{color:#0f766e!important;}
html[data-theme="light"] footer,html[data-theme="light"] footer p{color:#544f6e!important;}
