/**
 * Stili per mod_calcio_partita
 */

.mod-calcio-partita {
    margin: 20px 0;
}

.partita-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: visible;
    position: relative;
}

/* Header */
.partita-header {
    padding: 14px;
    text-align: center;
}

.giornata-title {
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 6px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stadio-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.partita-datetime {
    font-size: 13px;
    font-weight: 500;
}

/* Match Display */
.match-display {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 16px;
    gap: 10px;
}

.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.team-logo {
    object-fit: contain;
    display: block;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    word-wrap: break-word;
    max-width: 100%;
}

/* Marcatori Inline sotto la squadra */
.marcatori-inline {
    width: 100%;
    margin-top: 8px;
}

.marcatore-item-inline {
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    border-left: 3px solid;
    border-left-color: inherit;
    background: rgba(0, 0, 0, 0.03);
    margin-bottom: 4px;
    border-radius: 4px;
}

.marcatore-item-inline:last-child {
    margin-bottom: 0;
}

.score-display {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    min-width: 80px;
    margin-top: 20px;
}

.score-display .vs {
    opacity: 0.6;
}

/* Marcatori */
.marcatori-section {
    padding: 10px 16px 14px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.marcatore-item {
    padding: 4px 0;
    border-left: 3px solid;
    border-left-color: inherit;
    padding-left: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.marcatore-item:not(:last-child) {
    margin-bottom: 2px;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .match-display {
        padding: 25px 15px;
        gap: 10px;
    }
    
    .team-logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .score-display {
        font-size: 28px;
        padding: 12px 24px;
        min-width: 100px;
    }
    
    .stadio-name {
        font-size: 14px;
    }
    
    .partita-datetime {
        font-size: 13px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .partita-header {
        padding: 15px;
    }
    
    .giornata-title {
        font-size: 16px;
    }
    
    /* MANTENGO LAYOUT ORIZZONTALE */
    .match-display {
        padding: 20px 10px;
        gap: 10px;
    }
    
    .team {
        min-width: 80px;
    }
    
    .team-logo {
        width: 50px !important;
        height: 50px !important;
    }
    
    .team-name {
        font-size: 12px;
    }
    
    .score-display {
        font-size: 20px;
        padding: 8px 15px;
        min-width: 70px;
    }
    
    .marcatori-section {
        padding: 12px 15px 15px 15px;
    }
    
    .marcatore-item {
        font-size: 12px;
    }
}

/* RESPONSIVE MIGLIORATO - Ridimensionamento proporzionale */
@media (max-width: 1200px) {
    .partita-card {
        font-size: 0.95em;
    }
    
    .team-logo {
        max-width: 75px !important;
        max-height: 75px !important;
    }
    
    .giornata-title {
        font-size: 17px;
    }
}

@media (max-width: 992px) {
    .partita-card {
        font-size: 0.9em;
    }
    
    .partita-header {
        padding: 18px;
    }
    
    .team-logo {
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .giornata-title {
        font-size: 16px;
    }
    
    .stadio-name {
        font-size: 15px;
    }
    
    .match-display {
        padding: 25px 15px;
        gap: 12px;
    }
    
    .score-display {
        font-size: 32px;
        padding: 12px 18px;
    }
}

@media (max-width: 768px) {
    .partita-card {
        font-size: 0.85em;
    }
    
    .partita-header {
        padding: 15px;
    }
    
    .team-logo {
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .giornata-title {
        font-size: 15px;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    
    .stadio-name {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .partita-datetime {
        font-size: 13px;
    }
    
    .match-display {
        padding: 20px 12px;
        gap: 10px;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .score-display {
        font-size: 28px;
        padding: 10px 15px;
        min-width: 80px;
    }
    
    .marcatori-section {
        padding: 15px;
    }
    
    .marcatore-item {
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (max-width: 400px) {
    .partita-card {
        font-size: 0.75em;
    }
    
    .team-logo {
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .giornata-title {
        font-size: 13px;
    }
    
    .team-name {
        font-size: 11px;
    }
    
    .team {
        min-width: 70px;
    }
    
    .score-display {
        font-size: 18px;
        padding: 6px 12px;
        min-width: 60px;
    }
    
    .marcatore-item {
        font-size: 11px;
    }
}

/* Aggiungo overflow per scroll orizzontale se necessario */
@media (max-width: 576px) {
    .match-display {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}
