/* ==========================================================================
   HERO PADDING - RESPONSIVE SYSTEM
   Single source of truth for all hero section padding
   Breakpoints: 768px (tablet), 992px (desktop)
   ========================================================================== */

/* BASE: Mobile-first approach - applies to all screens */
.hero-section {
  padding: 2rem 0;
}

.hero-section .container,
.hero-overlay .container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Internal page heroes (servizi, codici errore) - mobile */
.page-servizio-layout .hero-section--internal,
.codice-errore-layout .hero-section--internal {
  min-height: 400px;
  padding: 2rem 0;
}

/* Mobile typography adjustments */
.hero-section .entry-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-section .entry-content-hero {
  font-size: 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   TABLET (768px - 991px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    padding: 2.5rem 0;
  }

  .hero-section .container,
  .hero-overlay .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .page-servizio-layout .hero-section--internal,
  .codice-errore-layout .hero-section--internal {
    min-height: 450px;
    padding: 2.5rem 0;
  }

  .hero-section .entry-title {
    font-size: 2.5rem;
  }

  .hero-section .entry-content-hero {
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   DESKTOP (992px and up)
   ========================================================================== */
@media (min-width: 992px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-section .container,
  .hero-overlay .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .page-servizio-layout .hero-section--internal,
  .codice-errore-layout .hero-section--internal {
    min-height: 500px;
    padding: 3rem 0;
  }

  .hero-section .entry-title {
    font-size: 3rem;
  }

  .hero-section .entry-content-hero {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   SPECIAL CASES - Hero with image overlay
   ========================================================================== */
.page-servizio-layout .hero-overlay,
.codice-errore-layout .hero-overlay {
  padding: 0;
  min-height: inherit;
}

.page-servizio-layout .hero-overlay .container,
.codice-errore-layout .hero-overlay .container {
  width: 100%;
  max-width: 1200px;
}

/* ==========================================================================
   FIX: Prevent content overflow on small mobile devices
   ========================================================================== */
@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 0;
  }

  .page-servizio-layout .hero-section--internal,
  .codice-errore-layout .hero-section--internal {
    min-height: 350px;
  }

  .hero-section .entry-title {
    font-size: 1.75rem;
  }
}
