/* =============================================================
   HOME — SÉRGIO CORRÊA IMÓVEIS
   Valores finais da cascata do site antigo (css/personalizados/home.css + style.css).
   ============================================================= */

:root {
    --cor-label: #8fa0bc;
    --cor-borda: #dde4f0;
    --cor-bg-input: #f8f9fa;
    --cor-texto-principal: #333;
    --cor-placeholder: #b0bac8;
    --cor-secao-dd: #9ca3af;
    --cor-comprar-light: #22449a;
}

/* =============================================================
   BANNER
   ============================================================= */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 65vh;
    overflow: hidden;
    /* A IMAGEM FICA NAS CAMADAS (.hero-fundo); A COR APARECE ENQUANTO ELA CARREGA. */
    background-color: #05123a;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5, 18, 58, .92) 0%, rgba(5, 18, 58, .75) 45%, rgba(5, 18, 58, .4) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: center;
    gap: 48px;
}

.hero-text {
    color: #fff;
}

.hero-pretitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.hero-pretitle::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 28px;
    height: 2px;
    background: #0c34cd;
}

.hero-title {
    margin-bottom: 18px;
    color: #fff;
    font-family: var(--fonte-hero);
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.hero-title span {
    color: #6ea8ff;
}

.hero-sub {
    max-width: 480px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    line-height: 1.75;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 360px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-sub {
        max-width: none;
        font-size: 14px;
    }
}

/* CARROSSEL DO TOPO: UMA CAMADA DE IMAGEM POR BANNER (A ATIVA APARECE) E OS TEXTOS EMPILHADOS NO MESMO LUGAR.
   UM BANNER SÓ = A PRIMEIRA CAMADA, IGUAL AO TOPO DE ANTES. */
.hero-fundos {
    position: absolute;
    inset: 0;
}

/* COMPUTADOR (A PARTIR DE 600PX) E CELULAR TÊM BANNERS PRÓPRIOS: SÓ O GRUPO DA TELA APARECE */
.hero-grupo--mobile {
    display: none !important;
}

.hero-fundo {
    position: absolute;
    inset: 0;
    background-image: var(--hero-imagem);
    background-position: center top;
    background-size: cover;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-fundo.is-ativo {
    opacity: 1;
}

.hero-textos {
    display: grid;
}

.hero-textos > .hero-text {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}

.hero-textos > .hero-text.is-ativo {
    opacity: 1;
    visibility: visible;
}

/* SETAS DO CARROSSEL: NO MEIO DO TOPO, NAS LATERAIS */
.hero-seta {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .3s, border-color .3s;
}

.hero-seta:hover,
.hero-seta:focus-visible {
    background: rgba(255, 255, 255, .28);
    border-color: rgba(255, 255, 255, .6);
}

.hero-seta--ant {
    left: 20px;
}

.hero-seta--prox {
    right: 20px;
}

/* O GRUPO DA TELA (COMPUTADOR OU CELULAR) TEM UM BANNER SÓ: SEM SETAS NESSA TELA (home.js). */
.hero--um-banner .hero-seta {
    display: none;
}

/* TELA MENOR: O TEXTO CHEGA NA BORDA; GANHA MARGEM PARA NÃO FICAR EMBAIXO DAS SETAS */
@media (max-width: 1199px) {
    [data-hero-carrossel] .hero-grid {
        padding: 0 56px;
    }
}

@media (max-width: 599px) {
    .hero-grupo--desktop {
        display: none !important;
    }

    .hero-fundos.hero-grupo--mobile {
        display: block !important;
    }

    .hero-textos.hero-grupo--mobile {
        display: grid !important;
    }

    .hero-seta {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-seta--ant {
        left: 8px;
    }

    .hero-seta--prox {
        right: 8px;
    }

    [data-hero-carrossel] .hero-grid {
        padding: 0 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fundo,
    .hero-textos > .hero-text {
        transition: none;
    }
}

/* =============================================================
   BUSCA SOBRE O BANNER
   ============================================================= */
.hero-search-overlap {
    position: relative;
    z-index: 20;
    margin-top: -85px;
    padding: 0 24px;
}

@media (min-width: 992px) {
    .hero-search-overlap > .container {
        padding: 0;
    }
}

.main-tabs {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    max-width: 380px;
}

.main-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    background: #fff;
    border: 1.5px solid rgba(255, 255, 255, .2);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: all .2s ease;
    backdrop-filter: blur(10px);
}

/* O CENTRO DA CAIXA DE TEXTO FICA ABAIXO DO MEIO DAS LETRAS (ESPAÇO DA DESCIDA): SOBE O ÍCONE PARA ALINHAR. */
.main-tab svg {
    display: block;
    flex-shrink: 0;
    transform: translateY(-1px);
}

.main-tab:hover {
    background: rgba(255, 255, 255, .83);
    color: var(--cor-site-1);
}

.main-tab.active,
.main-tab.active:hover {
    z-index: 2;
    background: var(--cor-site-1);
    border-color: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.property-search-container {
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
    border-radius: 0 10px 10px 10px;
    box-shadow: 0 8px 40px rgba(5, 18, 58, .18), 0 2px 8px rgba(5, 18, 58, .07);
}

.search-form {
    width: 100%;
}

.search-fields {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 15px;
}

.search-field {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.search-field--codigo {
    flex: 0 0 100px;
}

/* NO SITE ANTIGO ".search-field label" (MAIS ESPECÍFICA) VENCE ".search-field-label" EM TAMANHO, PESO E COR. */
.search-field-label {
    display: block;
    margin-bottom: 8px;
    padding-left: 2px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.dd {
    position: relative;
    height: 48px;
    background: var(--cor-bg-input);
    border: 1.5px solid var(--cor-borda);
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.dd:hover {
    background: #f0f4fb;
    border-color: #b0c2df;
}

.dd.open,
.dd:focus-within {
    background: #fff;
    border-color: var(--cor-comprar-light);
    box-shadow: 0 0 0 3px rgba(34, 68, 154, .13);
}

.dd--disabled {
    opacity: .45;
    pointer-events: none;
}

.dd-header {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 100%;
    padding: 0 12px 0 14px;
    outline: none;
}

.selected-option {
    flex: 1;
    overflow: hidden;
    color: var(--cor-texto-principal);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* NO SITE ANTIGO O SVG DA SETA FICA 0x0 E O QUE APARECE É O TRIÂNGULO DE BORDA (#666). */
.dropdown-icon {
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-top: 5px solid #666;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transition: transform .2s;
}

.dd.open .dropdown-icon {
    transform: rotate(180deg);
}

.dd-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 9999;
    display: none;
    min-width: 190px;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid var(--cor-borda);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(5, 18, 58, .14);
    animation: dropIn .15s ease;
}

.dd.open .dd-options {
    display: block;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dd-options ul {
    max-height: 220px;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    list-style: none;
}

.dd-options ul::-webkit-scrollbar {
    width: 4px;
}

.dd-options ul::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.dd-options li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    color: var(--cor-texto-principal);
    font-size: 13px;
    cursor: pointer;
    transition: background .12s, color .12s;
}

.dd-options li:hover,
.dd-options li.foco {
    background: #f0f5ff;
    color: var(--cor-site-1);
}

.dd-options li.dd-section {
    padding: 6px 15px 4px;
    background: none;
    color: var(--cor-secao-dd);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: default;
    pointer-events: none;
}

.dd-options li.dd-placeholder {
    color: var(--cor-placeholder);
    font-style: italic;
    cursor: default;
    pointer-events: none;
}

.valor-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.valor-prefix {
    position: absolute;
    left: 10px;
    z-index: 1;
    color: var(--cor-label);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.inline-code-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: var(--cor-bg-input);
    border: 1.5px solid var(--cor-borda);
    border-radius: 4px;
    color: var(--cor-texto-principal);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.valor-input-wrap .inline-code-input {
    padding-left: 30px;
}

.inline-code-input::placeholder {
    color: var(--cor-placeholder);
    font-size: 14px;
}

.inline-code-input:hover {
    background: #f0f4fb;
}

.inline-code-input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 68, 154, .13);
    outline: none;
}

.inline-code-input.valor-input:not(:placeholder-shown) {
    background: #fff;
    border-color: #a0bbdf;
}

.inline-code-input.invalido {
    border-color: #ef4444;
}

.search-field.search-button {
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--cor-site-1), var(--cor-comprar-light));
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity .18s, transform .15s, box-shadow .18s, background .3s;
}

.search-btn .ic {
    font-size: 15px;
}

.search-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.search-btn:active {
    transform: scale(.97);
}

@media (max-width: 1024px) {
    .hero-search-overlap {
        padding: 0 16px;
    }
}

@media (max-width: 992px) {
    .search-field.search-button {
        justify-content: center;
    }

    .search-field.search-button .search-btn {
        width: 100%;
        max-width: 520px;
        height: 50px;
    }
}

@media (max-width: 900px) {
    .search-fields {
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-field,
    .search-field--codigo,
    .search-field--valor {
        flex: 0 0 calc(50% - 4px);
    }

    .search-field.search-button {
        flex: 1 0 100%;
    }
}

@media (max-width: 768px) {
    .hero-search-overlap {
        margin-top: -28px;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .main-tab {
        gap: 5px;
        padding: 10px 10px 13px;
        font-size: 12px;
    }

    .main-tab.active {
        font-size: 15px;
    }

    .search-form {
        padding: 8px;
    }

    .search-field,
    .search-field--codigo,
    .search-field--valor {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .hero-search-overlap {
        margin-top: -24px;
    }
}

/* MODAL DE BAIRROS */
.bm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9900;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .25s ease;
}

.bm-overlay--open {
    opacity: 1;
}

.bm-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: 90dvh;
    overflow: hidden;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 40px rgba(0, 0, 0, .18);
    transform: translateY(30px);
    transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}

.bm-overlay--open .bm-modal {
    transform: translateY(0);
}

@media (min-width: 600px) {
    .bm-modal {
        max-height: 80dvh;
        border-radius: 16px;
        transform: translateY(12px) scale(.97);
    }

    .bm-overlay--open .bm-modal {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .bm-modal {
        max-width: 95vw;
    }
}

.bm-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    border-bottom: 2px solid #1a3a6b;
}

.bm-title {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
}

.bm-close {
    display: flex;
    align-items: center;
    padding: 4px;
    background: none;
    border-radius: 6px;
    color: #1a3a6b;
    transition: background .15s;
}

.bm-close:hover {
    background: #f0f4ff;
}

.bm-search-wrap {
    flex-shrink: 0;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.bm-search {
    width: 100%;
    height: auto;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #252525;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}

.bm-search:focus {
    border-color: #1a3a6b;
}

.bm-body {
    flex: 1;
    padding: 6px 0 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bm-section {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 6px;
    background: #f7f7f7;
}

.bm-section-label {
    color: #333;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.bm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 4px 8px 8px;
}

.bm-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background .12s;
}

.bm-item:hover {
    background: #f0f4ff;
}

.bm-item--sel {
    background: #eef3ff;
}

.bm-item-label {
    color: #222;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

.bm-chk {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #1a3a6b;
    cursor: pointer;
}

.bm-chk--section {
    width: 15px;
    height: 15px;
}

.bm-empty {
    padding: 32px 0;
    color: #888;
    font-size: 14px;
    text-align: center;
}

.bm-footer {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #eee;
}

.bm-btn-limpar,
.bm-btn-aplicar {
    flex: 1;
    padding: 11px 0;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .15s, transform .1s;
}

.bm-btn-limpar:active,
.bm-btn-aplicar:active {
    transform: scale(.97);
}

.bm-btn-limpar {
    background: #f2f2f2;
    color: #555;
}

.bm-btn-limpar:hover {
    background: #e8e8e8;
}

.bm-btn-aplicar {
    background: #1a3a6b;
    color: #fff;
}

.bm-btn-aplicar:hover {
    background: #14306b;
}

/* =============================================================
   DESTAQUES
   ============================================================= */
.destaques {
    padding: 60px 0;
}

.properties-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 32px;
}

.properties-header__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--cor-site-1);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.properties-header__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 8px;
    color: inherit;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
}

.properties-header__title-highlight {
    position: relative;
    display: inline-block;
    color: var(--cor-site-1);
    font-weight: 800;
}

.properties-header__subtitle {
    margin: 0;
    color: #9ca3af;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.7;
}

@media (max-width: 576px) {
    .properties-header__title {
        font-size: 2.2rem;
    }
}

/* CARROSSEL (NO LUGAR DO SLICK: 3 / 2 / 1 POR VEZ, SETAS NO HOVER, PONTOS NO CELULAR) */
.carrossel {
    position: relative;
}

.carrossel [hidden] {
    display: none !important;
}

.carrossel__janela {
    overflow: hidden;
    touch-action: pan-y;
}

.carrossel__trilha {
    display: flex;
    align-items: flex-start;
    will-change: transform;
}

.carrossel__trilha.animando {
    transition: transform .5s ease;
}

.property-card-container {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    padding: 12px;
}

.carrossel__seta {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    display: block;
    width: 50px;
    height: 50px;
    background-color: var(--cor-site-1);
    border: 1px solid var(--cor-site-1);
    border-radius: 10px;
    color: var(--cor-site-2);
    font-size: 20px;
    line-height: 48px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    transition: all .3s ease 0s;
}

.carrossel__seta--prox {
    right: 15px;
    left: auto;
}

.carrossel__seta:hover {
    background-color: var(--cor-site-3);
    border-color: var(--cor-site-1);
    color: #fff;
}

.carrossel:hover .carrossel__seta {
    opacity: 1;
    visibility: visible;
}

.carrossel__pontos {
    display: none;
    margin: 30px 0 0;
    padding: 0;
    line-height: 1;
    text-align: center;
}

.carrossel__pontos li {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    background-color: #c0c0c0;
    border-radius: 100%;
    font-size: 0;
    list-style: none;
    cursor: pointer;
    transition: all .3s ease 0s;
}

.carrossel__pontos li:hover,
.carrossel__pontos li.ativo {
    width: 15px;
    height: 15px;
    margin-bottom: -2px;
    background-color: var(--cor-site-1);
}

@media (min-width: 1350px) {
    .carrossel:hover .carrossel__seta--ant {
        left: -50px;
    }

    .carrossel:hover .carrossel__seta--prox {
        right: -50px;
    }
}

@media (max-width: 1024px) {
    .property-card-container {
        flex-basis: 50%;
    }
}

@media (max-width: 767px) {
    .carrossel__seta {
        display: none;
    }

    .carrossel__pontos {
        display: block;
    }
}

@media (max-width: 579px) {
    .property-card-container {
        flex-basis: 100%;
    }
}

/* =============================================================
   TÍTULOS DAS SEÇÕES DE BAIXO (TIPOS E SERVIÇOS)
   ============================================================= */
.tipos-label,
.srv-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 16px;
    background: var(--cor-site-1);
    border: .5px solid var(--cor-site-1);
    border-radius: 7px;
    color: var(--cor-site-2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* =============================================================
   IMÓVEIS POR TIPO
   ============================================================= */
.tipos-section {
    padding: 60px 15px;
}

.tipos-header {
    margin: 0 auto 48px;
    padding: 0 15px;
    text-align: start;
}

.tipos-title {
    color: #252525;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    line-height: 1.2;
}

.tipos-title strong {
    color: var(--cor-site-1);
    font-weight: 600;
}

.tipos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.tipo-card {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    border-radius: 7px;
    cursor: pointer;
}

.tipo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tipo-card:hover img {
    transform: scale(1.05);
}

.tipo-card-1 { grid-column: 1; grid-row: 1; }
.tipo-card-2 { grid-column: 2; grid-row: 1; }
.tipo-card-3 { grid-column: 3; grid-row: 1; }
.tipo-card-4 { grid-column: 1 / 3; grid-row: 2; }
.tipo-card-5 { grid-column: 3; grid-row: 2; }

.tipo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 76%) 0%, rgb(0 0 0 / 34%) 60%, #00000000 100%);
    transition: background .3s ease;
}

.tipo-label-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px 22px;
}

.tipo-badge {
    display: inline-block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tipo-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    letter-spacing: .01em;
}

.tipo-name svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .85;
}

.tipo-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .15);
    border: .5px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s ease, transform .25s ease;
}

.tipo-card:hover .tipo-arrow {
    opacity: 1;
    transform: translateY(0);
}

.tipo-arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 860px) {
    .tipos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tipo-card-1 { grid-column: 1; grid-row: 1; }
    .tipo-card-2 { grid-column: 2; grid-row: 1; }
    .tipo-card-3 { grid-column: 1; grid-row: 2; }
    .tipo-card-4 { grid-column: 2; grid-row: 2; }
    .tipo-card-5 { grid-column: 1 / 3; grid-row: 3; }

    .tipo-card {
        height: 220px;
    }
}

@media (max-width: 520px) {
    .tipos-section {
        padding: 52px 16px;
    }

    .tipos-grid {
        grid-template-columns: 1fr;
    }

    .tipo-card-1, .tipo-card-2, .tipo-card-3, .tipo-card-4, .tipo-card-5 {
        grid-column: 1;
        height: 200px;
    }

    .tipo-card-1 { grid-row: 1; }
    .tipo-card-2 { grid-row: 2; }
    .tipo-card-3 { grid-row: 3; }
    .tipo-card-4 { grid-row: 4; }
    .tipo-card-5 { grid-row: 5; }
}

/* =============================================================
   APLICATIVO
   ============================================================= */
.cta-section {
    padding: 60px 15px;
}

.cta-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: .5px solid #dedede;
    border-radius: 20px;
}

.cta-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 17px;
    padding: 35px;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 14px;
    background: var(--cor-site-1);
    border: .5px solid var(--cor-site-1);
    border-radius: 7px;
    color: var(--cor-site-2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.cta-tag svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: var(--cor-site-2);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta-title {
    color: var(--cor-site-1);
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.cta-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cta-bullet {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4a6278;
    font-size: 14px;
    line-height: 1.6;
}

.cta-bullet-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    background: #e8f2fb;
    border-radius: 8px;
}

.cta-bullet-icon svg,
.cta-feat svg {
    fill: none;
    stroke: var(--cor-site-1);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta-bullet-icon svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.cta-tagline {
    padding-left: 14px;
    border-left: 3px solid var(--cor-site-1);
    color: #7a94aa;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
}

.cta-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--cor-site-1);
    border: .5px solid #c5d8ea;
    border-radius: 10px;
    color: #fff;
    transition: border-color .2s, background .2s, transform .2s;
}

.store-btn:hover {
    transform: translateY(-2px);
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-small {
    color: #fff;
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.store-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.cta-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    overflow: hidden;
    background: linear-gradient(135deg, #2874cb 0%, var(--cor-site-1) 100%);
}

.cta-right::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
}

.cta-right::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.cta-right-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.cta-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: var(--cor-site-2);
    border-radius: 50%;
}

.cta-phone-icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--cor-site-1);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta-right-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.cta-right-sub {
    max-width: 240px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.cta-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: .5px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    transition: transform .25s ease;
}

.cta-feat:hover {
    transform: translateY(-3px);
}

.cta-feat svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.cta-feat span {
    color: var(--cor-site-1);
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 760px) {
    .cta-wrap {
        grid-template-columns: 1fr;
    }

    .cta-left,
    .cta-right {
        padding: 40px 28px;
    }
}

/* =============================================================
   SERVIÇOS
   ============================================================= */
.srv-section {
    padding: 60px 15px;
}

.srv-header {
    margin: 0 auto 52px;
    padding: 0 15px;
    text-align: start;
}

.srv-title-head {
    color: #252525;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 600;
    line-height: 1.18;
}

.srv-title-head strong {
    color: var(--cor-site-1);
    font-weight: 600;
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.srv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 24px;
    overflow: hidden;
    background: #fff;
    border: .5px solid #dde6f0;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.srv-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cor-site-1), var(--cor-site-3));
    opacity: 0;
    transition: opacity .25s ease;
}

.srv-card:hover {
    box-shadow: 0 16px 40px rgba(28, 109, 175, .12);
    transform: translateY(-5px);
}

.srv-card:hover::before {
    opacity: 1;
}

.srv-icon-wrap {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #e8f2fb;
    border-radius: 14px;
}

.srv-icon-wrap svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--cor-site-1);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.srv-card-title {
    color: #0a1a2e;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.srv-sub {
    color: #4a6278;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.srv-number {
    position: absolute;
    top: 28px;
    right: 24px;
    color: var(--cor-site-1);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .4;
}

@media (max-width: 900px) {
    .srv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tipos-header,
    .srv-header {
        padding: 0;
    }
}

@media (max-width: 520px) {
    .srv-section {
        padding: 56px 16px;
    }

    .srv-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   DEPOIMENTOS DO PAINEL (CARROSSEL DOS DESTAQUES, CARTÃO NO ESTILO DOS SERVIÇOS)
   ============================================================= */
.depoimentos {
    padding: 60px 0;
}

/* CARTÕES DA MESMA ALTURA MESMO COM TEXTOS DE TAMANHOS DIFERENTES. */
.depoimentos .carrossel__trilha {
    align-items: stretch;
}

.depoimento-item,
.feed-item {
    display: flex;
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    padding: 12px;
}

.depoimento {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 28px 24px;
    background: #fff;
    border: .5px solid #dde6f0;
    border-radius: 16px;
}

.depoimento__nota {
    display: flex;
    gap: 2px;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1;
}

.depoimento__estrela--cheia {
    color: #f5b301;
}

.depoimento__texto {
    flex: 1;
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

.depoimento__quem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.depoimento__foto {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.depoimento__foto--inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cor-site-1);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.depoimento__dados {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.depoimento__nome {
    color: #252525;
    font-size: 15px;
    font-weight: 700;
}

.depoimento__subtitulo {
    color: #9ca3af;
    font-size: 13px;
}

/* DEPOIMENTO LONGO: 6 LINHAS NO CARTÃO E O "LER DEPOIMENTO COMPLETO" (A MARGEM AUTOMÁTICA MANTÉM A PESSOA EMBAIXO) */
.depoimento__texto--limitado {
    display: -webkit-box;
    flex: 0 0 auto;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.depoimento__ler {
    align-self: flex-start;
    margin: -6px 0 auto;
    padding: 0;
    background: none;
    border: 0;
    color: var(--cor-site-1);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.depoimento__ler:hover {
    color: var(--cor-site-3);
}

/* JANELA DO DEPOIMENTO COMPLETO (ACIMA DO CHAT E DO WHATSAPP) */
.depo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.depo-modal[hidden] {
    display: none;
}

.depo-modal__fundo {
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 58, .6);
}

.depo-modal__caixa {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px 32px 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.depo-modal__fechar {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #f3f6fa;
    border: 0;
    border-radius: 50%;
    color: #4b5563;
    font-size: 22px;
    line-height: 36px;
    cursor: pointer;
}

.depo-modal__fechar:hover {
    background: #e5ecf5;
    color: #252525;
}

.depo-modal__nota {
    margin-bottom: 14px;
}

.depo-modal__texto {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.75;
    white-space: pre-line;
}

.depo-modal__quem {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.depo-modal__nome {
    color: #252525;
    font-size: 16px;
    font-weight: 700;
}

.depo-modal__sub {
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 579px) {
    .depo-modal__caixa {
        padding: 32px 20px 22px;
    }
}

/* BOTÃO DOS BLOCOS DO PAINEL ("ENVIE SEU DEPOIMENTO", "VER TODOS OS POSTS"). */
.home-acoes {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.home-botao {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--cor-site-1);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    transition: background-color .3s ease;
}

.home-botao:hover {
    background-color: var(--cor-site-3);
    color: #fff;
}

@media (max-width: 1024px) {
    .depoimento-item,
    .feed-item {
        flex-basis: 50%;
    }
}

@media (max-width: 579px) {
    .depoimento-item,
    .feed-item {
        flex-basis: 100%;
    }
}

/* =============================================================
   BLOG DO PAINEL (3 POSTS MAIS RECENTES, CARTÃO NO ESTILO DOS SERVIÇOS)
   ============================================================= */
.blog-home {
    padding: 60px 0;
}

.blog-home__grade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-home__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: .5px solid #dde6f0;
    border-radius: 16px;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-home__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.blog-home__foto {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f6fa;
}

.blog-home__foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-home__corpo {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
}

.blog-home__categoria {
    color: var(--cor-site-1);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.blog-home__titulo {
    margin: 0;
    color: #252525;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.blog-home__card:hover .blog-home__titulo {
    color: var(--cor-site-1);
}

.blog-home__resumo {
    flex: 1;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.blog-home__data {
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .blog-home__grade {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 579px) {
    .blog-home__grade {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   FEED DO INSTAGRAM / FACEBOOK DO PAINEL (MESMAS COLUNAS DOS DEPOIMENTOS)
   ============================================================= */
.feed-rede {
    padding: 60px 0;
}

.feed-item__quadro {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: .5px solid #dde6f0;
    border-radius: 16px;
}

.feed-item__instagram {
    display: block;
    width: 100%;
    height: 560px;
    border: 0;
    background: #fff;
}

/* CÓDIGO COLADO NO PAINEL (FACEBOOK OU INSTAGRAM SEM ENDEREÇO DO POST): NÃO PASSA DA COLUNA. */
.feed-item__quadro > blockquote,
.feed-item__quadro > iframe,
.feed-item__quadro .fb-post {
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
}

/* =============================================================
   ÍNDICES DO PAINEL (INCC, IGP-M, CUB): CARTÕES CENTRALIZADOS, SEM ESTICAR QUANDO SÃO POUCOS
   ============================================================= */
.indices-home {
    padding: 60px 0;
}

.indices-home__grade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    justify-content: center;
    gap: 24px;
}

.indice-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    background: #fff;
    border: .5px solid #dde6f0;
    border-radius: 16px;
}

.indice-card__topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.indice-card__sigla {
    color: var(--cor-site-1);
    font-size: 22px;
    font-weight: 800;
}

.indice-card__ref {
    padding: 4px 10px;
    background: #f0f5ff;
    border-radius: 999px;
    color: var(--cor-site-1);
    font-size: 12px;
    font-weight: 600;
}

.indice-card__descricao {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.indice-card__principal {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* O ÍCONE TEM A LARGURA EM em NO PRÓPRIO SVG: O TAMANHO VEM DO font-size. */
.indice-card__seta {
    flex-shrink: 0;
    font-size: 22px;
}

.indice-card--alta .indice-card__seta {
    color: #16a34a;
}

.indice-card--baixa .indice-card__seta {
    color: #dc2626;
    transform: rotate(180deg);
}

.indice-card__valor {
    color: #252525;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.indice-card__rotulo {
    color: #9ca3af;
    font-size: 14px;
}

.indice-card__tabela {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.indice-card__tabela div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.indice-card__tabela dt {
    color: #6b7280;
}

.indice-card__tabela dd {
    margin: 0;
    color: #252525;
    font-weight: 700;
}

.indice-card__fonte {
    color: #9ca3af;
    font-size: 12px;
}

/* =============================================================
   SLIDERS DO PAINEL (UM POR VEZ, LARGURA DO CONTAINER)
   ============================================================= */
.sliders-home {
    padding: 60px 0;
}

/* 12PX ENTRE UM SLIDER E OUTRO NA TROCA (6PX DE CADA LADO); A JANELA ESTICA 6PX PARA AS IMAGENS SEGUIREM ALINHADAS
   COM AS BORDAS DO CONTEÚDO. */
.slider-item {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 6px;
}

.sliders-home .carrossel__janela {
    margin: 0 -6px;
}

.slider-item a {
    display: block;
}

.slider-item__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* COMPUTADOR (A PARTIR DE 768PX) E CELULAR TÊM SLIDERS PRÓPRIOS: UM CARROSSEL PARA CADA, SÓ O DA TELA APARECE */
.sliders-home__grupo--mobile {
    display: none;
}

/* SETAS DOS SLIDERS SEMPRE VISÍVEIS E PARADAS POR DENTRO DA IMAGEM (NOS OUTROS CARROSSÉIS ELAS SÓ APARECEM NO HOVER
   E, EM TELA LARGA, SALTAM PARA FORA) */
.sliders-home .carrossel__seta {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1350px) {
    .sliders-home .carrossel:hover .carrossel__seta--ant {
        left: 15px;
    }

    .sliders-home .carrossel:hover .carrossel__seta--prox {
        right: 15px;
    }
}

@media (max-width: 767px) {
    .sliders-home__grupo--desktop {
        display: none;
    }

    .sliders-home__grupo--mobile {
        display: block;
    }

    /* NO CELULAR NÃO HÁ "PASSAR O MOUSE": AS SETAS DOS SLIDERS FICAM SEMPRE VISÍVEIS (OS DESTAQUES SEGUEM SÓ COM BOLINHAS) */
    .sliders-home .carrossel__seta {
        display: block;
        width: 40px;
        height: 40px;
        font-size: 16px;
        line-height: 38px;
        opacity: 1;
        visibility: visible;
    }

    .sliders-home .carrossel__seta--ant {
        left: 10px;
    }

    .sliders-home .carrossel__seta--prox {
        right: 10px;
    }
}
