/* Estilos Gerais */
:root {
    --primary-red: #e31e24;
    --dark-grey: #333;
    --white: #ffffff;
    --light-grey: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #eee;
    padding: 5px 0;
    font-size: 12px;
}

.lang-selector {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.lang-flag {
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    width: 24px;
    height: 16px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.lang-flag.active,
.lang-flag:hover {
    opacity: 1;
    border-color: var(--primary-red);
    transform: translateY(-1px) scale(1.08);
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.22);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: bold;
    font-size: 1.2rem;
}

.logo img {
    height: 50px;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0,0,0,0.12);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark-grey);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Botões CTA */
.cta-buttons {
    padding: 40px 0;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.btn {
    display: block;
    padding: 15px;
    background: var(--white);
    color: var(--primary-red);
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--primary-red);
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Seções de Conteúdo */
.section-red {
    background: var(--primary-red);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.section-white {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.home-intro .intro-content {
    max-width: 980px;
}

.home-intro p {
    margin: 0 auto 18px;
    max-width: 920px;
    font-size: 1.08rem;
}

.home-intro .intro-highlight {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Carrossel */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-container img {
    width: 100%;
    display: block;
}

/* Grid de Programas e Projetos */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.grid-item {
    text-align: center;
}

.grid-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.grid-item h3 {
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* Video Responsive */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 12px;
    font-size: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    color: var(--white);
    transition: color 0.3s, background 0.3s, transform 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
}

.social-links a:hover {
    color: var(--white);
    background: rgba(227, 30, 36, 0.95);
    transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 900px) {
    nav {
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(0,0,0,0.12);
        overflow: hidden;
        z-index: 1001;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li + li {
        border-top: 1px solid rgba(0,0,0,0.06);
    }

    .nav-links a {
        display: block;
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        align-items: stretch;
    }

    .social-links a {
        width: 100%;
        justify-content: center;
    }
}
