/* HERO BASE */
.hero {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: fadeInZoom 1.6s ease-out forwards;
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero .overlay {
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* CONTENUTO HERO */
.hero-content {
  position: absolute;
  z-index: 3;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  animation: fadeUpHero 1.2s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes fadeUpHero {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero-title {
  font-size: 70px;
  font-family: 'Rock Salt', cursive;
  margin-bottom: 30px;
  color: #fff;
  transform: rotate(-8deg);
  line-height: 1.5;
}

.hero-button {
  background-color: rgba(0, 0, 0, 0.75);
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  font-weight: 500;
  font-size: 25px;
  padding: 20px 60px;
  border-radius: 60px;
  transition: background 0.3s;
  margin-top: 30px;
  display: inline-block;
}

.hero-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* FULL BANNER SECTIONS */
.full-banner {
  position: relative;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* allineamento a sinistra */
  padding-left: 10%;
  background-size: cover;
  background-position: center;
  text-align: left;
}

.banner-classe {
  background-image: url('/assets/uploads/hero1.jpg');
  background-color: rgba(0, 0, 0, 0.25);
  background-blend-mode: darken;
  background-attachment: fixed;
  background-size: cover;
}

.banner-contatti {
  background-image: url('/assets/uploads/hero2.jpg');
  background-color: rgba(0, 0, 0, 0.25);
  background-blend-mode: darken;
  background-attachment: fixed;
  background-size: cover;
}

.banner-social {
  padding-left: 10%;
  padding-right: 10%;
  margin-top: 20px;
  margin-bottom: 50px;
}

.banner-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.banner-content p {
  font-size: 20px;
  margin-bottom: 50px;
  max-width: 700px;
}

.banner-button {
  background-color: #ffffff !important;
  color: #022544 !important;
  font-size: 20px;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.banner-button:hover {
  background-color: #f0f0f0 !important;
}


/* Responsive */
@media (max-width: 1024px) {
  .banner-classe {
    background-attachment: scroll;
  }

  .banner-contatti {
    background-attachment: scroll;
  }
}

@supports (-webkit-touch-callout: none) {
  .banner-classe {
    background-attachment: scroll !important;
  }
.banner-contatti {
    background-attachment: scroll !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 50px;
  }

  .hero-button {
    font-size: 20px;
  }

  .banner-content h2 {
    font-size: 35px;
    max-width: 90%;
  }

  .banner-content p {
    max-width: 90%;
  }

  .full-banner {
    padding-left: 5%;
    height: 90vh;
  }

  .banner-social {
    padding-left: 2%;
    padding-right: 2%;
margin-bottom: 30px;
  }

  .banner-social iframe {
    height: 400px;
  }
}