/* Hero Section Styles for Duomo Pizza & Cucina */

.hero-section {
  height: 290px; /* Ridotto di 1rem per compensare il padding */
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Colore nero uniforme */
  margin: 0; /* Rimuovo il margine per adattarla alla navbar */
  display: block; /* Assicura che occupi lo spazio corretto */
  padding: 0.5rem 0; /* Aggiunge spazio interno sopra e sotto */
  box-sizing: border-box; /* Include il padding nell'altezza totale */
}

.carousel-slide img {
  width: 722px;
  height: 290px; /* Altezza uguale alla hero section */
  object-fit: cover;
  object-position: right center;
  display: block;
  order: 2; /* Immagine a destra */
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Carousel Slides */
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.carousel-slide.active {
  opacity: 1;
}

/* Overlay scuro */
.hero-overlay {
  display: none; /* Nascondiamo completamente l'overlay */
}

/* Contenuto testuale a sinistra */
.hero-content {
  position: relative;
  text-align: left;
  z-index: 10;
  width: 45%;
  padding: 0 var(--space-md);
  order: 1; /* Testo a sinistra */
  margin-bottom: 2rem; /* Aggiunto per assicurare spazio sotto il contenuto */
}



/* Titolo principale - altezza fissa */
.hero-title {
  color: #FFFFFF;
  font-family: var(--font-family);
  font-weight: var(--font-weight-black);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
  min-height: 2.6rem;
}

/* Sottotitolo - altezza fissa */
.hero-subtitle {
  color: #FFFFFF;
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: 1.3rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  min-height: 1.8rem;
}

/* Descrizione - altezza fissa */
.hero-description {
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-family);
  font-weight: var(--font-weight-light);
  font-size: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  min-height: 2.2rem;
}

/* CTA Container - sotto i sottotitoli */
.hero-cta-container {
  display: flex;
  gap: var(--space-lg);
  opacity: 1;
  justify-content: flex-start;
  margin-top: var(--space-sm);
}

/* CTA Primario */
.cta-primary {
  padding: 10px 24px;
  background: url('../images/elementisito/cta.png') center/cover;
  border: none;
  border-radius: 6px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: 0.9rem;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  white-space: nowrap;
}

.cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(234, 165, 44, 0.5);
}

/* CTA Secondario */
.cta-secondary {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid #FFFFFF;
  border-radius: 6px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: 0.9rem;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.cta-secondary:hover {
  background: #FFFFFF;
  color: var(--color-primary);
}

/* Indicatori carousel */
.carousel-indicators {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.indicator {
  width: 12px;
  height: 3px;
  background: url('../images/elementisito/under.png') center/cover;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  padding: 0;
}

.indicator.active {
  width: 40px;
  opacity: 1;
}

.indicator:focus {
  outline: none;
  box-shadow: none;
}

/* Tablet styles */
@media (min-width: 768px) {
  .hero-section {
    height: 340px; /* Ridotto di 1rem per compensare il padding */
  }
  
  .carousel-slide img {
    height: 340px; /* Altezza uguale alla hero section */
  }
  
  .hero-title {
    font-size: 2.3rem;
    min-height: 2.9rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    min-height: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    min-height: 2.4rem;
  }
  
  .cta-primary {
    padding: 12px 28px;
    font-size: 1rem;
  }
  
  .cta-secondary {
    padding: 12px 28px;
    font-size: 1rem;
  }
  
  .hero-cta-container {
    gap: var(--space-xl);
  }
  
  .carousel-indicators {
    bottom: 1.25rem;
    gap: 0.75rem;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .hero-section {
    height: 390px; /* Ridotto di 1rem per compensare il padding */
  }
  
  .carousel-slide img {
    height: 390px; /* Altezza uguale alla hero section */
  }
  
  .hero-title {
    font-size: 2.5rem;
    min-height: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
    min-height: 2.2rem;
  }
  
  .hero-description {
    font-size: 1.2rem;
    min-height: 2.6rem;
  }
  
  .cta-primary {
    padding: 14px 32px;
    font-size: 1.1rem;
  }
  
  .cta-secondary {
    padding: 14px 32px;
    font-size: 1.1rem;
  }
  
  .hero-cta-container {
    gap: var(--space-2xl);
  }
  
  .carousel-indicators {
    bottom: 1.75rem;
    gap: 1rem;
  }
}