
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background-color: var(--color-bg); }
.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; }
.animate-on-scroll {}
#nossa-historia-main .hero--full-image {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; 
    color: var(--color-white);
    justify-content: flex-start;
    border-bottom-left-radius: 70px;
    border-bottom-right-radius: 70px;
    height: auto;
    padding-top: 0;
}
#nossa-historia-main .hero--full-image .hero__image-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/iasc.webp'); 
    background-size: cover;
    background-position: center;
    z-index: 1;
}
#nossa-historia-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;
}
#nossa-historia-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;
}
#nossa-historia-main .hero--full-image .hero__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: none;
}
#nossa-historia-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;
    text-shadow: none;
    max-width: none;
    margin: 0;
}
#nossa-historia-main .hero--full-image .hero__content > .hero__subtitle:last-of-type {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: none;
    max-width: none;
    margin: 0;
}
.purpose-section {
    padding: 80px 0 40px 0;
    background-color: var(--color-white);
    position: relative;
}
.purpose-content { display: flex; gap: 60px; align-items: center; }
.purpose-image-col { flex: 1 1 45%; text-align: center; }
.purpose-main-image { width: 100%; max-width: 500px; height: auto; border-radius: 20px; filter: drop-shadow(0 0 15px rgba(0,0,0,0.1)); }
.purpose-text-col { flex: 1 1 55%; }
.purpose-text-col .section-title { text-align: left; }
.purpose-text-col > p { font-size: 1.1rem; line-height: 1.8; color: var(--color-text); margin-bottom: 15px; }
.purpose-text-col > p:first-of-type { font-size: 1.25rem; font-style: italic; color: var(--color-text-dark); font-weight: 500; }
.highlights-section { padding: 40px 0 80px 0; background-color: var(--color-white); }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 20px; }
.highlight-item { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: var(--radius); background-color: var(--color-bg); transition: all 0.3s ease; }
.highlight-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.highlight-item i { font-size: 2.5rem; color: var(--color-primary); flex-shrink: 0; }
.highlight-item h4 { font-size: 1.15rem; color: var(--color-text-dark); margin-bottom: 5px; }
.highlight-item p { font-size: 0.95rem; color: var(--color-text); line-height: 1.6; margin: 0; }
.history-timeline-carousel {
    padding: 80px 0; background-color: var(--color-bg-alt); position: relative; overflow: hidden; 
}
.timeline-slider-wrapper { position: relative; padding: 0 50px; }
.history-slider { 
    padding-bottom: 60px; 
}
.history-date-card { position: relative; background-color: var(--color-text-dark); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); height: 420px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.history-date-card__image { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease, filter 0.4s ease; 
    z-index: 1; 
}
.history-date-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4a4a4a; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, filter 0.4s ease;
    z-index: 1;
}
.history-date-card__placeholder img {
    width: 50%;
    max-width: 120px;
    opacity: 1; 
    object-fit: contain;
}
.history-date-card:hover .history-date-card__image,
.history-date-card:hover .history-date-card__placeholder { transform: scale(1.08); filter: brightness(0.5); }
.history-date-card__content { position: relative; z-index: 2; padding: 25px; color: var(--color-white); text-align: center; background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%); transition: all 0.4s ease; }
.history-date-card__year { font-size: clamp(3.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1; margin-bottom: 10px; transition: transform 0.4s ease-out; }
.history-date-card:hover .history-date-card__year { transform: translateY(-40px); }
.history-date-card__overlay { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s ease-out, opacity 0.5s 0.1s ease-out; }
.history-date-card:hover .history-date-card__overlay { max-height: 300px; opacity: 1; overflow-y: auto; }
.history-date-card__description { font-size: 0.95rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.history-pagination.swiper-pagination-bullets .swiper-pagination-bullet { background: var(--color-text); opacity: 0.5; width: 10px; height: 10px; transition: all 0.3s ease; }
.history-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active { background: var(--color-primary); width: 25px; border-radius: 5px; opacity: 1; }
.history-nav-button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 50px; height: 50px; background-color: var(--color-white); color: var(--color-primary); border-radius: 50%; box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.3s ease; }
.history-nav-button:hover { transform: translateY(-50%) scale(1.05); background-color: var(--color-primary); color: var(--color-white); }
.history-nav-button::after { font-size: 1.5rem; }
.swiper-button-prev { left: 0; }
.swiper-button-next { right: 0; }
.swiper-button-disabled { opacity: 0.3; cursor: auto; pointer-events: none; }
.philosophy-section { 
    padding: 100px 0; 
    background: linear-gradient(135deg, var(--color-text-dark) 0%, #1e1e1e 100%); 
    color: var(--color-white); 
}
.philosophy-content { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
}
.philosophy-image-col { 
    flex: 1 1 45%; 
    text-align: center; 
    order: 2; 
}
.philosophy-main-image { 
    width: 100%; 
    max-width: 500px; 
    height: auto; 
    border-radius: 20px; 
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5)); 
}
.philosophy-text-col { 
    flex: 1 1 55%; 
    order: 1; 
}
.philosophy-text-col .section-title { 
    color: var(--color-white); 
    text-align: left; 
}
.philosophy-text-col .section-title::after { 
    background-color: var(--color-primary); 
}
.philosophy-text-col p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    margin-bottom: 25px; 
    color: rgba(255, 255, 255, 0.85); 
}
.philosophy-text-col .btn--primary-outline { 
    border: 2px solid var(--color-white); 
    color: var(--color-white);
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease; 
}
.philosophy-text-col .btn--primary-outline:hover { 
    background-color: var(--color-white); 
    color: var(--color-text-dark); 
}
.share-page-section { padding: 80px 0; background-color: var(--color-white); }
.social-share-links { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-top: 40px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background-color: var(--color-white); text-decoration: none; transition: all 0.3s ease; box-shadow: var(--shadow-sm); }
.social-icon i { font-size: 2.5rem; transition: all 0.3s ease; }
.social-icon.facebook i { color: #3b5998; }
.social-icon.whatsapp i { color: #25d366; }
.social-icon.instagram i { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-fill-color: transparent; }
.social-icon:hover { transform: translateY(-5px) scale(1.05); box-shadow: var(--shadow-lg); }
.social-icon.facebook:hover { background-color: #3b5998; }
.social-icon.whatsapp:hover { background-color: #25d366; }
.social-icon.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); }
.social-icon:hover i { color: var(--color-white); background: none; -webkit-text-fill-color: var(--color-white); }
@media (max-width: 992px) {
    #nossa-historia-main .hero--full-image .hero__content {
        margin-left: 10%;
    }
    .purpose-content, .philosophy-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .purpose-image-col, .philosophy-image-col {
        width: 100%;
        max-width: 500px;
        flex-basis: auto;
        order: 1 !important;
    }
    .purpose-text-col, .philosophy-text-col {
        order: 2 !important;
    }
    .purpose-text-col .section-title, .philosophy-text-col .section-title {
        text-align: center;
    }
    .purpose-text-col .section-title::after, .philosophy-text-col .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .philosophy-text-col .btn {
        margin: 0 auto;
    }
    .purpose-section, .highlights-section, .history-timeline-carousel, .philosophy-section, .share-page-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .timeline-slider-wrapper {
        padding: 0; 
    }
    .history-nav-button {
        display: none; 
    }
}
@media (max-width: 768px) {
    #nossa-historia-main .hero--full-image {
        min-height: 80vh;
    }
    #nossa-historia-main .hero--full-image .hero__content {
        max-width: 90%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .purpose-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .highlights-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }
    .history-timeline-carousel, .philosophy-section, .share-page-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .section-header h2, .section-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }
    .section-header p {
        font-size: 1rem;
    }
    .history-date-card {
        height: 380px;
    }
}
@media (max-width: 576px) {
    .social-icon {
        width: 60px;
        height: 60px;
    }
    .social-icon i {
        font-size: 2rem;
    }
    .history-date-card__year {
        font-size: clamp(3rem, 12vw, 4rem);
    }
    .history-date-card__description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .history-date-card:hover .history-date-card__overlay {
        max-height: 250px; 
        overflow-y: auto;
    }
}