:root {
    --primary: #6705A5;
    --bg: #000000; /* SFONDO NERO */
    --text: #ffffff;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Animazione Entrata */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NUOVO EFFETTO NEON SPOTLIGHT --- */

.neon-wrapper {
    position: relative;
    overflow: hidden;
    filter: brightness(200%);
    /* Centriamo il blocco */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 30px auto;
    /* Adattiamo la larghezza al contenuto */
    width: fit-content; 
    isolation: isolate;
    background-color: black;
    border-radius: 0px;
}

.text {
    background-color: black;
    color: white;
    /* Ho reso il font responsive: min 3rem, max 10rem */
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    /* Usiamo il font del sito invece di sans-serif generico */
    font-family: var(--font-display); 
    text-transform: uppercase;
    position: relative;
    user-select: none;
    z-index: 1;
    text-align: center;
    line-height: 0.9;
}

.text::before {
    content: attr(data-text);
    position: absolute;
    color: white;
    filter: blur(0.01em);
    mix-blend-mode: difference;
    z-index: 2;
    width: 100%;
    left: 0;
    text-align: center;
}

.gradient {
    position: absolute;
    /* Usiamo un gradiente che include un tocco del tuo viola per coerenza */
    background: linear-gradient(45deg, white, white, white, white, white);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    mix-blend-mode: multiply;
    z-index: 3;
    pointer-events: none;
}

.spotlight {
    position: absolute;
    top: -100%;
    left: -100%;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            circle,
            white,
            transparent 25%
        ) center / 25% 25%,
        radial-gradient(
            circle,
            white,
            black 25%
        ) center / 12.5% 12.5%;
    animation: light 5s linear infinite;
    mix-blend-mode: color-dodge;
    z-index: 4;
    pointer-events: none;
}

@keyframes light {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(25%, 25%);
    }
    100% {
        transform: translate(50%, 50%);
    }
}

.albums-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .albums-container { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

.album-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #222;
}
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.album-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: flex; flex-direction: column;
    justify-content: center; align-items: center; opacity: 0; transition: 0.3s;
}
.album-card:hover .album-overlay { opacity: 1; }
.album-card:hover img { transform: scale(1.1); }

.album-overlay h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0; color: white; }
.album-overlay span { font-family: var(--font-tech); color: var(--primary); text-transform: uppercase; margin-top: 5px; }

.page-section { display: none; padding: 20px; animation: fadeInUp 0.6s ease forwards; }
.page-section.active { display: block; }
.hidden { display: none !important; }

.btn-main {
     background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white;
     padding: 10px 25px; font-family: var(--font-tech); text-transform: uppercase;
     cursor: pointer; transition: 0.3s; display: block; margin: 0 auto 50px auto;
}
.btn-main:hover { border-color: var(--primary); background: rgba(103, 5, 165, 0.2); }

/* Lightbox e Bio layout */
.bio-content { display: flex; flex-direction: column; gap: 40px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 768px) { .bio-content { flex-direction: row; justify-content: space-between; } .bio-text { width: 50%; } .bio-image-wrapper { width: 40%; } }

.bio-image-wrapper img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 10px 10px 0px var(--primary); }
.section-title { font-family: var(--font-display); font-size: 2.5rem; margin-top: 0; color: white; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.gallery-item { aspect-ratio: 1/1; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox { position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.visible { opacity: 1; pointer-events: auto; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
#lightbox-img { max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: white; font-size: 3rem; cursor: pointer; padding: 20px; z-index: 2001; }
.prev { left: 10px; } .next { right: 10px; }
.close-lightbox { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; cursor: pointer; z-index: 2002; }
footer { text-align: center; padding: 40px; border-top: 1px solid #111; margin-top: 50px; }
.copyright { color: #555; font-size: 0.8rem; text-transform: uppercase; }
.back-btn { background: none; border: none; color: #888; font-family: var(--font-tech); font-size: 1.2rem; cursor: pointer; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }

/* Contenitore dei pulsanti */
.bio-contacts {
    display: flex;
    gap: 15px;              /* Spazio tra un pulsante e l'altro */
    flex-wrap: wrap;        /* Manda a capo su schermi piccoli */
    margin-top: 20px;       /* Distanza dal testo sopra */
}

/* Stile base del pulsante */
.bio-contacts a {
    display: inline-flex;   /* Mantiene allineati icona e testo */
    align-items: center;
    text-decoration: none;  /* Rimuove la sottolineatura blu brutta */
    background-color: #222; /* Sfondo scuro (puoi cambiarlo) */
    color: #fff;            /* Testo bianco */
    padding: 12px 24px;     /* Spazio interno: 12px sopra/sotto, 24px ai lati */
    border-radius: 50px;    /* Arrotondamento massimo (pillola) */
    font-weight: 600;       /* Testo un po' più grassetto */
    font-size: 14px;
    transition: all 0.3s ease; /* Animazione fluida */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Ombretta leggera */
}

/* Spazio tra icona e testo */
.bio-contacts a i {
    margin-right: 8px;
    font-size: 16px;
}

/* Effetto al passaggio del mouse (Hover) */
.bio-contacts a:hover {
    background-color: #444;       /* Diventa più chiaro */
    transform: translateY(-3px);  /* Si sposta leggermente in alto */
    box-shadow: 0 6px 20px rgba(0,0,0,0.2); /* L'ombra aumenta */
}

/* --- FIX DEFINITIVO: NO DISSOLVENZA SUL TITOLO --- */

/* 1. Blocchiamo l'animazione generale sulla sezione Home */
/* In questo modo il contenitore (e quindi il titolo) appare subito, solido e senza bug */
#home.page-section {
    animation: none !important;
    opacity: 1 !important;
}

/* 2. Il titolo deve essere subito visibile e statico (a parte l'effetto luce interno) */
.neon-wrapper {
    opacity: 1 !important;
    animation: none !important; /* Nessuna animazione di entrata/zoom */
}

/* 3. Spostiamo la dissolvenza SOLO sugli elementi sotto il titolo */
/* Il pulsante Bio e la griglia degli album appariranno sfumando */
#home .btn-main,
#home .albums-container {
    opacity: 0; /* Partono nascosti */
    animation: fadeInUp 1s ease forwards; /* Usano la stessa animazione di prima */
    animation-delay: 0.2s; /* Un piccolo ritardo per eleganza */
}
