/* Nossa História Page Styles */

/* Page Header */
.page-header {
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-content {
    position: relative;
    min-height: 100vh;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-header .divider {
    width: 80px;
    height: 4px;
    background: #233B63;
    margin: 20px auto;
    border-radius: 2px;
}

.divider {
    background: #FBBC04 !important;
}

.page-header p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    opacity: 0.9;
    margin: 0 auto;
    line-height: 1.6;
}

/* História Principal */
.historia-principal {
    padding: 80px 0;
    background: transparent;
}

.historia-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 80px auto;
}

.historia-content:last-child {
    margin-bottom: 0;
}

.historia-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.historia-img:hover {
    transform: scale(1.02);
}

.historia-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: justify;
    font-size: 22px;
}

.historia-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    
}

.historia-text p:last-child {
    margin-bottom: 0;
}

.historia-text strong {
    font-weight: bold;
    color: #233B63;
}

.historia-text em {
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
    .historia-content {
        align-items: center;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .historia-text {
        padding-left: 0;
    }
    
    .historia-text p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 60px;
    }
    
    .historia-principal {
        padding: 60px 0;
    }
    
    .historia-content {
        gap: 30px;
    }
    
    .historia-text h2 {
        font-size: 1.6rem;
    }
    
    .historia-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .historia-principal {
        padding: 40px 0;
    }
    
    .historia-content {
        gap: 25px;
    }
    
    .historia-text h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .historia-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Animações para Nossa História (baseado no TypeScript) */
[data-animate] {
    opacity: 0;
    animation-fill-mode: both;
}

.page-header h1[data-animate] {
    animation-delay: 0.2s;
}

.page-header .divider[data-animate] {
    animation-delay: 0.4s;
}

.page-header p[data-animate] {
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: both;
}

.page-header p[data-animate]:not(.in-view) {
    opacity: 0;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active states */
.in-view[data-animate="fade-up"] {
    animation: fadeUp 0.8s ease-out forwards;
}
