/* stesso aspetto delle pagine landing (landingmail.php): Open Sans, sfondo grigio, schede bianche, bottoni bootstrap */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTYnF5uFdDttMLvmWuJdhhgs.ttf) format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3aCWcynf_cDxXwCLxiixG1c.ttf) format('truetype');
}

body {
    margin: 0;
    padding: 20px 0;
    background: #EAECED;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
    color: #444;
}

.form-style-5 {
    max-width: 570px;
    margin: 0 auto;
    padding: 0 10px;
}

.form-style-5 h1 {
    font-weight: 200;
    font-size: 24px;
    line-height: 50px;
    color: #555;
    margin: 0 0 10px 20px;
}

.form-style-5 hr {
    display: none;
}

.form-style-5 fieldset {
    background: #fff;
    border: none;
    border-radius: 4px;
    margin: 0 0 20px 0;
    padding: 30px 30px 25px 30px;
}

.form-style-5 legend {
    display: block;
    float: left;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-bottom: 6px;
    font-size: 16px;
    color: #888;
}
.form-style-5 fieldset > form,
.form-style-5 fieldset > br {
    clear: both;
}

/* titolare del trattamento: scheda più discreta */
.form-style-5 fieldset.controller legend {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 2px;
}
.form-style-5 fieldset.controller legend:first-child {
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
}

/* titoli delle sezioni (consensi, dati personali) */
.form-style-5 legend .number {
    display: none;
}
.form-style-5 legend.section_title {
    font-weight: 200;
    font-size: 24px;
    line-height: 34px;
    color: #444;
    margin-bottom: 15px;
}

/* messaggi fuori dalle schede (esito, premessa con l'email) */
.form-style-5 > legend {
    float: none;
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0 20px;
}

.form-style-5 label,
.consent_elem {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #555;
    cursor: pointer;
}
.consent_elem input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: none;
    accent-color: #337ab7;
}

.form-style-5 input[type="email"],
.form-style-5 input[type="text"] {
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    margin-bottom: 15px;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: 0;
}
.form-style-5 input[type="email"]:focus,
.form-style-5 input[type="text"]:focus {
    border-color: #66afe9;
}

/* bottone principale (come btn-primary btn-lg della landing) */
.form-style-5 input[type="submit"],
.form-style-5 input[type="button"] {
    display: block;
    margin: 20px auto 0 auto;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.33;
    color: #fff;
    background: #337ab7;
    border: 1px solid #2e6da4;
    border-radius: 6px;
    cursor: pointer;
}
.form-style-5 input[type="submit"]:hover,
.form-style-5 input[type="button"]:hover {
    background: #286090;
    border-color: #204d74;
}

/* bottone secondario (come btn-default btn-sm della landing) */
.form-style-5 input[type="submit"].secondary {
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 3px;
    color: #333;
    background: #fff;
    border-color: #ccc;
}
.form-style-5 input[type="submit"].secondary:hover {
    background: #e6e6e6;
    border-color: #adadad;
}

.form-style-5 .g-recaptcha {
    margin-bottom: 10px;
}

/* spazi vecchi tra le schede */
.form-style-5 > br {
    display: none;
}

/* richiesta del link via email */
.form-style-5 .card {
    background: #fff;
    border-radius: 4px;
    padding: 30px;
}
.form-style-5 .card input[type="submit"] {
    margin: 0;
}
.form-style-5 .error {
    color: #a94442;
    margin: 0 0 10px 0;
}
.form-style-5 .note {
    font-size: 14px;
    line-height: 22px;
    color: #888;
    margin: 20px 0 0 0;
}

/* esito del salvataggio o della cancellazione */
.form-style-5 > legend.esito {
    color: #3c763d;
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    padding: 12px 20px;
}
