/* ── Contenitore principale ──────────────────────────── */
.section-header .header-hero {
  position: relative;
  overflow: hidden;
  /* l'altezza è determinata dall'immagine, non forzata */
}

/* ── Immagine di sfondo: piena larghezza, non ritagliata ─ */
.section-header .header-bg-img {
  display: block;
  width: 100%;
  height: auto;  /* proporzioni naturali → nessun crop */
}

/* Su schermi molto stretti l'immagine diventa troppo bassa:
   si impone una soglia minima accettando un crop minimo   */
@media (max-width: 575px) {
  .section-header .header-bg-img {
    min-height: 120px;
    object-fit: cover;
    object-position: center 30%;
  }
}

/* ── Overlay gradiente ───────────────────────────────── */
.section-header .header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 20, 40, 0.72) 0%,
    rgba(10, 20, 40, 0.45) 45%,
    rgba(0,  0,  0,  0.08) 100%
  );
}

/* ── Layer UI: copre tutta l'area dell'hero ──────────── */
.section-header .header-ui {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.section-header .header-ui a,
.section-header .header-ui button {
  pointer-events: auto;
}

/* ── Testo nel container Bootstrap ───────────────────── */
.section-header .header-content {
  height: 100%;
}

/* ── Testo: ancorato in alto a sinistra ──────────────── */
.section-header .header-text {
  align-self: flex-start;
  padding: 1rem 0;
  max-width: 560px;
}

.section-header .header-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  line-height: 1.1;
}

.section-header .header-subtitle {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin: 0;
}

header.section-header img {
  filter: unset;
}