﻿/* =========================================================
   site.css — versão final consolidada (convênios + slide)
   ========================================================= */

/* ---------- BASE ---------- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: "Open Sans", Arial, sans-serif;
    background-color: #fff;
    color: #333;
}

a {
    color: #0366d6;
    text-decoration: none;
}

    a:hover {
        color: #024c9a;
    }

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.btn-primary {
    color: #fff;
    background: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background: #1b6ec2;
    border-color: #1861ac;
}

.error {
    margin: 0 auto;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

@media (max-width: 575.98px) {
    .login.login-v1 {
        background: transparent;
    }
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* =========================================================
   HERO / CARROSSEL PRINCIPAL
   ========================================================= */

/* Evita que o header fixed-top esconda o topo do slide */
#header.fixed-top + #hero,
#header.fixed-top ~ #hero {
    margin-top: 70px;
}

/* Container geral */
#hero,
#hero #heroCarousel,
#hero #heroCarousel .carousel-inner {
    position: relative;
    width: 100%;
    background: none;
    height: auto;
    overflow: hidden;
}

    /* Itens do carrossel */
    #hero #heroCarousel .carousel-item,
    #hero .carousel-custom {
        height: 70vh !important;
        min-height: 380px !important;
        max-height: 820px !important;
        background-position: center top !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        overflow: hidden;
    }

    /* Controles e indicadores */
    #hero .carousel-control-prev,
    #hero .carousel-control-next {
        width: 7%;
        opacity: 0.9;
    }

        #hero .carousel-control-prev:hover,
        #hero .carousel-control-next:hover {
            opacity: 1;
        }

    #hero .carousel-indicators {
        bottom: 12px;
    }

        #hero .carousel-indicators [data-bs-target] {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

/* Responsividade */
@media (max-width: 991.98px) {
    #hero #heroCarousel .carousel-item,
    #hero .carousel-custom {
        height: 52vh !important;
        min-height: 300px !important;
    }
}

@media (max-width: 575.98px) {
    #hero #heroCarousel .carousel-item,
    #hero .carousel-custom {
        height: 42vh !important;
        min-height: 220px !important;
    }
}

/* =========================================================
   CONVÊNIOS
   ========================================================= */
section#portfolio.portfolio {
    padding: 50px 0;
}

    section#portfolio.portfolio .section-title h2 {
        text-align: center;
        font-weight: 700;
        color: #333;
        border-bottom: 2px solid #ccc;
        display: inline-block;
        padding-bottom: 5px;
        margin-bottom: 30px;
    }

    /* Grid responsivo: 3 / 2 / 1 colunas */
    section#portfolio.portfolio .portfolio-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    /* Cartões */
    section#portfolio.portfolio .portfolio-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid #d0d0d0;
        border-radius: 10px;
        min-height: 160px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
        transition: transform .3s ease, box-shadow .3s ease;
    }

        section#portfolio.portfolio .portfolio-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
        }

        /* Imagens */
        section#portfolio.portfolio .portfolio-item img {
            width: auto;
            max-width: 85%;
            height: auto;
            max-height: 110px;
            object-fit: contain;
            margin: 0 auto;
            display: block;
        }

        /* Faixa inferior (nome) */
        section#portfolio.portfolio .portfolio-item .portfolio-info {
            width: 100%;
            text-align: center;
            padding: 10px;
            color: #fff;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 14px;
            border-top: 1px solid #d0d0d0;
        }

        /* Remove overlays do tema (lupa/link) */
        section#portfolio.portfolio .portfolio-item .preview-link,
        section#portfolio.portfolio .portfolio-item .details-link {
            display: none;
        }

/* Ajuste mobile dos logos */
@media (max-width: 767.98px) {
    section#portfolio.portfolio .portfolio-item {
        min-height: 140px;
    }

        section#portfolio.portfolio .portfolio-item img {
            max-height: 90px;
        }
}



/* ===== HOTFIX DEFINITIVO — HERO / SLIDE ===== */
/* Força altura em TODOS os níveis do carrossel para evitar colapso */
#hero,
#hero #heroCarousel,
#hero #heroCarousel .carousel-inner,
#hero #heroCarousel .carousel-item,
#hero .carousel-custom {
    height: 60vh !important; /* ajuste aqui se quiser maior/menor */
    min-height: 360px !important; /* garante visual em telas baixas */
    max-height: 820px !important;
}

    /* Mantém a imagem de fundo sem distorcer e visível */
    #hero .carousel-custom {
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        overflow: hidden;
    }

/* Opcional: se o header for fixed-top e estiver “comendo” o topo do slide */
#header.fixed-top + #hero,
#header.fixed-top ~ #hero {
    margin-top: 70px; /* ajuste conforme a altura do seu header */
}

/* Controles/indicadores (apenas posicionamento) */
#hero .carousel-control-prev,
#hero .carousel-control-next {
    width: 7%;
    opacity: .9;
}

    #hero .carousel-control-prev:hover,
    #hero .carousel-control-next:hover {
        opacity: 1;
    }

#hero .carousel-indicators {
    bottom: 12px;
}

    #hero .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

/* Responsivo */
@media (max-width: 991.98px) {
    #hero,
    #hero #heroCarousel,
    #hero #heroCarousel .carousel-inner,
    #hero #heroCarousel .carousel-item,
    #hero .carousel-custom {
        height: 48vh !important;
        min-height: 300px !important;
    }
}

@media (max-width: 575.98px) {
    #hero,
    #hero #heroCarousel,
    #hero #heroCarousel .carousel-inner,
    #hero #heroCarousel .carousel-item,
    #hero .carousel-custom {
        height: 40vh !important;
        min-height: 220px !important;
    }
}

/* ===== HERO FULL-SCREEN (com header fixo) ===== */

/* altura do cabeçalho fixo (ajuste se o seu for diferente) */
:root {
    --header-h: 70px;
}

/* mantém o conteúdo abaixo do header */
#header.fixed-top + #hero,
#header.fixed-top ~ #hero {
    margin-top: var(--header-h);
}

/* ocupa a janela inteira abaixo do header
   - usa 100svh/100dvh (corrigido para mobile) com fallback 100vh */
#hero,
#hero #heroCarousel,
#hero #heroCarousel .carousel-inner,
#hero #heroCarousel .carousel-item,
#hero .carousel-custom {
    height: calc(100svh - var(--header-h)) !important;
    height: calc(100dvh - var(--header-h)) !important; /* fallback moderno */
    height: calc(100vh - var(--header-h)) !important; /* fallback clássico */
    min-height: 420px !important; /* evita ficar baixo em telas pequenas */
    max-height: none !important;
}

    /* enquadramento da imagem */
    #hero .carousel-custom {
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        overflow: hidden;
    }

/* se o header for menor no mobile, diminua a variável aqui */
@media (max-width: 575.98px) {
    :root {
        --header-h: 56px;
    }
}



/* =========================================================
   CONTATO / MAPA (responsivo e alinhado ao texto)
   ========================================================= */

#contato {
    padding: 60px 0;
}

    #contato .map-section {
        width: 100%;
        overflow: hidden;
        border-radius: 10px; /* opcional: deixa mais bonito */
    }

        #contato .map-section iframe {
            width: 100%;
            max-width: 100%;
            height: 450px;
            border: 0;
            display: block;
        }

    /* Bloco de infos (endereço/email/whats) */
    #contato .info-wrap {
        background: #fff;
        padding: 30px;
        border-radius: 10px;
        border: 1px solid #e5e5e5;
        box-shadow: 0 .25rem .75rem rgba(0,0,0,.05); /* usa o mesmo padrão do seu box-shadow */
    }

    #contato .info {
        text-align: center;
    }

        #contato .info i {
            font-size: 32px;
            color: #1b6ec2; /* mesma cor do seu btn-primary */
            margin-bottom: 10px;
        }

        #contato .info h4 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 6px;
            color: #333;
        }

        #contato .info p {
            font-size: 15px;
            color: #555;
            margin: 0;
        }

/* Responsivo: mapa menor no celular */
@media (max-width: 575.98px) {
    #contato .map-section iframe {
        height: 320px;
    }

    #contato .info-wrap {
        padding: 20px;
    }
}
