/* Reset & Variabili Tech */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: cell; /* Cursore a croce tech */
}

:root {
    --bg-dark: #030303;
    --text-main: #cdcdcd;
    --neon-green: #00ff41; /* Verde Matrix */
    --neon-green-dim: rgba(0, 255, 65, 0.2);
    --border-color: #1a1a1a;
    --font-mono: 'Fira Code', monospace;
    --font-tech: 'Space Mono', monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-mono);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Effetti di Sfondo CRT */
.scanline {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%);
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.3;
}

/* Header */
.tech-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    background-color: #050505;
}

.brand {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.brand .bracket { color: #444; }
.brand .highlight {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-dim);
}

.system-status {
    font-size: 0.75rem;
    color: #666;
}

.status-ok { color: var(--neon-green); font-weight: bold; }

@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1s infinite; color: red; }

/* Hero Tech */
.hero-matrix {
    padding: 60px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.console-output {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 20px;
    border-left: 2px solid #222;
    padding-left: 10px;
}

.prompt { color: var(--neon-green); }

.tech-title {
    font-family: var(--font-tech);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -2px;
}

/* Navigazione a Matrice (Card Tech) */
.matrix-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-block {
    background-color: #050505;
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
}

/* Angoli Tech Tagliati */
.corner-top-left {
    position: absolute;
    top: -1px; left: -1px;
    width: 15px; height: 15px;
    border-top: 2px solid var(--neon-green);
    border-left: 2px solid var(--neon-green);
}

.nav-block:hover {
    border-color: var(--neon-green-dim);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.block-id {
    font-size: 0.7rem;
    color: #444;
    display: block;
    margin-bottom: 10px;
}

.nav-block h3 {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.nav-block p {
    font-size: 0.9rem;
    color: #777;
    transition: color 0.3s;
}

.nav-block:hover p {
    color: #aaa;
}