/* ==========================================================
   HERO BLOCK — DEFINITIVO
   Isolato, full width, compatibile con layout globale
   ========================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ----------------------------------------------------------
   BACKGROUND
   ---------------------------------------------------------- */

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Parallax via classe dal model */
.hero.is-parallax .hero__bg {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero.is-parallax .hero__bg {
        background-attachment: scroll;
    }
}

/* ----------------------------------------------------------
   OVERLAY
   ---------------------------------------------------------- */

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ----------------------------------------------------------
   CONTENT
   ---------------------------------------------------------- */

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__inner {
    text-align: center;
}

/* ----------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------- */

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

.hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #ffffff;
}

/* ----------------------------------------------------------
   CTA
   ---------------------------------------------------------- */

.hero__cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero__cta:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ----------------------------------------------------------
   ALIGNMENT
   ---------------------------------------------------------- */

.hero--align-left .hero__inner {
    text-align: left;
}

.hero--align-right .hero__inner {
    text-align: right;
}
