* {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

:root {
    --primary-color: #d0373a;
    --primary-color-hover: #a31f22;
    --secondary-color: #F2F2F2;
    --text-color: #333333;
    --accent-color: #A8CE45;
    --accent-color-hover: #8FBF3A;
}

/* Container do vídeo responsivo */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 120%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.02);
    pointer-events: none;
    border: none;
    object-fit: cover;
}

/* Estilos para o navegador desktop */
.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: 5px;
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* Mobile Navigation */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
}

.mobile-nav-link:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding-left: 1.5rem;
}

.mobile-nav-link.active {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* Animação do botão hamburger */
.mobile-menu-open #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #line2 {
    opacity: 0;
}

.mobile-menu-open #line3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-open #mobile-menu {
    transform: translateY(0);
}

/* Header com scroll */
.header-scrolled {
    background-color: rgba(20, 62, 24, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bg-img-sobre {
    background-image: url('/img/sobre/bg-sobre-page.png');
    background-size: cover;
    background-position: center;
}

.list-disc-green li::marker {
            color: #196F3D;
        }

        .hover-scale {
            transition: transform 0.2s ease-in-out;
        }

        .hover-scale:hover {
            transform: scale(1.02);
        }
/* FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.faq-toggle:focus {
    outline: none;
}

.faq-toggle[aria-expanded="true"] .fas {
    transform: rotate(180deg);
}

.faq-toggle[aria-expanded="true"] {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.faq-answer.active {
    max-height: 500px; /* Ajuste conforme necessário */
}

/* Animação suave para o conteúdo */
.faq-answer {
    transition: max-height 0.3s ease-in-out;
}

/* Estilo para quando o FAQ está aberto */
.faq-item.active {
    border-color: #10b981;
}

.faq-item.active .faq-toggle {
    background-color: #ecfdf5;
}

.card-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Responsividade para diferentes tamanhos */
@media (max-width: 1280px) {
    .nav-link {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

@media (max-width: 1024px) {
    .nav-link {
        font-size: 0.75rem;
        padding: 8px 8px;
    }

    /* Ajustes do vídeo para tablet */
    .video-iframe {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Tablet */
@media (max-width: 768px) {
    #mobile-menu {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    /* Ajustes do vídeo para tablet */
    .video-iframe {
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1.1);
    }

    /* Ajuste da seção hero */
    #home {
        height: 100vh;
        min-height: 600px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    /* Manter o vídeo mas ajustar para mobile */
    .video-iframe {
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1.2);
    }

    /* Ajustes do hero para mobile */
    #home {
        height: 10vh;
        min-height: 500px;
        padding-top: 4rem; /* Compensar header fixo */
    }

    /* Overlay mais escuro no mobile para melhor legibilidade */
    #home .absolute.inset-0.bg-black {
        background-color: rgba(0, 0, 0, 0.6);
    }

    /* Ajustes de texto para mobile */
    #home h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    #home p {
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin-bottom: 1.5rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    #home button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    #home {
        min-height: 285px;
    }

    .video-iframe {
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1.3);
    }

    #home h1 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    #home p {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

/* Mobile landscape */
@media (max-width: 768px) and (orientation: landscape) {
    #home {
        height: 10vh;
        min-height: 400px;
    }

    .video-iframe {
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1.1);
    }

    /* Ajustar overlay para landscape */
    #home .absolute.inset-0.bg-black {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* Mobile portrait muito alto */
@media (max-width: 640px) and (min-height: 800px) {
    .video-iframe {
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Otimizações para dispositivos com tela de alta densidade */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-iframe {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Performance: Reduzir animações em dispositivos com pouca bateria */
@media (prefers-reduced-motion: reduce) {
    .animate-bounce {
        animation: none;
    }

    .transition-colors,
    .transition-all {
        transition: none;
    }

    .video-iframe {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Otimização para conexões lentas */
@media (prefers-reduced-data: reduce) {
    .video-iframe {
        display: none;
    }

    #home {
        background: linear-gradient(135deg, var(--primary-color) 0%, #0f2912 100%);
    }
}

/* Ajustes específicos para iPhone */
@supports (-webkit-touch-callout: none) {
    .video-iframe {
        -webkit-transform: translate(-50%, -50%) scale(1.1);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Ajustes para telas muito largas */
@media (min-width: 1920px) {
    .video-iframe {
        transform: translate(-50%, -50%) scale(1.0);
    }
}
