/* ========================================================== */
/* CSS para a página "Pessoas que inspiram pessoas" */
/* ========================================================== */

:root {
    --color-accent-green: #6A7A50;
}

html { scroll-behavior: smooth; }
body { background-color: var(--color-bg); }

/* Keyframes para as animações */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Base styles para as animações ao rolar (Unificado) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(20px);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-slide-in-left.animate-on-scroll {
    opacity: 0;
    transform: translateX(-20px);
}
.animate-slide-in-left.animate-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}
.animate-slide-in-right.animate-on-scroll {
    opacity: 0;
    transform: translateX(20px);
}
.animate-slide-in-right.animate-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}


/* SEÇÕES GERAIS E TÍTULOS - PADRONIZADOS */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2, .section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--color-text-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}
.section-header h2::after, .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}
.section-header h2::after { left: 50%; transform: translateX(-50%); }
.section-title::after { left: 0; transform: translateX(0); }
.section-header p { font-size: 1.1rem; line-height: 1.8; color: var(--color-text); max-width: 800px; margin: 0 auto; }


/* HERO OTIMIZADO (SEM BACKGROUND-ATTACHMENT: FIXED) */
main#pessoas-main .hero--full-image {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; 
    color: var(--color-white);
    justify-content: flex-start;
    z-index: 10;
    border-bottom-left-radius: 70px;
    border-bottom-right-radius: 70px;
    height: auto;
    padding-top: 0;
}
main#pessoas-main .hero--full-image .hero__image-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/pesssoas_que.webp'); 
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; -- REMOVIDO PARA MELHOR PERFORMANCE */
    z-index: 1;
}
main#pessoas-main .hero--full-image .hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}
main#pessoas-main .hero--full-image .hero__content {
    position: relative;
    z-index: 3;
    text-align: left;
    margin-left: 15%;
    margin-right: auto;
    max-width: 700px;
    padding-top: 0;
}
main#pessoas-main .hero--full-image .hero__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    text-shadow: none;
    margin-bottom: 15px;
}
main#pessoas-main .hero--full-image .hero__subtitle {
    text-shadow: none;
    max-width: none;
    margin: 0;
}
main#pessoas-main .hero--full-image .hero__content > .hero__subtitle:first-of-type {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem); 
    font-weight: 600;
    line-height: 1.2;
}
main#pessoas-main .hero--full-image .hero__content > .hero__subtitle:last-of-type {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Efeito de sobreposição mantido para funcionar com as bordas */
.first-section {
    padding-top: 120px;
    margin-top: -70px;
    position: relative;
    z-index: 5;
    background-color: var(--color-white);
}

/* SEÇÃO DE OBJETIVOS E VALORES */
.objectives-section {
    padding-bottom: 80px;
}
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.objective-card {
    background: linear-gradient(to bottom right, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
    padding: 35px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.objective-card.animate-on-scroll {
    transform: translateY(20px); /* Estado inicial para a animação unificada */
}
.objective-card:hover {
    transform: translateY(-10px) !important; /* !important para sobrepor a animação de scroll */
    box-shadow: 0 15px 30px rgba(134, 96, 147, 0.4);
}
.objective-card__icon {
    font-size: 2.5rem; margin-bottom: 20px; height: 40px;
}
.objective-card__title {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; line-height: 1.3;
}
.objective-card__text, .objective-card__list {
    font-size: 1rem; line-height: 1.7; opacity: 0.95;
}
.objective-card__list {
    list-style: none; padding-left: 0; text-align: left; display: inline-block;
}
.objective-card__list li { margin-bottom: 5px; }


/* SEÇÕES DE FEATURE (IMAGEM E TEXTO) */
.feature-section {
    padding: 80px 0;
}
.feature-section.bg-alt {
    background-color: var(--color-bg-alt);
}
.feature-content {
    display: flex;
    gap: 60px;
    align-items: center;
}
.feature-image {
    flex: 1 1 45%;
    text-align: center;
}
.feature-text {
    flex: 1 1 55%;
}
.feature-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.feature-content.image-left .feature-image { order: 1; }
.feature-content.image-left .feature-text { order: 2; }
.feature-content.image-right .feature-image { order: 2; }
.feature-content.image-right .feature-text { order: 1; }

.feature-text .section-title {
    text-align: left;
}
.feature-text > p:first-of-type {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-dark);
    font-weight: 500;
    margin-bottom: 25px;
}
.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* SEÇÃO DAS DIMENSÕES */
.dimensions-section {
    padding: 100px 0;
    background-color: var(--color-white);
}
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.dimension-card {
    background-color: var(--color-accent-green);
    padding: 30px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dimension-card.animate-on-scroll {
    transform: translateY(20px); /* Estado inicial para a animação unificada */
}
.dimension-card:hover {
    transform: translateY(-8px) !important; /* !important para sobrepor a animação de scroll */
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.dimension-card__icon {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 25px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dimension-card h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 15px;
    font-weight: 700;
}
.dimension-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

/* SEÇÃO DE PROMOÇÃO DA HISTÓRIA (OTIMIZADA SEM BLUR) */
.history-promo-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 60px 0;
    overflow: hidden;
}
.history-promo__bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.history-promo__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.history-promo-section .container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.history-promo-card {
    background-color: rgba(255, 255, 255, 0.9); /* Fundo semitransparente otimizado */
    /* backdrop-filter: blur(10px); -- REMOVIDO PARA MELHOR PERFORMANCE */
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    color: var(--color-text-dark);
}
.history-promo-card__super-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 5px;
}
.history-promo-card__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}
.history-promo-card__text-group p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.history-promo-card .btn--primary {
    margin-top: 10px;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
    .dimensions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}
@media (max-width: 992px) {
    main#pessoas-main .hero--full-image .hero__content {
        margin-left: 10%;
    }
    .history-promo-section .container {
        justify-content: center;
    }
    .history-promo-card {
        margin: 0 auto;
        text-align: center;
    }
    .feature-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .feature-image {
        order: 1 !important;
    }
    .feature-text {
        order: 2 !important;
    }
    .feature-text .section-title {
        text-align: center;
    }
    .feature-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
@media (max-width: 768px) {
    main#pessoas-main .hero--full-image {
        min-height: 80vh;
    }
    main#pessoas-main .hero--full-image .hero__content {
        max-width: 90%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .first-section {
        margin-top: -50px; 
        padding-top: 100px;
    }
    .feature-section, .objectives-section, .dimensions-section, .new-student-promo, .history-promo-section {
        padding: 60px 0;
    }
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    .history-promo-section {
        min-height: 400px;
    }
    .history-promo-card {
        padding: 30px;
    }
    .history-promo-card__title {
        font-size: 1.8rem;
    }
}