        /* --- 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: STRISCE BRAND E HEADER --- */
        .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); }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 5%;
            background-color: var(--grigio-sfondo); 
            position: relative;
            z-index: 10;
            box-shadow: 0 2px 10px rgba(0,0,0,0.03);
        }
        .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 {
            width: 100%; 
        }

        /* --- ZONA 3: INTESTAZIONE PAGINA --- */
        .page-header {
            padding: 80px 10% 40px 10%;
            text-align: center;
        }
        .page-header h1 {
            font-size: 40px;
            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 4: CONTENUTO TESTUALE LEGALE --- */
        .legal-content {
            background-color: white;
            max-width: 800px;
            margin: 0 auto 100px auto;
            padding: 50px 60px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            font-size: 15px;
            line-height: 1.8;
            color: var(--testo-secondario);
        }
        .legal-content h2 {
            color: var(--blu-scuro);
            font-size: 22px;
            margin: 40px 0 15px 0;
        }
        .legal-content h2:first-child {
            margin-top: 0;
        }
        .legal-content h3 {
            color: var(--testo-principale);
            font-size: 18px;
            margin: 30px 0 10px 0;
        }
        .legal-content p {
            margin-bottom: 15px;
        }
        .legal-content ul {
            margin-bottom: 25px;
            padding-left: 20px;
        }
        .legal-content li {
            margin-bottom: 10px;
        }
        .legal-content strong {
            color: var(--testo-principale);
        }

        /* --- ZONA 5: FOOTER --- */
        footer {
            background-color: white;
            border-top: 1px solid #ddd;
            padding: 60px 5% 20px 5%;
            font-size: 14px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-col h4 {
            color: var(--blu-scuro);
            font-size: 18px;
            margin: 0 0 20px 0;
            text-transform: uppercase;
        }
        .footer-col p {
            color: var(--testo-secondario);
            line-height: 1.8;
            margin: 0 0 10px 0;
        }
        .footer-col a {
            color: var(--testo-secondario);
            text-decoration: none;
            display: block;
            margin-bottom: 10px;
            transition: color 0.3s ease;
        }
        .footer-col a:hover {
            color: var(--azzurro);
        }
        .footer-bottom {
            border-top: 1px solid #eee;
            padding-top: 20px;
            display: flex;
            justify-content: space-between;
            color: #999;
            font-size: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .footer-bottom-links a {
            color: #999;
            text-decoration: none;
            margin-left: 15px;
        }
        .footer-bottom-links a:hover {
            color: var(--blu-scuro);
        }

        @media (max-width: 768px) {
            .legal-content {
                padding: 30px;
                margin: 0 5% 60px 5%;
            }
            .footer-grid {
                grid-template-columns: 1fr;
            }
            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
        }
        /* =========================================================
           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;
            }
        }
