/* ==========================================================================
   1. DESIGN SYSTEM - PALETA VERDE PREMIUM E BRANCO
   ========================================================================== */
:root {
    --bg-color: #E4EDE7;         
    --bg-dark: #1B3325;          
    --white: #FFFFFF;            
    --text-main: #1B3325;        
    --text-muted: #5A7566;       
    --accent: #25D366;           
    
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 40px;           
    --shadow-float: 0 20px 40px rgba(27, 51, 37, 0.08);
    --shadow-soft: 0 8px 24px rgba(27, 51, 37, 0.04);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { max-width: 100vw; overflow-x: hidden; scroll-behavior: smooth; }

body { 
    font-family: 'Nunito', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    padding-bottom: 20px;
}

h1, h2, h3, h4, .font-title { font-family: 'Montserrat', sans-serif; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; }

/* Enquadramento padrão das imagens */
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: var(--transition); will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* HEADER FLUTUANTE */
.header-wrapper { position: sticky; top: 10px; z-index: 1000; padding: 0 10px; margin-bottom: 20px; }

header { 
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    max-width: 1200px; margin: 0 auto; padding: 12px 20px; 
    border-radius: 50px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,0.5);
}

.logo { font-size: 20px; font-weight: 900; color: var(--text-main); text-transform: uppercase; letter-spacing: -1px; }
.logo span { color: var(--text-muted); font-weight: 600; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-item { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-main); transition: var(--transition); }
.nav-item:hover { color: var(--bg-dark); opacity: 0.7; }

.btn-header { background: var(--bg-dark); color: var(--white); padding: 12px 28px; border-radius: 50px; font-weight: 700; font-family: 'Nunito', sans-serif; transition: var(--transition); font-size: 0.9rem; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1002; }
.menu-toggle span { width: 24px; height: 3px; background-color: var(--text-main); transition: var(--transition); border-radius: 2px; }

/* HERO - VOLTANDO O ENQUADRAMENTO PARA O CENTRO */
.hero-wrapper { padding: 0 10px; max-width: 1400px; margin: 0 auto; }
.hero {
    position: relative; min-height: 80vh; 
    border-radius: var(--radius-md); overflow: hidden;
    display: flex; align-items: flex-end; 
    justify-content: center; text-align: center;
    background-image: linear-gradient(to bottom, rgba(27, 51, 37, 0.1) 0%, rgba(27, 51, 37, 0.9) 100%), url('capa.webp');
    background-size: cover; 
    background-position: center; /* Voltei para o centro exato! */
    color: var(--white); box-shadow: var(--shadow-float);
    padding: 40px 15px 60px; 
}
.hero-content { max-width: 900px; width: 100%; }

.hero h1 { font-size: clamp(2rem, 8vw, 4rem); font-weight: 800; line-height: 1.15; margin-bottom: 15px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero p { font-size: clamp(1rem, 4vw, 1.4rem); font-weight: 600; font-family: 'Nunito', sans-serif; margin-bottom: 30px; color: rgba(255,255,255,0.95); }

.btn-primary { 
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 320px;
    background-color: var(--white); color: var(--bg-dark); 
    padding: 16px 24px; border-radius: 50px; font-weight: 800; font-family: 'Montserrat', sans-serif;
    font-size: 1rem; box-shadow: 0 8px 20px rgba(0,0,0,0.15); transition: var(--transition); text-transform: uppercase;
}

/* SEÇÕES GERAIS */
.section-padding { padding: 80px 0; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; padding: 0 15px; }
.section-header h2 { font-size: clamp(1.8rem, 6vw, 3.2rem); font-weight: 800; color: var(--bg-dark); }
.section-header p { font-family: 'Nunito', sans-serif; font-size: 1rem; color: var(--text-muted); font-weight: 600; margin-top: 10px; }

/* ==========================================================================
   CARROSSEL INFINITO
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0 50px; 
}

.carousel-track {
    display: flex;
    align-items: center;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 82%; 
    padding: 0 10px;
    box-sizing: border-box;
    transition: all 0.6s ease;
    opacity: 0.4; 
    transform: scale(0.85); 
}

.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-float);
    text-align: center;
}

.slide-img-wrap {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #f0f0f0;
}

/* MANTIVE O AJUSTE DOS ANIMAIS PARA NÃO CORTAR A CABEÇA */
.slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; 
}

.slide-info { padding: 24px 15px 10px; }
.slide-info h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; color: var(--bg-dark); }
.slide-info p { color: var(--text-muted); font-size: 1.05rem; font-weight: 600; max-width: 550px; margin: 0 auto; }

/* Bolinhas (Dots) */
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(27, 51, 37, 0.2); cursor: pointer; transition: var(--transition); }
.dot.active { width: 32px; border-radius: 10px; background-color: var(--bg-dark); }

/* EVENTOS E MÍDIA */
.eventos-wrapper { padding: 0 15px; max-width: 1400px; margin: 0 auto; }
.eventos-container { background-color: var(--white); border-radius: var(--radius-md); padding: 30px 20px; display: flex; flex-direction: column; gap: 30px; box-shadow: var(--shadow-float); }
.eventos-texto { width: 100%; }
.eventos-texto h2 { color: var(--bg-dark); font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 800; margin-bottom: 15px; line-height: 1.15; }
.eventos-texto p { font-size: 1rem; color: var(--text-muted); font-weight: 600; margin-bottom: 25px; }

.lista-eventos { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 30px; list-style: none; }
.lista-eventos li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--bg-dark); font-size: 1rem; }
.lista-eventos li::before { content: ''; display: inline-block; min-width: 20px; height: 20px; background: var(--accent); border-radius: 50%; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="12px" height="12px"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>'); background-repeat: no-repeat; background-position: center; }

.eventos-img { width: 100%; border-radius: var(--radius-sm); overflow: hidden; height: 300px; background-color: #f0f0f0; position: relative;}
.eventos-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.midia-section { background-color: var(--white); border-radius: var(--radius-md); margin: 0 10px; padding: 60px 15px; box-shadow: var(--shadow-float); }
.midia-videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 40px; }
.video-vertical { width: 100%; max-width: 280px; aspect-ratio: 9/16; border-radius: var(--radius-sm); overflow: hidden; background-color: #000; box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center; }

/* INSTAGRAM */
.insta-wrapper { padding: 0 15px; max-width: 1400px; margin: 0 auto; }
.insta-header { text-align: center; margin-bottom: 30px; }
.insta-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.insta-post { border-radius: var(--radius-sm); overflow: hidden; display: block; position: relative; background-color: #000; aspect-ratio: 1/1; }

.insta-post img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.insta-post::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,51,37,0.8), transparent); opacity: 0; transition: var(--transition); }
.insta-post::before { content: 'Ver no Instagram →'; position: absolute; bottom: 15px; left: 15px; color: white; font-weight: 800; font-family: 'Nunito', sans-serif; z-index: 2; opacity: 0; transform: translateY(10px); transition: var(--transition); font-size: 1rem; }

/* FOOTER & LOGOS */
.media-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 40px; padding: 20px 15px; opacity: 0.6; }
.logo-media { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 900; color: var(--bg-dark); }
footer { color: var(--text-muted); padding: 30px 15px; text-align: center; font-weight: 600; font-family: 'Nunito', sans-serif; font-size: 0.85rem; }

.btn-whatsapp-float { 
    position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; 
    background-color: var(--accent); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); z-index: 999;
}
.btn-whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* DESKTOP UPGRADES */
@media (min-width: 768px) {
    .header-wrapper { top: 20px; padding: 0 20px; }
    header { padding: 12px 24px; border-radius: 50px; }
    .menu-toggle { display: none; }
    .nav-links { display: flex !important; position: static; height: auto; width: auto; background: transparent; flex-direction: row; box-shadow: none; }
    .hero { min-height: 85vh; padding: 40px 20px 80px; border-radius: var(--radius-lg); }
    .btn-primary { width: auto; max-width: none; }
    .section-padding { padding: 100px 0; }
    
    .carousel-slide { flex: 0 0 45%; }
    .slide-img-wrap { height: 450px; }
    
    .eventos-wrapper, .insta-wrapper { padding: 0 20px; }
    .eventos-container { flex-direction: row; padding: 60px; border-radius: var(--radius-lg); }
    .eventos-texto { flex: 1; min-width: 300px; }
    .eventos-img { flex: 1; min-width: 300px; height: 450px; border-radius: var(--radius-md); }
    .lista-eventos { grid-template-columns: 1fr 1fr; }
    .midia-section { margin: 0 20px; padding: 80px 40px; border-radius: var(--radius-lg); }
    .midia-videos { gap: 40px; }
    .insta-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
    .insta-post { aspect-ratio: auto; border-radius: var(--radius-md); }
    .insta-post:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .media-logos { gap: 40px 80px; padding: 60px 20px; }
    .logo-media { font-size: 1.5rem; }
    footer { padding: 40px 20px; font-size: 1rem; }
    .btn-whatsapp-float { bottom: 30px; right: 30px; width: 64px; height: 64px; }
    
    .slide-card:hover { box-shadow: var(--shadow-float); }
    .insta-post:hover img, .insta-post:hover video { transform: scale(1.05); }
    .insta-post:hover::after { opacity: 1; }
    .insta-post:hover::before { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-color); flex-direction: column; justify-content: center;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1000; display: flex; gap: 40px;
    }
    .nav-links.mobile-active { right: 0; }
    .nav-item { font-size: 1.5rem; font-weight: 800; }
    .menu-toggle { display: flex; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}