html,
body{
  margin: 0 !important;
  max-height: 100vh;
  overflow: hidden;
}

body{
  background-image: url("./background.jpeg")
}

#overlay{
  background-color: rgba(86,62,53,.8);
  z-index: 2;
  height: 100vh;
  width: 100vw;
}

#header{
  position: relative;
  background-color: rgba(86,62,53,.98);
  width: 100vw;
  border-bottom: 5px solid #fbf2da;
  z-index: 3;
}

#header .logo{
  display: block;
  margin-left: 45%;
  max-height: 100px;
  padding: 2em 0;
}

#header #intestazione{
  position: absolute;
  top: 0;
  left: 0;
  font-size: 70px;
  text-align: center;
  width: 100vw;
}

#nome{
  position: absolute;
  left: 33%;
  top: -25px;
  color: #fbf2da;
}

#cognome{
  position: absolute;
  left: 52%;
  top: -25px;
  color: #fbf2da;
}

#overlay{
  position: relative;
}

#overlay #ruolo{
  padding: 0;
  margin:0;
  padding-top: .3em;
  text-align: center;
  font-size: 40px;
  color: #fbf2da;
  font-family: 'Lora', serif;
  font-style: italic;
}

#manutenzione{
  text-align: center;
  font-size: 70px;
  color: #fbf2da;
  text-transform: uppercase;
  letter-spacing: 7px;
  font-weight: bold;
  font-family: 'Lora', serif;
}

#overlay .info-block{
  display: block;
  position: absolute;
  width: 300px;
  top: 30%;
  background-color: rgba(41, 30, 26, 0.7);
  border: 3px solid rgb(41,30,26);
  border-radius: 5px;
  padding: 2em 0;
  transform: translateX(-50%);
  text-align: center;
  transition: background-color 500ms linear;
}

#overlay .info-block:hover{
  background-color: rgba(41, 30, 26);
}

#overlay .info-block p{
  color: #fbf2da;
  font-family: 'Poppins', sans-serif;
}

#overlay .info-block a{
  color: #fbf2da;
  text-decoration: none;
}

#overlay .info-block .important-info{
  font-size: 20px;
  font-weight: bold;
}

#telefono{
  left: 25%
}

#mail{
  left: 50%;
}

#indirizzo{
  left: 75%;
}

@media only screen and (max-width: 1600px) {
  #cognome{
    left: calc(50%);
    transform: translateX(20%);
  }

  #nome{
    left: calc(50% - 87px);
    transform: translateX(-100%);
  }
}

@media only screen and (max-width: 1400px) {
  #overlay .info-block{
    top: 35%;
  }
}

@media only screen and (max-width: 1300px) {
  html,body{
    overflow-y: auto;
    max-height: unset;
    height: 100%;
  }

  #overlay{
    height: 100%;
  }

  #overlay #ruolo{
    padding-top: 0px;
    font-size: 30px;
  }

  #manutenzione{
    font-size: 50px;
    margin: 0;
  }

  #overlay .info-block{
    padding: .5em 0;
  }

  #telefono,
  #mail,
  #indirizzo{
    left: 50%;
    transform: translateX(-50%);
  }

  #telefono{
    top: 13% !important;
  }

  #mail{
    top: 40% !important;
  }

  #indirizzo{
    top: 67% !important;
  }
}

@media only screen and (max-width: 1100px) {
  #cognome{
    left: calc(50% + 87px);
    transform: translateX(0%);
  }

  #nome{
    left: calc(50% - 87px);
    transform: translateX(-100%);
  }

  .info-block p{
    margin: 0;
    padding: 0;
  }
}

@media only screen and (max-width: 900px) {
  #header #intestazione{
    font-size: 60px;
  }
  
  #cognome{
    top: -10px;
    left: calc(50% + 87px);
    transform: translateX(0%);
  }

  #nome{
    top: -10px;
    left: calc(50% - 87px);
    transform: translateX(-100%);
  }
}

@media only screen and (max-width: 800px) {
  .logo{
    margin-left: calc(0% + 50px) !important;
  }

  #nome,
  #cognome{
    left: 0;
    width: 100%;
    transform: translateX(-45%);
    text-align: right;
    padding-left: 1em
  }

  #cognome{
    left:  270px;
  }

  #header #intestazione{
    font-size: 60px;
  }


}



@media only screen and (max-width: 700px) {

  #nome,
  #cognome{
    transform: translateX(-50%);
  }

  #ruolo{
    font-size: 20px !important;
  }

  #manutenzione{
    font-size: 30px;
  }
}


@media only screen and (max-width: 650px) {
  #header #intestazione{
    font-size: 40px;
  }

  #nome, #cognome{
    top: 20px !important;
    transform: translateX(-40%);
  }


  #cognome{
    left: 180px;
  }

  
}


@media only screen and (max-width: 500px) {
  #ruolo{
    font-size: 16px !important;
  }

  #manutenzione{
    font-size: 20px;
  }

  .logo{
    margin-left: calc(0% + 10px) !important;
  }

  #header #intestazione{
    font-size: 40px;
  }

  #nome, #cognome{
    padding-left: 0.2em;
  }

  #nome{
    top: 0px !important;
  }

  #cognome{
    top: 40px !important;
  }

  #cognome,
  #nome{
    right: -150px;
    left: auto;
  }

}


@media only screen and (max-width: 400px) {
  #cognome,
  #nome{
    right: -130px;
    left: auto;
  }

}
