@font-face {
            font-family: 'Space Grotesk';
            src: url('assets/font/space grotesk/static/SpaceGrotesk-Bold.ttf') format('truetype');
            font-weight: 700; font-style: normal; font-display: swap;
        }

        @font-face {
            font-family: 'Outfit';
            src: url('assets/font/outfit/Outfit/static/Outfit-Light.ttf') format('truetype');
            font-weight: 300; font-style: normal; font-display: swap;
        }

        @font-face {
            font-family: 'Outfit';
            src: url('assets/font/outfit/Outfit/static/Outfit-Regular.ttf') format('truetype');
            font-weight: 400; font-style: normal; font-display: swap;
        }
        @font-face {
            font-family: 'Outfit';
            src: url('assets/font/outfit/Outfit/static/Outfit-Medium.ttf') format('truetype');
            font-weight: 500; font-style: normal; font-display: swap;
        }
        @font-face {
            font-family: 'Outfit';
            src: url('assets/font/outfit/Outfit/static/Outfit-SemiBold.ttf') format('truetype');
            font-weight: 600; font-style: normal; font-display: swap;
        }
        :root {
            --bg-pure-black: #000000;
            --bg-card: #09090b; 
            --text-white: #ffffff;
            --text-muted: #888888;
            --accent-blue: #2563eb; 
            --border-subtle: rgba(255, 255, 255, 0.12);
            
            /* Variabili Dinamiche per l'inversione dei colori */
            --bg-body: var(--bg-pure-black);
            --text-main: var(--text-white);
            --card-bg: var(--bg-card);
            --border-color: var(--border-subtle);
            --accent-color: #ff6600; /* Arancione per Dark Mode */
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.35);
            
            /* Background Grid */
            --grid-line-color: rgba(255, 255, 255, 0.08);
            --grid-dot-color: rgba(255, 255, 255, 0.3);
            --grid-size: 60px;

            /* Bottoni Pillola */
            --btn-outline-border: rgba(255, 255, 255, 0.2);
            --btn-outline-bg: rgba(255, 255, 255, 0.05);
            --btn-outline-hover-bg: #ffffff;
            --btn-outline-hover-text: #000000;

            /* In tema scuro, il logo principale deve restare bianco */
            --main-logo-filter: invert(0);
            /* I loghi clienti SVG sono tutti neri di base. In tema scuro li rendiamo BIANCHI (invert 1) */
            --client-logo-filter: invert(1);

            /* Sfondo footer CTA: sfuma dal basso (arancione) verso l'alto (trasparente) */
            --footer-cta-color: rgba(255, 102, 0, 0.15); /* Arancione (accent) */
            --footer-cta-bg: linear-gradient(to top, var(--footer-cta-color) 0%, transparent 100%);
        }

        /* TEMA CHIARO */
        body.light-theme {
            --bg-body: #ffffff;
            --text-main: #000000;
            --text-muted: #555555;
            --card-bg: #f9f9f9;
            --border-color: rgba(0, 0, 0, 0.12);
            --accent-color: var(--accent-blue); /* Blu per Light Mode */
            --glass-bg: rgba(0, 0, 0, 0.05);
            --glass-border: rgba(0, 0, 0, 0.2);
            
            /* Background Grid */
            --grid-line-color: rgba(0, 0, 0, 0.06);
            --grid-dot-color: rgba(0, 0, 0, 0.2);
            --btn-outline-border: rgba(0, 0, 0, 0.2);
            --btn-outline-bg: rgba(0, 0, 0, 0.05);
            --btn-outline-hover-bg: #000000;
            --btn-outline-hover-text: #ffffff;
            --glow-color1: rgba(37, 99, 235, 0.5);
            --glow-color2: rgba(29, 78, 216, 0.2);
            --footer-bg: #ffffff;
            
            /* In tema chiaro, il logo principale (bianco) deve diventare nero */
            --main-logo-filter: invert(1);
            /* In tema chiaro (sfondo bianco), i loghi clienti neri restano neri */
            --client-logo-filter: invert(0);

            /* Sfondo footer CTA: sfuma dal basso (azzurro) verso l'alto (trasparente) */
            --footer-cta-color: rgba(29, 78, 216, 0.15); /* Azzurro (glow-color2) */
            --footer-cta-bg: linear-gradient(to top, var(--footer-cta-color) 0%, transparent 100%);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            overflow-x: hidden;
            width: 100%;
            font-family: 'Outfit', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.6;
            font-weight: 300;
            -webkit-font-smoothing: antialiased;
            position: relative;
            transition: background-color 0.4s ease, color 0.4s ease;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: -1;
            pointer-events: none;
            background-image: 
                radial-gradient(circle at 29.5px 29.5px, var(--grid-dot-color) 2px, transparent 2.5px),
                linear-gradient(to right, transparent 29px, var(--grid-line-color) 29px, var(--grid-line-color) 30px, transparent 30px),
                linear-gradient(to bottom, transparent 29px, var(--grid-line-color) 29px, var(--grid-line-color) 30px, transparent 30px);
            background-size: var(--grid-size) var(--grid-size);
            transition: background-image 0.4s ease;
            /* Sfumatura orizzontale: ai lati la griglia ÃƒÂ¨ al 100% (black), al centro ÃƒÂ¨ ridotta al 30% (rgba 0.3) */
            -webkit-mask-image: linear-gradient(to right, black 5%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,0.3) 75%, black 95%);
            mask-image: linear-gradient(to right, black 5%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,0.3) 75%, black 95%);
        }

        body.no-scroll { overflow: hidden; }

        h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.04em; }
        h1 { font-weight: 700; }
        h2, h3, h4 { font-weight: 600; }
        a { text-decoration: none; color: inherit; cursor: pointer; }
        ul { list-style: none; }

        /* ========================================= */
        /* SCHERMATA DI CARICAMENTO (SFONDO)         */
        /* ========================================= */
        .preloader {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100dvh;
            background-color: var(--bg-body);
            z-index: 999; /* Sotto l'header (1000) cosÃƒÂ¬ il logo header emerge */
            transition: opacity 0.8s ease;
        }
        .preloader.hidden { opacity: 0; pointer-events: none; }

        /* GESTIONE PAGINE (SPA) */
        .page-section {
            display: none; 
            animation: fadeInPage 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
            position: relative;
            z-index: 2;
        }
        .page-section.active { display: block; }
        @keyframes fadeInPage {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* BAGLIORE DEL CURSORE DIETRO A TUTTO */
        .ambient-glow {
            position: fixed; top: 0; left: 0; width: 700px; height: 700px;
            background: radial-gradient(circle, var(--glow-color1) 0%, transparent 60%);
            border-radius: 50%; transform: translate(-500px, -500px); z-index: 0; 
            pointer-events: none; transition: opacity 0.3s ease, background 0.4s ease; opacity: 0.5;
            filter: blur(80px);
            will-change: transform;
        }

        /* HEADER GLASSMORPHISM */
        /* HEADER GLASSMORPHISM */
        header {
            position: fixed; top: 25px; left: 50%; transform: translateX(-50%);
            width: calc(100% - 40px); max-width: 1600px;
            background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
            border-top: 1px solid var(--glass-border); border-left: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); border-radius: 100px;
            display: flex; justify-content: space-between; align-items: center; padding: 1rem 3rem; z-index: 1000;
            transition: all 0.4s ease;
        }
        header.intro-active {
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border-color: transparent !important;
            box-shadow: none !important;
        }
        header.intro-active nav,
        header.intro-active .header-actions,
        header.intro-active .burger-icon {
            opacity: 0;
            pointer-events: none;
        }
        body:not(.light-theme) header { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9); }
        .logo-icon-wrapper {
            display: block;
            height: 28px;
            width: 43px; /* Taglia la scritta e mostra solo l'icona a sinistra */
            overflow: hidden;
        }
        
        .logo-img { height: 28px; width: auto; display: block; filter: var(--main-logo-filter); transition: filter 0.4s ease;}
        nav {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }
        nav ul { display: flex; gap: 3rem; }
        nav a { white-space: nowrap; font-weight: 400; font-size: clamp(1.35rem, 2.25vw, 1.5rem); color: var(--text-muted); transition: color 0.3s; }
        nav a:hover, nav a.active { color: var(--text-main); }
        
        /* AZIONI NELL'HEADER (TEMA + CONTATTACI) */
        .header-actions { display: flex; align-items: center; gap: 1rem; }
        .theme-switch {
            position: relative; display: inline-block; width: 50px; height: 28px;
        }
        .theme-switch input { opacity: 0; width: 0; height: 0; }
        .theme-switch .slider {
            position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(120,120,128,0.32);
            transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1); border-radius: 34px;
        }
        .theme-switch .slider:before {
            position: absolute; content: ""; height: 24px; width: 24px; left: 2px; bottom: 2px;
            background-color: #ffffff; transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1); border-radius: 50%;
            box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
        }
        .theme-switch input:checked + .slider { background-color: var(--accent-color); }
        .theme-switch input:checked + .slider:before { transform: translateX(22px); }
        
        .icon-sun, .icon-moon { transition: fill 0.3s ease; }
        body.light-theme .icon-sun { fill: currentColor; }
        body.light-theme .icon-moon { fill: none; }
        body:not(.light-theme) .icon-sun { fill: none; }
        body:not(.light-theme) .icon-moon { fill: currentColor; }
        .btn-outline {
            border: 1px solid var(--btn-outline-border); color: var(--text-main); padding: 0.7rem 1.8rem;
            border-radius: 100px; font-weight: 400; font-size: clamp(0.9rem, 1.5vw, 1rem); transition: all 0.3s ease; background: var(--btn-outline-bg);
        }
        .btn-outline:hover { background: var(--btn-outline-hover-bg); color: var(--btn-outline-hover-text); transform: scale(1.05); }

        .hero-pill {
        }
        .hero-pill {
            display: inline-block;
            background: var(--btn-outline-bg); border: 1px solid var(--btn-outline-border);
            color: var(--text-main); padding: 1.2rem 3rem; border-radius: 100px;
            font-weight: 500; font-size: 24px; transition: all 0.3s ease;
            text-decoration: none;
        }        .hero-pill:hover { background: var(--btn-outline-hover-bg); color: var(--btn-outline-hover-text); transform: scale(1.05); }

        /* HERO GENERALE */
        .hero {
            position: relative; /* Necessario per confinare particles-js in absolute */
            min-height: 100dvh; display: flex; flex-direction: column;
            justify-content: center; align-items: center; text-align: center; padding: 130px 2rem 2rem 2rem;
        }
        .hero h1 { font-size: clamp(2.5rem, 6.5vw, 6rem); font-weight: 700; line-height: 1.1; margin-bottom: 0.8rem; max-width: 1000px; }
        .hero p { font-size: clamp(1.4rem, 4vw, 2.1rem); line-height: 1.5; color: var(--text-muted); max-width: 1000px; margin: 0 auto 1.2rem auto; }
        .text-blue { color: var(--accent-color); transition: color 0.4s ease; }

        /* HERO INTERNA */
        .hero-inner {
            min-height: 60vh; display: flex; flex-direction: column;
            justify-content: center; align-items: center; text-align: center; padding: 12rem 2rem 5rem;
            border-bottom: 1px solid var(--border-color);
            background: radial-gradient(circle at 50% 100%, var(--glow-color2) 0%, transparent 50%);
            transition: border-color 0.4s ease, background 0.4s ease;
        }
        .hero-inner h1 { font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 2rem; max-width: 1000px; margin-left: auto; margin-right: auto; }
        .hero-inner p { font-size: clamp(1.7rem, 4.5vw, 2.25rem); line-height: 1.6; color: var(--text-muted); max-width: 1000px; margin: 0 auto; }

        /* ========================================= */
        /* MARQUEE (Loghi Scorrevoli Stile Clustr)   */
        /* ========================================= */
        .marquee-header {
            text-align: center;
            margin-bottom: 2rem; /* Distanza dal riquadro scorrevole */
            position: relative;
            z-index: 6;
        }
        .marquee-text {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--text-muted);
            font-weight: 600;
        }
        .marquee-wrapper {
            position: relative; z-index: 5; width: 100%; overflow: hidden; padding: 4rem 0;
            border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
            background: radial-gradient(circle at 50% 50%, var(--glass-bg) 0%, transparent 100%);
            display: flex; white-space: nowrap; transition: border-color 0.4s ease, background 0.4s ease;
        }
        .marquee-content { display: flex; align-items: center; width: max-content; animation: scrollLeftToRight 90s linear infinite; }
        .marquee-content a { display: inline-flex; align-items: center; justify-content: center; }
        .marquee-logo {
            height: 32px;
            max-width: 135px;
            object-fit: contain;
            margin: 0 3.5rem;
            filter: var(--client-logo-filter);
            opacity: 0.45;
            transition: opacity 0.4s ease, filter 0.4s ease, transform 0.3s ease;
            cursor: pointer;
        }
        .marquee-logo:hover { opacity: 1; transform: scale(1.06); }
        @keyframes scrollLeftToRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0%); } }

        /* Indicatori di scorrimento */
        .scroll-down-indicator {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-muted);
            cursor: pointer;
            animation: bounce 2s infinite;
            transition: color 0.3s ease;
            z-index: 10;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .scroll-down-indicator:hover {
            color: var(--accent-color);
        }
        .scroll-down-indicator svg {
            width: 24px; height: 24px;
        }
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
            40% { transform: translateY(-10px) translateX(-50%); }
            60% { transform: translateY(-5px) translateX(-50%); }
        }

        /* CARDS E SEZIONI */
        .section-padding { padding: 0 2rem; max-width: 1500px; margin: 0 auto; width: 100%; }
        .section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 4rem; text-align: center; }

        .values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
        .two-col-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
        
        .value-card {
            position: relative; overflow: hidden;
            background-color: var(--card-bg); border: 1px solid var(--border-color);
            padding: clamp(1.2rem, 3vh, 2rem) clamp(1.2rem, 3vw, 2rem); border-radius: 16px; display: flex; flex-direction: column;
            transition: border-color 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.4s ease;
        }
        .value-card:hover { border-color: var(--accent-color); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transform: translateY(-5px); }
        body:not(.light-theme) .value-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); }
        
        .card-slash { font-size: 1.8rem; font-weight: 700; color: var(--text-main); margin-bottom: 1rem; font-style: italic; transition: color 0.4s ease;}
        .value-card h4 { font-size: clamp(1.85rem, 4.5vw, 2.25rem); margin-bottom: 1rem; font-weight: 600; }
        .value-card p { color: var(--text-muted); line-height: 1.6; font-size: clamp(1.5rem, 3vw, 1.7rem); }

                /* GRID SERVIZI STILE CLUSTR */
        /* GRID SERVIZI STILE CLUSTR */
        /* Nuova Lista Competenze */
        .competence-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .competence-item {
            padding: clamp(0.8rem, 2vh, 1.5rem) 0;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: border-color 0.4s ease;
        }
        
        .competence-item:first-child {
            border-top: 1px solid var(--border-color);
        }

        .competence-item:hover {
            border-bottom-color: var(--accent-color);
        }

        .competence-header {
            display: flex;
            align-items: center;
            gap: clamp(1rem, 2vw, 2rem);
            width: 100%;
        }

        .competence-arrow {
            width: 28px;
            height: 28px;
            margin-left: auto;
            color: var(--text-muted);
            opacity: 0.5;
            transition: transform 0.4s ease, color 0.4s ease, opacity 0.4s ease;
        }

        .competence-item:hover .competence-arrow {
            color: var(--accent-color);
            opacity: 1;
            transform: translateX(8px);
        }

        .competence-bullet {
            color: var(--accent-color);
            font-size: 2rem;
            opacity: 0;
            transform: translateX(-20px);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
            width: 20px;
        }

        .competence-item:hover .competence-bullet {
            opacity: 1;
            transform: translateX(0);
        }


        .competence-list {
            list-style: none;
            width: 100%;
        }
        .competence-name {
            font-size: clamp(2.5rem, 4vw, 3.5rem);
            margin: 0;
            color: var(--text-main);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
            transform-origin: left center;
        }

        .competence-item:hover .competence-name {
            transform: scale(1.05);
        }

        .competence-desc-wrapper {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.4s ease;
            padding-left: calc(2rem + 20px); /* Allinea con il testo saltando il bullet */
        }

        .competence-item:hover .competence-desc-wrapper {
            grid-template-rows: 1fr;
        }

        .competence-desc {
            overflow: hidden;
        }

        .competence-desc p {
            margin: 1.5rem 0 0 0;
            font-size: clamp(1.65rem, 3vw, 1.85rem);
            line-height: 1.6;
            color: var(--text-muted);
            text-align: left;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .competence-item:hover .competence-desc p {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.1s;
        }

        /* BLOCCHI CONTENUTO */
        .content-section { padding: 6rem 2rem; max-width: 1000px; margin: 0 auto; }
        .feature-block {
            position: relative; overflow: hidden;
            display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 4rem;
            padding: 3rem; border: 1px solid var(--border-color); border-radius: 16px;
            background: var(--card-bg); transition: border-color 0.4s ease, transform 0.3s ease, background-color 0.4s ease;
        }
        .feature-block:hover { border-color: var(--accent-color); transform: translateY(-5px); }
        .feature-block h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); color: var(--text-main); transition: color 0.4s ease;}
        .feature-block p { font-size: clamp(1.65rem, 3vw, 1.85rem); color: var(--text-muted); line-height: 1.7; }
        .feature-block ul { margin-left: 1.5rem; margin-top: 1rem; color: var(--text-muted); line-height: 1.8; }
        .feature-block ul li { list-style-type: square; }
        .feature-block ul li::marker { color: var(--accent-color); transition: color 0.4s ease;}

        /* Accordion GPSR */
        .accordion-item { border-bottom: 1px solid var(--border-color); overflow: hidden; transition: background 0.3s ease; }
        .accordion-header { width: 100%; padding: 1.5rem 1rem; display: flex; justify-content: space-between; align-items: center; background: none; border: none; color: var(--text-color); font-size: 1.85rem; font-weight: 500; cursor: pointer; text-align: left; transition: color 0.3s ease; font-family: inherit; }
        .accordion-header:hover { color: var(--accent-color); background: rgba(255, 255, 255, 0.02); }
        .accordion-icon { font-size: 1.5rem; transition: transform 0.3s ease; color: var(--text-muted); }
        .accordion-item.active .accordion-icon { transform: rotate(45deg); color: var(--accent-color); }
        .accordion-item.active .accordion-header { color: var(--accent-color); }
        .accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease; opacity: 0; }
        .accordion-item.active .accordion-content { max-height: 1200px; padding: 0 1rem 1.5rem 1rem; opacity: 1; }
        .accordion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2vw, 2rem); margin-top: 0.5rem; background: rgba(255, 255, 255, 0.02); padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); }
        .accordion-col h5 { color: var(--text-main); margin-bottom: 0.8rem; font-size: 1.65rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
        .accordion-col h5::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-color); }
        .accordion-col.non-gpsr h5::before { background: #ff6b6b; }
        .accordion-col p { font-size: 1.4rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
        .accordion-container { max-height: calc(100dvh - 350px); overflow-y: auto; padding-right: 0.5rem; position: relative; }
        .accordion-container::-webkit-scrollbar { width: 6px; }
        .accordion-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 4px; }
        .accordion-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
        .accordion-container::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
        @media (max-width: 768px) { .accordion-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem; } .accordion-container { max-height: calc(100dvh - 250px); } }

        .footer-cta {
            text-align: center; padding: 130px 2rem clamp(3rem, 8vb, 6rem) 2rem;
            background: var(--footer-cta-bg);
            transition: background 0.4s ease;
        }
        .footer-cta h2 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 3rem; }
        .btn-solid-blue {
            background-color: var(--accent-color); color: #ffffff; padding: 1.2rem 3rem;
            border-radius: 100px; font-weight: 400; font-size: clamp(1.1rem, 2.5vw, 1.25rem); transition: all 0.3s ease; display: inline-block;
        }
        .btn-solid-blue:hover { box-shadow: 0 0 30px var(--glow-color1); transform: translateY(-5px); }

        /* BORDO ILLUMINATO AL PASSAGGIO DEL MOUSE */
        .value-card::before, .feature-block::before {
            content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
            background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.9), transparent 45%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor; mask-composite: exclude;
            pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
        }
        body.light-theme .value-card::before, body.light-theme .feature-block::before {
            background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, 0.2), transparent 45%);
        }
        .value-card:hover::before, .feature-block:hover::before { opacity: 1; }

        /* SEZIONE CLIENTI - PILLOLE TRASCINABILI */
        .clients-gravity-section { padding-top: 0; }
        .clients-gravity-section .section-title { margin-bottom: 1rem; text-align: center; }
        .clients-gravity-sub { text-align: center; color: var(--text-muted); font-size: 1.85rem; max-width: 600px; margin: 0 auto 3rem auto; }
        .gravity-box {
            position: relative; width: 100%; touch-action: pan-y;
            height: calc(100dvh - 350px); min-height: 350px; max-height: 550px; /* Altezza super sicura per evitare 
sbordamenti */
            border-radius: 24px;
            background: var(--card-bg); border: 1px solid var(--border-color);
            overflow: hidden; touch-action: none; transition: background-color 0.4s ease, border-color 0.4s ease;
        }
        .gravity-pill {
            position: absolute; display: flex; align-items: center; justify-content: center;
            padding: 1.1rem 2.2rem; border-radius: 999px; background: var(--glass-bg);
            border: 1px solid var(--border-color); cursor: grab; will-change: transform;
            transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.4s ease;
        }
        .gravity-pill:active { cursor: grabbing; }
        .gravity-pill.dragging { 
            border-color: var(--accent-color); 
            background-color: rgba(37, 99, 235, 0.15); /* Illumina di blu */
            box-shadow: 0 0 40px var(--glow-color1); 
        }
        .gravity-pill img { height: 26px; width: auto; max-width: 140px; object-fit: contain; display: block; pointer-events: none; user-select: none; filter: var(--client-logo-filter); transition: filter 0.4s ease;}

        /* MOBILE MENU BURGER & OVERLAY */
        .burger-icon {
            display: none;
            position: relative;
            width: 24px;
            height: 20px;
            cursor: pointer;
            z-index: 1000;
        }
        .burger-icon span {
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--text-main);
            border-radius: 2px;
            transition: all 0.3s ease;
            transform-origin: center;
        }
        .burger-icon span:nth-child(1) { top: 0; }
        .burger-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
        .burger-icon span:nth-child(3) { bottom: 0; }

        .burger-icon.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
        .burger-icon.open span:nth-child(2) { opacity: 0; }
        .burger-icon.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

        .mobile-menu-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100dvh;
            background: color-mix(in srgb, var(--text-main) 5%, transparent); /* Tinta quasi nulla per lasciar fondere i colori dietro */
            backdrop-filter: blur(60px); /* Sfocatura estrema come da reference */
            -webkit-backdrop-filter: blur(60px);
            z-index: 999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            overflow-y: auto;
        }
        .mobile-menu-overlay.active {
            opacity: 1;
            pointer-events: all;
        }
        .mobile-nav-list {
            list-style: none;
            padding: 0 3rem 0 0; /* Spazio a destra */
            margin: 0;
            width: 100%;
            text-align: right; /* Testo a destra */
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 1.5rem;
            transform: translateY(20px);
            transition: transform 0.4s ease;
        }
        .mobile-menu-overlay.active .mobile-nav-list {
            transform: translateY(0);
        }
        .mobile-nav-list a {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2.5rem;
            font-weight: 600;
            color: var(--text-main);
            text-decoration: none;
            transition: color 0.15s ease;
            cursor: pointer;
        }
        .mobile-nav-list a:hover,
        .mobile-nav-list a:active {
            color: var(--accent-color);
        }
        .mobile-nav-list a.mobile-nav-highlight {
            color: var(--accent-color);
        }

        /* TABLET / IPAD (768px - 1100px) */
        @media (max-width: 1100px) {
            header { 
                padding: 1rem 1.5rem; 
                width: calc(100% - 40px);
            }
            nav ul { display: none; }
            .header-actions .btn-outline { display: none; }
            .burger-icon { display: flex; }
        }

        /* SCROLL SNAPPING DESKTOP (>= 769px) */
        @media (min-width: 769px) {
            html {
                font-size: clamp(9px, 1.6dvh, 16px);
                scroll-behavior: smooth;
            }
            .snap-slide {
                box-sizing: border-box;
                padding-top: 12vh;
                padding-bottom: 12vh;
                min-height: auto;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                position: relative;
                width: 100%;
                overflow: hidden; /* Evita sforamenti */
                margin-bottom: 0;
            }
            .snap-slide.hero {
                min-height: 100dvh;
                justify-content: flex-start; /* Evita che il testo sprofondi al centro su schermi alti */
                padding-top: clamp(180px, 22vh, 250px); /* Ultra-compresso per schermi con Zoom Windows */
                padding-bottom: 20px; /* Ridotto per lasciare spazio vitale in basso */
            }
            .snap-slide > div {
                max-width: 100%;
            }
            footer {
            }
        }

        /* MOBILE (< 768px) */
        @media (max-width: 768px) {
            .snap-slide {
                box-sizing: border-box;
                width: 100%;
                overflow: hidden;
                position: relative;
                padding-top: 100px;
                padding-bottom: 10vh;
                display: flex;
                flex-direction: column;
                justify-content: center;
                min-height: 100dvh;
            }
            .reveal {
                transform: translateY(15px);
                transition: all 0.5s cubic-bezier(0.2, 0, 0, 1);
            }
            footer {
                padding-bottom: 120px;
            }
        }
        @media (max-width: 900px) {
            header { 
                padding: 0.8rem 1.2rem; 
                width: calc(100% - 20px);
                top: auto; 
                bottom: calc(15px + env(safe-area-inset-bottom, 0px));
            }
            nav ul { display: none; }
            .header-actions .btn-outline { display: none; }
            .burger-icon { display: flex; }
            .ambient-glow { display: none; }
        }
        @media (max-width: 768px) {
            .feature-block { padding: 2rem; }
            .competence-item { padding: 1.5rem 0; }
            .competence-desc p { font-size: 1.5rem; }
            
            .hero-pill { padding: 1rem 2rem; }
            .gravity-box { height: 750px; }
            .gravity-pill { padding: 0.9rem 1.6rem; }
            .gravity-pill img { height: 20px; }

            /* TYPOGRAPHY & SPACING FIXES */
            .section-padding { padding: clamp(3rem, 6vb, 5rem) 1.5rem; }
            .hero { padding-top: 2rem; justify-content: center; padding-bottom: 95px; }
            .hero-inner { padding: clamp(5rem, 10vb, 8rem) 1.5rem 3rem; }
            .hero p, .hero-inner p { margin-bottom: 1.2rem; }
            .section-title { margin-bottom: 2rem; }
        }

        /* TAG SETTORI */
        .tags-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
        .sector-tag {
            padding: 1rem 2rem; border-radius: 100px; border: 1px solid var(--border-color);
            color: var(--text-muted); font-size: 1.7rem; font-weight: 400; transition: all 0.3s ease;
        }
        .sector-tag:hover { border-color: var(--accent-color); color: var(--text-main); }

        footer { padding: clamp(2rem, 5vb, 4rem) 4rem 2rem; border-top: 1px solid var(--border-color); background: var(--footer-bg); position: relative; z-index: 2; transition: background-color 0.4s ease, border-color 0.4s ease; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(2rem, 4vw, 4rem); margin-bottom: 4rem; }
        .footer-logo { height: 35px; width: auto; margin-bottom: 1.5rem; display: block; filter: var(--main-logo-filter); transition: filter 0.4s ease;}
        .footer-col h4 { color: var(--text-main); margin-bottom: 1.5rem; transition: color 0.4s ease;}
        .footer-col li { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.4rem; }

        /* ANIMAZIONI SCROLL */
        .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
        .reveal.active { opacity: 1; transform: translateY(0); }
        .delay-1 { transition-delay: 0.1s; }
        .delay-2 { transition-delay: 0.2s; }
        .delay-3 { transition-delay: 0.3s; }
        
        .typewriter-char {
            opacity: 0;
            transition: opacity 0.01s; /* Scatto meccanico immediato */
            transition-delay: 0s; /* Scompare all'istante quando si esce dalla vista */
        }
        .reveal.active .typewriter-char {
            opacity: 1;
            transition-delay: var(--delay); /* Scrive progressivamente solo quando entra in vista */
        }
            /* CONTATTI */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 4rem;
            align-items: flex-start;
        }
        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        .contact-info h2 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            line-height: 1.1;
            margin-bottom: 1rem;
        }
        .contact-info p {
            color: var(--text-muted);
            font-size: 1.85rem;
            line-height: 1.6;
            margin-bottom: 1rem;
        }
        .contact-detail {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 1.2rem;
            font-weight: 500;
        }
        .contact-detail svg {
            width: 24px; height: 24px;
            fill: none; stroke: var(--accent-color); stroke-width: 2;
        }
        
        /* Form Glassmorphism */
        .glass-form {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 3rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .form-group label {
            font-size: 0.9rem;
            color: var(--text-muted);
            font-weight: 500;
        }
        .glass-input {
            width: 100%;
            padding: 1rem 1.2rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-main);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        body.light-theme .glass-input {
            background: rgba(0, 0, 0, 0.03);
        }
        .glass-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 4px var(--glow-color);
            background: rgba(255,255,255, 0.05);
        }
        textarea.glass-input {
            resize: vertical;
            min-height: 120px;
        }
        
        .form-checkbox {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        .form-checkbox input {
            accent-color: var(--accent-color);
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        
        @media (max-width: 900px) {
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            .form-row {
                grid-template-columns: 1fr;
            }
            .glass-form {
                padding: 2rem;
            }
        }
            /* TESTIMONIALS MARQUEE */
        .testimonials-section {
            overflow: hidden;
            width: 100%;
        }
        .marquee-wrapper {
            width: 100%;
            overflow: hidden;
            position: relative;
        }
        .marquee-wrapper::before, .marquee-wrapper::after {
            content: '';
            position: absolute;
            top: 0;
            width: 150px;
            height: 100%;
            z-index: 2;
            pointer-events: none;
        }
        .marquee-wrapper::before {
            left: 0;
            background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
        }
        .marquee-wrapper::after {
            right: 0;
            background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
        }
        .marquee-container {
            display: flex;
            width: fit-content;
            animation: scrollMarquee 50s linear infinite;
        }
        .marquee-container:hover {
            animation-play-state: paused;
        }
        .testimonial-card {
            width: 650px;
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            margin-right: 2rem;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.4s ease, border-color 0.4s ease;
            white-space: normal;
        }
        .testimonial-card:hover {
            border-color: var(--accent-color);
            transform: translateY(-5px);
        }
        .testimonial-header {
            background-color: var(--accent-color);
            color: #ffffff;
            padding: 1.5rem 2rem;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }
        .testimonial-header .company {
            order: 1;
            font-weight: 800;
            font-size: 1.5rem;
            margin-bottom: 0.3rem;
            margin-top: 0;
        }
        .testimonial-header .name {
            order: 2;
            font-weight: 500;
            font-size: 1.1rem;
            opacity: 0.95;
        }
        .testimonial-header .role {
            order: 3;
            font-size: 0.95rem;
            opacity: 0.85;
            line-height: 1.3;
        }
        .testimonial-body {
            padding: 2rem;
        }
        .testimonial-text {
            color: var(--text-main);
            font-size: 1.05rem;
            line-height: 1.6;
        }
        @keyframes scrollMarquee {
            from { transform: translateX(0); }
            to { transform: translateX(-50%); }
        }
        @media (max-width: 768px) {
            .testimonial-card { width: 320px; padding: 1.8rem; }
            .marquee-wrapper::before, .marquee-wrapper::after { width: 40px; }
        }

        .bottom-gradient-overlay {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 250px;
            background: linear-gradient(to top, var(--bg-body) 0%, transparent 100%);
            z-index: 999;
            pointer-events: none;
        }

        /* FLOATING CONTACT DOCK */
        .floating-contact-dock {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 0.75rem 1.5rem;
            background: var(--accent-color);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 100px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .contact-dock-item {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            color: #ffffff;
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            transition: color 0.3s ease;
        }

        .contact-dock-item:hover {
            color: rgba(255,255,255,0.8);
        }

        .contact-dock-item svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .contact-dock-btn {
            background: #ffffff;
            color: var(--accent-color);
            padding: 0.6rem 1.5rem;
            border-radius: 100px;
            font-weight: 600;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .contact-dock-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 25px rgba(255,255,255,0.3);
            color: var(--accent-color);
        }

        body[data-page="home"] .floating-contact-dock,
        body[data-page="contatti"] .floating-contact-dock,
        body[data-page="contatti"] .bottom-gradient-overlay {
            display: none !important;
        }

        @media (max-width: 900px) {
            .floating-contact-dock {
                display: none !important;
            }
        }
    


        .map-card{
            position:relative;
            width:100%;
            max-width:none;
            margin:0;
            background:var(--bg-color);
            border-radius:0;
            overflow:hidden;
            border-top: 1px solid rgba(37,99,235,.18);
            border-bottom: 1px solid rgba(37,99,235,.18);
        }
        #map{ height:460px; width:100%; background:var(--bg-color) !important; z-index: 1;}
        @media (max-width:600px){ #map{ height:340px; } }

        /* PAGE TRANSITIONS */
        @keyframes fadeInPage {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .page-section.active { 
            display: block; 
            animation: fadeInPage 0.4s ease forwards; 
        }

        /* CUSTOM SCROLLBAR LATERALE (Stile Pillola Sospesa) */
        ::-webkit-scrollbar {
            width: 14px; /* Spessore totale area cliccabile */
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background-color: var(--text-main); /* Nero in light mode, bianco in dark mode */
            border-radius: 20px;
            border: 4px solid transparent; /* Questo bordo invisibile distacca la pillola dal lato destro */
            background-clip: padding-box;
        }
            ::-webkit-scrollbar-thumb:hover {
            background-color: var(--accent-color);
        }

/* Stile per il pulsante Scegli File */
input[type=file]::file-selector-button {
    background-color: var(--blue-main);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}
input[type=file]::file-selector-button:hover {
    background-color: var(--orange-main);
}

/* Fix colore opzioni dropdown */
select.glass-input option {
    color: #1a1f24;
    background-color: #ffffff;
}
