/* ==========================================================================
   MAZZONE - Coppa Mazzone
   Palette: arancio + blu navy, su crema
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

.mazzone-container {
    --mz-navy: #1e3a5f;
    --mz-navy-dark: #142943;
    --mz-orange: #e8590c;
    --mz-orange-dark: #c24a08;
    --mz-cream: #fbf3e8;
    --mz-ink: #22201c;
    --mz-muted: #6f6a63;
    --mz-white: #fffdf9;
    --mz-line: #ece2d3;

    max-width: 1100px;
    margin: 28px auto;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--mz-ink);
}

.mazzone-error {
    background: #fdecea;
    color: #8c1d17;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid #f3c6c2;
    font-weight: 600;
    text-align: center;
    max-width: 1100px;
    margin: 28px auto;
}

.mazzone-empty {
    background: var(--mz-cream);
    border: 2px dashed var(--mz-line);
    border-radius: 14px;
    padding: 28px 20px;
    color: var(--mz-muted);
    font-style: italic;
    text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Divisore centrale "Calendario"                                          */
/* ---------------------------------------------------------------------- */

.mazzone-stage-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 30px;
    text-align: center;
}

.mazzone-stage-divider::before,
.mazzone-stage-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--mz-line);
}

.mazzone-stage-divider span {
    flex-shrink: 0;
    margin: 0 18px;
    padding: 10px 30px;
    border-radius: 999px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 800;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--mz-orange) 0%, var(--mz-orange-dark) 100%);
    box-shadow: 0 8px 20px rgba(232, 89, 12, 0.3);
}

/* ---------------------------------------------------------------------- */
/* Titoli sezione                                                          */
/* ---------------------------------------------------------------------- */

.mazzone-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.mazzone-section-title-standings {
    margin-top: 34px;
}

.mazzone-section-title h3 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--mz-navy);
}

.mazzone-section-title h3::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: var(--mz-orange);
}

/* ---------------------------------------------------------------------- */
/* Calendario / fixture list                                               */
/* ---------------------------------------------------------------------- */

.mazzone-fixtures {
    background: var(--mz-white);
    border-radius: 16px;
    border: 1px solid var(--mz-line);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.08);
}

.mazzone-fixture-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--mz-line);
}

.mazzone-fixture-row:last-child {
    border-bottom: none;
}

.mazzone-fixture-row:nth-child(even) {
    background: var(--mz-cream);
}

.mazzone-fixture-team {
    font-weight: 600;
    font-size: 14.5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mazzone-fixture-home {
    text-align: right;
    color: var(--mz-navy);
}

.mazzone-fixture-away {
    text-align: left;
    color: var(--mz-navy);
}

.mazzone-fixture-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 64px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--mz-navy);
    color: #ffd7b0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 15px;
}

.mazzone-fixture-sep {
    opacity: 0.7;
}

.mazzone-fixture-vs {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffd7b0;
}

.mazzone-fixture-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--mz-muted);
    white-space: nowrap;
    text-align: right;
    min-width: 78px;
}

/* ---------------------------------------------------------------------- */
/* Classifica                                                              */
/* ---------------------------------------------------------------------- */

.mazzone-table-wrapper {
    background: var(--mz-white);
    border-radius: 16px;
    border: 1px solid var(--mz-line);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.08);
    overflow-x: auto;
}

.mazzone-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 720px;
}

.mazzone-standings-table thead th {
    background: var(--mz-navy);
    color: #ffd7b0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px;
    text-align: center;
    white-space: nowrap;
}

.mazzone-standings-table th.mazzone-col-team,
.mazzone-standings-table td.mazzone-col-team {
    text-align: left;
}

.mazzone-standings-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--mz-line);
    color: var(--mz-ink);
}

.mazzone-standings-table tbody tr:last-child td {
    border-bottom: none;
}

.mazzone-standings-table tbody tr:nth-child(even) {
    background: var(--mz-cream);
}

.mazzone-col-pos {
    width: 40px;
    font-weight: 700;
    color: var(--mz-navy);
}

.mazzone-col-team {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--mz-navy);
}

.mazzone-col-points {
    font-weight: 800;
    color: var(--mz-orange-dark);
    background: rgba(232, 89, 12, 0.1);
}

.mazzone-row-first td {
    background: rgba(232, 89, 12, 0.1);
}

.mazzone-row-first .mazzone-col-points {
    background: rgba(232, 89, 12, 0.22);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 620px) {
    .mazzone-fixture-row {
        grid-template-columns: 1fr auto 1fr;
        row-gap: 6px;
    }

    .mazzone-fixture-date {
        grid-column: 1 / -1;
        text-align: center;
        min-width: 0;
    }

    .mazzone-stage-divider span {
        font-size: 16px;
        padding: 9px 20px;
        margin: 0 10px;
    }
}
