/* --- GERAL E VARIÁVEIS DE MARCA --- */
:root {
    --cor-primaria: #2A9D8F;
    --cor-secundaria: #264653;
    --cor-destaque: #E9C46A;
    --cor-fundo: #F4F7FC;
    --cor-branco: #FFFFFF;
    --cor-texto: #263238;
    --cor-texto-claro: #546E7A;
    --cor-borda: #E0E7EE;
    --sombra: 0 4px 15px rgba(0, 0, 0, 0.08);
    --sombra-intensa: 0 8px 25px rgba(38, 70, 83, 0.12);
    --border-radius: 12px;
    --font-principal: 'Poppins', sans-serif;
}

/* --- RESET E CONFIGURAÇÕES BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
    font-family: var(--font-principal); background-color: var(--cor-fundo); color: var(--cor-texto);
    line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: var(--cor-secundaria); font-weight: 700; line-height: 1.3; letter-spacing: -0.5px; }
h2 { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 20px; text-align: center; }
.section-description { max-width: 800px; margin: 0 auto 60px; text-align: center; font-size: 1.15rem; color: var(--cor-texto-claro); }
.section-padding { padding: 100px 0; }
.feature-section, .news-section, .youtube-section { background-color: var(--cor-branco); }

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.main-header {
    background-color: var(--cor-branco); padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 55px; }
.main-nav ul { list-style: none; display: flex; gap: 35px; margin: 0; padding: 0;}
.main-nav a { text-decoration: none; color: var(--cor-secundaria); font-weight: 500; position: relative; padding-bottom: 5px; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--cor-primaria); transition: width 0.3s ease; }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 15px; }
.nav-toggle { display: none; }

/* MUDANÇA: O botão de fechar (X) fica escondido em telas grandes */
.nav-close-item {
    display: none;
}

/* --- BOTÕES --- */
.btn { text-decoration: none; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; border: 2px solid transparent; text-align: center; }
.btn-primary { background-color: var(--cor-primaria); color: var(--cor-branco); }
.btn-primary:hover { background-color: var(--cor-secundaria); transform: translateY(-3px); box-shadow: var(--sombra-intensa); }
.btn-secondary { background-color: transparent; color: var(--cor-secundaria); border-color: var(--cor-secundaria); }
.btn-secondary:hover { background-color: var(--cor-secundaria); color: var(--cor-branco); }
.btn-large { padding: 15px 40px; font-size: 1.1rem; }

/* --- SEÇÕES PRINCIPAIS --- */
.hero-section { background-color: var(--cor-secundaria); color: var(--cor-branco); text-align: center; padding: 100px 0; }
.hero-section .emoji-icon { font-size: 4rem; line-height: 1; margin-bottom: 15px; }
.hero-section h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); color: var(--cor-branco); margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.hero-section .subtitle { font-size: 1.25rem; max-width: 750px; margin: 0 auto 40px; opacity: 0.9; font-weight: 400; }
.video-wrapper { max-width: 900px; margin: 0 auto; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--sombra-intensa); border: 1px solid var(--cor-borda); }
.video-wrapper video { display: block; width: 100%; height: auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background-color: var(--cor-fundo); padding: 40px 30px; border-radius: var(--border-radius); text-align: center; border: 1px solid var(--cor-borda); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--sombra-intensa); }
.feature-card .emoji-icon { font-size: 3rem; margin-bottom: 15px; }
.feature-card h3 { margin-bottom: 10px; }
.about-section .container { max-width: 800px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card-link { text-decoration: none; color: inherit; }
.news-card { display: flex; flex-direction: column; height: 100%; background-color: var(--cor-branco); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--sombra); transition: transform 0.3s, box-shadow 0.3s; }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--sombra-intensa); }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.news-category { display: inline-block; background-color: var(--cor-destaque); color: var(--cor-secundaria); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; align-self: flex-start; }
.news-content h3 { font-size: 1.35rem; margin-bottom: 10px; }
.news-content p { flex-grow: 1; }
.btn-read-more { display: inline-block; margin-top: 20px; color: var(--cor-primaria); font-weight: 700; text-decoration: none; }
.btn-read-more:hover { text-decoration: underline; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.video-card { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--sombra); }
.video-card iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.cta-section { background-color: var(--cor-secundaria); color: var(--cor-branco); text-align: center; }
.cta-section .container { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cta-section h2 { color: var(--cor-branco); }
.cta-section p { color: var(--cor-branco); margin-bottom: 30px; }
.main-footer { background-color: var(--cor-texto); color: var(--cor-branco); padding-top: 60px; }
.footer-content { text-align: center; padding-bottom: 40px; }
.footer-content h3 { color: var(--cor-branco); }
.footer-contact p { margin: 5px 0; opacity: 0.8; }
.footer-bottom { border-top: 1px solid #444; text-align: center; padding: 20px 0; font-size: 0.9rem; opacity: 0.7; }

/* --- RESPONSIVIDADE DO CABEÇALHO --- */
@media (max-width: 992px) {
    .nav-menu {
        display: none; position: fixed; top: 0; right: -100%;
        width: 70%; max-width: 300px; height: 100vh;
        background-color: var(--cor-secundaria);
        flex-direction: column; align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        transition: right 0.4s ease-in-out;
        padding: 80px 40px;
    }
    
    .nav-menu.active { display: flex; right: 0; }

    .nav-toggle {
        display: block; background: none; border: none;
        color: var(--cor-secundaria); font-size: 2rem;
        cursor: pointer; z-index: 1001;
    }

    .main-nav { order: 3; }
    .header-actions { order: 2; }
    .main-nav a { color: var(--cor-branco); font-size: 1.2rem; }
    
    /* MUDANÇA: O botão de fechar (X) agora é exibido em telas pequenas */
    .nav-close-item { 
        display: block; /* Garante que o item da lista seja visível */
        width: 100%; 
        text-align: right; 
        margin-bottom: 20px;
    }
    .nav-close {
        background: none; border: none;
        color: var(--cor-branco); font-size: 2.2rem;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    html { font-size: 16px; }
    h2 { font-size: 1.8rem; }
    .section-padding { padding: 60px 0; }
    .hero-section { padding: 60px 0; }
    .hero-section h1 { font-size: 2.2rem; }
    .header-actions .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}