body {
  margin: 0;
  padding-top: 100px;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

#header{width: 100%; height: 100px; background-color: #ffffff; position: fixed; top: 0; left: 0;right: 0; z-index: 999;box-shadow: 0 2px 6px rgba(0,0,0,0.08);}

html {
  scroll-behavior: smooth;
}


/* linea breve centrata */
.line {
  width: 100px;
  height: 3px;
  background-color: #006241;
  margin: 12px auto;
  border-radius: 2px;
}

.crl{clear:both}

#header_i{width: 1200px; max-width:calc(100% - 40px); height: 100px; position: relative; margin: 0 auto; display: flex;align-items: center;justify-content: space-between;box-sizing: border-box;padding:0 20px;}


.popup-content p a{color: #b00;text-decoration: none;}

#scelta a{font-family: 'poppins', sans-serif;
    font-size: 20px;
    color: #fff;
    font-weight: 100;
    margin: 0px;
    background-color: #006241;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
  }

.testo_regole {
  text-align: center;
}


    #scelta a:hover {
    background-color: #004d33;
    transform: scale(1.05);
    transition: 0.2s ease;
}


.popup-content p a:hover {
  transform: scale(1.15);
  display: inline-block;
}


#header_i img{margin-top: 19px;}



#logo{position: relative; float: left; margin-top: 2px;}


#menu{position: relative; float: right;}

#menu ul{margin: 0px; margin-top: 40px;}

#menu ul li{display: inline-block; list-style-type: none; margin: 0px 10px; font-family:'Poppins', sans-serif; font-weight: 900; text-transform: uppercase; margin-bottom: 30px; }

#menu ul li a{color:#111; text-decoration: none;} 

#payoff{width: 100%; height: auto; background-color: rgba(255, 255, 255, 0.76); text-align: center;}

#payoff_i{padding: 30px;}

#payoff h4{font-family: 'Poppins', sans-serif;color: #006241; font-size: 30px; line-height: 1.2; font-weight: 600; margin-bottom: 10px;}

#payoff_i p{font-family: 'Poppins', sans-serif; font-size: 19px; line-height: 1.5; font-weight: 500; margin-bottom: 15px;}

.scritta{font-family: 'Poppins', sans-serif; font-size: 16px; line-height: 1.5; font-weight: 500;margin-top: 20 px;text-align: left; margin-left: 9px;color: #111;}

.scritta a {
  display: inline-block;       /* necessario per padding e bordo */
  padding: 5px 10px;           /* spazio interno */
  border: 2px solid #006241;   /* il riquadro */
  border-radius: 5px;          /* angoli arrotondati */
  text-decoration: none;       /* niente sottolineatura */
  color: #006241;              /* colore del testo */
  font-weight: 600;            /* testo in grassetto */
  transition: all 0.3s ease;   /* animazione al passaggio del mouse */
  cursor: pointer;             /* mano al passaggio del mouse */
}

.scritta a:hover {
  background-color: #006241;  /* sfondo verde al passaggio */
  color: #fff;                 /* testo bianco al passaggio */
}






.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.popup-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh; /* limite verticale */
  overflow-y: auto; /* scroll interno se il testo è lungo */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.popup-buttons button {
  margin: 0 10px;
  padding: 10px 20px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 12px; /* angoli stondati */
  background-color: #eee; /* colore di sfondo */
  transition: background-color 0.3s ease;
}

.popup-buttons button:hover {
  background-color: #ddd; /* effetto hover */
}


#declineMessage {
  text-align: center;
  margin-top: 10px;
  font-weight: 700;
  color: #b00;
}

#backArrow {
  display: inline-block;
  padding: 6px 12px;
  background-color: #eee;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 9px;
  transition: background-color 0.3s ease;
}

#backArrow:hover {
  background-color: #ddd;
}

#scelta, #company{width: 100%; height: auto;}

#scelta h2, #company{margin-bottom: 0px; }

.intro{width: 100%;height: auto;text-align: center; font-family: 'poppins',sans-serif;text-transform: uppercase;font-size: 20px;}






#payoff, .content_menu img{width: 100%;height: auto;object-fit:cover; display:block;}

#company_i{padding-bottom: 50px;}

.content_menu_left_i, .content_menu_right_i {
  padding: 20px;
}

.content_menu p{color: #006241; font-size: 20px; line-height: 1; font-family: 'poppins',sans-serif; font-weight: 600;text-align: center;}

.content_menu_left,
.content_menu_center,
.content_menu_right {
  width: 33.333%;
  float: left;
  padding-top: 5px;
  box-sizing: border-box;
}

.content_menu_right_i p{margin-top: 20px;}




#focus_i {
  padding: 50px 20px;
  max-width: 1096px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}


#focus{width: 100%;height:500px; background-image: url(images/iscrizioni.jpeg);background-repeat: no-repeat;background-size:cover; background-position: center;display: flex;justify-items: center;align-items: center;}

#focus h2, #company h2{font-family: 'poppins',sans-serif;text-transform: uppercase;font-size: 34px; color: #fff;margin: 0px; margin-bottom: 10px;}

#company h2{color: #111;}

#focus p{font-family: 'poppins',sans-serif;font-size: 14px;color:#fff; font-weight: 100;margin:0px; margin-bottom: 20px;}


#focus a, .content_menu a{font-family: 'poppins',sans-serif;font-size: 20px;color:#fff; font-weight: 100;margin:0px;background-color:#006241;display:inline-block; padding: 10px 20px;text-decoration: none;border-radius: 50px; margin-top: 10px;}

#focus_content{
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}


#footer{width:100%; height: auto;background-color: #7d8a5e;}
#footer{text-align: center;}
#footer img{width: 100px;height: auto; margin: 22px;}
#footer p{font-family: 'poppins',sans-serif;font-size: 14px;color:#fff; font-weight: 100;margin:0px; margin-bottom: 10px;}

#footer_i{padding: 50px;}

.social img {
  width: 40px;
  margin:  10px;
}
.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}




@media(max-width:600px){

  #header{height: 70px;}
  #header_i{height: 70px;}
  body{padding-top:70px;}
  
}

 
section{scroll-margin-top: 102px;}

#payoff .content_menu img {
  width: 100%;
  max-height: 630px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
  
}

#payoff .content_menu_left_i:hover img,
#payoff .content_menu_center:hover img,
#payoff .content_menu_right_i:hover img {
  transform: scale(1.05);
}



/* --- SEZIONE SCELTA: linea al centro, testo subito a sinistra --- */

#scelta_i {
  padding: 50px 20px;
  box-sizing: border-box;
}

.scelta_contenuto {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* sinistra | linea | destra */
  align-items: center;
  gap: 4px;
  padding: 0 6%;
  box-sizing: border-box;
}

/* testo nella colonna sinistra, spinto verso destra (verso la linea) */
.testo_regole {
  grid-column: 1 / 4;   /* occupa tutta la larghezza */
  justify-self: center; /* centra il contenuto */
  width: 100%;          /* prende tutta la riga */
  text-align: center;   /* centra il bottone */
}


/* stile paragrafo */
.testo_regole p {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #006241;
  line-height: 1.6;
  margin: 0;
}

/* linea sempre nella colonna centrale (quindi al centro della pagina) */
.line-vertical {
  grid-column: 2 / 3;
  width: 3px;
  height: 160px;
  background-color: #006241;
  justify-self: center;
}

/* responsive: su schermi piccoli diventa verticale */
@media (max-width: 800px) {
  .scelta_contenuto {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 6%;
  }
  .testo_regole {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    text-align: center;
  }
  .line-vertical {
    grid-column: 1;
    height: 120px;
  }
}










#chi-siamo {
  width: 100%;
  background-color: #f5f5f5;
  padding: 50px 20px;
  box-sizing: border-box;
  text-align: center;
}

#chi_siamo_i {
  max-width: 1100px;
  margin: 0 auto;
}

.team_container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.team_member {
  width: 300px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.team_member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.team_member h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  color: #006241;
  margin-bottom: 10px;
}

.team_member p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}






#company, #chi-siamo {
  background-color:  #748cb6;
}

.content_menu_right_i img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-left: auto;   /* ⬅️ la spinge a DESTRA */
  margin-right: 0;
}








#footer_i a{text-decoration: none;color: #006241; font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: transform 0.2s ease; /* serve per animare */ display: inline-block; /* fondamentale per usare transform */ 
  }

  #footer_i a:hover { transform: scale(1.15); /* ingrandisce del 15% */ }



 .content_menu_left_i {
  text-align: center;
}

.blocco {
  margin-bottom: 30px; /* spazio tra blocchi */
  text-align: left;
}

.blocco p {
  margin-bottom: 10px; /* spazio tra testo e bottone */
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #006241;
}

.blocco a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #006241;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-top: 5px;
}

.blocco a:hover {
  background-color: #004d33;
}

.company_left .blocco p {
  text-align: left;
  display: block;
  width: 100%;
}

.company_left .blocco {
  text-align: left;
}


@media (min-width: 901px) {
  .company_left .blocco {
    margin-left: 250px;
  }
}









/* Header responsive base */
#header_i {
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 20px;
  height: 80px; /* più compatto */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Logo scaling */
.logo-link img {
  width: 150px;
  height: auto;
  display: block;
}

/* Nav desktop */
#menu {
  display: block;
}
#menu ul {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}
#menu ul li { list-style: none; }
#menu ul li a { color: #111; text-decoration: none; font-weight: 700; }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .hamburger {
  width: 22px;
  height: 2px;
  background: #111;
  position: relative;
  display: block;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #111;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after  { top: 7px; }

/* Mobile breakpoint */
@media (max-width: 900px) {
  #header { height: auto; }
  #header_i { height: 70px; padding: 0 14px; }

  /* show hamburger */
  .nav-toggle { display: flex; }

  /* hide desktop menu by default */
  #menu {
    position: absolute;
    top: 70px;
    right: 14px;
    background: #fff;
    width: calc(100% - 28px);
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
    z-index: 999;
  }
  #menu.open {
    transform: scaleY(1);
    opacity: 1;
  }
  #menu ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 8px;
  }
  #menu ul li a {
    display: block;
    padding: 12px 16px;
    color: #006241;
    font-weight: 600;
  }
}


/* Sposta solo i link del menu verso il basso su desktop */
@media (min-width: 901px) {
  /* sposta la riga dei link verso il basso di 10px (modifica il valore se vuoi più/meno) */
  #menu ul {
    transform: translateY(20px);
    transition: transform 180ms ease;
  }

  /* se preferisci spostare solo il testo interno (più preciso) */
  #menu ul li a {
    display: inline-block; /* necessario per translateY sul singolo elemento */
    transform: translateY(8px);
    transition: transform 180ms ease;
  }
}





#top { width: 100%; }
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero-img { height: 800px; object-fit: cover; }
}
@media (max-width: 900px) {
  .hero-img { height: auto; }
}


/* Hero responsive usando background-image */
section#top {
  width: 100%;
  height: 90vh;
  min-height: 360px;
  background-image: url("images/iniziale.jpeg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: block;
}

/* regola per smartphone */
@media (max-width: 600px) {
  section#top {
    height: 55vh;
    min-height: 260px;
    background-position: center 40%;
  }
}




/* --- MOBILE FRIENDLY SEZIONE CLASSIFICHE --- */
@media (max-width: 900px) {

  /* layout a colonna singola */
  .company_left,
  .company_right {
    width: 100% !important;
    float: none !important;
    text-align: center;
  }

  /* rimuove margini fissi che rompono tutto */
  .company_left .blocco {
    margin-left: 0 !important;
    text-align: center !important;
  }

  /* testo centrato */
  .company_left .blocco p {
    text-align: center !important;
  }

  /* bottoni centrati */
  .company_left .blocco a {
    margin: 10px auto !important;
    display: inline-block;
  }

  /* immagine podio responsive */
  .content_menu_right_i img {
    max-width: 90%;
    height: auto;
    margin: 20px auto;
    display: block;
  }

  /* spaziatura più morbida */
  #company_i {
    padding: 20px;
  }
}


@media (max-width: 900px) {

  .content_menu_left,
  .content_menu_center,
  .content_menu_right {
    float: none;
    width: 100%;
  }

}


@media (max-width: 600px) {
  section#top {
    height: 50vh;                 /* meno altezza = meno taglio */
    background-position: center 12%;
  }
}


@media (max-width: 600px) {
  #focus {
    height: 360px; /* opzionale ma consigliato */
    background-position: center 20%;
  }
}


@media (min-width: 901px) {
  #company .content_menu_right_i img {
    margin-top: -200px;
  }
}




