:root{color-scheme:dark;--bg:#090e17;--panel:#111b29;--line:#263448;--green:#a3f56b;--muted:#a4b2c4;--text:#f1f5fa}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:var(--bg);color:var(--text);font-family:Roboto,Arial,sans-serif;font-size:15px}header{background:#101927;border-bottom:1px solid var(--line)}.header-inner{max-width:1240px;margin:auto;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:14px}.brand-mark{display:grid;place-items:center;background:var(--green);color:#101927;width:48px;height:48px;border-radius:14px;font-size:28px;flex-shrink:0}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--green)}h1,h2{font-family:Oswald,'Arial Narrow',Arial,sans-serif}h1{font-size:clamp(19px,3vw,30px);margin:4px 0 0;letter-spacing:.5px}h1 em{font-style:normal;color:var(--green)}.public-label{color:var(--green);font-size:11px;font-weight:bold;letter-spacing:1px;white-space:nowrap}main{max-width:1240px;margin:26px auto;padding:0 24px}.hero{background:radial-gradient(ellipse at 95% 0%,#294b36 0%,transparent 55%),linear-gradient(125deg,#172538,#101927);border:1px solid #30463e;border-radius:20px;padding:32px;position:relative}.hero h2{font-size:clamp(28px,5vw,48px);margin:12px 0 6px;letter-spacing:-1px}.hero p{color:var(--muted);margin:0 0 26px}.hero label{display:block;font-size:12px;font-weight:bold;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}select{background:#0b1420;color:var(--text);border:1px solid #526679;border-radius:10px;padding:13px;font:inherit;width:min(100%,420px)}select:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}nav a{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:12px 18px;text-decoration:none;font-weight:bold}nav a:hover{color:var(--green);border-color:var(--green)}section{background:var(--panel);border:1px solid var(--line);border-radius:16px;margin:18px 0;overflow:hidden}section h2{margin:0;padding:20px 22px;font-size:23px;border-bottom:1px solid var(--line)}section h2 span{font-size:13px;color:var(--green);margin-right:10px}.data{overflow-x:auto;padding:0 0 8px;color:var(--muted)}.data:empty{padding:0}table{border-collapse:collapse;width:100%;min-width:580px;color:var(--text);font-variant-numeric:tabular-nums}th,td{padding:14px 16px;text-align:center;border-bottom:1px solid #243143}th{background:#0d1521;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.7px}tbody tr:nth-child(even){background:#152131}tbody tr:hover{background:#203044}#standings th:first-child,#standings td:first-child,#scorers th:first-child,#scorers td:first-child{text-align:left}#standings td:last-child,#scorers td:last-child{font-size:19px;color:var(--green);font-weight:800}#matches table{min-width:760px}#matches td:nth-child(5){font-size:21px;color:var(--green);font-weight:800;white-space:nowrap}#matches td:nth-child(4){text-align:right;font-weight:700}#matches td:nth-child(6){text-align:left;font-weight:700}#matches td:last-child{font-size:12px;color:var(--muted)}#error{color:#ff9b9b}#error:empty{display:none}footer{text-align:center;color:var(--muted);font-size:11px;letter-spacing:1px;padding:25px}@media(max-width:600px){main{padding:0 12px;margin-top:14px}.header-inner{padding:15px 12px}.public-label{display:none}.hero{padding:22px 18px}.brand-mark{width:38px;height:38px;font-size:23px}nav a{padding:10px;font-size:12px}section h2{font-size:19px;padding:16px}th,td{padding:11px 12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Tema US ACLI Palermo */
:root{color-scheme:light;--bg:#eaf6ff;--panel:#fff;--line:#b7d8ef;--green:#087a35;--muted:#45617a;--text:#102c50}body{background:#eaf6ff }header{background:#fff;border-bottom:4px solid #0064b7;box-shadow:0 4px 18px #003b7620}.header-inner{padding:14px 24px;border-top:3px solid transparent;border-image:linear-gradient(90deg,#008b38 33%,#fff 33%,#fff 66%,#d71920 66%) 1}.brand-mark{background:#0056a5;color:white}.eyebrow,.public-label{color:#087a35}h1 em{color:#0056a5}.hero{background:linear-gradient(115deg,#fff 35%,#d8efff);border:1px solid #8ac5ef;box-shadow:0 8px 25px #003b761a}.hero h2{color:#004a91}select{background:white;color:#102c50;border:1px solid #74a8d3}nav a{background:linear-gradient(#087bd0,#004b94);color:white;border:1px solid #004b94;box-shadow:0 3px 8px #003b7620}nav a:hover{background:#087a35;color:white;border-color:#087a35}section{box-shadow:0 6px 20px #003b761a}section h2{background:linear-gradient(100deg,#003c80,#087ed0);color:white;border:0}section h2 span{color:#d4f3ff}th{background:#dceeff;color:#154b79}th,td{border-bottom:1px solid #d6e7f4}tbody tr:nth-child(even){background:#f0f8ff}tbody tr:hover{background:#d9efff}#matches td:nth-child(5){color:#0056a5}#error{color:#a41520;background:#fff;padding:12px;border-radius:8px}footer{background:#fff;border-top:3px solid #087a35;border-radius:10px;color:#154b79} .data:not(:has(table)){padding:16px} @media(max-width:600px){.header-inner{padding:12px}body{background-size:auto 100vh}nav a{flex:1;text-align:center}}



/* Dashboard a tutta larghezza */
main,.header-inner{max-width:none;width:100%;padding-left:clamp(12px,2vw,32px);padding-right:clamp(12px,2vw,32px)}main{margin-top:14px}.hero{padding:18px 24px}.hero h2{font-size:30px;margin:4px 0}.hero p{margin-bottom:12px}nav{margin:12px 0}.dashboard{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}.dashboard-right{display:grid;gap:16px;min-width:0}.dashboard section{margin:0;min-width:0}.dashboard section h2{padding:14px 16px}.dashboard table,.dashboard #matches table{min-width:0;font-size:13px}.dashboard th,.dashboard td{padding:10px 6px;overflow-wrap:anywhere}.dashboard #matches td:nth-child(5){font-size:18px}.dashboard #standings td:last-child,.dashboard #scorers td:last-child{font-size:16px}.dashboard #matches td:nth-child(2),.dashboard #matches td:nth-child(3){white-space:nowrap}.dashboard #matches td:nth-child(4),.dashboard #matches td:nth-child(6){min-width:70px}footer{margin-top:16px}@media(max-width:1050px){.dashboard{grid-template-columns:1fr}.dashboard table{min-width:0}.dashboard #matches table{min-width:570px}}@media(max-width:600px){.dashboard #standings table{min-width:420px}.dashboard th,.dashboard td{padding:9px 5px}.hero{padding:14px}}

/* Calendario diviso per giornata */
#matches .match-round{margin:0 0 18px;border:1px solid #b8d9f2;border-radius:10px;overflow:hidden;background:#fff}
#matches .match-round:last-child{margin-bottom:0}
#matches .match-round h3{margin:0;padding:12px 16px;background:linear-gradient(100deg,#004582,#087fc4);color:#fff;font-size:19px;font-weight:700;letter-spacing:.3px}
#matches .match-round table{margin:0;width:100%}
.dashboard #matches .match-round td:nth-child(1),.dashboard #matches .match-round td:nth-child(2){white-space:nowrap}
.dashboard #matches .match-round td:nth-child(3),.dashboard #matches .match-round td:nth-child(5){white-space:normal;font-size:13px;min-width:70px;font-weight:500}
.dashboard #matches .match-round td:nth-child(4){font-size:18px;font-weight:700;white-space:nowrap;min-width:0;color:#00559a}
.dashboard #matches .match-round td:nth-child(6){min-width:0}
@media(max-width:1050px){#matches .match-round{overflow-x:auto}}

/* Layout desktop: calendario a sinistra, classifiche a destra */
.dashboard{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);align-items:start;gap:16px;width:100%}
.dashboard > #calendario{grid-column:1;grid-row:1;min-width:0}
.dashboard > .dashboard-right{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:16px;min-width:0}
.dashboard .data{max-width:100%;overflow-x:auto}
.dashboard #matches .match-round{overflow-x:auto}
@media(min-width:701px){.dashboard #matches table{min-width:0}.dashboard #standings table{min-width:0}}
@media(max-width:700px){.dashboard{grid-template-columns:minmax(0,1fr)}.dashboard > #calendario,.dashboard > .dashboard-right{grid-column:1;grid-row:auto}}

/* Layout definitivo */
@media screen and (min-width: 701px){main > .dashboard{display:grid!important;grid-template-columns:minmax(0,55fr) minmax(0,45fr)!important;align-items:start!important;width:100%!important;gap:16px!important}main > .dashboard > #calendario{grid-area:1 / 1!important;width:100%!important}main > .dashboard > .dashboard-right{grid-area:1 / 2!important;display:flex!important;flex-direction:column!important;width:100%!important}main > .dashboard > .dashboard-right > section{width:100%!important;margin:0!important}}

/* Dimensioni caratteri richieste */
.hero h2{font-size:60px;font-weight:700;line-height:1.15}
.dashboard section h2{font-size:40px;font-weight:700;line-height:1.15}
#matches .match-round h3{font-size:28px;font-weight:700}
.dashboard #matches table,.dashboard #standings table,.dashboard #scorers table{font-size:18px}
.dashboard #matches th,.dashboard #standings th,.dashboard #scorers th{font-size:18px;font-weight:700;letter-spacing:0}
.dashboard #matches .match-round td:nth-child(1),.dashboard #matches .match-round td:nth-child(2){font-size:18px;font-weight:400}
.dashboard #matches .match-round td:nth-child(3),.dashboard #matches .match-round td:nth-child(5){font-size:18px;font-weight:500;color:var(--text)}
.dashboard #matches .match-round td:nth-child(4){font-size:18px;font-weight:700;text-align:center}
.dashboard #matches .match-round td:nth-child(6){font-size:16px;font-weight:400}
.dashboard #standings td,.dashboard #scorers td{font-size:18px}
.dashboard #standings td:last-child{font-size:22px;font-weight:700}
.dashboard #scorers td:last-child{font-size:18px;font-weight:700}
.dashboard th,.dashboard td{overflow-wrap:normal;padding:8px 5px}
.dashboard #matches .match-round td:nth-child(3),.dashboard #matches .match-round td:nth-child(5),.dashboard #standings td:first-child,.dashboard #scorers td:nth-child(-n+2){overflow-wrap:anywhere}

/* Calendario: giorno, campo e risultato centrato */
.dashboard #matches .match-round table{min-width:780px;table-layout:auto}
.dashboard #matches .match-round td:nth-child(n){font-size:18px;font-weight:400;color:var(--text);min-width:0;white-space:normal;overflow-wrap:normal;vertical-align:middle}
.dashboard #matches .match-round td:nth-child(-n+3){white-space:nowrap}
.dashboard #matches .match-round td:nth-child(5),.dashboard #matches .match-round td:nth-child(7){font-weight:500;min-width:100px;overflow-wrap:anywhere}
.dashboard #matches .match-round td:nth-child(6),.dashboard #matches .match-round th:nth-child(6){text-align:center;vertical-align:middle;white-space:nowrap}
.dashboard #matches .match-round td:nth-child(8){font-size:16px}
.match-score{display:inline-block;min-width:60px;padding:5px 8px;border-radius:6px;background:#eaf5ff;color:#00559a;font-size:18px;font-weight:700;text-align:center;vertical-align:middle}

/* Banner centrato, senza ingrandimento; selezione competizione */

.hero #competition{display:block;width:100%;max-width:none;height:70px;font-size:28px;font-weight:700;text-align:center;text-align-last:center;border-radius:8px;background-color:#fff;color:#102c50;padding:8px 36px 8px 12px}
.hero #competition option{font-weight:700;text-align:center}
@media(max-width:600px){.hero #competition{font-size:clamp(18px,5vw,28px)}}

/* Banner indipendente e sfondo verticale */
body{background:#eaf6ff ;min-height:100vh}
header{background:#fff}

@media(max-width:600px){body{background-size:100% auto;background-attachment:scroll}}

/* Banner incorporato direttamente nella pagina */



/* Dimensioni aggiornate */
.hero h2{font-size:70px;line-height:1.15}
.hero p{font-size:18px}
.hero label{font-size:18px;font-weight:700}
.hero #competition{font-size:26px;height:auto;min-height:0;line-height:1.25;padding:8px 36px 8px 12px}
.hero #competition option{font-size:26px}
.dashboard{margin-top:16px}
@media(max-width:600px){.hero h2{font-size:70px;overflow-wrap:anywhere}.hero #competition{font-size:26px}}


/* Banner responsive senza ritagli */



/* Banner: stessa larghezza del riquadro principale */




/* Nuovo leaderboard 728 x 90, responsive senza ritagli */
main > .public-banner{width:100%;margin:0 0 16px;padding:0;background:none;border-radius:20px;overflow:hidden}
main > .public-banner .acli-banner{display:block;width:100%;margin:0;padding:0;background:none}
main > .public-banner img{display:block;width:100%;height:auto;aspect-ratio:2048/682;object-fit:contain;border-radius:20px}

/* Sfondo unico e banner originale HD */
body{background:#eaf6ff;min-height:100vh}
main > .public-banner{background:none;max-width:1440px;margin:0 auto 16px}
main > .public-banner .acli-banner{background:none;aspect-ratio:auto;height:auto;max-width:none}
main > .public-banner img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}

/* Sfondo blu istituzionale con tricolore italiano */
body{min-height:100vh;background:#092d59;background-image:linear-gradient(155deg,transparent 0 73%,#16864a 73% 74.2%,#f5f8fc 74.2% 75.4%,#ce2638 75.4% 76.6%,transparent 76.6%),radial-gradient(ellipse at 18% 0%,#287ac0 0%,transparent 58%),linear-gradient(135deg,#123f75,#071c39);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed}
.hero{background:rgba(255,255,255,.94)}
section{background:rgba(255,255,255,.96)}
@media(max-width:600px){body{background-attachment:scroll}}

/* Correzione layout e banner HD originale */
main{width:100%;max-width:100%;margin:14px auto 0;padding:0 clamp(12px,2vw,32px);min-width:0}
main > .public-banner{width:100%;max-width:1440px;margin:0 auto 16px;overflow:hidden}
main > .public-banner img{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:auto;object-fit:contain}
.hero h2{text-align:center;font-size:clamp(28px,4vw,70px);overflow-wrap:break-word}
.hero p{text-align:center}
.hero{min-width:0}
.dashboard,.dashboard-right,.dashboard section{min-width:0;max-width:100%}
@media(max-width:700px){main{padding:0 12px}.hero h2{font-size:clamp(28px,6vw,42px)}}

/* Sfondo grafico incorporato */
html{min-height:100%;background:#092d59}body{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOTIwIiBoZWlnaHQ9IjEwODAiIHZpZXdCb3g9IjAgMCAxOTIwIDEwODAiPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDI9IjEiIHkyPSIxIj48c3RvcCBzdG9wLWNvbG9yPSIjMjQ2YmIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDcxYzM5Ii8+PC9saW5lYXJHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9ImciPjxzdG9wIHN0b3AtY29sb3I9IiM2MWJhZmYiIHN0b3Atb3BhY2l0eT0iLjM1Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjNjFiYWZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L3JhZGlhbEdyYWRpZW50PjwvZGVmcz48cmVjdCB3aWR0aD0iMTkyMCIgaGVpZ2h0PSIxMDgwIiBmaWxsPSJ1cmwoI2IpIi8+PGVsbGlwc2UgY3g9IjI1MCIgY3k9IjE4MCIgcng9Ijg1MCIgcnk9IjY1MCIgZmlsbD0idXJsKCNnKSIvPjxnIGZpbGw9Im5vbmUiIHN0cm9rZS13aWR0aD0iMjQiPjxwYXRoIGQ9Ik0tMTAwIDc4MCBRNTUwIDQwMCAyMDIwIDk3MCIgc3Ryb2tlPSIjMTY4NjRhIi8+PHBhdGggZD0iTS0xMDAgODA1IFE1NTAgNDI1IDIwMjAgOTk1IiBzdHJva2U9IiNmZmYiLz48cGF0aCBkPSJNLTEwMCA4MzAgUTU1MCA0NTAgMjAyMCAxMDIwIiBzdHJva2U9IiNjZTI2MzgiLz48L2c+PC9zdmc+") !important;background-size:cover !important;background-position:center !important;background-repeat:no-repeat !important;background-attachment:fixed !important;min-height:100vh}main{background:transparent !important}

/* Spazi tra giornate trasparenti, tabelle leggibili */
#calendario, #calendario #matches{background:transparent!important;box-shadow:none;}
#matches .match-round{background:#fff;}

/* Calendario: bianco per messaggi e giornate, trasparenza solo negli intervalli */
#calendario:not(:has(.match-round)){background:rgba(255,255,255,.96)!important;}
#calendario:has(.match-round){background:transparent!important;border-color:transparent;}
#calendario #matches:not(:has(.match-round)){background:rgba(255,255,255,.96)!important;color:var(--muted);}
#calendario #matches:has(.match-round){background:transparent!important;}
#calendario #matches .match-round{background:#fff!important;}

/* Titolo campionato: effetto blu metallico e riflesso luminoso */
.hero h2{color:#07569c;text-shadow:0 2px 0 rgba(255,255,255,.85),0 4px 8px rgba(0,55,110,.18);}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
.hero h2{background-image:linear-gradient(110deg,#06376b 0%,#0864ad 32%,#278acb 48%,#0864ad 62%,#06376b 100%);background-size:200% 100%;background-position:0% 50%;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none;filter:drop-shadow(0 2px 1px rgba(0,45,90,.18));animation:acli-title-shine 7s ease-in-out infinite;}
}
@keyframes acli-title-shine{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){.hero h2{animation:none}}

.comunicati-bar{text-align:center;margin:12px 0}.comunicati-bar button,#comunicati-close{border:0;border-radius:9px;padding:12px 26px;background:#c90016;color:#fff;font:700 20px Roboto,Arial,sans-serif;cursor:pointer}.comunicati-bar button:hover{background:#a50012}#comunicati-dialog{width:min(540px,calc(100% - 24px));max-height:85vh;overflow:auto;border:1px solid #8ac5ef;border-radius:16px;background:#fff;color:#102c50;padding:22px}#comunicati-dialog::backdrop{background:#071c39b3}#comunicati-dialog h2{margin:0 0 16px}#comunicati-list a{display:block;padding:12px 0;color:#004a91;overflow-wrap:anywhere;border-bottom:1px solid #d6e7f4}#comunicati-close{margin-top:18px;font-size:16px}.comunicati-bar #comunicati-open{display:inline-block;width:fit-content;max-width:100%;min-width:0;min-height:44px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;height:auto;text-align:center}
