/* 
Theme Name: Ambasciatori 
Template Name: Chi Siamo
*/



/* ============== HERO SECTION (Chi Siamo) ================ */
.hero-page {
    position: relative;
    color: var(--text-white);
    padding: 100px 0 100px;
    text-align: center;
}

.hero-bg,
.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    background: #0d1b31;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 54, 100, 0.2);
    /* Navy transparent overlay */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
}

/* ============== SCELTA SECTION ================ */
.scelta-section {
    padding: 80px 0;
}

.scelta-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.scelta-image {
    flex: 1;
}

.scelta-image img {
    width: 100%;
    border-radius: var(--border-radius);
    background: #e0e0e0;
    min-height: 350px;
    object-fit: cover;
}

.scelta-text {
    flex: 1.2;
}

.scelta-text h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
}

.scelta-text p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #444;
}

/* ============== VISION & MISSION SECTION ================ */
.vision-mission-section {
    position: relative;
    padding: 100px 0;
    color: var(--text-white);
}

.vm-bg,
.vm-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.vm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Dark overlay */
    z-index: -1;
}

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

.vm-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.vm-row:last-child {
    margin-bottom: 0;
}

.vm-text {
    flex: 1;
}

.vm-text h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.vm-text p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}
@media (max-width: 992px){
    .vm-text{text-align: left !important;}
}

.vm-image {
    flex: 1;
    display: flex;
}

.vm-image.image-right {
    justify-content: flex-end;
}

.vm-image.image-left {
    justify-content: flex-start;
}

.vm-image img {
    max-width: 80%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ============== TEAM SECTION ================ */
.team-section {
    padding: 80px 0 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 350px;
    background: #e0e0e0;
    /* Placeholder background */
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card.placeholder {
    background: #a9a9a9;
    /* Grey placeholder color */
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--text-white);
    padding: 30px 20px 20px;
    text-align: center;
}

.team-info h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.team-info p {
    font-size: 11px;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}


/* ============== SCIENTIFIC COMMITTEE ================ 
.committee-section {
    padding: 40px 0 80px;
}

.committee-section .section-heading p {
    font-size: 15px;
}

.team-grid.committee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1060px;
    margin: 40px auto 0;
    gap: 24px;
}

.committee-grid .team-card {
    flex: 0 1 190px;
    height: 300px;
}

@media (max-width: 1100px) {
    .team-grid.committee-grid {
        max-width: 720px;
        gap: 22px;
    }

    .committee-grid .team-card {
        flex-basis: calc((100% - 44px) / 3);
    }
}

@media (max-width: 768px) {
    .team-grid.committee-grid {
        max-width: 460px;
        gap: 18px;
    }

    .committee-grid .team-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}
*/
/* ============== SCIENTIFIC COMMITTEE ================ */
.committee-section {
    padding: 40px 0 80px;
}

.committee-section .section-heading p {
    font-size: 15px;
}

.team-grid.committee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* 1. Allarghiamo il contenitore per ospitare 6 colonne + 5 spazi (gap) */
    max-width: 1260px; 
    margin: 40px auto 0;
    gap: 24px;
}

.committee-grid .team-card {
    /* 2. Calcoliamo la larghezza esatta per 6 colonne: 
       Sottraiamo lo spazio totale dei 5 gap (24px * 5 = 120px) dal 100% e dividiamo per 6 */
    flex: 0 1 calc((100% - 120px) / 6);
    height: 300px;
    min-width: 150px; /* Evita che le card diventino troppo strette */
}

@media (max-width: 1100px) {
    .team-grid.committee-grid {
        max-width: 720px;
        gap: 22px;
    }

    .committee-grid .team-card {
        flex-basis: calc((100% - 44px) / 3);
    }
}

@media (max-width: 768px) {
    .team-grid.committee-grid {
        max-width: 460px;
        gap: 18px;
    }

    .committee-grid .team-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}



/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

    .scelta-container,
    .vm-row {
        flex-direction: column;
    }

    .vm-image.image-right,
    .vm-image.image-left {
        justify-content: center;
    }

    .text-right {
        text-align: left;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
}
