/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Arial', sans-serif;
}

/* HERO FULLSCREEN */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;

  /* IMMAGINE DI SFONDO */
  background-size: 700px auto;
  background-repeat: repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  color: #ffffff;
  overflow: hidden;
}

/* OVERLAY SCURO */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* CONTENUTO SOPRA L’OVERLAY */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
}

/* TESTI */
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.9;
  line-height: 1.6;
}



/* VARIANTI DI BACKGROUND */
.bg-1 { background-image: url("images/bg.png"); }

/* SEZIONI MULTIPLE */
.section {
  height: 100vh;
  position: relative;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* ANIMAZIONE FADE IN */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero,
.section {
  animation: fadeIn 1.2s ease forwards;
}

.hero-image {
  max-width: 60vw;      /* grandezza responsiva */
  max-height: 60vh;
  object-fit: contain;

  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

/* .hero-image {
  animation: float 6s ease-in-out infinite;
} */

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.hero-image {
  max-width: 400px;
}

/* TOP BAR */
.top-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 40px;            /* distanza tra i loghi */

  padding: 20px;
  z-index: 10;
}


/* LOGHI */
.logo {
  height: 50px;
  width: auto;

  /* filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); */
}

/* .top-bar {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
} */

@media (max-width: 768px) {
  .logo {
    height: 36px;
  }

  .top-bar {
    padding: 15px 20px;
  }
}




/* MOBILE FIX */
@media (max-width: 768px) {
  .hero {
    background-position: top;
  }
}

