/* IMPOSTAZIONI DI BASE */
/* PALETTE */
:root{
--primary: #2B2E80; 
--secondary: #F20132; 
--accent: #F5F5F5;

/* BORDI ARROTONDATI */
--border-radius-min: 8px; 
--border-radius-max: 12px;

/* TIPOGRAFIA */
--font-primary: "all-round-gothic", sans-serif;
--font-secondary: 'Lexend', sans-serif;
}

/* RESET */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid red ; */
}

body {
    font-family: var(--font-secondary);
    background: var(--primary);
    color: var(--accent);
    height: 100vh;
}

li{
    list-style-type: none;
}

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-secondary);
}

.header{
position: fixed;
top: 0;
width: 100%;
padding: 60px 60px 20px 0;
z-index: 100;
border-color: none;
box-shadow: none;
}

.site_nav, .site_nav1 {
font-family: "all-round-gothic", sans-serif;
    display: flex;
    justify-content: center;
    gap: 160px;
    font-size: 25px;
}

/* LINK MENU */
.site_nav a {
text-decoration: none;
color: var(--accent);
font-weight: 500;
transition: color linear;
will-change: color;
}

.site_nav1 a{
text-decoration: none;
color: var(--primary);
font-weight: 500;
transition: color linear;
will-change: color;
}

.site_nav li a:hover, .site_nav1 li a:hover {
color: var(--secondary);
}

/* Quando lo sfondo è chiaro */
.header.scrolled .site_nav a {
  color: var(--primary); /* Blu */
}

/* Stato iniziale - sfondo blu */
#main-header {
  background-color: var(--primary);
  transition: background-color 0.3s linear;
}

/* Quando viene aggiunta la classe .scrolled */
#main-header.scrolled {
  background-color: var(--accent) !important;
  transition: background-color 0.3s linear;
  opacity: 1 !important;
}

/* ICONA HAMBURGER */
.icon-hamburger{
    visibility: hidden;
}

/* HERO SECTION */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.hero__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    max-width: 1200px;
    margin: auto;
    padding: 70px 0px 20px 0px;
}

.hero__logo img {
  width: 550px;
  height: auto;
  margin: 0;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero__text h1 {
    color: var(--secondary);
    font-size: 80px;
    font-weight: 900;
    line-height: 1.1;
    font-family: "all-round-gothic", sans-serif;
    text-transform: uppercase;
}

/* HERO BOTTOM: divido freccia e social */
.hero__bottom {
position: absolute;
width: 100%;
bottom: 30px;
left: 0;
}

.hero__bottom1 {
  position: absolute;
  width: 100%;
  bottom: 20px;
  left: 0;
  }

/* FRECCIA DI SCROLL PER ANDARE ALLA SEZIONE DOPO */
.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  font-size: 40px;
  opacity: 50%;
  color: var(--accent);
  text-decoration: none;
}

.scroll-indicator1 {
  position: absolute;
  left: 92%;
  transform: translateX(-50%);
  bottom: 0;
  font-size: 40px;
  opacity: 50%;
  color: var(--accent);
  text-decoration: none;
}

.scroll-indicator:hover, .scroll-indicator1:hover {
  color: var(--accent);
  opacity: 100%;
}


/* Social in basso a destra */
.social {
    position: absolute;
    right: 110px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    pointer-events: auto; /*per link cliccabili*/
}

.social a i {
    font-size: 30px; 
    padding: 20px;
    color: var(--accent);
}

.social a i:hover {
    color: var(--secondary);
}

/* 2° SEZIONE CITAZIONE E IMMAGINI */
.citazione-e-immagini {
    display: flex;
    /* justify-content: space-between; */
    align-items: flex-start;
    padding: 80px 0px;
    gap: 60px;
    /* flex-wrap: wrap; */
  }
  
.content__citazione {
    padding: 80px 80px;
}

.content__citazione blockquote {
    color: white;
    font-size: 45px;
    max-width: 600px;
    font-weight: 400;
    line-height: 1.2;
    font-family: "all-round-gothic", sans-serif;
    margin: 0;
    position: relative;
}

.content__citazione .virgolette {
    color: var(--secondary);
    font-size: 40px;
}

.content__citazione .autore {
    color: var(--secondary);
    font-size: 30px;
    font-style: italic;
    font-family: "all-round-gothic", sans-serif;
    margin-top: 30px;
}

.cta-group {
    justify-content: left;
    flex-wrap: wrap;
    text-align: left;
    font-family: 'Lexend', sans-serif;
    margin-top: 80px;
    margin-bottom: 100px;
}

.cta-group p{
    padding: 30px 0px 30px 0px;
    font-weight: 300;
    font-size: 20px;
}

.cta-group__primary{
font-size: 20px;
font-family: "all-round-gothic", sans-serif;
background-color: var(--secondary);
color: var(--accent);
text-decoration: none;
justify-content: center;
padding: 15px 30px; 
border-radius: var(--border-radius-max); 
display: inline-block;
gap: 15px;
}

.cta-group__primary:hover {
  color: var(--primary); 
  font-weight: 600;
}

  .foto-sequenza {
    position: relative;
    max-height: 400px;
    width: auto;
    height: auto;
    padding: 100px 10px;
  }
  
  .foto {
    position: absolute;
    padding: 0px 0px 0px 0px;
    max-height: 600px;
    max-width: 600px;
    height: auto;
    width: auto;
    border-radius:  20px;
  }
  
  .foto.visibile {
    opacity: 0;
    transform: translateY(0);
  }

  /* LE PROSSIME PARTITE */
  .content__partite {
    background: var(--accent);
    width: 100%;
    padding: 100px 120px 100px;
    /* margin-top: 500px; */
    font-family: 'Lexend', sans-serif;
    font-weight:300;
    color: #111;
  }
  
  .content__partite h2 {
    font-size: 50px;
    color: #e62335; 
    font-family: "all-round-gothic", sans-serif;
    margin-bottom: 40px;
    font-weight:600;
  }
  
  .tabella {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .riga {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 30px;
    border-top: 1px solid black;
    padding-top: 20px;
  }
  
  .riga.intestazione {
    border-top: none;
    font-weight: bold;
    text-transform: none;
    color: #000;
  }
  
  .col {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .ora {
    font-size: 14px;
    color: black;
    font-weight: 300;
  }
  
  /* SEZIONE SPONSOR */
  .sponsor {
    background: var(--accent);
    width: 100%;
    padding: 80px 60px;
    font-family: 'Lexend', sans-serif;
  }
  
  .sponsor h2 {
    font-size: 50px;
    font-family: "all-round-gothic", sans-serif;
    color: #e62335;
    font-weight: bold;
    margin-bottom: 50px;
  }
  
  .sponsor-layout {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    /* gap: 60px; */
    flex-wrap: wrap;
  }
  
  .sponsor-logo {
    max-width: 600px;
    flex: 1;
  }  
  
  .logo-row {
    display: flex;
    gap: 120px;
    padding: 50px;
  }
  
  .logo-row img {
    max-height: 100px;
    width: 150px;
    /* height: auto; */
    object-fit: contain;
  }
  
  .sponsor-text {
    max-width: 500px;
    font-size: 18px;
    color: #2d2b72;
  }
  
  .sponsor-text .testo-grande {
    font-size: 26px;
    font-family: "all-round-gothic", sans-serif;
    line-height: 1.5;
    margin-bottom: 30px;
  }
  
  .sponsor-text .testo-piccolo {
    font-size: 16px;
    font-family: 'Lexend', sans-serif;
    margin-bottom: 20px;
  }
  
  .btn-sponsor {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: var(--border-radius-max);
    font-size: 20px;
    font-weight: 500;
    font-family: "all-round-gothic", sans-serif;
    transition: background-color 0.3s ease;
  }
  
  .btn-sponsor:hover {
    background-color: var(--secondary);
  }
  
  /* FOOTER */
  footer {
    color: white;
    font-family: 'Lexend', sans-serif;
    padding: 0px 0px 20px;
  }

  .footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 80px 0px;
    gap: 60px;
    flex-wrap: wrap;
  }  
  
  .logo__footer {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .logo_1 img{
    max-width: 150px;
  }

  .altrielementi {
    display: flex;
    font-size: 20px;
    font-family: var(--font-secondary);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0px 90px;
    flex: 1;
    justify-content: flex-start;
    align-items: flex-start;
  }  
  
  .footer-logo {
    width: 200px;
  }
  
  .social__footer a{
    width: 24px;
    margin-right: 10px;
    vertical-align: middle;
    font-size: 20px;
    color: var(--accent);
    text-decoration: none;
  }
  
  .social__footer {
    display: flex;
    font-size: 14px;
    flex-direction: column;
    gap: 20px; /* Aggiunge spazio tra il testo e le icone */
  }
  
  .social__footer a:hover{
    color: var(--secondary);
  }
  
  .footer-links {
    min-width: 180px;
  margin-bottom: 15px;
  }  
  
  .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links ul li {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
  }
  
  .footer-links ul li a {
    color: white;
    text-decoration: none;
  }
  
  .footer-links ul li a:hover {
    text-decoration: underline;
  }
  
  .footer-bottom {
    text-align: right;
    font-size: 10px;
    /* margin-top: 40px; */
    padding: 0px 50px 20px 0px; 
    color: var(--accent);
  }
  

/* PAGINA CONTATTI */
.contatti-safeguarding {
  background-color: var(--accent);
  color: var(--primary);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 150px;
  flex-wrap: wrap;
}
.site_nav1 {
  background-color: var(--accent);
  padding: 60px 60px 20px 0;
  text-align: center;
  position: fixed;
  display: flex;
  justify-content: center;
  width: 100%;
}
.header__icon1{
  text-decoration: none;
  background-color: var(--accent);
}
.colonna-contatti,
.colonna-safeguarding {
  flex: 1;
  min-width: 300px;
}

.colonna-contatti h2 {
  font-family: var(--font-primary);
  font-size: 50px;
  color: var(--secondary);
  margin-bottom: 30px;
}

.colonna-contatti p {
  font-family: var(--font-secondary);
  font-size: 20px;
  line-height: 1.8;
}

.colonna-contatti p strong {
  color: var(--secondary);
  display: inline-block;
}

.colonna-safeguarding h2{
  font-family: var(--font-primary);
  font-size: 50px;
  color: var(--secondary);
  margin-bottom: 30px;
}

.colonna-safeguarding a{
  color: var(--secondary);
}

/* 5X1000 */
.sezione5xmille {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding: 80px 60px;
  background-color: var(--accent);
  color: var(--primary);
  font-family: 'Lexend', sans-serif;
  flex-wrap: wrap;
}
.dona{
max-width: 800px;
}

.dona h2 {
  font-size: 50px;
  color: var(--secondary);
  font-family: var(--font-primary);
  margin-bottom: 30px;
}

.dona p {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
  font-family: var(--font-secondary);
}

.dona strong {
  color: var(--secondary);
}

.dona strong1 {
  color: var(--primary);
  font-weight: normal;
}

.img img {
  width: 100%;
  max-width: 350px;
  max-height: auto;
  border-radius: 20px;
}

/* PAGINA CHI SIAMO */
.hero__logo1 img{
  width: 700px;
  opacity: 50%;
}

.hero__content1{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1300px;
  margin: auto;
  margin-left: 20px;
  padding: 3000px 0px 0px 0px;
}

.hero__chisiamo h2, .hero__ligabasket h2 {
  font-size: 50px;
  color: #e62335; 
  font-family: "all-round-gothic", sans-serif;
  margin-bottom: 40px;
  font-weight:600;
}

.hero__chisiamo p, .hero__ligabasket p {
  font-size: 16px;
  max-width: 1200px;
  line-height: 1.6;
  font-weight: 300;
  font-family: var(--font-secondary);
}

/* CONSIGLIERI */
.consiglio {
  padding: 150px 20px 150px;
  font-family: 'Lexend', sans-serif;
}

.consiglio h2, .impianti h2, .foto h2{
  color: var(--secondary);
  font-family: "all-round-gothic", sans-serif;
  font-size: 50px;
  margin-bottom: 40px;
}

.consiglio h2{
  padding: 0 100px;
}

.membri-consiglio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.membro img {
  width: 280px;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.ruolo.presidente, .ruolo.vicepresidente, .ruolo.consigliere {
  color: var(--secondary);
  font-size: 22px;
  margin: 10px 0 5px;
  font-weight: 500;
  font-family: var(--font-primary);
}

.membro p {
  font-size: 18px;
  color: var(--accent);
  font-family: var(--font-secondary);
  font-weight: 300;
}

/* IMPIANTI */
.impianti{
  background-color: var(--accent);
  padding: 40px 120px 0; /* rimuovi il padding laterale */
  width: 100vw; /* larghezza intera viewport */
  position: relative;
  font-family: 'Lexend', sans-serif;
  border-radius: 0;
  margin: 0;
}

.impianti-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 200px;
  padding: 40px 0;
}

.impianto {
  max-width: 500px;
  font-family: var(--font-secondary);
  text-align: left;
}

.impianto p {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.mappa iframe {
  width: 100%;
  height: 250px;
  border: 3px solid var(--secondary);
  border-radius: 30px;
  margin-bottom: 20px;
}

.indirizzo {
  font-size: 18px;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  padding: 40px;
}

/* FOTO */
.foto2 h2{
  color: var(--secondary);
  font-family: "all-round-gothic", sans-serif;
  font-size: 50px;
  margin-left: 10px;
  margin-bottom: 40px;
  padding: 40px;
  z-index: 100;
}

.foto2{
  background-color: var(--accent);
  padding: 40px 120px 0; /* rimuovi il padding laterale */
  width: 100vw; /* larghezza intera viewport */
  position: relative;
  font-family: 'Lexend', sans-serif;
  border-radius: 0;
  max-height: 1200px;
}
.gallery-wrapper {
  display: flex;
  align-items: center; /* centra verticalmente */
  justify-content: center;
  gap: 30px;
  position: relative;
  padding: 0 60px 100px; /* padding laterale per lo spazio frecce */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.gallery img,
.foto-evidenziata img {
  width: 350px;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
}

.foto-evidenziata {
  position: relative;
  width: auto;
  height: 250px;
}

.foto-evidenziata img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
}

.foto-evidenziata .overlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(230, 35, 53, 0.6); /* rosso con opacità */
  width: 100%;
  height: 100%;
  border-radius: 20px;
  color: var(--accent);
  font-family: "Lexend", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-align: center;
  opacity: 0;  /* effetto hover */
  transition: opacity 0.3s ease;
}

.foto-evidenziata:hover .overlay {
  opacity: 1;
}

/* FRECCE X GALLERIA FOTO */
.gallery-arrow {
  position: absolute;
  top: 275px;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.gallery-arrow.left {
  left: 0;
}

.gallery-arrow.right {
  right: 0;
}

.gallery-arrow:hover {
  color: var(--secondary);
}

/* PAGINA LIGABASKET */
.hero__content2{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1300px;
  margin: auto;
  margin-left: 40px;
  padding: 700px 0px 60px 0px;
}

.hero__logo2 img{
  width: 700px;
  border-radius: 20px;
}

/* PAGINA SQUADRE */
.container-squadre {
  padding: 30px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.titolo-squadra{
  color: var(--secondary);
  font-family: "all-round-gothic", sans-serif;
  font-size: 50px;
  margin-bottom: 40px;
  padding: 10px 80px 30px 0px; 
}

.squadrapagina {
  padding: 200px 0px;
  background-color: var(--accent);
  font-family: 'Lexend', sans-serif;
}

.squadra-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.squadra-left {
  flex: 1 1 55%;
  min-width: 300px;
  max-width: 55%;
}

.squadra-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: 20px;
  margin-left: 0;
}

.staff {
  margin-bottom: 40px;
  font-size: 16px;
  color: var(--primary);
}

.staff-title {
  color: var(--secondary);
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 5px;
}

.btn-calendario {
  background-color: var(--secondary);
  text-decoration: none;
  color: var(--accent);
  border: none;
  padding: 10px 20px;
  font-size: 20px;
  font-family: var(--font-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-calendario:hover {
 color: var(--primary);
 font-weight: 500;
}

.btn-wrapper {
  text-align: right;
}


.squadra-right {
flex: 1 1 40%;
max-width: 40%;
padding-right: 20px;
}

.squadra-right table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  color: #000;
}

.squadra-right th, .squadra-right td {
  padding: 12px 40px 12px 0;
  border-bottom: 1px solid #000;
  text-align: left;
  gap: 200px;
}

.squadra-right th {
  font-weight: bold;
  color: #000;
}

.squadra-right td:first-child,
.squadra-right th:first-child {
  padding-right: 150px;
}

.squadra-right td:nth-child(2),
.squadra-right th:nth-child(2) {
  padding-right: 150px;
}


/* RESPONSIVE 1068px e meno */
@media (max-width: 1068px) {
  .site_nav {
    display: none;
    flex-direction: column;
    gap: 40px;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    padding: 90px 50px;
    z-index: 99;
    text-align: center;
  }

  body.open .site_nav {
    display: flex;
  }

  .icon-hamburger {
    visibility: visible;
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 30px;
    color: white;
    z-index: 100;
    cursor: pointer;
  }

  .hero__content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    padding: 0px 20px 20px;
  }

  .hero__logo img {
    width: 250px;
  }

  .hero__text h1 {
    font-size: 40px;
    text-align: left;
  }

  .social {
    flex-wrap: wrap;
    bottom: 80px;
    right: 115px;
    font-size: 14px;
    gap: 15px;
  }

  .social a i {
    padding: 0;
    font-size: 24px;
  }

  .hero__bottom .scroll-indicator{
  padding: -400px 0;
  }

  .citazione-e-immagini {
    flex-direction:column;
    padding: 20px 20px;
  }

  .content__citazione {
    padding: 20px 0 0 0;
  }

  .content__citazione blockquote {
    font-size: 28px;
  }

  .content__citazione .autore {
    font-size: 20px;
  }

  .cta-group{
    margin-bottom: 0;
  }

  .cta-group p,
  .cta-group__primary {
    font-size: 16px;
  }

  .foto{
    width: 300px;
    margin-left: 40px;
  }

  .foto-sequenza {
    padding: 0px 0 450px 0;
  }

  .content__partite {
    padding: 60px 20px;
  }

  .content__partite h2 {
    font-size: 30px;
  }
  .tabella {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .riga {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .riga.intestazione {
    display: none; /* Nascondi intestazione globale */
  }

  .col {
    font-size: 16px;
    color: black;
  }

  .col::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .riga {
    grid-template-columns: 1fr;
  }

  .sponsor {
    padding: 40px 20px;
  }

  .sponsor-layout {
    flex-direction: column;
    gap: 30px;
  }

  .sponsor h2 {
    font-size: 30px;
  }

  .sponsor-logo {
    max-width: 100%;
  }

  .logo-row {
    gap: 20px;
    padding: 20px 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .logo-row img {
    width: 120px;
    max-height: 80px;
  }

  .sponsor-text {
    font-size: 16px;
  }

  .btn-sponsor {
    font-size: 16px;
    padding: 12px 20px;
  }

  .footer__content {
    flex-direction: column;
    padding: 40px 30px;
    gap: 20px;
  }

  .altrielementi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
  }

  .altrielementi ul li{
    font-size: 10px;
  }

  .footer-links {
    min-width: unset;
  }

  .footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 8px;
  }

  .logo__footer .logo_1{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .social__footer {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .social__footer p {
    font-size: 14px;
  }

  .social__footer a i {
    font-size: 20px;
  }


  /* RESPONSIVE PAGINA CONTATTI 748PX */
  .header__icon .header__icon i {
    cursor: pointer;
    display: block;
    color: var(--primary);
  }

  .header__menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--accent);
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .header__menu ul {
    flex-direction: column;
    gap: 20px;
  }

  body.open .header__menu {
    display: flex;
  }

  .contatti-safeguarding,
  .sezione5xmille {
    flex-direction: column;
    padding: 80px;
  }

  .dona,
  .img,
  .colonna-contatti,
  .colonna-safeguarding {
    padding: 10px;
    width: 100%;
  }

  .img img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {

  .hero__content{        
    gap: 40px;
    text-align: left;
    padding: 0 30px;
  }

  /* HEADER & NAV */
  .header            { padding: 50px 40px 15px 0; }
  .icon-hamburger    { font-size: 28px; right: 25px; top: 25px; }
  .site_nav          { gap: 80px; font-size: 22px; }

  /* HERO */
.hero { 
height: auto; 
padding-top: 100px; 
}

.hero__logo img { 
  width: 250px; 
}    

.hero__text h1 { 
font-size: 40px; 
line-height: 1.1; 
}

.hero__bottom .scroll-indicator {
bottom: -90px;
}

.social { 
right: 40px; 
bottom: -50px; 
font-size: 18px; 
gap: 12px;
}

.social::before{
    font-family: var(--font-primary);
    font-size: 16px;
    text-transform: uppercase;
    margin-right: 8px;
  }


.social a i { 
font-size: 26px; 
}

  /* CITAZIONE + CTA */
  .citazione-e-immagini { gap: 50px; padding: 60px 30px; }
  .content__citazione { padding: 60px 0 0 0; }
  .content__citazione blockquote { font-size: 34px; }
  .content__citazione .autore    { font-size: 22px; }
  .cta-group p                { font-size: 18px; }
  .cta-group__primary         { font-size: 18px; padding: 12px 26px; }

  /* SEQUENZA FOTO */
  .foto                { width: 320px; max-height: 420px; }
  .foto-sequenza       { padding: 0 0 380px; }

  /* SEZIONE “PROSSIME PARTITE” */
  .content__partite .riga.intestazione{ display:none; }
  .content__partite    { padding: 60px 30px; background: var(--accent);
    width: 105%; }
  .content__partite h2 { font-size: 40px; }
  .riga                { grid-template-columns: 1fr 1.2fr 1.2fr; }
  .col                 { font-size: 15px; }

  .content__partite .riga:not(.intestazione){
    cursor:pointer;
    position:relative;
    padding: 18px 15px;
    border-top: 1px solid #000;
  }
  .content__partite .riga:not(.intestazione) .quando{
    font-weight: 600;
    font-size: 18px;
  }
  /* freccia Font-Awesome */
  .content__partite .riga:not(.intestazione) .quando::after{
    content: "\f078";             /* chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    position: absolute;
    right: 0;
    top: 22px;
    transition: transform .3s;
  }
  /* nascondi i dettagli */
  .content__partite .riga:not(.intestazione) .dove,
  .content__partite .riga:not(.intestazione) .chi,
  .content__partite .riga:not(.intestazione) .ora{
    display:none;
  }
  /* stato aperto */
  .content__partite .riga.open .dove,
  .content__partite .riga.open .chi,
  .content__partite .riga.open .ora{
    display:block;
    margin-top:10px;
    font-size:16px;
  }
  .content__partite .riga.open .quando::after{
    transform: rotate(180deg);
  }

/* SPONSOR */
.sponsor { 
padding: 60px 30px; 
background: var(--accent);
width: 105%; }

.sponsor h2 {
font-size: 40px; }

.sponsor-layout{
    display: flex;
    flex-direction: row;       /* ← torna in riga */
    align-items: center;
    gap: 60px;                 /* spazio fra loghi e testo */
    flex-wrap: nowrap;         /* evita il ritorno a capo */
  }

  .sponsor-logo{
    flex: 0 0 45%;             /* ~ metà larghezza */
    max-width: 45%;
    text-align: center;
  }

  .logo-row { 
    justify-content: center; 
    gap: 40px; 
    flex-wrap: wrap;
  }
  
  .logo-row img        { width: 140px; max-height: 100px; }
  .sponsor-text { 
    max-width: 50%;
    font-size: 16px; 
  }

  .btn-sponsor {
  font-size: 18px; 
  padding: 12px 26px; }

  /* FOOTER */
  .footer__content { 
  display: grid;
  grid-template-columns: 200px 1fr;   /* logo | menu */
  column-gap: 60px;
  padding: 60px 40px 0;
  align-items: flex-start;
  flex-direction: column; }

  .altrielementi { 
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px 40px; 
}

  .footer-links ul li { 
  font-size: 14px; }

  .footer-bottom { 
  grid-column: 1 / -1;
  text-align: right; 
  padding: 20px 40px 40px;
  font-size: 9px; }

  /* — PAGINE INTERNE — */
  /* Contatti / 5×1000 */
  .contatti-safeguarding,
  .sezione5xmille      { flex-direction: column; padding: 100px 40px; }
  .dona, .img, 
  .colonna-contatti,
  .colonna-safeguarding{ width: 100%; }

  /* Chi siamo - Impianti */
  .impianti-wrapper    { gap: 120px; padding: 40px 0; }
  .impianto p          { font-size: 16px; }

  /* Squadre */
  .squadrapagina       { padding: 140px 0; }
  .titolo-squadra      { font-size: 40px; }
  .squadra-container   { gap: 30px; }
  .squadra-left        { flex: 1 1 100%; max-width: 100%; }
  .squadra-right       { flex: 1 1 100%; max-width: 100%; padding: 0; }
  .squadra-right table { font-size: 15px; }
}

/* BREAKPOINT SMARTPHONE  ≤ 561 px */
@media (max-width: 561px) {

  /* HEADER */
  .header { 
  padding: 40px 30px 10px 0;
  }

  .icon-hamburger  { 
  right: 20px; top: 20px; 
  font-size: 26px; 
}

  .site_nav { 
gap: 24px; 
font-size: 22px; 
}
  
  /* HERO */
  .hero { 
  height: auto; 
  padding-top: 80px; } 

  .hero__content   { 
  gap: 24px; 
  flex-direction: column !important; }

  .hero__logo img  { 
  width: 180px !important; }

  .hero__text h1   { 
  font-size: 32px !important; 
  line-height: 1.15 !important; }
  
  .scroll-indicator { 
  font-size: 32px; 
  bottom: -60px; 
}

.hero__bottom .scroll-indicator {
bottom: -60px;
}

  /* SOCIAL (in fondo all’hero) */
  .social { 
  right: 20px; 
  bottom: -60px; 
  font-size: 14px; 
}

.social a i {
font-size: 22px; 
padding: 0; 
}

/* CITAZIONE + CTA */
.citazione-e-immagini { 
gap: 40px;  
padding-top: 120px;
}

.content__citazione { 
padding: 0; 
}

.content__citazione blockquote { 
font-size: 22px; 
line-height: 9vw;
}

  .content__citazione .autore { 
  font-size: 18px; 
}

.cta-group { 
margin-top: 40px; 
}

.cta-group p { 
font-size: 14px; 
padding: 0 0 30px;
}

.cta-group__primary {
font-size: 14px; 
padding: 10px 24px;
}

  /* SEQUENZA FOTO */
  .foto { 
  width: 240px; 
  max-height: 320px; 
}

.foto-sequenza { 
padding: 0 0 320px ; 
}

/* TABELLA “PROSSIME PARTITE” */
.content__partite { 
padding: 40px 15px; 
}

.content__partite h2 { 
font-size: 26px; 
margin-bottom: 24px; 
}
.tabella {
display: flex;
flex-direction: column;
gap: 10px;
}

.riga { 
padding: 15px; 
}

.col { 
font-size: 14px; 
}

.col::before { 
font-size: 11px; 
}

/* SPONSOR */
.sponsor { 
padding: 30px 15px; 
}

.sponsor h2 {
font-size: 26px; 
}

.logo-row { 
gap: 15px; 
padding: 15px 0; 
}

.logo-row img{ 
width: 90px; 
max-height: 60px; 
}

.sponsor-text { 
font-size: 14px; 
max-width: 600px;
text-align: left;
}

.btn-sponsor { 
font-size: 14px; 
padding: 10px 20px; 
}

.sponsor-text .testo-grande {
font-size: 22px;
}

.sponsor-text .testo-piccolo {
font-size: 14px;
}

.sponsor-layout{
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 40px;
  }

 .sponsor-logo{
    max-width: 100%;
    text-align: center;
  }

  .btn-sponsor{
    font-size: 16px;
    padding: 10px 24px;
  }

/* FOOTER */
  .logo__footer{
    display: grid;
    grid-template-columns: 90px 1fr;
    column-gap: 24px;
    align-items: start; 
    grid-column: 1 / -1; 
    margin-bottom: 0;
    max-height: 100px;

  }

  .logo_1{ flex: 0 0 90px; } 
  .logo_1 img{ max-width: 100%; height: auto; }

  .social__footer{
    margin: 0;                 /* nessun offset */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .social__footer p{
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
  }
  .social__footer a i{ font-size: 22px; }

  /* 4. l’area menu resta nella seconda colonna -------------- */
  .altrielementi{
    grid-column: 1 / -1; 
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 24px;
    row-gap: 2px;
    min-width: 0;
  }

  .footer__content{
    grid-template-columns: 90px 1fr;   /* logo | area-menu          */
    column-gap: 24px;                  /* un po’ di respiro         */
    padding: 24px 18px 0;
    min-width: 0; 
    row-gap: 10px;
  }

  /* titoli + voci sempre visibili; stop alle frecce ------------- */
  .footer-links{ padding: 0; border: none; }

  .footer-links ul li:first-child{
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .footer-links ul li{
    font-size: 10px;
    line-height: 1.45;

    /* IMPORTANTISSIMO: disattiva il break di emergenza
       che avevamo impostato globalmente, così le parole
       NON vengono spezzate in mezzo                          */
    word-wrap: normal;
    overflow-wrap: normal;
  }

  /* COPYRIGHT */
  .footer-bottom{
    grid-column: 1 / span 2; 
    font-size: 8px;
    padding: 16px 0;
  }

  /* UTILITY  */
  h1, h2, h3, h4, h5, h6, p, a, blockquote { word-wrap: break-word; }

/* testa di ogni riga = header cliccabile  */
  .content__partite .riga:not(.intestazione) .quando {
    cursor: pointer;
    position: relative;
    display: block;              
    justify-content: space-between;
    align-items: flex-start;
  }

  /* la freccia ▼  (FontAwesome) */
  .content__partite .riga:not(.intestazione) .quando::after {
    content: "\f078";            /* fa-chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    margin-left: 8px;
    transition: transform .3s;
    position: absolute;
    right: 0;
    top: 4px;
  }

  /* nascondi i dettagli */
  .content__partite .riga .dove,
  .content__partite .riga .chi,
  .content__partite .riga .ora {  
  padding-left: 0; 
  display: none;
  }

  /* stato aperto */
  .content__partite .riga.open .dove,
  .content__partite .riga.open .chi,
  .content__partite .riga.open .ora {
    display: block;
    margin-top: 10px;
  }
  .content__partite .riga.open .quando::after {
    transform: rotate(180deg); 
  }
}

