/* =============================================
   NEW HOMEPAGE - GATESOLUTIONS
   Dark mode, moderno, modulare
   ============================================= */

/* --- VARIABILI --- */
:root {
    --gh-bg-primary: #050505;
    --gh-bg-card: #111111;
    --gh-bg-hover: #1a1a1a;
    --gh-text-primary: #ffffff;
    --gh-text-secondary: #a0a0a0;
    --gh-accent: #0055ff;
    --gh-accent-light: #60efff;
    --gh-accent-hover: #0044cc;
    --gh-border: #2a2a2a;
    --gh-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gh-font-mono: 'Fira Code', monospace;
    
    /* Larghezza contenuti = larghezza menubar */
    --gh-content-width: 1200px;
    --gh-content-padding: 40px;
    
    /* Dimensione testo base - uniforme a menubar */
    --gh-text-base: 1.35rem;
}

/* --- RESET BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--gh-font-main);
    background: var(--gh-bg-primary);
    color: var(--gh-text-primary);
    line-height: 1.6;
    font-size: var(--gh-text-base);
    overflow-x: hidden;
}

/* =============================================
   HEADER / NAVBAR
   Larghezza = contenuto pagina, logo a sinistra
   ============================================= */
#gh-menubar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gh-border);
}

/* Wrapper interno con larghezza definita */
.gh-menubar-inner {
    width: var(--gh-content-width);
    max-width: 100%;
    padding: 0 var(--gh-content-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO (a sinistra) --- */
.gh-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.gh-logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

/* --- MENU (a destra) --- */
#gh-menu-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#gh-menu-list li a {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--gh-text-secondary);
    font-size: 1.35rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#gh-menu-list li a:hover {
    color: var(--gh-text-primary);
    background: var(--gh-bg-hover);
}

/* --- VOCE ATTIVA --- */
#gh-menu-list li a.active {
    color: var(--gh-accent);
    font-weight: 600;
}

/* --- AREA RISERVATA (pulsante solido) --- */
#gh-menu-list li a[href="reserved.html"] {
    background: var(--gh-accent);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    padding: 10px 24px;
    transition: all 0.2s ease;
}

#gh-menu-list li a[href="reserved.html"]:hover {
    background: var(--gh-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
}

/* =============================================
   CONTAINER COMUNE (per tutti i contenuti)
   ============================================= */
.gh-container {
    width: var(--gh-content-width);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--gh-content-padding);
}

/* =============================================
   SEZIONI GENERICHE
   Spaziatura verticale e struttura
   ============================================= */
.gh-section,
.section {
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
}

/* Sezioni alternative con sfondo diverso */
.gh-section-alt {
    background-color: var(--gh-bg-card);
}

/* Titoli comuni delle sezioni */
.gh-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gh-text-primary);
    margin-bottom: 40px;
    text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    :root {
        --gh-content-padding: 20px;
        --gh-text-base: 1.5rem;
    }
    
    #gh-menubar {
        padding: 12px 0;
    }
    
    .gh-logo-img {
        height: 32px;
    }
    
    #gh-menu-list li a {
        padding: 8px 12px;
        font-size: 1.35rem;
    }
    
    .gh-section,
    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    #gh-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    #gh-hero-text h1 {
        font-size: 2.4rem;
    }
    
    #gh-hero-text p {
        max-width: 100%;
    }
    
    /* Services - 2 colonne su tablet */
    #gh-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gh-service-card h3 {
        font-size: 1.5rem;
    }
    
    .gh-service-card p {
        font-size: 1.2rem;
    }
    
    /* Footer - 1 colonna su mobile */
    #gh-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Clienti - impilati verticalmente */
    #gh-clients-grid {
        gap: 40px;
    }
    
    #gh-cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --gh-text-base: 1.6rem;
    }

    #gh-services-grid {
        grid-template-columns: 1fr;
    }
    
    #gh-hero-text h1 {
        font-size: 2rem;
    }
    
    #gh-menu-list li a {
        padding: 8px 10px;
        font-size: 1.4rem;
    }
}
