/* Reset base */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --accent: #34546A; /* site blue */
    --muted: #65707a;
}
@media (prefers-color-scheme: dark){
  :root{ color-scheme: light; }
  body{ background-color:#f5f5f5; color:#333; }
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Titolo e sottotitolo */
main h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #34546A;
    margin-bottom: 10px;
}

main .sottotitolo {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

/* Sezione testo con immagine */
.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.team-section .testo {
    flex: 1 1 400px;
    text-align: left;
    max-width: 600px;
}

.team-section .immagine img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sezione valori */
.valori {
    margin-bottom: 60px;
}

.valori ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.valori li {
    font-size: 1.1rem;
    padding: 10px 0;
}

/* Team leads section with SVG icons */
.team-leads {
    margin: 60px 0;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(52,84,106,0.04) 0%, rgba(52,84,106,0.02) 100%);
    border-top: 2px solid rgba(52,84,106,0.12);
    border-bottom: 2px solid rgba(52,84,106,0.12);
    border-radius: 16px;
    position: relative;
}

.team-leads::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.people-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.person {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.person:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(52,84,106,0.15);
}

.person-icon {
    color: var(--accent);
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(52,84,106,0.08), rgba(52,84,106,0.12));
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.person:hover .person-icon {
    background: linear-gradient(135deg, rgba(52,84,106,0.15), rgba(52,84,106,0.2));
    transform: scale(1.05);
}

.person-icon svg {
    width: 60px;
    height: 60px;
}

.person h3 {
    margin: 12px 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}

.person .role {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.person .desc {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: #999;
    font-style: italic;
}

/* Contatto CTA */
.contatto-chi-siamo {
    background-color: #34546A;
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.contatto-chi-siamo .btn-contattaci {
    display: inline-block;
    margin-top: 20px;
    background-color: #6C3835;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contatto-chi-siamo .btn-contattaci:hover {
    background-color: #5a2e2d;
}

/* Responsive */
@media (max-width: 1024px) {
    .people-list {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .team-section {
        flex-direction: column;
        text-align: center;
    }

    .team-section .testo {
        text-align: center;
    }
    
    .people-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .team-leads {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .team-leads {
        padding: 30px 15px;
        margin: 40px 0;
    }
    
    .person-icon {
        width: 80px;
        height: 80px;
    }
    
    .person-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .person h3 {
        font-size: 1.15rem;
    }
}
