/* Variabili CSS */
:root {
    --primary-color: #e10600; /* Rosso F1 */
    --secondary-color: #15151e; /* Blu scuro quasi nero */
    --accent-color: #f0f0f0; /* Grigio chiaro */
    --text-color: #333333;
    --background-color: #ffffff;
    --header-font: 'Orbitron', sans-serif;
    --body-font: 'Titillium Web', sans-serif;
}

/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.section-title {
    font-family: var(--header-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features .section-title {
    color: white;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 15px auto 0;
}

.highlight {
    color: var(--primary-color);
}

/* Header e navigazione */
header {
    background-color: var(--secondary-color);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--header-font);
    font-size: 1.8rem;
    color: white;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--header-font);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(225, 6, 0, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(225, 6, 0, 0.4);
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 15px rgba(225, 6, 0, 0.4);
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
}

.language-selector span {
    margin-right: 8px;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: none;
    z-index: 101;
    min-width: 120px;
}

.language-selector:hover .language-options {
    display: block;
}

.language-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(rgba(21, 21, 30, 0.7), rgba(21, 21, 30, 0.8)), url('images/9.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-family: var(--header-font);
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: white;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.game-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.game-mode {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    color: white;
}

.game-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/grid-pattern.png') repeat;
    opacity: 0.03;
    z-index: 0;
}

.game-mode:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.mode-title {
    font-family: var(--header-font);
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.mode-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: white;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), rgba(225, 6, 0, 0.05));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(225, 6, 0, 0.2);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.2), rgba(225, 6, 0, 0.1));
}

.feature-card h3 {
    font-family: var(--header-font);
    margin-bottom: 1rem;
    color: white;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.youtube-banner {
    margin-bottom: 3rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.youtube-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), transparent);
    z-index: 1;
}

.youtube-banner-content {
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.youtube-icon {
    font-size: 3.5rem;
    color: #FF0000;
    flex: 0 0 auto;
    margin-right: 1rem;
}

.youtube-text {
    flex: 1;
    color: white;
    min-width: 200px;
}

.youtube-text h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.youtube-text p {
    opacity: 0.9;
}

.youtube-button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #FF0000;
    border-color: #FF0000;
    transition: all 0.3s ease;
}

.youtube-button:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}



/* Development Section */
.development {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

/* Beta Tester Section */
.beta {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: white;
}

.beta .section-title {
    color: white;
}

.beta-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.beta-text {
    flex: 1;
    min-width: 300px;
}

.beta-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.beta-benefits {
    margin: 2rem 0;
    padding-left: 0.5rem;
}

.beta-benefits li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.beta-benefits i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.beta-form {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.beta-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

.beta-form form {
    position: relative;
    z-index: 2;
}

.coming-soon-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: #e74c3c;
    color: white;
    padding: 8px 30px;
    font-family: var(--header-font);
    font-size: 1rem;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.07);
    color: white;
    font-family: var(--body-font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.form-submit {
    margin-top: 2rem;
}

#form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
    display: none;
}

#form-message.success {
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    display: block;
}

#form-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    display: block;
}

#form-message.info {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    display: block;
}

/* Stile per form disabilitato */
button[disabled],
.cta-button.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.03);
}

.development-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.development-text {
    flex: 1;
}

.development-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.development-text h3 {
    font-family: var(--header-font);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.development-text p {
    margin-bottom: 1.5rem;
}

.development-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.development-list li {
    margin-bottom: 1rem;
    position: relative;
    list-style-type: none;
}

.development-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.development-text .cta-button {
    margin-top: 1rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    background-color: #f9f9f9;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(rgba(21, 21, 30, 0.85), rgba(21, 21, 30, 0.9)), url('images/10.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.download p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.coming-soon-message {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(52, 152, 219, 0.2);
    padding: 1rem;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    font-family: var(--header-font);
    margin-bottom: 1rem;
}

.footer-links h3, .footer-social h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 20px;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox-caption {
    color: white;
    font-size: 1.2rem;
    padding: 15px;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(225, 6, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* Questa è la correzione chiave */
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .development-content,
    .beta-content {
        flex-direction: column;
    }

    .development-text {
        order: 2;
    }

    .development-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .beta-text,
    .beta-form {
        width: 100%;
    }

    .youtube-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .youtube-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .youtube-text {
        margin-bottom: 1rem;
    }

    /* Lightbox mobile */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    #lightbox-img {
        max-width: 95%;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }

    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }


}
