/* Contenitore principale del form */
form {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Etichette */
form label {
    font-weight: bold;
    display: block;
    margin-top: 12px;
}

/* Input e select generici */
form input[type="text"],
form input[type="date"],
form input[type="number"],
form select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

form input[type="text"]:focus,
form input[type="date"]:focus,
form input[type="number"]:focus,
form select:focus {
    border-color: #66afe9;
    outline: none;
}

/* Select multiplo giocatori */
#select_giocatori_soci {
    min-height: 120px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 4px;
    background-color: #fff;
}

/* Ricerca giocatori live */
#risultati_ricerca {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 5px;
    border-radius: 4px;
    background: #fff;
}
#risultati_ricerca div {
    padding: 5px 8px;
    cursor: pointer;
    transition: background 0.2s;
}
#risultati_ricerca div:hover {
    background-color: #e0e0e0;
}

/* Giocatori selezionati */
.giocatori-selezionati {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Link generazione partite */
.divverde {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 12px;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
    transition: background 0.2s;
}
.divverde:hover {
    background-color: #c3e6cb;
}

/* Radio button */
input[type="radio"] {
    margin-right: 6px;
}

/* Responsive semplice */
@media (max-width: 768px) {
    form input[type="text"],
    form input[type="date"],
    form input[type="number"],
    form select,
    #select_giocatori_soci {
        width: 100%;
    }
}


.btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  text-align: center;
  padding: 6px 0;
  font-size: 20px;
  line-height: 1.42857;
}






/* --- PROFILO GIOCATORE --- */
.profilo-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.profilo-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.profilo-foto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.foto-profilo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

.foto-profilo.placeholder {
  opacity: 0.6;
}

.btn-profilo {
  border-radius: 25px;
  padding: 6px 18px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .profilo-foto {
    margin-top: 20px;
  }
}





/* --- Sezione collapsabile tabellone eliminatorio --- */
.section-toggle {
  background: #0056b3;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.section-toggle:hover {
  background: #003f88;
}

.arrow {
  transition: transform 0.3s ease;
}
.arrow.rotate {
  transform: rotate(90deg);
}

.section-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}
.section-content.active {
  max-height: 2000px;
  opacity: 1;
  margin-top: 10px;
}





.jog-foto { width:32px; height:32px; border-radius:50%; object-fit:cover; margin-right:6px; }
.ro-fotos { width:20px; height:20px; border-radius:50%; object-fit:cover; margin-right:6px; }








#tabella_torneo {
  /* impostazione predefinita: nessuno scroll */
  overflow-x: visible;
  white-space: normal;
}

/* Applica lo scroll solo sotto una certa larghezza (es. 768px = tablet in gił) */
@media (max-width: 768px) {
  #tabella_torneo {
    overflow-x: auto;
    white-space: nowrap;
  }
}













