/* Reset leggero */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Font di sistema per buona resa mobile */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #123040 0, #050914 55%, #020308 100%);
    color: #fdfaf4;
    line-height: 1.6;
}

/* Layout generale */
.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

/* Header con immagine/colore natalizio */
.site-header {
    position: relative;
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(
        135deg,
        #0f2533 0%,
        #174a3b 45%,
        #7a1c26 100%
    );
    color: #fdfaf4;
    overflow: hidden;
}

/* Effetto lucine / overlay */
.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.75;
}

.site-header::before {
    width: 180px;
    height: 180px;
    background: #ffd27f;
    top: -40px;
    left: -40px;
}

.site-header::after {
    width: 240px;
    height: 240px;
    background: #ff8a80;
    bottom: -80px;
    right: -60px;
}

.header-overlay {
    position: relative;
    z-index: 1;
}

.site-header h1 {
    font-size: 1.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.site-header .subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Card */
.card {
    background: rgba(7, 19, 31, 0.92);
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
    margin-top: 1.1rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: #ffe3b3;
}

.card p,
.card li {
    font-size: 0.98rem;
}

/* Liste */
.rules ul,
.next-steps ol {
    margin-left: 1.2rem;
    margin-top: 0.4rem;
}

.rules li,
.next-steps li {
    margin-bottom: 0.4rem;
}

/* Mappa */
.map-wrapper {
    margin-top: 0.8rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 227, 179, 0.35);
}

.map-image {
    display: block;
    width: 100%;
    height: auto;
}

.map-link a {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: #ffe3b3;
    text-decoration: underline;
}

/* Testo finale */
.closing-text {
    margin-top: 0.8rem;
    font-style: italic;
    color: #ffecce;
}

/* Pulsante primario */
.primary-button {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ffb347, #ff6f61);
    color: #1a130f;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.primary-button:active,
.primary-button:focus-visible {
    outline: none;
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.button-help {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 1.4rem 1rem 2rem;
    font-size: 0.85rem;
    color: #d7d0c4;
}

.site-footer a {
    color: #ffe3b3;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 227, 179, 0.7);
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsivo per schermi più grandi */
@media (min-width: 768px) {
    .site-header h1 {
        font-size: 2.4rem;
    }

    .card {
        padding: 1.6rem 1.5rem;
        margin-top: 1.3rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem 3rem;
    }
}