.path-webform #main-wrapper {
    padding: 100px 0 0 0;
}

.webform-confirmation {
    padding: 150px 0;
}

form.webform-submission-form {
    max-width: 40vw;
    margin: 0 auto;
}

@media screen and (max-width: 1024px) {
    form.webform-submission-form {
        max-width: 70vw;
    }
}

@media screen and (max-width: 576px) {
    form.webform-submission-form {
        max-width: 100%;
        padding: 0 15px;
    }
}

.radio label {
    padding: 0;
    margin-right: 1em;
    padding-top: 3px;
}
.radio input {
    margin-top: 9px;
}

/* distanza tra campi del form */
.webform-flexbox,
fieldset.js-form-item {
    margin-top: .35em;
    margin-bottom: .35em;
    padding: 0;
}

/* riga di indirizzo stessa larghezza del resto del form */
fieldset > fieldset {
    margin-left: 0;
    margin-right: 0;
}

/* font e allineamento label dei campi */
span.fieldset-legend,
label {
    font-family: Ubuntu;
    font-size: 16px;
    margin: .2em 0;
}

.form-item-provide-evidence > label {
    font-weight: 700;
}

.path-webform label.form-required::after,
.path-webform span.form-required::after {
    content: '*';
    color: var(--green);
    font-size: 22px;
    font-weight: 500;
    position: relative;
    left: .3em;
    top: 0;
    line-height: .1em;
    display: inline-block;
}

/* allineamento opzioni radio a input field */
.path-webform legend {
    margin-bottom: .2em;
}

fieldset.webform-address--wrapper.fieldgroup {
    margin: 1rem 0;
    margin-top: 2em;
}

/* altezza label upload file */
/*fieldset.form-type-managed-file label {
    min-height: 3em;
}*/

/* format bottone submit */
.form-actions {
    max-width: 200px;
    margin: 20px auto;
}

.path-webform .form-actions {
    position: relative;
    /*margin-bottom: 100px;*/
}

.path-webform .form-actions input {
    font-size: 16px;
    padding: 1.1em;
    margin-top: 0 !important;
}

/* input fields */
fieldset.js-form-item input.form-text.form-control,
fieldset.js-form-item select.form-select.form-control {
    height: 40px;
    padding: .5em 1em;
    margin: 0;
}

.js-form-item .form-control.form-textarea {
    min-height: 6em;
}

.js-form-item.form-type-textarea .description br,
.js-form-item.form-type-textfield .description br {
    display: none;
}

.js-form-item .description .webform-element-description {
    margin-bottom: .5em;
}

/* spacing titoli form */
.webform-submission-form > h2:first-of-type {
    margin-top: 0;
}

h2 {
    margin-top: 1em;
}

/* banner finale */
div.referencing-entities {
    display: none;
}

/* flexbox attachments */
#edit-attach-title.webform-flexbox {
    display: flex;
    flex-direction: column;
}

#edit-attach-title.webform-flexbox fieldset .webform-element-description {
    text-align: right;
}

/* subscribe hint sotto al pulsante submit */
/*form div#edit-social-hint,
form div#edit-subscribe-hint {
    top: 110px;
}*/

form div#edit-social-hint {
    position: relative;
    font-size: .95em;
    text-align: justify;
    max-width: 100%;
    margin: 0 auto;
}

#edit-subscribe-hint {
    position: relative;
    font-size: .95em;
    text-align: justify;
    max-width: 100%;
    margin: 0 auto;
}

/*@media (max-width: 1024px) {
    #edit-subscribe-hint {
        top: 130px;
    }

    form div#edit-social-hint {
        top: 130px;
    }
}*/

.path-webform #edit-subscribe-hint br {
    display: none;
}

/* webform confirmation message */
form.webform-submission-form .webform-confirmation > .webform-confirmation__message > p {
    text-align: justify;
    max-width: 100%;
    font-size: .95em;
    line-height: 1.5em;
}

form.webform-submission-form .webform-confirmation > .webform-confirmation__message > p:first-of-type {
    font-weight: 700;
}