body {
    font-family: 'Quicksand', sans-serif;
    color: #104779;
    margin: 0;
    padding: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/windmills.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.44;
    z-index: 1;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #72bf44;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    z-index: 0;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;
}

.loading img {
    width: 300px;
    height: auto;
}

.contenitore {
    position: relative;
    background-color: #edf0c2;
    width: 85%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 2;
    padding: 50px 40px;
    text-align: center;
    overflow: hidden;



    margin-top: 10px;
    margin-bottom: 10px;

    z-index: 2;
}

h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;

    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
}

.separatore {
    height: 30px;
}

p.sottotitolo {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.opzioni {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.opzione {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 10px;

}

.opzione:hover {
    transform: scale(1.05);
}

.opzione input[type="radio"] {
    display: none;
}

.opzione .opzione-contenuto {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid transparent;
    padding: 8px;
    transition: border-color 0.3s ease;
    background-color: #ffffff;

    display: flex;
    justify-content: center;
    align-items: center;
}

.opzione .opzione-contenuto img {
    object-fit: contain;
    width: 80px;
    height: 80px;
}

.opzione .opzione-contenuto .immagine-azienda {
    width: 70px;
    height: 70px;
}

.opzione input[type="radio"]:checked+.opzione-contenuto {
    border-color: #104779;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 90%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #104779;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    color: #104779;
}

button[type="submit"] {
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #104779;
    color: #edf0c2;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #0b3560;
}

.foglia {
    position: absolute;
    z-index: 1;
    opacity: 1;
}

.foglia img {
    width: 100%;
    height: auto;
}

.foglia-1 {
    top: 10%;
    left: 5%;
    width: 150px;
    animation: float 4s ease-in-out infinite;
}

.foglia-2 {
    bottom: 15%;
    right: 10%;
    width: 250px;
    animation: float 8s ease-in-out infinite;
}

.foglia-3 {
    top: 20%;
    right: 5%;
    width: 200px;
    animation: float 6s ease-in-out infinite;
}

.messaggio {
    background-color: #ffffffcc;
    border: 2px solid #104779;
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 1rem;
    display: none;
}

.messaggio-successo {
    color: #569207ff;
    font-weight: bold;

    background-color: #4bb3131a;
    border-color: #569207ff;
}


.messaggio-invio {
    color: #104779;
    font-weight: bold;

    background-color: #1047791a;
    border-color: #104779;
}

.messaggio-errore {
    color: #9d0101ff;
    font-weight: bold;

    background-color: #ff00001a;
    border-color: #9d0101ff;
}


/* --- NASTRO PROMO --- */
.ribbon {
    position: absolute;
    top: 20px;
    left: -65px;
    background-color: #d62828;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 80px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 3;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-40px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 20px;
    }

    .contenitore {
        width: 100%;
        max-width: 320px;
        padding: 40px 20px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .separatore {
        height: 20px;
    }

    .opzioni {
        gap: 30px;
    }

    .opzione .opzione-contenuto {
        width: 60px;
        height: 60px;
        padding: 4px;
    }

    .opzione .opzione-contenuto img {
        object-fit: contain;
        width: 50px;
        height: 50px;
    }

    .opzione .opzione-contenuto .immagine-azienda {
        width: 40px;
        height: 40px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        width: 90%;
        max-width: 400px;
        padding: 8px;
        border: 1px solid #104779;
        border-radius: 8px;
        font-size: 14px;
        font-family: 'Quicksand', sans-serif;
        color: #104779;
    }

    .foglia-1 {
        top: 2%;
        left: 5%;
    }

    .foglia-2 {
        bottom: 0%;
        right: 2%;
        width: 150px;
        animation: float 8s ease-in-out infinite;
    }

    .foglia-3 {
        top: 1%;
        right: 5%;
        width: 200px;
        animation: float 6s ease-in-out infinite;
    }

    button[type="submit"] {
        padding: 10px 28px;
        font-size: 16px;
    }

    .ribbon {
        top: 15px;
        left: -50px;
        padding: 8px 60px;
        font-size: 0.6rem;
    }
}

@media (max-width: 400px) {
    .opzioni {
        gap: 15px;
    }
}