@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/fixedsys-excelsior-301');

:root {
    --bg-color: #000000;
    --accent: #b026ff; 
    --accent-glow: rgba(176, 38, 255, 0.8);
    --accent-core: #e0aaff; 
    --text-main: #f3f4f6;
}

/* --- RESET E BASE --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color) !important;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

#matrix {
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 0; 
    pointer-events: none;
}

/* --- ANIMAZIONI --- */
@keyframes susanooShield {
    0%, 100% {
        box-shadow: 0 0 10px rgba(176, 38, 255, 0.2), inset 0 0 10px rgba(176, 38, 255, 0.1);
        border-color: rgba(176, 38, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(176, 38, 255, 0.7), inset 0 0 20px rgba(176, 38, 255, 0.3);
        border-color: var(--accent-core);
    }
}

/* --- LAYOUT --- */
.matrix-hero {
    position: relative;
    z-index: 2;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.name-container {
    width: 100%;
    max-width: 1200px;
}

/* --- TITOLO PRINCIPALE --- */
.glitch-target {
    font-size: clamp(2.5rem, 7vw, 5.5rem); 
    font-family: 'Fixedsys Excelsior 3.01', monospace; 
    color: var(--accent-core); 
    text-shadow: 0 0 15px var(--accent-glow), 0 0 30px var(--accent);
    margin: 0 auto;
    display: block;
    white-space: nowrap;      
    letter-spacing: 0.1em;    
}

/* --- TAGLINE (SOTTO IL NOME) --- */
.tagline {
    font-family: 'Fixedsys Excelsior 3.01', monospace;
    color: #d8b4fe;
    font-size: 1.2rem;
    position: relative;
    top: 25px; 
    margin: 0;
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.4);
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.tagline.reveal { opacity: 1; }

/* --- NAVIGAZIONE --- */
.hero-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    z-index: 20;
}

.hero-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: text-shadow 0.3s;
}

.hero-nav a:hover {
    text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

/* --- GRIGLIA CARD (PAGINE SECONDARIE) --- */
.container { 
    max-width: 850px; 
    margin: 0 auto; 
    padding: 40px 20px; 
    position: relative; 
    z-index: 3; 
}

.grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.card { 
    background: #05000a; 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid rgba(176, 38, 255, 0.3);
    transition: 0.3s;
}

.card:hover {
    animation: susanooShield 2s infinite ease-in-out;
    transform: translateY(-5px);
}

/* --- UNIFORMAZIONE MENU MOBILE + LINEA LED (Esclusa Home) --- */
@media (max-width: 768px) {
    body:not(.home-page) .hero-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: none !important;
        padding-bottom: 12px !important;
        
        /* LA LINEA LED */
        border-bottom: 1px solid #bc13fe !important; 
        box-shadow: 0 6px 12px -3px rgba(188, 19, 254, 0.8) !important;
        
        margin: 0 auto 25px auto !important;
    }

    body:not(.home-page) .hero-nav a { 
        text-align: center !important;
        font-size: 13px !important;
        order: initial !important; 
    }
	
/* --- MENU FISSO IN ALTO (STICKY) SU MOBILE --- */
        body:not(.home-page) .page-header {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            z-index: 1000 !important; /* Lo tiene sempre in primissimo piano */
            background: rgba(0, 0, 0, 0.92) !important; /* Sfondo nero quasi opaco */
            backdrop-filter: blur(8px) !important; /* Effetto vetro elegante */
        }

        /* --- COMPENSAZIONE SPAZIO --- */
        /* Dato che il menu ora "galleggia", spingiamo giù il contenuto 
           altrimenti il titolo della pagina finirebbe nascosto sotto al menu */
        body:not(.home-page) .content-wrapper {
            padding-top: 110px !important; 
        }
}