/* 
 * Centro Social Madre Virginia
 * CSS Responsivo e Otimizado
 * Versão 2.0
 */

/* ===== RESET E VARIÁVEIS ===== */
:root {
    --primary-green: #2C5F2D;
    --secondary-green: #4A7856;
    --terracotta: #C17B4A;
    --cream: #FFF9E6;
    --light-beige: #FDF8F0;
    --dark-text: #1A2E1A;
    --accent-gold: #D4AF37;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-beige);
}

/* ===== TIPOGRAFIA RESPONSIVA ===== */
h1 {
    font-family: 'Lora', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.2;
    color: var(--secondary-green);
}

h2 {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.3;
    color: var(--secondary-green);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--terracotta));
    border-radius: 3px;
}

h3 {
    font-family: 'Lora', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-green);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* ===== LAYOUT E CONTAINERS ===== */
.content-section {
    padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.textured-bg {
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
}

.textured-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== BOTÕES ===== */
.cta-button {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(44, 95, 45, 0.2);
}

.cta-button:hover {
    background-color: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(44, 95, 45, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

header {
    background-color: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.5rem 1.5rem; /* Reduzido ligeiramente de 0.8rem para 0.5rem */
    min-height: 70px; /* Altura mínima consistente */
    display: flex;
    align-items: center;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo {
    font-family: 'Lora', serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
    max-width: 70%;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.logo-img {
    height: 52px; /* Aumentado de 45px para 52px */
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    display: inline-block;
    line-height: 1.2;
}

/* Media Queries para responsividade da logo */
@media (max-width: 768px) {
    .logo {
        gap: 10px;
        max-width: 80%;
    }
    
    .logo-img {
        height: 42px; /* Aumentado de 35px para 42px */
    }
    
    .logo-text {
        font-size: 1rem; /* Ajustado para melhor proporção */
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }
    
    .logo-img {
        height: 36px; /* Aumentado de 30px para 36px */
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .logo-img {
        height: 30px; /* Aumentado de 25px para 30px */
    }
    
    .logo-text {
        font-size: 0.8rem;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--dark-text);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.85), rgba(74, 120, 86, 0.85));
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CARDS E COMPONENTES ===== */
.institution-card {
    background-color: var(--white);
    border-left: 5px solid var(--primary-green);
    padding: clamp(20px, 5vw, 30px);
    margin-bottom: 25px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.institution-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

/* ===== GRID DE ATIVIDADES ===== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin-top: 30px;
}

.activity-item {
    background-color: var(--white);
    padding: clamp(20px, 5vw, 30px);
    border-radius: var(--border-radius);
    border-bottom: 4px solid var(--primary-green);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow);
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.activity-item h4 {
    color: var(--secondary-green);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 1rem;
    font-family: 'Lora', serif;
}

.activity-stats {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(44, 95, 45, 0.1);
}

.stats-number {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    color: var(--primary-green);
    font-family: 'Lora', serif;
    line-height: 1;
    display: block;
}

.stats-label {
    color: var(--dark-text);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    font-weight: 500;
}

/* ===== NOVA GALERIA DE FOTOS EM GRID ===== */
.gallery-section {
    background: linear-gradient(to bottom, var(--light-beige) 0%, var(--white) 100%);
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: #f5f5f5;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(44, 95, 45, 0.9) 0%, 
        rgba(44, 95, 45, 0.4) 50%,
        transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--white);
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

/* ===== MODAL DA GALERIA ATUALIZADO ===== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    overflow-y: auto;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    animation: modalSlideUp 0.5s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: rgba(0,0,0,0.3);
}

.modal-caption {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    padding: 35px 40px 30px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: -5px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-caption h3 {
    color: var(--primary-green);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 12px;
    font-family: 'Lora', serif;
    position: relative;
    padding-bottom: 12px;
}

.modal-caption h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--terracotta));
    border-radius: 3px;
}

.modal-caption p {
    color: var(--dark-text);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    line-height: 1.7;
    margin-bottom: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    z-index: 10000;
    border: 2px solid rgba(255,255,255,0.2);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--primary-green);
    border-color: var(--white);
}

.modal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-nav-btn {
    background: var(--white);
    color: var(--primary-green);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-nav-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
}

#modal-counter {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 25px;
    background: rgba(0,0,0,0.4);
    border-radius: 30px;
    letter-spacing: 2px;
}

/* ===== SEÇÃO DE CONTATO MODERNIZADA ===== */
#contact .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-info {
    background-color: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(44, 95, 45, 0.1);
}

.contact-info:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.contact-info h3 {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(44, 95, 45, 0.1);
    font-size: 1.4rem;
}

.contact-info h3 i {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 18px;
    border-radius: 12px;
    transition: var(--transition);
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.02), rgba(193, 123, 74, 0.02));
    width: 100%;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.08), rgba(193, 123, 74, 0.08));
    transform: translateX(8px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.25);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(44, 95, 45, 0.35);
}

.contact-detail {
    flex: 1;
    min-width: 0;
}

.contact-detail strong {
    display: block;
    color: var(--dark-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.contact-detail span,
.contact-detail a {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    word-break: break-word;
    line-height: 1.4;
}

.contact-detail a:hover {
    color: var(--terracotta);
    transform: translateX(3px);
}

.contact-contribute {
    background: linear-gradient(145deg, var(--primary-green), #1e3f1f);
    color: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-contribute::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.contact-contribute:hover::before {
    opacity: 1;
}

.contact-contribute:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(44, 95, 45, 0.4);
}

.contact-contribute h3 {
    display: flex;
    align-items: center;
    color: var(--white);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.contact-contribute h3 i {
    color: #ffffff;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.contact-contribute p {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 25px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.contribute-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.contribute-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contribute-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-green);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.contribute-item:hover .contribute-icon {
    transform: rotate(360deg);
    background: white;
    color: var(--secondary-green);
}

.contribute-item span {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
    word-break: break-word;
    line-height: 1.4;
}

.contact-contribute .cta-button {
    background: white;
    color: var(--primary-green);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-contribute .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #f8f8f8;
}

/* ===== MISSION SECTION ===== */
#mission.content-section {
    padding-top: 0px;
}

#about.content-section {
    padding-bottom: 40px;
}

.mission-card {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(44, 95, 45, 0.1);
    margin: 20px 0;
}

/* ===== HERO CARROSSEL AUTOMÁTICO ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease;
    transform: translateY(0);
}

/* ===== CHATBOT RESPONSIVO ===== */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.5rem, 5vw, 2rem);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.chatbot-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.chatbot-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: min(350px, calc(100% - 40px));
    max-height: min(500px, 80vh);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 998;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.chatbot-popup.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header span {
    font-weight: 600;
    font-size: 1.1rem;
}

.close-chatbot {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: var(--transition);
}

.close-chatbot:hover {
    transform: scale(1.2);
}

.chatbot-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 350px;
}

.chatbot-body p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(44, 95, 45, 0.1);
}

.chatbot-body p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.chatbot-body strong {
    color: var(--primary-green);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ===== MEDIA QUERIES PRINCIPAIS ===== */
@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Ajustes de navegação */
    .hamburger {
        display: flex;
    }
    
    nav ul#nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--light-beige);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 0;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        overflow-y: auto;
    }
    
    nav ul#nav-links.active {
        display: flex;
    }
    
    nav ul#nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        border-bottom: 1px solid rgba(44, 95, 45, 0.1);
    }
    
    nav ul#nav-links li:last-child {
        border-bottom: none;
    }
    
    nav ul#nav-links li a {
        display: block;
        padding: 18px 20px;
        font-size: 1.1rem;
        color: var(--dark-text);
    }
    
    nav ul#nav-links li a:hover {
        background-color: rgba(44, 95, 45, 0.05);
        color: var(--primary-green);
    }
    
    nav ul#nav-links li a::after {
        display: none;
    }
    
    /* Hamburger animação */
    .hamburger.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary-green);
    }
    
    .hamburger.active .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .hamburger.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary-green);
    }
    
    /* Hero */
    .hero-section {
        min-height: 80vh;
        padding: 100px 20px 60px;
        background-attachment: scroll;
    }
    
    .hero-carousel {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Ajustes de grid */
    .activity-grid,
    .results-grid {
        gap: 20px;
    }
    
    /* Galeria */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, 
            rgba(44, 95, 45, 0.8) 0%, 
            rgba(44, 95, 45, 0.3) 70%);
    }
    
    .gallery-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 30%;
    }
    
    .gallery-overlay h4 {
        transform: translateY(0);
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 30px 15px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 35px;
    }
    
    .modal-caption {
        padding: 25px 20px;
    }
    
    .modal-nav {
        gap: 20px;
        padding: 12px 20px;
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Chatbot */
    .chatbot-popup {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 80px;
        max-height: 60vh;
    }
    
    .chatbot-body {
        max-height: 300px;
    }
    
    /* Contato */
    #contact .grid-2 {
        gap: 25px;
    }
    
    .contact-info,
    .contact-contribute {
        padding: 25px;
    }
    
    .contact-info h3,
    .contact-contribute h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .contact-item {
        padding: 10px 12px;
        margin-bottom: 15px;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        margin-right: 12px;
    }
    
    .mission-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */
    :root {
        --border-radius: 10px;
    }
    
    .content-section {
        padding: 40px 15px;
    }
    
    .logo {
        font-size: 1.1rem;
        max-width: 65%;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 80px 15px 40px;
    }
    
    .hero-carousel {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        width: 100%;
        max-width: 280px;
    }
    
    .institution-card {
        padding: 20px;
    }
    
    .activity-item,
    .result-card,
    .contact-info,
    .contact-contribute {
        padding: 20px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    /* Galeria */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    
    .gallery-overlay h4 {
        font-size: 0.8rem;
    }
    
    /* Modal */
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    #modal-counter {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    /* Contato */
    #contact .grid-2 {
        gap: 20px;
    }
    
    .contact-info,
    .contact-contribute {
        padding: 20px;
    }
    
    .contact-info h3,
    .contact-contribute h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .contact-item {
        padding: 8px 10px;
        margin-bottom: 12px;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .contact-detail strong {
        font-size: 0.65rem;
    }
    
    .contact-detail span,
    .contact-detail a {
        font-size: 0.85rem;
    }
    
    .contribute-item {
        padding: 8px 12px;
        margin-bottom: 10px;
    }
    
    .contribute-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        margin-right: 10px;
    }
    
    .contribute-item span {
        font-size: 0.85rem;
    }
    
    .contact-contribute .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .mission-card {
        padding: 25px 15px;
    }
    
    .chatbot-popup {
        bottom: 75px;
        max-height: 70vh;
    }
    
    .chatbot-body {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    /* Ajustes extremos */
    html {
        font-size: 14px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .hamburger {
        width: 35px;
        height: 35px;
    }
    
    .hamburger-bar {
        width: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .contact-item {
        flex-wrap: nowrap;
    }
    
    .contact-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        margin-right: 8px;
    }
    
    .contact-detail strong {
        font-size: 0.6rem;
    }
    
    .contact-detail span,
    .contact-detail a {
        font-size: 0.8rem;
    }
    
    .contribute-item {
        flex-wrap: nowrap;
    }
    
    .contribute-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-right: 8px;
    }
    
    .contribute-item span {
        font-size: 0.8rem;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== ALTA CONTRASTE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #006400;
        --secondary-green: #2E4A2E;
        --cream: #FFFFE0;
    }
    
    .cta-button {
        border: 2px solid #000;
    }
}

/* ===== IMPRESSÃO ===== */
@media print {
    header,
    .chatbot-button,
    .chatbot-popup,
    .cta-button,
    footer {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .content-section {
        padding: 20px;
        break-inside: avoid;
    }
    
    .hero-section {
        min-height: auto;
        color: black;
        background: none !important;
    }
    
    .hero-content h1 {
        color: black;
    }
}

.activity-item h4 i {
    background-color: rgba(44, 95, 45, 0.1);
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* Animações */
@keyframes pulseIcon {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 95, 45, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(44, 95, 45, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(44, 95, 45, 0);
    }
}

.contact-icon {
    animation: pulseIcon 2s infinite;
}

.contact-item:hover .contact-icon {
    animation: none;
}

/* Adicione ao seu arquivo CSS para melhorar a transição das imagens no modal */
#modal-image {
    transition: opacity 0.3s ease;
}

.modal-caption h3,
.modal-caption p {
    transition: opacity 0.3s ease;
}

/* Indicador de carregamento para imagens */
#modal-image.loading {
    opacity: 0.5;
}

/* Melhorias na responsividade do modal para muitas imagens */
.modal-nav {
    position: sticky;
    bottom: 20px;
    z-index: 10;
}

@media (max-width: 768px) {
    .modal-nav {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 250px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
    }
}

/* SEÇÃO CURSO PROFISSIONALIZANTE GRATUITO */
.curso-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #fdf8f0 0%, #fff9e6 100%);
    position: relative;
    overflow: hidden;
}

.curso-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(44, 95, 45, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.curso-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(193, 123, 74, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.curso-container {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.curso-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--terracotta), #a05a2e);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.curso-tag i {
    margin-right: 6px;
}

.curso-titulo {
    font-family: 'Lora', serif;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.curso-titulo .destaque {
    color: var(--primary-green);
    display: inline-block;
}

.curso-titulo .gratuito {
    background: linear-gradient(135deg, var(--terracotta), #e8913a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.curso-ribbon {
    margin-bottom: 30px;
}

.curso-ribbon span {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a2e1a;
    font-weight: 800;
    font-size: clamp(1rem, 4vw, 1.3rem);
    padding: 8px 25px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
}

.curso-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.curso-flyer {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsivo */
@media (max-width: 768px) {
    .curso-section {
        padding: 40px 16px;
    }
    
    .curso-container {
        max-width: 450px;
    }
    
    .curso-card {
        padding: 15px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .curso-section {
        padding: 30px 12px;
    }
    
    .curso-container {
        max-width: 100%;
    }
    
    .curso-card {
        padding: 12px;
        border-radius: 16px;
    }
    
    .curso-tag {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .curso-ribbon span {
        padding: 6px 18px;
    }
}