#header {
  width: 100%;
  height: 50vh;
  background-image: url("../img/home.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;
}

#header h1 {
  font-size: 80px;
  text-align: center;
  color: var(--color-white);
}

#contatti {
  width: 80%;
  height: 500px;
  padding-top: 50px;
  margin: auto;

  display: flex;
  flex-direction: row;
}

.contact-title {
  width: 100%;
  padding-top: 50px;
}

.contact-title h1 {
  font-size: 35px;
  text-align: center;
}

#contatti .items {
  width: 50%;
  height: 100%;
  margin: auto;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  padding-left: 50px;
  padding-top: 20px;
}

#contatti .items .item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 70px;
}

#contatti .items .item .text a {
  color: var(--color-link);
  font-weight: normal;
  font-size: 21px;
  text-decoration: underline;
}

#contatti .items .item .text p {
  color: var(--color-text);
  font-weight: normal;
  font-size: 21px;
}

#contatti .items .item .icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contatti .map {
  width: 50%;
  height: 100%;

  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

@media screen and (max-width: 768px) {
  #header {
    background-attachment: scroll; 
    height: 40vh;
  }

  #header h1 {
    font-size: 40px;
  }

  .contact-title {
    padding-top: 30px;
  }

  .contact-title h1 {
    font-size: 22px;
    padding: 0 15px;
  }

  #contatti {
    flex-direction: column;
    height: auto;
    width: 90%;
    gap: 30px;
    margin-bottom: 50px;
  }

  #contatti .map {
    width: 100%;
    justify-content: center;
    height: auto;
  }

  #contatti .map iframe {
    width: 100%;
    height: 250px;
  }

  #contatti .items {
    width: 100%;
    padding-left: 0;
    align-items: center;
  }

  #contatti .items .item {
    width: 100%;
    justify-content: flex-start;
    padding: 5px 15px;
  }

  #contatti .items .item .text a,
  #contatti .items .item .text p {
    font-size: 18px;
  }
}
