        :root {
            /* Colors */
            --gx-color-bg-primary: #ffffff;
            --gx-color-bg-hover: #0098fd;
            --gx-color-border-default: #666666;
            --gx-color-border-dark: #000000;
            --gx-color-border-active: #005f73;
            --gx-color-accent: #ff4500;
            --gx-color-text-main: #000000;
            --gx-color-text-light: #ffffff;

            /* Sizing */
            --gx-section-padding: 12px 20px;
            --gx-gap-links: 12px;
            --gx-gap-icons: 15px;
            --gx-search-height: 46px; 
            --gx-control-size: 30px;
            --gx-transition-speed: 0.2s;
            --gx-z-index-nav: 1000;
            --gx-z-index-mobile: 2000;
            --gx-z-index-search: 3000;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-color: var(--gx-color-bg-primary);
        }

        /* Navigazione Generale */
        .gx-main-nav, .gx-side-menu, .gx-mobile-overlay, .gx-full-search-overlay {
            user-select: none;
            -webkit-user-select: none;
        }

        .gx-main-nav {
            display: flex;
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            z-index: var(--gx-z-index-nav);
            background-color: var(--gx-color-bg-primary);
            box-sizing: border-box;
            border-bottom: 1px solid var(--gx-color-border-default);
            height: 60px;
        }

        .gx-nav-section {
            display: flex;
            align-items: center;
            padding: var(--gx-section-padding);
            box-sizing: border-box;
        }

        .gx-logo-section { flex: 0 0 auto; }

        .gx-central-section {
            flex: 1;
            padding: 0 40px;
            position: relative;
            display: flex;
            align-items: center;
            gap: var(--gx-gap-links);
            justify-content: center;
        }

        .gx-central-section::after {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: 3vh;
            background-color: var(--gx-color-border-default);
        }

        .gx-main-nav[tipenav="2"] .gx-central-section {
            justify-content: flex-end;
        }

        .gx-right-section {
            flex: 0 0 auto;
            justify-content: flex-end;
            gap: var(--gx-gap-icons);
            margin-left: auto;
        }

        .gx-nav-links { display: flex; gap: var(--gx-gap-links); }

        .gx-status-info {
            font-weight: bold;
            font-size: 16px;
            color: var(--gx-color-border-default);
            display: none;
            white-space: nowrap;
            order: 2; 
        }

        .gx-icon-asset {
            /* 1. Reset e Allineamento */
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
            /* 3. Colore */
            color: #0098fd;

            /* 4. Opzionale: Se il contenitore ha dimensioni fisse e vuoi centrarla lì */
            width: 100%;
            height: 100%;
            
            /* Fluidità nelle transizioni */
            transition: all 0.2s ease-in-out;
        }

        .gx-boxed-item {
            padding: 5px 15px;
            border-radius: 10vh;
            font-size: 18px;
            font-weight: bold;
            background: var(--gx-color-bg-primary);
            cursor: pointer;
            text-transform: lowercase;
            transition: background var(--gx-transition-speed);
            color: var(--gx-color-text-main);
            text-decoration: none;
            display: flex;
            align-items: center;
        }
        .gx-boxed-item.gx-active { color: var(--gx-color-bg-hover); }
        .gx-boxed-item:hover { color: var(--gx-color-bg-hover); }

        .gx-serch {
            width: 3.9vh !important;
            height: 3.8vh !important;
        }

        .gx-circled-item {
            width: var(--gx-control-size);
            height: var(--gx-control-size);
            border: 1px solid var(--gx-color-border-dark);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all var(--gx-transition-speed);
            background: white;
            text-decoration: none;
            color: inherit;
        }
        .gx-circled-item:hover { background: var(--gx-color-border-dark); color: white; }

        /* FIX: Altezza fissa in pixel per impedire rimpicciolimenti con vh quando apre tastiera */
        .gx-logo-menu { height: 26px; width: auto; flex-shrink: 0; }

        /* Full Screen Search Overlay */
        .gx-full-search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gx-color-bg-primary);
            z-index: var(--gx-z-index-search);
            display: none;
            flex-direction: column;
        }

        .gx-search-header {
            display: flex;
            align-items: center;
            padding: 13px;
            border-bottom: 1px solid #eee;
            gap: 15px;
        }

        .gx-search-input-wrapper {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
        }

        .gx-full-search-input {
            width: 100%;
            height: 31px;
            padding: 0 60px 0 20px;
            border: 2px solid var(--gx-color-border-dark);
            border-radius: 30px;
            font-size: 16px;
            outline: none;
            user-select: text;
        }

        /* Classe Personale Tasto X Ricerca */
        .gx-btn-close-search {
            position: absolute;
            right: 4px;
            width: 3.9vh;
            height: 3.8vh;
            border: 1px solid var(--gx-color-border-dark);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all var(--gx-transition-speed);
            background: white;
            text-decoration: none;
            color: inherit;
        }
        .gx-btn-close-search:hover { background: var(--gx-color-border-dark); color: white; }

        .gx-search-results-area {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        /* Anteprime Ricerca */
        .gx-result-card {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #eee;
            gap: 20px;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
            color: inherit;
        }
        .gx-result-card:hover { background: #f9f9f9; }

        .gx-result-img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; background: #eee; }
        .gx-result-info { flex: 1; }
        .gx-result-title { font-weight: bold; font-size: 18px; margin-bottom: 4px; display: block; }
        .gx-result-meta { font-size: 13px; color: #888; }
        .gx-result-version { 
            background: #f0f0f0; padding: 2px 8px; border-radius: 4px; 
            font-size: 11px; font-weight: bold; margin-left: 10px;
        }
        .gx-result-arrow { font-size: 20px; color: var(--gx-color-border-default); }

        /* Sidebar Desktop */
        .gx-side-menu {
            position: fixed; top: 60px; left: -280px; width: 260px; height: calc(100vh - 60px);
            background: #fff; border-right: 1px solid var(--gx-color-border-default);
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; padding: 20px;
            box-sizing: border-box; display: flex; flex-direction: column;
        }
        .gx-side-menu.gx-open { left: 0; }
        
        .gx-side-search-container { margin-bottom: 20px; flex-shrink: 0; display: none; }
        .gx-side-menu.gx-open .gx-side-search-container { display: block; }
        .gx-side-search-input { 
            width: 100%; padding: 10px 15px; border: 1px solid var(--gx-color-border-default); 
            border-radius: 25px; box-sizing: border-box; outline: none; user-select: text; font-size: 14px;
        }
        
        #gxSideContent { flex: 1; overflow-y: auto; }
        .gx-side-item { 
            display: block; padding: 12px 15px; cursor: pointer; font-weight: bold; 
            border-bottom: 1px solid #f0f0f0; transition: color 0.2s; 
            color: var(--gx-color-text-main); text-decoration: none; 
        }
        .gx-side-item:hover { color: var(--gx-color-bg-hover); }

        .gx-sub-menu-data { display: none; }

        /* Mobile Overlay - WhatsApp Style */
        .gx-mobile-overlay { 
            position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
            background: var(--gx-color-bg-primary); z-index: var(--gx-z-index-mobile); 
            display: none; flex-direction: column; overflow: hidden;
        }
        .gx-mobile-header { 
            flex-shrink: 0; display: flex; justify-content: space-between; 
            align-items: center; padding: var(--gx-section-padding); 
            border-bottom: 1px solid var(--gx-color-border-default); 
            height: 60px; box-sizing: border-box;
        }
        .gx-mobile-content-wrapper { flex: 1; overflow-y: auto; padding: 20px var(--gx-section-padding); }
        .gx-mobile-content { display: flex; flex-direction: column; gap: 20px; }
        
        .gx-mobile-footer-search { 
            flex-shrink: 0; padding: 15px; 
            border-top: 1px solid var(--gx-color-border-default); 
            background: var(--gx-color-bg-primary); display: none; 
        }

        #gxOpenMobile { display: none; }



        @media (max-width: 768px) {
            #gxOpenMobile { display: flex; }
            .gx-central-section { display: none; }
            .gx-nav-section.gx-right-section { gap: 10px; }

            /* Mobile Search Fixes */
            .gx-search-header .gx-logo-menu { display: none; } 
            .gx-full-search-input { height: 36px; font-size: 16px; } 

            .gx-btn-close-search {
                right: 5px;
                height: 28px;
                width: 29px;
                font-size: 18px;
            }

            .gx-serch {
                width: 3.5vh !important;
                height: 3.5vh !important;
            }
        }