:root {
    --bg-main: #1d2a42;
    --red-brand: #cd1a31;
    --yellow-brand: #ffcc00;
    --whatsapp-green: #25D366;
    --text-white: #ffffff;
    --text-gray: #a8b3c8;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* --- LOGO RESTART --- */
.restart-logo {
    width: 100%;
    max-width: 250px;
    transform: rotate(-4deg);
    margin-bottom: 30px;
}

/* --- BOX POZZUOLI --- */
.pozzuoli-box {
    background-color: var(--red-brand);
    padding: 10px 40px;
    font-family: 'Bebas Neue', cursive;
    font-size: 5rem;
    letter-spacing: 5px;
    line-height: 1;
    display: inline-block;
    margin-bottom: 20px;
}

/* --- TITOLO E SOTTOTITOLO --- */
.sub-heading {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.locations-line {
    font-size: 0.9rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 40px;
    white-space: nowrap;
}

/* --- PULSANTI AZIONE (PARTECIPA E WHATSAPP) --- */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.register-btn {
    background-color: var(--yellow-brand);
    color: #111;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    transition: all 0.3s ease;
}

.register-btn:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.whatsapp-btn {
    background-color: var(--whatsapp-green);
    color: var(--text-white);
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- BANNER ROSSO (QUI. ORA. INSIEME.) --- */
.red-banner {
    background-color: var(--red-brand);
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem; /* Reso più piccolo */
    padding: 10px 50px;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* --- LOGHI PARTITI IN BASSO --- */
.bottom-logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.party-logo {
    max-height: 100px; /* Logo M5S ancora più grande */
    width: auto;
    object-fit: contain;
}

/* --- BARRA GIALLA FINALE --- */
.yellow-footer {
    background-color: var(--yellow-brand);
    width: 100%;
    height: 25px;
}

/* --- MODALE (POPUP) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--text-white);
    color: #111;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

.close-btn:hover {
    color: var(--red-brand);
}

.modal-content h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: var(--bg-main);
    margin-bottom: 10px;
    text-align: center;
}

.modal-intro {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

/* --- CHECKBOX PRIVACY --- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

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

.checkbox-group label {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0;
    color: #333;
}

.checkbox-group a {
    color: var(--red-brand);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-white);
    border: none;
    padding: 12px;
    margin-top: 10px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--red-brand);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .pozzuoli-box {
        font-size: 3.5rem;
        padding: 10px 25px;
    }

    .sub-heading {
        font-size: 1.2rem;
    }

    .locations-line {
        font-size: 2.8vw; 
        letter-spacing: 0px; 
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        padding: 0 10px;
        margin-bottom: 40px;
    }

    .register-btn, .whatsapp-btn {
        width: 100%;
        text-align: center;
    }
    
    .red-banner {
        font-size: 1.8rem; /* Reso più piccolo anche su mobile */
        padding: 8px 30px; 
    }

    .party-logo {
        max-height: 80px; /* Logo più grande anche su mobile */
    }
}