        :root {
            --primary: #0056b3;
            --secondary: #00b388;
            --dark: #22252a;
            --light: #f8f9fa;
            --text: #495057;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            scroll-behavior: smooth;
        }

        body {
            color: var(--text);
            background-color: #ffffff;
            line-height: 1.6;
        }

        /* Header & Navigation */
        header {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
        }

        .logo {
            font-weight: 700;
            font-size: 24px;
            color: var(--primary);
            text-decoration: none;
        }

        nav a {
            text-decoration: none;
            color: var(--dark);
            margin-left: 20px;
            font-weight: 500;
            transition: color 0.3s;
        }

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

        .btn-nav {
            background: var(--primary);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
        }

        .btn-nav:hover {
            background: #004085;
            color: white;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 160px 20px 100px;
            text-align: center;
        }

        .hero h1 {
            font-size: 42px;
            color: var(--dark);
            margin-bottom: 20px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero p {
            font-size: 18px;
            margin-bottom: 30px;
            max-width: 650px;
            margin-left: auto;
            margin-right: auto;
        }

        .btn-main {
            display: inline-block;
            background: var(--secondary);
            color: white;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 5px;
            font-weight: bold;
            font-size: 18px;
            transition: background 0.3s;
        }

        .btn-main:hover {
            background: #009672;
        }

        /* Services Section */
        .services {
            padding: 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .section-title {
            font-size: 32px;
            color: var(--dark);
            margin-bottom: 40px;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* Forza 2 colonne parallele della stessa dimensione */
            gap: 30px;
        }

        .service-card {
            background: var(--light);
            padding: 40px 30px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            transition: transform 0.3s;
            width: 100%;
            box-sizing: border-box; /* Evita che le schede si allarghino fuori misura */
        }

        .service-card:hover {
            transform: translateY(-5px);
        }

        /* Gestione per gli smartphone: le schede si incolonnano una sotto l'altra */
        @media (max-width: 768px) {
            .services-grid {
                grid-template-columns: 1fr; 
            }
        }

        .service-icon {
            font-size: 40px;
            margin-bottom: 20px;
        }

        .service-card h3 {
            margin-bottom: 15px;
            color: var(--dark);
        }

        /* Contact & Form Section */
        .contact-section {
            background: var(--light);
            padding: 80px 20px;
        }

        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 50px;
        }

        .contact-info h3 {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--dark);
        }

        .contact-info p {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .contact-form-wrapper {
            background: white;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark);
        }

        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 16px;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
        }

        textarea.form-control {
            resize: vertical;
            height: 120px;
        }

        .checkbox-group {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .checkbox-group input {
            margin-top: 5px;
        }

        .btn-submit {
            background: var(--primary);
            color: white;
            border: none;
            width: 100%;
            padding: 14px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .btn-submit:hover {
            background: #004085;
        }

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            text-align: center;
            padding: 30px 20px;
            font-size: 14px;
        }

        @media (max-width: 768px) {
            .hero h1 { font-size: 32px; }
            .nav-container { flex-direction: column; gap: 15px; }
            nav a { margin: 0 10px; }
        }
        

        @media (max-width: 600px) {
            .pricing-table th, .pricing-table td {
                padding: 10px;
                font-size: 14px;
            }
        }
         /* Sezione Sistemi e Tecnologie */
        .tech-section {
            background: #ffffff;
            padding: 40px 20px;
            text-align: center;
            border-bottom: 1px solid #eee;
        }
        
        .tech-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }
        
        .tech-badge {
            background: var(--light);
            color: var(--dark);
            padding: 10px 20px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 15px;
            border: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }
        /* Pulsante Galleggiante WhatsApp */
        .whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #25d366;
            color: white;
            border-radius: 50px;
            text-align: center;
            font-size: 30px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            text-decoration: none;
            transition: transform 0.3s, background-color 0.3s;
        }

        .whatsapp-float:hover {
            background-color: #128c7e;
            transform: scale(1.1);
        }

        /* Effetto onda pulsante per evidenziare le urgenze */
        .whatsapp-float::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background-color: #25d366;
            opacity: 0.7;
            z-index: -1;
            animation: pulse-whatsapp 2s infinite;
        }

        @keyframes pulse-whatsapp {
            0% { transform: scale(1); opacity: 0.7; }
            100% { transform: scale(1.6); opacity: 0; }
        }

        @media (max-width: 768px) {
            .whatsapp-float {
                bottom: 20px;
                right: 20px;
                width: 55px;
                height: 55px;
                font-size: 26px;
            }
        }
        /* Stile del Popup (Modal) Privacy */
        .privacy-modal {
            display: none; 
            position: fixed; 
            z-index: 2000; 
            left: 0;
            top: 0;
            width: 100%; 
            height: 100%; 
            background-color: rgba(0,0,0,0.5); 
            align-items: center;
            justify-content: center;
        }

        .privacy-modal-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            text-align: left;
        }

        .privacy-close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            color: #aaa;
        }

        .privacy-close-btn:hover {
            color: #000;
        }

        .privacy-modal h2 {
            color: var(--primary);
            margin-bottom: 15px;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 5px;
        }
        
        .privacy-modal h3 {
            margin-top: 20px;
            font-size: 16px;
            color: var(--dark);
        }
        /* Configurazione Logo Grande e Leggibile */
        .logo-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            padding: 0;
            height: 85px; /* Crea uno spazio verticale solido per il logo */
        }

        .logo-img {
            height: 85px; /* Alzato a 85px per forzare la visibilità del testo */
            max-width: 320px; 
            width: auto;
            display: block;
            object-fit: contain;
        }

        /* Adattamento della barra per ospitare il logo grande */
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 20px; /* Ridotto al minimo lo spazio vuoto sopra e sotto */
        }

        /* Menu a Tendina Download Principale */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #ffffff;
            min-width: 220px;
            box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
            border-radius: 4px;
            padding: 5px 0;
            z-index: 1100;
            top: 100%;
            left: 0;
        }

        /* Menu a Tendina Download Principale */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #ffffff;
            min-width: 220px;
            box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
            border-radius: 4px;
            padding: 5px 0;
            z-index: 1100;
            top: 100%;
            left: 0;
        }

        /* Contenitore di ogni singola categoria */
        .dropdown-item {
            position: relative;
        }

        .dropdown-content a, .submenu-trigger {
            color: var(--dark);
            padding: 12px 20px;
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 15px;
            font-weight: 500;
            transition: background 0.2s, color 0.2s;
            cursor: pointer;
            box-sizing: border-box;
            width: 100%;
        }

        .dropdown-content a:hover, .submenu-trigger:hover {
            background-color: var(--light);
            color: var(--primary);
        }

        /* Mostra la prima tendina al passaggio del mouse su Download */
        .dropdown:hover > .dropdown-content {
            display: block;
        }

        /* --- SOTTOMENU CHE COMPARE DI LATO --- */
        .submenu-content {
            display: none;
            position: absolute;
            left: 100%; /* Spinge i programmi a destra della categoria */
            top: 0;
            background-color: #ffffff;
            min-width: 240px;
            box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
            border-radius: 4px;
            padding: 5px 0;
            z-index: 1200;
        }

        /* FORZATURA: Mostra i link SOLO quando il mouse passa sulla categoria specifica */
        .dropdown-item:hover > .submenu-content {
            display: block !important;
        }

        /* Freccetta indicatrice laterale per far capire che c'è un sottomenu */
        .submenu-trigger::after {
            content: '▸';
            font-size: 12px;
            color: #aaa;
            margin-left: auto;
            padding-left: 10px;
        }

        /* ==========================================================================
           SEZIONE RESPONSIVE COMPLETA PER SMARTPHONE (Calibrata per LD Informatica)
           ========================================================================== */
        @media (max-width: 768px) {
            /* 1. Header e Barra Logo */
            .nav-container {
                flex-direction: column;
                padding: 10px;
                text-align: center;
                height: auto;
            }

            .logo-link {
                height: 60px;
                margin-bottom: 10px;
                justify-content: center;
            }

            .logo-img {
                height: 60px;
                max-width: 240px;
            }

            /* 2. Menu di Navigazione Mobile (Incolonnato e ordinato) */
            nav {
                display: flex;
                flex-direction: column;
                width: 100%;
                gap: 5px;
            }

            nav a, .submenu-trigger {
                display: block;
                padding: 12px;
                margin: 0 !important;
                text-align: center;
                background-color: #ffffff;
                border-radius: 4px;
                border: 1px solid #eef2f5;
                font-size: 16px;
            }

            nav a:hover, .submenu-trigger:hover {
                background-color: var(--light);
            }

            .btn-nav {
                background-color: var(--primary) !important;
                color: #ffffff !important;
                margin-top: 10px;
            }

            /* 3. Menu a Tendina Download per Smartphone */
            .dropdown {
                display: block;
                width: 100%;
            }

            .dropdown-trigger {
                background-color: #e6f0fa;
                color: var(--primary);
                font-weight: bold;
            }

            .dropdown:hover > .dropdown-content {
                display: block;
                position: static;
                box-shadow: none;
                width: 100%;
                background: #f1f3f5;
                padding: 5px 0;
                border-radius: 4px;
            }

            .dropdown-item {
                display: block;
                width: 100%;
            }

            .submenu-trigger {
                background-color: #f8f9fa;
                font-weight: 600;
            }

            .submenu-trigger::after {
                content: ' ▾';
            }

            .dropdown-item:hover > .submenu-content {
                display: block !important;
                position: static;
                box-shadow: none;
                width: 100%;
                background: #ffffff;
                padding: 0;
            }

            .submenu-content a {
                background-color: #ffffff;
                padding: 10px 15px;
                border-bottom: 1px dashed #eef2f5;
                font-size: 14px;
                justify-content: center;
            }

            /* 4. Griglia dei Servizi e Contenitori Generali */
            .services-grid, .contact-container {
                grid-template-columns: 1fr !important; /* Sposta il layout su 1 colonna singola */
                gap: 20px;
                padding: 10px;
            }

            .hero {
                padding: 140px 20px 60px;
                text-align: center;
            }

            .hero h1 {
                font-size: 28px;
            }
            
            .hero p {
                font-size: 16px;
            }

            /* 5. Popup della Privacy adattabile */
            .privacy-modal-content {
                width: 95%;
                padding: 20px;
                max-height: 85vh;
            }
        }
