/* ==========================================================================
   1. RESET E STILI GENERALI
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212; /* Sfondo scuro di base per tutto il sito */
    color: white;
    line-height: 1.6;
}

/* ==========================================================================
   2. MENU DI NAVIGAZIONE
   ========================================================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000; /* Sempre sopra a tutto */
    background: rgba(0, 0, 0, 0.4); /* Sfondo semi-trasparente */
    backdrop-filter: blur(5px); /* Effetto sfocatura moderno */
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: #ff4b2b; /* Colore accentuato per 'Game' */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #ff4b2b;
}

/* Sottolineatura per il link attivo nelle pagine interne */
.nav-links a.active {
    border-bottom: 2px solid #ff4b2b;
}

/* ==========================================================================
   3. HEADER A TUTTO SCHERMO (HERO SLIDER)
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.slide.active {
    opacity: 1;
}

.content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* ==========================================================================
   4. SLIDER DELLE FINESTRE (CARDS)
   ========================================================================== */
.features {
    padding: 80px 0;
    background-color: #1a1a1a;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; 
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    gap: 20px;
    padding: 0 20px;
}

.feature-card {
    /* Calcolo per mostrare 4 card per volta */
    min-width: calc(25% - 20px); 
    background: #252525;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    text-align: center;
    color: white;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 75, 43, 0.3);
    border-color: #ff4b2b;
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #ff4b2b;
}

.card-body p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ==========================================================================
   5. BOTTONI
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff4b2b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #ff2a00;
    transform: scale(1.05);
}

.btn-small {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff4b2b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-small:hover {
    background-color: #ff2a00;
}

/* ==========================================================================
   6. PAGINE INTERNE (Assistenza, Contatti, ecc.)
   ========================================================================== */
.page-content {
    padding: 120px 20px 50px; /* Spazio superiore per il menu */
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.page-content p {
    margin-bottom: 30px;
    color: #ccc;
}

/* FAQ Assistenza */
.faq-container {
    text-align: left;
    margin-top: 40px;
}

.faq-item {
    background: #252525;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid #ff4b2b;
    color: white;
}

.faq-item h3 {
    margin-bottom: 10px;
    color: #ff4b2b;
}

/* Form Contatti */
.contact-container {
    max-width: 600px;
    margin: 40px auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #252525;
    color: white;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #ff4b2b;
}

/* ==========================================================================
   7. RESPONSIVITÀ (MOBILE & TABLET)
   ========================================================================== */

/* Menu per schermi piccoli */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
    }
    .nav-links {
        margin-top: 15px;
    }
    .nav-links li {
        margin: 0 10px;
    }
    .content h1 {
        font-size: 2.5rem;
    }
}

/* Card Slider responsivo */
@media (max-width: 1024px) {
    .feature-card { min-width: calc(33.33% - 20px); } /* 3 card */
}
@media (max-width: 768px) {
    .feature-card { min-width: calc(50% - 20px); } /* 2 card */
}
@media (max-width: 480px) {
    .feature-card { min-width: calc(100% - 20px); } /* 1 card */
}
