#home {
  width: 100%;
  height: 100vh;
  background-image: url("../img/home.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#home .text {
  max-width: 1500px;
  width: calc(100% - 300px);
  color: var(--color-white);
  margin: auto;
  margin-top: 50vh;
  position: relative;
  z-index: 1 !important;
}

#home .text h3 {
  font-weight: 200;
  margin: 0 !important;
  font-size: 20px;
}

#home .text h1 {
  font-size: 80px;
  margin: 0 !important;
}

#home .text h2 {
  margin: 0 !important;
  font-size: 25px;
  font-weight: 300;
}

#about {
  width: 100%;

  background-color: var(--color-white);
}

#about .section {
  max-width: 1500px;
  width: 80%;
  margin: auto;
  padding: 10px;
  margin-top: 30px;
}

#about .profilo {
  margin-top: 60px;
}

#about .profilo h2 {
  font-size: 50px;
  text-align: center;
}

#about .profilo p {
  font-size: 22px;
  text-align: justify;
  line-height: 1.5em;
}

#about .settore {
  display: flex;
  flex-direction: row;
}

#about .settore .settore-left {
  flex: 1;
}

#about .settore .settore-left h2 {
  font-size: 50px;
  padding: 0 !important;
  margin: 0 !important;
}

#about .settore .settore-left p {
  font-size: 22px;
  text-align: justify;
  line-height: 1.5em;
}

#about .settore .settore-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


#about .settore .settore-right .image {
  width: 650px;
  height: 450px;
}

#about .settore .settore-right .image img {
  width: 100%;
  height: 100%;
}

#about .invitalia {
  display: flex;
  flex-direction: row;
}

#about .invitalia .invitalia-left {
  flex: 0.35;
}

#about .invitalia .invitalia-right {
  flex: 0.65;
}

#about .invitalia .invitalia-left .image {
  width: 400px;
  height: 150px;
}

#about .invitalia .invitalia-left .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about .invitalia .invitalia-right h2 {
  font-size: 50px;
  padding: 0 !important;
  margin: 0 !important;
}

#about .invitalia .invitalia-right p {
  font-size: 22px;
  text-align: justify;
  line-height: 1.5em;
}

#about .section {
  width: 100%;
}

#about .logo-section {
  margin: auto;
  margin-top: 100px;
  max-width: 900px;
  width: 100%;
  height: 200px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#about .logo-section p {
  width: 60%;
  font-size: 21px;
  text-align: center;
}

#about .logo-section .logo {
  width: 60%;
  height: 100%;
}
#about .logo-section .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

@media (max-width: 768px) {
  #home {
    width: 100%;
    height: auto;
    background-attachment: scroll;
    justify-content: center;
    padding: 200px 20px;
    text-align: center;
  }

  #home .text {
    width: 100%;
    margin-top: 0;
  }

  #home .text h1 {
    font-size: 40px;
  }

  #home .text h2 {
    font-size: 18px;
  }

  #home .text h3 {
    font-size: 16px;
  }

  #about .profilo {
    padding: 0;
    width: 85%;
  }

  #about .profilo h2 {
    font-size: 30px;
  }

  #about .profilo p,
  #about .settore .settore-left p,
  #about .invitalia .invitalia-right p {
    font-size: 18px;
  }

  #about .settore,
  #about .invitalia {
    flex-direction: column;
  }

  #about .settore .settore-right,
  #about .invitalia .invitalia-left,
  #about .invitalia .invitalia-right {
    width: 100%;
    justify-content: center;
  }

  #about .settore .settore-right .image,
  #about .invitalia .invitalia-left .image {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  #about .logo-section {
    height: auto;
  }

  #about .logo-section p,
  #about .logo-section .logo {
    width: 100%;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  #home .text {
    animation: fadeIn 1.2s ease-in-out both;
  }
}
