
/* ============================================================
   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; 

    /* 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/fundo.png'); 
    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/fundo.png');
    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/fundo.png'); 
    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;
    gap: 15px;
}

.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(--whatsapp-green);
    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;
    transition: 0.3s;
}

.btn-send:hover {
    background: #1eb956;
    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: #25d366; }
.btn-mapa { background: #4285F4; }

/* ============================================================
   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; }
}