/* ---------------------------------------------------- */
/* --- 🚀 STYLE TECH MINIMALISTA SCURO (TociTech Inspired) --- */
/* --- V17 - Rimozione Fade + Fix Altezza Card/Hero --- */
/* ---------------------------------------------------- */

/* Reset e Variabili (Inversione per Dark Mode Alto Contesto) */
:root {
    --primary-color: #06B6D4;
    --primary-dark: #0891B2;
    --accent-error: #FBBF24;
    --text-main: #F9FAFB;
    --text-secondary: #9CA3AF;
    --bg-primary-dark: #121212;
    --bg-secondary-dark: #1A1A1A;
    --bg-card: #262626;
    --border-color: #374151;
    --border-thick: 4px;
    --shadow-flat: 0 1px 3px rgba(0, 0, 0, 0.4);
    --radius: 4px;
    --transition: 0.3s ease-out;
    --icon-stroke-width: 2.2;
}

/* --- 💥 ANIMAZIONE SFONDO TIPO NORMO.AI (Wireframe Animato) --- */
@keyframes wireframeScroll {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    opacity: 0.12;
    background-image:
        linear-gradient(to right, rgba(6, 182, 212, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: wireframeScroll 75s linear infinite;
}
/* Fine Animazione Sfondo */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px; /* 🌟 FIX FONT: Ridotto da 16px */
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-primary-dark);
    position: relative;
    /* 🌟 FIX HEADER: padding-top rimosso */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------- */
/* 0. Sezioni Generali e Titoli */
/* ---------------------------------------------------- */

/* Stile per sezioni con sfondo alternato */
.features,
.about-content,
.services-section,
.contact-section,
.process-section,
.benefits-section,
.industry-solutions,
.customer-experience-section,
.agent-types,
.use-cases
{
    padding: 80px 0;
}

/* Applica sfondi alternati */
.services-section,
.about-content,
.contact-section,
.industry-solutions,
.customer-experience-section,
.use-cases
{
    background: var(--bg-primary-dark);
}

.features,
.agent-types,
.process-section,
.benefits-section {
    background: var(--bg-secondary-dark);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}
.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------- */
/* 1. Header e Navigazione */
/* ---------------------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: transparent;
    z-index: 1000;
    transition: background-color var(--transition), box-shadow var(--transition);
    border-bottom: 1px solid transparent;
}

/* 🚀 Stile dell'header DOPO lo scroll (Pulito) */
.header.scrolled {
    background: var(--bg-secondary-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    /* 💥 FIX HEADER STICKY: Aggiunta transizione per il padding */
    transition: padding var(--transition);
}

/* Effetto compatto allo scroll */
.header.scrolled .nav {
    padding: 0.5rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity var(--transition);
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* 1.5 Selettore Lingua */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 2rem;
}

.lang-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
    text-transform: uppercase;
    padding: 2px 4px;
    border-radius: var(--radius);
}

.lang-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-card);
}

.lang-link.active {
    color: var(--primary-color);
    font-weight: 700;
    border: 1px solid var(--primary-color);
}

.lang-separator {
    color: var(--border-color);
    user-select: none;
    display: none;
}

/* ---------------------------------------------------- */
/* 2. Hero Section (Home e Pagine Interne) */
/* ---------------------------------------------------- */

.hero {
    /* Stili di layout originali */
    color: var(--text-main);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;

    /* 🌟 FIX Altezza Uguale */
    margin-top: 70px; /* Spazio per header fisso */
    height: 50vh;       /* Altezza fissa */
    /* padding rimosso */

    /* Stili del nuovo gradiente (10 colori) */
    --c-0: hsla(212, 0%, 0%, 1);
    --y-0: 93%;
    --x-0: 93%;
    --s-start-0: 14.489998991212337%;
    --s-end-0: 72%;
    --s-start-1: 0%;
    --s-end-1: 45%;
    --x-1: 26%;
    --y-1: 9%;
    --c-1: hsla(212, 0%, 0%, 1);
    --x-2: 15%;
    --y-2: 79%;
    --c-2: hsla(257.14285714285717, 91%, 27%, 0.35);
    --s-start-2: 2.9253667596993065%;
    --s-end-2: 22.388851682060018%;
    --s-start-3: 3.985353824694249%;
    --s-end-3: 47.580278608924694%;
    --c-3: hsla(212.47058823529412, 100%, 50%, 0.5);
    --x-3: 40%;
    --y-3: 104%;
    --s-start-4: 2.391200382592061%;
    --s-end-4: 29.307684556768592%;
    --x-4: 0%;
    --y-4: 60%;
    --c-4: hsla(224.44444444444443, 72%, 36%, 1);
    --c-5: hsla(248.30769230769235, 52%, 24%, 1);
    --y-5: 37%;
    --x-5: 92%;
    --s-start-5: 2.9253667596993065%;
    --s-end-5: 22.388851682060018%;
    --c-6: hsla(212.47058823529412, 100%, 50%, 0.19);
    --s-start-6: 13.173642363290591%;
    --s-end-6: 31.747336520355095%;
    --y-6: 16%;
    --x-6: 101%;
    --x-7: 90%;
    --c-7: hsla(227.6470588235294, 98%, 53%, 1);
    --s-start-7: 1%;
    --s-end-7: 31%;
    --y-7: 13%;
    --s-start-8: 3.985353824694249%;
    --s-end-8: 13.103042116379756%;
    --y-8: 56%;
    --x-8: 104%;
    --c-8: hsla(166.53061224489795, 71%, 60%, 0.32);
    --x-9: 97%;
    --s-start-9: 18.597054544690312%;
    --s-end-9: 31%;
    --c-9: hsla(219.2079207920792, 83%, 23%, 0.18);
    --y-9: 19%;

    background-color: hsla(305, 0%, 0%, 1);
    background-image: radial-gradient(circle at var(--x-0) var(--y-0), var(--c-0) var(--s-start-0), transparent var(--s-end-0)),
                      radial-gradient(circle at var(--x-1) var(--y-1), var(--c-1) var(--s-start-1), transparent var(--s-end-1)),
                      radial-gradient(circle at var(--x-2) var(--y-2), var(--c-2) var(--s-start-2), transparent var(--s-end-2)),
                      radial-gradient(circle at var(--x-3) var(--y-3), var(--c-3) var(--s-start-3), transparent var(--s-end-3)),
                      radial-gradient(circle at var(--x-4) var(--y-4), var(--c-4) var(--s-start-4), transparent var(--s-end-4)),
                      radial-gradient(circle at var(--x-5) var(--y-5), var(--c-5) var(--s-start-5), transparent var(--s-end-5)),
                      radial-gradient(circle at var(--x-6) var(--y-6), var(--c-6) var(--s-start-6), transparent var(--s-end-6)),
                      radial-gradient(circle at var(--x-7) var(--y-7), var(--c-7) var(--s-start-7), transparent var(--s-end-7)),
                      radial-gradient(circle at var(--x-8) var(--y-8), var(--c-8) var(--s-start-8), transparent var(--s-end-8)),
                      radial-gradient(circle at var(--x-9) var(--y-9), var(--c-9) var(--s-start-9), transparent var(--s-end-9));
    animation: hero-gradient-animation 10s linear infinite alternate;
    background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal, normal, normal;
}


.hero .container {
    position: relative;
    z-index: 2; /* Assicura che il contenuto stia sopra lo sfondo */
}

.hero-content {
    max-width: 800px;
    margin: 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
}


.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 650px;
}

.hero-buttons {
    justify-content: flex-start;
    display: flex;
    gap: 1rem;
}

/* Stile per la Hero delle pagine interne (ora animata) */
.page-hero {
    /* Stili di layout originali */
    color: var(--text-main);
    text-align: center;
    position: relative;
    overflow: hidden;

    /* 🌟 MODIFICHE PER ALTEZZA UGUALE 🌟 */
    margin-top: 70px;   /* Spazio per header fisso */
    height: 50vh;       /* Come .hero */
    display: flex;            /* Come .hero */
    align-items: center;      /* Come .hero */
    justify-content: center;  /* Aggiunta per centrare il testo */
    /* padding rimosso */

    /* Stili del nuovo gradiente (10 colori) - COPIATI DA .hero */
    --c-0: hsla(212, 0%, 0%, 1);
    --y-0: 93%;
    --x-0: 93%;
    --s-start-0: 14.489998991212337%;
    --s-end-0: 72%;
    --s-start-1: 0%;
    --s-end-1: 45%;
    --x-1: 26%;
    --y-1: 9%;
    --c-1: hsla(212, 0%, 0%, 1);
    --x-2: 15%;
    --y-2: 79%;
    --c-2: hsla(257.14285714285717, 91%, 27%, 0.35);
    --s-start-2: 2.9253667596993065%;
    --s-end-2: 22.388851682060018%;
    --s-start-3: 3.985353824694249%;
    --s-end-3: 47.580278608924694%;
    --c-3: hsla(212.47058823529412, 100%, 50%, 0.5);
    --x-3: 40%;
    --y-3: 104%;
    --s-start-4: 2.391200382592061%;
    --s-end-4: 29.307684556768592%;
    --x-4: 0%;
    --y-4: 60%;
    --c-4: hsla(224.44444444444443, 72%, 36%, 1);
    --c-5: hsla(248.30769230769235, 52%, 24%, 1);
    --y-5: 37%;
    --x-5: 92%;
    --s-start-5: 2.9253667596993065%;
    --s-end-5: 22.388851682060018%;
    --c-6: hsla(212.47058823529412, 100%, 50%, 0.19);
    --s-start-6: 13.173642363290591%;
    --s-end-6: 31.747336520355095%;
    --y-6: 16%;
    --x-6: 101%;
    --x-7: 90%;
    --c-7: hsla(227.6470588235294, 98%, 53%, 1);
    --s-start-7: 1%;
    --s-end-7: 31%;
    --y-7: 13%;
    --s-start-8: 3.985353824694249%;
    --s-end-8: 13.103042116379756%;
    --y-8: 56%;
    --x-8: 104%;
    --c-8: hsla(166.53061224489795, 71%, 60%, 0.32);
    --x-9: 97%;
    --s-start-9: 18.597054544690312%;
    --s-end-9: 31%;
    --c-9: hsla(219.2079207920792, 83%, 23%, 0.18);
    --y-9: 19%;

    background-color: hsla(305, 0%, 0%, 1);
    background-image: radial-gradient(circle at var(--x-0) var(--y-0), var(--c-0) var(--s-start-0), transparent var(--s-end-0)),
                      radial-gradient(circle at var(--x-1) var(--y-1), var(--c-1) var(--s-start-1), transparent var(--s-end-1)),
                      radial-gradient(circle at var(--x-2) var(--y-2), var(--c-2) var(--s-start-2), transparent var(--s-end-2)),
                      radial-gradient(circle at var(--x-3) var(--y-3), var(--c-3) var(--s-start-3), transparent var(--s-end-3)),
                      radial-gradient(circle at var(--x-4) var(--y-4), var(--c-4) var(--s-start-4), transparent var(--s-end-4)),
                      radial-gradient(circle at var(--x-5) var(--y-5), var(--c-5) var(--s-start-5), transparent var(--s-end-5)),
                      radial-gradient(circle at var(--x-6) var(--y-6), var(--c-6) var(--s-start-6), transparent var(--s-end-6)),
                      radial-gradient(circle at var(--x-7) var(--y-7), var(--c-7) var(--s-start-7), transparent var(--s-end-7)),
                      radial-gradient(circle at var(--x-8) var(--y-8), var(--c-8) var(--s-start-8), transparent var(--s-end-8)),
                      radial-gradient(circle at var(--x-9) var(--y-9), var(--c-9) var(--s-start-9), transparent var(--s-end-9));
    animation: hero-gradient-animation 10s linear infinite alternate;
    background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal, normal, normal;
}

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

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.page-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* ---------------------------------------------------- */
/* 3. Pulsanti */
/* ---------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-primary-dark);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-main);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary-dark);
    border-color: var(--primary-color);
}

/* CTA Section */
.cta {
    background: var(--bg-primary-dark);
    color: var(--text-main);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}


/* ---------------------------------------------------- */
/* 4. Feature Card e Layout Base */
/* ---------------------------------------------------- */

/* FIX Altezza Card */
.feature-card,
.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-flat);
    text-align: left;
    border: 1px solid var(--border-color);
    border-left: var(--border-thick) solid var(--primary-color);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);

    /* 1. La card è un contenitore flex in colonna */
    display: flex;
    flex-direction: column;
    width: 100%;

    /* 2. La card deve riempire lo .swiper-slide */
    height: 100%;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.feature-icon,
.service-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.7));
}

/* Stile per icone Lucide (SVG) - UNIFICATO */
.feature-icon i,
.feature-icon svg,
.service-icon i,
.service-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: var(--icon-stroke-width);
}

/* Stile per .features-grid (usato solo da 'use-cases') */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* --- Impact Stats Badge (Usato in Customer Experience) --- */
.impact-stats {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-badge {
    background: var(--primary-color);
    color: var(--bg-primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-flat);
}

/* ---------------------------------------------------- */
/* 5. Stili Pagina Interna (Chi Siamo / About) */
/* ---------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.values-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
.values-list li {
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
}
.values-list strong {
    color: var(--text-main);
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: var(--bg-secondary-dark);
    padding: 1.5rem;
    border-radius: var(--radius);
}
.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
}
.stat-icon {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.stat-icon i, .stat-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: var(--icon-stroke-width);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ---------------------------------------------------- */
/* 6. Stili Pagina Servizi (Agent AI) */
/* ---------------------------------------------------- */

/* La griglia .services-grid ora è usata solo dal carosello */
.services-grid {
    gap: 2rem;
}

/* FIX Altezza Card: Allinea la lista <ul> in fondo */
.service-features {
    list-style: none;
    padding: 0;
    margin-top: auto;   /* <-- SPINGE LA LISTA IN FONDO */
    padding-top: 1rem;  /* Aggiunge spazio tra <p> e <ul> */
}
.service-features li {
    font-size: 0.9rem;  /* Testo più piccolo */
    line-height: 1.4;   /* Interlinea più stretta */
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.3rem; /* Spazio ridotto */
}
.service-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 1.1em;
}
.industry-section {
    margin-bottom: 4rem;
}
.industry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.industry-title-h {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.industry-title-h i, .industry-title-h svg {
    width: 36px;
    height: 36px;
    stroke-width: var(--icon-stroke-width);
}
.industry-subtitle-p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}
.industry-list {
    list-style: none;
    padding: 0;
}
.industry-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-secondary);
}
.industry-list li:last-child {
    border-bottom: none;
}
.industry-list strong {
    color: var(--text-main);
}
.industry-stats-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-flat);
    border: 1px solid var(--border-color);
}
.industry-stats-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.stat-item {
    text-align: center;
    background: var(--bg-secondary-dark);
    padding: 1rem 0.5rem;
    border-radius: var(--radius);
}
.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.process-step {
    text-align: center;
}
.step-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    display: inline-block;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}
.step-icon i, .step-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: var(--icon-stroke-width);
}
.process-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.process-step p {
    color: var(--text-secondary);
}

/* ---------------------------------------------------- */
/* 6.5. STILI PER LA SEZIONE "PROCESSO" (NEW) */
/* ---------------------------------------------------- */

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--primary-color);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.process-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--border-color); /* Colore "fantasma" */
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    z-index: 0;
}

.process-step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.process-step-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------- */
/* 7. Stili Pagina Contatti */
/* ---------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}
.contact-info {
    padding: 1.5rem;
    background: var(--bg-secondary-dark);
    border-radius: var(--radius);
}
.contact-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
}
.contact-item:last-of-type {
    border-bottom: none;
}
.contact-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}
.contact-icon i, .contact-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: var(--icon-stroke-width);
}
.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}
.contact-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.map-section {
    padding: 60px 0 80px;
    background: var(--bg-secondary-dark);
    border-top: 1px solid var(--border-color);
}
.map-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.map-placeholder {
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.map-fallback {
    text-align: center;
    padding: 2rem;
}
.map-fallback h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.map-fallback p {
    color: var(--text-secondary);
}
.social-links {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.social-links h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.social-icons {
    display: flex;
    gap: 1.5rem;
}
.social-link {
    color: var(--text-secondary);
    transition: color var(--transition);
    text-decoration: none;
}
.social-link i, .social-link svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}
.social-link:hover {
    color: var(--primary-color);
}
.contact-form-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group.full-width {
    grid-column: span 2;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-secondary-dark);
    color: var(--text-main);
    transition: border-color var(--transition);
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.4);
}

/* ---------------------------------------------------- */
/* 8. Footer */
/* ---------------------------------------------------- */

.footer {
    background: var(--bg-primary-dark);
    color: var(--text-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
}
.footer-section p,
.footer-section ul {
    font-size: 0.9rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section li {
    margin-bottom: 0.5rem;
}
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-section a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* ---------------------------------------------------- */
/* 9. RESPONSIVE DESIGN */
/* ---------------------------------------------------- */

@media (max-width: 900px) {
    /* Tablet */
    html {
        font-size: 14px; /* 🌟 FIX FONT: Ridotto da 15px */
    }
    .swiper-slide {
        /* 🌟 FIX: Mostra 2 card su tablet */
        width: calc((100% / 2) - 30px);
        max-width: 350px;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .section-title {
        font-size: 2.25rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
        padding: 0;
        background: none;
        gap: 1rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    .industry-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .industry-section:nth-child(even) .industry-grid {
        display: flex;
        flex-direction: column-reverse;
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-info {
        padding: 1rem;
    }
    .social-links {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    html {
        font-size: 13px; /* 🌟 FIX FONT: Ridotto da 14px */
    }
    .container {
        padding: 0 16px;
    }

    /* --- Stili Menu Mobile (Hamburger) --- */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-main);
        font-size: 2rem;
        cursor: pointer;
        z-index: 1100;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary-dark);
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s ease-out;
        z-index: 1050;
    }
    .nav-menu.is-open {
        display: flex;
        transform: translateX(0);
    }
    .nav-link {
        font-size: 1.5rem;
    }

    /* 🌟 FIX LINGUA MOBILE: Nascondi switcher da header */
    .nav > .lang-switcher {
        display: none;
    }

    /* 🌟 FIX LINGUA MOBILE: Stile per switcher DENTRO al menu */
    .nav-menu .lang-switcher {
        display: flex;
        flex-direction: row; /* Mettili in riga */
        justify-content: center;
        gap: 1.5rem; /* Spazio tra i link */
        margin-top: 2rem; /* Spazio dai link "Home", "Chi Siamo", ecc. */
        margin-left: 0; /* Resetta il margine desktop */
    }

    .nav-menu .lang-separator {
        display: none;
    }
    /* --- Fine Stili Menu Mobile --- */


    .hero {
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    /* Layouts a singola colonna per tutte le griglie */
    .about-grid,
    .contact-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        max-width: 350px;
    }

    .hero-buttons .btn {
        max-width: none;
    }

    .feature-card,
    .service-card {
        padding: 1.5rem;
    }
}
@media (max-width: 550px) {
    /* Small Mobile */
    .services-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
    .swiper-slide {
        width: calc((100% / 1.05) - 30px); /* Una card quasi piena */
        max-width: 95vw;
    }
    .stats-grid {
        grid-template-columns: 1fr; /* Le stat vanno in colonna singola */
    }
}

/* ---------------------------------------------------- */
/* 10. EFFETTO "FADE" CAROSELLI (RIMOSSO) */
/* ---------------------------------------------------- */
/* (Sezione rimossa per togliere le ombre/sfumature) */

/* ---------------------------------------------------- */
/* 11. SWIPER FIX (Marquee Effect) */
/* ---------------------------------------------------- */

.features-swiper,
.agent-swiper,
.services-swiper
{
    width: 100%;
    overflow: hidden; /* Aggiunto per contenere le card */
}

.features-swiper .swiper-wrapper,
.agent-swiper .swiper-wrapper,
.services-swiper .swiper-wrapper
{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch; /* <-- CHIAVE N.1: Allunga le slide */
}

/* * Stile di default per DESKTOP (> 900px)
*/
.swiper-slide {
    max-width: 380px;
    width: 380px; /* Larghezza fissa per 3 card su 1200px */
    flex-shrink: 0;
    /* 🌟 FIX: Rimosso 'display: flex' da qui */
}

/* La card riempie la slide. */
.swiper-slide .feature-card,
.swiper-slide .service-card {
    width: 100%;
    /* L'altezza 100% è ora nella regola .feature-card/.service-card (Sezione 4) */
}

/* ---------------------------------------------------- */
/* 12. ANIMAZIONE GRADIENTE HERO (COMINCIA QUI) */
/* ---------------------------------------------------- */

@keyframes hero-gradient-animation {
    0% {
        --c-0: hsla(212, 0%, 0%, 1);
        --y-0: 93%;
        --x-0: 93%;
        --s-start-0: 14.489998991212337%;
        --s-end-0: 72%;
        --s-start-1: 0%;
        --s-end-1: 45%;
        --x-1: 26%;
        --y-1: 9%;
        --c-1: hsla(212, 0%, 0%, 1);
        --x-2: 15%;
        --y-2: 79%;
        --c-2: hsla(257.14285714285717, 91%, 27%, 0.35);
        --s-start-2: 2.9253667596993065%;
        --s-end-2: 22.388851682060018%;
        --s-start-3: 3.985353824694249%;
        --s-end-3: 47.580278608924694%;
        --c-3: hsla(212.47058823529412, 100%, 50%, 0.5);
        --x-3: 40%;
        --y-3: 104%;
        --s-start-4: 2.391200382592061%;
        --s-end-4: 29.307684556768592%;
        --x-4: 0%;
        --y-4: 60%;
        --c-4: hsla(224.44444444444443, 72%, 36%, 1);
        --c-5: hsla(248.30769230769235, 52%, 24%, 1);
        --y-5: 37%;
        --x-5: 92%;
        --s-start-5: 2.9253667596993065%;
        --s-end-5: 22.388851682060018%;
        --c-6: hsla(212.47058823529412, 100%, 50%, 0.19);
        --s-start-6: 13.173642363290591%;
        --s-end-6: 31.747336520355095%;
        --y-6: 16%;
        --x-6: 101%;
        --x-7: 90%;
        --c-7: hsla(227.6470588235294, 98%, 53%, 1);
        --s-start-7: 1%;
        --s-end-7: 31%;
        --y-7: 13%;
        --s-start-8: 3.985353824694249%;
        --s-end-8: 13.103042116379756%;
        --y-8: 56%;
        --x-8: 104%;
        --c-8: hsla(166.53061224489795, 71%, 60%, 0.32);
        --x-9: 97%;
        --s-start-9: 18.597054544690312%;
        --s-end-9: 31%;
        --c-9: hsla(219.2079207920792, 83%, 23%, 0.18);
        --y-9: 19%;
    }

    100% {
        --c-0: hsla(306, 0%, 0%, 1);
        --y-0: 9%;
        --x-0: 7%;
        --s-start-0: 2.391200382592061%;
        --s-end-0: 43.902064173373226%;
        --s-start-1: 9%;
        --s-end-1: 54.805582404585024%;
        --x-1: 96%;
        --y-1: 93%;
        --c-1: hsla(306, 0%, 0%, 1);
        --x-2: -2%;
        --y-2: 103%;
        --c-2: hsla(166.53061224489795, 72%, 60%, 1);
        --s-start-2: 3%;
        --s-end-2: 26.722813338714598%;
        --s-start-3: 2.391200382592061%;
        --s-end-3: 32.0689540200964%;
        --c-3: hsla(180, 100%, 50%, 0.26);
        --x-3: 33%;
        --y-3: 82%;
        --s-start-4: 4.40642490323111%;
        --s-end-4: 37.23528104246256%;
        --x-4: 37%;
        --y-4: 81%;
        --c-4: hsla(212.43243243243245, 88%, 26%, 0.58);
        --c-5: hsla(271.9148936170212, 98%, 53%, 0.31);
        --y-5: 99%;
        --x-5: 54%;
        --s-start-5: 3%;
        --s-end-5: 32.537089799783296%;
        --c-6: hsla(262.82352941176475, 100%, 50%, 0.15);
        --s-start-6: 6%;
        --s-end-6: 42.501105312974815%;
        --y-6: 43%;
        --x-6: 104%;
        --x-7: 104%;
        --c-7: hsla(298.60465116279073, 36%, 23%, 1);
        --s-start-7: 5%;
        --s-end-7: 13.10107024898374%;
        --y-7: -16%;
        --s-start-8: 2.391200382592061%;
        --s-end-8: 27.141813016850573%;
        --y-8: 30%;
        --x-8: 97%;
        --c-8: hsla(180, 100%, 50%, 0.11);
        --x-9: 78%;
        --s-start-9: 5%;
        --s-end-9: 21.321645366110654%;
        --c-9: hsla(219.2079207920792, 83%, 23%, 0.59);
        --y-9: 4%;
    }
}

@property --c-0 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(212, 0%, 0%, 1)
}

@property --y-0 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 93%
}

@property --x-0 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 93%
}

@property --s-start-0 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 14.489998991212337%
}

@property --s-end-0 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 72%
}

@property --s-start-1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%
}

@property --s-end-1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 45%
}

@property --x-1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 26%
}

@property --y-1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 9%
}

@property --c-1 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(212, 0%, 0%, 1)
}

@property --x-2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 15%
}

@property --y-2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 79%
}

@property --c-2 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(257.14285714285717, 91%, 27%, 0.35)
}

@property --s-start-2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 2.9253667596993065%
}

@property --s-end-2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 22.388851682060018%
}

@property --s-start-3 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 3.985353824694249%
}

@property --s-end-3 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 47.580278608924694%
}

@property --c-3 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(212.47058823529412, 100%, 50%, 0.5)
}

@property --x-3 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 40%
}

@property --y-3 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 104%
}

@property --s-start-4 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 2.391200382592061%
}

@property --s-end-4 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 29.307684556768592%
}

@property --x-4 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%
}

@property --y-4 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 60%
}

@property --c-4 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(224.44444444444443, 72%, 36%, 1)
}

@property --c-5 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(248.30769230769235, 52%, 24%, 1)
}

@property --y-5 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 37%
}

@property --x-5 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 92%
}

@property --s-start-5 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 2.9253667596993065%
}

@property --s-end-5 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 22.388851682060018%
}

@property --c-6 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(212.47058823529412, 100%, 50%, 0.19)
}

@property --s-start-6 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 13.173642363290591%
}

@property --s-end-6 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 31.747336520355095%
}

@property --y-6 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 16%
}

@property --x-6 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 101%
}

@property --x-7 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 90%
}

@property --c-7 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(227.6470588235294, 98%, 53%, 1)
}

@property --s-start-7 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 1%
}

@property --s-end-7 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 31%
}

@property --y-7 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 13%
}

@property --s-start-8 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 3.985353824694249%
}

@property --s-end-8 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 13.103042116379756%
}

@property --y-8 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 56%
}

@property --x-8 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 104%
}

@property --c-8 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(166.53061224489795, 71%, 60%, 0.32)
}

@property --x-9 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 97%
}

@property --s-start-9 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 18.597054544690312%
}

@property --s-end-9 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 31%
}

@property --c-9 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(219.2079207920792, 83%, 23%, 0.18)
}

@property --y-9 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 19%
}