:root {
    --primary-color: #d4af37; /* Gold */
    --background-color: #0d131a; /* Deep sea blue/black */
    --text-color: #e0e0e0;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: hidden;
    padding: 2rem 0; /* Aggiunto padding per evitare che tocchi i bordi su schermi piccoli */
    /* Placeholder for a nice 1400s historical background or portolan map */
    background: url('bg.png') no-repeat center center/cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle, transparent 20%, #0d131a 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 4rem;
    max-width: 900px;
    animation: fadeIn 2.5s ease-in-out;
    
    /* Glassmorphism Panel for perfect readability */
    background: rgba(13, 19, 26, 0.65); /* Sfondo scuro semi-trasparente */
    backdrop-filter: blur(8px); /* Effetto vetro smerigliato sul portolano */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.2); /* Bordo oro leggerissimo */
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7); /* Ombra profonda */
}

.game-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.game-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 1px;
}

.game-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.cta-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Countdown Page Styles --- */
.countdown-content {
    max-width: 800px;
    padding: 2.5rem 3rem;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    min-width: 100px;
}

.time-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.time-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
}

.perk-box {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    font-size: 1.1rem;
}

.perk-box strong {
    color: var(--primary-color);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .email-form {
        flex-direction: row;
        justify-content: center;
    }
}

#email-input {
    flex: 1;
    max-width: 400px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

#email-input:focus {
    border-color: var(--primary-color);
}

.form-button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-link:hover {
    color: var(--primary-color);
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 2rem;
    text-align: left;
    font-size: 0.85rem;
    color: #aaa;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-consent input[type="checkbox"] {
    margin-top: 0.3rem;
    cursor: pointer;
}

/* --- Layout & Navigation --- */
.scrollable-page {
    overflow-y: auto;
}
.layout-section {
    min-height: 100vh;
    height: auto;
    padding: 120px 20px 50px;
    align-items: flex-start;
}
.text-left {
    text-align: left;
}

.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.nav-cta {
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.1);
}
.nav-cta:hover {
    background: var(--primary-color) !important;
    color: var(--background-color) !important;
}

/* --- Articles & Typography --- */
.article-content h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    letter-spacing: 1px;
}
.article-content p {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* --- Roadmap Grid --- */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.roadmap-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s;
}
.roadmap-item:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
}
.roadmap-item h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.status-completed { background: rgba(76, 175, 80, 0.2); color: #4caf50; border: 1px solid #4caf50; }
.status-progress { background: rgba(212, 175, 55, 0.2); color: var(--primary-color); border: 1px solid var(--primary-color); }
.status-pending { background: rgba(158, 158, 158, 0.2); color: #9e9e9e; border: 1px solid #9e9e9e; }

/* --- Hamburger Menu CSS --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }
    .main-nav {
        flex-direction: column;
        padding: 1rem;
        background: rgba(0,0,0,0.95);
        align-items: flex-start;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 1.5rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .hero-content {
        padding: 2rem 1.5rem;
        width: 92%;
        margin-top: 2rem;
    }
    .game-title {
        font-size: 2.2rem;
    }
    .game-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    .game-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .countdown-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .time-box {
        min-width: 80px;
        padding: 0.8rem 1rem;
    }
    .time-value {
        font-size: 2rem;
    }
    .layout-section {
        padding: 160px 15px 40px; 
    }
    .privacy-container {
        margin: 6rem 1rem 2rem;
        padding: 1.5rem;
    }
    .cta-button {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

/* --- Footer & Socials --- */
.site-footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0,0,0,0.8);
    color: #ccc;
    font-size: 0.9rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 10;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.social-btn:hover {
    background: var(--primary-color);
    color: #000;
}
