body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 98vw;
    max-width: 500px;
    height: 70vh; /* <-- altezza desiderata */
    padding: 10px;
    background-color: #f4f4f4;
    border: 2px solid #494848;
    border-radius: 4px;
}
.centro {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* fondamentale */
    height: 100%; /* prende tutto lo spazio disponibile */
    width: 98vw;
    max-width: 500px;
}

.form-fields {
    flex-grow: 1; /* fa espandere i campi */
}

.label-group {
    display: flex;
    justify-content: space-evenly;
    margin-top: 8px;
    color: #696868;
}

label {
    display: block;
    margin-top: 8px;
    margin-left: 3px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
}

.item {
    width: 50%;
    font-size: 12px;
    text-align: left;
    margin-left: 3px;
}

input, select, button {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: #fafafa;
    border: 1px solid #696868;
    border-radius: 5px;
    box-sizing: border-box;
}

#center { text-align: center; }

input[type="checkbox"] {
    background: #e0e0e0;
    border: 1px #9a9a9a;
    height: 25px;
    width: 25px;
}

input[type="text"]:read-only {
    background: #e0e0e0;
    cursor: no-drop;
}

:required {
    border:1px solid #f93257;
}

select option:first-child:disabled {
    background-color: white;
}

button {
    background: #333;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

button:hover {
    background: #555;
}

.button-secondary {
    background: #777;
}

.button-secondary:hover {
    background: #999;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 20px; /* utile se serve più spinta verso il basso */
}

.button-group button {
    flex: 1;
}

.space-group {
    display: flex;
    gap: 10px;
}
