/* --- ESTILOS PARA A PÁGINA SOBRE NÓS --- */

/* Adiciona um indicador visual para o link ativo no menu */
header nav ul li a.active {
    color: #C4A35A;
}

/* --- SEÇÃO HERO ESPECÍFICA DA PÁGINA --- */
.hero-sobre-section {
    background-image: linear-gradient(rgba(1, 17, 38, 0.85), rgba(1, 17, 38, 0.88)), url('../img/FUNDO_INICIO.png');
    background-size: cover;
    background-position: center center;
    padding: 220px 0 120px 0;
    text-align: center;
    border-bottom: 1px solid #103562;
}

.hero-sobre-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-sobre-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* --- SEÇÃO DE MISSÃO, VISÃO E VALORES --- */
.valores-section {
    padding: 80px 0;
    background-color: #0A2B52;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.valor-card {
    background-color: #011126;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #103562;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.valor-card .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    /* Combinação de filtros para transformar o preto em dourado (#C4A35A) */
    filter: invert(78%) sepia(12%) saturate(1558%) hue-rotate(1deg) brightness(85%) contrast(89%);
}

.valor-card:hover {
    transform: translateY(-10px);
    border-color: #C4A35A;
}

.valor-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.valor-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #C4A35A;
    margin-bottom: 15px;
}

.valor-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}


/* --- SEÇÃO DA LINHA DO TEMPO VERTICAL --- */
.timeline-vertical-section {
    padding: 80px 0;
    background-color: #011126;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* A linha central da timeline */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-image: linear-gradient(to bottom, #103562, #0A2B52);
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* O ponto (círculo) na linha */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background-color: #011126;
    border: 4px solid #C4A35A;
    border-radius: 50%;
    z-index: 1;
}

/* Posiciona os itens da esquerda */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
}

.timeline-item:nth-child(odd)::after {
    right: -10px; /* Metade da largura do círculo */
}

/* Posiciona os itens da direita */
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

.timeline-item:nth-child(even)::after {
    left: -10px; /* Metade da largura do círculo */
}

.timeline-content {
    padding: 30px;
    background-color: #0A2B52;
    border-radius: 10px;
    border: 1px solid #103562;
    position: relative;
}

.timeline-year {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #C4A35A;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}


/* --- ESTILOS PARA ANIMAÇÃO DA LINHA DO TEMPO AO ROLAR --- */

/* Estado inicial (escondido) de cada item da linha do tempo */
.timeline-item {
    /* ... (mantém todos os seus estilos anteriores) ... */
    
    /* Adiciona estas novas propriedades para o estado inicial */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estado final (visível) quando a classe .is-visible é adicionada pelo JS */
.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* BÔNUS: Efeito de cascata (cada item aparece com um pequeno atraso) */
.timeline-item:nth-child(1).is-visible { transition-delay: 0.1s; }
.timeline-item:nth-child(2).is-visible { transition-delay: 0.2s; }
.timeline-item:nth-child(3).is-visible { transition-delay: 0.3s; }
.timeline-item:nth-child(4).is-visible { transition-delay: 0.4s; }
.timeline-item:nth-child(5).is-visible { transition-delay: 0.5s; }

/* --- RESPONSIVIDADE --- */

@media (max-width: 992px) {
    .valores-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-sobre-section h1 {
        font-size: 2.2rem;
    }

    /* Ajusta a timeline para o modo mobile (tudo de um lado só) */
    .timeline-container::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 0;
    }
}