        /* --- ZONA 1: IMPOSTAZIONI GENERALI E COLORI --- */
        :root {
            --blu-scuro: #2e3192;
            --azzurro: #00aeef;
            --celeste: #8ed8f8;
            --grigio-sfondo: #f4f5f7;
            --testo-principale: #2c2c2c;
            --testo-secondario: #666666;
        }

        body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            background-color: var(--grigio-sfondo);
            color: var(--testo-principale);
            overflow-x: hidden;
        }

        /* --- ZONA 2: LE 3 STRISCE DEL BRAND --- */
        .brand-stripes {
            display: flex;
            gap: 6px;
            height: 6px;
            width: 90px;
        }
        .brand-stripes .stripe {
            flex: 1;
            border-radius: 10px;
        }
        .stripe.dark { background-color: var(--blu-scuro); }
        .stripe.mid { background-color: var(--azzurro); }
        .stripe.light { background-color: var(--celeste); }

        /* --- ZONA 3: HEADER FISSO ALLO SCROLL --- */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            background-color: rgba(244, 245, 247, 0.95);
            backdrop-filter: blur(8px);
            position: fixed;
            top: 0;
            left: 0;
            width: 90%;
            z-index: 1000;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
        }
        .logo-area {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .logo-img {
            max-height: 45px; 
            width: auto;
            display: block;
        }
        nav {
            display: flex;
            gap: 30px;
        }
        nav a {
            text-decoration: none;
            color: var(--testo-principale);
            font-weight: 500;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
        }
        nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--azzurro);
            transition: width 0.3s ease;
        }
        nav a:hover::after, nav a.active::after {
            width: 100%; 
        }

        /* --- ZONA 8: TITOLO DELLA PAGINA --- */
        .page-header {
            padding: 140px 10% 40px 10%;
            text-align: center;
        }
        .page-header h1 {
            font-size: 48px;
            color: var(--blu-scuro);
            margin: 0 0 20px 0;
            font-weight: 300;
        }
        .page-header h1 strong {
            font-weight: 700;
        }
        .page-header .brand-stripes {
            margin: 0 auto;
            width: 120px;
        }

        /* --- ZONA 10: SEZIONE CLIENTI E LOGHI --- */
        .clients-section {
            padding: 40px 10% 100px 10%;
            background-color: var(--grigio-sfondo);
        }
        .logos-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
        }
       /* 1. Il box del logo passa in primissimo piano quando ci si passa sopra col mouse */
        .logo-box {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            display: flex;
            justify-content: center;
            align-items: center;
            width: 200px;
            height: 120px;
            position: relative;
            z-index: 1; /* Livello base per tutti i loghi */
            transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
        }

        .logo-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            z-index: 100; /* Porta questa scheda sopra TUTTI gli altri loghi (sia a destra che a sinistra) */
        }

        /* 2. Etichetta su un'unica riga (senza andare a capo) */
        .client-name {
            position: absolute;
            bottom: -15px;
            background-color: var(--blu-scuro);
            color: white;
            font-size: 11px;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0;
            transform: translateY(5px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
            
            white-space: nowrap; /* Impedisce al testo di andare a capo */
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        }

        .logo-box:hover .client-name {
            opacity: 1;
            transform: translateY(0);
        }
                .logo-box img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain; 
            filter: grayscale(100%) sepia(100%) hue-rotate(190deg) saturate(300%) brightness(0.9);
            opacity: 0.8;
            transition: filter 0.4s ease, opacity 0.4s ease;
        }
        .logo-box:hover img {
            filter: none; 
            opacity: 1;
        }

        /* Dicitura nome cliente al passaggio del mouse */
        .client-name {
            position: absolute;
            bottom: -12px;
            background-color: var(--blu-scuro);
            color: white;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0;
            transform: translateY(5px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
            white-space: nowrap;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            z-index: 5;
        }

        .logo-box:hover .client-name {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- ZONA 16: FOOTER ULTRA-COMPATTO --- */
        footer {
            background-color: white;
            border-top: 4px solid var(--azzurro);
            padding: 15px 5%;
        }
        .footer-minimal {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .footer-text {
            color: var(--testo-secondario);
            font-size: 13px;
            line-height: 1.6;
        }
        .footer-text a {
            color: var(--testo-secondario);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .footer-text a:hover {
            color: var(--blu-scuro);
        }

        @media (max-width: 768px) {
            header {
                position: relative;
                width: 90%;
            }
            .page-header {
                padding-top: 40px;
            }
        }
        /* =========================================================
           ADATTAMENTO COMPLETO PER SMARTPHONE E TABLET
           ========================================================= */

        @media (max-width: 900px) {
            
            /* --- 1. HEADER E NAVIGAZIONE --- */
            header {
                position: relative !important;
                width: 100% !important;
                box-sizing: border-box;
                flex-direction: column;
                gap: 15px;
                padding: 15px 5% !important;
            }
            nav {
                flex-wrap: wrap;
                justify-content: center;
                gap: 12px 18px;
            }
            nav a {
                font-size: 13px !important;
            }

            /* --- 2. INTESTATZIONI E TITOLI --- */
            .page-header {
                padding: 30px 5% 20px 5% !important;
            }
            .page-header h1 {
                font-size: 32px !important;
            }
            .page-header p {
                font-size: 15px !important;
            }
            .hero-title {
                font-size: 38px !important;
            }
            .hero-subtitle {
                font-size: 12px !important;
            }

            /* --- 3. STRUTTURA HERO (HOME) --- */
            .hero {
                flex-direction: column !important;
                padding-top: 20px !important;
                min-height: auto !important;
            }
            .hero-content {
                padding: 20px 5% !important;
            }
            .hero-image-wrapper {
                height: 280px !important;
                width: 100% !important;
            }
            .hero-image-container {
                border-bottom-left-radius: 40px !important;
            }

            /* Sistemazione del Floating Box che diventava illeggibile */
            .floating-box {
                position: relative !important;
                bottom: 0 !important;
                left: 0 !important;
                width: auto !important;
                margin: -30px 5% 20px 5% !important;
                padding: 25px !important;
                box-sizing: border-box !important;
            }
            .floating-box p {
                font-size: 14px !important;
                line-height: 1.6 !important;
            }

            /* --- 4. DIMENSIONE SCHEDE E TESTI ILLEGGIBILI --- */
            .about-grid {
                width: 100% !important;
            }
            .about-section, .portfolio-section, .clients-section, 
            .certifications-section, .contact-section, .roles-section {
                padding: 30px 5% 60px 5% !important;
            }
            
            /* Correzione padding e font delle Card */
            .about-card, .stat-card, .role-card, .split-form, .split-info, .form-container {
                padding: 25px 20px !important; /* Riduce il padding che stringeva troppo il testo */
                box-sizing: border-box !important;
            }
            .about-card h2, .split-info h2, .split-form h2, .form-container h2 {
                font-size: 22px !important; /* Titoli proporzionati */
                line-height: 1.3 !important;
            }
            .about-card p, .role-card p, .general-contacts, .office-box {
                font-size: 14px !important; /* Dimensione testo riposante */
                line-height: 1.6 !important;
            }

            /* --- 5. GRIGLIE E COLONNE SINGOLE --- */
            .stats-section {
                grid-template-columns: 1fr !important;
                margin: 40px 5% !important;
                gap: 25px !important;
            }
            .stats-grid, .portfolio-grid, .roles-grid {
                grid-template-columns: 1fr !important;
            }
            .split-section {
                flex-direction: column !important;
                padding: 20px 5% 40px 5% !important;
                gap: 25px !important;
            }
            .offices-container, .maps-container {
                flex-direction: column !important;
                height: auto !important;
            }
            .map-box {
                height: 180px !important;
            }

            /* --- 6. MODULI E PULSANTI --- */
            .form-row {
                flex-direction: column !important;
                gap: 0 !important;
            }
            .btn-wrapper {
                justify-content: center !important;
            }
            .btn-link, .submit-btn, .map-button {
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }

            /* --- 7. BANNER COOKIE --- */
            #cookie-banner {
                flex-direction: column !important;
                gap: 12px !important;
                text-align: center !important;
            }
            #cookie-banner div {
                padding-right: 0 !important;
            }
        }
