:root {
    --verde-acqua: #00C9A7;
    --rosso-mela: #E63946;
    --bianco: #FFFFFF;
    --grigio-chiaro: #F5F5F5;
    --testo: #222;
}
input[type="date"] {
  width: 100%;
}

/* PRELOADER */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background: var(--bianco);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.heart {
    width: 60px;
    height: 60px;
    background: var(--rosso-mela);
    transform: rotate(45deg);
    animation: beat 0.8s infinite alternate ease-in-out;
}

.heart::before,
.heart::after {
    content: "";
    width: 60px;
    height: 60px;
    background: var(--rosso-mela);
    position: absolute;
    border-radius: 50%;
}

.heart::before { top: -30px; }
.heart::after { left: -30px; }

@keyframes beat {
    from { transform: scale(1) rotate(45deg); }
    to   { transform: scale(1.2) rotate(45deg); }
}

/* HEADER */
.header {
    background: var(--verde-acqua);
    text-align: center;
    padding: 30px 20px;
    color: var(--bianco);
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-container {
    max-width: 800px;
    margin: auto;
    background: var(--bianco);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

form h2 {
    margin-top: 30px;
    color: var(--verde-acqua);
}

label {
    margin-top: 15px;
    font-weight: 600;
    display: block;
}

input, select, textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 1rem;
    margin-top: 5px;
}

textarea {
    min-height: 70px;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit {
    width: 100%;
    margin-top: 30px;
    padding: 12px;
    background: var(--rosso-mela);
    color: var(--bianco);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-submit:hover {
    opacity: 0.9;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RIEPILOGO INTELLIGENTE */
.riepilogo {
    background: var(--grigio-chiaro);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--verde-acqua);
    margin-top: 10px;
    display: none;
}
.form-group {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.4;
}

.form-group a {
  color: #0056b3;
  text-decoration: underline;
}