/* ==========================================================================
   ESTILOS ESPECÍFICOS: PÁGINA NOSSA HISTÓRIA
   ========================================================================== */

:root {
    --primary-green: #05422d;
    --accent-gold: #c5a059;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --off-white: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Secção Hero (Banner de Topo) 
   -------------------------------------------------------------------------- */
.sobre-hero {
    margin-top: 0; /* Garante que não há buraco branco no topo */
    padding-top: 160px; /* Espaço para o menu fixo não cobrir o texto */
    padding-bottom: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/fotos/primeira_diretoria_cba.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh; /* Garante que o hero ocupe toda a altura da tela */
}

.sobre-hero span {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.sobre-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 15px 0;
    font-weight: 900;
}

.sobre-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 2. Missão, Visão e Valores (MVV)
   -------------------------------------------------------------------------- */
.mvv-section {
    padding: 80px 0;
    background: var(--white);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mvv-card {
    background: var(--off-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.mvv-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.mvv-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.mvv-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* 3. Blocos de Conteúdo Histórico
   -------------------------------------------------------------------------- */
.history-modern {
    padding: 100px 0;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.history-text label {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.history-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin: 10px 0 25px;
    line-height: 1.2;
}

.history-text p {
    color: black;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Moldura das Imagens */
.image-frame {
    width: 100%;
    height: 450px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Efeito decorativo atrás da imagem */
.image-frame::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--accent-gold);
    z-index: -1;
    border-radius: 15px;
}

/* Ajuste específico para a foto histórica panorâmica */
.image-frame.wide-photo {
    height: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

.image-frame.wide-photo::after {
    display: none; /* Remove o efeito decorativo para a foto de grupo */
}

/* 4. Linha do Tempo (Timeline)
   -------------------------------------------------------------------------- */
.timeline-section {
    background-color: var(--off-white);
    padding: 100px 0;
}

.text-center-modern {
    text-align: center;
    margin-bottom: 80px;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--accent-gold);
    opacity: 0.3;
    transform: translateX(-50%);
}

.timeline-item {
    width: 50%;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-gold);
    border-radius: 50%;
    top: 8px;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 8px;
    font-weight: 800;
}

.timeline-item.highlight .timeline-content h3 {
    color: var(--accent-gold);
    font-size: 2.2rem;
}