/* style.css - Core CSS Zentos Digital Factory */
:root { 
    --blue-primary: #2563eb; 
    --blue-glow: #3b82f6; 
    --dark-bg: #030305; 
    --darker: #000000; 
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--dark-bg); 
    color: #ffffff; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

/* Progress Bar */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #1d4ed8, #60a5fa, #ffffff); z-index: 2000; width: 0%; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }

/* Premium Aurora Background */
.aurora-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--dark-bg); pointer-events: none; }
.orb-1 { position: absolute; top: -10%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 60%); filter: blur(80px); animation: float-orb 20s infinite ease-in-out alternate; }
.orb-2 { position: absolute; bottom: -20%; right: -10%; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(79,70,229,0.04) 0%, transparent 60%); filter: blur(100px); animation: float-orb 25s infinite ease-in-out alternate-reverse; }
@keyframes float-orb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(3%, 8%) scale(1.05); } }
.noise-overlay { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }

/* Typography */
.h-hero { font-size: clamp(2.5rem, 8vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 900; }
.h-section { font-size: clamp(2rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.text-gradient { background: linear-gradient(to right, #60a5fa, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Components */
.glass-card { background: rgba(255, 255, 255, 0.015); border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.glass-card:hover { border-color: rgba(59, 130, 246, 0.3); background: rgba(255, 255, 255, 0.03); transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }

.btn-primary { background: var(--blue-primary); color: white; transition: all 0.3s ease; position: relative; overflow: hidden; }
.btn-primary:hover { background: var(--blue-glow); box-shadow: 0 0 25px rgba(59,130,246,0.4); transform: scale(0.98); }

.fade-up { opacity: 0; transform: translateY(30px); }

/* Mega Menu Desktop */
.nav-item { position: relative; padding: 1.5rem 0; }
.mega-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px); width: 95vw; max-w-[1400px]; background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,0.1); border-radius: 1.5rem; padding: 3rem; opacity: 0; visibility: hidden; pointer-events: none; box-shadow: 0 40px 80px rgba(0,0,0,0.9); transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.nav-container { position: relative; }

/* Menu Mobile Drill-Down */
#mobile-menu-wrapper { position: fixed; inset: 0; background: var(--darker); z-index: 90; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); overflow: hidden; }
#mobile-menu-wrapper.open { transform: translateX(0); }
.mobile-panel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 100px 24px 40px 24px; overflow-y: auto; background: var(--darker); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); transform: translateX(100%); }
.mobile-panel.active { transform: translateX(0); }
.mobile-panel.slide-out-left { transform: translateX(-100%); }

.back-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--blue-glow); margin-bottom: 24px; cursor: pointer; }
.mobile-link-large { display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; font-weight: 800; text-transform: uppercase; color: white; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; text-align: left; }
.mobile-link-sub { display: block; font-size: 0.9rem; color: #9ca3af; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Hamburger Icon */
.hamburger-line { transition: all 0.3s ease; transform-origin: center; display: block; }
.hamburger.open .line-1 { transform: translateY(6px) rotate(45deg); }
.hamburger.open .line-2 { opacity: 0; }
.hamburger.open .line-3 { transform: translateY(-6px) rotate(-45deg); }

/* Accordion FAQ */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease; }
.faq-item:hover { background: rgba(255,255,255,0.02); }
.faq-button { cursor: pointer; display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, opacity 0.3s ease; opacity: 0; }
.faq-item.active .faq-content { max-height: 300px; opacity: 1; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--blue-glow); }

/* ----------------------------------- */
/* MENU MICRO-LABELS (BADGES)          */
/* ----------------------------------- */

.menu-badge {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid transparent;
}

/* 1. Variante "NEW" (Verde Smeraldo - Per i nuovi servizi) */
.badge-new {
    color: #34d399; /* emerald-400 */
    background-color: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.2);
}

/* 2. Variante "SOON" (Ambra/Giallo - Per i servizi in arrivo) */
.badge-soon {
    color: #fbbf24; /* amber-400 */
    background-color: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

/* 3. Variante "PROMO / HOT" (Rosso/Fucsia - Per sconti o best seller) */
.badge-hot {
    color: #fb7185; /* rose-400 */
    background-color: rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.2);
    animation: pulse-soft 2s infinite; /* Leggera animazione per attirare l'occhio */
}

/* 4. Variante "PRO" (Viola/Indaco - Per servizi premium ad alto margine) */
.badge-pro {
    color: #818cf8; /* indigo-400 */
    background-color: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.2);
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Utility per allineare il badge al testo nel menu */
.menu-link-flex {
    display: flex;
    align-items: center;
    gap: 8px; /* Spazio tra testo e badge */
    width: fit-content;
}