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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    <!-- background: linear-gradient(135deg, #2C5F7C 0%, #8B7355 100%);
    background-attachment: fixed; -->
    min-height: 100vh;
    padding: 20px;
    position: relative;
    background-image: url('../assets/bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    <!-- background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%); -->
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Header */
header {
    background: #333;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #D4AF37;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.logo img {
    max-width: 400px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Main Content */
main {
    padding: 30px 20px;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro h1 {
    color: #2C5F7C;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Countdown */
.countdown-container {
    background: linear-gradient(135deg, #2C5F7C 0%, #8B7355 100%);
    padding: 30px 20px;
    margin: -30px -20px 30px -20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.countdown-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 80px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.countdown-unit {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    font-weight: 500;
}

.description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

.location-box {
    background: linear-gradient(135deg, #2C5F7C10 0%, #8B735510 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid #D4AF3740;
    text-align: center;
}

.location-box h3 {
    color: #2C5F7C;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.location-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #8B7355;
    margin: 10px 0;
}

.location-address {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px 0 15px 0;
}

.maps-link {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #2C5F7C;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2C5F7C;
    margin-top: 10px;
}

.maps-link:hover {
    background: #2C5F7C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 124, 0.3);
}

.info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #D4AF37;
    text-align: left;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.posti-rimasti {
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Form */
.form-section {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2C5F7C;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #2C5F7C;
    background: white;
    box-shadow: 0 4px 12px rgba(44, 95, 124, 0.15);
    transform: translateY(-2px);
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group span {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2C5F7C 0%, #8B7355 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(44, 95, 124, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 95, 124, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(44, 95, 124, 0.3);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3c3;
}

.closed-message {
    text-align: center;
    padding: 30px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 16px;
    }

    header {
        padding: 30px 15px;
    }

    .logo img {
        max-width: 200px;
    }

    main {
        padding: 20px 15px;
    }

    .intro h1 {
        font-size: 1.5rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .countdown-container {
        padding: 25px 15px;
        margin: -20px -15px 25px -15px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        padding: 12px 15px;
        min-width: 70px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-unit {
        font-size: 0.7rem;
    }
}
