/* Stile per la sezione Team */
.team {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
}

.team-member {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #00BFFF;
}

.team-member h3 {
    color: #00BFFF;
    margin: 10px 0;
    font-size: 1.2em;
}

.team-member p {
    margin: 5px 0;
    color: #555;
}

.qualification {
    font-weight: bold;
    color: #FFD700;
}

/* Stile per il membro principale */
.team-member.main-member {
    background: #00BFFF;
    color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.team-member.main-member h3,
.team-member.main-member p {
    color: black;
}

.team-member.main-member .qualification {
    color: #FFD700;
}

/* Stile per i collaboratori esterni */
.team-member.external {
    background: #f0f8ff;
    border: 2px solid #00BFFF;
}

.external-badge {
    background-color: #FFD700;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Titoli sezioni */
.storia-section h2,
.team-section-title {
    color: #00BFFF;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.storia-section h2::after,
.team-section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: #FFD700;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .team {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member {
        max-width: 100%;
    }
}
.storia-section p {
    line-height: 1.8;
    text-align: center; /* Testo centrato come in Word */
}
.more-info {
    display: none;
    padding: 15px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    text-align: left;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.external-badge {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.external-badge:hover {
    background-color: #00BFFF;
    color: white;
    transform: scale(1.05);
}
.team-member.main-member .external-badge:hover {
    background-color: black;
    color: white;
    transform: scale(1.05);
}

/* Stile per gli hover degli altri badge */
.team-member:not(.main-member) .external-badge:hover {
    background-color: #0077b6; /* Colore azzurro per gli altri */
    color: white;
    transform: scale(1.05);
}

.external-badge::after {
    content: '+';
    margin-left: 5px;
    font-weight: bold;
}

.team-member.active .external-badge::after {
    content: '-';
}

.team-member.active .more-info {
    display: block;
}

.more-info p {
    margin: 8px 0;
    font-size: 0.9em;
    line-height: 1.6;
    color: #333;
}

.more-info p strong {
    color: #00BFFF;
}

footer .footer-section a {
    color: #fff;           /* testo bianco */
    text-decoration: none; /* niente sottolineatura */
}
footer .footer-section a:hover {
    color: #ddd;           /* leggero grigio al passaggio del mouse */
}