@charset "UTF-8";
/* CSS Document */

        :root {
            /* TEMA VERDE PHOSPHOR DEFAULT */
            --primary-lcd: #00ff66;
            --primary-dim: rgba(0, 255, 102, 0.15);
            --primary-glow: rgba(0, 255, 102, 0.4);
            --amber-title: #ffe600;
            --bg-dark: #020b04;
            --panel-bg: rgba(4, 20, 8, 0.93);
        }

        /* TEMA AMBRA / TUBE CRT SWITCHABLE */
        body.theme-amber {
            --primary-lcd: #ffb000;
            --primary-dim: rgba(255, 176, 0, 0.15);
            --primary-glow: rgba(255, 176, 0, 0.4);
            --amber-title: #00ff66;
            --bg-dark: #0f0800;
            --panel-bg: rgba(24, 14, 2, 0.93);
        }

        /*  PRELOADER */
        /* --- PRELOADER MS-DOS & CRT BOOT --- */
#msdos-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    color: var(--primary-lcd, #00ff66);
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    padding: 40px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: opacity 0.4s ease;
}

.dos-text {
    line-height: 1.6;
    white-space: pre-wrap;
}

.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--primary-lcd, #00ff66);
    animation: blink 0.8s infinite;
    vertical-align: bottom;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Effetto accensione monitor CRT */
@keyframes crtTurnOn {
    0% {
        transform: scale(1, 0.002);
        filter: brightness(30);
    }
    40% {
        transform: scale(1, 1);
        filter: brightness(15);
    }
    100% {
        transform: scale(1, 1);
        filter: brightness(1);
    }
}

.crt-power-on {
    animation: crtTurnOn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
        /*  FINE PRELOADER */
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            user-select: none;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--primary-lcd);
            font-family: 'VT323', monospace;
            font-size: 22px;
            overflow-x: hidden;
            position: relative;
            line-height: 1.3;
            transition: background-color 0.3s, color 0.3s;
        }

        /* Effetto Scanlines CRT Monitor */
        body::before {
            content: " ";
            display: block;
            position: fixed;
            top: 0; left: 0; bottom: 0; right: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%), 
                        linear-gradient(90deg, rgba(0, 255, 102, 0.03), rgba(0, 255, 102, 0.01), rgba(0, 255, 102, 0.03));
            z-index: 999;
            background-size: 100% 4px, 6px 100%;
            pointer-events: none;
        }
/* Stato iniziale del titolo (es. invisibile o spostato) */
section h2, .section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Stato attivato quando raggiunge metà viewport */
section h2.animate-title, .section-title.animate-title {
    opacity: 1;
    transform: translateY(0);
}
        /* CANVAS SFONDO 3D CONTINUO */
       #bg-canvas-3d {
    position:sticky; /* Invece di fixed o bloccato */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* O min-height: 100% per estendersi con il documento */
    pointer-events: none; /* Per permette ai clic di passare attraverso il canvas e cliccare i pulsanti sotto */
    z-index: -1; /* Lo manda dietro a tutti i contenuti del sito */
}
        /*
        #bg-canvas-3d {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            z-index: -1;
            pointer-events: none;
        }
        */

        

        .logo {
            font-family: 'Press Start 2P', cursive;
            font-size: 13px;
            color: var(--primary-lcd);
            text-shadow: 0 0 8px var(--primary-lcd);
            text-decoration: none;
        }
        /* NAV */
        
        /* --- CSS NAVBAR RESPONSIVE --- */
nav {
    position: sticky;
    top: 0;
    background: rgba(2, 11, 4, 0.96);
    border-bottom: 3px solid var(--primary-lcd);
    box-shadow: 0 0 15px var(--primary-glow);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--primary-lcd);
    text-decoration: none;
    margin-left: 15px;
    font-size: 19px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--amber-title);
    text-shadow: 0 0 8px var(--amber-title);
}

/* Pulsante Hamburger per Mobile */
.hamburger-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--primary-lcd);
    color: var(--primary-lcd);
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    padding: 6px 10px;
    cursor: pointer;
}

/* Responsive Navbar per schermi sotto i 768px */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .nav-links {
        display: none; /* Nascosto di default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 11, 4, 0.98);
        border-bottom: 3px solid var(--primary-lcd);
        padding: 15px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.8);
    }

    .nav-links.active {
        display: flex; /* Visibile quando attivo */
    }

    .nav-links a {
        margin: 10px 0;
        font-size: 20px;
        text-align: center;
        width: 100%;
        display: block;
    }
}
        
      
        .control-btn {
            background: transparent;
            border: 1px solid var(--primary-lcd);
            color: var(--primary-lcd);
            font-family: 'Press Start 2P', cursive;
            font-size: 9px;
            padding: 6px 10px;
            cursor: pointer;
        }

        .control-btn:hover {
            background: var(--primary-lcd);
            color: #000;
        }

        /* CONTAINER & PANNELLI BASE */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .retro-panel {
            background: var(--panel-bg);
            border: 2px solid var(--primary-lcd);
            box-shadow: 0 0 20px var(--primary-dim);
            padding: 30px;
            margin-bottom: 60px;
            border-radius: 2px;
        }

        /* TITOLI IN AMBRA CON DIGITAZIONE SU SCROLL */
        .panel-title {
            font-family: 'Press Start 2P', cursive;
            font-size: 18px;
            color: var(--amber-title);
            text-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
            margin-bottom: 25px;
            border-bottom: 2px dashed var(--amber-title);
            padding-bottom: 12px;
            min-height: 40px;
            display: flex;
            align-items: center;
        }

        .cursor-blink {
            display: inline-block;
            width: 12px;
            height: 20px;
            background-color: var(--amber-title);
            margin-left: 8px;
            animation: blink 0.8s infinite;
        }

        @keyframes blink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0; }
        }

        /* BUTTONS */
        .btn-retro {
            font-family: 'Press Start 2P', cursive;
            font-size: 10px;
            padding: 10px 16px;
            background: transparent;
            color: var(--primary-lcd);
            border: 2px solid var(--primary-lcd);
            cursor: pointer;
            box-shadow: 3px 3px 0px #000;
            transition: all 0.15s;
            text-transform: uppercase;
            text-decoration: none;
            display: inline-block;
        }
.btn-retro piccolo{
    font-size: 8px;
}

        .btn-retro:hover {
            background: var(--primary-lcd);
            color: #000;
            box-shadow: 0 0 12px var(--primary-lcd);
        }

        /* --- CSS ABOUT SECTION RESPONSIVE --- */
.avatar-3d-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    align-items: center;
    width: 100%;
}

#avatar-container {
    width: 100%;
    height: 360px;
    background: #000;
    border: 2px solid var(--primary-lcd);
    box-shadow: 0 0 15px var(--primary-glow);
    overflow: hidden;
}

.about-text-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.stats-box {
    border: 1px dashed var(--primary-lcd);
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    margin-top: 15px;
    width: 100%;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 20px;
    gap: 10px;
    flex-wrap: wrap; /* Evita il trasbordo di testo */
}

/* Regole Mobile per ABOUT */
@media (max-width: 768px) {
    .avatar-3d-grid {
        grid-template-columns: 1fr; /* Layout a singola colonna */
        gap: 20px;
    }

    #avatar-container {
        height: 250px; /* Ridotta altezza avatar su mobile per risparmiare spazio */
    }

    .panel-title {
        font-size: 14px; /* Ridotto il font del titolo per schermi stretti */
        word-break: break-word;
    }

    .stat-row {
        font-size: 16px; /* Ridotto leggermente il testo delle statistiche */
    }
}

        .ticker-wrap {
            width: 100%;
            overflow: hidden;
            background: #000;
            border-top: 2px solid var(--primary-lcd);
            border-bottom: 2px solid var(--primary-lcd);
            padding: 12px 0;
            margin-top: 40px;
            margin-bottom: 0;
            white-space: nowrap;
        }
        .ticker-move {
            display: inline-block;
            animation: ticker 25s linear infinite;
        }
        @keyframes ticker {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-50%, 0, 0); }
        }
        .ticker-item {
            display: inline-block;
            padding: 0 30px;
            font-family: 'Press Start 2P', cursive;
            font-size: 12px;
            color: var(--amber-title);
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        @media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

        .portfolio-card {
            border: 2px solid var(--primary-lcd);
            background: rgba(0, 255, 102, 0.03);
            padding: 18px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .portfolio-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 15px var(--primary-glow);
            background: rgba(0, 255, 102, 0.08);
        }

        .case-study-item {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 35px;
            padding-bottom: 30px;
            border-bottom: 1px solid var(--primary-dim);
            align-items: center;
        }
        .case-study-item:nth-child(even) { direction: rtl; }
        .case-study-item:nth-child(even) .case-content { direction: ltr; }
        @media (max-width: 768px) {
            .case-study-item, .case-study-item:nth-child(even) {
                grid-template-columns: 1fr;
                direction: ltr;
            }
        }
        .kpi-badge {
            background: #000;
            border: 2px double var(--amber-title);
            color: var(--amber-title);
            padding: 20px;
            text-align: center;
            font-family: 'Press Start 2P', cursive;
        }
        .kpi-number {
            font-size: 28px;
            display: block;
            margin-bottom: 8px;
        }

        .tech-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .tab-btn {
            background: #000;
            border: 1px solid var(--primary-lcd);
            color: var(--primary-lcd);
            padding: 8px 16px;
            font-family: 'Press Start 2P', cursive;
            font-size: 10px;
            cursor: pointer;
        }
        .tab-btn.active {
            background: var(--primary-lcd);
            color: #000;
        }
        .tech-bar-container { margin-bottom: 15px; }
        .tech-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }
        .bar-outer {
            width: 100%;
            height: 16px;
            border: 1px solid var(--primary-lcd);
            background: #000;
            padding: 2px;
        }
        .bar-inner {
            height: 100%;
            background: var(--primary-lcd);
            width: 0%;
            transition: width 1s ease-in-out;
        }

        .timeline-steps {
            position: relative;
            padding-left: 30px;
            border-left: 2px dashed var(--primary-lcd);
        }
        .step-card {
            position: relative;
            margin-bottom: 30px;
            background: rgba(0,0,0,0.5);
            border: 1px solid var(--primary-lcd);
            padding: 20px;
        }
        .step-card::before {
            content: "◆";
            position: absolute;
            left: -42px;
            top: 15px;
            color: var(--amber-title);
            font-size: 20px;
            background: var(--bg-dark);
        }

        .reviews-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        @media (max-width: 768px) { .reviews-grid { grid-template-columns: 1fr; } }
        .rpg-dialog {
            border: 2px solid var(--primary-lcd);
            background: #000;
            padding: 20px;
            position: relative;
        }
        .rpg-avatar-icon {
            font-size: 30px;
            float: left;
            margin-right: 15px;
        }

        .faq-accordion {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }
        .faq-item {
            border: 1px solid var(--primary-lcd);
            background: rgba(0, 255, 102, 0.02);
            padding: 18px;
        }

        #game-container {
            position: relative;
            width: 100%;
            background: #000;
            border: 2px solid var(--primary-lcd);
            box-shadow: 0 0 15px var(--primary-glow);
            overflow: hidden;
        }
        #game-canvas {
            display: block;
            width: 100%;
            height: 400px;
            cursor: crosshair;
        }
        .game-hud {
            position: absolute;
            top: 10px; left: 15px; right: 15px;
            display: flex;
            justify-content: space-between;
            font-family: 'Press Start 2P', cursive;
            font-size: 11px;
            color: var(--amber-title);
            pointer-events: none;
            z-index: 10;
        }

        #terminal-box {
            background: #000;
            border: 2px solid var(--primary-lcd);
            height: 280px;
            overflow-y: auto;
            padding: 15px;
            font-size: 22px;
            margin-bottom: 15px;
        }
        .chat-input-group { display: flex; gap: 10px; }
        .chat-input {
            flex: 1;
            background: #000;
            border: 2px solid var(--primary-lcd);
            color: var(--primary-lcd);
            padding: 10px;
            font-family: 'VT323', monospace;
            font-size: 22px;
            outline: none;
        }

        #contact { margin-bottom: 300px; }
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        @media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
        .form-group { margin-bottom: 18px; }
        .form-group label {
            display: block;
            font-family: 'Press Start 2P', cursive;
            font-size: 10px;
            color: var(--amber-title);
            margin-bottom: 6px;
        }
        .form-control {
            width: 100%;
            background: #000;
            border: 2px solid var(--primary-lcd);
            color: var(--primary-lcd);
            padding: 10px;
            font-family: 'VT323', monospace;
            font-size: 22px;
            outline: none;
        }

        footer {
            background: rgba(2, 11, 4, 0.98);
            border-top: 3px solid var(--primary-lcd);
            box-shadow: 0 0 20px var(--primary-glow);
            padding: 40px 20px;
            text-align: center;
        }
        .footer-logo-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
        }
        .footer-logo-svg {
            width: 80px;
            height: 80px;
            filter: drop-shadow(0 0 6px var(--primary-lcd));
        }
        .footer-hud {
            font-family: 'Press Start 2P', cursive;
            font-size: 11px;
            color: var(--amber-title);
            margin-bottom: 15px;
            display: flex;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
        }
        /* --- DISABILITA SELEZIONE TESTO SU TUTTO IL SITO --- */
body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* Chrome, Firefox, Opera */
}

/* Impedisci il trascinamento delle immagini */
img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Banner retro di allerta Jurassic Park style */
/* --- POPUP JURASSIC PARK 3D NEDRY MODAL --- */
#copy-protection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#copy-protection-toast {
    background: #020b04;
    color: var(--amber-title, #ffaa00);
    border: 3px solid var(--amber-title, #ffaa00);
    padding: 20px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    line-height: 1.8;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.5);
    max-width: 440px;
    width: 90%;
    text-align: center;
    animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Contenitore per il Canvas 3D dell'Avatar Nedry */
#nedry-3d-container {
    width: 140px;
    height: 140px;
    border: 2px solid var(--amber-title, #ffaa00);
    background: #000;
    box-shadow: inset 0 0 10px rgba(255, 170, 0, 0.4);
    overflow: hidden;
    position: relative;
}

#nedry-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

@keyframes modalPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
