/* Tema definitivo: luminoso, caldo e con contrasto controllato */
:root{--brand:#176fc1;--brand-deep:#123d68;--brand-soft:#e8f2fb;--warm:#f4f0e7;--surface:#fffdfa;--award:#d7a63e;--award-soft:#f3d587;--text:#17283b;--muted:#607286;--line:#d8e1e9}
body{background:var(--warm);color:var(--text)}
.topbar:not(.public-top){background:#fffdfa;border-bottom-color:#d7e1e9}.shell>aside{background:linear-gradient(180deg,#e7f1f8,#dbeaf5);border-right-color:#c8d9e6}.shell>aside nav a.active,.shell>aside nav a:hover{background:#fffdfa}.content .panel,.content .stats article{background:#fffdfa}.content .hero{background:linear-gradient(120deg,#fffdfa,#e4f0f8 68%,#cfE3f1)}

/* Home pubblica */
body:has(.public-wrap){background:var(--warm)}
.public-wrap{background:var(--warm)!important;color:var(--text)!important;overflow:visible!important;padding-bottom:50px!important}
.public-top{height:88px!important;background:#fffdfaf2!important;border-bottom:1px solid #dce4ea!important;box-shadow:0 6px 24px #153a5c12!important}
.public-top .user a{color:#174d7c!important;border-color:#94b4cf!important;background:#fff!important}
.public-top .rules-nav-link{background:var(--award-soft)!important;border-color:#d6a741!important;color:#18283a!important}

.public-hero{min-height:650px!important;padding:135px max(7vw,42px) 85px!important;background-image:linear-gradient(90deg,#102f50ed 0%,#143d66d9 38%,#173e636b 68%,#173e6330 100%),url('hero-stadium.webp')!important;background-position:center!important;color:#fff!important}
.public-hero:before{height:100px!important;background:linear-gradient(transparent,#102f5080)!important}
.public-hero:after{background:radial-gradient(circle at 76% 55%,#e4bc6538,transparent 28%)!important}
.public-hero h1{color:#fff!important;text-shadow:0 10px 32px #06162880!important;font-size:clamp(56px,7vw,98px)!important}
.public-hero h1 em{color:#f0c96f!important}
.public-hero>div:first-child>span{color:#f0c96f!important;background:#102f5075!important;border-left-color:#e3b454!important}
.public-hero p{color:#e0e8ef!important;max-width:620px!important}
.public-hero-actions>a:first-child{background:#fff!important;color:#164f82!important;box-shadow:0 12px 28px #06162835!important}
.public-hero-actions .hero-rules-btn{background:var(--award-soft)!important;color:#17283b!important;border-color:#d4a23b!important}
.hero-countdown>small{color:#f0c96f!important}.hero-countdown span{background:#ffffff13!important;border-color:#ffffff40!important}.hero-countdown b{color:#fff!important}.hero-countdown span small{color:#d1dbe4!important}
.public-wrap>.ticker{min-height:50px!important;background:#d7aa4c!important;color:#15283a!important}

/* Premi: una fascia importante, non cinque moduli spenti */
.prizes-hub{width:min(1240px,calc(100% - 48px))!important;margin:58px auto 42px!important;padding:42px!important;background:linear-gradient(135deg,#1a5488,#103b66)!important;border:0!important;color:#fff!important;box-shadow:0 22px 55px #173b5c26!important}
.prizes-hub>header h2{color:#fff!important;font-size:42px!important}.prizes-hub>header p{color:#d5e1ec!important}.prizes-hub>header span{color:#f1cc76!important}
.prize-showcase{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}
.prize-feature-card,.prize-feature-card:nth-child(4),.prize-feature-card:nth-child(5),.prize-feature-card:last-child{grid-column:auto!important;min-height:225px!important;padding:24px!important;background:#fff!important;border:1px solid #d6e3ed!important;color:var(--text)!important;box-shadow:0 12px 28px #09294a20!important}
.prize-feature-card:before{color:#2379c51a!important;font-size:68px!important}
.prize-feature-card small{color:#1767a9!important;font-size:9px!important}.prize-feature-card h2,.prize-feature-card h3{color:#184875!important;font-size:25px!important}.prize-feature-card p{color:#607286!important;font-size:12px!important}.prize-feature-card strong{color:#17283b!important;font-size:13px!important}
.prizes-hub .monthly-card{background:linear-gradient(145deg,#f0ca70,#f8e2aa)!important;border:0!important}.prizes-hub .monthly-card strong{display:none!important}
.award-races,.prize-winners{gap:14px!important}.award-races article,.prize-winners>article{background:#ffffff0d!important;border:1px solid #ffffff30!important;color:#fff!important;padding:24px!important}.award-races small,.prize-winners>article>small{color:#f1cc76!important}.award-races h3,.prize-winners h3{color:#fff!important;font-size:25px!important}.award-races p,.prize-winners p{border-color:#ffffff22!important}.award-races p b,.award-races p strong,.prize-winners p b{color:#fff!important}.award-races p span,.prize-winners p span,.prize-winners em{color:#c8d6e2!important}.prize-winners p small{color:#f1cc76!important}

/* Tre informazioni chiave */
.public-cards{grid-template-columns:repeat(3,1fr)!important;width:min(1240px,calc(100% - 48px))!important;margin:0 auto 60px!important;gap:16px!important}
.public-cards article{min-height:235px!important;padding:28px!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--text)!important;box-shadow:0 15px 35px #163b5d14!important}
.public-cards article small{color:#8b6415!important}.public-cards h3,.leader-card h3,.next-card h3,.latest-result-card h3{color:#193e61!important;font-size:26px!important}.public-cards p,.next-card p,.latest-result-card p{color:var(--muted)!important}.leader-avatar,.latest-mvp-avatar{background:var(--brand)!important;color:#fff!important;box-shadow:none!important}.leader-card b,.latest-mvp-points,.latest-result-league{color:#956811!important}.next-card span{color:#174f82!important;border-color:#9bbbd5!important}.latest-result-score span{color:#24425e!important}.latest-result-score strong{background:var(--brand-deep)!important;color:#fff!important}

/* Calendario ben separato ma non nero */
.public-schedule{width:100%!important;margin:0!important;padding:65px max(7vw,calc((100vw - 1240px)/2)) 70px!important;background:#e8f1f8!important;color:var(--text)!important}
.public-schedule>div,.schedule-cols{width:min(1240px,100%);margin-left:auto;margin-right:auto}.public-schedule>div>h2{color:#173a5b!important}.public-section-kicker{color:#8e6310!important}
.schedule-cols>section{padding:27px!important;background:#fff!important;border:1px solid #cadbe8!important;box-shadow:0 15px 35px #163b5d13!important}.schedule-cols h3{color:#173a5b!important}.schedule-cols h3 b{background:var(--award-soft)!important;color:#17283b!important}
.schedule-list details{background:#f6f9fc!important;border-color:#d4e0ea!important}.schedule-list summary{background:#f6f9fc!important;color:var(--text)!important}.schedule-list summary>span{color:#9b6c10!important}.schedule-list summary b{color:#193c5e!important}.schedule-list summary small{color:#687b8e!important}.schedule-list summary em{color:#176fc1!important}.schedule-matches{background:#edf4f9!important}.schedule-matches>div{border-color:#d7e2eb!important}.schedule-matches small{color:#61768a!important}.schedule-matches b{color:#183b5c!important}.schedule-matches strong{color:#9a690e!important}

/* Classifiche e QR */
.public-rankings{width:min(1240px,calc(100% - 48px))!important;margin:65px auto 25px!important;gap:18px!important}.public-rankings .panel{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:0 16px 40px #163b5d12!important}.public-rankings .panel h2{color:#173a5b!important}.public-rankings .ranking>div{border-color:#e3e8ed!important}.public-rankings .ranking b,.public-rankings .ranking strong{color:#17283b!important}.public-rankings .ranking small{color:#6d7e8f!important}
.public-qr{width:min(1240px,calc(100% - 48px))!important;margin:28px auto 60px!important;padding:30px!important;background:linear-gradient(120deg,#174f82,#226da9)!important;border:0!important;color:#fff!important;box-shadow:0 18px 42px #163b5d24!important}.public-qr h2{color:#fff!important}.public-qr p{color:#d9e5ef!important}.public-qr span,.public-qr a{color:#f1cc76!important}.public-qr img{width:145px!important}
body:has(.public-wrap)>footer{background:#e1eaf1!important;color:#587086!important;border-top:1px solid #ccdbe6!important}

@media(max-width:1050px){.prize-showcase{grid-template-columns:repeat(2,1fr)!important}.prize-feature-card:last-child{grid-column:1/-1!important}}
@media(max-width:700px){.public-top{height:74px!important}.public-hero{min-height:630px!important;padding:110px 20px 55px!important;background-position:65% center!important}.public-hero h1{font-size:48px!important}.prizes-hub{width:calc(100% - 22px)!important;margin:30px auto!important;padding:25px 18px!important}.prizes-hub>header h2{font-size:32px!important}.prize-showcase{grid-template-columns:1fr!important}.prize-feature-card,.prize-feature-card:last-child{grid-column:auto!important;min-height:185px!important}.public-cards{grid-template-columns:1fr!important;width:calc(100% - 22px)!important;margin-bottom:35px!important}.public-cards article{min-height:205px!important}.public-schedule{padding:45px 11px 50px!important}.public-rankings{width:calc(100% - 22px)!important;margin-top:40px!important}.public-qr{width:calc(100% - 22px)!important;margin-bottom:35px!important}}
