.sfondone {
    background-color: #f0f4f8;
      font-family: 'Montserrat', sans-serif;

  }

.icona {
    width: 80px;
    float: inline-start;
    margin-left: 120px;
    margin-top: 10px;

  }

  .header {
    background: linear-gradient(90deg, rgba(30, 65, 176, 1) 10%, rgba(36, 98, 234, 1) 100%);
    font-family: 'Montserrat', sans-serif;
  }

  .rigatesta {
    height: 40px; 
    background: #f9fafb;
    color: #6b7280;
    border-bottom: 1px solid;
    border-color: #e5e7eb;
    border-collapse: collapse;
  }

  .center {
    width: 100%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Montserrat', sans-serif;
  }

  .gironecovo {
    margin: -10px 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    color: #374151;
    font-weight: bold;
    font-size: 20px;
    text-align: left;
    display: block;
  }

  .tabella-container {
    width: 65%;
    margin: 40px auto 0 auto;
    padding: 20px 0;
  }

  html, body{
    margin: 0;
    padding: 0;
  }
  table {
    border: 1px solid;
    border-color: #e5e7eb;
    background-color: white;
    border-radius: 5px;
    border-spacing: 0;
  }
  
.fit {
  table-layout: fixed;
  max-width: 70%; /* oppure max-content */
}


  th, td {
    border-bottom: 1px solid;
    max-width: 100%;
    border-right: none;
    border-left: none;
    border-color: #e5e7eb;
    border-collapse: collapse;
    padding: 5px;
    padding-left: 20px;
    white-space: nowrap;
  }
  
  td {
      max-width: 20%;
  }
  th {
    text-align: left;
  }
  table tr:last-child td {
border-bottom: none;
}

table tr:not(:first-child) td:nth-child(1),
table tr:not(:first-child) td:nth-child(2) {
  font-weight: bold;
}


/* Solo le celle dati (td) nella colonna PUNTI (ultima colonna) colorate e in grassetto */
table tr:not(:first-child) td:last-child {
  color: #2865eb;
  font-weight: bold;
}

ul {
  margin: 0;
  list-style-type: none;
  background: white;
  color: #4b5563;
  height: 40px;
  padding-top: 18px ;
  padding-left: 160px;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  gap: 20px;
  display: flex;
}

li {
  float: left;
}

li a {
  display: block;
  color: #4b5563;
  text-align: center;
  text-decoration: none;
}

/* Change the link color to #111 (black) on hover */
li a:hover {
  color: #6184f8;
  border-bottom: #6184f8 3px solid;
}

li a.active {
  color: #1e40af;
  font-weight: bolder;
  border-bottom: #1e40af 3px solid;
}

.griglia {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 10px;
}

.footer {
  display: grid;
  justify-content: space-between;
  grid-template-columns: 1fr 1fr 100px 1fr 1fr;
  height: auto;            
  padding: 0 10px;          /* padding orizzontale */
 background: #055CA8;
background: linear-gradient(90deg,rgba(5, 92, 168, 1) 0%, rgba(43, 43, 69, 1) 50%, rgba(5, 92, 168, 1) 100%);
  color: white;
  font-weight: bold;
  gap: 10px;
}

.footer p {
  margin: 0;
  line-height: 1.4;
  align-self: flex-start; /* centra verticalmente */
}

.blocco-unico {
  max-width: 800px;
  margin: 50px auto;
  border: 4px solid;
  border-image: linear-gradient(90deg,rgba(5, 92, 168, 1) 0%, rgba(43, 43, 69, 1) 50%, rgba(5, 92, 168, 1) 100%) 1;
  background-color: white;
  display: flex;
  flex-direction: column;
  border-radius: 3px;
  overflow: hidden;
}

.iconetta {
  display: block;
  justify-content: center;
  width: 28px;                /* assicurati che abbia una dimensione */
  height: 28px;
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  margin: 8px 4px 4px -7px;
}

.footer > :nth-child(1) {
  text-align: left;
  align-self: flex-start;
}

.footer > :nth-child(2) {
  text-align: center;
  align-self: flex-start;
  margin: 10px;
}

.footer > :nth-child(3) {
  text-align: center;
  align-self: flex-start;
  border-left: white 10px solid;
  border-right: white 10px solid;
  border-bottom: white 10px solid;
}

.footer > :nth-child(4) {
  text-align: center;
  align-self: flex-start;
  margin: 10px;
}

.footer > :nth-child(5) {
  text-align: right;
  align-self: flex-start;
}

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-column: 2/2;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin: 0;
  max-width: 100%;
}

.squadra_casa {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: flex-end;
  text-transform: uppercase;
  font-weight: bold;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 0;
}

.squadra_trasferta {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
  text-transform: uppercase;
  font-weight: bold;
  gap: 10px;
  font-size: 20px;
  margin: 0;
}

.risultati {
  display: flex;
  margin: auto 50px;
  text-align: center;
  align-items: center;
  gap: 5px;
  font-size: 50px;
}

.squadra img {
  width: 70px;
  height: 70px;
  display: inline-block;
}

.data-partita {
  text-align: center;
  margin-bottom: -20px;
}

.instagram-icon {
  font-size: 32px;
  color: #E1306C; /* colore tipico di Instagram */
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.instagram-icon:hover {
  transform: scale(1.2);
  color: #C13584; /* colore in hover */
}

.sottohead {
  display: flex;
  justify-content: space-between;
  grid-template-columns: 1fr 1fr;
  background-color: white;
  border-bottom: #d6d9dc 1px solid;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);

}

.youtube-icon {
  font-size: 28px;
  color: #FF0000 !important;
  transition: transform 0.2s ease;
  margin-left: 10px; /* se accanto ad altre icone */
  margin-right: 20px;
}

.youtube-icon:hover {
  transform: scale(1.2);
  color: #cc0000;
}

.sponsor {
  
  display: block;
  max-width: 50%;
  width: 100%;
  height: auto;
  margin: 3% auto 0 auto;

}

@media (max-width: 600px) {
  .sponsor {
    max-width: 80%;
  }
}

.f-sponsor {
    justify-content: flex-end;
    margin: auto;
    text-align: center;
    background: #e20413;
}

.centragrid {
    margin: auto 0 auto 0 ;
}

.vh {
    min-height: 86vh;
}

.testolink {
    text-align: center;
    margin: 5px auto;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 650px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.chiudi {
  float: right;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.risultato-popup{
    margin: auto;
}

.griglia-popup {
    display: grid;
    grid-template-columns: auto;
    text-align: center;
}

.marcatori-popup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
}

.pulsante-gol {
    cursor:pointer; 
    color:green; 
    font-weight:bold;
    border: none;
    background: green;
    border-radius: 10px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    
}

.pulsante-gol:hover {
    
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.barra {
    font-size: 80px; 
    color: lightgrey;
}


.iconagirone {
    height: 60px;
    width: auto;;
}

.nomesquadragirone {
    margin: 0;
    font-size: 20px;
}

.squadra-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 25px; 
  max-width: 100%;
}

.iconacalendario {
    width: auto;
  max-height: 100px;
  max-width: 100%;
}

.grigliasquadre {
    display: grid;
    grid-template-columns: repeat(3, auto);
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 20px auto;
    gap: 20px;
    background: #1d2024;
    max-width: 100%;
}

@media (max-width: 500px) {
  .grigliasquadre {
    grid-template-columns: repeat(2, auto);
    margin: 0 auto;
    max-width: 100%;
    padding: 0 15px;
    column-gap: 15px;
  }
}

@media (max-width: 600px) {
  .nome {
    padding-left: 10px;
    font-size: 18px;
  }
}

.sottosquadre {
    display: block;
}

.immaginecentra {
    display: flex;
    justify-content: center;
    margin: 0 -10px;
}

.iconasquadre {
    width: 80px;
    max-width: 100px;
    height: auto;
    max-height: 100px;
}

.grigliasquadre2 {
    display: grid;
    grid-template-columns: 1fr 3fr;
    border-radius: 4px;
    align-items: center;
    max-width:100%;
    margin: 10px;
    gap: 6px;
}


.numero {
    color: white;
    display: flex;
    justify-content: center; /* centra orizzontalmente */
    align-items: center;     /* centra verticalmente */
    font-weight: bold;
}

.nome {
    color: white;
    display: flex;
    text-align: start;
    align-items: center;     /* centra verticalmente */
    height: 100%; 
}

.potenza {
    font-size: 0.7em;
    vertical-align: super;
}

.centragriglia {
    display: flex;
    align-items: center;
}

.sfondogrigio {
    display: flex;
    flex-wrap: wrap;
    background: #24282b;
    justify-content: center;
    border-radius: 4px;
    margin: auto;
    padding: 20px;
    white-space: nowrap;
    min-width: 90%;
}


.color-white {
    color:white;
}

.font15 {
    font-size: 15px;
}

.text-right {
    text-align: end;
}

.text-left {
    text-align: start;
}

#Assistman tr:nth-child(2) {
  background-color: black;
  color: white;
}

#Assistman table tr:nth-child(2) td:last-child {
  background-color: black;
  color: #FFD700; /* giallo oro */
}



#Cartellini tr:nth-child(2) {
  background-color: black;
  color: white;
}

#Cartellini table tr:nth-child(2) td:nth-child(4){
  color: #FFD700; /* giallo oro */
}

#Cartellini table tr:nth-child(2) td:last-child {
    color: #FF4444;
}

/* Righe del primo posto */
.posizione-1 {
  background-color: black;
  color: white;
}

/* Gol (colonna 4) in oro per le righe del primo posto */
.posizione-1 td:last-child {
  color: #FFD700 !important; 
  font-weight: bold;
}











