/* =========================================
   ARQUIVO: institucional.css
   ESTILOS EXCLUSIVOS DA PÁGINA QUEM SOMOS
   ========================================= */

/* Cabeçalho Interno Padrão */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.655); /* Verde escuro */
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: #e8f2ef;
}

/* Seção: Quem Somos */
.about-section {
    padding: 80px 20px;
    background-color: white;
}

.about-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: #e8f2ef;
    color: var(--brand-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; gap: 40px; }
}

/* Seção: Missão, Visão e Valores (Com Efeito Parallax) */
.mvv-section {
    position: relative;
    padding: 120px 20px; /* Aumentado para a foto de fundo aparecer bem durante a rolagem */
    
    /* Sugestão: Use a foto da estrutura pré-moldada ou dos guindastes que você já tem na pasta assets */
    background-image: url('/assets/foto-parallax-institucional.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* O segredo do Parallax */
}

/* Película escura translúcida sobre a imagem de fundo */
.mvv-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: hsla(0, 0%, 0%, 0.655); /* Verde escuro institucional com transparência */
    z-index: 1;
}

.mvv-container {
    position: relative;
    z-index: 2; /* Joga os cards para cima da película escura */
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Os cards brancos continuam com o mesmo código que você já tinha: */
.mvv-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Sombra um pouco mais forte para destacar do fundo escuro */
    border-bottom: 4px solid var(--brand-primary);
    transition: transform 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-5px);
}

.mvv-icon {
    width: 64px;
    height: 64px;
    background-color: #e8f2ef;
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 24px;
}

.mvv-card h3 {
    color: var(--brand-dark);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.mvv-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.mvv-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--brand-primary);
    transition: transform 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-5px);
}

.mvv-icon {
    width: 64px;
    height: 64px;
    background-color: #e8f2ef;
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 24px;
}

.mvv-card h3 {
    color: var(--brand-dark);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.mvv-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Seção: Diretoria */
.board-section {
    padding: 80px 20px;
    background-color: white;
}

.board-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.board-header h2 {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.board-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.board-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.board-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.board-card:hover {
    box-shadow: 0 10px 15px rgba(24, 73, 56, 0.1);
}

.board-photo {
    width: 100px;
    height: 100px;
    background-color: #d1d5db;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.board-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-info h4 {
    color: var(--brand-dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.board-info span {
    color: var(--brand-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   FIX: BUG DO PARALLAX (BACKGROUND FIXED) EM DISPOSITIVOS MÓVEIS
   Desativa o efeito "fixed" em tablets e celulares para evitar o zoom distorcido,
   mantendo a imagem perfeitamente enquadrada como um background normal.
   ========================================================================== */

@media (max-width: 1024px) {
    .contact-section,
    .mvv-section,
    .page-header {
        /* Remove o comportamento que quebra o iOS/Android */
        background-attachment: scroll !important;
        
        /* Força a imagem a respeitar os limites exatos da seção */
        background-position: center center !important;
        background-size: cover !important;
    }
}