/* =========================================================
   CEDAN EMPREENDIMENTOS
   PORTFÓLIO DE OBRAS
========================================================= */


/* =========================================================
   HERO
========================================================= */

.portfolio-hero {

    position: relative;

    min-height: 590px;

    padding:
        165px 0
        100px;

    color: #ffffff;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 80% 30%,
            rgba(139, 44, 49, .30),
            transparent 28%
        ),

        linear-gradient(
            120deg,
            #061d35 0%,
            #0b365d 65%,
            #164d74 100%
        );

}


.portfolio-hero-grid {

    position: absolute;

    inset: 0;

    opacity: .14;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, .13) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, .13) 1px,
            transparent 1px
        );

    background-size:
        45px 45px;

}


.portfolio-hero::after {

    content: "";

    position: absolute;

    width: 550px;

    height: 550px;

    right: -230px;

    bottom: -280px;

    border:
        80px solid
        rgba(255, 255, 255, .025);

    border-radius: 50%;

}


.portfolio-hero-content {

    position: relative;

    z-index: 2;

}


.portfolio-breadcrumb {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 45px;

    font-size: 13px;

    color:
        rgba(255, 255, 255, .65);

}


.portfolio-breadcrumb a {

    color:
        rgba(255, 255, 255, .65);

}


.portfolio-breadcrumb a:hover {

    color: #ffffff;

}


.portfolio-breadcrumb strong {

    color: #ffffff;

}


.portfolio-label {

    display: block;

    font-size: 12px;

    letter-spacing: 2.5px;

    font-weight: 800;

    color: #d68c90;

    margin-bottom: 15px;

}


.portfolio-hero h1 {

    max-width: 900px;

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(
            43px,
            6vw,
            75px
        );

    letter-spacing:
        -.045em;

    line-height: 1;

}


.portfolio-hero h1 span {

    display: block;

    color: #d68c90;

}


.portfolio-hero p {

    max-width: 720px;

    margin-top: 27px;

    font-size: 18px;

    line-height: 1.7;

    color:
        rgba(255, 255, 255, .78);

}


.portfolio-scroll {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-top: 35px;

    color: #ffffff;

    font-weight: 700;

}


.portfolio-scroll span {

    width: 34px;

    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(--vinho);

}



/* =========================================================
   INTRODUÇÃO
========================================================= */

.portfolio-intro {

    padding:
        100px 0
        80px;

}


.portfolio-intro-grid {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 80px;

    align-items: end;

}


.portfolio-intro h2 {

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(
            34px,
            4vw,
            49px
        );

    color:
        var(--azul-escuro);

    line-height: 1.1;

    letter-spacing:
        -.035em;

}


.portfolio-intro-grid > p {

    color:
        var(--texto-claro);

    line-height: 1.75;

    font-size: 17px;

}



/* =========================================================
   RESUMO
========================================================= */

.portfolio-resumo {

    margin-top: 65px;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    border:
        1px solid
        var(--linha);

    border-radius: 14px;

    overflow: hidden;

}


.resumo-item {

    padding:
        28px 25px;

    text-align: center;

    background:
        #ffffff;

}


.resumo-item + .resumo-item {

    border-left:
        1px solid
        var(--linha);

}


.resumo-item strong {

    display: block;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 38px;

    color:
        var(--azul-escuro);

}


.resumo-item span {

    display: block;

    margin-top: 5px;

    font-size: 13px;

    color:
        var(--texto-claro);

}



/* =========================================================
   MAPA
========================================================= */

.mapa-section {

    position: relative;

    padding:
        95px 0
        110px;

    background:
        #f4f6f8;

}


.mapa-cabecalho {

    display: flex;

    align-items: flex-end;

    justify-content:
        space-between;

    gap: 30px;

    margin-bottom: 38px;

}


.mapa-cabecalho h2 {

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(
            31px,
            4vw,
            45px
        );

    color:
        var(--azul-escuro);

}


.mapa-cabecalho p {

    margin-top: 11px;

    color:
        var(--texto-claro);

}



/* =========================================================
   LEGENDA
========================================================= */

.mapa-legenda {

    display: flex;

    gap: 18px;

    background:
        #ffffff;

    padding:
        12px 17px;

    border:
        1px solid
        var(--linha);

    border-radius: 8px;

    font-size: 13px;

}


.mapa-legenda div {

    display: flex;

    gap: 7px;

    align-items: center;

}


.legenda-ponto {

    width: 10px;

    height: 10px;

    border-radius: 50%;

}


.legenda-ponto.andamento {

    background:
        var(--vinho);

}


.legenda-ponto.concluida {

    background:
        var(--azul);

}



/* =========================================================
   MAPA + PAINEL
========================================================= */

.mapa-container {

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 380px);

    min-height: 650px;

    background:
        #ffffff;

    border:
        1px solid
        #dce4ea;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 55px
        rgba(6, 29, 53, .10);

}


.mapa {

    position: relative;

    z-index: 1;

    width: 100%;

    min-height: 650px;

    background:
        #dfe7ed;

}


/* Garante que os controles fiquem visíveis */

.leaflet-control-container {

    position: relative;

    z-index: 800;

}


.leaflet-top,
.leaflet-bottom {

    z-index: 850 !important;

}



/* =========================================================
   CARD LATERAL
========================================================= */

.mapa-card {

    position: relative;

    z-index: 10;

    width: 100%;

    min-width: 0;

    max-height: 650px;

    background:
        #ffffff;

    border-left:
        1px solid
        var(--linha);

    overflow-y: auto;

    overflow-x: hidden;

    scrollbar-width: thin;

    scrollbar-color:
        #b8c4ce
        transparent;

}


.mapa-card::-webkit-scrollbar {

    width: 7px;

}


.mapa-card::-webkit-scrollbar-track {

    background:
        transparent;

}


.mapa-card::-webkit-scrollbar-thumb {

    background:
        #b8c4ce;

    border-radius: 10px;

}



/* =========================================================
   PLACEHOLDER
========================================================= */

.mapa-card-placeholder {

    min-height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding:
        40px 30px;

}


.placeholder-marker {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background:
        var(--azul-escuro);

    color:
        #ffffff;

    font-size: 30px;

    margin-bottom: 22px;

}


.mapa-card-placeholder h3 {

    font-family:
        "Montserrat",
        sans-serif;

    color:
        var(--azul-escuro);

}


.mapa-card-placeholder p {

    margin-top: 10px;

    color:
        var(--texto-claro);

    line-height: 1.55;

    max-width: 280px;

}



/* =========================================================
   CABEÇALHO MOBILE DO CARD
========================================================= */

.obra-card-mobile-header {

    display: none;

}



/* =========================================================
   GALERIA DA OBRA
========================================================= */

.obra-galeria {
    width: 100%;
    min-width: 0;

    background: #ffffff;
}


.obra-galeria-principal {
    position: relative;

    width: 100%;
    height: 260px;

    overflow: hidden;

    background: #eef2f5;
}


.obra-galeria-imagem-principal {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    background: #eef2f5;
}


.obra-imagem-fallback {
    object-fit: contain !important;

    padding: 35px !important;

    background: #ffffff !important;
}


/* =========================================================
   SETAS DA GALERIA
========================================================= */

.obra-galeria-seta {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, .94);

    color:
        var(--azul-escuro);

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, .18);

    transition:
        background .2s ease,
        transform .2s ease;
}


.obra-galeria-seta:hover {
    background: #ffffff;
}


.obra-galeria-anterior {
    left: 12px;
}


.obra-galeria-proxima {
    right: 12px;
}


/* =========================================================
   CONTADOR DA GALERIA
========================================================= */

.obra-galeria-contador {
    position: absolute;

    right: 12px;
    bottom: 12px;

    z-index: 10;

    padding:
        5px 10px;

    border-radius: 999px;

    background:
        rgba(6, 29, 53, .78);

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   MINIATURAS DA GALERIA
========================================================= */

.obra-galeria-miniaturas {
    display: flex;

    gap: 8px;

    width: 100%;

    padding: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    background: #ffffff;

    scrollbar-width: thin;
}


.obra-galeria-miniaturas::-webkit-scrollbar {
    height: 5px;
}


.obra-galeria-miniaturas::-webkit-scrollbar-thumb {
    background: #bdc7cf;

    border-radius: 10px;
}


.obra-galeria-miniatura {
    flex: 0 0 74px;

    width: 74px;
    height: 54px;

    padding: 0;

    border:
        2px solid
        transparent;

    border-radius: 7px;

    overflow: hidden;

    background: #ffffff;

    cursor: pointer;

    opacity: .65;

    transition:
        opacity .2s ease,
        border-color .2s ease;
}


.obra-galeria-miniatura:hover {
    opacity: .9;
}


.obra-galeria-miniatura.active {
    opacity: 1;

    border-color:
        var(--vinho);
}


.obra-galeria-miniatura img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   CONTEÚDO DO CARD
========================================================= */

.obra-detalhe-conteudo {

    width: 100%;

    padding: 27px;

    overflow-wrap: anywhere;

}


.obra-status {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        7px 10px;

    border-radius: 999px;

    margin-bottom: 15px;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .7px;

}


.obra-status::before {

    content: "";

    width: 7px;

    height: 7px;

    flex:
        0 0 7px;

    border-radius: 50%;

    background:
        currentColor;

}


.obra-status.andamento {

    color:
        var(--vinho);

    background:
        rgba(139, 44, 49, .10);

}


.obra-status.concluida {

    color:
        var(--azul);

    background:
        rgba(11, 54, 93, .10);

}


.obra-detalhe-conteudo h3 {

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(
            20px,
            2vw,
            25px
        );

    line-height: 1.2;

    color:
        var(--azul-escuro);

    word-break:
        break-word;

}


.obra-cidade {

    display: block;

    margin-top: 7px;

    color:
        var(--texto-claro);

    font-size: 14px;

}


.obra-detalhe-texto {

    margin:
        20px 0;

    color:
        var(--texto-claro);

    line-height: 1.6;

    font-size: 14px;

}



/* =========================================================
   DADOS
========================================================= */

.obra-dados {

    width: 100%;

    border-top:
        1px solid
        var(--linha);

}


.obra-dado {

    display: grid;

    grid-template-columns:
        90px
        minmax(0, 1fr);

    gap: 12px;

    padding:
        12px 0;

    border-bottom:
        1px solid
        var(--linha);

    font-size: 13px;

}


.obra-dado strong {

    color:
        var(--azul-escuro);

}


.obra-dado span {

    min-width: 0;

    color:
        var(--texto-claro);

    overflow-wrap:
        anywhere;

}

/* =========================================================
   MARCADORES
========================================================= */

.cedan-marker {

    background:
        transparent;

    border: 0;

}


.cedan-pin {

    position: relative;

    width: 34px;

    height: 34px;

    border-radius:
        50% 50% 50% 0;

    transform:
        rotate(-45deg);

    border:
        3px solid
        #ffffff;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, .28);

    cursor: pointer;

}


.cedan-pin::after {

    content: "";

    position: absolute;

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background:
        #ffffff;

    top: 9px;

    left: 9px;

}


.cedan-pin.andamento {

    background:
        var(--vinho);

}


.cedan-pin.concluida {

    background:
        var(--azul);

}



/* =========================================================
   BOTÃO VOLTAR / VISÃO GERAL
========================================================= */

.cedan-home-control {

    margin-top: 10px !important;

    margin-right: 10px !important;

}


.botao-mapa-estado {

    appearance: none;

    -webkit-appearance: none;

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border:
        2px solid
        rgba(11, 54, 93, .12);

    outline: none;

    border-radius: 9px;

    background:
        #ffffff;

    color:
        var(--azul-escuro);

    font-size: 23px;

    line-height: 1;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, .22);

    transition:
        background .2s,
        color .2s,
        transform .2s;

}


.botao-mapa-estado:hover {

    background:
        var(--azul);

    color:
        #ffffff;

    transform:
        translateY(-1px);

}



/* =========================================================
   LISTAGEM
========================================================= */

.obras-listagem {

    padding:
        105px 0;

    background:
        #ffffff;

}


.obras-listagem-header {

    display: flex;

    justify-content:
        space-between;

    align-items: flex-end;

    gap: 30px;

    margin-bottom: 45px;

}


.obras-listagem h2 {

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(
            31px,
            4vw,
            45px
        );

    color:
        var(--azul-escuro);

}


.filtros-obras {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.filtro-btn {

    min-height: 42px;

    padding:
        0 17px;

    border:
        1px solid
        var(--linha);

    border-radius: 6px;

    background:
        #ffffff;

    color:
        var(--texto-claro);

    cursor: pointer;

    font-weight: 600;

    transition: .2s;

}


.filtro-btn:hover {

    border-color:
        var(--azul);

    color:
        var(--azul);

}


.filtro-btn.active {

    background:
        var(--azul);

    border-color:
        var(--azul);

    color:
        #ffffff;

}



/* =========================================================
   CARDS LISTAGEM
========================================================= */

.obras-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 25px;

}


.obra-card {

    background:
        #ffffff;

    border:
        1px solid
        var(--linha);

    border-radius: 13px;

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .3s,
        box-shadow .3s;

}


.obra-card:focus-visible {

    outline:
        3px solid
        rgba(11, 54, 93, .25);

    outline-offset: 3px;

}


.obra-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 18px 45px
        rgba(6, 29, 53, .12);

}


.obra-card-imagem {

    position: relative;

    overflow: hidden;

}


.obra-card-imagem img {

    display: block;

    width: 100%;

    aspect-ratio:
        16 / 10;

    object-fit: cover;

    transition: .5s;

}


.obra-card:hover
.obra-card-imagem img {

    transform:
        scale(1.04);

}


.obra-card-status {

    position: absolute;

    top: 15px;

    left: 15px;

    padding:
        7px 11px;

    border-radius: 999px;

    color:
        #ffffff;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .5px;

}


.obra-card-status.andamento {

    background:
        var(--vinho);

}


.obra-card-status.concluida {

    background:
        var(--azul);

}


.obra-card-conteudo {

    padding:
        24px;

}


.obra-card-cidade {

    color:
        var(--vinho);

    text-transform: uppercase;

    letter-spacing: 1px;

    font-size: 11px;

    font-weight: 800;

}


.obra-card h3 {

    font-family:
        "Montserrat",
        sans-serif;

    margin-top: 7px;

    color:
        var(--azul-escuro);

    font-size: 19px;

}


.obra-card p {

    margin-top: 11px;

    color:
        var(--texto-claro);

    line-height: 1.55;

    font-size: 14px;

}


.obra-card-footer {

    margin-top: 20px;

    padding-top: 17px;

    border-top:
        1px solid
        var(--linha);

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 10px;

}


.obra-card-footer span {

    font-size: 12px;

    color:
        var(--texto-claro);

}


.obra-card-link {

    color:
        var(--azul);

    font-weight: 700;

    font-size: 13px;

    cursor: pointer;

    border: 0;

    background:
        transparent;

}



/* =========================================================
   CTA
========================================================= */

.portfolio-cta {

    padding:
        35px 0
        100px;

    background:
        #ffffff;

}


.portfolio-cta-box {

    padding:
        55px 60px;

    border-radius: 17px;

    background:
        linear-gradient(
            125deg,
            #061d35,
            #0b365d
        );

    color:
        #ffffff;

    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 50px;

    align-items: center;

}


.portfolio-cta-box > div > span {

    color:
        #d68c90;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

}


.portfolio-cta h2 {

    margin-top: 10px;

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(
            28px,
            4vw,
            40px
        );

}


.portfolio-cta p {

    color:
        rgba(255, 255, 255, .7);

    margin-top: 12px;

}


.portfolio-cta-btn {

    min-height: 52px;

    padding:
        0 24px;

    display: inline-flex;

    gap: 11px;

    align-items: center;

    justify-content: center;

    white-space: nowrap;

    background:
        var(--vinho);

    color:
        #ffffff;

    border-radius: 7px;

    font-weight: 700;

}



/* =========================================================
   LEAFLET
========================================================= */

.leaflet-control-zoom {

    border: 0 !important;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, .14)
        !important;

}


.leaflet-control-zoom a {

    color:
        var(--azul-escuro)
        !important;

}



/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 1050px) {

    .mapa-container {

        grid-template-columns:
            1fr;

        min-height: auto;

    }


    .mapa {

        min-height: 540px;

    }


    .mapa-card {

        max-height: none;

        border-left: 0;

        border-top:
            1px solid
            var(--linha);

        overflow: visible;

    }


    .mapa-card-placeholder {

        min-height: 250px;

    }


    .obra-galeria-principal {

        height: 300px;

    }


    .obra-detalhe-conteudo {

        padding: 30px;

    }


    .obra-dado {

        grid-template-columns:
            120px
            minmax(0, 1fr);

    }


    .obras-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media
(max-width: 720px) {

    .portfolio-hero {

        min-height: auto;

        padding:
            125px 0
            75px;

    }


    .portfolio-breadcrumb {

        margin-bottom:
            35px;

    }


    .portfolio-hero h1 {

        font-size:
            42px;

    }


    .portfolio-hero p {

        font-size:
            16px;

    }


    .portfolio-intro {

        padding:
            75px 0
            60px;

    }


    .portfolio-intro-grid {

        grid-template-columns:
            1fr;

        gap:
            25px;

    }


    .portfolio-resumo {

        grid-template-columns:
            repeat(
                2,
                1fr
            );

        margin-top:
            45px;

    }


    .resumo-item:nth-child(3) {

        border-left: 0;

        border-top:
            1px solid
            var(--linha);

    }


    .resumo-item:nth-child(4) {

        border-top:
            1px solid
            var(--linha);

    }


    .mapa-section {

        padding:
            70px 0;

    }


    .mapa-cabecalho {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .mapa-legenda {

        width: 100%;

        justify-content:
            space-between;

    }


    /* =====================================================
       MAPA MOBILE
    ===================================================== */

    .mapa-container {

        display: block;

        width: 100%;

        min-height: 500px;

        border-radius:
            12px;

        overflow: hidden;

    }


    .mapa {

        width: 100%;

        min-height:
            500px;

    }


    /*
     * O card deixa de ficar embaixo.
     *
     * Ele vira um painel flutuante
     * sobre a tela.
     */

    .mapa-card {

        position: fixed;

        z-index: 5000;

        left: 10px;

        right: 10px;

        bottom: 10px;

        width: auto;

        max-height:
            min(
                88vh,
                760px
            );

        border:
            1px solid
            rgba(6, 29, 53, .12);

        border-radius:
            18px;

        background:
            #ffffff;

        overflow-y: auto;

        overflow-x: hidden;

        box-shadow:
            0 15px 60px
            rgba(0, 0, 0, .28);

        /*
         * Inicialmente escondido.
         */

        transform:
            translateY(
                calc(100% + 40px)
            );

        opacity: 0;

        pointer-events:
            none;

        transition:
            transform .35s ease,
            opacity .3s ease;

    }


    .mapa-card.mobile-open {

        transform:
            translateY(0);

        opacity: 1;

        pointer-events:
            auto;

    }


    /*
     * Enquanto não tiver obra
     * selecionada, não queremos
     * mostrar o placeholder
     * como popup.
     */

    .mapa-card:not(.mobile-open)
    .mapa-card-placeholder {

        display: none;

    }


    /* =====================================================
       CABEÇALHO DO PAINEL
    ===================================================== */

    .obra-card-mobile-header {

        position: sticky;

        top: 0;

        z-index: 30;

        height: 44px;

        display: flex;

        align-items: center;

        justify-content:
            space-between;

        padding:
            0 12px
            0 18px;

        background:
            rgba(255, 255, 255, .97);

        backdrop-filter:
            blur(8px);

        border-bottom:
            1px solid
            var(--linha);

    }


    .obra-card-mobile-header span {

        font-size: 12px;

        font-weight: 800;

        color:
            var(--azul-escuro);

        text-transform:
            uppercase;

        letter-spacing:
            .6px;

    }


    .obra-card-fechar {

        appearance: none;
        -webkit-appearance: none;

        position: relative;

        z-index: 100;

        flex: 0 0 40px;

        width: 40px;
        height: 40px;

        display: grid;

        place-items: center;

        padding: 0;

        border: 0;

        border-radius: 50%;

        background:
            #f0f3f5;

        color:
            var(--azul-escuro);

        cursor: pointer;

        font-size: 26px;

        line-height: 1;

        touch-action:
            manipulation;

        -webkit-tap-highlight-color:
            transparent;

    }


    .obra-card-fechar:hover {

        background:
            #e4e9ed;

    }


    /* =====================================================
       GALERIA MOBILE
    ===================================================== */

    .obra-galeria-principal {

        height: 230px;

    }


    .obra-galeria-miniaturas {

        gap: 7px;

        padding:
            8px 10px;

    }


    .obra-galeria-miniatura {

        flex-basis: 64px;

        width: 64px;
        height: 48px;

    }


    .obra-galeria-seta {

        width: 37px;
        height: 37px;

        font-size: 24px;

    }


    .obra-galeria-anterior {

        left: 9px;

    }


    .obra-galeria-proxima {

        right: 9px;

    }


    .obra-galeria-contador {

        right: 9px;
        bottom: 9px;

        font-size: 10px;

    }


    /* =====================================================
       CONTEÚDO MAIS COMPACTO
    ===================================================== */


    .obra-detalhe-conteudo {

        padding:
            18px 18px
            20px;

    }


    .obra-status {

        margin-bottom:
            10px;

        padding:
            6px 9px;

        font-size:
            9px;

    }


    .obra-detalhe-conteudo h3 {

        font-size:
            19px;

        line-height:
            1.15;

    }


    .obra-cidade {

        margin-top:
            4px;

        font-size:
            12px;

    }


    .obra-detalhe-texto {

        margin:
            12px 0
            14px;

        font-size:
            12px;

        line-height:
            1.45;

    }


    /*
     * No celular os dados ficam
     * em duas colunas compactas.
     */

    .obra-dados {

        display: grid;

        grid-template-columns:
            1fr
            1fr;

        gap:
            0 14px;

    }


    .obra-dado {

        display: block;

        padding:
            9px 0;

        min-width: 0;

    }


    .obra-dado strong {

        display: block;

        margin-bottom:
            3px;

        font-size:
            10px;

        text-transform:
            uppercase;

        letter-spacing:
            .4px;

    }


    .obra-dado span {

        display: block;

        font-size:
            12px;

        line-height:
            1.35;

    }


    /*
     * Serviços pode precisar de
     * mais largura.
     */

    .obra-dado.obra-dado-servicos {

        grid-column:
            1 / -1;

    }



    /* =====================================================
       BOTÃO HOME NO MOBILE
    ===================================================== */

    .botao-mapa-estado {

        width:
            43px;

        height:
            43px;

        font-size:
            21px;

    }


    /* =====================================================
       LISTAGEM
    ===================================================== */

    .obras-listagem {

        padding:
            75px 0;

    }


    .obras-listagem-header {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .filtros-obras {

        width: 100%;

    }


    .filtro-btn {

        flex: 1;

    }


    .obras-grid {

        grid-template-columns:
            1fr;

    }


    /* =====================================================
       CTA
    ===================================================== */

    .portfolio-cta {

        padding-bottom:
            75px;

    }


    .portfolio-cta-box {

        padding:
            38px 28px;

        grid-template-columns:
            1fr;

        gap:
            30px;

    }


    .portfolio-cta-btn {

        width: 100%;

    }

}



/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media
(max-width: 390px) {

    .portfolio-hero h1 {

        font-size:
            36px;

    }


    .resumo-item {

        padding:
            23px 10px;

    }


    .resumo-item strong {

        font-size:
            31px;

    }


    .mapa {

        min-height:
            470px;

    }


    .mapa-container {

        min-height:
            470px;

    }


    .mapa-card {

        left:
            7px;

        right:
            7px;

        bottom:
            7px;

        max-height:
            90vh;

        border-radius:
            15px;

    }


    .obra-galeria-principal {

        height: 205px;

    }


    .obra-galeria-miniatura {

        flex-basis: 58px;

        width: 58px;
        height: 44px;

    }



    .obra-detalhe-conteudo {

        padding:
            16px;

    }


    .obra-detalhe-conteudo h3 {

        font-size:
            18px;

    }


    .obra-detalhe-texto {

        font-size:
            11px;

    }


    .obra-dado span {

        font-size:
            11px;

    }


    .filtros-obras {

        flex-direction:
            column;

    }

}


/* =========================================================
   CORREÇÃO GALERIA MOBILE
   Evita fotos estourando o grid
========================================================= */

@media (max-width: 720px) {

    .mapa-card,
    .obra-galeria,
    .obra-galeria-principal,
    .obra-galeria-miniaturas,
    .obra-detalhe-conteudo {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        box-sizing: border-box;
    }


    /* FOTO PRINCIPAL */

    .obra-galeria-principal {
        position: relative;

        height: 220px;

        overflow: hidden;

        background: #eef2f5;
    }


    .obra-galeria-imagem-principal {
        display: block;

        width: 100%;
        max-width: 100%;

        height: 100%;

        object-fit: cover;

        object-position: center;

        margin: 0;
        padding: 0;
    }


    /* MINIATURAS */

    .obra-galeria-miniaturas {
        display: flex;

        gap: 7px;

        padding: 8px 10px;

        overflow-x: auto;
        overflow-y: hidden;

        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
    }


    .obra-galeria-miniatura {
        flex: 0 0 62px;

        width: 62px;
        min-width: 62px;
        max-width: 62px;

        height: 46px;

        padding: 0;

        overflow: hidden;

        box-sizing: border-box;
    }


    .obra-galeria-miniatura img {
        display: block;

        width: 100%;
        max-width: 100%;

        height: 100%;

        object-fit: cover;

        margin: 0;
        padding: 0;
    }


    /* CONTEÚDO */

    .obra-detalhe-conteudo {
        overflow: hidden;

        overflow-wrap: anywhere;
    }


    /* DADOS */

    .obra-dados {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        box-sizing: border-box;
    }


    .obra-dado {
        min-width: 0;

        overflow-wrap: anywhere;
    }

}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 390px) {

    .obra-galeria-principal {
        height: 195px;
    }


    .obra-galeria-miniatura {
        flex-basis: 56px;

        width: 56px;
        min-width: 56px;
        max-width: 56px;

        height: 42px;
    }

}

/* =========================================================
   CARROSSEL DE OBRAS - MOBILE
========================================================= */

@media (max-width: 720px) {

    .obras-listagem {
        overflow: hidden;
    }

    #obrasGrid {
        display: grid !important;
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc(100vw - 65px) !important;

        width: calc(100% + 28px);
        max-width: none;

        margin-left: -14px;
        margin-right: -14px;

        padding: 6px 14px 24px;

        gap: 16px;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scroll-padding-left: 14px;

        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    #obrasGrid::-webkit-scrollbar {
        display: none;
    }

    #obrasGrid > .obra-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        margin: 0 !important;

        scroll-snap-align: center;
        scroll-snap-stop: always;

        box-sizing: border-box;
    }

    #obrasGrid > .obra-card .obra-card-imagem {
        width: 100%;
        height: 210px;

        overflow: hidden;
    }

    #obrasGrid > .obra-card .obra-card-imagem img {
        display: block;

        width: 100% !important;
        max-width: 100% !important;

        height: 100% !important;

        aspect-ratio: auto !important;

        object-fit: cover;
        object-position: center;

        margin: 0;
        padding: 0;
    }

    #obrasGrid .obra-card-conteudo {
        width: 100%;
        min-width: 0;

        box-sizing: border-box;
    }

    #obrasGrid .obra-card h3,
    #obrasGrid .obra-card p,
    #obrasGrid .obra-card-footer,
    #obrasGrid .obra-card-footer span {
        min-width: 0;
        max-width: 100%;

        overflow-wrap: anywhere;
    }

    #obrasGrid .obra-card:hover {
        transform: none;
    }
}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 390px) {

    #obrasGrid {
        grid-auto-columns: calc(100vw - 50px) !important;
        gap: 14px;
    }

    #obrasGrid > .obra-card .obra-card-imagem {
        height: 195px;
    }
}