/* Stile minimo e funzionale. La grafica definitiva va nel child theme. */
.acl-table-wrap { overflow-x: auto; }
.acl-classifica { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.acl-classifica th, .acl-classifica td { padding: 0.6em 0.5em; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, 0.1); white-space: nowrap; }
.acl-classifica .acl-col-team { text-align: left; white-space: normal; }
.acl-classifica .acl-col-points, .acl-classifica .acl-own { font-weight: 700; }
.acl-team { display: inline-flex; align-items: center; gap: 0.6em; }
.acl-team__logo { width: 32px; height: 32px; object-fit: contain; flex: none; }
.acl-calendario__month { margin: 1.5em 0 0.5em; text-transform: uppercase; }
.acl-match { padding: 0.9em 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.acl-match__meta { display: flex; flex-wrap: wrap; gap: 0.25em 1em; font-size: 0.85em; opacity: 0.75; }
.acl-match__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em; margin-top: 0.4em; }
.acl-match__teams .acl-team:last-child { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.acl-match__score, .acl-match__time { font-weight: 700; font-size: 1.25em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acl-partite { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1em; }
.acl-partite .acl-match { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 1em; }

/* --- v0.2: data estesa/breve, giorno al centro, "Salva la data" --- */
.acl-match__meta time { text-transform: capitalize; }
.acl-when--short { display: none; }
.acl-partite .acl-when--long { display: none; }
.acl-partite .acl-when--short { display: inline; }
.acl-match__date, .acl-match__hour { white-space: nowrap; }
/* Stessa larghezza per risultato e data/ora, così i nomi restano allineati tra le righe */
div.acl-calendario .acl-match__score, div.acl-calendario .acl-match__time { min-width: 200px; }
/* Striscia: giorno sopra, ora sotto */
.acl-partite .acl-match__date, .acl-partite .acl-match__hour { display: block; }
.acl-partite .acl-match__hour { margin-top: 0.1em; font-size: 0.8em; }
.acl-match__actions { display: flex; justify-content: flex-end; }
.acl-partite .acl-match__actions { justify-content: flex-start; margin-top: 20px; }
.acl-save-date { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: 0.04em; color: #222222; text-decoration: none; }
.acl-save-date:hover, .acl-save-date:focus-visible { color: #C8102E; text-decoration: none; }
.acl-save-date__icon { flex: none; }
@media (max-width: 767px) {
	.acl-when--long { display: none; }
	.acl-when--short { display: inline; }
	div.acl-calendario .acl-match__score, div.acl-calendario .acl-match__time { min-width: 96px; }
	.acl-calendario .acl-match__date, .acl-calendario .acl-match__hour { display: block; }
	.acl-calendario .acl-match__hour { margin-top: 0.1em; font-size: 0.8em; }
	.acl-calendario .acl-match__actions { justify-content: center; }
}

/* --- v0.2.1: nel calendario l'ora delle partite da giocare è solo al centro --- */
.acl-calendario .acl-match--future .acl-when__hour { display: none; }

/* --- v0.3: statistiche del giocatore --- */
.acl-stats { margin: 56px 0 0; text-align: center; }
.acl-stats__title { margin-bottom: 24px; }
.acl-stats__big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.acl-stats__item { display: flex; flex-direction: column; gap: 6px; }
.acl-stats__value { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 64px; line-height: 1; color: var(--global-palette1, #BD1818); font-variant-numeric: tabular-nums; }
.acl-stats__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #6A6A6A; }
.acl-stats__subtitle { margin: 48px 0 16px; }
.acl-stats__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acl-stats__table { width: 100%; min-width: 760px; border-collapse: collapse; border: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.acl-stats__table th, .acl-stats__table td { padding: 12px 8px; border: 0; text-align: center; white-space: nowrap; background: transparent; }
.acl-stats__table thead th { font-size: 12px; font-weight: 500; color: #111111; border-bottom: 1px solid #BDBDBD; }
.acl-stats__table abbr { text-decoration: none; cursor: help; }
.acl-stats__table tbody tr:nth-child(odd) { background: #F5F5F5; }
.acl-stats__table .acl-col-team, .acl-stats__table tfoot th { text-align: left; }
.acl-stats__table .acl-col-points { font-weight: 700; color: #111111; }
.acl-stats__table tfoot th, .acl-stats__table tfoot td { font-weight: 700; color: #111111; border-top: 1px solid #BDBDBD; }
.acl-stats__table tfoot tr + tr th, .acl-stats__table tfoot tr + tr td { border-top: 0; font-weight: 500; }
.acl-stats__outcome { display: inline-block; min-width: 1.2em; font-weight: 700; }
.acl-stats__outcome--v { color: #1E7B34; }
.acl-stats__outcome--p { color: var(--global-palette1, #BD1818); }
@media (max-width: 600px) {
	.acl-stats__big { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
	.acl-stats__value { font-size: 52px; }
	.acl-stats__table { font-size: 13px; }
}

/* Mini classifica (Home) */
.acl-mini { max-width: 1100px; margin: 64px auto; padding: 0 16px; }
.acl-mini .acl-mini__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 3px solid #BD1818; padding-bottom: 12px; margin-bottom: 4px; }
.acl-mini .acl-mini__head h2 { margin: 0; }
.acl-mini .acl-mini__head a { color: #111111; font-weight: 600; text-decoration: none; white-space: nowrap; }
.acl-mini .acl-mini__head a:hover { color: #BD1818; }
.acl-mini .acl-mini__table { width: 100%; margin: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.acl-mini .acl-mini__table th, .acl-mini .acl-mini__table td { text-align: center; padding: 10px 8px; }
.acl-mini .acl-mini__table .acl-col-team { text-align: left; width: 100%; }
.acl-mini .acl-col-points { font-weight: 700; }
.acl-mini .acl-mini__table th { font-size: 12px; font-weight: 600; color: #8A8A8A; text-transform: uppercase; }
.acl-mini .acl-mini__table th abbr { text-decoration: none; border: 0; }
.acl-mini .acl-mini__table td { padding: 14px 8px; border-bottom: 1px solid #EDEDED; }
.acl-mini .acl-mini__pos { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 20px; color: #8A8A8A; width: 48px; }
.acl-mini .acl-col-points { font-family: "Barlow Condensed", sans-serif; font-size: 22px; }
.acl-mini .acl-own td { background: #FBF3F3; }
.acl-mini .acl-own .acl-mini__pos, .acl-mini .acl-own .acl-team__name { color: #BD1818; font-weight: 700; }
.acl-mini .acl-mini__gap td { padding: 2px; color: #8A8A8A; letter-spacing: .3em; border-bottom: 1px solid #EDEDED; }
@media (max-width: 767px) {
	.acl-mini { margin: 40px auto; }
	.acl-mini .acl-mini__table th, .acl-mini .acl-mini__table td { padding-left: 4px; padding-right: 4px; }
	.acl-mini .acl-mini__table td { font-size: 14px; }
}

/* --- v0.5: loghi delle squadre ---
 * Selettori con "body" davanti: devono vincere sulla vecchia regola
 * ".acl-team__logo { display: none; }" del CSS aggiuntivo e sugli stili del tema. */
body .acl-team .acl-team__logo { display: block; width: 32px; height: 32px; max-width: none; object-fit: contain; flex: none; margin: 0; }

/* Classifica (pagina) e mini classifica (Home): piccoli, accanto al nome */
body .acl-classifica .acl-team { gap: 10px; }
body .acl-classifica .acl-team .acl-team__logo { width: 28px; height: 28px; }
body .acl-mini .acl-team { gap: 10px; }
body .acl-mini .acl-team .acl-team__logo { width: 26px; height: 26px; }

/* Calendario, desktop: logo accanto al nome (casa a sinistra, ospite a destra) */
body div.acl-calendario .acl-team { gap: 12px; }
body div.acl-calendario .acl-team .acl-team__logo { width: 40px; height: 40px; }

/* Striscia partite (Home): logo sopra il nome, centrato. Così i nomi lunghi hanno tutta la larghezza */
body div.acl-partite .acl-match__teams { align-items: start; }
body div.acl-partite .acl-match__teams .acl-team,
body div.acl-partite .acl-match__teams .acl-team:last-child {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	gap: 8px; text-align: center;
}
body div.acl-partite .acl-team .acl-team__logo { width: 48px; height: 48px; }
body div.acl-partite .acl-match__score,
body div.acl-partite .acl-match__time { align-self: center; }

@media (max-width: 767px) {
	/* Calendario, mobile: logo sopra il nome, come nella striscia */
	body div.acl-calendario .acl-match__teams { align-items: start; }
	body div.acl-calendario .acl-match__teams .acl-team,
	body div.acl-calendario .acl-match__teams .acl-team:last-child {
		display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
		gap: 6px; text-align: center;
	}
	body div.acl-calendario .acl-team .acl-team__logo { width: 36px; height: 36px; }
	body div.acl-calendario .acl-match__score,
	body div.acl-calendario .acl-match__time { align-self: center; }
	body .acl-classifica .acl-team .acl-team__logo { width: 24px; height: 24px; }
	body .acl-classifica .acl-team, body .acl-mini .acl-team { gap: 8px; }
	body .acl-mini .acl-team .acl-team__logo { width: 22px; height: 22px; }
}
