/* ============================================
   CAMPIONATO TERZO TEMPO - LAYOUT PRO
   Per tema Astra + child theme personalizzato
   ============================================ */

/* Blocchi full width */
.page .entry-content .wp-block-html {
  max-width: 100vw !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
}

/* Stile globale */
body {
  background: #f5fff8;
  font-family: "Inter", system-ui, sans-serif;
  color: #123421;
}

/* Sezioni */
section {
  margin: 20px auto;
  max-width: 1200px;
  padding: 12px;
}

/* Card principali */
.section-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e0f0e5;
}

/* Titoli sezioni */
.section-title h2 {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #1b5e20;
}
.section-title small {
  color: #6f8f75;
}

/* Pulsanti */
.btn {
  background: #2e7d32;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}
.btn:hover {
  background: #1b5e20;
  transform: translateY(-1px);
}
.btn.secondary {
  background: white;
  border: 2px solid #2e7d32;
  color: #2e7d32;
}

/* Tabelle moderne */
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
.table th {
  background: #e8f5e9;
  color: #1b5e20;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 8px;
}
.table td {
  padding: 10px;
}
.table tr:nth-child(even) {
  background: #f8fffa;
}

/* Card squadre */
.team-card {
  background: linear-gradient(135deg,#eefbf0,#e4f7e7);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #cfe8d3;
}
.team-card-header h3 {
  font-size: 1.1rem;
  color: #1b5e20;
}

/* Lista giocatori */
.player-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
}
.player-list li {
  border-bottom: 1px dashed #d8e8dd;
  padding: 6px 0;
}

/* Risultati - Righe partite */
.match-row {
  background: #f8fffa;
  border: 1px solid #dcefe2;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Giornate */
.giornata-block {
  background: #eefbf0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #d4ebd8;
}

/* Editor risultati */
#match-editor {
  background: #fffde7;
  border: 2px solid #ffe082;
  padding: 14px;
  margin-top: 12px;
  border-radius: 16px;
}

/* Mobile */
@media (max-width: 768px) {
  .section-card {
    padding: 14px;
  }
  .match-row {
    flex-direction: column;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Miglioramenti generali */
input, select {
  border: 1px solid #b3d2bc;
  border-radius: 8px;
  padding: 6px;
  width: 100%;
}

.player-goals {
  color: #2e7d32;
  font-weight: bold;
}

.match-meta {
  text-align: right;
  font-size: 0.85rem;
  color: #558b69;
}
/* MOBILE: allarga il blocco HTML del campionato a tutta larghezza */
@media (max-width: 768px) {

  /* il blocco HTML del campionato dentro Astra */
  .page .entry-content .wp-block-html {
    max-width: 100vw !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* contenitore principale Astra */
  .ast-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}