@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');
:root {
    --rosso-wt: #E03C31;
    --blu-wt: #002544;
}

* {
    box-sizing: border-box;
    margin: 0;
}

body {
    margin: 0;
    font-family: Roboto, sans-serif;
    background-color: #f1f1f1;
}

h1 {
    text-align: center;
}

h1, h2, h3, h4, h5 {
    margin-top: 1em;
    margin-bottom: .5em;
}

input, textarea, select {
    border: 1px solid silver;
    border-radius: 4px;
    padding: .25rem;
}

input[type="text"], input[type="email"], input[type="number"] {
    width: 20rem;
    font-size: 90%;
    border-top: 1px solid #e3e3e3;
    border-right: 1px solid #e3e3e3;
    border-left: 1px solid #e3e3e3;
    border-bottom: 3px solid var(--blu-wt);
}
input[type="checkbox"], .form-check-label, .form-radio-label {
    margin-right: 1rem;
}
input[readonly], select[disabled] {
    background-color: lightgrey;
    border-color: grey;
    color: grey;
}

abbr {
    text-decoration: underline grey dotted;
    text-underline-offset: 0.25em;
    cursor: help;
}

.page-container {
    width: 70%;
    margin: 0 auto;
    padding: 3rem 4rem;
    background-color: white;
}

.main-logo {
    display: block;
    width: 160px;
    margin: 0 auto 3rem auto;
}

.input-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8em;
}

.form-label {
    width: 40%;
    max-width: 20em;
}

.info {
    margin-top: 0.5em;
    color: #333;
    font-size: 90%;
}

.custom-button, .custom-button-light {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    border: none;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: .5s;
    cursor: pointer;
    text-decoration: none;
}

.custom-button {
    background-color: var(--blu-wt);
}

.custom-button-light {
    background-color: #25669b;
}

.button-group {
  display: flex;
  gap: 1rem;               /* spazio tra i bottoni */
}

.button-group .custom-button {
  flex: 1;                 /* occupa ciascuno metà dello spazio */
  min-width: max-content;  /* almeno tanto largo quanto il suo contenuto */
  white-space: nowrap;     /* impedisce l’andata a capo del testo */
}


.sezione-a-comparsa {
    border: 1px solid silver;
    background-color: #f2f2f2;
    padding: 1em 2em;
    margin-bottom: 1em;
    border-radius: 8px;
}

.mandatory-mark::after {
    content: "*";
    color: red;
}

.error-message {
    color: red;
    margin-left: 1em;
}

.info-message {
    color: #128254;
    margin-left: 1em;
    margin-bottom: 1em;
}

.error-message-block, .success-message-block {
    border-radius: 10px;
    padding: 15px 20px;
    font-weight: bold;
    color: white;
}
.error-message-block {
    background-color: var(--rosso-wt);
}

.success-message-block {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 15px 20px;
    border-radius: 6px;
    background-color: #62deaa;
    border: 2px solid #26a36f;
    color: #333;
    font-weight: bold;
}

.success-message-block .thumbs-icon {
  color: #26a36f;
  font-size: 2rem;
}

@media screen and (max-width: 1100px) {
    .page-container {
        width: auto;
        margin: 0 auto;
        padding: 2em;
    }
    
    select {
        width: 100%;
    }

    input[type="checkbox"] {
        margin-bottom: 0.3em;
    }

    .form-check-label, .form-radio-label {
        display: block;
        margin-bottom: 0.3em;
    }

    .input-container {
        flex-direction: column;
        margin-bottom: 1.5em;
    }

    input[type="text"], input[type="email"], input[type="anno"] {
        width: 16rem;
        font-size: 100%;
    }

    .form-label {
        width: auto;
        max-width: 100%;
        margin-bottom: 0.5em;
    }

}