/* Stili pagine squadre torneo */

.page-header {
  padding: 32px 0 44px;
  text-align: center;
  color: white;
  border-bottom: 6px solid var(--giallo);
}
.page-header.cat-rosso  { background-color: var(--rosso); }
.page-header.cat-blu    { background-color: var(--blu); }
.page-header.cat-giallo { background-color: var(--giallo); color: #2e2b28; border-color: var(--rosso); }

.page-header h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 4px;
  margin: 10px 0 6px;
}
.page-header .subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
}
.back-btn {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.back-btn:hover { color: white; }
.cat-giallo .back-btn { color: rgba(0,0,0,0.5); }
.cat-giallo .back-btn:hover { color: #2e2b28; }

.teams-section {
  padding: 48px 0 64px;
}
.girone-block {
  margin-bottom: 40px;
}
.girone-label {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 30px;
  display: inline-block;
  color: white;
  margin-bottom: 16px;
}
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

details.team-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  overflow: hidden;
  border-top: 4px solid var(--giallo);
}
details.team-card summary {
  cursor: pointer;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  user-select: none;
}
details.team-card summary::-webkit-details-marker { display: none; }
.team-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #2e2b28;
  flex: 1;
}
.team-badge {
  font-size: 0.75rem;
  color: #aaa;
  white-space: nowrap;
}
.chevron {
  color: var(--rosso);
  font-size: 0.8rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}
details.team-card[open] .chevron { transform: rotate(180deg); }

.team-body {
  padding: 2px 18px 18px;
  border-top: 1px solid #f2ede8;
}
.player-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 10px;
}
.player-table th {
  text-align: left;
  padding: 5px 8px;
  background: #f9f4ec;
  color: var(--rosso);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.player-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f4f0ea;
  color: #3a3532;
  vertical-align: middle;
}
.player-table tr:last-child td { border-bottom: none; }
.nr-cell {
  font-weight: 700;
  color: var(--rosso);
  width: 30px;
  text-align: center;
}
.no-roster {
  color: #bbb;
  font-style: italic;
  font-size: 0.84rem;
  text-align: center;
  padding: 14px 0 6px;
}

@media (max-width: 640px) {
  .teams-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2.2rem; }
}
