/* ===========================================================
   RESET + BASE
   =========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f5f5f5;
    color: #0b1c2c;
}

/* Container padrão */
.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

/* ===========================================================
   TEMAS (CONIIB + FEMININO)
   =========================================================== */
body.tema-coniib {
    --cor-primaria: #003F8C;
    --cor-secundaria: #0B1C2C;
    --cor-dourado: #D4AF37;
    --cor-texto: #ffffff;
    --cor-fundo: #f5f5f5;
}

body.tema-feminino {
    --cor-primaria: #E91E63;
    --cor-secundaria: #fa39d7;
    --cor-dourado: #D8B77C;
    --cor-texto: #ffffff;
    --cor-fundo: #fff2f7;
}

/* ===========================================================
   CABEÇALHO FIXO PREMIUM
   =========================================================== */
.header {
    width: 100%;
    background: var(--cor-secundaria);
    padding: 14px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    border-bottom: 3px solid var(--cor-dourado);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 120px;
    height: auto;
}

.logo span {
    font-size: 30px;
    color: var(--cor-dourado);
    font-weight: bold;
    letter-spacing: 1px;
}

.menu a {
    color: white;
    margin-left: 18px;
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover {
    color: var(--cor-dourado);
}

.btn-menu {
    background: var(--cor-dourado);
    padding: 8px 18px;
    border-radius: 6px;
    color: #0b1c2c !important;
    font-weight: bold;
}

/* ===========================================================
   HERO INSTITUCIONAL
   =========================================================== */
.hero {
    width: 100%;
    height: 100vh;
    background: url("./assets/images/projeto.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 44, 0.75);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--cor-texto);
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 62px;
    font-weight: 800;
    color: var(--cor-dourado);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 22px;
    margin-top: 10px;
    font-weight: 300;
}

.hero-text {
    font-size: 18px;
    margin: 20px 0;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--cor-dourado);
    color: #0b1c2c;
}

.btn-secondary {
    border: 2px solid var(--cor-dourado);
    color: var(--cor-dourado);
}

.btn-secondary:hover {
    background: var(--cor-dourado);
    color: #0b1c2c;
}

/* ===========================================================
   SEÇÕES PADRÃO
   =========================================================== */
.section {
    padding: 80px 0;
    background: var(--cor-fundo);
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--cor-primaria);
    margin-bottom: 50px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    border-top: 4px solid var(--cor-dourado);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ===========================================================
   SEÇÃO INSTITUCIONAL
   =========================================================== */
.section-alt {
    padding: 80px 0;
    background: white;
}

.institucional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.institucional .txt h2 {
    font-size: 34px;
    color: var(--cor-primaria);
}

.institucional p {
    margin: 15px 0;
    line-height: 1.7;
}

.institucional .img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===========================================================
   RODAPÉ
   =========================================================== */
.footer {
    background: var(--cor-secundaria);
    padding: 35px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 4px solid var(--cor-dourado);
}

.footer p {
    color: white;
    margin-top: 8px;
}

/* ===========================================================
   RESPONSIVIDADE
   =========================================================== */
@media (max-width: 900px) {
    .institucional {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 46px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 36px;
    }

    .header .menu {
        display: none;
    }
}
/* ================================
   BOTÕES SEPARADOS DO MENU
   ================================ */

.menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Grupo do lado direito */
.menu-botoes {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

/* Botão azul – Área do Ministro */
.btn-ministro {
    background: #3FA9F5;
    padding: 8px 18px;
    border-radius: 6px;
    color: #ffffff !important;
    font-weight: bold;
    transition: 0.3s;
}

.btn-ministro:hover {
    background: #1d8bd1;
}

/* Botão bordô – Área da Diretoria */
.btn-diretoria {
    background: #B3203B;
    padding: 8px 18px;
    border-radius: 6px;
    color: #ffffff !important;
    font-weight: bold;
    transition: 0.3s;
}

.btn-diretoria:hover {
    background: #89172d;
}
/* ===========================================================
   MELHORIA VISUAL DOS BOTÕES
   =========================================================== */

.btn-ministro,
.btn-diretoria {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    color: #fff !important;
    margin-left: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

/* Hover com brilho e elevação */
.btn-ministro:hover,
.btn-diretoria:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.35);
}

/* ===========================================================
   HAMBÚRGUER (MENU MOBILE)
   =========================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--cor-dourado);
    border-radius: 4px;
}

/* Container que controla o menu no mobile */
.menu-container {
    display: flex;
    align-items: center;
}

/* MOBILE */
@media (max-width: 900px) {

    /* Header reorganizado */
    .header .container {
        justify-content: space-between;
    }

    /* Esconde o menu normal */
    .menu {
        position: absolute;
        top: 80px;
        left: 0;
        background: var(--cor-secundaria);
        width: 100%;
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        display: none;
        border-bottom: 3px solid var(--cor-dourado);
    }

    /* Mostra o menu quando ativado */
    .menu-container.menu-open .menu {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    /* Botões no mobile ficam 100% */
    .menu-botoes {
        flex-direction: column;
        width: 100%;
    }

    .menu-botoes a {
        width: 100%;
        text-align: center;
    }

    /* Mostra o botão hambúrguer */
    .hamburger {
        display: flex;
    }
}

/* Animação de aparição */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ===========================================================
   RODAPÉ PREMIUM CONIIB
   =========================================================== */

.footer-premium {
    background: var(--cor-secundaria);
    padding: 60px 0 0 0;
    border-top: 4px solid var(--cor-dourado);
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--cor-dourado);
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--cor-dourado);
    margin-left: 5px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 12px;
}

.footer-desc {
    opacity: 0.9;
    line-height: 1.5;
}

/* Final */
.footer-final {
    background: #0a1622;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
/* ============================
   CARROSSEL DE EVENTOS
   ============================ */
.carousel-eventos {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
}

.carousel-eventos::-webkit-scrollbar {
    height: 8px;
}

.carousel-eventos::-webkit-scrollbar-thumb {
    background: var(--cor-dourado);
    border-radius: 10px;
}

.evento-card {
    min-width: 320px;
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    scroll-snap-align: start;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    text-align: center;
}

.evento-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
}
/* ============================
   CARROSSEL DE NOTÍCIAS
   ============================ */
.carousel-noticias {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
}

.noticia-card {
    min-width: 280px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    scroll-snap-align: start;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
/* ============================
   SLIDER MODERNO (FADE)
   ============================ */
.slider-modern {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    margin: 40px auto;
}

.slider-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.slider-item.active {
    opacity: 1;
}

.slider-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.45);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 18px;
}
/* ===============================
   IMAGENS ADAPTÁVEIS PARA TODO O SITE
================================*/
img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Imagens que precisam manter o corte proporcional */
.img-cover,
.galeria-grid img,
.noticia-img,
.card img,
.banner-img,
.hero-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Versão maior (banners e imagens hero) */
.hero-img-large {
    height: 350px;
    object-fit: cover;
}

/* Ajuste para responsividade mobile */
@media(max-width: 600px) {
    .img-cover,
    .galeria-grid img,
    .noticia-img,
    .card img {
        height: 180px;
    }
}
/* Layout geral */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

/* Hero */
.hero-interno {
  background: linear-gradient(135deg, #004080, #0066cc);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Notícia completa */
.noticia-completa {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.noticia-banner {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}
.noticia-subtitle {
  font-size: 1.8rem;
  margin: 20px 0;
  color: #004080;
}
.noticia-completa p {
  line-height: 1.7;
  margin-bottom: 15px;
}
.citacao {
  background: #f0f8ff;
  border-left: 4px solid #0066cc;
  padding: 15px;
  font-style: italic;
  margin: 20px 0;
  color: #004080;
}

/* Footer */
.footer-premium {
  background: #004080;
  color: #fff;
  padding: 40px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.footer-col h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.footer-col a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: 5px 0;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-final {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}/* Ajuste para evitar que o título fique escondido atrás do header */
.hero-interno {
  background: linear-gradient(135deg, #004080, #0066cc);
  color: #fff;
  padding: 120px 20px 60px; /* aumentei o padding-top */
  text-align: center;
}
/* ============================================================
   AJUSTE DAS FOTOS DA DIRETORIA - FORMATO 3x4 SEM CORTAR
   ============================================================ */

.membro-card {
    text-align: center;
}

.membro-card img.membro-foto {
    width: 100%;
    max-width: 220px;       /* tamanho ideal 3x4 */
    height: auto;
    aspect-ratio: 3 / 4;    /* força proporção */
    object-fit: cover;      /* mantém enquadramento sem distorcer */
    object-position: top center; /* não corta o rosto */
    border-radius: 10px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #ffffff;
}

/* Em telas pequenas, reduz um pouco */
@media(max-width: 600px){
  .membro-card img.membro-foto {
      max-width: 180px;
      aspect-ratio: 3 / 4;
  }
}
