﻿/* =====================
   BASE
===================== */

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: #F8FAFC;
    color: #0F172A;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 40px 24px;
}

/* =============================
   HEADER INSTITUCIONAL
============================= */

.topo {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.topo-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    height: 42px;
}

/* TEXTO CENTRAL */
.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 15px;
    color: #0D2C54;
    pointer-events: none;
}

/* MENU */
.header-right {
    display: flex;
    gap: 28px;
}

    .header-right a {
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        color: #1f2937;
        position: relative;
    }

        .header-right a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 0;
            height: 2px;
            background-color: #0D2C54;
            transition: width .25s ease;
        }

        .header-right a:hover::after {
            width: 100%;
        }


/* =====================
   CABEÇALHO DA PÁGINA
===================== */

.cabecalho-pagina {
    max-width: 640px; /* não fica largo demais */
    margin-bottom: 40px;
}

    .cabecalho-pagina h1 {
        font-size: 34px;
        font-weight: 700;
        color: #000000;
        margin: 0 0 8px 0;
        line-height: 1.25;
    }

    .cabecalho-pagina p {
        font-size: 16px;
        color: #475569;
        margin: 0;
    }


/* =====================
   TÍTULO
===================== */

.titulo-pagina {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

/* =====================
   GRID
===================== */

.grid-comunicados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* =====================
   CARD
===================== */

.card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 30px rgba(0,0,0,.08);
    }

    .card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #000;
    }

    .card p {
        font-size: 14px;
        color: #475569;
    }

    .card a {
        color: #FFFFFF;
        text-decoration: none;
        font-weight: 500;
    }

/* =====================
   DETALHE
===================== */

/*.comunicado-detalhe {
    max-width: 900px;
    margin: auto;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    padding: 48px;
}

    .comunicado-detalhe h1 {
        font-size: 34px;
        color: #0A2E5C;
        margin-bottom: 12px;
    }*/

/* =========================
   DETALHE DO COMUNICADO
========================= */

.comunicado-detalhe {
    max-width: 900px;
    margin: 0 auto;
}

/* Texto */
.detalhe-header h1 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 6px;
}

.detalhe-data {
    font-size: 14px;
    color: #666;
}

/* Conteúdo */
.detalhe-conteudo {
    margin: 30px 0;
    line-height: 1.7;
    font-size: 16px;
}

/* =========================
   GALERIA / IMAGENS
========================= */

.detalhe-galeria {
    margin: 30px 0;
}

 container horizontal 
.galeria-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

     imagem controlada 
    .galeria-wrapper img {
        max-height: 380px;
        max-width: 100%;
        width: auto;
        height: auto;
        border-radius: 12px;
        object-fit: contain;  
        background: #f5f5f5;
        flex-shrink: 0;
    }

     scrollbar discreta 
    .galeria-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .galeria-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }


/* =========================
   CARROSSEL - DETALHE
========================= */

.carousel {
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
}

.carousel-track {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    height: 420px;  controla altura do slide 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 14px;
}

    .carousel-slide.active {
        display: flex;
    }

    .carousel-slide img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;  🔥 essencial 
        border-radius: 14px;
    }


    /* =========================
   DETECÇÃO ORIENTAÇÃO IMAGEM
========================= */

    /* padrão (seguro) */
    .carousel-slide img {
        object-fit: contain;
    }

        /* imagem vertical */
        .carousel-slide img.vertical {
            max-height: 420px;
            max-width: 70%;
        }

        /* imagem horizontal */
        .carousel-slide img.horizontal {
            max-width: 100%;
            max-height: 420px;
        }


/* =========================
   GALERIA / IMAGENS
========================= */

/*.detalhe-galeria {
    margin: 30px 0;
}

 container horizontal 
.galeria-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

     imagem controlada 
    .galeria-wrapper img {
        max-height: 380px;
        width: auto;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
    }

     scrollbar discreta 
    .galeria-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .galeria-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }*/


/* =========================
   CARROSSEL - DETALHE
========================= */

/*.carousel {
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
}

.carousel-track {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
}

    .carousel-slide.active {
        display: block;
    }

    .carousel-slide img {
        width: 100%;
        max-height: 420px;
        object-fit: cover;
        border-radius: 14px;
    }*/

/* =========================
   BOLINHAS
========================= */

.carousel-dots {
    margin-top: 12px;
}

    .carousel-dots .dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 5px;
        background: #cfcfcf;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s;
    }

        .carousel-dots .dot.active {
            background: #0D2C54;
        }



/* =====================
   RODAPÉ
===================== */

.rodape {
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: #475569;
    border-top: 1px solid #E5E7EB;
}

    .rodape a {
        color: #2563EB;
        text-decoration: none;
    }





/* =====================
   GRID FIXO 3 COLUNAS
===================== */

.grid-comunicados {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .grid-comunicados {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-comunicados {
        grid-template-columns: 1fr;
    }
}

/* =====================
   BOTÃO LER MAIS
===================== */

.btn-lermais {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 20px;
    background: #0A2E5C; /* Azul Projeção */
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

    .btn-lermais:hover {
        background: #1E5AA8;
        transform: translateY(-2px);
    }

/* =====================
   PAGINAÇÃO
===================== */

.paginacao {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

    .paginacao ul {
        display: flex;
        list-style: none;
        gap: 8px;
        padding: 0;
    }

    .paginacao li a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 14px;
        color: #1e3a8a;
        background: #f1f5f9;
        transition: all .2s ease;
    }

        .paginacao li a:hover {
            background: #1e3a8a;
            color: #ffffff;
        }

    .paginacao li.active a {
        background: #1e3a8a;
        color: #ffffff;
        font-weight: bold;
    }

    .paginacao li.disabled a {
        pointer-events: none;
        opacity: .4;
    }

    .paginacao .dots {
        display: flex;
        align-items: center;
        padding: 0 6px;
        color: #64748b;
    }


/*Imagem index*/


.card-imagem {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}


/* IMAGEM PADRONIZADA */
.card-imagem {
    width: 100%;
    height: 160px; /* 👈 tamanho fixo */
    overflow: hidden;
}

    .card-imagem img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 👈 NÃO distorce */
    }



/*Buscara*/

.busca-comunicados {
    margin: 32px 0 48px;
    display: flex;
    justify-content: center; 
}

    .busca-comunicados input {
        width: 100%;
        max-width: 1200px; 
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 12px;
        border: 1px solid #E5E7EB;
        background: #FFFFFF;
    }

        .busca-comunicados input::placeholder {
            color: #94A3B8;
        }

        .busca-comunicados input:focus {
            outline: none;
            border-color: #0D2C54;
            box-shadow: 0 0 0 3px rgba(13, 44, 84, 0.12);
        }


/* =====================
   CONTATO
===================== */

/* =====================
   CONTATO - NOVO ESTILO
===================== */

.contato-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

/* FORMULÁRIO */
.contato-box {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 40px;
}

    .contato-box h1 {
        font-size: 32px;
        margin-bottom: 6px;
    }

.contato-sub {
    color: #475569;
    margin-bottom: 32px;
}

.contato-form .campo {
    margin-bottom: 20px;
}

.contato-form label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    font-size: 14px;
}

    .contato-form input:focus,
    .contato-form textarea:focus {
        outline: none;
        border-color: #0D2C54;
        box-shadow: 0 0 0 3px rgba(13,44,84,.12);
    }

/* BOTÃO */
.btn-enviar {
    margin-top: 12px;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    background: #0A2E5C;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

    .btn-enviar:hover {
        background: #1E5AA8;
        transform: translateY(-2px);
    }

/* INFO LATERAL – ESTILO CLARO */

.contato-info-box {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 32px;
}

    .contato-info-box h3 {
        font-size: 18px;
        margin-bottom: 20px;
        color: #0A2E5C;
    }

/* BOTÕES */
.info-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #E5E7EB;
    background: #ffffff;
    margin-bottom: 14px;
    text-decoration: none;
    transition: all .2s ease;
}

    .info-btn:hover {
        background: #F1F5F9;
        border-color: #CBD5E1;
        transform: translateY(-2px);
    }

    /* ÍCONE */
    .info-btn .icon {
        font-size: 22px;
    }

    /* TEXTO */
    .info-btn strong {
        display: block;
        font-size: 14px;
        color: #0A2E5C;
    }

    .info-btn span {
        font-size: 13px;
        color: #475569;
    }


/* ALERTA */
.alert-sucesso {
    background: #ECFDF5;
    color: #065F46;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .contato-layout {
        grid-template-columns: 1fr;
    }

    .contato-info-box {
        margin-top: 24px;
    }
}




/* RESPONSIVO */
@media (max-width: 900px) {
    .contato-wrapper {
        grid-template-columns: 1fr;
    }
}


/* alerta */
.alert-sucesso {
    background: #ECFDF5;
    border: 1px solid #10B981;
    color: #065F46;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}


/*Logo integra*/

.logo-integra-topo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/*@media (max-width: 768px) {
    .logo-integra-topo {
        max-height: 34px;
    }
}*/




@media (max-width: 1024px) {
    .comunicados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .comunicados-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   HEADER MOBILE
===================== */

@media (max-width: 768px) {

    .topo-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* Logo */
    .logo {
        height: 36px;
    }

    /* Texto INTEGRA */
    .header-center {
        position: static; /* 🔑 REMOVE absolute */
        transform: none;
        font-size: 14px;
        letter-spacing: 3px;
        margin-top: 4px;
    }

    /* Menu */
    .header-right {
        gap: 20px;
        font-size: 14px;
    }
}



