/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #ccc;
  flex-wrap: wrap;
}

.navbar-left,
.navbar-center,
.navbar-right {
  display: flex;
  align-items: center;
}

/* Logo */
.logo {
  height: 45px;
  width: auto;
}

.logo-link {
  display: inline-block;
}

/* Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}


.nav-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #0066cc;
}

/* Login Icon */
.login-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  text-decoration: none;
  color: #000;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #000;
  margin: 4px 0;
}

/* Responsive */
@media (max-width: 992px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .navbar-left {
    flex: 0 0 auto;
  }

  .navbar-center {
    display: none;
  }

  .navbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 30px;
    height: 25px;
    z-index: 1001;
    transition: all 0.3s ease;
  }

  .hamburger span {
    height: 3px;
    width: 100%;
    background-color: #000;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Trasformazione in "X" */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Menu responsive con animazione */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
    position: relative; /* ERA ABSOLUTE */
    top: 70px;
    right: 0;
    width: 100%;

  
    /* Aggiunte per lo sfondo */
    background-image: url('images/sfondo-menu.png'); /* Cambia il percorso */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
   
    padding: 0 1rem;
    border-top: 1px solid #ccc;
    z-index: 0; /* era 999 */
    pointer-events: none;
  }


  /* Questo crea uno sfondo effettivo sotto tutto il contenuto del menu che si adatta automaticamente alla sua altezza. */
  .nav-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/sfondo-menu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
  }

  

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    padding: 1rem;
    max-height: none; /* Per adattare immagine sfondo menù */
  }


  .nav-menu li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    padding: 0.5rem 0;

    /* ✅ Nuovo codice */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* linea separatrice elegante */
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }


  /* Questo serve a evitare che i link <a> o i <li> coprano lo sfondo con un fondo bianco o grigio. */
  .nav-menu li,
  .nav-menu li a {
    background-color: transparent !important;
    position: relative;
    z-index: 1;
    color: white; /* cambia se il tuo sfondo è chiaro */
  }


  /* Stilizza i link (<a>) nel menu */
  .nav-menu li a {
    display: block;
    width: 100%;
    font-size: 1.2rem; /* puoi aumentare a 1.6rem per più impatto */
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 0.6rem 0; /* maggiore spaziatura verticale */
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: white; /* già presente, ma ribadiamolo */
  }
}


/* Desktop: centro menu, logo sinistra, login destra */
@media (min-width: 993px) {
  .navbar {
    justify-content: center;
    position: relative;
  }

  .navbar-left {
    position: absolute;
    left: 1rem;
  }

  .navbar-right {
    position: absolute;
    right: 1rem;
  }
}

/* Hero section */
.hero img {
  width: 100%;
  height: auto;
  display: block;
}


/* HERO */
.hero {
  width: 100%;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 320px;
  display: block;
}

/* NEWS */
.news {
  padding: 2rem 1rem;
  text-align: center;
}
.news h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.news-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.news-item {
  max-width: 300px;
}
.news-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}
.news-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.news-item .subtitle {
  font-size: 1rem;
  color: #555;
}
.news-item .footer-text {
  font-size: 0.9rem;
  color: #777;
}

.news-wrapper a.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-item {
  max-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-link:hover .news-item {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.news-item img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.news-link:hover .news-item img {
  transform: scale(1.05);
}


/* PARTITE */
.prossime-partite {
  padding: 2rem 1rem;
  text-align: center;
}
.partita {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.squadra-maschile,
.squadra-femminile, 
.squadra-u18femminile {
  flex: 1 1 300px;
  max-width: 450px;
}
.squadra-maschile img,
.squadra-femminile img, 
.squadra-u18femminile img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.data-partita {
  font-weight: bold;
  margin-top: 0.5rem;
}

/* CLASSIFICHE */
.classifiche {
  padding: 2rem 1rem;
}
.classifiche h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.classifica {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.classifica-maschile,
.classifica-femminile,
.classifica-under18f {
  overflow-x: auto;
}
.classifica h3 {
  text-align: center;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}
th {
  background-color: #f0f0f0;
}

/* ===== Sezione Sponsor in HOME (index) ===== */
/* (non tocca la pagina sponsor con .sponsor-card-section) */

.home-sponsor-section {
  margin: 0;
  padding: 3rem 1rem 3.5rem;
  text-align: center;
  color: #ffffff;
  /* sfondo in continuità con le altre sezioni e il footer rosso */
  background: radial-gradient(circle at 0% 0%, #b72025 0%, #5a0030 35%, #001a3a 100%);
}

.home-sponsor-section h2 {
  font-size: 2rem;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* GRIGLIA logo: 2 per riga su mobile, 5 per riga su desktop */
.home-sponsor-grid {
  display: grid;
  gap: 1.5rem 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 2.5rem auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* mobile: 2 colonne */
}

@media (min-width: 992px) {
  .home-sponsor-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* desktop: 5 colonne */
  }
}

/* Box del singolo logo: dimensione STANDARD */
.home-sponsor-logo {
  width: 170px;   /* larghezza fissa per tutti */
  height: 90px;   /* altezza fissa per tutti */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Immagine del logo */
.home-sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.35));
}

/* Hover: leggero ingrandimento come le card */
.home-sponsor-logo:hover img {
  transform: scale(1.07);
  filter: drop-shadow(0 0 18px rgba(0,0,0,0.6));
}


/* FOOTER */
footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  background-color: #f5f5f5;

}

/* CARD BORDERED STYLE */
.card-bordered,
.bordered {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background-color: #f9f9f9;
}

/* RESPONSIVE */
@media screen and (max-width: 992px) {
  .navbar {
    justify-content: space-between; /* separa logo e menu */
  }

  .hamburger {
    display: flex;
    order: 1;
    margin-right: 1rem; /* allinea a destra */
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    flex-direction: column;
    background: white;
    width: 100%;
    border-top: 1px solid #ccc;
    padding: 1rem 0;
    text-align: left;
  }

  .nav-menu.active {
    display: flex;
  }
}

/* Centrare il menu su desktop */
@media screen and (min-width: 993px) {
  .navbar {
    justify-content: center;
  }
}

/* Footer con sfondo rosso Ferrari */
footer {
  background-color: #ff2800; /* Rosso Ferrari */
  color: #fff;
}

/* Miglioramento tabelle classifiche */
.classifica-maschile,
.classifica-femminile
.classifica-under18f {
  overflow-x: auto;
  max-width: 100%;
}


/* Miglioramento mobile navbar a destra */
@media screen and (max-width: 992px) {
  .nav-menu {
    left: auto;
    right: 0;
    text-align: right;
    align-items: flex-end;
  }
}

/* SCHEDA STAFF */
.staff-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.storia-settecolli {
  background-color: #f1f1f1;
  padding: 3rem 2rem;
  font-weight: bold;
}

.contenuto-storia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.storia-logo img {
  max-width: 300px;
  height: auto;
  background-color: transparent;
}

.storia-testo {
  max-width: 700px;
  text-align: center;
}

.storia-testo h2 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 1rem;
}

.storia-testo p {
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
}

@media (max-width: 768px) {
  .contenuto-storia {
    flex-direction: column;
    text-align: center;
  }

  .storia-logo img {
    max-width: 200px;
    background-color: transparent;
  }

  .storia-testo {
    padding: 1rem;
  }
}

.staff-dirigenziale {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
}

.staff-dirigenziale h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #003366;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.staff-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 280px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.staff-card:hover {
  transform: translateY(-5px);
}

.staff-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.staff-card h3 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.staff-card .role {
  font-weight: bold;
  color: #555555;
  margin-bottom: 0.5rem;
}

.staff-card .bio {
  font-size: 0.9rem;
  color: #777777;
}


.contatti-staff {
  padding: 3rem 1rem;
  background-color: #f5f5f5;
}

.contatti-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.contatti-testo {
  flex: 1 1 300px;
}

.contatti-testo h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.contatti-testo p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #444;
}

.contatti-immagine {
  max-width: 100%;
  border-radius: 1rem;
  margin-top: 1rem;
}

.contatti-form {
  flex: 1 1 350px;
  background-color: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contatti-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: black;
}

.contatti-form input,
.contatti-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contatti-form button {
  margin-top: 1.5rem;
  background-color: #3a79b7;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contatti-form button:hover {
  background-color: #295f90;
}

.sezione-notizie h2 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 2rem;
}


.footer-news {
  background-color: #ff2800;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin: 0;
  border: none;
}


/* Contenitore card sponsor */
.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 per riga */
  gap: 2rem;
  padding: 2rem;
  justify-items: center;
}

/* Singola card */
.sponsor-card {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 700px;  /* Larghezza massima della card */
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Logo sponsor */
.sponsor-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 1.5rem;
}

/* Testo e link */
.sponsor-info h3 {
  margin: 0;
  font-size: 1.3rem;
}

.sponsor-info .bio {
  font-size: 1rem;
  color: #444;
  margin: 0.5rem 0;
}

.sponsor-info .links a {
  color: #003366;
  text-decoration: none;
  margin-right: 0.5rem;
}

.sponsor-info .links a:hover {
  text-decoration: underline;
}

/* Responsività */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }
  .sponsor-card {
    flex-direction: column;
    text-align: center;
  }
  .sponsor-card img {
    margin: 0 0 1rem 0;
  }
}

.tv-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 2rem auto;
  max-width: 1200px;
}

.tv-video,
.tv-chat {
  flex: 1 1 500px;
}

.interviste-section {
  padding: 2rem 1rem;
  text-align: center;
}

.interviste-section h2 {
  font-size: 2.5rem;                    /* Dimensione visibile e importante */
  color: #ffffff;                       /* Testo bianco per contrasto */
  font-family: 'Montserrat', sans-serif; /* Font moderno e leggibile */
  font-weight: 600;                     /* Semi-bold, non troppo pesante */
  text-align: center;                   /* Allineamento centrale */
  text-transform: uppercase;            /* Tutto maiuscolo per impatto */
  letter-spacing: 1.2px;                /* Leggero spazio tra lettere */
  margin: 40px auto 20px;               /* Più spazio sopra */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5); /* Profondità */
  background: none;                     /* Niente sfondo bianco! */
}

.interviste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.intervista-card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.intervista-card iframe {
  width: 100%;
  height: 180px;
  border: none;
  margin-bottom: 0.8rem;
}

.intervista-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #003366;
}

.intervista-card p {
  font-size: 0.9rem;
  color: #666;
}



/* SHOP SECTION */
/* SHOP SECTION */
.shop {
  padding: 2rem 1rem;
  text-align: center;
}

.shop h2 {
  font-size: 1.8rem;
  margin: 2rem 0;
  test-align: center;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
  padding: 2rem 1rem;
}

.shop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  /* 🔹 dimensioni compatte */
  width: 180px;
  height: 260px;
}

.shop-item img {
  width: 100%;
  height: 70%;              /* occupa il 70% della card */
  object-fit: cover;        /* taglia e adatta l'immagine */
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.shop-item h3 {
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
  color: #003366;
  text-align: center;
}

.shop-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ✅ Responsive: su mobile solo 1 prodotto per riga */
@media (max-width: 768px) {
  .shop-items {
    grid-template-columns: 1fr;
  }
}

.galleria-foto {
  padding: 2rem 1rem;
  text-align: center;
}

.galleria-foto h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  text-align: center;
}

.galleria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Due per riga */
  gap: 1.5rem;
  justify-items: center;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .galleria-grid {
    grid-template-columns: 1fr; /* Una per riga su mobile */
  }
}

.galleria-card {
  width: 220px;
  border: 2px solid #003366;
  padding: 0.5rem;
  text-align: center;
  background-color: white;
  margin: 0; /* niente margine extra */
}


.galleria-card:hover {
  transform: scale(1.02);
}

.galleria-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.galleria-card h3 {
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

.galleria-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem; /* o anche meno, tipo 0.25rem */
}

/* STAFF / TEAM */
.card-container.staff,
.card-container.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contatti-testo {
  position: relative;
  flex: 1 1 500px;
  padding: 2rem;
  border-radius: 1.5rem;
  overflow: hidden;
  color: white;
  z-index: 0;
}

.contatti-bg-blur {
  position: absolute;
  inset: 0;
  background: url('images/sfondo-contatti.jpg') center center / cover no-repeat;
  filter: blur(6px) brightness(0.6);
  z-index: -1;
}

.contatti-content {
  position: relative;
  z-index: 2;
}

.contatti-content a {
  color: #ffdd57;
  font-weight: bold;
  text-decoration: underline;
}

#contatti-contattaci {
  color: white
}

#contatti {
  color: white
}


.hero.hero-login .hero-image {
  max-height: 320px; /* o qualsiasi altezza tu voglia */
  object-fit: cover;
}


.login-wrapper {
  position: relative;
}

.dropdown-login {
  position: absolute;
  top: 40px;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-login a {
  color: black;
  text-decoration: none;
  padding: 0.5rem 0;
}

.dropdown-login a:hover {
  background-color: #eee;
}


#news-ultime {
  color: white
}

.news {
  background-image: url('images/news.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}

#articolo {
  color: black
}

.classifiche {
  background-image: url('images/classifica.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}


/* Colore testo generale della tabella */
.classifica-table {
  color: black;
}

/* Intestazione della tabella */
.classifica-table th {
  background-color: #f2f2f2; /* Grigio chiaro */
  color: black;              /* Testo nero */
  font-weight: bold;
}

/* Celle della tabella */
.classifica-table td {
  color: black;
}


.prossime-partite {
  background-image: url('images/partite.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}


.staff-dirigenziale {
  background-image: url('images/staff-sfondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}

#staff-colore{
  color: white;
}

.storia-settecolli{
  background-image: url('images/storia-logo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}

#staff-storia{
  color: #ff2d2d; /* o #e60000 */
  text-shadow: 1px 1px 3px black;
}

#descrizione-storia{
  color: white;
}

.contatti-staff{
  background-image: url('images/contattaci-staff.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}

#team-titolo{
  color: #ff2d2d; /* o #e60000 */
  text-shadow: 1px 1px 3px black;
}

#descrizione-team{
  color: white;
}


.sponsor-card-section{
  background-image: url('images/sfondo-sezioni.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white;
}

.sponsor-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto 50px;
  gap: 60px;
  flex-wrap: wrap;
}

.sponsor-intro-logo img {
  width: 550px;
  height: auto;
}

.sponsor-intro-text {
  max-width: 700px;
  text-align: left;
}

.sponsor-intro-text h2 {
  font-size: 120px;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.sponsor-intro-text p {
  font-size: 2.5rem;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.sponsor-card-section h3{
  color: black;
}

.tv-live-section{
  background-image: url('images/interviste-sfondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white;
}

.interviste-section h2{
  color:white;
}

.galleria-foto{
  background-image: url('images/galleria-sfondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}

.contatti-wrapper-1{
  background-image: url('images/login-sfondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100vw;         /* forza la larghezza intera */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}

.contatti-wrapper-1 p{
  color: black;
}


.shop-section {
  background-image: url('images/shop-sfondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}


@media only screen and (max-width: 768px) {
  .news {
    background-image: url("images/news-mobile.png");
  }
  .classifiche {
    background-image: url("images/classifiche-mobile.png")
  }
  .prossime-partite {
    background-image: url("images/partite-mobile.png")
  }
  .staff-dirigenziale {
    background-image: url("images/staff-mobile.png")
  }
  .storia-settecolli {
    background-image: url("images/storia-mobile.png")
  }
  .contatti-staff{
    background-image: url("images/contattaci-mobile.png")
  }
  .sponsor-card-section{
    background-image: url("images/sfondo-sezioni-mobile.png")
  }
  .sponsor-intro {
    flex-direction: column;
    text-align: center;
  }
  .sponsor-intro-text h2 {
    font-size: 1.8rem;
  }
  .sponsor-intro-text p {
    font-size: 1rem;
  }
  .sponsor-intro-logo img {
    width: 180px;
  }
  .tv-live-section{
    background-image: url("images/interviste-sfondo-mobile.png")
  }
  .galleria-foto{
    background-image: url("images/galleria-sfondo-mobile.png")
  }
  .contatti-wrapper-1{
    background-image: url("images/login-sfondo-mobile.png")
  }
  .shop-section{
    background-image: url("images/shop-sfondo-mobile.png")
  }
  .sezione-magazine{
    background-image: url("images/magazine-sfondo-mobile.png")
  }
}

/* SCROLL REVEAL EFFECT */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Settecolli Magazine ===== */

.sezione-magazine h2 {
  font-size: 2rem;
  margin: 0 0 1.5rem;   /* niente margin-top → sparisce la banda bianca sopra */
}

/* Griglia responsive: 1 col mobile, 2 tablet, 3 desktop medio, 4 desktop grande */
.magazine-grid {
  display: grid;
  gap: 2rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto 0rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));   /* mobile */
}

@media (min-width: 600px) {
  .magazine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* tablet */
  }
}

@media (min-width: 900px) {
  .magazine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* desktop medio */
  }
}

@media (min-width: 1200px) {
  .magazine-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* desktop grande: 4 colonne */
  }
}

/* Card singola */
.magazine-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 260px;   /* 👈 limite massimo larghezza card (e quindi immagine) */
}

.magazine-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.magazine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Copertina del magazine */
.magazine-cover {
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;       /* 👈 limite ulteriore per sicurezza */
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* Testo sotto la copertina */
.magazine-info {
  padding: 0.75rem 1rem 1rem;
}

.magazine-info h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: #000 !important;
}

.magazine-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.sezione-magazine{
  text-align: center;
  margin: 0;
  background-image: url('images/magazine-sfondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: white; /* o nero, a seconda del contrasto */
}
