/* css/style-chi-siamo.css (Completo) */

/* --- Stili Globali per Contenitori --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- HERO SECTION --- */
.hero-chisiamo {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(20, 25, 30, 0.85), rgba(40, 50, 60, 0.75)), url('https://picsum.photos/1600/700?random=707') center center/cover;
    color: white;
    text-align: center;
    margin-bottom: 80px;
    border-bottom: 5px solid #0056b3;
}
.hero-chisiamo h1 { margin: 0; font-size: 58px; font-weight: 800; text-shadow: 3px 3px 10px rgba(0,0,0,0.7); letter-spacing: -1px; }
.hero-chisiamo p { margin: 25px auto 0 auto; font-size: 24px; opacity: 0.95; max-width: 800px; font-weight: 300; line-height: 1.5; }

/* --- TITOLO DI SEZIONE --- */
.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    color: #004080;
    font-weight: 700;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 80px; height: 4px; background-color: #d12727; margin: 15px auto 0; border-radius: 2px;
}
.subtitle {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: #495057;
    max-width: 850px;
    margin: 0 auto 80px auto;
}

/* --- SEZIONE STORIA --- */
.story-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}
.story-block.reverse { flex-direction: row-reverse; }

/* --- Stili per Video/Media e Immagini --- */
.story-media-wrapper, .story-image {
    flex-basis: 50%;
    flex-shrink: 0;
}
.story-image { 
    min-height: 450px; 
    background-size: cover; 
    background-position: center; 
}
.story-media-wrapper {
    position: relative;
    padding-bottom: 28.125%;
    height: 0;
    overflow: hidden;
    background-color: #000;
}
.story-media-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.story-content {
    flex: 1;
    padding: 40px;
    text-align: left;
}
.story-content h3 { font-size: 32px; color: #004080; margin-bottom: 20px; }
.story-content p { font-size: 17px; line-height: 1.8; color: #555; }


/* --- PULSANTE AUDIO PERSONALIZZATO --- */
.unmute-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.unmute-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
}
.unmute-text {
    display: inline;
}


/* --- SEZIONE TRAGUARDI (TIMELINE) --- */
.milestones-section { margin: 80px 0; }
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e9ecef;
    top: 15px;
    bottom: 15px;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 15px;
    background-color: #f4f6f9;
    border: 4px solid #0056b3;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 8px #f4f6f9;
    color: #0056b3;
}
.timeline-icon img { width: 32px; height: 32px; }
.timeline-item:nth-child(odd) .timeline-icon { right: -30px; }
.timeline-item:nth-child(even) .timeline-icon { left: -30px; }
.timeline-content {
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
}
.timeline-content h3 { margin: 0 0 10px 0; font-size: 20px; color: #004080; }
.timeline-content p { margin: 0; line-height: 1.6; color: #495057; }

/* --- SEZIONE MISSIONE SOCIALE --- */
.social-mission-section {
    display: flex;
    gap: 50px;
    align-items: center;
    background: #f8f9fa;
    padding: 60px;
    border-radius: 12px;
    margin: 80px 0;
}
.social-mission-content { flex: 1.5; }
.social-mission-image {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.collaborations { margin-top: 20px; }
.collaborations h4 { font-size: 18px; color: #004080; margin-bottom: 10px; }
.collaborations ul { list-style: none; padding: 0; columns: 2; }
.collaborations li { margin-bottom: 8px; }

/* --- SEZIONE TESTIMONIANZA --- */
.testimonial-section {
    background-color: #0056b3;
    color: white;
    padding: 50px;
    text-align: center;
    border-radius: 12px;
    margin: 80px 0;
}
.testimonial-section blockquote { border: none; margin: 0; }
.testimonial-section p { font-size: 22px; font-style: italic; line-height: 1.7; max-width: 750px; margin: 0 auto; }
.testimonial-section footer { margin-top: 20px; font-size: 16px; opacity: 0.8; }

/* --- SEZIONE CTA FINALE --- */
.cta-section { text-align: center; margin-bottom: 40px; }
.cta-section h2 { font-size: 32px; margin: 0 0 15px 0; color: #004080; }
.cta-section p { font-size: 18px; max-width: 600px; margin: 0 auto 30px auto; color: #495057; }
.cta-button {
    background-color: #d12727;
    color: white !important;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-block;
}
.cta-button:hover { background-color: #a71f1f; transform: scale(1.05); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .story-block, .story-block.reverse { 
        flex-direction: column; 
    }
    .story-media-wrapper, .story-image {
        width: 100%;
    }
    .story-media-wrapper {
        padding-bottom: 56.25%;
        min-height: unset;
    }
    .story-image { 
        min-height: 300px; 
    }
    .social-mission-section { flex-direction: column; padding: 40px; }
    .social-mission-image { width: 100%; min-height: 250px; }
}

@media (max-width: 767px) {
    .hero-chisiamo h1 { font-size: 36px; }
    .hero-chisiamo p { font-size: 18px; }
    .section-title, .cta-section h2 { font-size: 28px; }
    
    .timeline::after {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
        left: 0 !important;
        margin-bottom: 30px;
    }
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    .timeline-icon {
        left: 5px;
    }
    .timeline-content, .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }
    
    .collaborations ul { columns: 1; }
    .testimonial-section p { font-size: 18px; }

    .unmute-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    .unmute-text {
        display: none; /* Nasconde il testo e lascia solo l'icona */
    }
}