/* ==========================================================
   Reset di base
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  overflow-x: hidden;

  /* Immagine di sfondo a piena pagina */
  background-image: url("images/sfondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Overlay scuro per leggibilita' del testo sopra la foto */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 3.5rem 1.5rem 1.5rem;
}

.brand {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand .dot {
  color: #ffffff;
}

/* ==========================================================
   Stemmi / loghi
   ========================================================== */
.crest-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem 2rem 4rem;
}

.crest {
  display: flex;
  align-items: center;
  justify-content: center;
}

.crest img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

/* Logo principale, piu' grande e centrale */
.crest-main {
  width: min(60vw, 340px);
}

/* Riga con i due loghi delle affiliate */
.crest-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.crest-side {
  width: min(30vw, 170px);
}

/* ==========================================================
   Responsive: da tablet in giu' tutto si incolonna
   ========================================================== */
@media (max-width: 768px) {
  .crest-row {
    flex-direction: column;
    gap: 2rem;
  }

  .crest-main {
    width: min(55vw, 260px);
  }

  .crest-side {
    width: min(45vw, 200px);
  }

  .site-header {
    padding: 2.5rem 1rem 1rem;
  }
}

@media (max-width: 420px) {
  .crest-main {
    width: 65vw;
  }

  .crest-side {
    width: 55vw;
  }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  padding: 0.9rem 1.5rem;
}

.footer-line {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.50rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.footer-club {
  font-weight: 700;
  color: #ffffff;
}

.footer-label {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.footer-sep {
  display: inline-block;
  margin: 0 0.5em;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
  .footer-line {
    font-size: 0.50rem;
    line-height: 1.7;
  }

  .footer-sep {
    margin: 0 0.35em;
  }
}

