@font-face {
    font-family: "HelveticaNeue-Medium";
    src: url("../fonts/HelveticaNeue-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "MIcons";
    src: url("../fonts/MIcons.ttf") format("truetype");
}

html{
  scroll-behavior: smooth;
}

html, body{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: HelveticaNeue-Medium;
  background-color: #F9F9F9;
  display: flex;
  flex-direction: column;
}

header{
  width: 100%;
  height: 80px;
  position: fixed;
  z-index: 999;
  background-color: #E4E4E4;
  display: flex;
}

header nav{
  text-align: center;
  display: flex;
  width: calc(100% - 220px);
}

header nav .container{
  width: 100%;
  height: 80px;
  display: inline-block;
  float: left;
}

.logo {
  display: inline-block;
  float: left;
  margin-top: 9px;
}

#logo-container{
  height: 80px;
  width: 220px;
  margin: 0;
}

header nav ul{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  list-style: none;
  height: inherit;
  margin: 0;
  padding: 0;
  align-items: center;
  visibility: visible;
}

header nav ul li{
  height: 80px;
  width: 22%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

header nav ul li span{
  display: none;
}

header nav ul li a{
  color: black;
  font-family: HelveticaNeue-Medium;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px;
}

header nav ul li:hover{
  cursor: pointer;
}

header nav ul li a:hover{
  color: #fec40e;
}

header nav ul li:hover ul{
  visibility: visible;
}

header nav ul li ul{
  visibility: hidden;
  width: 100%;
  background-color: #E4E4E4;
  height: 50px;
  position: absolute;
  margin-top: 60px;
  left: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

header nav ul li ul li{
  display: flex;
  height: 50px;
  padding: 0;
  width: auto;
  padding: 0 3%;
}

header nav ul li ul li:hover{
    color: #fec40e;
}

header nav ul li ul li a{
  white-space: nowrap;
}

header button{
  width: 10%;
  height: 80px;
  display: inline-block;
  background: none;
  border: none;
  font-size: 25px;
  font-weight: bold;
}

header button:hover{
  color: #fec40e;
  cursor: pointer;
}

#hamburger{
  display: none;
}

#search{
  width: 10%;
}

#closebtn {
  display: none;
}


@media screen and (max-width: 100vh) {

  header{
    height: 150px;;
    display: flex;
    align-items: center;
  }

#logo-container{
  height: auto;
  width: 80%;
  height: 100%;
  display: flex;
  align-items: center;
  }

  #logo{
    width: 140%;
    margin-left: 5%;
  }

  #content-wrap{
    padding-top: 0;
    margin-top: 70px;
    padding-bottom: 104px;
  }

  #hamburger, #search{
    display: flex;
    left: 0;
    font-size: 3em;
    width: 20%;
    align-items: center;
    justify-content: center;
  }

  #closebtn{
    display: block;
    margin-right: 10px;
    color: black;
  }

  #closebtn:hover{
    color: white;
  }

  .headerbtn-container{
    width: 100%;
    height: 80px;
    display: block;
    background-color: #EAAE00;
  }

  header nav{
    display: none;
  }

  header nav .container{
    align-items: center;
    width: calc(100% - 100px);
  }

  header button{
    width: 50px;
    float: right;
  }

  header .logo{
    max-width: 100%;
    margin-top: 0;
  }

  header nav ul{
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #fec40e;
  }

  header nav ul li{
    height: 10%;
    width: 100%;
    margin: 0;
  }

  header nav ul li a{
    display: flex;
    color: black;
    width: 40%;
    height: 10%;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-right: 0;
    padding-left: 30px;
    padding-bottom: 0;
    font-size: 2em;
  }

  header nav ul li a:hover{
    color: white;
  }

  header nav ul li span{
    display: flex;
    font-family: MIcons;
    font-weight: bold;
    color: black;
    width: 60%;
    height: 10%;
    font-size: 2em;
    margin: 0;
    padding-right: 30px;
    align-items: center;
    justify-content: flex-end;
  }

  header nav ul li span:hover{
    color: white;
    cursor: pointer;
  }

  header nav ul li ul{
    display: none;
    flex-direction: column;
    justify-content: center;
    width: calc(100vw - 150px);
    margin: 0;
    padding: 0;
    height: 100%;
    top: 0;
  }

  header nav ul li ul li{
    display: block;
    margin: 0;
  }
}

#popup{
  width: 100%;
}

#popup-container {
  bottom: 0;
  z-index: 100;
  position: fixed;
  display: flex;
  height: auto;
  width: 100%;
  padding: 1% 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0, 0.9);
  font-size: 13px;
}

#popup-container p{
  color: white;
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
  text-align: center;
}

.popup-btn {
  width: auto;
  text-align: center;
  font-family: HelveticaNeue-Medium;
  font-size: 15px;
  color: #ffff;
  background-color: #E5E5E570;
  border: none;
  margin: auto 10px;
  padding: 10px 20px;
  cursor: pointer;
}

.popup-btn:hover {
  background-color: #E5E5E5D5;
}

#cookies{
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 1000;
  padding: 5%;
  background-color: rgba(0,0,0, 0.9);
  display: none;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

#cookies span{
  position: fixed;
  top: 2%;
  right: 2%;
}

#cookies h{
  width: 90%;
  color: white;
  height: auto;
  margin: 0;
}

#cookies p{
  width: 90%;
  text-align: justify;
  color: white;
  font-size: 0.9em;
  margin: 0;
}

@media screen and (max-width: 100vh) {

  #popup-container{
    height: auto;
  }
}


.overlay {
  display: none;
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  flex-wrap: wrap;
}

.closebtn {
  position: absolute;
  top: 5%;
  right: 10%;
  font-size: 60px;
  width: auto;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closebtn:hover {
  color: #fec40e;
}

.overlay form{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.overlay input[type=text] {
  padding-left: 10px;
  font-size: 17px;
  border: none;
  float: left;
  width: 40%;
  height: 50px;
  background-color: white;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.overlay input[type=text]:hover {
  background: #f1f1f1;
}

.overlay button {
  float: right;
  width: 20%;
  height: 50px;
  background: #ddd;
  font-size: 17px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.overlay button:hover {
  background-color: #fec40e;
  color: black;
}





#page-container {
  position: relative;
  height: auto;
}

#content-wrap {
  padding-top: 80px;
  padding-bottom: 104px;
}


footer{
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  background-color: #2b2b2b;
  text-align: center;
}

footer nav{
  width: 100%;
  display: block;
  margin-top: 20px;
}

footer span{
  width: 100%;
  display: block;
  color: #ffff;
  font-size: 11px;
  font-weight: lighter;
  margin-top: 20px;
}

footer nav a{
  color: #ffff;
  font-size: 12px;
  padding: 0 4%;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.1s;
}

footer nav a:hover{
  color: #fec40e;
}

.openpreventivo{
  text-align: center;
  display: block;
  position: fixed;
  bottom: 10%;
  right: 5%;
  z-index: 1;
  background-color: rgba(254, 198, 16, 1);
  padding: 2% 3%;
  border: none;
  text-transform: uppercase;
  font-size: 100%;
  font-weight: bold;
  color: #303030;
  cursor: pointer;
}

.openpreventivo:hover{
  background-color: rgba(223, 171, 1, 1);
}

.preventivoForm {
  height: auto;
  width: 70%;
  display: flex;
  position: fixed;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 1;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,0, 0.9);
  display: none;
}

.closepreventivo{
  font-size: 4em;
  width: 1em;
  height: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.closepreventivo:hover{
    cursor: pointer;
    color: #fec40e;
}

.preventivo-content {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 85%;
  text-align: center;
  margin: auto;
}

.preventivo-content textarea[type=text] {
  padding: 15px;
  font-size: 17px;
  border: none;
  width: 85%;
  background: white;
  margin: 1% 0;
  font-family: HelveticaNeue-Medium;
  vertical-align: center;
}

.preventivo-content button{
  font-size: 1em;
  font-weight: bold;
  display: inline block;
  border: none;
  margin: 5% auto;
  padding: 3% 7%;
  cursor: pointer;
}

.preventivo-content button:hover{
  background-color: rgba(254, 198, 16, 1);
}

.preventivo-content p{
  color: rgba(254, 198, 16, 1);
  font-size: 140%;
}

#mail-result{
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0, 0.9);
}

#mail-result span{
  position: absolute;
  top: 2%;
  right: 2%;
  font-size: 4em;
  width: 1em;
  height: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

#mail-result span:hover{
  cursor: pointer;
  color: #fec40e;
}

#mail-result p{
  color: white;
}
