/*
Theme Name: Movimento Doenças Negligenciadas
Theme URI: https://movimentodn.org
Author: Movimento Nacional
Description: Tema para o movimento social de combate às doenças negligenciadas
Version: 2.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #F8FBF9; 
    color: #1A3A3F; 
    overflow-x: hidden; 
}

:root {
    --primary: #C0392B;      /* Vermelho - urgência e luta */
    --primary-dark: #922B21; /* Vermelho escuro */
    --primary-light: #FADBD8; /* Vermelho claro */
    --secondary: #2874A6;     /* Azul - confiança e saúde */
    --accent: #F39C12;        /* Laranja - atenção e alerta */
    --white: #FFFFFF;
    --gray-bg: #F0F7F9;
    --text-dark: #1A3A3F;
    --text-muted: #4A6B72;
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 35px -12px rgba(192, 57, 43, 0.2);
    --radius-card: 28px;
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: -0.01em; }

/* Header */
header { 
    background: rgba(255,255,255,0.96); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(192, 57, 43, 0.1); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.top-bar { 
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%); 
    color: white; 
    font-size: 0.7rem; 
    padding: 0.3rem 0; 
    text-align: center; 
    font-weight: 500; 
}
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 0; 
    flex-wrap: wrap; 
}
.logo h1 { 
    font-size: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--primary-dark); 
    cursor: pointer;
}
.logo i { color: var(--primary); font-size: 1.6rem; }
.nav-links { 
    display: flex; 
    gap: 2rem; 
    align-items: center; 
    flex-wrap: wrap; 
    list-style: none;
}
.nav-links a { 
    text-decoration: none; 
    font-weight: 500; 
    color: var(--text-dark); 
    transition: 0.2s; 
    font-size: 0.9rem; 
    position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.btn-contato { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white !important; 
    padding: 0.5rem 1.2rem; 
    border-radius: 40px; 
    transition: all 0.3s; 
}
.btn-contato:hover { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(192,57,43,0.3); 
}
.btn-contato::after { display: none; }

/* Hero */
.hero { 
    background: linear-gradient(135deg, #FEF5F5 0%, #FFFFFF 100%); 
    min-height: 85vh; 
    display: flex; 
    align-items: center; 
}
.hero-grid { 
    display: flex; 
    align-items: center; 
    gap: 3rem; 
    flex-wrap: wrap; 
}
.hero-left { flex: 1.2; }
.hero-badge { 
    background: var(--accent); 
    color: var(--primary-dark); 
    display: inline-block; 
    padding: 0.3rem 1.2rem; 
    border-radius: 40px; 
    font-weight: 700; 
    font-size: 0.8rem; 
    margin-bottom: 1.5rem; 
}
.hero h1 { 
    font-size: 3.2rem; 
    line-height: 1.2; 
    color: var(--primary-dark); 
    margin-bottom: 1.5rem; 
}
.hero h1 span { color: var(--primary); font-style: italic; }
.hero-desc { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    max-width: 500px; 
}
.hero-stats { 
    display: flex; 
    gap: 2rem; 
    margin-top: 2rem; 
    flex-wrap: wrap; 
}
.stat-number { 
    font-size: 2rem; 
    font-weight: 800; 
    color: var(--primary); 
    font-family: 'Playfair Display', serif; 
}
.hero-right { flex: 0.9; text-align: center; }
.hero-img { 
    width: 100%; 
    max-width: 450px; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    border-radius: 50% 40% 60% 40%; 
    box-shadow: var(--shadow-lg); 
    animation: float 3s ease-in-out infinite; 
}
@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}

/* Botões */
.btn-primary, .btn-outline {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
    color: white; 
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.3); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 28px rgba(192, 57, 43, 0.4); 
}
.btn-outline { 
    background: transparent; 
    border: 2px solid var(--primary); 
    color: var(--primary); 
}
.btn-outline:hover { 
    background: var(--primary); 
    color: white; 
    transform: translateY(-2px); 
}

/* Cards - Quem Somos */
.sobre-container { 
    background: linear-gradient(135deg, var(--white), var(--primary-light)); 
    border-radius: 48px; 
    padding: 2.5rem; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 2rem; 
    align-items: center; 
}
.sobre-img { flex: 1; text-align: center; }
.sobre-img img { 
    width: 100%; 
    max-width: 350px; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    border-radius: 32px; 
    box-shadow: var(--shadow-lg); 
}
.sobre-texto { flex: 2; }
.sobre-texto h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 1rem; }
.sobre-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.sobre-tag { 
    background: var(--primary); 
    color: white; 
    padding: 0.3rem 1rem; 
    border-radius: 40px; 
    font-size: 0.75rem; 
    font-weight: 600; 
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; color: var(--primary-dark); }
.section-header h2:after { 
    content: ''; 
    display: block; 
    width: 80px; 
    height: 3px; 
    background: linear-gradient(90deg, var(--primary), var(--accent)); 
    margin: 0.8rem auto 0; 
    border-radius: 4px; 
}

/* ========== PILARES (DOENÇAS) - ANIMAÇÃO ROTATE ========== */
.pilares-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
    margin-top: 2rem; 
}
.card-pilar { 
    background: var(--white); 
    border-radius: var(--radius-card); 
    padding: 2rem; 
    text-align: center; 
    box-shadow: var(--shadow-md); 
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1); 
    border: 1px solid rgba(192, 57, 43, 0.1); 
    cursor: pointer; 
}
.card-pilar:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: var(--shadow-lg); 
}
.card-pilar i { 
    font-size: 2.8rem; 
    color: var(--primary); 
    margin-bottom: 1.2rem; 
    display: inline-block; 
    transition: transform 0.5s ease; 
}
.card-pilar:hover i { 
    transform: rotate(360deg) scale(1.1); 
}

/* ========== NOTÍCIAS - HOVER E ELEVAÇÃO ========== */
.news-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    flex-wrap: wrap; 
    margin-bottom: 2rem; 
    border-bottom: 2px solid var(--primary); 
    padding-bottom: 0.8rem; 
}
.categoria-filtros { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.filtro-btn { 
    background: transparent; 
    border: none; 
    font-weight: 500; 
    padding: 0.4rem 1rem; 
    cursor: pointer; 
    border-radius: 40px; 
    transition: all 0.2s; 
    color: var(--text-muted); 
    font-size: 0.85rem; 
}
.filtro-btn.active, .filtro-btn:hover { 
    background: var(--primary); 
    color: white; 
}

.materias-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 2rem; 
    margin-top: 2rem; 
}
.card-materia { 
    background: var(--white); 
    border-radius: var(--radius-card); 
    overflow: hidden; 
    transition: all 0.4s ease; 
    box-shadow: var(--shadow-md); 
    cursor: pointer;
}
.card-materia:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
}
.img-materia { 
    height: 200px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}
.cat-label { 
    position: absolute; 
    bottom: 12px; 
    left: 12px; 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; 
    font-weight: 600; 
    padding: 0.2rem 1rem; 
    border-radius: 30px; 
    font-size: 0.7rem; 
}
.conteudo-materia { padding: 1.3rem; }
.ler-mais { 
    color: var(--primary); 
    font-weight: 600; 
    margin-top: 10px; 
    display: inline-block; 
}

/* ========== AÇÕES - ANIMAÇÃO HOVER ========== */
.acoes-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 2rem; 
}
.card-acao { 
    background: var(--white); 
    border-radius: var(--radius-card); 
    padding: 2rem; 
    text-align: center; 
    box-shadow: var(--shadow-md); 
    transition: all 0.3s; 
}
.card-acao:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-lg); 
}
.card-acao i { 
    font-size: 2.5rem; 
    color: var(--primary); 
    margin-bottom: 1rem; 
}

/* ========== GALERIA - CARROSSEL UNIVERSAL (PC E CELULAR) ========== */
.galeria-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 1.5rem !important;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem !important;
    margin: 2rem 0 0 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--primary) var(--primary-light) !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
}

.galeria-grid::-webkit-scrollbar {
    height: 6px !important;
}

.galeria-grid::-webkit-scrollbar-track {
    background: var(--primary-light) !important;
    border-radius: 10px !important;
}

.galeria-grid::-webkit-scrollbar-thumb {
    background: var(--primary) !important;
    border-radius: 10px !important;
}

.galeria-item {
    flex: 0 0 350px !important;
    max-width: 85vw !important;
    height: 250px !important;
    scroll-snap-align: start !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s;
    cursor: pointer;
}

.galeria-item:hover {
    transform: scale(1.02);
}

.galeria-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

#galeria .section-header::after {
    content: "← Deslize para ver mais fotos →";
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: 0.5rem;
    font-weight: 500;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .galeria-item {
        flex: 0 0 280px !important;
        height: 200px !important;
    }
}

/* CONTATO */
#contato input {
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    width: 280px;
    border: 1px solid #CBD5E1;
    font-family: 'Inter', sans-serif;
}

/* CHATBOT */
.chatbot-container { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    z-index: 1000; 
}
.chat-toggle { 
    background: linear-gradient(145deg, var(--primary), var(--primary-dark)); 
    width: 65px; 
    height: 65px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 12px 28px rgba(192, 57, 43, 0.4); 
    transition: all 0.3s; 
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-window { 
    position: absolute; 
    bottom: 80px; 
    right: 0; 
    width: 350px; 
    background: white; 
    border-radius: 28px; 
    box-shadow: var(--shadow-lg); 
    display: none; 
    flex-direction: column; 
    overflow: hidden; 
}
.chat-header { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; 
    padding: 0.8rem 1rem; 
    font-weight: 600; 
    display: flex; 
    justify-content: space-between; 
}
.chat-messages { 
    height: 300px; 
    overflow-y: auto; 
    padding: 1rem; 
    background: #F9FCFD; 
}
.message { margin-bottom: 10px; display: flex; }
.message.bot { justify-content: flex-start; } 
.message.user { justify-content: flex-end; }
.message span { 
    max-width: 80%; 
    padding: 8px 14px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
}
.message.bot span { background: var(--primary-light); color: var(--text-dark); }
.message.user span { 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: white; 
}
.chat-input { display: flex; border-top: 1px solid #E2E8F0; }
.chat-input input { flex: 1; padding: 10px; border: none; outline: none; }
.chat-input button { 
    background: var(--primary); 
    border: none; 
    color: white; 
    padding: 0 15px; 
    cursor: pointer; 
}

/* FOOTER */
footer { 
    background: var(--primary-dark); 
    color: #FADBD8; 
    padding: 2rem 0; 
    text-align: center; 
}

/* ========== 🟢 BANNER DESTAQUE NO CELULAR (COMPACTO) ========== */
@media (max-width: 768px) {
    .destaque-principal {
        display: block !important;
        margin-bottom: 1.5rem !important;
    }
    
    .destaque-card {
        flex-direction: row !important;
    }
    
    .destaque-img {
        width: 40% !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }
    
    .destaque-conteudo {
        width: 60% !important;
        padding: 1rem !important;
    }
    
    .destaque-cat {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .destaque-titulo {
        font-size: 1rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.3 !important;
    }
    
    .destaque-resumo {
        display: none !important;
    }
    
    .destaque-link {
        font-size: 0.8rem !important;
    }
}

/* ========== CARROSSEL DE NOTÍCIAS NO CELULAR ========== */
@media (max-width: 768px) {
    .materias-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding: 0.5rem 0.5rem 1.5rem 0.5rem !important;
        margin: 0 -0.5rem !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }
    
    .materias-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .materias-grid .card-materia {
        flex: 0 0 280px !important;
        max-width: 85vw !important;
        scroll-snap-align: start !important;
    }
    
    .materias-grid .card-materia .img-materia {
        height: 160px !important;
    }
    
    .materias-grid .card-materia .conteudo-materia h3 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .materias-grid .card-materia .conteudo-materia p {
        display: none !important;
    }
    
    .news-header::after {
        content: "← Deslize para ver mais notícias →";
        display: block;
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        color: var(--primary);
        margin-top: 0.5rem;
        font-weight: 500;
        opacity: 0.8;
    }
}

/* MOBILE */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-dark); }

@media (max-width: 850px) {
    .hero h1 { font-size: 2rem; }
    .container { padding: 0 1.2rem; }
    .navbar { flex-direction: row; flex-wrap: wrap; }
    .menu-toggle { display: block; }
    .nav-links { 
        display: none; 
        width: 100%;
        background: white; 
        flex-direction: column; 
        padding: 1.5rem;
        gap: 1rem;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .sobre-container { flex-direction: column; text-align: center; }
    .sobre-tags { justify-content: center; }
    .hero-right { order: -1; }
    .chat-window { width: 300px; right: 0; }
}

@media (max-width: 768px) {
    .hero-grid { flex-direction: column; text-align: center; gap: 1.5rem; }
    .hero-right { order: -1; width: 100%; max-width: 350px; margin: 0 auto; }
    .hero-img { max-width: 300px; width: 100%; margin: 0 auto; }
    .hero-left { text-align: center; width: 100%; }
    .hero h1 { font-size: 1.8rem; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .hero-left .btn-primary, .hero-left .btn-outline { display: block; width: 100%; margin: 0.5rem 0; }
    .hero .btn-outline { margin-left: 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .stat-number { font-size: 1.5rem; }
}