/* Theme Name: Mogor Elettronica Theme | Version: 7.5 */
:root {
    --bg-color: #020609; --card-bg: #04121a; --primary-cyan: #00f0ff;
    --text-white: #ffffff; --text-muted: #7fa1b5; --motto-bright: #c2ebff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-color); font-family: 'Segoe UI', sans-serif; color: var(--text-white); overflow-x: hidden; }
.main-wrapper { max-width: 1140px; margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; }

/* LOGO MOGOR INGRANDITO */
.site-logo-clean { width: 120px; height: 120px; border: 20px solid #fff; border-bottom: none; border-radius: 32px 32px 0 0; position: relative; flex-shrink: 0; box-shadow: none; }
.site-logo-clean::before { content: ''; position: absolute; top: 25px; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; background-color: #fff; }
.logo-icon-correct { width: 54px; height: 54px; border: 10px solid #fff; border-bottom: none; border-radius: 14px 14px 0 0; position: relative; flex-shrink: 0; }
.logo-icon-correct::before { content: ''; position: absolute; top: 12px; bottom: 0; left: 50%; transform: translateX(-50%); width: 10px; background-color: #fff; }

/* HARDWARE MONITOR 3D CENTRATO */
.monitor-section { width: 100%; display: flex; flex-direction: column; align-items: center; position: relative; margin-bottom: 0; }
.monitor-outer-frame { width: 100%; max-width: 940px; background: #11161b; border: 2px solid #232c35; border-radius: 20px; padding: 6px; box-shadow: 0 15px 35px rgba(0,0,0,0.7); }
.monitor-inner-bezel { background: #080c10; border-radius: 16px; padding: 16px 16px 28px 16px; position: relative; border: 1px solid #1a232c; }
.monitor-screen-panel { width: 100%; aspect-ratio: 16 / 7.5; background: #02090f; border-radius: 8px; border: 2px solid #004754; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: inset 0 0 40px rgba(0,240,255,0.25); }
.cyber-skyline-svg-bg { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: 1; pointer-events: none; }
.cyber-skyline-svg-bg svg { width: 100%; height: 100%; }
.cyber-grid-bg { position: absolute; inset: 0; opacity: 0.15; z-index: 2; background-image: linear-gradient(to right, rgba(0,240,255,0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,240,255,0.08) 1px, transparent 1px); background-size: 25px 25px; }
.screen-scanlines { position: absolute; inset: 0; z-index: 3; background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.3) 50%); background-size: 100% 6px; pointer-events: none; opacity: 0.25; }
.monitor-content-grid { position: relative; z-index: 10; width: 100%; display: flex; justify-content: center; align-items: center; }
.brand-container { display: flex; align-items: center; justify-content: center; gap: 40px; width: 100%; }
.brand-text { text-align: left; }
.brand-text h2 { font-size: 3.5rem; font-weight: 900; letter-spacing: 4px; color: #fff; line-height: 1.1; }
.brand-text .cyan-text { color: var(--primary-cyan); text-shadow: 0 0 20px rgba(0,240,255,0.5); }
.brand-text .tagline { font-size: 1.1rem; color: var(--motto-bright); letter-spacing: 6px; margin-top: 14px; font-weight: 700; text-transform: uppercase; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.monitor-power-led { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; background: var(--primary-cyan); border-radius: 50%; box-shadow: 0 0 8px var(--primary-cyan); }
.monitor-neck-stand { width: 90px; height: 40px; background: #0d1217; margin: 0 auto; border-left: 2px solid #1a232c; border-right: 2px solid #1a232c; }
.monitor-solid-base { width: 300px; height: 14px; background: linear-gradient(to bottom, #161d24, #080c10); margin: 0 auto; border-radius: 6px 6px 0 0; border: 1px solid #232c35; }

/* CIRCUITI LOGICI PCB */
.pcb-single-bus { width: 4px; height: 94px; background: var(--primary-cyan); box-shadow: 0 0 10px var(--primary-cyan); z-index: 2; position: relative; }
.board-hardware-container { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0; margin-top: -2px; position: relative; }
.hero-card.pcb-module { background-color: var(--card-bg); border: 2px solid var(--primary-cyan); border-radius: 20px; padding: 40px; flex: 1; max-width: 550px; box-shadow: inset 0 0 15px rgba(0,240,255,0.05), 0 0 25px rgba(0,0,0,0.5); position: relative; z-index: 5; }
.hero-card h2 { font-size: 2.2rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.hero-card .highlight { color: var(--primary-cyan); }
.hero-card p { font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
.hero-card .sub-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; font-style: italic; }
.cta-group { display: flex; gap: 15px; margin-top: 35px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.2s ease; }
.btn-primary { background-color: var(--primary-cyan); color: #020609; }
.btn-primary:hover { background-color: #00d2e0; box-shadow: 0 0 15px var(--primary-cyan); }
.btn-secondary { border: 1px solid #1a4963; color: var(--primary-cyan); background: transparent; }

/* SVG PISTE CENTRALIE */
.pcb-interconnect-block { display: flex; align-items: center; flex: 1; justify-content: flex-end; position: relative; }
.pcb-bus-traces { flex: 1; height: 160px; margin-left: -2px; margin-right: -2px; z-index: 2; }
.svg-pcb-traces { width: 100%; height: 100%; overflow: visible; }
.pcb-trace { fill: none; stroke: var(--primary-cyan); stroke-width: 3.5px; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0px 0px 5px rgba(0,240,255,0.7)); }
.pcb-node { fill: #020609; stroke: var(--primary-cyan); stroke-width: 2px; filter: drop-shadow(0px 0px 5px var(--primary-cyan)); }

/* CPU CHIP */
.microchip-v3 { width: 220px; height: 220px; background-color: #0b1a24; border-radius: 10px; position: relative; border: 4px solid #142d3d; display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.7); z-index: 4; margin-left: -2px; }
.chip-die-core { width: 114px; height: 114px; background: linear-gradient(135deg, #00bfff 0%, #00367c 100%); border-radius: 8px; display: flex; justify-content: center; align-items: center; box-shadow: inset 0 0 15px rgba(255,255,255,0.2), 0 0 15px rgba(0,0,0,0.5); }
.chip-pins-top-bottom, .chip-pins-left-right { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.chip-pins-top-bottom::before, .chip-pins-top-bottom::after, .chip-pins-left-right::before, .chip-pins-left-right::after { content: ''; position: absolute; background: repeating-linear-gradient(to right, #61879c, #61879c 6px, transparent 6px, transparent 18px); }
.chip-pins-top-bottom::before { top: -12px; left: 24px; right: 24px; height: 12px; }
.chip-pins-top-bottom::after { bottom: -12px; left: 24px; right: 24px; height: 12px; }
.chip-pins-left-right::before { background: repeating-linear-gradient(to bottom, #61879c, #61879c 6px, transparent 6px, transparent 18px); left: -12px; top: 24px; bottom: 24px; width: 12px; }
.chip-pins-left-right::after { background: repeating-linear-gradient(to bottom, #61879c, #61879c 6px, transparent 6px, transparent 18px); right: -12px; top: 24px; bottom: 24px; width: 12px; }

/* BUS VERTICALE */
.pcb-triple-vertical-bus { width: 60px; height: 60px; margin: 0 0 0 240px; align-self: flex-start; z-index: 1; position: relative; }
.svg-triple-trace { width: 100%; height: 100%; overflow: visible; }

/* CONTENITORE VALORI INFERIORE */
.services-container-box.pcb-module { width: 100%; max-width: 1100px; background-color: var(--card-bg); border: 2px solid var(--primary-cyan); border-radius: 20px; padding: 40px; box-shadow: inset 0 0 15px rgba(0,240,255,0.05), 0 0 25px rgba(0,0,0,0.5); margin-top: -2px; position: relative; z-index: 3; }
.features-vertical-list { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.feature-card-row { display: flex; align-items: center; background: rgba(2,6,9,0.4); border-left: 3px solid var(--primary-cyan); border-radius: 0 12px 12px 0; padding: 25px; gap: 25px; }
.icon-node { width: 58px; height: 58px; border-radius: 50%; background: #020609; border: 2px solid var(--primary-cyan); color: var(--primary-cyan); display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 1.5rem; flex-shrink: 0; }
.clock-icon { width: 20px; height: 20px; border: 2px solid var(--primary-cyan); border-radius: 50%; position: relative; }
.clock-icon::before { content: ''; position: absolute; top: 2px; left: 7px; width: 2px; height: 7px; background: var(--primary-cyan); }
.clock-icon::after { content: ''; position: absolute; top: 7px; left: 7px; width: 5px; height: 2px; background: var(--primary-cyan); }
.feature-text h3 { margin-bottom: 8px; font-size: 1.4rem; color: #fff; letter-spacing: 0.5px; font-weight: 700; }
.feature-text p { color: #ffffff; font-size: 1.1rem; line-height: 1.6; }

/* SEZIONE FOOTER REALE */
.site-pcb-footer { width: 100%; max-width: 1100px; margin-top: 40px; text-align: center; position: relative; padding-bottom: 40px; }
.footer-wire-line { width: 100%; height: 2px; background: linear-gradient(to right, transparent, var(--primary-cyan), transparent); margin-bottom: 20px; box-shadow: 0 0 8px var(--primary-cyan); }
.footer-data-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.footer-vat-number { font-weight: 600; color: #ffffff; margin-top: 4px; }
.footer-data-content .privacy-link-active { color: var(--primary-cyan); text-decoration: underline; margin-left: 8px; font-weight: bold; display: inline-block; }
.footer-data-content .privacy-link-active:hover { color: #ffffff; text-shadow: 0 0 8px var(--primary-cyan); }

/* ==========================================================================
   IL VERO POPUP COOKIE FIXATO (POSIZIONAMENTO GEOMETRICO ASSOLUTO)
   ========================================================================== */
.pcb-cookie-popup-board { 
    position: fixed !important; 
    bottom: 20px !important; 
    left: 50% !important; 
    transform: translateX(-50%) !important; 
    width: 90% !important; 
    max-width: 820px !important; 
    background-color: #04121a !important; 
    border: 2px solid var(--primary-cyan) !important; 
    border-radius: 16px !important; 
    padding: 24px 30px !important; 
    box-shadow: 0 -10px 40px rgba(0, 240, 255, 0.4) !important; 
    z-index: 9999999 !important; 
}
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.cookie-content p { font-size: 0.98rem; line-height: 1.6; color: #ffffff !important; margin: 0; text-align: left; }
.cookie-legal-link { color: var(--primary-cyan) !important; text-decoration: underline; margin-left: 5px; font-weight: 600; }
.cookie-legal-link:hover { color: #ffffff !important; text-shadow: 0 0 10px var(--primary-cyan); }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-buttons .btn { padding: 10px 22px; font-size: 0.9rem; cursor: pointer; border-radius: 8px; font-weight: bold; }

/* ==========================================================================
   DI BASE SU DESKTOP QUESTO BLOCCO DEVE ESSERE INVISIBILE E AZZERATO
   ========================================================================== */
.pcb-mobile-traces {
    display: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   INTERFACCIA RESPONSIVE OTTIMIZZATA (SMARTPHONE & TABLET)
   ========================================================================== */
@media (max-width: 950px) { 
    /* Reset generale del contenitore per evitare overflow laterali */
    .main-wrapper { 
        padding: 20px 15px !important; 
        width: 100% !important;
        overflow-x: hidden;
    }

    /* 1. SMONTAGGIO E ADATTAMENTO MONITOR */
    .monitor-screen-panel { 
        aspect-ratio: auto !important; 
        padding: 30px 15px !important;
        min-height: 280px;
    }
    .monitor-neck-stand, 
    .monitor-solid-base { 
        display: none !important; 
    }
    .monitor-outer-frame {
        border-radius: 14px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.6) !important;
    }

    /* 2. ADATTAMENTO LOGO E TITOLI (BRAND) */
    .brand-container { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 20px !important; 
    }
    .brand-text {
        text-align: center !important;
    }
    .brand-text h2 { 
        font-size: 2rem !important; 
        letter-spacing: 2px !important;
        line-height: 1.2 !important;
    }
    .brand-text .tagline { 
        font-size: 0.9rem !important; 
        letter-spacing: 3px !important; 
        margin-top: 10px !important;
    }
    .site-logo-clean {
        width: 90px !important;
        height: 90px !important;
        border-width: 14px !important;
    }

    /* 3. DISPOSIZIONE CIRCUITI E CARD HARDWARE */
    .board-hardware-container { 
        flex-direction: column !important; 
        gap: 30px !important; 
        width: 100% !important;
    } 
    .pcb-interconnect-block { 
        justify-content: center !important; 
        width: 100% !important; 
    } 
    .pcb-bus-traces, 
    .pcb-triple-vertical-bus, 
    .pcb-single-bus { 
        display: none !important; 
    } 
    
    .hero-card.pcb-module {
        max-width: 100% !important;
        width: 100% !important;
        padding: 30px 20px !important;
    }
    .hero-card h2 {
        font-size: 1.8rem !important;
    }

    /* === ATTIVAZIONE E RICALIBRAZIONE PISTE VERTICALI MOBILE === */
    .pcb-mobile-traces {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 140px !important;        /* Più altezza per dare dinamismo geometrico */
        margin: 25px 0 !important;       /* Margine di sicurezza antieffetto schiacciamento */
        position: relative !important;
        z-index: 999 !important;
    }
    .svg-pcb-traces-mobile {
        width: 100% !important;          
        max-width: 280px !important;     /* Larghezza ideale per distanziare i 3 tracciati al centro */
        height: 100% !important;
        margin: 0 auto !important;
        display: block !important;
        overflow: visible !important;
    }
    .svg-pcb-traces-mobile .pcb-trace {
        display: block !important;
        stroke: var(--primary-cyan) !important;
        stroke-width: 4px !important;    /* Spessore maggiorato per renderlo nitido sui display mobile */
        fill: none !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        filter: drop-shadow(0px 0px 6px rgba(0,240,255,0.9)) !important;
    }
    .svg-pcb-traces-mobile .pcb-node {
        display: block !important;
        fill: #04121a !important;        /* Interno scuro coordinato allo sfondo delle card */
        stroke: var(--primary-cyan) !important;
        stroke-width: 2.5px !important;
        filter: drop-shadow(0px 0px 6px var(--primary-cyan)) !important;
    }
    
    /* Adattamento Microchip della CPU */
    .microchip-v3 {
        margin: 0 auto !important;
        transform: scale(0.85) !important;
    }

    /* 4. SEZIONE VALORI (INCOLONNATA) */
    .services-container-box.pcb-module {
        padding: 25px 15px !important;
    }
    .feature-card-row { 
        flex-direction: column !important; 
        text-align: center !important; 
        border-radius: 12px !important; 
        border-left: none !important;
        border-top: 3px solid var(--primary-cyan) !important;
        padding: 20px 15px !important;
        gap: 15px !important;
    } 
    .feature-text h3 {
        font-size: 1.25rem !important;
    }
    .feature-text p {
        font-size: 1rem !important;
    }

    /* 5. POPUP COOKIE STRUTTURATO PER MOBILE */
    .pcb-cookie-popup-board { 
        bottom: 10px !important; 
        padding: 20px 15px !important; 
        width: 94% !important; 
    } 
    .cookie-content { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 15px !important;
    } 
    .cookie-content p {
        text-align: center !important;
        font-size: 0.9rem !important;
    }
    .cookie-buttons { 
        width: 100% !important; 
        justify-content: center !important; 
        flex-direction: column !important;
        gap: 8px !important;
    } 
    .cookie-buttons .btn {
        width: 100% !important;
    }
    
    /* Footer */
    .site-pcb-footer {
        padding: 0 10px 30px 10px !important;
    }
}

/* Protezione ulteriore per schermi molto stretti */
@media (max-width: 480px) {
    .brand-text h2 { 
        font-size: 1.6rem !important; 
    }
    .hero-card h2 {
        font-size: 1.5rem !important;
    }
}