
:root {
	--notte: #0a1e3c;
	--blu: #0d4a8f;
	--giallo: #ffd23c;
	--ghiaccio: #f4f7fb;
	--verde: #2fae6b;
	--rosso: #d64545;
	--inchiostro: #17253a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Barlow', sans-serif; background: var(--ghiaccio); color: var(--inchiostro); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- testata ---------- */
.testata-sfondo { background: var(--notte); color: #fff; }
.testata { display: flex; align-items: center; gap: 28px; padding: 16px 0; }
.marchio { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 30px; letter-spacing: 0.5px; }
.marchio em { font-style: normal; color: var(--giallo); }
.navp { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.navp a { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 17px; padding: 8px 12px; border-radius: 4px; opacity: .85; }
.navp a:hover, .navp a.qui { background: var(--blu); opacity: 1; }
.bottone { border:0; cursor:pointer; background: var(--giallo); color: var(--notte); padding: 8px 16px; border-radius: 4px; font-weight: 700; font-family: 'Barlow Condensed'; font-size: 17px; }

/* ---------- tabellone ---------- */
.tabellone { background: var(--notte); color: #fff; padding: 26px 0 34px; border-bottom: 6px solid var(--giallo); }
.tabellone-testa { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.tabellone-testa h1 { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 44px; line-height: 1; }
.tabellone-testa span { color: var(--giallo); font-family: 'Barlow Condensed'; font-size: 20px; font-weight: 700; }
.partite { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.partita { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 14px 12px 12px; }
.squadra { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
.squadra .nome { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 18px; }
.squadra .gol { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 26px; color: var(--giallo); }
.punti { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.2); font-size: 13px; color: rgba(255,255,255,.65); display: flex; justify-content: space-between; }
.stemmino { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed'; font-weight: 800; font-size: 12px; color: var(--notte); background: var(--giallo); margin-right: 8px; flex: none; }

/* ---------- corpo ---------- */
.corpo { display: grid; grid-template-columns: 2fr 1.15fr; gap: 24px; padding: 32px 0; align-items: start; }
.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 0 rgba(10,30,60,.08), 0 6px 20px rgba(10,30,60,.06); overflow: hidden; }
.card h2 { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 26px; padding: 16px 20px 12px; border-bottom: 3px solid var(--giallo); display: flex; justify-content: space-between; align-items: baseline; }
.card h2 a { font-size: 15px; font-weight: 700; color: var(--blu); }

/* pagellone in evidenza */
.pagellone-hero { background: linear-gradient(135deg, var(--blu), var(--notte)); color: #fff; position: relative; }
.pagellone-hero .voti-sfondo { position: absolute; inset: 0; opacity: .12; font-family: 'Barlow Condensed'; font-weight: 800; font-size: 54px; line-height: 1.2; overflow: hidden; padding: 8px 12px; letter-spacing: 8px; user-select: none; }
.pagellone-hero .contenuto { position: relative; padding: 26px 24px 22px; }
.pagellone-hero .etichetta { display: inline-block; background: var(--giallo); color: var(--notte); font-family: 'Barlow Condensed'; font-weight: 800; font-size: 16px; padding: 3px 10px; border-radius: 3px; }
.pagellone-hero h3 { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 36px; margin: 12px 0 8px; line-height: 1.05; }
.pagellone-hero p { color: rgba(255,255,255,.8); max-width: 62ch; }
.pagellone-hero .leggi { display: inline-block; margin-top: 16px; background: #fff; color: var(--notte); font-family: 'Barlow Condensed'; font-weight: 800; font-size: 17px; padding: 9px 18px; border-radius: 4px; }

/* classifica */
table { width: 100%; border-collapse: collapse; }
td, th { padding: 9px 12px; font-size: 15px; }
th { text-align: left; font-family: 'Barlow Condensed'; font-weight: 700; color: #7285a0; font-size: 14px; border-bottom: 2px solid var(--ghiaccio); }
tbody tr { border-bottom: 1px solid var(--ghiaccio); }
tbody tr:nth-child(1) .pos { background: var(--giallo); }
td.pos-cell { width: 34px; }
.pos { width: 24px; height: 24px; border-radius: 4px; background: var(--ghiaccio); display: inline-flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed'; font-weight: 800; }
td.club { font-weight: 600; }
td.pts { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 19px; text-align: right; }
.andamento { display: inline-flex; gap: 3px; }
.andamento i { width: 8px; height: 8px; border-radius: 50%; }
.v { background: var(--verde); } .p { background: #cbd6e4; } .s { background: var(--rosso); }

/* colonna destra */
.colonna { display: grid; gap: 24px; }
.marcatore { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--ghiaccio); }
.marcatore .gol-n { margin-left: auto; font-family: 'Barlow Condensed'; font-weight: 800; font-size: 22px; color: var(--blu); }
.marcatore small { color: #7285a0; display: block; }
.prossimo { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ghiaccio); }
.prossimo .vs { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 18px; }
.prossimo time { color: #7285a0; font-size: 14px; }
.scadenza { background: var(--notte); color: var(--giallo); text-align: center; padding: 12px; font-family: 'Barlow Condensed'; font-weight: 800; font-size: 18px; }


/* ---------- scudetti squadre (demo: al loro posto i loghi veri) ---------- */
.crest { width: 26px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
	font-family: 'Barlow Condensed'; font-weight: 800; font-size: 12px; color: #fff; flex: none;
	clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%); margin-right: 9px;
	box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.crest.sm { width: 22px; height: 26px; font-size: 11px; }
.c-aj { background: linear-gradient(180deg, #111, #444); }
.c-ab { background: linear-gradient(180deg, #c8102e, #7c0a1d); }
.c-fc { background: linear-gradient(180deg, #f2a900, #b97800); color: #222; }
.c-fr { background: linear-gradient(180deg, #e75480, #a92e56); }
.c-sp { background: linear-gradient(180deg, #6a0dad, #3d0763); }
.c-mu { background: linear-gradient(180deg, #007a3d, #00552b); }
.c-ms { background: linear-gradient(180deg, #ff6b00, #b34a00); }
.c-pf { background: linear-gradient(180deg, #0aa2c0, #066b80); }
.c-rg { background: linear-gradient(180deg, #2e5e1f, #7bb661); }
.c-sa { background: linear-gradient(180deg, #d00, #ffcc00 85%); }

/* ---------- banner ---------- */
.banner { position: relative; background: var(--notte); overflow: hidden; }
.banner svg { display: block; width: 100%; height: 300px; }
.banner .testo { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.banner h2 { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 52px; color: #fff; line-height: 1; max-width: 12ch; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.banner p { color: var(--giallo); font-family: 'Barlow Condensed'; font-weight: 700; font-size: 21px; margin-top: 8px; }
@media (max-width: 700px) { .banner svg { height: 210px; } .banner h2 { font-size: 34px; } }

footer { background: var(--notte); color: rgba(255,255,255,.6); padding: 22px 0; font-size: 14px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--giallo); }

@media (max-width: 900px) {
	.partite { grid-template-columns: 1fr 1fr; }
	.corpo { grid-template-columns: 1fr; }
	.navp { display: none; }
}
@media (max-width: 560px) { .partite { grid-template-columns: 1fr; } }

/* --- integrazioni sito reale --- */
a.marchio { font-family:'Barlow Condensed'; font-weight:800; font-size:30px; }
a.marchio em { font-style:normal; color:var(--giallo); }
.navp a.bottone, .bottone { background:var(--giallo); color:var(--notte) !important; padding:8px 16px; border-radius:4px; font-weight:800; font-family:'Barlow Condensed'; font-size:17px; opacity:1 !important; }
details.accesso { position:relative; }
details.accesso summary { list-style:none; cursor:pointer; }
details.accesso summary::-webkit-details-marker { display:none; }
details.accesso .pannellino { position:absolute; right:0; top:46px; background:#fff; color:var(--inchiostro); padding:16px; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.35); width:240px; z-index:50; }
.pannellino input[type=text], .pannellino input[type=password] { width:100%; padding:8px; margin-bottom:8px; border:1px solid #cbd6e4; border-radius:4px; font-family:inherit; }
.pannellino label { font-size:13px; color:#7285a0; }
.partita { display:block; }
.partita:hover { background:rgba(255,255,255,.12); }
.p-squadra { display:flex; align-items:center; gap:8px; padding:4px 0; }
.p-squadra img { width:24px; height:24px; object-fit:contain; }
.p-squadra .nome { font-family:'Barlow Condensed'; font-weight:700; font-size:18px; }
.p-squadra .gol { margin-left:auto; font-family:'Barlow Condensed'; font-weight:800; font-size:26px; color:var(--giallo); }
.p-punti { margin-top:8px; padding-top:8px; border-top:1px dashed rgba(255,255,255,.2); font-size:13px; color:rgba(255,255,255,.65); display:flex; justify-content:space-between; }
table.nuova { width:100%; border-collapse:collapse; }
.nuova td, .nuova th { padding:9px 12px; font-size:15px; }
.nuova th { text-align:left; font-family:'Barlow Condensed'; font-weight:700; color:#7285a0; font-size:14px; border-bottom:2px solid var(--ghiaccio); }
.nuova tbody tr { border-bottom:1px solid var(--ghiaccio); }
.nuova tbody tr:first-child .pos { background:var(--giallo); }
td.club { font-weight:600; }
td.club img { width:24px; height:24px; margin-right:8px; object-fit:contain; }
td.pts { font-family:'Barlow Condensed'; font-weight:800; font-size:19px; text-align:right; }
.rigo { display:flex; align-items:center; gap:12px; padding:10px 20px; border-bottom:1px solid var(--ghiaccio); }
.rigo img { width:28px; height:28px; object-fit:contain; }
.rigo .dx { margin-left:auto; font-family:'Barlow Condensed'; font-weight:800; font-size:22px; color:var(--blu); }
.rigo small { color:#7285a0; display:block; }
.fcond { font-family:'Barlow Condensed'; }
.card > h2 { font-family:'Barlow Condensed'; font-weight:800; font-size:26px; padding:16px 20px 12px; border-bottom:3px solid var(--giallo); display:flex; justify-content:space-between; align-items:baseline; }
.card > h2 a { font-size:15px; font-weight:700; color:var(--blu); }
a.card { display:block; }
.piede { background:var(--notte); color:rgba(255,255,255,.6); padding:22px 0; font-size:14px; margin-top:10px; }
.piede .wrap { display:flex; gap:18px; flex-wrap:wrap; }
.piede a:hover { color:var(--giallo); }
