* {
  margin: 0px;
}
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");

/* Definizione del font-family */
body {
  font-family: "Open Sans", sans-serif;
}

.white {
  color: white !important;
}

.Green {
  color: #5cb501 !important;
}

.bgGreen {
  background-color: #5cb501 !important;
}

.hamburger img {
  width: 50px;
  height: 50px;
}

main.homepage {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
}

nav.navbar {
  display: flex;
  width: 100%;
  /* gap: 200px; */
  justify-content: space-around;
  align-items: center;
  height: 150px;
}

.navlinks, .navlinksM {
  display: flex;
  gap: 50px;
  justify-content: center;   /* centra orizzontalmente */
  align-items: center;       /* centra verticalmente */
}

/* stile sui link */
.navlinks a,
.navlinksM a {
  position: relative;
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* underline animato */
.navlinks a::after,
.navlinksM a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #5cb501;
  transition: width 0.3s ease;
}

.navlinks a:hover,
.navlinksM a:hover {
  color: #4aa000;
}

.navlinks a:hover::after,
.navlinksM a:hover::after {
  width: 100%;
}

.mobileNav {
  position: absolute;
  top: 150px;
  background: #5cb501;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding: 45px;
  z-index: 3;
}

.hamburger,
.mobileNav {
  display: none;
}

.navlinksM {
  flex-direction: column;
  /* background: green; */
  /* width: 100vw; */
}

.language {
  display: flex;
  gap: 30px;
}

button.ita {
  background: none;
  border: none;
  width: 45px;
  height: 45px;
}

button.eng {
  border: none;
  background: none;
  width: 45px;
  height: 45px;
}

a.navlinks.Contattaci {
  border-radius: 30px;
  background: #5cb501;
  padding: 10px 20px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(92, 181, 1, 0.3);
}

/* Hover: sollevamento + ombra */
a.navlinks.Contattaci:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(92, 181, 1, 0.4);
  background: #4aa000;
}

/* Click: piccolo rimbalzo */
a.navlinks.Contattaci:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(92, 181, 1, 0.3);
}

/* Ripple effect */
a.navlinks.Contattaci::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

a.navlinks.Contattaci:active::after {
  transform: translate(-50%, -50%) scale(20);
  opacity: 1;
  transition: transform 0.5s ease, opacity 1s ease;
}


.heroTextContainer {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding: 102px 0px 102px 0px;
}

section.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  /* height: 60vh; */
}

button.heroCta {
  margin-top: -12px;
  background: #5cb501;
  border: none;
  border-radius: 100px;
  padding: 15px 30px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(92, 181, 1, 0.3);
}

/* Hover: sollevamento + ombra */
button.heroCta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(92, 181, 1, 0.4);
  background: #4aa000;
}

/* Click: piccolo rimbalzo */
button.heroCta:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(92, 181, 1, 0.3);
}

/* Ripple effect */
button.heroCta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

button.heroCta:active::after {
  transform: translate(-50%, -50%) scale(20);
  opacity: 1;
  transition: transform 0.5s ease, opacity 1s ease;
}

.gapImgContainer {
  max-width: 100vw;
  width: 100vw;
}

.imgGap {
  width: 100%;
}

section.storia {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 90px;
  gap: 90px;
  width: 100%;
}

.InfoCardContainer {
  display: flex;
  width: 90%;
  justify-content: space-between;
}

.InfoCard {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

p.InfoCardDesc {
  margin: -12px 0px 0px 0px;
  width: 91%;
  align-self: center;
}

.storiaTxtContainer {
  text-align: center;
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

p.StoriaDesc {
  width: 70%;
  align-self: center;
}

img.InfoCardImg {
  width: 100px;
  height: 100px;
  align-self: center;
}

section.CosaFacciamo {
  margin-top: 90px;
  gap: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.CosaFacciamoContainer {
  display: flex;
  width: 90%;
  justify-content: space-between;
}

.CosaFacciamoTitleContainer {
  width: 55%;
}

.CosaFacciamoDescContainer {
  width: 40%;
  display: flex;
  gap: 40px;
  flex-direction: column;
  margin-top: 35px;
}

p.light-24px.cosaFacciamoDesc {
}

button.CosaFacciamoCta {
  width: fit-content;
  border: none;
  background: transparent;
  color: #5cb501;
  font-weight: 700;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

/* Effetto underline animato */
button.CosaFacciamoCta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: #5cb501;
  transition: width 0.3s ease;
}

button.CosaFacciamoCta:hover {
  color: #4aa000; /* leggera variazione colore */
}

button.CosaFacciamoCta:hover::after {
  width: 100%;
}


img.CosaFacciamoImg {
  width: 100%;
}

section.green {
  background: #5cb501;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.GreenCardContainer {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  /* justify-content: center; */
  /* gap: 24px; */
  width: 90%;
}

p.light-18px.white.GreenCardSub {
  /* width: 50%; */
}

.GreenCard {
  width: 304px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

p.bold-80px.white.GreenCardTitle {
  /* width: min-content; */
}

h4.semibold-56px.white.greenTitle {
  margin: 80px 0px 80px 0px;
  text-align: center;
  width: 90%;
}

.EndGreen {
  margin: 80px 0px 80px 0px;
  text-align: center;
}

section.maps {
  width: 100%;
  height: 650px;
}

footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  /* flex-direction: row; */
  /* justify-content: center; */
}

.footerCardContainer {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin: 162px 0px 121px 0px;
}

.infoCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 255px;
}

.endBanner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #1c1c1c;
  height: 80px;
}

.gdpr {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  /* padding: 20px 0px; */
}

h5.InfoCardTitle.Green.bold-32px {
  margin-bottom: 12px;
}

.InfoCardSubGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

img.AziendaCardImg {
  width: 340px;
}

h5.InfoCardTitle.regular-24px {
  text-align: end;
  margin-top: 12px;
}

/*  AUTORIZZAZIONI   */

.autorizzazioniCardContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  margin-bottom: 72px;
}

.autorCard {
  /* flex: 0 0 33%; */
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 432px;
}

img.autoCardImg {
  width: 432px;
  height: 283px;
}

/*    Trasparenza    */

button.autorCardBtn {
  border: none;
  background: #5cb501;
  padding: 15px;
  width: 50%;
  border-radius: 100px;
}

.TrasparenzaContainter {
  padding: 24px;
  display: flex;
  background: #1e1e1e;
  flex-direction: column;
  width: 80%;
  border-radius: 24px;
  gap: 32px;
}

.TrasparenzaHead {
  display: flex;
  /* width: 80%; */
  border-radius: 24px;
  gap: 48px;
}

.TrasparenzaContainter {
  display: flex;
  justify-content: center;
  margin-bottom: 72px;
}

img.TrasparenzaHeadImg {
  width: 60%;
  height: 420px;
}

p.light-24px.white {
  /* width: 65%; */
}

.TrasparenzaHeadTxt {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

section.trasparenza {
  display: flex;
  justify-content: center;
}

p.light-24px.white.TransparenzaCardTxt {
  width: 100%;
  display: flex;
  gap: 32px;
}

.TrasparenzaCard {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.materialeCard {
  height: 550px;
  width: 415px;
  max-width: 415px;
  background: #1e1e1e;
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: left;
  /* Per evitare che lÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾Ãƒâ€šÃ‚Â¢immagine esca dal contenitore */
  overflow: hidden;
  position: relative;
  /* flex: 1 1 calc(33.333% - 24px); */
}

.bg1 {
  background-image: url(../img/Group\ 140.png);
  background-repeat: no-repeat;
  padding: 0px;
}

.bg2 {
  background-image: url(../img/Group\ 141.png);
  background-repeat: no-repeat;
  padding: 0px;
}

/* Contenitore che ospita immagine + testo */
.materialeInfoCard {
  width: calc(100% + 48px);
  position: relative; /* Importante per i posizionamenti assoluti dei figli */
  height: 100%;
}

/* Immagine di base */
img.materialeImgCard {
  width: 100%;
  height: calc(100% + 48px);
  border-radius: 24px;
  position: relative;
  z-index: 2;
  /* Partiamo con immagine visibile */
  transform: translateY(0);
  opacity: 1;
  transition: all 0.6s ease;
  object-fit: cover;
}

/* Testo di base (nascosto e in basso) */
.materialeInfoCard p {
  position: absolute;
  top: 0; /* parte comunque dall'alto come riferimento */
  left: 0;
  padding: 24px;
  margin: 0;
  /* Applico la trasformazione di partenza, scendendo verso il basso */
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.6s ease;
  /* Se vuoi il testo sopra all'immagine in overlay */
  z-index: 3;
  color: #ffffff;
  line-height: 40px;
}

/* Al passaggio del mouse sulla card: 
   - l'immagine scende e scompare
   - il testo sale e appare
*/
.materialeCard:hover .materialeImgCard {
  transform: translateY(100%);
  opacity: 0;
}

.materialeCard:hover .materialeInfoCard p {
  transform: translateY(0);
  opacity: 1;
}

.materialeCard h2 {
  width: 90%;
  padding: 5px 24px;
}

section.materiali {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 72px;
  width: 100%;
}

.interessatoContainer {
  width: 70%;
  display: flex;
  justify-content: space-between;
  height: 150px;
  align-items: center;
  background: #1e1e1e;
  border-radius: 24px;
  margin: 0px 0px 72px 0px;
  padding: 0px 80px 0px 80px;
}

section.interessato {
  width: 100%;
  display: flex;
  justify-content: center;
}

button.interessatoBtn.bold-24px.white {
  border: none;
  background: #5cb501;
  padding: 20px 24px;
  border-radius: 100px;
}

.TrasparenzaHeadTxt h2 {
  width: 100%;
}

h2.autorCardName.bold-24px {
  height: 130px;
  text-align: center;
}

section.Contact {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

h2.ContactTitle {
  text-align: center;
}

.InputMainContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  /* margin-bottom: 40px; */
  /* width: 50%; */
  justify-content: center;
}

p.ContactDesc.light-24px {
  margin-bottom: 40px;
  text-align: center;
  width: 85%;
}

.heroTextContainer p.light-24px {
  width: 85%;
}

input.ContactInput {
  padding: 16px;
  border-radius: 8px;
  border: 2px solid;
}

.InputContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 250px;
  flex: 0 0 45%;
}

.InputContainerBig {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 250px;
  flex: 0 0 45%;
}
textarea.ContactInputBig {
  border-radius: 8px;
  border: 2px solid;
  padding: 16px;
  height: 300px;
  resize: none;
  /* width: 250px; */
}

.InputBottom {
  display: flex;
  justify-content: space-between;
  /* width: 90%; */
  gap: 40px;
  flex: 0 0 calc(90% + 40px);
}

p.InputBottomDesc {
  width: 250px;
  /* flex: 0 0 40%; */
}

button.InputBottomBtn {
  width: 250px;
}

.InputBottomBtn {
  width: 250px;
  display: flex;
  justify-content: flex-end;
}

.InputBottomBtn button {
  background: #5cb501;
  border: none;
  color: white;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(92, 181, 1, 0.3);
}

/* Hover: sollevamento + ombra */
.InputBottomBtn button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(92, 181, 1, 0.4);
  background: #4aa000;
}

/* Click: piccolo rimbalzo */
.InputBottomBtn button:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(92, 181, 1, 0.3);
}

/* Ripple effect */
.InputBottomBtn button::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.InputBottomBtn button:active::after {
  transform: translate(-50%, -50%) scale(20);
  opacity: 1;
  transition: transform 0.5s ease, opacity 1s ease;
}


section.ContactIcon {
  width: 65%;
  display: flex;
  justify-content: center;
}

@media only screen and (max-width: 1200px) {
  .navlinks,
  .language {
    display: none;
  }
.VeicoliContainer{
  flex-direction: column;
  width: calc(90% - 40px) !important;
  padding: 20px !IMPORTANT;
}
.VeicoliRight img {
  display: none;
}
.VeicoliRightTxt{
  height: 100% !important;
  padding: 20px;
}
.VeicoliRight,.VeicoliLeft, .VeicoliLeft img{
  width: 100% !important;
}

  .hamburger {
    display: block;
    border: none;
    background: transparent;
    width: 70px;
    height: 150px;
    padding: 0px;
  }

  h4.semibold-56px.white.greenTitle {
    margin: 102px 0px;
  }

  .heroTextContainer {
    padding: 102px 0px 102px 0px;
  }
  .storia {
    margin-top: 80px;
  }

  img.InfoCardImg {
    width: 75px;
    height: 75px;
  }

  .CosaFacciamoContainer {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .CosaFacciamoTitleContainer,
  .CosaFacciamoDescContainer {
    width: 90%;
  }

  .footerCardContainer {
    flex-wrap: wrap;
    gap: 50px;
  }

  img.TrasparenzaHeadImg {
    height: 70%;
    width: 55%;
  }

  .interessatoContainer {
    padding: 0px 60px 0px 60px;
    width: 80%;
  }
}

@media only screen and (max-width: 992px) {
  .heroTextContainer {
    padding: 82px 0px 82px 0px;
  }
  section.storia {
    margin-top: 70px;
  }

  .InfoCardContainer {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  img.InfoCardImg {
    width: 60px;
    height: 60px;
  }

  .GreenCardContainer {
    gap: 16px;
  }

  h4.semibold-56px.white.greenTitle {
    margin: 82px 0px;
  }

  .EndGreen {
    margin: 82px 0px;
  }

  img.AziendaCardImg {
    width: 300px;
  }

  .endBanner {
    height: 120px;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    text-align: center;
    padding: 20px 0px;
  }
  .TrasparenzaHead {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .interessatoContainer {
    padding: 0px 40px 0px 40px;
    width: 80%;
  }
}

@media only screen and (max-width: 768px) {
  h4.semibold-56px.white.greenTitle {
    margin: 52px 0px;
  }

  .EndGreen {
    margin: 52px 0px;
  }
  .heroTextContainer,
  .storiaTxtContainer {
    width: 90%;
  }

  .InfoCard {
    gap: 16px;
  }

  img.InfoCardImg {
    width: 50px;
    height: 50px;
  }
  .footerCardContainer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .heroTextContainer {
    padding: 50px 0px 50px 0px;
  }
  section.storia {
    margin-top: 50px;
  }
  .InfoCard {
    width: 90%;
  }
  img.TrasparenzaHeadImg {
    height: 80%;
    width: 100%;
  }
  .materialeCard {
    width: 300px;
    height: auto;
  }
  .interessatoContainer {
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    text-align: center;
    padding: 10px 40px !important;
  }
}

@media only screen and (max-width: 600px) {
  .heroTextContainer {
    padding: 40px 0px 40px 0px;
  }
  section.storia {
    margin-top: 40px;
  }
  .imgGap {
    height: 200px;
    object-fit: cover;
  }
  .InfoCard {
    width: 90%;
  }
  .materialeCard {
    width: 90%;
    height: 475px;
  }
  .interessatoContainer {
    padding: 0px 30px 0px 30px;
    width: 70%;
  }

  .InputMainContainer {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .InputContainer,
  .InputBottom,
  .InputContainerBig {
    width: 100%;
  }
}

@media only screen and (max-width: 500px) {
  .autorCard {
    width: 100%;
  }
  img.autoCardImg {
    width: 80%;
    height: 70%;
  }
}

.materialeCard p {
  width: 90%;
}

.MaterialiCardContainer {
  width: calc(70% + 160px);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.VeicoliContainer {
  display: flex;
  width: calc(70% + 80px);
  background: #1e1e1e;
  padding: 40px 40px;
  border-radius: 24px;
  gap: 48px;
}

.VeicoliLeft img {
  width: 750px;
  border-radius: 24px;
}

.VeicoliLeftTxt {
  width: 85%;
}

.VeicoliLeft {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.VeicoliRight img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 24px;
}

.VeicoliRight {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  height: 100%;
}

.VeicoliRightTxt {
  background: #f5f5f5;
  border-radius: 24px;
  display: flex;
  height: 20%;
  align-items: center;
  text-align: center;
}

img.logo {
  width: 125%;
}

.heightMax {
  height: 750px;
  object-fit: cover;
}
