:root {
    --primary: #00adb5;
    --primary-glow: rgba(0, 173, 181, 0.6);
    --bg-dark: #050505;
    --glass-bg: rgba(10, 10, 10, 0.7);
}

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

body { 
    background: var(--bg-dark); 
    color: #fff; 
    font-family: 'Share Tech Mono', monospace; 
    overflow-x: hidden;
    line-height: 1.6;
}

.matrix-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: radial-gradient(circle, rgba(0, 173, 181, 0.1) 1px, transparent 1px);
    background-size: 40px 40px; z-index: -1;
}

#led-scanner-top {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    background-size: 200% 100%;
    animation: scan-top 3s infinite linear;
    box-shadow: 0 0 15px var(--primary); z-index: 1000;
}

@keyframes scan-top { 
    0% { background-position: 200% 0; } 
    100% { background-position: -200% 0; } 
}

.cyber-led-bar {
    width: 100%;
    height: 1px;
    background: rgba(0, 173, 181, 0.2);
    position: relative;
    overflow: hidden;
    margin: 15px 0;
}

.cyber-led-bar::before {
    content: '';
    position: absolute; top: 0; left: -50%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: cyber-scan 2.5s infinite linear;
    box-shadow: 0 0 10px var(--primary);
}

.cyber-led-bar.fast::before { animation-duration: 1.2s; }

@keyframes cyber-scan {
    0% { left: -50%; }
    100% { left: 100%; }
}

.navbar { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid rgba(0, 173, 181, 0.2); 
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
}
.brand-link { font-family: 'Orbitron', sans-serif; font-weight: 700; color: var(--primary); text-decoration: none; font-size: 1.1rem; text-shadow: 0 0 8px var(--primary); }
.nav-btn { 
    border: 1px solid var(--primary); padding: 8px 15px; color: var(--primary); 
    text-decoration: none; border-radius: 3px; font-size: 0.9rem; transition: 0.3s; 
}
.nav-btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary); }

.main-container { 
    width: 100%; max-width: 1000px; margin: 0 auto; padding: 40px 20px; 
    display: flex; flex-direction: column; align-items: center;
}

.hero { text-align: center; width: 100%; margin-bottom: 40px; }

.logo-wrapper { width: 100%; max-width: 180px; margin: 0 auto 10px; }

/* Aggiunto mix-blend-mode per nascondere il riquadro nero dello screenshot */
.main-image-logo { 
    width: 100%; height: auto; display: block; 
    filter: drop-shadow(0 0 25px var(--primary-glow)); 
    animation: pulse-img 3s infinite alternate;
    mix-blend-mode: screen; 
}
@keyframes pulse-img { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }

.css-logo-container { margin: 0 0 20px; }

.css-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 5rem); 
    margin: 0;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: clamp(5px, 2vw, 15px);
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
}

/* NUOVA REGOLA PER IL SOTTOTITOLO */
.css-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1.4rem); 
    margin: 5px 0 0 0;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: clamp(2px, 1vw, 6px);
    text-shadow: 
        0 0 5px var(--primary),
        0 0 15px var(--primary);
}

.hero-tagline { font-size: clamp(0.9rem, 3vw, 1.2rem); color: #b0b0b0; margin-top: 20px; }

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; 
    clip: rect(0, 0, 0, 0); animation: glitch-anim 4s infinite linear alternate-reverse;
}
.glitch::before { text-shadow: 2px 0 red; }
.glitch::after { text-shadow: -2px 0 blue; }

@keyframes glitch-anim {
    0% { clip: rect(20px, 9999px, 44px, 0); }
    5% { clip: rect(80px, 9999px, 59px, 0); }
    100% { clip: rect(10px, 9999px, 15px, 0); }
}

.card-glow {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(1.1rem, 3vw, 1.3rem); 
    margin: 0 0 5px 0;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 
        0 0 5px var(--primary),
        0 0 15px var(--primary),
        0 0 25px var(--primary);
}

.info-core { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; width: 100%; 
    margin-top: 40px;
}

.glass-card { 
    background: var(--glass-bg); border: 1px solid rgba(0, 173, 181, 0.3); 
    padding: 30px 25px; border-radius: 8px; text-align: left;
    backdrop-filter: blur(5px); transition: 0.3s;
}
.glass-card:hover { border-color: var(--primary); box-shadow: 0 0 20px rgba(0, 173, 181, 0.2); transform: translateY(-5px); }
.cyber-subtitle { color: #a0a0a0; font-size: 0.85rem; margin-top: 5px; font-family: 'Inter', sans-serif; font-weight: 400; }
.glass-card p { color: #ccc; font-size: 0.95rem; margin-top: 10px; }

.cta-section { margin: 60px 0; width: 100%; text-align: center; max-width: 400px; }
.btn-main { 
    display: inline-block; width: 100%; background: transparent; 
    border: 2px solid var(--primary); color: var(--primary); 
    padding: 18px 0; text-decoration: none; font-weight: 700; font-size: 1.2rem; 
    font-family: 'Orbitron', sans-serif; transition: 0.3s; letter-spacing: 2px;
}
.btn-main:hover { background: var(--primary); color: #000; box-shadow: 0 0 30px var(--primary); }

.cyber-footer { 
    background: #000; border-top: 1px solid rgba(0, 173, 181, 0.2); 
    padding: 50px 20px 20px; font-size: 0.85rem; color: #777; width: 100%; 
}

.footer-grid { 
    width: 100%; max-width: 800px; margin: 0 auto 40px; 
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: left; 
}

.footer-col h4 { 
    color: var(--primary); margin-bottom: 20px; font-size: 0.95rem; 
    font-family: 'Orbitron', sans-serif; letter-spacing: 1px; 
}

.footer-col a { 
    display: block; color: #999; text-decoration: none; margin-bottom: 10px; 
    transition: 0.3s; font-family: 'Inter', sans-serif; cursor: pointer;
}

.footer-col a:hover { color: var(--primary); text-shadow: 0 0 8px rgba(0, 173, 181, 0.5); }

.footer-bottom { 
    text-align: center; border-top: 1px solid #111; padding-top: 25px; 
}

.status-dot { 
    display: inline-block; width: 8px; height: 8px; background: #00ff00; 
    border-radius: 50%; margin-right: 8px; box-shadow: 0 0 8px #00ff00; 
    animation: blink 1.5s infinite; 
}

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

.cyber-modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    justify-content: center; align-items: center; padding: 20px;
}

.cyber-modal-content {
    background: #050505; border: 1px solid var(--primary);
    width: 100%; max-width: 700px; padding: 40px 30px; border-radius: 6px;
    box-shadow: 0 0 40px rgba(0, 173, 181, 0.2); position: relative;
    color: #ccc; max-height: 85vh; overflow-y: auto; text-align: left;
}

.cyber-modal-content .card-glow { font-size: 1.2rem; }

.cyber-modal-content p { font-size: 0.95rem; line-height: 1.8; font-family: 'Inter', sans-serif; }
.cyber-modal-content strong { color: #fff; }

.close-btn {
    position: absolute; right: 20px; top: 20px; color: var(--primary);
    font-size: 30px; font-weight: bold; cursor: pointer; line-height: 1;
    transition: 0.3s; z-index: 2001;
}

.close-btn:hover { color: #fff; text-shadow: 0 0 10px #fff; }