/* ==========================================
   HERO STATICHE - FULL WIDTH REALE
========================================== */

/* Testi chiari su sfondo scuro */
.page-hero h1,
.page-hero h2,
.page-hero h4,
.page-hero h5,
.page-hero h6,
.page-hero p {
  color: #ffffff;
}

/* Blocco HERO */
.page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #04211A;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Altezza differenziata desktop */
.page-hero.layout-split {
  min-height: 800px;
}

.page-hero.layout-centered {
  min-height: 400px;
}

/* Contenitore interno */
.page-hero .container {
  position: relative;
}

/* Icona SVG */
.page-hero .hero-icon {
  margin-bottom: 1.5rem;
}

.page-hero .hero-icon svg {
  width: 64px;
  height: 64px;
  fill: #c2380c !important;
}

/* Titolo */
.page-hero .page-title {
  font-size: calc(2rem + 1vw);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* Sottotitolo */
.page-hero .page-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* H2 opzionale */
.page-hero .page-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #c2380c;
  margin-top: 1.5rem;
}

/* Immagine decorativa */
.page-hero .hero-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: auto;
  max-height: 100%;
  max-width: 600px;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

.page-hero .hero-image img {
  display: block;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
}

/* Pulsante */
.hero-button-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: #c2380c;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-button:hover {
  background-color: #c93f0f;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.page-hero .page-title,
.page-hero .page-h2,
.page-hero .page-subtitle,
.page-hero .hero-icon,
.page-hero .hero-button-wrap,
.page-hero .hero-button {
  position: relative;
}

/* ==========================================
   MOBILE – HERO CON LAYOUT SEPARATO
========================================== */
@media (max-width: 768px) {
  .page-hero {
    display: flex;
    padding: 2rem 0.1rem 0;
    flex-direction: column;
    position: relative;
  }

  /* Altezza differenziata mobile */
  .page-hero.layout-split {
    min-height: 650px;
  }

  .page-hero.layout-centered {
    min-height: 350px;
  }

  .page-hero .container {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .page-hero .hero-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
  }

  .page-hero.layout-split .hero-inner {
    justify-content: space-between;
  }

  .page-hero.layout-centered .hero-inner {
    justify-content: center;
  }

  .hero-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .page-hero .page-title {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .page-hero .page-h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c2380c;
  }

  .page-hero .page-subtitle {
    font-size: 1.1rem;
  }

  .hero-button-wrap {
    margin-top: 1rem;
  }

  .page-hero .hero-icon svg {
    width: 48px;
    height: 48px;
  }

  .page-hero .hero-image {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 45%;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .page-hero .hero-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
}

/* Prevenzione overflow orizzontale */
body {
  overflow-x: hidden;
}

