/* Hero banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 30vh;
  overflow: hidden;
}

/* Immagine singola */
.hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.5px);
  display: block;
  z-index: 1;
}

/* Titolo */
.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  white-space: nowrap;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

/* Titolo */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  white-space: nowrap;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

/* Pattern background dietro immagine */
.pattern-background {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/img/logo/patternLogo.webp'); /* sostituisci con il tuo logo */
  background-repeat: repeat;
  background-size: 50px 50px;
  background-position: center;
  filter: blur(1.2px);
  z-index: 0;
  pointer-events: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .hero-banner {
    height: 30vh;
  }
  .pattern-background {
    background-size: 60px 60px;
  }
  .hero-title {
    font-size: 2rem;
    white-space: normal;
    line-height: 1.2;
    max-width: 90%;
  }
}

/* Per mostrare solo il pattern senza immagine */
.hero-banner.pattern-only .hero-img,
.hero-banner.pattern-only .hero-blur-overlay {
  display: none;
}