@font-face {
  font-family: "Libertinus";
  src: url("/fonts/LibertinusSans-Regular.woff2");
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.titolo {
  font-family: "Libertinus", "Roboto", sans-serif;
  font-size: 120px;
  font-weight: 500;
  color: #b19d86;
}

body {
  background: #fffcf9;
  margin: 0;
  padding: 0;
  font-size: 17px;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

header {
  position: absolute;
  top: 0;
  z-index: 10;
  height: 10vh;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  padding: 0 6%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.logo {
  cursor: pointer;
}

.logo img {
  margin-top: 1vh;
  height: 9vh;
}

.nav_item,
.cta,
.overlay__content a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  text-align: center;
}

.overlay__content a p {
  text-align: center;
}

.nav__links {
  width: 50vw;
  justify-content: space-around;
  list-style: none;
  display: flex;
  align-items: center;
}

.nav_item {
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease 0s;
}

.nav_item::after {
  content: "";
  height: 1.5px;
  background: #ffcda3;
  width: 80%;
  display: block;
  position: relative;
  top: 0px;
  left: 10%;
  opacity: 0;
  transform: scaleX(0%);
  transition: transform 0.4s ease-in-out, opacity 0.4s linear, left 0.4s ease-in-out;
}

.nav_item:hover::after {
  transform: scaleX(100%);
  opacity: 0.6;
  left: 10%;
}

.nav_item:hover {
  color: #fff;
  /*background-color: #ff9abe;*/
  letter-spacing: 1px;
}

.cta {
  /*border: 1px solid #222;*/
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 2px;
  text-align: center;
  transition: all 0.3s ease 0s;
}
.cta::after {
  content: "";
  height: 2px;
  background: #fcbd89;
  width: 80%;
  display: block;
  position: relative;
  top: 0px;
  left: 10%;
}

/* Mobile Nav */

.menu {
  display: none;
  cursor: pointer;
  font-size: 2em;
  color: #eee;
}

.overlay {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 10vh;
  background-color: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.5s ease 0s;
}

.overlay--active {
  height: 100vh;
  left: 0;
}

.menu--close {
  font-size: 60px;
  font-size: 60px;
}

.header--mobile {
  background-color: rgba(0, 0, 0, 0.4);
}
  
.overlay__content {
  display: flex;
  height: 100vh;
  width: 100vw;
  padding-top: 0;
  padding-left: 0;
  padding-bottom: 20vh;
  padding-right: 0;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  overflow: hidden;
}

.overlay_item,
.overlay a {
  padding: 15px 30px;
  font-size: 1.5em;
  border-radius: 50px;
  display: block;
  transition: all 0.3s ease 0s;
}

.overlay_item:hover,
.overlay_item:focus {
  color: #eee;
  letter-spacing: 1px;
}

.overlay_item::after {
  content: "";
  height: 1px;
  background: #fcbd89;
  width: 80%;
  display: block;
  position: relative;
  top: 0px;
  left: 10%;
  opacity: 0;
  transform: scaleX(0%);
  transition: transform 0.4s ease-in-out, opacity 0.4s linear, left 0.4s ease-in-out;
}

.overlay_item:hover::after {
  transform: scaleX(100%);
  opacity: 0.6;
  left: 10%;
}

/* ------ Footer ------ */

#footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  /*height: 200px;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px 0;
  background-color: #fff;
  border-top: 3px solid #b19d86;
}

#footer p {
  margin-top: 20px;
  font-size: 0.7em;
  color: #222;
}

#footer .contatti-footer {
  display: flex;
  width: 80%;
  align-items: center;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  text-decoration: none;
  font-size: 0.9em;
}

.social-link img {
  height: 15px;
  width: 15px;
  opacity: 0.7;
  margin: 3px 10px 5px 20px;
}

.social-link:hover {
  text-decoration: underline;
}

.divider {
  content: "";
  height: 2px;
  background: #b19d86;
  width: 100%;
  display: block;
  position: relative;
  top: 0;
  left: 0;
}

@media screen and (max-height: 600px) {

  header {
    height: 60px;
  }

  .logo img {
    padding-top: 0;
    height: 56px;
    width: 100% - 105px;
  }

  .overlay a {
    font-size: 1.2em;
  }

  .menu--close {
    font-size: 40px;
  }

  .menu {
    font-size: 1.5em;
    top: 0;
  }
}

@media screen and (max-width: 1200px) {
  .nav_item,
  .cta,
  .overlay__content a {
    font-size: 1.1em;
    text-decoration: none;
    text-align: center;
  }

  body {
    font-size: 1em;
  }
  .nav__links {
    width: 60vw;
  }

  #footer {
    height: auto;
  }

  #footer .contatti-footer {
    width: 100%;
    flex-direction: column;
  }

  .social-link img {
    margin: 3px 10px 5px 0;
  }

  .titolo {
    font-size: 5em;
  }
}

@media screen and (max-width: 800px) {
  .nav__links,
  .cta {
    display: none;
  }
  .menu {
    display: initial;
  }

  .menu--close {
    font-size: 60px;
  }

  .logo img {
    width: 100%;
    object-fit: contain;
  }

  .titolo {
    font-size: 4em;
  }
}