/* XC-Campionati.css */

h1 {
    font-size: 2rem;
    color: #6D0D1B;
    /* margin-top: 15px; */
    margin-bottom: 35px;
    text-align: center;
    }
h2 {
    font-size: 1.5rem;
    color: #6D0D1B;
    margin-top: 50px;
    margin-bottom: 10px;
    text-align: center;
}
@media (max-width: 768px) {
    h1 {
        font-size: 1.7rem;
        color: #6D0D1B;
        /* margin-top: 15px; */
        margin-bottom: 25px;
        text-align: center;
    }
    h2 {
        font-size: 1.5rem;
        color: #6D0D1B;
        /* margin-bottom: 5px; */
        text-align: center;
        margin-top: 60px;
        margin-bottom: 25px;
    }
}

/************************************ prossimo incontro */
.prossimoincontro {
    display: grid;
    font-family: 'Oswald', sans-serif;
    grid-template-columns: 20% 80%;
    grid-template-rows: auto auto;
    /* gap: 10px; */
    max-width: none;
    /* width: 85%;
    margin: auto; */
    background: whitesmoke;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 35px;
}
.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 500;
}
.rowspan {
    grid-row: 1 / span 2;
    font-size: 1.8rem;
    background-color: #6D0D1B;
    color: white;
}
.teams {
    display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex-wrap: nowrap;
}
.teams img {
        width: 50px;
        height: 50px;
        object-fit: contain;
}
.team-name {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #6D0D1B;
}
.spacer {
    width: 100px; /* o quanto spazio vuoi */
}

@media (max-width: 768px) {
    .prossimoincontroMobile {
        background-color: whitesmoke;
        font-family: 'Oswald', sans-serif;
        color: #6D0D1B;
        border-radius: 12px;
        padding: 20px;
        max-width: 400px;
        margin: auto;
        text-align: center;
        margin: 20px auto; /* aggiunto spazio sopra e sotto */
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .prossimoincontroMobile .riga {
        margin-bottom: 12px;
        font-size: 1.5rem;
    }
    .riga.final {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 15px;
        flex-wrap: nowrap;
    }
    .riga.final img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
    .nome-squadra {
        font-size: 1.5rem;
        font-weight: 600;
    }
    .separator {
        font-size: 1.4rem;
        font-weight: bold;
    }
}
/***************************** fine prossimo incontro */

/******************************************* inizio partite */
.partite {
      /* width: 85%;
      margin: auto; */
      font-family: 'Oswald', sans-serif;
    }

    .partita {
      display: grid;
      grid-template-columns: 40% 40% 20%;
      align-items: center;
      padding: 12px 16px;
      background-color: whitesmoke;
      color: #6D0D1B;
      margin-bottom: 10px;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      font-size: 1.5rem;
    }

    .team {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .team img {
      width: 50px;
      height: 50px;
      object-fit: contain;
    }

    .squadrepartite {
      font-size: 1.7rem;
      
    }

    .info {
      text-align: center;
      font-size: 1.5rem;
      font-weight: 600;
    }

    /* Responsive per mobile */
    @media (max-width: 748px) {
        .mobilepartita {
            display: grid;
            font-family: 'Oswald', sans-serif;
            grid-template-columns: 80% 20%;
            grid-template-rows: auto auto;
            gap: 10px;
            background-color: whitesmoke;
            color: #6D0D1B;
            /* padding: 16px; */
            padding: 10px;
            margin-bottom: 16px;
            border-radius: 10px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        .mobileteampartite {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .mobileteampartite img {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }
        .mobileteamnamepartite {
            font-size: 1.5rem;
            font-weight: 500;
        }
        .mobileinfopartite {
            text-align: center;
            font-size: 1.5rem;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
/********************************************* fine partite */

/**************************************** inizio classifica */
.classifica-container {
    font-family: 'Oswald', sans-serif;
    overflow-x: auto;
    margin-bottom: 25px;
}
table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: whitesmoke;
    color: #6D0D1B;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
thead {
    background-color: #6D0D1B;
    color: white;
}
th, td {
    padding: 10px 12px;
    text-align: center;
    font-size: 1.4rem;
}
td strong{
    font-weight: bold;
}
th:first-child {
    text-align: left;
    padding-left: 20px; /* opzionale: un po’ di spazio in più */
}
td.team {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    
}
td.team strong{
    font-weight: bold;
}
td.team img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
tbody tr:nth-child(even) {
    background-color: #FFFEEF;
}
/* Evidenziazioni */
/* tbody tr:first-child {
    background-color: #ffe680;
}
tbody tr:nth-child(2),
tbody tr:nth-child(3),
tbody tr:nth-child(4) {
    background-color: #d4f4dd;
}
tbody tr:nth-child(9),
tbody tr:nth-child(10),
tbody tr:nth-child(11) {
    background-color: #ffe5b4;
}
tbody tr:nth-child(12) {
    background-color: #ffcccc;
} */
.classifica-legend {
    width: 80%;
    margin: 0 auto;
    /* margin-left: 242px; */
    margin-top: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 1.2rem;
    font-family: 'Oswald', sans-serif;
}   
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.legend-box {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    display: inline-block;
}
/* Colori leggenda */
.legend-box.gold {
    background-color: #ffe680;
}
.legend-box.green {
    background-color: #d4f4dd;
}
.legend-box.orange {
    background-color: #ffe5b4;
}
.legend-box.red {
    background-color: #ffcccc;
}
/* Responsive per mobile */
@media (max-width: 748px) {
    .classifica-container{
        width: 45%;
    }
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* scorrimento fluido su iOS */
        width: 100%;
        }
    table {
        width: 95%;
        margin: 0 auto;
        /* min-width: 900px;  */
        border-collapse: collapse;
    }
    th, td {
        font-size: 1rem;
    }
    td.team img {
        display: none;
    }
}
/************************************************** fine classifica */

/***************************************** inizio elenco giocatori */
/* .player-list-section {
    display: block;
  width: 85%;
  margin: 0 auto;
  margin-bottom: 50px;
  font-family: 'Oswald', sans-serif;
} */
.player-list-section {
    width: 85%;
    margin: 0 auto;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 25px;
    max-width: 1100px;
    /* margin-left: 215px; */
}

.player-list-section h2 {
  text-align: center;
  color: #6D0D1B;
  margin-bottom: 30px;
  font-size: 28px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.player-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
  transform: scale(1.03);
  box-shadow: 3px 3px 12px rgba(0,0,0,0.15);
}

.player-name {
  font-size: 22px;
  font-weight: bold;
  color: #6D0D1B;
}

.player-year {
  font-size: 20px;
  color: #555;
  margin-top: 5px;
}
@media (max-width: 748px){
    .player-list-section {
        width: 95%;
        /* max-width: 1000px; */
        margin: 0 auto;
        margin-bottom: 50px;
        font-family: 'Oswald', sans-serif;
    }
    .player-name {
        font-size: 28px;
        /* font-weight: bold;
        color: #6D0D1B; */
    }
    .player-year {
        font-size: 24px;
        /* color: #555;
        margin-top: 5px; */

    }
}


/******************************************* fine elenco giocatori */
