:root {
  overscroll-behavior: none;
  overflow-x: hidden;
}

body,
html {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

header {
  background-image: url("../assets/img/sfondo_hero_ondulato.webp");
  background-repeat: no-repeat;
  background-size: cover;
  height: 143vh;
  width: 100%;
  z-index: 1;
  position: relative;
}

nav {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
  padding-top: 2rem;
  align-items: center;
}

#logo {
  width: 50%;
  margin-left: 8.5%;
}

ul .separator {
  width: 2px;
  height: 15px;
  border-left: #2e073f solid 2px;
}

#containerlinguetelefono {
  display: none;
  width: 100%;
  position: relative;
  z-index: 1000;
}

#containerlinguetelefono.aperto {
  display: block;
}
#menutelefono {
  width: 50%;
  display: flex;
  justify-content: right;
}

#menutelefono img {
  width: 60px;
  height: 60px;
}

#menutelefono a {
  margin-right: 10%;
}


#containermenutelefono {
  display: none;
  flex-direction: column;
  width: 100%;
  position: relative;
  left: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#containermenutelefono.aperto {
  display: flex;
}


#menu {
  display: flex;
  flex-direction: row;
  padding: 0;
  margin-right: 8.5%;
  width: 62%;
  background-color: rgba(218, 228, 232, 0.5);
  border-radius: 30px;
  height: 2.5rem;
}

#menu ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

#menu ul li img {
  width: 30px;
  height: 30px;
}

#menu ul li svg {
    width: 26px;
    height: 26px;
}

#menu ul li svg path{
    width: 30px;
    height: 30px;
}
  
#menu ul li .icona {
    width: 30px;
    height: 30px;
}

#menu li, #lingua {
  list-style-type: none;
  width: 100%;
  font-family: "nunito sans", sans-serif;
  font-weight: 650;
  font-size: 1em;
  text-transform: uppercase;
  max-width: fit-content;
}

#menu input:focus,
#menu select:focus,
#menu textarea:focus {
  outline: none;
}

#lingua {
  background-color: transparent;
  border: none;
  color: #2e073f;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: #2e073f;
}

#hero {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#hero > .container {
  background-color: rgba(218, 228, 232, 0.5);
  border-radius: 30px;
  max-width: 47rem;
  padding: 1.5rem 0rem 2.5rem 0rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 4vh;
}

h1 {
  font-family: "Titan One", regular;
  font-size: 5.4em;
  color: #f9d923;
  text-shadow: -4px 3px #db5d3c;
  text-align: center;
  margin: 0 1rem 0 1rem;
  letter-spacing: 0.1rem;
  font-weight: 1;
}

#hero .corpo {
  font-family: "nunito sans", sans-serif;
  font-weight: 650;
  font-size: 1.9em;
  color: #2e073f;
  margin: 0 6rem;
}

#prenota button {
  background-color: #f9d923;
  color: #db5d3c;
  border-radius: 30px;
  font-size: 1.5em;
  font-family: "nunito sans", sans-serif;
  font-weight: 900;
  padding: 0.8rem 3rem;
  border: none;
  box-shadow: #db5d3c -2px 4px;
  cursor: pointer;
}

#prenota button:active {
  background-color: #db5d3c;
  color: #f9d923;
  box-shadow: none;
  transform: translateY(0px);
}

@media screen and (max-width: 600px) {
  nav {
   background-color: rgba(218, 228, 232, 0.5);
   padding-top: 8px;
   padding-bottom: 8px;
  }

  #logo img {
    width: 30%;
  }
  
  #menutelefono img {
    width: 30px;
    height: 30px;
  }
  
  #menutelefono a {
    margin-right: 15%;
  }  

  #menu {
    display: none;
  }

  header {
    height: 90vh;
    background-size: 120% 100%;
    background-position-x: 70%;
  }

  #hero {
    padding-top: 3.5rem;
  }

  #hero > .container {
    background-color: rgba(218, 228, 232, 0.5);
    border-radius: 40px;
    max-width: 21.5rem;
    padding-top: 0rem;
    padding-bottom: 2rem;
  }

  h1 {
    margin: 0.5rem 2rem 0.5rem 2rem;
    font-size: 2.4em;
    text-shadow: -4px 3px #db5d3c;
    font-weight: 1;
  }

  #hero .corpo {
    font-family: "nunito sans", sans-serif;
    font-weight: 650;
    font-size: 1.1em;
    color: #2e073f;
    margin: 0 1.5rem;
    line-height: 1.2;
  }

  #prenota button {
    font-size: 0.85em;
    font-weight: 800;
    padding: 0.3rem 1.5rem;
    box-shadow: #db5d3c -3px 4px;
  }
  
  #freccette {
    width: 100%;
    height: 13%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #freccetteforma {
    width: 15px;
    height: 15px;
    border-left: 0.4rem solid #f9d923;
    border-top: 0.4rem solid #f9d923;
    transform: rotate(225deg) skew(0deg, 5deg);
    /* box-shadow: 0 4px #db5d3c; viene al contrarioooo */
  }

  #navbar3 {
    background-color: rgba(218, 228, 232, 0.5);
    padding-top: 4px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
  }

  #navbar3 button {
    margin: 0rem 0rem 0 0rem;
    padding: 0.3rem 2rem 0.3rem 2rem;
    background-color: rgba(221, 227, 220, 0.5);
    color: #2e073f;
    border-radius: 30px;
    font-size: 0.85em;
    font-family: "nunito sans", sans-serif;
    font-weight: bold;
    border: none;
    cursor: pointer;
  }

  #navbar3 button:active {
    background-color: rgba(192, 199, 191, 0.5);
  }

  #navbar2 {
    background-color: rgba(218, 228, 232, 0.5);
    padding-top: 4px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
  }

  #navbar2 button {
    margin: 0rem 0rem 0 0rem;
    padding: 0.3rem 2rem 0.3rem 2rem;
    background-color: rgba(221, 227, 220, 0.5);
    color: #2e073f;
    border-radius: 30px;
    font-size: 0.85em;
    font-family: "nunito sans", sans-serif;
    font-weight: bold;
    border: none;
    cursor: pointer;
  }

  #navbar2 button:active {
    background-color: rgba(192, 199, 191, 0.5);
  }

  #navbar4 {
    background-color: rgba(218, 228, 232, 0.5);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding-bottom: 1vh;
    padding-top: 1vh;
  }

  #navbar4 .icona {
    width: 30px;
    height: 30px;
    background-color: rgba(221, 227, 220, 0.5);
    border-radius: 30px;
    padding: 0.5vh 2.5vw 0.5vh 2.5vw;
  }

  #navbar4 img {
    width: 30px;
    height: 30px;
  }
}

@media screen and (min-width: 600px) {
  #menutelefono {
    display: none;
  }

  #freccette {
    display: none;
  }

  #navbar3 {
    display: none;
  }

  #navbar3 button {
  display: none;
  }
  
  #navbar2 {
    display: none;
  }

  #navbar2 button {
  display: none;
  }

  #navbar4 {
    display: none;
  }

}

@media screen and (min-width: 2560px) {
  header {
    height: 106vh;
  }

  nav {
    padding-bottom: 17vh;
  }

  #logo img {
    width: 25%;
  }
  
  #menu {
    padding: 13px;
  }

  #menu li a {
    font-size: 1.8em;
  }

  #menu li #lingua {
    font-size: 1.8em;
  }

  #menu ul .icona {
    width: 50px;
    height: 50px;
  }

  #menu ul li img {
    width: 50px;
    height: 50px;
  }

  #hero {
    scale: 150%;
  }

  /* #hero .container {
    padding: 9.5rem 8rem 6.5rem 8rem;
  }

  h1 {
    font-size: 8.4em;
    margin: -115px 1rem 0 1rem;
  }

  #hero .corpo {
    font-size: 2.9em;
    margin: 0 1rem;
  }

  #prenota button {
    font-size: 2.5em;
  } */
}
