/* 1. Reset e Variáveis Globais */
:root {
    --primary-color: #BCD849;
    --secondary-color: #D2AC67;
    --dark-color: #263557;
    --text-color: #333;
    --light-text-color: #fff;
    --bg-light: #ffffff;
    --bg-alt: #f4f4f4;
    --font-main: 'Roboto', sans-serif;
    --font-headings: 'Roboto Slab', serif;
    --header-height: 80px;
}

/* Correção para barra de rolagem horizontal */
html, body {
    width: 100%;
    overflow-x: hidden;
}

body.no-scroll {
    overflow-y: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background-color: var(--bg-light);
    color: var(--dark-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* 2. Header e Navegação */
.main-header {
    background-color: var(--bg-light);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 85px;
    width: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-item a {
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 0;
    position: relative;
}

.nav-item a:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item a:hover::after, .nav-item a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-light);
    list-style: none;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu li {
    padding: 5px 10px;
}

.dropdown-menu a {
    font-size: 14px;
    text-transform: none;
}

.dropdown-menu a::after {
    display: none !important;
}

.header-actions {
    display: flex;
    align-items: center;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    margin: 0 3px;
    cursor: pointer;
    border-radius: 50%;
    padding: 2px;
    transition: border-color 0.3s ease;
    display: block;
}

.lang-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.lang-btn.active {
    border-color: var(--primary-color);
}

.auth-buttons a {
    margin-left: 10px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
}

/* 3. Seção Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
    padding-top: var(--header-height);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--light-text-color);
    font-weight: 600;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 20px auto 40px;
    font-family: var(--font-headings);
    font-weight: 300;
}

.hero-buttons .btn {
    margin: 10px;
}

/* 4. Seções de Conteúdo */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background-color: var(--secondary-color);
}
.alt-bg h2, .alt-bg p, .alt-bg strong {
    color: var(--light-text-color);
}
.alt-bg .btn-primary {
    background-color: var(--light-text-color);
    color: var(--secondary-color);
}
.alt-bg .btn-primary:hover {
    background-color: transparent;
    color: var(--light-text-color);
    border-color: var(--light-text-color);
}

.flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.flex-container.reverse {
    flex-direction: row-reverse;
}

.text-content, .image-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.text-content .btn {
    margin-top: 20px;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
    text-align: center;
}

.cta-section .map-image {
    max-width: 800px;
    margin-bottom: 30px;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 20px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    border-color: #128C7E;
}
.btn-whatsapp i {
    margin-right: 10px;
}

/* 5. Página de Apresentação */
.presentation-page {
    padding: 120px 0 80px;
}
.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}
.video-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.video-wrapper {
    text-align: center;
}
.video-wrapper h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.video-wrapper iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 6. Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 60px 0 20px;
    text-align: center;
}

.main-footer a {
    color: var(--dark-color);
}
.main-footer a:hover {
    color: var(--light-text-color);
}

.footer-content h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.footer-columns {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-column {
    max-width: 300px;
}

.footer-column h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}
.footer-column p {
    margin-bottom: 5px;
}

.footer-social h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.footer-social a {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-social i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* 7. Animações */
.fade-in {
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 8. Estilos para Páginas de Conteúdo Internas */
.main-content-page {
    padding: 120px 0 80px; /* Espaço para o header fixo */
}

.page-container h1 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--dark-color);
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.text-content-inner {
    flex: 2;
}
.text-content-inner p {
    margin-bottom: 1.2em;
    font-size: 1.1em;
    line-height: 1.7;
}

.text-content-inner h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.image-content-inner {
    flex: 1;
    position: sticky;
    top: 120px;
}

.image-content-inner img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 9. Responsividade */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
        position: fixed; /* Mudei para fixed para cobrir a tela inteira */
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        flex-direction: column;
        padding: 30px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .nav-item a {
        padding: 20px;
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #f0f0f0;
        display: none;
        width: 100%;
    }
    
    .nav-item.open > .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1100;
        font-size: 28px;
    }
    
    .header-actions .auth-buttons, .header-actions .language-switcher {
        display: none;
    }

    .flex-container {
        flex-direction: column !important;
    }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.2rem; }
    .text-content h2 { font-size: 2rem; }
    .footer-columns { flex-direction: column; gap: 40px; align-items: center; }

    .content-wrapper {
        flex-direction: column;
    }
    .image-content-inner {
        position: static;
        flex: 1;
        margin-top: 30px;
    }
    .page-container h1 {
        font-size: 2.2rem;
    }
}
/* =================================================================== */
/* VERSÃO FINAL E DEFINITIVA 2.0 (CORREÇÃO DO MENU JAVASCRIPT)
/* =================================================================== */

/* --- 1. Layout Geral do Cabeçalho --- */
.main-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.header-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}


/* --- 2. Lógica de Exibição (Telemóvel vs. Computador) --- */

/* EM ECRÃS DE TELEMÓVEL (PEQUENAS) */
@media (max-width: 991px) {
    /* CORREÇÃO AQUI: Removemos o !important para permitir que o JavaScript funcione */
    .main-nav, .header-actions {
        display: none;
    }
    .language-switcher-mobile {
        display: flex !important;
    }
}

/* EM ECRÃS DE COMPUTADOR (GRANDES) */
@media (min-width: 992px) {
    .language-switcher-mobile, .mobile-menu-toggle {
        display: none !important;
    }
}


/* --- 3. Estilo do Seletor de Idiomas (Regra única para ambos) --- */
.language-switcher,
.language-switcher-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher .lang-btn,
.language-switcher-mobile .lang-btn {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
}

.language-switcher .lang-btn img,
.language-switcher-mobile .lang-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.language-switcher .lang-btn.active,
.language-switcher-mobile .lang-btn.active {
    border-color: #8BC34A;
    transform: scale(1.1);
}
/* Estilos para o container do vídeo na página de apresentação */
.video-presentation-container {
    width: 100%;
    max-width: 960px; /* Define uma largura máxima para não ficar gigante em telas grandes */
    margin: 30px auto; /* Centraliza o container */
    background-color: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Garante que o vídeo respeite o border-radius */
    
    /* A mágica para manter a proporção 16:9 de forma responsiva */
    aspect-ratio: 16 / 9; 
}

.video-presentation-container video {
    width: 100%;
    height: 100%;
    display: block; /* Remove qualquer espaço extra abaixo do vídeo */
    border-radius: 12px; /* Aplica o mesmo radius ao vídeo */
}
    /*
 * CORREÇÃO PARA BOTÕES NO MENU MÓVEL
 */

/* 1. Esconde por padrão o container dos botões móveis. */
.main-nav .mobile-auth-buttons {
    display: none;
}


/* 2. Media Query para telas menores (móveis). 
      Use o mesmo ponto de quebra (breakpoint) que seu site já usa para o menu móvel. 
      Um valor comum é 992px, mas ajuste se necessário. */
@media (max-width: 992px) {

    /* 2a. Esconde os botões originais do cabeçalho na versão móvel. */
    .header-actions .auth-buttons {
        display: none;
    }
    
    /* 2b. Mostra e estiliza o container dos botões dentro do menu móvel. */
    .main-nav .mobile-auth-buttons {
        display: flex;          /* Usa flexbox para alinhar os itens. */
        flex-direction: column; /* Coloca os botões um abaixo do outro. */
        align-items: center;    /* Centraliza os botões horizontalmente. */
        gap: 15px;              /* Adiciona um espaço vertical entre os botões. */
        margin-top: 25px;       /* Adiciona um espaço acima, separando dos links do menu. */
        padding-bottom: 20px;   /* Adiciona um espaço abaixo. */
    }

    /* 2c. Garante que os botões tenham uma largura boa e texto centralizado. */
    .main-nav .mobile-auth-buttons .btn {
        width: 80%;
        max-width: 250px; /* Limite máximo para a largura */
        text-align: center;
        padding: 12px 20px; /* Ajuste o padding se necessário para manter o estilo */
    }
}