/* Oswald: non caricato dal tema (è gestito nel CSS della landing),
   qui viene caricato a livello di blocco come richiesto. */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap');

/* ===== Hero Visual — porting prototipo hero v7 (hero-6-7) ===== */

.hero-visual {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 140px);
    min-height: calc(100svh - 140px);
    padding: 4rem clamp(1.5rem, 3.5vw, 3rem);
    background: linear-gradient(90deg, #fff 0%, #fff 24%, #eff1f5 52%, #d6d6d6 100%);
}

/* Media full-bleed con overlay chiaro a sinistra */
.hero-visual__media {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
}

.hero-visual__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .48) 32%, rgba(255, 255, 255, .14) 58%, rgba(255, 255, 255, 0) 78%),
        linear-gradient(0deg, rgba(255, 255, 255, .08) 0%, transparent 34%);
}

.hero-visual__media img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(76vw, 1920px);
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
}

.hero-visual__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-visual__copy {
    width: min(45vw, 650px);
}

/* Titolo con bordo laterale ink, righe in Oswald */
.hero-visual__title {
    margin: 0 0 1.5rem;
    padding-left: clamp(1rem, 1.7vw, 1.75rem);
    border-left: 6px solid #0a0a0a;
}

.hero-visual__title h1 {
    margin: 0;
    color: #0a0a0a;
    font-family: "Oswald", "League Spartan", sans-serif;
    font-size: clamp(4.25rem, 5.8vw, 6.1rem);
    font-weight: 500;
    line-height: .94;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.hero-visual__title span {
    display: block;
}

.hero-visual__subtitle {
    max-width: 610px;
    margin: 0 0 1.5rem;
    color: #0a0a0a;
    font-family: "League Spartan", sans-serif;
    font-size: clamp(1.225rem, calc(2vw - 2px), 1.675rem);
    font-weight: 300;
    line-height: 1.3;
}

/* CTA teal (override del .btn-primary nero del tema) */
.hero-visual .btn-cta {
    padding: 16px 28px;
    font-family: "League Spartan", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    border-radius: 4px;
}

.hero-visual .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #0c777d;
    --bs-btn-hover-border-color: #0c777d;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #0c777d;
    --bs-btn-active-border-color: #0c777d;
}

/* Reveal on scroll */
.hero-visual [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}

.hero-visual [data-reveal].in {
    opacity: 1;
    transform: translateY(0);
}

.hero-visual__title[data-reveal] {
    transition-delay: .1s;
}

.hero-visual__message[data-reveal] {
    transition-delay: .26s;
}

/* ===== Mobile / tablet: titolo in alto, testo + CTA in basso (v7) ===== */
@media (max-width: 991.98px) {
    .hero-visual {
        display: block;
        min-height: 100vh;
        min-height: max(100svh, 900px);
        padding: 0;
        background: #fff;
    }

    .hero-visual__media {
        background: #fff;
    }

    .hero-visual__media img {
        position: static;
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transform: scale(1.025);
        transform-origin: center top;
    }

    .hero-visual__media::after {
        background: linear-gradient(180deg, transparent 0%, transparent 34%, rgba(0, 0, 0, .24) 47%, rgba(0, 0, 0, .82) 69%, rgba(0, 0, 0, .96) 100%);
    }

    .hero-visual__content {
        min-height: inherit;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .hero-visual__copy {
        position: relative;
        width: 100%;
        min-height: inherit;
    }

    .hero-visual__title {
        position: absolute;
        top: 4.75rem;
        right: 0;
        left: 0;
        max-width: 620px;
        margin-bottom: 0;
        border-left-width: 5px;
    }

    .hero-visual__title h1 {
        font-size: clamp(2.6rem, 7vw, 3.75rem);
    }

    .hero-visual__message {
        position: absolute;
        right: 0;
        bottom: clamp(2.5rem, 7vh, 4.5rem);
        left: 0;
        max-width: 36rem;
    }

    .hero-visual__subtitle {
        color: #fff;
        font-size: clamp(1rem, 2.2vw, 1.25rem);
    }
}

@media (max-width: 767.98px) {
    .hero-visual {
        min-height: max(820px, 155vw);
    }

    .hero-visual__media img {
        transform: scale(1.035);
    }

    .hero-visual__title {
        top: 4.75rem;
    }

    .hero-visual__title h1 {
        font-size: clamp(2.35rem, 10.2vw, 3.2rem);
    }

    .hero-visual__message {
        bottom: 3rem;
    }

    .hero-visual__subtitle {
        max-width: 36rem;
        margin-bottom: 1rem;
        font-size: clamp(1.125rem, 4.8vw, 1.3rem);
        line-height: 1.25;
    }

    .hero-visual .btn-cta {
        padding: 13px 18px;
        font-size: .7rem;
        letter-spacing: .12em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
