/* ==========================================================================
   Templo Universalista Caminhos de Aruanda - Frontend CSS
   Paleta: Verde (#1B5E20, #4CAF50, #E8F5E9), Dourado (#D4A843)
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-dark: #1B5E20;
    --green: #4CAF50;
    --green-light: #81C784;
    --green-pale: #E8F5E9;
    --gold: #D4A843;
    --gold-light: #F5E6C8;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #1F2937;
    --danger: #DC2626;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .25s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }

/* --- Header --- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 100px; width: auto; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--gray-700);
    transition: all var(--transition);
}
.main-nav a:hover { color: var(--green-dark); background: var(--green-pale); }
.main-nav a.active { color: var(--green-dark); background: var(--green-pale); font-weight: 600; }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative;
}
.menu-toggle span {
    display: block; width: 100%; height: 2px; background: var(--gray-900);
    position: absolute; left: 0; transition: all .3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }
.menu-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* --- Hero --- */
.hero {
    position: relative; min-height: 80vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #0a3d0a 0%, var(--green-dark) 50%, #2E7D32 100%);
    margin-top: 120px; overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L35 20H45L37 30L40 45L30 37L20 45L23 30L15 20H25Z' fill='%23ffffff' opacity='0.03'/%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 60px 0; }
.hero-pre {
    font-size: 22px; text-transform: uppercase; letter-spacing: 6px;
    color: #FFFFFF; font-weight: 700; margin-bottom: 16px;
}
.hero-title {
    font-family: 'Poppins', sans-serif; font-size: clamp(28px, 5vw, 48px);
    font-weight: 700; color: var(--white); margin-bottom: 20px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,.85);
    max-width: 600px; margin: 0 auto 32px; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* Hero Slider */
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0;
    background-size: cover; background-position: center;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.25);
}

.hero-dots {
    position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 5;
}
.hero-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.6);
    cursor: pointer; transition: all .3s; padding: 0;
}
.hero-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.2); }

.hero-decoration { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-decoration svg { width: 100%; height: 80px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm); font-size: 14px;
    font-weight: 600; border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition); text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn-primary:hover { background: #2E7D32; border-color: #2E7D32; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary:hover { background: var(--green-pale); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
    display: inline-block; font-size: 13px; text-transform: uppercase;
    letter-spacing: 2px; color: rgb(178, 107, 0); font-weight: 600; margin-bottom: 8px;
}
.section-title {
    font-family: 'Poppins', sans-serif; font-size: clamp(28px, 4vw, 40px);
    font-weight: 700; color: var(--green-dark);
}
.section-footer { text-align: center; margin-top: 40px; }

/* --- Onepage section alternation --- */
.section-page { background: var(--white); }
.section-social { background: var(--green-pale); }
.section-first-visit { background: var(--green-pale); }
.section-contact { background: var(--white); }

/* --- Social Actions Carousel --- */
.social-content { max-width: 900px; margin: 0 auto; }
.social-text { text-align: center; font-size: 17px; color: var(--gray-700); line-height: 1.8; margin-bottom: 40px; }
.social-text p { margin-bottom: 12px; }

.social-carousel-wrapper { position: relative; }
.social-carousel {
    overflow: hidden; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.social-carousel-track {
    display: flex; transition: transform .5s ease;
}
.social-carousel-slide {
    min-width: 100%; position: relative;
}
.social-carousel-slide img {
    width: 100%; height: 420px; object-fit: cover; display: block;
}
.social-carousel-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff; padding: 24px 20px 16px; font-size: 14px; font-weight: 500;
}

.social-carousel-nav {
    display: flex; justify-content: center; gap: 12px; margin-top: 20px;
}
.social-nav-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--green-dark);
    color: var(--green-dark); font-size: 18px;
    cursor: pointer; transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.social-nav-btn:hover { background: var(--green-dark); color: var(--white); }

@media (max-width: 768px) {
    .social-carousel-slide img { height: 260px; }
}

/* --- About Cards --- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.about-card {
    text-align: center; padding: 40px 32px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-light); }
.about-icon { font-size: 40px; margin-bottom: 16px; }
.about-card h3 { font-size: 20px; color: var(--green-dark); margin-bottom: 12px; }
.about-card p { color: var(--gray-500); font-size: 15px; }

/* --- Events --- */
.section-events { background: var(--gray-50); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.event-card {
    display: flex; gap: 16px; padding: 24px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--gray-200);
    transition: all var(--transition); text-decoration: none; color: inherit;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-light); color: inherit; }

.event-card-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 60px; padding: 12px; border-radius: var(--radius-sm);
    background: var(--green-pale); color: var(--green-dark);
}
.event-day { font-size: 28px; font-weight: 700; line-height: 1; }
.event-month { font-size: 12px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

/* Event card image */
.event-card-has-image { flex-direction: column; }
.event-card-has-image .event-card-date { position: absolute; top: 12px; left: 12px; z-index: 2; border-radius: 8px; }
.event-card-has-image { position: relative; }
.event-card-image { width: 100%; height: 180px; overflow: hidden; border-radius: 8px; margin-bottom: 12px; }
.event-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-card-image img { transform: scale(1.05); }

/* Event detail cover */
.event-cover { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.event-cover img { width: 100%; max-height: 400px; object-fit: cover; }

.event-card-info { flex: 1; }
.event-card-info h3 { font-size: 16px; margin: 8px 0 4px; }
.event-time, .event-location { font-size: 13px; color: var(--gray-500); display: block; }
.event-type-badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; color: var(--white); text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-list-status {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; margin-top: 6px;
}
.status-open { background: #DCFCE7; color: #166534; }
.status-full { background: #FEF3C7; color: #92400E; }
.status-closed { background: var(--gray-100); color: var(--gray-500); }
.status-ended { background: var(--gray-100); color: var(--gray-500); }

/* Events List (agenda page) */
.events-list { display: flex; flex-direction: column; gap: 16px; }
.event-card-full {
    display: flex; align-items: center; gap: 24px; padding: 24px;
    border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200);
    transition: all var(--transition); text-decoration: none; color: inherit;
}
.event-card-full:hover { box-shadow: var(--shadow-md); border-color: var(--green-light); color: inherit; }

.event-card-date-block {
    display: flex; flex-direction: column; align-items: center; min-width: 70px;
    padding: 16px; border-radius: var(--radius-sm); background: var(--green-pale);
    color: var(--green-dark); text-align: center;
}
.event-year { font-size: 11px; color: var(--gray-500); }

/* Event full card image (agenda page) */
.event-card-full-image { width: 120px; height: 90px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.event-card-full-image img { width: 100%; height: 100%; object-fit: cover; }

.event-card-body { flex: 1; }
.event-card-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.event-card-body h3 { font-size: 18px; margin-bottom: 6px; color: var(--gray-900); }
.event-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--gray-500); }
.event-excerpt { font-size: 14px; color: var(--gray-500); margin-top: 8px; }
.event-card-arrow { font-size: 24px; color: var(--gray-300); transition: color var(--transition); }
.event-card-full:hover .event-card-arrow { color: var(--green-dark); }

/* --- News --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.news-card {
    border-radius: var(--radius); overflow: hidden;
    background: var(--white); border: 1px solid var(--gray-200);
    transition: all var(--transition); text-decoration: none; color: inherit;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.news-card-image { height: 200px; overflow: hidden; position: relative; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-content { padding: 20px; }
.news-date { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.news-card-content h3 { font-size: 18px; margin: 8px 0; color: var(--gray-900); }
.news-card-content p { font-size: 14px; color: var(--gray-500); }

/* Destaque */
.news-card-featured { border-color: var(--gold, #D4A843); box-shadow: 0 2px 8px rgba(212,168,67,.2); }
.news-featured-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--gold, #D4A843); color: #fff;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    padding: 4px 10px; border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.news-featured-badge-inline { position: static; display: inline-block; margin-bottom: 8px; }

/* --- Page Hero --- */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark), #2E7D32);
    padding: 140px 0 50px; margin-top: 120px; color: var(--white);
}
.page-hero h1 { font-family: 'Poppins', sans-serif; font-size: clamp(28px, 4vw, 44px); }
.page-hero p { color: rgba(255,255,255,.8); margin-top: 8px; font-size: 18px; }
.breadcrumb { font-size: 13px; margin-bottom: 12px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.6); }

/* --- Page Content (prose) --- */
.prose { font-size: 17px; line-height: 1.8; color: var(--gray-700); }
.prose h2 { font-size: 28px; color: var(--green-dark); margin: 40px 0 16px; font-family: 'Poppins', sans-serif; }
.prose h3 { font-size: 22px; color: var(--green-dark); margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
    border-left: 4px solid var(--gold); padding: 16px 24px;
    background: var(--gold-light); margin: 24px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: var(--gray-700);
}

/* --- Event Detail --- */
.event-info-box {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
    padding: 24px; border-radius: var(--radius); background: var(--green-pale);
    margin-bottom: 32px;
}
.event-info-item strong { display: block; font-size: 12px; text-transform: uppercase; color: var(--gray-500); margin-bottom: 4px; }
.event-observations {
    background: var(--gold-light); padding: 20px; border-radius: var(--radius-sm);
    border-left: 4px solid var(--gold); margin: 24px 0;
}
.event-observations h3 { font-size: 16px; color: var(--green-dark); margin-bottom: 8px; }

/* --- Registration Module --- */
.registration-module {
    margin-top: 40px; padding: 32px; border-radius: var(--radius);
    background: var(--gray-50); border: 2px solid var(--green-light);
}
.registration-module h3 { font-size: 22px; color: var(--green-dark); margin-bottom: 20px; }

.registration-notice {
    padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px;
}
.notice-closed { background: var(--gray-100); border: 1px solid var(--gray-200); }
.notice-ended { background: #FEE2E2; border: 1px solid #FECACA; }
.notice-waiting { background: #FEF3C7; border: 1px solid #FDE68A; }

.slots-counter { margin-bottom: 24px; }
.slots-bar {
    height: 12px; background: var(--gray-200); border-radius: 6px; overflow: hidden; margin-bottom: 8px;
}
.slots-fill {
    height: 100%; background: linear-gradient(90deg, var(--green), var(--green-dark));
    border-radius: 6px; transition: width .5s ease;
}
.slots-info { display: flex; justify-content: space-between; font-size: 14px; }
.slots-remaining { color: var(--green-dark); font-weight: 600; }
.slots-full { color: var(--danger); font-weight: 600; }
.waiting-info { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.article-cover { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.article-cover img { width: 100%; }
.article-summary { font-size: 18px; color: var(--gray-500); margin-bottom: 24px; font-style: italic; border-left: 4px solid var(--gold); padding-left: 16px; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(76,175,80,.15); }
textarea.form-control { resize: vertical; }
.form-error { display: block; font-size: 13px; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, var(--green-dark), #2E7D32);
    text-align: center;
}
.cta-content h2 { font-family: 'Poppins', sans-serif; font-size: 36px; color: var(--white); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 600px; margin: 0 auto 28px; }

/* --- First Time --- */
.section-first-time { background: var(--green-pale); }
.first-time-content { max-width: 600px; }
.first-time-text h2 { font-family: 'Poppins', sans-serif; font-size: 32px; color: var(--green-dark); margin-bottom: 12px; }
.first-time-text p { color: var(--gray-700); margin-bottom: 20px; font-size: 17px; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2, .contact-form-wrapper h2 { font-family: 'Poppins', sans-serif; font-size: 28px; color: var(--green-dark); margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.contact-icon {
    font-size: 22px; flex-shrink: 0;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
}
.contact-item > div { flex: 1; }
.contact-item strong { display: block; font-size: 14px; color: var(--gray-500); line-height: 1.4; margin-bottom: 2px; }
.contact-item p, .contact-item a { line-height: 1.4; margin: 0; }
.contact-map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; }
.contact-map iframe { width: 100%; height: 250px; border: none; }

/* --- Alerts --- */
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* --- Badges --- */
.badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-default { background: var(--gray-100); color: var(--gray-500); }

/* --- Pagination --- */
.pagination-wrapper { margin-top: 40px; display: flex; justify-content: center; }
.pagination-wrapper nav { display: flex; gap: 4px; }
.pagination-wrapper a, .pagination-wrapper span {
    padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px;
    border: 1px solid var(--gray-200);
}
.pagination-wrapper span[aria-current] { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }

/* --- Filters --- */
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-chip {
    padding: 8px 20px; border-radius: 24px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-700);
    transition: all var(--transition); text-decoration: none;
}
.filter-chip:hover { border-color: var(--green); color: var(--green-dark); }
.filter-chip.active { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }

/* --- Footer --- */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo-img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--gray-300); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--green-light); }
.footer-col p { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; color: var(--gray-500); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: var(--white); flex-direction: column; padding: 24px;
        gap: 4px; z-index: 1001; overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); }
    .main-nav a:hover, .main-nav a.active { background: var(--green-pale); }

    .hero { min-height: 70vh; }
    .hero-actions { flex-direction: column; align-items: center; }
    .section { padding: 48px 0; }

    .about-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }

    .event-card-full { flex-direction: column; }
    .event-card-date-block { flex-direction: row; gap: 8px; padding: 8px 16px; }
    .event-card-arrow { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .event-info-box { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .event-info-box { grid-template-columns: 1fr; }
}

/* ============ Modal de Inscricao ============ */
.reg-modal-backdrop {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: regModalFadeIn 0.2s ease-out;
}
@keyframes regModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.reg-modal {
    position: relative;
    max-width: 560px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    border-radius: 16px;
    padding: 40px 32px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: regModalSlideIn 0.3s ease-out;
}
@keyframes regModalSlideIn {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
/* Confirmado: verde agua */
.reg-modal-confirmed {
    background: linear-gradient(135deg, #A8E6CF 0%, #C8F5D8 100%);
    color: #0F3D1F;
    border: 2px solid #7FD1A6;
}
/* Lista de espera: amarelo agua */
.reg-modal-waiting {
    background: linear-gradient(135deg, #FFF9B0 0%, #FFFBD4 100%);
    color: #4A3F00;
    border: 2px solid #E8D66A;
}
.reg-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 0 0 20px;
    font-weight: 700;
}
.reg-modal p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 14px;
}
.reg-modal strong { font-weight: 700; }
.reg-modal a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}
.reg-modal a:hover { text-decoration: none; }
.reg-modal-notice {
    background: rgba(255, 255, 255, 0.55);
    padding: 16px 18px;
    border-radius: 10px;
    margin: 18px 0 24px;
    border-left: 4px solid rgba(0, 0, 0, 0.15);
}
.reg-modal-notice p { margin: 0 0 10px; }
.reg-modal-notice ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}
.reg-modal-notice li { margin-bottom: 6px; }
.reg-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 4px 10px;
}
.reg-modal-close:hover { opacity: 1; }
.reg-modal-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
}
.reg-modal-confirmed .reg-modal-btn {
    background: #1B5E20;
    color: #fff;
    border-color: #1B5E20;
}
.reg-modal-confirmed .reg-modal-btn:hover {
    background: #14471A;
    border-color: #14471A;
}
.reg-modal-waiting .reg-modal-btn {
    background: #8A6E00;
    color: #fff;
    border-color: #8A6E00;
}
.reg-modal-waiting .reg-modal-btn:hover {
    background: #6F5800;
    border-color: #6F5800;
}

/* Timer dentro do modal */
.reg-modal-timer {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(255,255,255,.55);
    border-radius: 10px; padding: 12px 16px;
    margin: 18px 0 16px;
    font-family: 'Poppins', sans-serif;
}
.reg-timer-label { font-size: 13px; color: inherit; opacity: .85; }
.reg-timer-value {
    font-size: 28px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}
.reg-modal-timer.reg-timer-done .reg-timer-value {
    color: #1B5E20; font-size: 18px; letter-spacing: 0;
}

/* Banner de cooldown na pagina do evento */
.reg-cooldown-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #FFF8E1;
    border: 1px solid #F0C36D;
    border-left: 4px solid #D4A843;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #5C4300;
}
.reg-cooldown-icon { font-size: 24px; flex-shrink: 0; }
.reg-cooldown-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; font-size: 14px; }
.reg-cooldown-text strong { color: #3E2D00; }
.reg-cooldown-time {
    font-weight: 700; font-variant-numeric: tabular-nums;
    background: #D4A843; color: #fff;
    padding: 1px 8px; border-radius: 4px; margin-left: 2px;
}

@media (max-width: 480px) {
    .reg-modal { padding: 32px 20px 24px; }
    .reg-modal h2 { font-size: 22px; }
    .reg-modal p { font-size: 15px; }
    .reg-modal-notice ul { font-size: 13px; }
}

/* ============ Conteudo rico (Quill editor) ============ */
.rich-content,
.rich-content p,
.rich-content li,
.rich-content span {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.rich-content h1 { font-family: 'Poppins', sans-serif; font-size: 32px; color: var(--green-dark); margin: 0 0 16px; font-weight: 700; }
.rich-content h2 { font-family: 'Poppins', sans-serif; font-size: 28px; color: var(--green-dark); margin: 0 0 14px; font-weight: 700; }
.rich-content h3 { font-family: 'Poppins', sans-serif; font-size: 22px; color: var(--green-dark); margin: 0 0 12px; font-weight: 600; }
.rich-content p { font-size: 17px; line-height: 1.7; color: var(--gray-700); margin: 0 0 14px; font-weight: 400; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content ul, .rich-content ol { font-size: 17px; line-height: 1.7; color: var(--gray-700); margin: 0 0 14px; padding-left: 24px; }
.rich-content li { margin-bottom: 6px; }
.rich-content strong { font-weight: 700; }
.rich-content em { font-style: italic; }
.rich-content a { color: var(--green-dark); text-decoration: underline; }
.rich-content a:hover { color: var(--gold); }

/* Classes Quill para alinhamento */
.rich-content .ql-align-center,
.rich-content p.ql-align-center,
.rich-content h1.ql-align-center,
.rich-content h2.ql-align-center,
.rich-content h3.ql-align-center { text-align: center; }
.rich-content .ql-align-right,
.rich-content p.ql-align-right,
.rich-content h1.ql-align-right,
.rich-content h2.ql-align-right,
.rich-content h3.ql-align-right { text-align: right; }
.rich-content .ql-align-justify,
.rich-content p.ql-align-justify { text-align: justify; }

/* Ajustes no card de bem-vindo para conteudo rico */
.about-card .rich-content h3 { font-size: 20px; text-align: center; color: var(--green-dark); }
.about-card .rich-content p { font-size: 15px; text-align: center; margin: 0; }

/* ============================================================
 * HOME — Unifica cabecalho das secoes rich-content (Quill)
 * Aplica em: Bem-vindo, Quem Somos, Acoes Sociais, Primeira Vez
 * Objetivo: primeiro <p> = label (pequeno, uppercase, orange,
 * centralizado) e primeiro <h1>/<h2> = titulo da secao (grande,
 * Poppins, verde, centralizado), para bater com o padrao das
 * secoes automaticas (Agenda, Noticias, Contato).
 * ============================================================ */

/* LABEL — primeiro <p> de cada bloco rich-content da home */
.section-about .section-header.rich-content > p:first-child,
.section-page .page-content.rich-content > p:first-child,
.section-first-visit .page-content.rich-content > p:first-child,
.section-social .social-text.rich-content > p:first-child {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin: 0 0 8px;
    text-align: center;
    line-height: 1.4;
}

/* TITULO — primeiro h1/h2 de cada bloco rich-content da home */
.section-about .section-header.rich-content > h1:first-of-type,
.section-about .section-header.rich-content > h2:first-of-type,
.section-page .page-content.rich-content > h1:first-of-type,
.section-page .page-content.rich-content > h2:first-of-type,
.section-first-visit .page-content.rich-content > h1:first-of-type,
.section-first-visit .page-content.rich-content > h2:first-of-type,
.section-social .social-text.rich-content > h1:first-of-type,
.section-social .social-text.rich-content > h2:first-of-type {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--green-dark);
    text-align: center;
    margin: 0 0 28px;
    line-height: 1.2;
}

/* Subtitulos internos (Nossa Historia, Missao, Visao, Valores, etc.)
 * ficam menores para nao competir com o titulo principal da secao. */
.section-page .page-content.rich-content > h2:not(:first-of-type),
.section-first-visit .page-content.rich-content > h2:not(:first-of-type) {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}
.section-page .page-content.rich-content > h3,
.section-first-visit .page-content.rich-content > h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 10px;
}

/* Unifica tamanho das secoes automaticas (Agenda, Noticias, Contato)
 * com o das rich-content da home. */
.section-title { font-size: clamp(28px, 4vw, 40px); }
