/* ============================================================
   IMPORTAÇÃO DE FONTES (Google Fonts)
   - Inter → textos
   - Spectral → títulos
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Spectral:wght@400;500;600;700;800&display=swap');
/* ============================================================
   VARIÁVEIS E GLOBAIS
   ============================================================ */
:root {
    --primary: #0F2A4A;
    --light: #f8f9fa;
    --gray: #6b7280;
    --accent: #e67e22; 
    --fundo-hover: #f4f7f9;

    --whatsapp-green: #25d366; 
    --whatsapp-green-hover: #1ebd5a;

    --azul-mapa: #4285F4;
    --azul-mapa-hover: #3367d6;

    /* TIPOGRAFIA */
    --font-texto: 'Inter' ;
    --font-titulo: 'Spectral';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-texto);
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5; 
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   🔠 TIPOGRAFIA - TÍTULOS (SPECTRAL)
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.section-title,
.section-title-left,
.hero-title,
.titulo-discurso,
.dr-nome,
.header-title {
    font-family: var(--font-titulo);
    font-weight: 900;

}

/* ============================================================
   HEADER & NAVEGAÇÃO
   ============================================================ */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
}

.header-title {
    margin-left: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: var(--fundo-hover);
    color: var(--primary);
}

.btn-associe-header {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-left: 10px;
}

.btn-associe-header:hover {
    background: var(--primary);
    color: white;
}

.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
}

/* MENU MOBILE OVERLAY */
.menu-mobile-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    z-index: 1000;
    flex-direction: column;
}

.menu-mobile-overlay.show {
    display: flex !important;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    height: 90px;
}

.mobile-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.nav-item-mobile {
    text-decoration: none;
    color: var(--gray);
    padding: 18px 20px;
    font-size: 1.1rem;
    border-radius: 10px;
    font-weight: 500;
}

.nav-item-mobile.active, .nav-item-mobile.highlight {
    background-color: var(--fundo-hover);
    color: var(--primary);
    font-weight: 700;
}

.close-btn { font-size: 30px; color: var(--gray); cursor: pointer; padding: 5px; }

/* ============================================================
   CARROSSEL (INDEX)
   ============================================================ */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.slide.active { opacity: 1; z-index: 2; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15,42,74,0.75), rgba(15,42,74,0.65));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 3;
    padding: 0 20px;
}

/* ============================================================
   SEÇÃO DOENÇAS (INDEX)
   ============================================================ */
.doencas-section {
    padding: 90px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 50px;
}

.doencas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.doenca-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
}

.doenca-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.doenca-card:hover img { transform: scale(1.1); }

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(15,42,74,0.95));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: 0.4s;
}

.doenca-card:hover .overlay { opacity: 1; }

/* ============================================================
   SEÇÃO PRESIDENTE (INDEX)
   ============================================================ */
.presidente-section {
    padding: 100px 0;
    background-image: url('imagens-base/nfundo.jpeg'); 
    background-attachment: fixed;
    background-size: cover;
}

.presidente-card {
    background: #f5ede0;
    border-radius: 30px;
    display: flex;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 1150px;
    margin: 0 auto;
    gap: 50px;
}

.presidente-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #000000;
    padding-right: 40px;
}

.presidente-foto-moldura {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #f8f9fa;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.presidente-foto-moldura img { width: 100%; height: 100%; object-fit: cover; }

.dr-nome {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.dr-gestao {
    color: var(--gray);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-top: 5px;
}

.presidente-conteudo {
    flex: 2;
    position: relative;
}

.quote-icon {
    font-size: 70px;
    color: #000000;
    position: absolute;
    top: -30px;
    left: -10px;
    font-family: var(--font-titulo);
}

.titulo-discurso {
    color: var(--primary);
    font-family: serif;
    font-size: 2.3rem;
    margin-bottom: 25px;
    z-index: 2;
    position: relative;
}

.discurso p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 18px;
    text-align: justify;
}

.chamada-final {
    color: var(--primary) !important;
    font-weight: 700;
    font-style: italic;
    border-top: 1px solid #000000;
    padding-top: 15px;
}

/* ============================================================
   SEÇÃO SOBRE (LAYOUT DA IMAGEM)
   ============================================================ */
.sobre-section-bg {
    padding: 100px 0;
    background-image: url('imagens-base/nfundo.jpeg');
    background-attachment: fixed;
    background-size: cover; 
}

.sobre-header {
    text-align: center;
    margin-bottom: 70px;
}

.sobre-header h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.image-stack {
    display: flex; /* Coloca as imagens lado a lado */
    gap: 30px; /* Cria um espaço entre as duas imagens */
    align-items: center; /* Centraliza verticalmente o fluxo geral */
    justify-content: center; /* Centraliza horizontalmente o fluxo geral */
    height: 500px; /* Ajuste esta altura conforme necessário para o seu layout retrato */
}

.img-large {
    flex: 1; /* Permite que esta imagem ocupe espaço disponível */
    max-width: 45%; /* Define a largura máxima de cada retângulo portrait */
    height: 400px; /* Define a altura portrait */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    border-radius: 20px; /* Bordas arredondadas */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Sombra suave para profundidade */
    margin-top: -60px; /* Desalinhamento vertical negativo para a imagem "mais alta" */
}

.img-small {
    flex: 1; /* Permite que esta imagem ocupe espaço disponível */
    max-width: 45%; /* Define a largura máxima de cada retângulo portrait */
    height: 400px; /* Define a altura portrait (mesma da img-large ou ligeiramente diferente) */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    border-radius: 20px; /* Bordas arredondadas */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Sombra suave para profundidade */
    margin-top: 60px; /* Desalinhamento vertical negativo para a imagem "mais alta" */
}


.pillars-card-white {
    background: white;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    text-align: center;
}

.pillars-grid-sobre {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.icon-box-sobre {
    background: #f1f5f9;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 20px;
    color: var(--accent);
    font-size: 1.8rem;
}

/* Melhorias na Tipografia e Elementos do SOBRE */

.subtitle-badge {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.section-title-left {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
}

.highlight-text {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
}

.text-block p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify;
}

/* Lista de benefícios inspirada no associese.html */
.benefit-list-sobre {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

.benefit-list-sobre li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary);
}

.benefit-list-sobre li i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Ajuste no Card de Pilares para parecer mais flutuante */
.pillars-card-white {
    background: white;
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px rgba(15, 42, 74, 0.05); /* Sombra suave azulada */
    border: 1px solid rgba(0,0,0,0.03);
}

.pillar-item h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 700;
}

.icon-box-sobre {
    transition: transform 0.3s ease, background 0.3s ease;
}

.pillar-item:hover .icon-box-sobre {
    transform: translateY(-5px);
    background: var(--accent);
    color: #f1f5f9;
}

/* ============================================================
   SEÇÃO COMPROMISSOS (QUADRADOS)
   ============================================================ */
.quadrados-section {
    padding: 90px 0;
    background: #ffffff;
}

.quadrados-wrapper {
    display: grid;
    grid-template-columns: 0.35fr 1fr; 
    gap: 20px;
    margin-top: 40px;
}

.col-small, .col-large {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quadrado-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.quadrado-card:hover { transform: translateY(-5px); }
.quadrado-card h3 { font-size: 1.55rem; color: var(--primary); margin: 12px 0; font-weight: 600; }
.quadrado-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.5; }

.icon-box {
    font-size: 1.5rem;
    background: #f1f5f9;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.quadrado-card.destaque { background: var(--primary); color: white; }
.quadrado-card.destaque h3, .quadrado-card.destaque p { color: white; }
.quadrado-card.horizontal { flex-direction: row; align-items: center; gap: 30px; }

.badge-associados {
    background: white;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.badge-associados .number { display: block; color: var(--accent); font-size: 2.2rem; font-weight: 700; }
.badge-associados .label { display: block; font-size: 0.65rem; text-transform: uppercase; color: var(--primary); font-weight: 700; }

.icon-circle {
    background: #fcece3;
    color: var(--accent);
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary);
    padding: 40px 0;
    color: #ffffff;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left .brand { font-size: 1.15rem; font-weight: 600; margin-bottom: 5px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.footer-right .credits a { color: #ffffff; text-decoration: underline; }

/* ============================================================
   CONTROLES CARROSSEL & ANIMAÇÕES
   ============================================================ */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.3); color: white; border: none;
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 10;
}
.prev { left: 20px; } .next { right: 20px; }
.carousel-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; }
.dot.active { background: white; }

@keyframes heroFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-title { animation: heroFade 1.2s forwards; font-size: 3rem; margin-bottom: 10px; }
.hero-subtitle { animation: heroFade 1.2s 0.3s forwards; opacity: 0; font-size: 1.2rem; }
.hero-btn { 
    display: inline-block; background: white; color: var(--primary); 
    padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 700;
    animation: heroFade 1.2s 0.6s forwards; opacity: 0; margin-top: 20px;
}

/* ============================================================
   SEÇÃO ASSOCIE-SE (FORMULÁRIO)
   ============================================================ */
.main-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px); 
    
    background-image: url('imagens-base/nfundo.jpeg'); 
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.benefit-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefit-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.benefit-list i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 1.2rem;
}

.form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.form-card h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mantém duas colunas */
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.full-width { grid-column: span 2; }

/* Escopo fechado para não quebrar inputs de outras páginas */
.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;green
    transition: 0.3s;
}

.btn-send:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* ============================================================
   SEÇÃO ASSOCIADOS (MEDICOS)
   ============================================================ */
/* Estilos Específicos para a Página de Associados */
.search-box-container {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-box-style {
    display: flex;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.search-box-style input {
    flex: 1;
    border: none;
    padding: 10px 25px;
    outline: none;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-search:hover { background: var(--accent); }

.grid-associados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.card-medico {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-align: left;
}

.card-medico:hover { transform: translateY(-10px); }

.medico-foto {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.medico-info { padding: 20px; }
.medico-info h2 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }
.medico-detalhe { font-size: 0.9rem; margin-bottom: 5px; color: #555; }
.medico-detalhe strong { color: var(--accent); }

.btn-group-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.btn-card {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}
.btn-wpp { background: var(--whatsapp-green); }
.btn-wpp:hover { background: var(--whatsapp-green-hover); }

/* Mapa do Google */
.btn-mapa { background: var(--azul-mapa); }
.btn-mapa:hover { background: var(--azul-mapa-hover); }

/* ============================================================
   PÁGINA DE EVENTOS
   ============================================================ */
.eventos-container-white {
    background: white;
    border-radius: 30px; /* Bordas arredondadas como na imagem */
    padding: 80px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.aviso-vazio {
    color: var(--gray);
    font-size: 1.1rem;
}

.aviso-vazio i {
    display: block;
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

/* Garante que o fundo da seção cubra a tela toda se houver pouco conteúdo */
main.sobre-section-bg {
    min-height: calc(100vh - 180px); /* Ajuste baseado na altura do header/footer */
}


/* Estilo dos Cards Dinâmicos de Eventos */
#grid-eventos {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.evento-card-dinamico {
    background: white;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.evento-card-dinamico:hover { transform: scale(1.02); }

.evento-img { width: 35%; min-height: 250px; }
.evento-img img { width: 100%; height: 100%; object-fit: cover; }

.evento-info {
    padding: 40px;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.evento-data-badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
}

.evento-info h2 { color: var(--primary); font-size: 1.8rem; }
.evento-info p { color: var(--gray); font-size: 1rem; line-height: 1.5; }

.btn-evento {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    width: fit-content;
    transition: 0.3s;
}

.btn-evento:hover { background: #d35400; }

/* Responsividade Eventos */
@media (max-width: 768px) {
    .evento-card-dinamico { flex-direction: column; }
    .evento-img, .evento-info { width: 100%; }
    .evento-img { min-height: 200px; }
}


/* ============================================================
   RESPONSIVIDADE (MOBILE)
   ============================================================ */
@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .menu-toggle-btn { display: block; }
    .full-text { display: none; }
    .short-text { display: block !important; font-size: 24px; font-weight: 800; }
    
    .hero-title { font-size: 2rem; }
    .presidente-card { flex-direction: column; padding: 30px; gap: 30px; }
    .presidente-sidebar { border-right: none; border-bottom: 1px solid #eee; padding-right: 0; padding-bottom: 30px; }
    
    /* Sobre Mobile */
    .history-grid, .pillars-grid-sobre { grid-template-columns: 1fr; }
    .image-stack { height: 500px; margin-top: 30px; }
    .sobre-header h1 { font-size: 2.2rem; }

    .quadrados-wrapper { grid-template-columns: 1fr; }
    .quadrado-card.horizontal { flex-direction: column; align-items: flex-start; }
    .footer .container { flex-direction: column; text-align: center; gap: 20px; }
    .footer-right { align-items: center; text-align: center; }

    /* Associe-se Mobile */
    .content-wrapper { grid-template-columns: 1fr; text-align: center; }
    .benefit-list li { justify-content: center; }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
}

/* Estilo para o Botão do Instagram */
.btn-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-insta:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: white;
}

/* Ajuste para garantir que os botões caibam bem */
.btn-group-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* CRM e RQE na mesma linha e menos chamativos */
.docs-inline {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
}

/* Container para o botão de mapa ocupar a linha toda */
.btn-mapa-container {
    margin-top: 12px;
    width: 100%;
}

.btn-mapa-full {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: var(--azul-mapa);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-mapa-full:hover {
    background-color: var(--azul-mapa-hover);
}

.btn-mapa-full i {
    margin-right: 8px;
}

/* No seu styles.css */
.btn-group-card {
    display: grid;
    /* O WhatsApp ganha mais espaço (2fr) e o Insta fica compacto (auto) */
    grid-template-columns: 2fr auto; 
    gap: 8px;
    align-items: center;
}

.btn-insta {
    /* Ajuste para o botão ficar quadradinho e simétrico */
    width: 45px; 
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Linha cinza discreta no final */
.linha-separadora {
    grid-column: 1 / -1; /* Ocupa a largura toda */
    border-bottom: 1px solid #ccc;
    text-align: center;
    margin: 40px 0 20px;
    height: 10px;
}

.linha-separadora span {
    background: #f0f2f5; /* Cor de fundo da sua página para 'cortar' a linha */
    padding: 0 15px;
    color: #999;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Selo de finalizado sobre a imagem */
.selo-encerrado {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

/* Deixa o texto do card encerrado mais discreto */
.estilo-finalizado h2 {
    color: #888;
}
.estilo-finalizado .evento-data-badge {
    background: #ccc;
}

/* SEÇÃO INSTAGRAM TRANSPARENTE */
.insta-spo-section {
    padding: 40px 0;
    background-color: transparent; /* Agora é transparente */
}

.insta-spo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff; /* Apenas o cartão é branco */
    padding: 30px 40px;
    border-radius: 15px;
    /* Sombra mais leve para parecer que o card flutua sobre o fundo da página */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    border: 1px solid rgba(0,0,0,0.05);
}

.insta-spo-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.insta-icon-gradient {
    font-size: 3rem;
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insta-text h2 {
    font-family: var(--font-titulo);
    color: var(--primary);
    font-size: 1.6rem;
    margin: 0;
}

.insta-text p {
    color: var(--gray);
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

.btn-insta-oficial {
    background: linear-gradient(45deg, #f09433, #bc1888);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-insta-oficial:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(188, 24, 136, 0.3);
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .insta-spo-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    .insta-spo-info {
        flex-direction: column;
        gap: 10px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ESTILOS EXCLUSIVOS DA PÁGINA DIRETORIA --- */
.secao-diretoria-exclusiva {
    padding: 60px 0;
    background-color: #f0f2f5;
    min-height: 80vh;
}

.diretoria-header {
    text-align: center;
    margin-bottom: 50px;
}

.badge-bienio {
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.grid-diretoria-nova {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Card da Diretoria */
.card-diretor {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.card-diretor:hover {
    transform: translateY(-5px);
}

.diretor-img-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.diretor-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diretor-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.cargo-tag {
    display: inline-block;
    background: var(--fundo-hover);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.diretor-info h3 {
    font-family: var(--font-titulo);
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.diretor-especialidade {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

/* Destaque para o Presidente */
.card-diretor.destaque-presidencia {
    border: 2px solid var(--accent);
}
.card-diretor.destaque-presidencia .cargo-tag {
    background: var(--accent);
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .grid-diretoria-nova {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* -------------------------------------------- */

/* --- CORREÇÃO DE TAMANHO DE IMAGENS DIRETORIA --- */

/* 1. Trava a altura do container da imagem */
.associado-img {
    width: 100%;
    height: 280px; /* Altura fixa para todos os cards */
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Força a imagem a preencher o espaço sem distorcer */
.associado-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* corta as sobras e preenche tudo */
    object-position: top; /* Foca no topo (cabeça/rosto) se a foto for comprida */
    transition: transform 0.3s ease;
}

/* 3. Garante que os cards tenham a mesma altura mínima */
.associado-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Faz todos os cards da mesma linha terem o mesmo tamanho */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.associado-info {
    padding: 20px;
    flex-grow: 1; /* Empurra o conteúdo para preencher o card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Cor Laranja para o Biênio */
.badge-bienio {
    background-color: var(--accent) !important; /* Seu laranja */
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilo do parágrafo da diretoria */
.diretoria-texto {
    max-width: 800px;
    margin: 20px auto 0;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Cor laranja para o distintivo do biênio */
.badge-bienio {
    background-color: var(--accent) !important;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* --- ESTILOS EXCLUSIVOS DIRETORIA --- */

/* Cor laranja para o distintivo do biênio */
.badge-bienio {
    background-color: var(--accent) !important; /* var(--accent) é o laranja #e67e22 */
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

/* Estilo do parágrafo de introdução */
.diretoria-texto {
    max-width: 800px;
    margin: 20px auto 40px;
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Destaque para o card do Presidente */
.card-presidente-destaque {
    border: 2.5px solid var(--accent) !important;
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.2) !important;
    z-index: 5;
}

/* Deixa o badge do cargo laranja apenas no card do presidente */
.card-presidente-destaque .cargo-badge-diretoria {
    background-color: var(--accent) !important;
}

/* Badge padrão dos outros diretores (Azul S.P.O) */
.cargo-badge-diretoria {
    background: var(--primary);
    color: white;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Garante que os botões caibam lado a lado na diretoria */
.btn-group-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.btn-whatsapp, .btn-insta {
    padding: 10px 5px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white !important;
}

.btn-insta {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white !important;
}

.btn-whatsapp:hover, .btn-insta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Destaque do Presidente - Laranja */
.card-presidente-destaque {
    border: 2px solid #e67e22 !important; /* Laranja accent */
    transform: scale(1.02);
}
.card-presidente-destaque .cargo-badge-diretoria {
    background-color: #e67e22 !important;
}

/* ============================================================
   PÁGINA DIRETORIA 
   ============================================================ */
.diretoria-page {
    padding: 60px 0;
    background-image: url('imagens-base/nfundo.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Título de seção específico da diretoria */
.diretoria-page .section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-titulo);
    font-size: 2rem;
    color: var(--primary);
    border-left: 6px solid var(--accent); /* Laranja em destaque */
    padding-left: 15px;
    margin: 40px 0 25px 0;
    text-align: left; /* Sobrescreve o center do global */
}

/* Grid dos cards */
.grid-diretoria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Card do membro */
.card-membro {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
}

.card-membro:hover {
    transform: translateY(-8px);
    border-bottom: 3px solid var(--accent);
}

/* Cabeçalho do card com gradiente */
.card-header-info {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4a80 70%, var(--accent) 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

/* Foto de perfil redonda */
.img-perfil {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    background: #fff;
    overflow: hidden;
}

.img-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge do cargo (laranja vibrante) */
.cargo-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

/* Corpo do card */
.card-body-info {
    padding: 20px;
    flex-grow: 1;
}

.card-body-info h3 {
    font-family: var(--font-titulo);
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

/* Especialidade em laranja */
.especialidade-txt {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Linhas de informação (telefone, instagram, endereço) */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray);
}

.info-row i {
    color: var(--accent);
    width: 18px;
    margin-top: 3px;
}

.info-row a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.info-row a:hover {
    color: var(--accent);
}

/* Rodapé do card (CRM e RQE) */
.footer-card {
    border-top: 1px solid #eee;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: auto;
}

/* Texto "Não informado" em itálico cinza */
.nao-informado {
    color: #ccc;
    font-style: italic;
    font-weight: normal;
}

/* Destaque para o card do presidente (opcional, se quiser manter) */
.card-membro.destaque-presidente {
    border: 2px solid var(--accent);
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.2);
}
.card-membro.destaque-presidente .cargo-badge {
    background: var(--accent);
    font-size: 0.8rem;
    padding: 6px 14px;
}

/* --- Adaptação Estética da Seção Sobre --- */

.history-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
}

.highlight-text {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Box de destaque para o texto do presidente */
.president-tribute {
    background: #f8f9fa;
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Moldura da Foto */
.image-container-history {
    display: flex;
    justify-content: center;
}

.img-wrapper {
    position: relative;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    max-width: 100%;
}

.img-president {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    filter: sepia(0.2); /* Tom levemente histórico */
    transition: 0.3s;
}

.img-wrapper:hover .img-president {
    filter: sepia(0);
}

.img-caption {
    text-align: center;
    padding: 15px 5px 5px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.img-caption strong {
    display: block;
    color: var(--primary);
    font-family: var(--font-titulo);
    font-size: 1.1rem;
}

.img-caption span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Responsividade */
@media (max-width: 992px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
    .image-container-history {
        order: -1; /* Foto aparece antes do texto no mobile */
        margin-bottom: 30px;
    }
}