/* ==========================================
   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;
  background-color: #04211A;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Altezza differenziata desktop */
.page-hero.layout-split {
  min-height: calc(100vh - 55px);
}
.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: 3rem;
  font-weight: 700;
  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;
}
.page-hero .hero-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: min(40vw, 600px); /* ✅ si adatta allo schermo, ma non supera i 500px */
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background-color: #04211A;
}
.page-hero .hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-button-wrap {
  margin-top: 2.5rem;
  text-align: center; /* Rimuovi se layout già gestito */
}
.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;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.hero-button:hover {
  background-color: #ffffff !important;
  transform: translateY(-2px);
}
/* ==========================================
   MOBILE – HERO CON LAYOUT SEPARATO
========================================== */
@media (max-width: 768px) {
  .page-hero {
    display: flex;
    padding: 1rem;
    flex-direction: column;
    position: relative;
  }
.page-hero.layout-split {
  min-height: calc(100dvh - 35px);
}
  .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;
    padding-top: 2rem;
  }
  .page-hero.layout-centered .hero-inner {
    justify-content: center;
  }
  .hero-top {
    display: flex;
    flex-direction: column;
  }
  .hero-bottom {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
  }
  .page-hero .page-title {
    font-size: 2rem;
  }
  .page-hero .page-h2 {
    font-size: 1.6rem;
    color: #c2380c;
  }
  .page-hero .page-subtitle {
    font-size: 1.2rem;
  }
  .hero-button-wrap {
    margin-top: 1rem;
  }
  .page-hero .hero-icon svg {
    width: 48px;
    height: 48px;
  }
  .page-hero .hero-image {
    width: 100%;        
    max-width: none;   
    align-self: center;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .page-hero .page-title {
    font-size: 4rem;
  }
  .page-hero .page-subtitle {
    font-size: 2rem;
  }
  .page-hero .page-h2 {
    font-size: 3rem;
  }
  .page-hero .container {
    max-width: 90%;
  }
  .hero-button {
  font-size: 2rem;
}
}
/* Prevenzione overflow orizzontale */
body {
  overflow-x: hidden;
}