:root {
    --purple: #f6eaf9;
    --violet: #8c52ff;
    --white: #ffffff;
    --muted: #5d5c5c;
    --accent: #8c52ff;
    /*--accent: #FFD773;*/
    --text_white: #ffffff;
    --text_black: #000000;
    --radius: 14px;
    font-family: "Funnel Display", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text_black);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h3 {
    color: var(--violet);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.imgLogo {
    width: 160px;
    height: auto;
}

.nav a {
    margin-left: 18px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--purple);
}

.hero {
    padding: 60px 0;
    background: var(--purple);
    color: var(--text_black);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--violet);
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--text_white);
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.section {
    padding: 60px 0;
}

.pale {
    background: var(--purple);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.center {
    text-align: center;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.services-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service h4 {
    color: var(--violet);
    margin-bottom: 10px;
}

.service.card {
    background: var(--purple);
    color: var(--text_black);
    padding: 30px;
    border-radius: var(--radius);
}

.service.card h4 {
    color: var(--accent);
    text-transform: uppercase;
}

.team {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.card.person {
    background: var(--purple);
    color: var(--text_black);
    padding: 25px;
    border-radius: var(--radius);
    flex: 1;
}

.person img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.person .muted {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.img-riccardo {
    object-position: 50% 40%; 
}
.contact-card-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.card.info {
    max-width: 850px;
    width: 100%;
    text-align: center;
    background: var(--purple);
    color: var(--text_black);
    padding: 40px;
    border-radius: var(--radius);
}

.card.info h4 {
    color: var(--accent);
    text-transform: uppercase;
    margin: 25px 0 5px;
}

.info .map {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.info iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.social-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.social-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.social-card .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.social-icons a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

.card.person p {
    text-align: justify;
    font-size: 0.95rem;
    hyphens: auto; /* Aiuta a spezzare le parole lunghe su mobile */
}

@media (max-width: 900px) {
    .hero-inner, .services-grid, .team, .social-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .nav {
        display: none;
    }

    .hero-text h2 {
        font-size: 2rem;
    }
}

/* Specifichiamo le regole per la griglia della missione */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* Più spazio tra le card per dare respiro */
}

.mission-item {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 0 var(--radius) var(--radius) 0; /* Arrotonda solo i bordi destri */
    border-left: 6px solid var(--violet); /* Il bordo statico viola */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* Ombra leggerissima per profondità */
}

.mission-item h4 {
    color: var(--violet);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.mission-item p {
    margin: 0;
    color: var(--text_black);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive: una colonna su dispositivi mobili */
@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* ... altre regole esistenti ... */

    .card.person p {
        text-align: left; /* Cambia da justify a left per una lettura più naturale */
        hyphens: auto;
    }
}

.person .muted {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left; /* Forza l'allineamento a sinistra */
    hyphens: none;    /* Evita che "muscoloscheletrica" venga divisa da trattini */
}