/* RESET BASE */
body {
  margin:0;
  font-family:'Montserrat', sans-serif;
  color:#333;
}
h1,h2,h3 {
  font-family:'Bebas Neue', sans-serif;
  text-transform:uppercase;
  letter-spacing:1px;
  margin:0 0 10px;
}

/* HERO */
.hero, .team-hero-group {
  color:#fff;
  text-align:center;
  padding:80px 20px;
}
.hero h1, .team-hero-group h1 {
  font-size:3rem;
}
.hero p, .team-hero-group p {
  font-size:1.2rem;
}

/* SEZIONI */
.section {
  padding:60px 20px;
}
.section:nth-child(even) {
  background:#f9f9f9;
}
.container {
  max-width:1100px;
  margin:auto;
  text-align:center;
}

/* GRID SQUADRA */
.team-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
  margin-top:30px;
}
.player-card {
  background:#fff;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  text-align:center;
  padding:20px;
  transition: transform .3s, box-shadow .3s, border .3s;
}
.player-card img {
  width:100%;
  max-width:160px;
  border-radius:50%;
  margin-bottom:15px;
}
.player-card:hover {
  transform:translateY(-5px);
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  border:2px solid #ec1c24;
}
.player-card h3 { margin:10px 0 5px; font-size:1.2rem; }
.player-card p { margin:0; font-size:.9rem; color:#555; }

/* CARD GENERICHE (es. partite, sponsor, news) */
.cards {
  display:flex;
  gap:20px;
  justify-content:center;
  flex-wrap:wrap;
}
.card {
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  padding:20px;
  width:250px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  transition: transform .3s;
}
.card:hover {
  transform:translateY(-5px);
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}

/* BOTTONI */
.btn {
  display:inline-block;
  margin-top:15px;
  padding:10px 20px;
  background:#000;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  font-weight:600;
  transition: background .3s;
}
.btn:hover {
  background:#ec1c24;
}

/* HEADER + FOOTER */
.header-bst {
  background:#000;
  border-bottom:6px solid #ec1c24;
  font-family:'Montserrat',sans-serif;
}
.header-inner {
  max-width:1000px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
}
.header-logo {
  max-height:50px;
}
.header-nav {
  display:flex;
  gap:20px;
}
.header-nav a {
  color:#fff;
  text-decoration:none;
  font-weight:600;
  text-transform:uppercase;
  font-family:'Bebas Neue',sans-serif;
  font-size:1.1rem;
  letter-spacing:1px;
}
.header-nav a:hover { color:#ec1c24; }

/* FOOTER CON PATTERN SQUADRA */
.footer-bst {
  background: url('../img/pattern_squadra.png') center/cover no-repeat !important;
  position: relative;
  color:#fff;
  margin-top:40px;
  border-top:6px solid #ec1c24;
  padding:30px 0;
  font-family:'Montserrat',sans-serif;
  text-align:center;
}
.footer-inner {
  position: relative;
  z-index: 1;
}
.footer-inner a {
  color:#fff;
  text-decoration:none;
  font-weight:600;
}
.footer-inner a:hover {
  color:#ec1c24;
}
.footer-logo {
  max-width:120px;
  margin-bottom:15px;
  position: relative;
  z-index:1;
}
.copyright {
  margin-top:15px;
  font-size:0.85rem;
  color:#ccc;
  position: relative;
  z-index:1;
}

/* RESPONSIVE */
@media (max-width:768px){
  .header-inner { flex-direction:column; }
  .header-nav {
    display:none;
    flex-direction:column;
    gap:10px;
    margin-top:15px;
    background:#111;
    padding:15px;
    border-radius:6px;
  }
  .header-nav.active { display:flex; }
  .footer-logo { max-width:160px; }
}
@media (max-width:480px){
  .footer-logo { max-width:200px; }
}

/* === PATTERN E HERO === */

/* Squadra */
.team-hero-group {
  background: url('../img/pattern_squadra.png') center/cover no-repeat;
  color: #fff;
  padding: 60px 20px;
  position: relative;
}
.team-hero-group h1, .team-hero-group p {
  position:relative;
  z-index:1;
}

/* Roster e staff */
.section.roster, .section.staff {
  background: url('../img/pattern_squadra.png') center/cover no-repeat fixed;
  color:#fff;
}
.section.roster .player-card,
.section.staff .player-card {
  background: rgba(255,255,255,0.9);
  color:#000;
}

/* Index */
body.index-page .hero {
  background: url('../img/pattern_squadra.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
}
body.index-page .hero h1,
body.index-page .hero p {
  position: relative;
  z-index: 1;
}

/* Contatti */
body.contatti-page .hero {
  background: url('../img/pattern_squadra.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
}
body.contatti-page .hero h1,
body.contatti-page .hero p {
  position: relative;
  z-index: 1;
}

/* === FORM CONTATTI === */
.form-bst {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-bst .form-group {
  margin-bottom: 20px;
}
.form-bst label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-bst input,
.form-bst textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: border .3s, box-shadow .3s;
}
.form-bst input:focus,
.form-bst textarea:focus {
  border: 2px solid #ec1c24;
  outline: none;
  box-shadow: 0 0 5px rgba(236,28,36,0.5);
}
.form-bst button.btn {
  background: #ec1c24;
  border: none;
  cursor: pointer;
}
.form-bst button.btn:hover {
  background: #000;
}

/* === PROSSIMA PARTITA - TABELLONE === */
.match-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 500px;
  margin: auto;
}
.match-vs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.match-vs .team {
  flex: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; /* ellissi se troppo lungo */
}
.match-vs .team.home span {
  color: #ec1c24; /* rosso BST */
}
.match-vs .team.away span {
  color: #000; /* avversari */
}
.match-vs .vs {
  flex: 0 0 50px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
}
.countdown {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.expired {
  color: #ec1c24;
  font-weight: bold;
}

/* RESPONSIVE TABELLONE PROSSIMA PARTITA */
@media (max-width: 600px) {
  .match-card {
    max-width: 95%;
    padding: 15px;
  }
  .match-vs {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .match-vs .team {
    font-size: 1.2rem;
    width: 100%;
  }
  .match-vs .vs {
    font-size: 1.5rem;
    color: #ec1c24;
    margin: 5px 0;
  }
}
