@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap');

body {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #000000, #012d14);
  color: #eee;
}


/* LOGO */
.logo-container {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.05rem;
}
.logo-container img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.4));
  border-radius: 6px;
}

/* TITOLI */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
  color: #00ff00;
  text-shadow: 2px 2px 8px rgba(0, 255, 0, 0.3);
  margin: 1rem auto 0.8rem auto;
}

/* MENÙ HAMBURGER */
.hamburger {
  position: fixed;
  top: 1rem;
  left: 1rem;
  cursor: pointer;
  z-index: 1001;
}
.hamburger div {
  width: 30px;
  height: 4px;
  background-color: #00ff00;
  margin: 6px 0;
  transition: 0.4s;
}

.nav-menu {
  height: 100%;
  width: 0; /* Menu nascosto per default */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
}


.nav-menu a {
  padding: 10px 40px; /* Aumenta il padding laterale per dare più spazio */
  text-decoration: none;
  font-size: 18px;
  color: #00ff00;
  display: block;
  transition: 0.3s;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-menu a:hover {
  background-color: #014421;
  box-shadow: 0 0 10px #00ff00;
}

/* CONTENUTI */
main {
  padding: 2rem;
  transition: margin 0.3s;
}

/* BOX DI SEZIONE (es: Classifica, Gironi) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}
.box {
  background: #014421;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,255,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px #00ff00;
}

/* IMMAGINI SPONSOR, SQUADRE */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

/* PULSANTE */
button, .btn {
  background: #00ff00;
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
button:hover, .btn:hover {
  background: #0f0;
  transform: scale(1.05);
  box-shadow: 0 0 10px #00ff00;
}


.full-row {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
}

.full-row .box {
  width: 100%;
  max-width: 900px;
  padding: 1rem 1.5rem;
}

.half-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem 2rem;
}

.half-row .box {
  flex: 1 1 300px;
  max-width: 400px;
  padding: 1rem 1.2rem;
}

/* Ottimizza la lista */
.box ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.box li {
  padding: 0.2rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,255,0,0.1);
}

.box h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.instagram-footer {
  text-align: center;
  margin-top: 2rem;
}

.instagram-footer img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 4px rgba(0, 255, 0, 0.4));
  transition: transform 0.2s;
}

.instagram-footer img:hover {
  transform: scale(1.1);
}


.carousel-big {
  position: relative;
  width: 95%;
  max-width: 1200px;
  height: 500px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}

.carousel-slide.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: rgba(0, 0, 0, 0.5);
  color: #0f0;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
  border-radius: 50%;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

@media screen and (max-width: 768px) {
  .carousel-big {
    height: 300px;
  }
}


.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.sponsor-card {
  position: relative;
  width: 260px;
  height: 160px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,255,0,0.25);
}

.sponsor-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Riempi tutto lo spazio */
  transition: 0.3s ease;
  z-index: 1;
}

.sponsor-card .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  opacity: 0;
  z-index: 2;
  transition: 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
}

.sponsor-card:hover .overlay {
  opacity: 1;
}

.sponsor-card:hover img {
  filter: brightness(0.6);
}


.has-submenu {
  position: relative;
}

/* === DESKTOP === */
.submenu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 30px;
  background-color: #000;
  border: 1px solid #00ff00;
  z-index: 999;
  min-width: 250px; /* Aumenta la larghezza minima per il sottomenu */
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Mostra su hover o focus */
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: flex;
}


.submenu a {
  padding: 0.5rem 1rem;
  color: #00ff00;
  text-decoration: none;
  white-space: nowrap;
}

.submenu a:hover {
  background-color: #0f0;
  color: #000;
}

/* === MOBILE === */
@media screen and (max-width: 768px) {
  .submenu {
    position: static;
    border: none;
    background-color: transparent;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }

  .submenu a {
    border-left: 2px solid #00ff00;
    margin-left: 10px;
    color: #00ff00;
  }

  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu {
    display: flex;
  }
}

.arrow {
  font-size: 0.8rem;
  margin-left: 5px;
  color: #00ff00;
}

/* Solo nelle pagine con la classe 'squadre-page' */
.squadre-page .logo-container {
  display: flex;               /* Usa flexbox per affiancare gli elementi */
  justify-content: flex-start; /* Allinea i loghi a sinistra */
  gap: 20px;                   /* Distanza tra i loghi */
  margin-bottom: 2rem;         /* Distanza dal resto del contenuto */
}

/* Styling per i loghi nelle pagine 'Squadre' */
.squadre-page .logo-container img {
  max-width: 150px;    /* Limita la larghezza dei loghi (puoi regolarla) */
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.4)); /* Aggiungi effetto di ombra */
  border-radius: 6px;
}

/* In tutte le altre pagine (non nella cartella 'Squadre'), centrare i loghi */
body:not(.squadre-page) .logo-container {
  text-align: center;
}

body:not(.squadre-page) .logo-container img {
  max-width: 180px;    /* Limita la larghezza dei loghi centrati (puoi regolarla) */
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.4)); /* Aggiungi effetto di ombra */
  border-radius: 6px;
}



