/* --- VARIABILI GLOBALI --- */
:root {
    --bg-dark: #07090f;
    --card-bg: rgba(20, 25, 35, 0.7);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Colori Neon */
    --neon-blue: #00f3ff;
    --neon-green: #00ff66;
    --neon-orange: #ff9900;
    --neon-purple: #b538ff;
    --neon-red: #ff2a5f;
}

/* --- RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(181, 56, 255, 0.05), transparent 25%);
    padding: 2rem 1rem;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-purple); }

/* --- TITOLO --- */
.header-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem); /* Si adatta a mobile e PC */
    font-weight: 800;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 20px rgba(181, 56, 255, 0.3);
}

/* --- LAYOUT ACCORDION (Singola Colonna) --- */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* --- STILE DELLE CARD --- */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- IL SEGRETO DELLA TENDINA (DETAILS & SUMMARY) --- */
details {
    width: 100%;
}

summary {
    list-style: none; /* Nasconde la freccia brutta di default */
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
    border-radius: 12px;
    transition: background 0.3s;
}

summary::-webkit-details-marker {
    display: none; /* Per Safari */
}

summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.card h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ruota la freccia quando apri la tendina */
details[open] .toggle-icon {
    transform: rotate(180deg);
}

.content-wrapper {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
    animation: fadeInDown 0.4s ease forwards;
}

/* Animazione di apertura */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- COLORI SPECIFICI PER CATEGORIA --- */
.cat-1 { border-left: 4px solid var(--neon-blue); }
.cat-1 h2, .cat-1 .toggle-icon { color: var(--neon-blue); }

.cat-2 { border-left: 4px solid var(--neon-green); }
.cat-2 h2, .cat-2 .toggle-icon { color: var(--neon-green); }

.cat-3 { border-left: 4px solid var(--neon-orange); }
.cat-3 h2, .cat-3 .toggle-icon { color: var(--neon-orange); }

.cat-4 { border-left: 4px solid var(--neon-purple); }
.cat-4 h2, .cat-4 .toggle-icon { color: var(--neon-purple); }

.cat-5 { border-left: 4px solid var(--neon-red); }
.cat-5 h2, .cat-5 .toggle-icon { color: var(--neon-red); }


/* --- LISTA DOMANDE --- */
ol {
    list-style: none;
    counter-reset: custom-counter;
    margin-top: 1rem;
}

li {
    position: relative;
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: color 0.2s;
}

li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s;
}

li:hover {
    color: #fff;
}

/* Hover dei numeri basati sulla categoria */
.cat-1 li:hover::before { background: var(--neon-blue); color: #000; box-shadow: 0 0 10px var(--neon-blue); }
.cat-2 li:hover::before { background: var(--neon-green); color: #000; box-shadow: 0 0 10px var(--neon-green); }
.cat-3 li:hover::before { background: var(--neon-orange); color: #000; box-shadow: 0 0 10px var(--neon-orange); }
.cat-4 li:hover::before { background: var(--neon-purple); color: #000; box-shadow: 0 0 10px var(--neon-purple); }
.cat-5 li:hover::before { background: var(--neon-red); color: #fff; box-shadow: 0 0 10px var(--neon-red); }