@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');



*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
}

a {
  text-decoration: none;
  transition: 0.3s;

}

p {
  color:rgb(94, 94, 94);
  font-weight: 300;
}

a:hover {
  text-decoration: underline;
}

body{
  min-height: 100vh;
}
nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100%; */
  height: 100px; /*questo a 70px per abbassare l'header -- è altezza socials + altezza parte verde*/
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 99;
  /* margin-top: 30px; */

}



/* div socials */

.socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 33px;
  background-color: #1c6434;
  padding: 0 80px; 
}


.socials .info-text {
  display: none;
  color: #fff;
  /* font-size: 15px; */
  font-weight: 400;
  margin: 0;
}

.socials .info-text a {
  font-size: 10px;

}

.socials p {
  margin: 0 30px 0 0; /* Margine destro per distanziare i paragrafi tra loro */
  display: flex;
  align-items: center;
}

.socials a {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  transition: 0.3s;
}

.socials img {
  width: 18px;
  transition: 0.5s;
  margin-right: 10px;/* Spazio tra l'icona e il testo */
}

#mail {
  position: relative;
  top: 2px;
  scale: 1.7;
}

.socials img:hover {
  opacity: .4;
}

.socials a:hover {
  opacity: 0.7;
  /* text-decoration: none; */
}

.socials .right-icons {
  margin-left: auto; /* icone a destra */
  display: flex;
  align-items: center;
}

.right-icons a {
  margin-left: 25px; /* Spazio tra le icone a destra */
}



/*navbar*/

nav .navbar{
  height: 100%;
  max-width: 1250px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  padding: 0 20px;
}


.navbar .logo {
    display: flex;
    align-items: center;
    margin-left: -20%; /*per spostare a sinistra il logo*/
}

.navbar .logo a:hover{
    opacity: 0.7;
}

.navbar .logo a:hover img{
    border-radius: 20px;
}

.navbar .logo img{
    height: 65px; 
    margin: 0 5px;
    transition: 0.3s;
    border-radius: 5px;
}

.navbar .logo a{
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 40px;
    transition: 0.3s;
    margin-bottom: 35px;
}

nav .navbar .nav-links{
  line-height: 65px;  /*questo a 70px per abbassare l'header*/
  height: 100%;
  transition: 0.3s;
}

nav .navbar .nav-links a{
    transition: 0.3s;
  }

nav .navbar .nav-links li a:hover {
    color: #0f6f00;
    font-weight: 500;
}

nav .navbar .links{
  display: flex;
}
nav .navbar .links li{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0 25px;
}
nav .navbar .links li a{
  height: 100%;
  text-decoration: none;
  white-space: nowrap;
  color: #000;
  font-size: 15px;
  font-weight: 500;
}
.links li:hover .htmlcss-arrow,
.links li:hover .js-arrow{
  transform: rotate(180deg);

  }

nav .navbar .links li .arrow{
  height: 100%;
  width: 22px;
  line-height: 65px; /*questo a 70px per abbassare l'header*/
  text-align: center;
  display: inline-block;
  color: #000;
  transition: all 0.3s ease;
}
nav .navbar .links li .sub-menu{
  position: absolute;
  top: 60px;
  /* left: 0; */
  line-height: 40px;
  background: #fff;
  /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); */
  border-radius: 0 0 10px 10px;
  display: none;
  z-index: 2;
}


nav .navbar .links li .sub-menu a:hover{
    color: #0f6f00;
}

nav .navbar .links li:hover .htmlCss-sub-menu,
nav .navbar .links li:hover .js-sub-menu{
  display: block;
}
.navbar .links li .sub-menu li{
  padding-right: 30px;
  padding-left: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar .links li .sub-menu a{
  color: #000;
  font-size: 15px;
  font-weight: 500;
}




.navbar .search-box{
  position: relative;
   height: 40px;
  width: 40px;
  display: none;
}
/* .navbar .search-box i{
  position: absolute;
  height: 100%;
  width: 100%;
  line-height: 40px;
  text-align: center;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
} */



.navbar .nav-links .sidebar-logo{
  display: none;
}
.navbar .bx-menu{
  display: none;
  cursor: pointer;
}

@media (max-width: 1600px) {
  nav .navbar .links li .sub-menu {
    right: -100%;
  }
}

/* @media (max-width: 1100px) { per centrare le icone di destra 
 

  .socials {
    justify-content: center; 
    padding: 0; 
  }

  .socials p {
    display: none; 
  }

  .socials .right-icons {
    margin: 0; 
  }

  .right-icons a {
    margin-left: 15px; 
  }
} */

@media (max-width: 1670px) {
  .navbar .logo {
    margin-left: -15%;
  }
}

@media (max-width: 1600px) {
  .navbar .logo {
    margin-left: -8%;
  }
}

@media (max-width: 1400px) {
  .navbar .logo {
    margin-left: 0%;
  }
}

@media (max-width: 1100px) { /*per centrare il numero di telefono*/
  .socials {
    justify-content: center; 
    padding: 0; 
  }

  .socials p {
    display: none; 
  }

  .socials .info-text {
    display: block; 
  }

  .socials .right-icons {
    display: none;
  }
}

@media (max-width:920px) {
  nav .navbar .nav-links{
    max-width: 90%;
  } 
  /* nav {
    height: 75px;
  } */
  
  nav .navbar{
    max-width: 100%;
    padding: 0 25px;
  }

  nav .navbar .logo a{
    font-size: 35px;
  }
  nav .navbar .links li{
    padding: 0 10px;
    white-space: nowrap;
  }
  nav .navbar .links li a{
    font-size: 15px;
  }

  nav .navbar .links li .sub-menu {
    right: -90px;
  }
}
@media (max-width:800px){
  nav{
    position: relative;
  }
  .navbar .logo{
    width: 90%;
  }
  .navbar .bx-menu{
    display: block;
    margin-bottom: 30px;
  }
  nav .navbar .nav-links{
    position: fixed;
    top: 0;
    left: -100%;
    display: block;
    /* max-width: 270px; */
    width: 100%;
    background:  #fff;
    line-height: 40px;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    z-index: 1000;
    font-size: 20px;
  }
  .navbar .nav-links .sidebar-logo{
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }
  .sidebar-logo .logo-name{
    font-size: 35px;
    color: #000;
  }

  .navbar .bx-menu{
      font-size: 30px;
      color: #000;
      transition: 0.3s;
    }

    .navbar .bx-menu:hover{
      color: #000000;
    }

  .navbar .links li .sub-menu a{
      color: #000;
      font-size: 16px;
      font-weight: 400;
    }

  nav .navbar .links{
    display: block;
    margin-top: 20px;
  }
  nav .navbar .links li .arrow{
    line-height: 60px;
  }
nav .navbar .links li{
    display: block;
  }
nav .navbar .links li .sub-menu{
  position: relative;
  top: 0;
  box-shadow: none;
  display: none;

  right: 0;
  
}
nav .navbar .links li .sub-menu li{
  border-bottom: none;
  /* font-size: 20px; */
  padding-left: 10px;
}
.navbar .links li .sub-menu .more-sub-menu{
  display: none;
  position: relative;
  left: 0;
}
.navbar .links li .sub-menu .more-sub-menu li{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.links li:hover .htmlcss-arrow, .links li:hover .js-arrow{
  transform: rotate(0deg);
  }

  .navbar .links li .sub-menu .more-sub-menu{
    display: none;
  }
  .navbar .links li .sub-menu .more span{
    /* background: red; */
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
  }
  .links li .sub-menu .more:hover .more-sub-menu{
    display: none;
  }
  nav .navbar .links li:hover .htmlCss-sub-menu,
  nav .navbar .links li:hover .js-sub-menu{
    display: none;
  }
.navbar .nav-links.show1 .links .htmlCss-sub-menu,
  .navbar .nav-links.show3 .links .js-sub-menu,
  .navbar .nav-links.show2 .links .more .more-sub-menu{
      display: block;
    }
    .navbar .nav-links.show1 .links .htmlcss-arrow,
    .navbar .nav-links.show3 .links .js-arrow{
        transform: rotate(180deg);
}
    .navbar .nav-links.show2 .links .more-arrow{
      transform: rotate(90deg);
    }
}




@media (max-width: 600px){
    nav .navbar .nav-links{
    max-width: 95%;
  } 
}
 
@media (max-width: 420px) {
  .navbar .links li .sub-menu a {
    white-space: normal; /* Permette la rottura delle righe */
    line-height: 1.2; /* Riduce l'interlinea per migliorare la leggibilità */
    padding: 10px 0; /* Aggiunge un po' di spazio verticale tra le voci */
  }
}

@media (max-width: 340px){

  nav .navbar .logo img{
    scale: 0.8;
    margin-left: -10%;
  }

  /* .socials a {
    font-size: 10px;
  } */

} 

@media (max-width: 600px) {
    .whatsapp {
      right: 3%; 
    }
}

/* per il pulsante whatsapp che è in comune */
.hidden {
    opacity: 0;
    visibility: hidden;
}
.visible {
    opacity: 1;
    visibility: visible;
}




