/* ===== BASE ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #f4f6fa;
    color: #002855;
}

/* ===== HERO ===== */
.hero {
    height: 50vh;
    min-height: 300px;
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) blur(6px);
}

.hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.hero-text h2 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 1px;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== TITOLO PAGINA ===== */
.page-title {
    text-align: center;
    padding: 40px 20px;
}

.page-title h2 {
    font-size: 2.5rem;
    color: #004aad;
}

/* ===== CONTENUTO ===== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.bottom-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.box {
    flex: 1;
    min-width: 360px;
    max-width: 900px;
    border: 2px solid #8ec5ff;
    border-radius: 12px;
    background: white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.box h2 {
    text-align: center;
    color: #004aad;
    font-weight: bold;
    margin-bottom: 15px;
}

.info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
}

.match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
}

.team img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.score {
    font-size: 1.2em;
    font-weight: bold;
    color: #004aad;
}

/* ===== CLASSIFICA ===== */
#classifica-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

#classifica-table th,
#classifica-table td {
    border: 1px solid #d3e3ff;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

#classifica-table th {
    background-color: #004aad;
    color: white;
}

#classifica-table td img {
    height: 25px;
    width: 25px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

/* LOGO CLASSIFICA - TUTTI ALLINEATI ALL’INIZIO DELLA CELLA */
.team-logo {
    height: 25px;
    width: 25px;
    object-fit: contain;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.team-name {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* forza il logo all’inizio della cella */
    gap: 6px;
}

/* HIGHLIGHT STELLA ALPINA */
.highlight {
    background-color: #ffe599;
    font-weight: bold;
}
