/* Yasmalia Hero */
.yasmalia-hero {
    --yasmalia-hero-content-max: 1280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 700px;
    overflow: hidden;
    isolation: isolate;
}

.yasmalia-hero--viewport {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Evita scroll horizontal quando o hero full-bleed rompe um container boxed do Elementor */
body:has(.yasmalia-hero--viewport) {
    overflow-x: hidden;
}

.yasmalia-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.yasmalia-hero__bg img,
.yasmalia-hero__bg video,
.yasmalia-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yasmalia-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.yasmalia-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100%, var(--yasmalia-hero-content-max));
    margin: 0 auto;
    padding: clamp(28px, 4vw, 64px);
    display: grid;
    gap: clamp(24px, 4vw, 72px);
    align-items: center;
}

.yasmalia-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.yasmalia-hero__pretitle {
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.yasmalia-hero__title {
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 16px;
}

.yasmalia-hero__subtitle {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    margin: 0 0 32px;
    opacity: 0.92;
}

.yasmalia-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.yasmalia-hero__side {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yasmalia-hero__side img {
    display: block;
    width: 100%;
    max-height: min(78vh, 860px);
    object-fit: contain;
}

/* Layouts */
.yasmalia-hero--centered .yasmalia-hero__inner {
    justify-items: center;
}

.yasmalia-hero--centered .yasmalia-hero__content {
    text-align: center;
}

.yasmalia-hero--centered .yasmalia-hero__buttons {
    justify-content: center;
}

.yasmalia-hero--left .yasmalia-hero__inner,
.yasmalia-hero--split .yasmalia-hero__inner,
.yasmalia-hero--diagonal .yasmalia-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
}

.yasmalia-hero--left .yasmalia-hero__content,
.yasmalia-hero--split .yasmalia-hero__content,
.yasmalia-hero--diagonal .yasmalia-hero__content {
    text-align: left;
}

.yasmalia-hero--fullvideo .yasmalia-hero__inner {
    width: min(100%, 1040px);
    justify-items: center;
}

.yasmalia-hero--fullvideo .yasmalia-hero__content {
    text-align: center;
}

.yasmalia-hero--fullvideo .yasmalia-hero__buttons {
    justify-content: center;
}

@media (max-width: 1024px) {
    .yasmalia-hero__title {
        font-size: clamp(2.3rem, 8vw, 4.6rem);
    }

    .yasmalia-hero--left .yasmalia-hero__inner,
    .yasmalia-hero--split .yasmalia-hero__inner,
    .yasmalia-hero--diagonal .yasmalia-hero__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .yasmalia-hero {
        min-height: 72vh;
    }

    .yasmalia-hero__inner {
        width: 100%;
        padding: 24px 20px;
        gap: 24px;
    }

    .yasmalia-hero__content {
        max-width: none;
    }

    .yasmalia-hero__buttons {
        gap: 12px;
    }

    .yasmalia-hero__side img {
        max-height: 42vh;
    }
}

body.page-id-232 .yasmalia-hero--viewport {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
