/* ============================================================
   BEMAVI — Página Região (Figma "Quaxx - Bemavi", node 526-797)
   Reaproveita tokens (body.bemavi-emp-page) e os cards da
   listagem (.emplist-card) de bemavi-empreendimento.css.
   ============================================================ */
body.page-regiao .bemavi-header-brand {
    display: none; /* a logo fica no próprio hero (rola junto com a página) */
}

.bemavi-regiao {
    position: relative;
    overflow: hidden;
    background: var(--bemavi-bg);
    color: var(--bemavi-text);
    font-family: var(--font-base);
    font-weight: 300;
}

.bemavi-regiao img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   1) HERO
   ============================================================ */
.regiao-hero {
    position: relative;
    z-index: 2;
    min-height: 840px;
    isolation: isolate;
    overflow: visible;            /* a imagem do showcase sangra para baixo */
    background: var(--bemavi-deep);
    color: var(--bemavi-cream);
}

.regiao-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.regiao-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.regiao-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(39, 31, 29, 0.90) 0%, rgba(39, 31, 29, 0.50) 100%);
}

.regiao-hero-logo {
    position: absolute;
    top: 60px;
    left: 70px;
    z-index: 5;
    width: 145px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.96;
    pointer-events: none;
}

.regiao-hero-inner {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 265px 0 0 105px;
}

.regiao-hero-line {
    position: absolute;
    top: 63px;
    left: 2px;
    width: 2px;
    height: 251px;
    background: var(--bemavi-taupe);
    pointer-events: none;
}

.regiao-hero-kicker {
    margin: 0 0 120px;
    color: #d1cec9;
    text-transform: uppercase;
    font-size: 40px;
    line-height: 60px;
    letter-spacing: 12px;
    font-weight: 300;
}

.regiao-hero-sub {
    margin: 0;
    width: min(223px, 100%);
    color: #d1cec9;
    font-size: 30px;
    line-height: 35px;
    font-weight: 300;
}

/* Botão padrão (.bemavi-button) — só ajusta o respiro do topo no hero */
.regiao-hero-cta {
    margin-top: 64px;
}

/* ── Showcase (carrossel de imagens das regiões) — sangra à direita
   e avança 138px sobre a seção de cidades ───────────────────────── */
.regiao-showcase {
    position: absolute;
    top: 398px;
    right: 0;
    left: calc(var(--emp-container-left) + 0.42 * var(--emp-container-width));
    height: 580px;
    z-index: 3;
    overflow: hidden;
}

.regiao-showcase-track,
.regiao-showcase-slide {
    position: absolute;
    inset: 0;
}

.regiao-showcase-slide {
    display: block;
    opacity: 0;
    transition: opacity 0.9s ease;
    margin: 0;
    pointer-events: none;
    cursor: pointer;
}

.regiao-showcase-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.regiao-showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    transition:
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.regiao-showcase-slide:hover img {
    transform: scale(1.045);
    filter: saturate(0.88) contrast(0.94);
}

/* Ícone de zoom (mesmo padrão das plantas do empreendimento) */
.regiao-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    width: 30px;
    height: 29px;
    display: grid;
    place-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.regiao-zoom img {
    width: 30px;
    height: 29px;
    transition: filter 0.3s ease;
}

/* Hover: lupa cresce e vira branca pra manter contraste sobre a imagem
   escurecida (o card de destaque escurece no hover do card inteiro,
   por isso o gatilho é .regiao-highlight e não só a imagem) */
.regiao-showcase-slide:hover .regiao-zoom,
.regiao-highlight:hover .regiao-zoom {
    opacity: 1;
    transform: scale(1.2);
}

.regiao-showcase-slide:hover .regiao-zoom img,
.regiao-highlight:hover .regiao-highlight-media .regiao-zoom img {
    filter: brightness(0) invert(1);
    transform: none;
}


/* Películas do Figma: vertical (topo) + diagonal (canto inferior esquerdo) */
.regiao-showcase-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(51deg, rgba(39, 31, 29, 0.90) 1%, rgba(39, 31, 29, 0) 27%),
        linear-gradient(180deg, rgba(39, 31, 29, 0.60) 0%, rgba(39, 31, 29, 0) 45%);
}

.regiao-showcase-nav {
    position: absolute;
    left: 82px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    gap: 20px;
}

.regiao-showcase-arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--bemavi-taupe);
    color: var(--bemavi-deep);
    cursor: pointer;
    transition: background 0.35s ease;
}

.regiao-showcase-arrow svg {
    width: 9px;
    height: 18px;
}

.regiao-showcase-prev svg {
    transform: scaleX(-1);
}

.regiao-showcase-arrow:hover {
    background: var(--bemavi-cream);
}

/* ============================================================
   INTRO DO BANNER (logo → linha → "região" letra a letra →
   subtítulo → botão → showcase)
   ============================================================ */
.regiao-hero-logo {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.15s ease, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.regiao-hero-line {
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.regiao-hero-kicker {
    opacity: 0;
}

.regiao-hero-kicker .hero-char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.75s ease;
}

.regiao-hero-sub {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.regiao-hero-cta {
    opacity: 0;
    transform: translateY(24px);
}

@keyframes regiaoHeroCtaReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.regiao-showcase {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bemavi-regiao.is-hero-revealed .regiao-hero-logo {
    opacity: 0.96;
    transform: none;
    transition-delay: 0.15s;
}

.bemavi-regiao.is-hero-revealed .regiao-hero-line {
    transform: scaleY(1);
    transition-delay: 0.85s;
}

.bemavi-regiao.is-hero-revealed .regiao-hero-kicker {
    opacity: 1;
}

.bemavi-regiao.is-hero-revealed .regiao-hero-kicker .hero-char {
    opacity: 1;
    transition-delay: var(--d, 0s);
}

.bemavi-regiao.is-hero-revealed .regiao-hero-sub {
    opacity: 1;
    transform: none;
    transition-delay: var(--sub-delay, 2.3s);
}

.bemavi-regiao.is-hero-revealed .regiao-hero-cta {
    animation: regiaoHeroCtaReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--cta-delay, 2.6s) both;
}

.bemavi-regiao.is-hero-revealed .regiao-showcase {
    opacity: 1;
    transform: none;
    transition-delay: var(--showcase-delay, 3.2s);
}

@media (prefers-reduced-motion: reduce) {
    .regiao-hero-logo,
    .regiao-hero-line,
    .regiao-hero-kicker,
    .regiao-hero-kicker .hero-char,
    .regiao-hero-sub,
    .regiao-hero-cta,
    .regiao-showcase,
    .regiao-showcase-slide {
        transition: none !important;
    }

    .bemavi-regiao.is-hero-revealed .regiao-hero-cta {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

/* ============================================================
   2) CIDADES — intro + painel escuro (à direita, sangra)
   ============================================================ */
.regiao-cities {
    position: relative;
    z-index: 1;
    /* transição escuro → claro logo abaixo do banner (gradiente do Figma):
       taupe forte no topo desbotando até o fundo claro da página */
    background: linear-gradient(180deg, #a38f81 0%, rgba(208, 201, 189, 0) 248px);
}

.regiao-cities-symbol {
    position: absolute;
    left: -56px;
    top: 578px;
    width: 376px;
    height: 450px;
    max-width: none;       /* anula o max-width:100% global de .bemavi-regiao img */
    object-fit: fill;      /* o SVG usa preserveAspectRatio=none */
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.regiao-cities-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    align-items: start;
    padding-top: 138px;       /* posiciona intro/painel logo abaixo do showcase */
    padding-bottom: 96px;
}

.regiao-cities-intro {
    max-width: 379px;
}

.regiao-cities-intro p {
    margin: 0;
    color: var(--bemavi-text);
    font-size: 20px;
    line-height: 28px;
}

/* Painel escuro — sangra até a borda direita da viewport */
.regiao-cities-panel {
    box-sizing: border-box;
    margin-right: calc((var(--emp-container-width) - 100vw) / 2);
    padding: 133px clamp(40px, 4vw, 108px) 120px;
    padding-right: calc(clamp(40px, 4vw, 108px) + (100vw - var(--emp-container-width)) / 2);
    background: linear-gradient(180deg, #6e6056 0%, #312723 100%);
    color: var(--bemavi-bg);
}

.regiao-city + .regiao-city {
    margin-top: 60px;
}

.regiao-city h2 {
    margin: 0 0 12px;
    color: var(--bemavi-bg);
    text-transform: uppercase;
    font-size: 28px;
    line-height: 38px;
    font-weight: 300;
}

.regiao-city p {
    margin: 0;
    max-width: 524px;
    color: var(--bemavi-bg);
    font-size: 16px;
    line-height: 23px;
    font-weight: 300;
}

/* ============================================================
   3) DESTAQUES DA REGIÃO (slider horizontal)
   ============================================================ */
.regiao-highlights {
    position: relative;
    margin-top: 130px;          /* respiro do painel de cidades */
    padding: 0 0 180px;         /* a caixa escura (::before) acompanha e desce mais */
}

/* Caixa de fundo mais escura — começa no meio dos cards (eles vazam para
   cima dela) e sangra de borda a borda da tela */
.regiao-highlights::before {
    content: "";
    position: absolute;
    top: 300px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    background: var(--bemavi-sand);
    pointer-events: none;
}

.regiao-highlights-inner {
    position: relative;
    z-index: 1;
}

/* Viewport do slider — sangra à direita (cards encostam na borda da tela) */
.regiao-highlights-viewport {
    overflow: hidden;
    margin-right: calc((var(--emp-container-width) - 100vw) / 2);
}

.regiao-highlights-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.regiao-highlights-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.regiao-highlights-track.is-dragging .regiao-highlight {
    pointer-events: none;
}

.regiao-highlights-track::-webkit-scrollbar {
    display: none;
}

/* ~3 cards visíveis no viewport (container + sangria direita); o 4º rola */
.regiao-highlight {
    flex: 0 0 calc((var(--emp-container-width) + var(--emp-container-left) - 32px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.regiao-highlight-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 524 / 540;
    background: #8d8074;
    cursor: pointer;
}

.regiao-highlight-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(35, 27, 26, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.regiao-highlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    transition:
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.regiao-highlight-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(39, 31, 29, 0) 40%, rgba(39, 31, 29, 0.6) 100%);
    pointer-events: none;
}

.regiao-highlight:hover .regiao-highlight-media::before {
    opacity: 1;
}

.regiao-highlight:hover .regiao-highlight-media img {
    transform: scale(1.045);
    filter: saturate(0.88) contrast(0.94);
}

/* Setas + trilho (controle do slider) */
.regiao-highlights-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 80px;       /* mais respiro entre os cards e as setas + trilho */
    padding-left: 40px;     /* alinha as setas com o bloco de texto dos cards */
}

.regiao-highlights-arrow {
    position: relative;
    z-index: 1;            /* fica acima do trilho que sangra atrás */
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--bemavi-taupe);
    color: var(--bemavi-deep);
    cursor: pointer;
    transition: background 0.35s ease, opacity 0.35s ease;
}

.regiao-highlights-arrow svg {
    width: 9px;
    height: 18px;
}

.regiao-highlights-prev svg {
    transform: scaleX(-1);
}

.regiao-highlights-arrow:hover:not(:disabled) {
    background: var(--bemavi-cream);
}

.regiao-highlights-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Trilho — começa após a seta direita e sangra até a borda direita da tela */
.regiao-highlights-rail {
    flex: 1;
    height: 2px;
    margin-left: 16px;
    margin-right: calc((var(--emp-container-width) - 100vw) / 2);
    background: rgba(80, 66, 63, 0.22);
}

/* Bloco linha + título + texto recuado do card (Figma: linha +40, texto +70) */
.regiao-highlight-body {
    position: relative;
    margin-top: 40px;
    min-height: 130px;
    padding-left: 70px;
}

.regiao-highlight-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 130px;
    background: var(--bemavi-taupe);
    transition:
        top 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.regiao-highlight:hover .regiao-highlight-body::before {
    top: -72px;
    height: calc(100% + 72px);
}

.regiao-highlight-body h3 {
    margin: 0 0 16px;
    color: var(--bemavi-text);
    text-transform: uppercase;
    font-size: 16px;
    line-height: 23px;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.regiao-highlight-body p {
    margin: 0;
    max-width: 326px;
    color: var(--bemavi-text);
    font-size: 16px;
    line-height: 23px;
    font-weight: 300;
}

/* ============================================================
   4) CONHEÇA NOSSOS EMPREENDIMENTOS (cards .emplist-card)
   ============================================================ */
.regiao-emp {
    position: relative;
    padding: 130px 0 150px;
}

/* Gradiente do Figma (transparente → #a38f81) que os cards vazam por cima:
   começa abaixo do topo dos cards e desce até o rodapé */
.regiao-emp::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 460px;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(180deg, #a38f81 0%, rgba(163, 143, 129, 0) 100%);
    pointer-events: none;
}

.regiao-emp .emp-container {
    position: relative;
    z-index: 1;
}

/* Título centralizado, com a linha logo abaixo (Figma) */
.regiao-emp-head {
    position: relative;
    margin-bottom: 60px;
    padding-bottom: 44px;
    text-align: center;
}

.regiao-emp-head::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bemavi-taupe);
}

.regiao-emp-head .emp-section-title {
    margin: 0;
}

.regiao-emp-grid {
    row-gap: 80px;
}

.regiao-emp-all {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 90px auto 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bemavi-text);
    color: var(--bemavi-text);
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1.6px;
    font-weight: 500;
    transition: opacity 0.4s ease;
}

.regiao-emp-all:hover,
.regiao-emp-all:focus-visible {
    opacity: 0.65;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* Intermediários (1441–1759px): logo alinha com o título (igual às outras capas) */
@media (min-width: 1441px) and (max-width: 1759px) {
    .regiao-hero-logo {
        left: calc(var(--emp-container-left) + 105px);
    }
}

/* Notebook (1025–1440px): hero proporcional */
@media (min-width: 1025px) and (max-width: 1440px) {
    .regiao-hero {
        min-height: 720px;
    }

    .regiao-hero-logo {
        left: calc(var(--emp-container-left) + 105px);
        top: 54px;
        width: 130px;
    }

    .regiao-hero-inner {
        padding-top: 210px;
    }

    .regiao-hero-line {
        top: 50px;
        height: 208px;
    }

    .regiao-hero-kicker {
        margin-bottom: 94px;
        font-size: 32px;
        line-height: 48px;
        letter-spacing: 9px;
    }

    .regiao-hero-sub {
        font-size: 26px;
        line-height: 32px;
    }

    /* showcase mais baixo, acompanha o hero de 720px */
    .regiao-showcase {
        top: 320px;
        height: 500px;
    }

    /* painel sobe para encostar no showcase (320+500=820; hero=720 → 100px) */
    .regiao-cities-grid {
        padding-top: 100px;
    }
}

/* Tablet/Mobile — empilha tudo de forma linear */
@media only screen and (max-width: 1024px) {
    .regiao-hero {
        min-height: 0;
        overflow: hidden;
    }

    .regiao-hero-inner {
        padding: 190px 0 56px;
    }

    .regiao-hero-kicker {
        margin: 0 0 72px 40px;
        font-size: 28px;
        line-height: 40px;
        letter-spacing: 7px;
    }

    .regiao-hero-sub {
        margin-left: 40px;
        font-size: 24px;
        line-height: 30px;
    }

    .regiao-hero-cta {
        margin-left: 40px;
    }

    /* showcase deixa de sangrar: vira bloco no fluxo, largura total */
    .regiao-showcase {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: auto;
        aspect-ratio: 16 / 10;
        margin-top: 40px;
    }

    .regiao-showcase-track {
        position: relative;
        height: 100%;
    }

    .regiao-cities {
        background: none;
    }

    .regiao-cities-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .regiao-cities-intro {
        max-width: none;
    }

    .regiao-cities-panel {
        /* full-bleed nas duas bordas no mobile */
        margin-left: calc((var(--emp-container-width) - 100vw) / 2);
        margin-right: calc((var(--emp-container-width) - 100vw) / 2);
        padding: 64px clamp(24px, 6vw, 48px) 64px;
        padding-left: calc(clamp(24px, 6vw, 48px) + (100vw - var(--emp-container-width)) / 2);
        padding-right: calc(clamp(24px, 6vw, 48px) + (100vw - var(--emp-container-width)) / 2);
    }

    .regiao-cities-symbol {
        display: none;
    }

    .regiao-highlights {
        margin-top: 80px;
        padding: 0 0 80px;
    }

    /* caixa escura ocupa a largura toda; cards continuam vazando por cima */
    .regiao-highlights::before {
        left: 0;
        right: 0;
        top: 240px;
    }

    /* slider vira carrossel de ~2 cards por vez */
    .regiao-highlights-viewport {
        margin-right: 0;
    }

    .regiao-highlight {
        flex-basis: calc((100% - 16px) / 2);
    }

    .regiao-emp {
        padding-bottom: 110px;
    }

    .regiao-emp::before {
        top: 300px;
    }
}

@media only screen and (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
    /* 1 card por vez no mobile */
    .regiao-highlight {
        flex-basis: 86%;
    }

    .regiao-highlights::before {
        top: 200px;
    }
}

@media only screen and (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
    .regiao-hero-logo {
        top: 44px;
        left: 24px;
        width: 120px;
    }

    .regiao-hero-line {
        display: none;
    }

    .regiao-hero-inner {
        padding: 150px 0 48px;
    }

    .regiao-hero-kicker {
        margin: 0 0 52px;
        font-size: 20px;
        line-height: 30px;
        letter-spacing: 5px;
    }

    .regiao-hero-sub {
        margin-left: 0;
        font-size: 20px;
        line-height: 27px;
    }

    .regiao-hero-cta {
        margin-left: 0;
        width: 100%;
        max-width: 320px;
    }

    .regiao-city h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .regiao-highlights-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .regiao-emp-head .emp-section-title {
        font-size: 24px;
    }
}

/* ============================================================
   MOBILE REGIÃO (<=767px) — Figma node 722-648.
   Mantém a mesma régua dos banners mobile Bemavi e adapta os
   blocos ao fluxo vertical do layout seco.
   ============================================================ */
@media only screen and (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
    body.page-regiao.bemavi-emp-page {
        --regiao-mobile-edge: min(32px, 5.93vw);
        --regiao-mobile-panel-left: min(61px, 11.3vw);
        --regiao-mobile-control: min(417px, 77.22vw);
        --regiao-mobile-control-left: calc((100vw - var(--regiao-mobile-control)) / 2);
        --regiao-mobile-hero-shift: min(24px, 6vw);
        --regiao-mobile-text-left: min(94px, 17.41vw);
        --regiao-mobile-panel-width: calc(100vw - var(--regiao-mobile-panel-left));
        --regiao-mobile-card: min(447px, 82.78vw);
        --regiao-mobile-highlight-offset: min(36px, 6.67vw);
    }

    body.page-regiao .bemavi-menu-trigger {
        top: 30px;
        right: var(--bemavi-mobile-gutter, 6vw);
    }

    .regiao-hero {
        display: block;
        min-height: min(960px, 177.78vw);
        overflow: visible;
    }

    .regiao-hero-bg,
    .regiao-hero-bg picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .regiao-hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .regiao-hero-shade {
        background: linear-gradient(180deg, rgba(39, 31, 29, 0.9) 0%, rgba(39, 31, 29, 0.5) 100%);
    }

    .regiao-hero-logo {
        top: calc(min(148px, 27.41vw) + var(--regiao-mobile-hero-shift));
        left: calc(var(--regiao-mobile-control-left) + min(93px, 17.22vw));
        width: min(145px, 26.85vw);
        filter: brightness(0) invert(1);
    }

    .regiao-hero-line {
        display: block;
        top: calc(min(63px, 11.67vw) + var(--regiao-mobile-hero-shift));
        left: 0;
        width: 2px;
        height: min(196px, 36.3vw);
    }

    .regiao-hero-inner {
        position: relative;
        display: block;
        width: var(--regiao-mobile-control);
        height: min(960px, 177.78vw);
        margin: 0 auto;
        padding: calc(min(226px, 41.85vw) + var(--regiao-mobile-hero-shift)) 0 0;
    }

    .regiao-hero-kicker {
        margin: 0 0 min(185px, 34.26vw) min(93px, 17.22vw);
        font-size: min(30px, 5.56vw);
        line-height: min(44px, 8.15vw);
        letter-spacing: min(9px, 1.67vw);
        white-space: nowrap;
    }

    .regiao-hero-sub {
        width: min(220px, 40.74vw);
        margin: 0 0 0 min(93px, 17.22vw);
        font-size: min(24px, 4.44vw);
        line-height: min(28px, 5.19vw);
    }

    .regiao-hero-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: min(269px, 49.82vw);
        max-width: min(269px, 49.82vw);
        min-width: 0;
        min-height: min(90px, 16.67vw);
        margin: min(99px, 18.33vw) 0 0 min(93px, 17.22vw);
        padding: min(22px, 4.07vw) min(32px, 5.93vw);
        white-space: normal;
        text-align: center;
        font-size: min(16px, 2.96vw);
        line-height: min(22px, 4.07vw);
        letter-spacing: min(1.6px, 0.3vw);
    }

    .regiao-showcase {
        position: absolute;
        top: min(848px, 157.04vw);
        left: var(--regiao-mobile-panel-left);
        right: auto;
        width: var(--regiao-mobile-panel-width);
        height: auto;
        aspect-ratio: 479 / 262;
        margin: 0;
        overflow: hidden;
    }

    .regiao-showcase-track,
    .regiao-showcase-slide {
        position: absolute;
        inset: 0;
    }

    .regiao-showcase-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .regiao-showcase-shade {
        background:
            linear-gradient(34deg, rgba(39, 31, 29, 0.9) 0%, rgba(39, 31, 29, 0) 100%),
            linear-gradient(180deg, rgba(39, 31, 29, 0.6) 0%, rgba(39, 31, 29, 0) 100%);
    }

    .regiao-showcase-nav {
        left: min(32px, 5.93vw);
        bottom: min(27px, 5vw);
     
    }

    .regiao-showcase-arrow {
        width: min(29px, 5.37vw);
        height: min(29px, 5.37vw);
    }

    .regiao-showcase-arrow svg {
        width: min(7px, 1.3vw);
        height: min(16px, 2.96vw);
    }

    .regiao-cities {
        margin: 0;
        padding: min(150px, 27.78vw) 0 min(150px, 27.78vw);
        background: linear-gradient(180deg, #a38f81 0%, rgba(209, 206, 201, 0) min(248px, 45.93vw), rgba(208, 201, 189, 0) min(249px, 46.11vw));
    }

    body.page-regiao .regiao-cities-symbol {
        display: none !important;
        opacity: 0 !important;
    }

    .regiao-cities-grid {
        display: block;
        width: var(--regiao-mobile-panel-width);
        margin: 0 0 0 var(--regiao-mobile-panel-left);
        padding: min(72px, 13.33vw) min(54px, 10vw) min(92px, 17.04vw) var(--regiao-mobile-text-left);
        box-sizing: border-box;
        background: linear-gradient(180deg, #6e6056 0%, #312723 100%);
        color: var(--bemavi-bg);
    }

    .regiao-cities-intro {
        max-width: none;
    }

    .regiao-cities-intro p {
        width: min(330px, 61.11vw);
        max-width: 100%;
        color: var(--bemavi-bg);
        font-size: min(19px, 3.52vw);
        line-height: min(28px, 5.19vw);
    }

    .regiao-cities-panel {
        margin: min(100px, 18.52vw) 0 0;
        padding: 0;
        background: transparent;
        color: var(--bemavi-bg);
    }

    .regiao-city + .regiao-city {
        margin-top: min(84px, 15.56vw);
    }

    .regiao-city h2 {
        margin: 0 0 min(42px, 7.78vw);
        color: var(--bemavi-bg);
        font-size: min(24px, 4.44vw);
        line-height: min(34px, 6.3vw);
        letter-spacing: 0;
    }

    .regiao-city p {
        width: min(330px, 61.11vw);
        max-width: 100%;
        color: var(--bemavi-bg);
        font-size: min(19px, 3.52vw);
        line-height: min(28px, 5.19vw);
    }

    .regiao-highlights {
        margin-top: 0;
        padding: 0 0 min(116px, 21.48vw);
    }

    .regiao-highlights::before {
        top: min(294px, 54.44vw);
        bottom: 0;
        background: var(--bemavi-sand);
    }

    .regiao-highlights-inner {
        width: 100%;
        margin: 0;
    }

    .regiao-highlights-viewport {
        width: calc(100vw - var(--regiao-mobile-panel-left));
        margin: 0 0 0 var(--regiao-mobile-panel-left);
        overflow: hidden;
    }

    .regiao-highlights-track {
        gap: min(16px, 2.96vw);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .regiao-highlight {
        flex: 0 0 var(--regiao-mobile-card);
        scroll-snap-align: start;
    }

    .regiao-highlight-media {
        aspect-ratio: 447 / 461;
    }

    .regiao-highlight-body {
        box-sizing: border-box;
        min-height: min(260px, 48.15vw);
        margin-top: min(39px, 7.22vw);
        margin-left: var(--regiao-mobile-highlight-offset);
        padding-left: min(54px, 10vw);
        padding-right: min(42px, 7.78vw);
    }

    .regiao-highlight-body::before {
        left: 0;
        height: min(200px, 37.04vw);
    }

    .regiao-highlight-body h3 {
        margin: 0 0 min(22px, 4.07vw);
        font-size: min(19px, 3.52vw);
        line-height: min(23px, 4.26vw);
        letter-spacing: min(0.95px, 0.18vw);
    }

    .regiao-highlight-body p {
        max-width: min(280px, 51.85vw);
        font-size: min(19px, 3.52vw);
        line-height: min(28px, 5.19vw);
    }

    .regiao-highlights-nav {
        width: calc(var(--regiao-mobile-panel-width) - var(--regiao-mobile-highlight-offset));
        margin: min(60px, 11.11vw) 0 0 calc(var(--regiao-mobile-panel-left) + var(--regiao-mobile-highlight-offset));
        padding-left: 0;
    }

    .regiao-highlights-arrow {
        width: min(29px, 5.37vw);
        height: min(29px, 5.37vw);
    }

    .regiao-highlights-arrow svg {
        width: min(7px, 1.3vw);
        height: min(16px, 2.96vw);
    }

    .regiao-highlights-rail {
        height: 5px;
        margin-left: min(0px, 5.19vw);
        margin-right: 0;
        background: var(--bemavi-taupe);
    }

    .regiao-emp {
        padding: min(114px, 21.11vw) 0 min(126px, 23.33vw);
    }

    .regiao-emp::before {
        top: min(430px, 79.63vw);
        background: linear-gradient(180deg, #a38f81 0%, rgba(209, 206, 201, 0) 100%);
    }

    body.page-regiao .regiao-emp .emp-container {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.page-regiao .regiao-emp-head {
        box-sizing: border-box;
        width: 100vw;
        margin: 0 0 min(62px, 11.48vw);
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0 0 min(54px, 10vw);
        transform: none;
        text-align: center;
    }

    body.page-regiao .regiao-emp-head::before {
        left: 0;
        right: 0;
        width: auto;
        height: 3px;
    }

    body.page-regiao .regiao-emp-head .emp-section-title {
        width: min(260px, 48.15vw);
        margin: 0 auto;
        font-size: min(24px, 4.44vw);
        line-height: min(34px, 6.3vw);
        text-align: center;
    }

    .regiao-emp-grid {
        display: flex;
        grid-template-columns: none;
        gap: min(16px, 2.96vw);
        width: calc(100vw - var(--regiao-mobile-edge));
        margin-left: var(--regiao-mobile-edge);
        padding-right: var(--regiao-mobile-edge);
        box-sizing: border-box;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .regiao-emp-grid::-webkit-scrollbar {
        display: none;
    }

    .regiao-emp-grid .emplist-card {
        flex: 0 0 min(300px, 55.56vw);
        width: min(300px, 55.56vw);
        scroll-snap-align: start;
    }

    .regiao-emp-grid .emplist-media {
        aspect-ratio: 300 / 470;
    }

    .regiao-emp-grid .emplist-body {
        padding-top: min(18px, 3.33vw);
    }

    .regiao-emp-grid .emplist-tipo {
        font-size: min(14px, 2.59vw);
        line-height: min(22px, 4.07vw);
        letter-spacing: min(2.1px, 0.39vw);
    }

    .regiao-emp-grid .emplist-title {
        margin-top: min(11px, 2.04vw);
        font-size: min(24px, 4.44vw);
        line-height: min(26px, 4.81vw);
    }

    .regiao-emp-grid .emplist-details {
        margin-top: min(24px, 4.44vw);
        padding-left: min(26px, 4.81vw);
        font-size: min(16px, 2.96vw);
        line-height: min(26px, 4.81vw);
    }

    .regiao-emp-all {
        display: none;
    }
}

/* ==========================================================================
   TABLET EM PE (769-1024 retrato) — mantem o slider ABSOLUTO (como era), so
   DIMINUI a imagem para o rodape dela encostar no topo do painel marrom sem
   alcancar o texto. Com proporcao 479/262 e o topo do painel congelado, a
   largura 479px faz o rodape cair exatamente no topo do marrom. (Ajustavel:
   menor sobe a imagem; maior desce.)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .regiao-showcase {
        width: 479px;
    }
}
