/* ==========================================================================
   COPPA_OFI
   Palette: turchese (colori sociali OFI) + corallo per l'esito qualificazione
   ========================================================================== */

@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');

.ofi-container {
    --ofi-teal: #0d9488;
    --ofi-teal-dark: #0b6d64;
    --ofi-coral: #e8590c;
    --ofi-coral-dark: #c24a08;
    --ofi-cream: #f4faf9;
    --ofi-ink: #16211f;
    --ofi-muted: #66756f;
    --ofi-white: #ffffff;
    --ofi-line: #dcece8;

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

.ofi-error {
    background: #fdecea;
    color: #8c1d17;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid #f3c6c2;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

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

/* ---------------------------------------------------------------------- */
/* Titolo generale                                                         */
/* ---------------------------------------------------------------------- */

.ofi-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.ofi-trophy {
    font-size: 24px;
}

.ofi-title h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.01em;
    color: var(--ofi-teal-dark);
}

/* ---------------------------------------------------------------------- */
/* Sezione                                                                 */
/* ---------------------------------------------------------------------- */

.ofi-section {
    margin-bottom: 40px;
}

.ofi-section-title {
    margin: 0 0 12px 4px;
}

.ofi-section-title h3 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--ofi-teal-dark);
}

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

/* ---------------------------------------------------------------------- */
/* Tabella                                                                 */
/* ---------------------------------------------------------------------- */

.ofi-table-wrapper {
    background: var(--ofi-white);
    border-radius: 16px;
    border: 1px solid var(--ofi-line);
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.08);
    margin-bottom: 14px;
}

.ofi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 540px;
}

.ofi-table thead th {
    background: var(--ofi-teal);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 13px 14px;
    text-align: center;
    white-space: nowrap;
}

.ofi-table thead th.ofi-col-team {
    text-align: left;
}

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

.ofi-table td.ofi-col-team {
    text-align: left;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ofi-teal-dark);
}

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

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

/* ---------------------------------------------------------------------- */
/* Squadra qualificata                                                     */
/* ---------------------------------------------------------------------- */

.ofi-qualified {
    background: linear-gradient(135deg, var(--ofi-coral) 0%, var(--ofi-coral-dark) 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 18px rgba(232, 89, 12, 0.28);
}

.ofi-qualified-name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 800;
    font-size: 15.5px;
    letter-spacing: 0.01em;
}

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

@media (max-width: 620px) {
    .ofi-title h2 {
        font-size: 22px;
    }
}
