/* Home hero: lightweight, responsive replacement for the legacy slider. */
.bella-hero {
    background: #171717;
    cursor: grab;
    height: min(66.42vw, 890px);
    min-height: 420px;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    width: 100%;
}

.bella-hero.is-dragging {
    cursor: grabbing;
}

.bella-hero-slide {
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 900ms ease;
    visibility: hidden;
}

.bella-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.bella-hero-slide::after {
    background: rgba(0, 0, 0, 0.38);
    content: "";
    inset: 0;
    position: absolute;
}

.bella-hero-slide img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.bella-hero-slide p {
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: clamp(22px, 2.3vw, 43px);
    font-weight: 700;
    left: 50%;
    line-height: 1.2;
    margin: 0;
    max-width: min(860px, 82vw);
    position: absolute;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    top: 53%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
}

.bella-hero-dots {
    bottom: 36px;
    display: flex;
    gap: 10px;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 3;
}

.bella-hero-dots button {
    appearance: none;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    height: 11px;
    margin: 0;
    padding: 0;
    transition: background 200ms ease, box-shadow 200ms ease;
    width: 11px;
}

.bella-hero-dots button.is-active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

@media only screen and (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .bella-hero {
        aspect-ratio: 3 / 2;
        background: #000;
        height: auto;
        margin-left: calc(50% - 50vw);
        min-height: 0;
        width: 100vw;
    }

    .bella-hero-slide,
    .bella-hero-slide img {
        inset: 0;
        max-width: none;
        width: 100%;
    }

    .bella-hero-slide p {
        font-size: clamp(13px, 3.9vw, 18px);
        max-width: 78vw;
        top: 56%;
    }

    .bella-hero-dots {
        bottom: 18px;
        gap: 8px;
    }

    .bella-hero-dots button {
        height: 8px;
        width: 8px;
    }

    /* Full-screen, opaque overlay avoids the page showing through the menu. */
    .inteco-overlay-menu-content {
        background: #0d0808 !important;
        bottom: 0 !important;
        box-sizing: border-box;
        height: 100dvh !important;
        left: 0 !important;
        overflow-y: auto;
        right: 0 !important;
        top: 0 !important;
        width: 100vw !important;
    }

    .inteco-overlay-menu-row {
        display: flex;
        min-height: 100dvh;
        width: 100%;
    }

    .inteco-overlay-menu-cell {
        align-items: flex-start;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .inteco-overlay-menu-content ul.menu {
        box-sizing: border-box;
        margin: 0 auto;
        max-width: 360px;
        padding: 90px 28px 38px;
        width: 100%;
    }

    .inteco-overlay-menu-content .inteco-overlay-menu-close {
        left: auto;
        margin: 0;
        right: 22px;
        top: 22px;
    }

    .inteco-overlay-menu-content ul.menu > li {
        margin-bottom: 0;
        padding: 14px 0;
    }

    /* Keep the methodology background behind the complete final text column. */
    #metodologia {
        background-color: #e6e6e6;
    }

    #gdlr-core-column-4 .gdlr-core-pbf-column-content-margin {
        padding-bottom: 60px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bella-hero-slide {
        transition: none;
    }
}
