/* GENERAL RESET & FONT */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;900&display=swap'); /* Aggiunti Space Mono e Orbitron */

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; /* Font generale */
    color: #E0E0E0; /* Grigio chiaro per il testo */
    background-color: #0d041e; /* Sfondo molto scuro simile a OathNet */
    overflow-x: hidden; /* Evita scroll orizzontale */
    scroll-behavior: smooth;
}

/* STARFIELD CANVAS */
#starfield {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Starfield in background */
    pointer-events: none; /* Non blocca gli eventi del mouse sul canvas */
}

/* SPLASH PAGE */
.splash-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: #0d041e; <--- Rimosso/Commentato */
    background-color: transparent; /* Assicura la trasparenza */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* z-index: 100; <--- Rimosso */
    z-index: 51; /* Il canvas è 0, questo lo mette sopra ma non blocca l'interazione */
    opacity: 1;
    transition: opacity 1s ease-in-out;
}
.splash-page.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* AGGIORNATO: Stile logo d7rk Shop nella Splash Page */
.splash-title {
    font-family: 'Space Mono', 'Orbitron', monospace; /* Nuovo font tech */
    font-size: 5em;
    font-weight: 700; /* Il font Space Mono ha solo 400 e 700 */
    
    /* Gradiente di colore simile a OathNet */
    background: linear-gradient(90deg, #bb88ff, #88e0ff); /* Da viola chiaro a ciano chiaro */
    -webkit-background-clip: text; /* Per applicare il gradiente al testo */
    -webkit-text-fill-color: transparent; /* Nasconde il colore del testo, mostrando il gradiente */
    background-clip: text; /* Standard */
    text-fill-color: transparent; /* Standard */

    /* Ombra per un effetto glow sottile */
    text-shadow: 0 0 10px rgba(187, 136, 255, 0.4), 0 0 20px rgba(136, 224, 255, 0.3);
    
    margin-bottom: 30px;
    letter-spacing: 5px; 
}

.explore-button {
    background: linear-gradient(45deg, #7B1FA2, #512DA8); /* Gradiente viola/blu */
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.5em;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(123, 31, 162, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.explore-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(123, 31, 162, 0.8), 0 0 40px rgba(81, 45, 168, 0.6);
}

.explore-button i {
    font-size: 1.2em;
}

/* MAIN CONTENT */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: relative;
    z-index: 1; /* Assicura che il contenuto sia sopra lo starfield */
    min-height: 100vh; /* Per permettere lo scroll */
}

.main-content.visible {
    opacity: 1;
}

.hidden {
    display: none;
}

/* HEADER & NAVBAR - Rimane sticky */
.main-header {
    background-color: rgba(13, 4, 30, 0.95); /* Sfondo semi-trasparente più opaco */
    /* backdrop-filter: blur(5px); */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* AGGIORNATO: Stile logo d7rk Shop nella Navbar */
.logo {
    font-family: 'Space Mono', 'Orbitron', monospace; /* Nuovo font tech */
    font-size: 1.8em;
    font-weight: 700; /* Il font Space Mono ha solo 400 e 700 */
    
    /* Gradiente di colore simile a OathNet */
    background: linear-gradient(90deg, #bb88ff, #88e0ff); /* Da viola chiaro a ciano chiaro */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* Ombra per un effetto glow sottile */
    text-shadow: 0 0 5px rgba(187, 136, 255, 0.3), 0 0 10px rgba(136, 224, 255, 0.2);
    
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #B0B0B0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B1FA2, #512DA8);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #FFFFFF;
}

.nav-links a:hover::after {
    width: 100%;
}

/* HERO SECTION - Ora è un elemento scorrevole separato dall'header */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    max-width: 900px;
    margin: 50px auto 0 auto;
    min-height: calc(100vh - 150px); /* Assicura che riempia la prima vista sotto la nav */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-section h1 {
    font-size: 3.5em;
    color: #F0F0F0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.3em;
    color: #B0B0B0;
    line-height: 1.6;
}

/* SECTION CARDS */
.section-card {
    background-color: rgba(22, 10, 48, 0.7); /* Sfondo carta leggermente più chiaro del body */
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 40px;
    margin: 60px auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(123, 31, 162, 0.2);
    border: 1px solid rgba(123, 31, 162, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(123, 31, 162, 0.4);
}

.section-card h2 {
    font-size: 2.5em;
    color: #E0E0E0;
    border-bottom: 2px solid #512DA8;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-card ul {
    list-style: none;
    padding: 0;
}

.section-card ul li {
    background-color: rgba(30, 15, 60, 0.8);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid #7B1FA2;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.section-card ul li:hover {
    background-color: rgba(40, 20, 70, 0.9);
    transform: translateX(5px);
}

/* COLLAPSABLE SECTIONS */
.collapsable-card {
    cursor: pointer;
    user-select: none; /* Impedisce la selezione del testo nell'header */
}

.collapsable-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #512DA8;
    color: #E0E0E0;
    font-size: 2.5em;
    text-align: center;
}

.collapsable-header i {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.collapsable-card.active .collapsable-header i {
    transform: rotate(180deg);
}

.collapsable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding-top: 0; /* Inizialmente niente padding top */
}

.collapsable-card.active .collapsable-content {
    max-height: 5000px; /* Abbastanza grande da contenere il contenuto */
    padding-top: 20px; /* Aggiungi padding quando si apre */
}

/* SHOP SECTION */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: rgba(30, 15, 60, 0.8);
    border: 1px solid rgba(123, 31, 162, 0.4);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(123, 31, 162, 0.3);
}

.product-card h3 {
    color: #9C27B0; /* Viola più chiaro */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.product-card .price {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFEB3B; /* Giallo per il prezzo */
    margin-bottom: 20px;
}

.product-card ul {
    text-align: left;
    margin-bottom: 25px;
    list-style: disc;
    padding-left: 20px;
}

.product-card ul li {
    background: none;
    border: none;
    padding: 5px 0;
    margin-bottom: 5px;
    font-size: 1em;
    color: #C0C0C0;
    border-left: none;
}

.buy-button {
    background: linear-gradient(45deg, #7B1FA2, #512DA8);
    border: none;
    color: white;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(123, 31, 162, 0.4);
    transition: all 0.3s ease;
}

.buy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(123, 31, 162, 0.6);
}

.payment-info {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: #888;
}

/* CONTACT SECTION */
.contact-info {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: center;
}

.contact-info li {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 1.2em;
    color: #C0C0C0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info li i {
    color: #7B1FA2;
    font-size: 1.4em;
}

.contact-info li a {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info li a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-size: 0.9em;
    color: #888;
    background-color: rgba(13, 4, 30, 0.8);
    border-top: 1px solid rgba(123, 31, 162, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .splash-title {
        font-size: 3em;
        letter-spacing: 2px;
    }
    .logo {
        letter-spacing: 1px;
    }
    .explore-button {
        font-size: 1.2em;
        padding: 10px 25px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .section-card {
        padding: 25px;
        margin: 40px auto;
    }
    .section-card h2 {
        font-size: 2em;
    }
    .collapsable-header {
        font-size: 2em;
    }
    .scenari {
        flex-direction: column;
    }
    /* Regola aggiunta per forzare l'impilamento dei contenuti in griglia sui telefoni */
    .section-card .product-grid {
        grid-template-columns: 1fr !important;
    }
}