/* --- GOOGLE FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- VARIABILI GLOBALI (Palette elegante con sfondi chiari) --- */
:root {
    --primary-color: #3b2057; /* Viola scuro, quasi antracite con sfumature viola */
    --secondary-color: #6a5acd; /* Un blu-viola più morbido */
    --accent-color: #a08cff; /* Un lilla chiaro e raffinato come accento */
    --bg-color: #fcfafa; /* Sfondo quasi bianco, molto pulito */
    --text-color: #444; /* Testo leggermente più scuro per contrasto */
    --text-light: #ffffff; /* Bianco puro */
    --card-bg: #ffffff;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Ombra più leggera */
    --border-radius: 10px; /* Angoli leggermente più morbidi */
    --font-family: 'Poppins', sans-serif;
}

/* --- STILI GENERALI --- */
body.chi-siamo-page {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.chi-siamo-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.chi-siamo-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.chi-siamo-section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- HERO SECTION (INVARIATA) --- */
.chi-siamo-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 80px 20px;
    color: var(--text-light);
    background: linear-gradient(135deg, rgba(44, 5, 134, 0.9), rgba(104, 84, 238, 0.8)), url('https://www.transparenttextures.com/patterns/cubes.png');
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    position: relative;
    overflow: hidden;
}

.chi-siamo-hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
}

.chi-siamo-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    margin-top: 15px;
    color: var(--text-light);
}

.chi-siamo-scroll-promo {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.chi-siamo-scroll-promo span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.chi-siamo-scroll-promo span:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- SERVICES SECTION (Sfondo chiaro) --- */
.chi-siamo-services {
    padding: 100px 0;
    background-color: var(--bg-color); /* MODIFICATO: Sfondo chiaro per questa sezione */
}

.chi-siamo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.chi-siamo-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.chi-siamo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.chi-siamo-card .card-icon {
    font-size: 3.2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.chi-siamo-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.chi-siamo-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
}

.chi-siamo-cta {
    display: inline-block;
    margin-top: 25px;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.chi-siamo-cta::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.chi-siamo-cta:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.chi-siamo-cta:hover {
    color: var(--primary-color);
}

/* --- ASSISTANT SECTION (Sfondo chiaro) --- */
.chi-siamo-assistant {
    padding: 80px 0;
    background: linear-gradient(to right, #f8f6f9, #f0eef2); /* Sfondo chiaro soft */
}

.chi-siamo-ai-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 950px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

.ai-profile {
    position: relative;
    flex-shrink: 0;
}

.ai-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid var(--card-bg);
    box-shadow: 0 0 0 5px var(--accent-color);
}

.ai-status {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background-color: #28a745;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
}

.ai-content {
    flex-grow: 1;
}

.ai-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-content h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin: 10px 0 15px;
}

.ai-description {
    margin-bottom: 30px;
    opacity: 0.85;
    font-size: 1.05rem;
}

.ai-features {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-feature i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.ai-feature p {
    margin: 0;
    line-height: 1.4;
    color: var(--text-color);
}

.ai-feature small {
    font-size: 0.88rem;
    opacity: 0.75;
}

.chi-siamo-ai-cta {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    color: var(--text-light);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(106, 90, 205, 0.3);
}

.chi-siamo-ai-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(106, 90, 205, 0.4);
}

.chi-siamo-ai-cta i {
    margin-right: 10px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .chi-siamo-hero-content h1 {
        font-size: 3.2rem;
    }
    .chi-siamo-subtitle {
        font-size: 1.2rem;
    }
    .chi-siamo-ai-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
        gap: 30px;
    }
    .ai-avatar {
        width: 130px;
        height: 130px;
    }
    .ai-status {
        width: 18px;
        height: 18px;
        bottom: 8px;
        right: 8px;
    }
    .ai-content h2 {
        font-size: 2.2rem;
    }
    .ai-features {
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .chi-siamo-section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .chi-siamo-hero {
        min-height: 45vh;
        padding: 60px 15px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    .chi-siamo-hero-content h1 {
        font-size: 2.8rem;
    }
    .chi-siamo-subtitle {
        font-size: 1rem;
        margin-top: 10px;
    }
    .chi-siamo-scroll-promo {
        margin-top: 30px;
        gap: 10px;
    }
    .chi-siamo-scroll-promo span {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    .chi-siamo-services {
        padding: 80px 0;
    }
    .chi-siamo-grid {
        grid-template-columns: 1fr;
    }
    .chi-siamo-card {
        padding: 35px;
    }
    .chi-siamo-assistant {
        padding: 60px 0;
    }
    .chi-siamo-ai-card {
        padding: 30px;
    }
    .ai-content h2 {
        font-size: 2rem;
    }
    .ai-features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .chi-siamo-ai-cta {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .chi-siamo-section-title {
        font-size: 1.8rem;
    }
    .chi-siamo-hero-content h1 {
        font-size: 2.2rem;
    }
    .ai-avatar {
        width: 100px;
        height: 100px;
    }
    .ai-content h2 {
        font-size: 1.8rem;
    }
}