/* Personalizzazioni per la versione WM6 del sito */

/* Font titoli (era uno <style> inline nell'head originale) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.t-h1, .t-h2, .t-h3, .t-h4, .t-h5, .t-h6 {
    font-family: Oswald, sans-serif;
}

/* Voce di menu attiva: sostituisce i vari home.css, faq.css, contatti.css, ecc. dell'originale */
.navbar-nav > li > a.current::before {
    background: #0073b7 none repeat scroll 0 0;
    content: "";
    height: 3px;
    position: absolute;
    top: -2px;
    width: 100%;
}
.dropdown-menu-kemper li a.current {
    color: rgba(0, 115, 183, 1);
}

/* Footer: titoli resi con <p class="h3/h4"> per rispettare la gerarchia degli heading */
footer .footer-company {
    color: #fff;
}
footer .copytext .footer-copyright {
    padding: 20px 0 0;
    color: #999;
    font-size: 16px;
    font-weight: 400;
}

/* Popup ouibounce: titolo reso con <p> */
#ouibounce-modal .ouibounce-title {
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.1;
    margin: .2em;
    text-align: center;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Form WM6 (fe/ae) adattati alla grafica dei form originali          */
/* ------------------------------------------------------------------ */
.d-none {
    display: none !important;
}

/* textfield/select: label sopra il campo come nell'originale */
.general-form .form-floating {
    display: flex;
    flex-direction: column;
}
/* ordine come nell'originale: label, campo, errore sotto il campo */
.general-form .form-floating > label {
    order: -1;
}
.general-form .form-floating > .invalid-feedback {
    order: 1;
}
.general-form .form-floating > label {
    color: #242424;
    font-weight: 400;
    line-height: 21px;
    margin: 15px 0 5px;
}
.general-form .form-floating > label span,
.general-form h2 strong span {
    color: inherit;
}
.general-form .form-select {
    border: 1px solid #cecece;
    border-radius: 0;
    box-shadow: none;
    color: #242424;
    display: block;
    font-size: inherit;
    height: 40px;
    margin-bottom: 15px;
    padding: 6px 12px;
    width: 100%;
    background: #fff;
}

.general-form .invalid-feedback {
    color: #f00;
    font-size: 13px;
    margin: -10px 0 10px;
}
.general-form .form-check .invalid-feedback {
    flex-basis: 100%;
    margin: 5px 0 0;
}
/* select stilizzate con dropkick (come nell'originale): il container eredita le classi della select */
.general-form .dk_container.form-select {
    background: transparent;
    height: auto;
    margin-bottom: 15px;
    padding: 0;
}
.general-form .dk_toggle {
    color: #242424;
}
.general-form .dk_container:has(.is-invalid) .dk_toggle {
    border-color: #f00 !important;
}
.general-form .dk_container + .invalid-feedback {
    margin-top: -10px;
}
.general-form .is-invalid {
    border-color: #f00 !important;
}
.general-form .cloud-icons img {
    margin-left: 10px;
}

/* checkbox: grafica "label_check" dell'originale (immagini check-on/check-off) */
.general-form .list-group {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 10px -15px 0;
    padding: 0;
}
.general-form .list-group-item {
    background: transparent;
    border: 0;
    border-radius: 0 !important;
    margin: 0;
    padding: 0 15px;
    width: 33.3333%;
}
/* errore dei gruppi di checkbox: sotto le opzioni */
.general-form .checkbox-columns > .invalid-feedback {
    margin: 0 0 10px;
}
.general-form .form-check {
    background: url(images/check-off.png) no-repeat;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 15px;
    min-height: 40px;
    padding-left: 50px;
    position: relative;
}
.general-form .form-check:has(.form-check-input:checked) {
    background-image: url(images/check-on.png);
}
.general-form .form-check-input {
    cursor: pointer;
    height: 40px;
    left: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 40px;
}
.general-form .form-check-label {
    cursor: pointer;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
}
.general-form .form-consents {
    padding-top: 20px;
}
.general-form .form-consents .form-check-label {
    font-size: 85%;
}
@media (max-width: 991px) {
    .general-form .list-group-item {
        width: 50%;
    }
}
@media (max-width: 767px) {
    .general-form .list-group-item {
        width: 100%;
    }
}

/* bottone submit generato da ae() */
.general-form .btn.d-inline-flex {
    display: inline-block !important;
}

/* consenso privacy: testo lungo in piccolo come nell'originale */
.general-form .form-consents .form-check-label a {
    text-decoration: underline;
}

/* alert "Correggi gli errori" del form-processor (markup Bootstrap 5 su Bootstrap 3) */
.general-form [errormsgcontainerwrapper] {
    clear: both;
    padding-top: 20px;
}
.general-form #errorMsgContainer:focus {
    outline: 0;
}
.general-form #errorMsgContainer .alert {
    border-radius: 0;
    margin: 0;
    opacity: 1;
    padding: 15px 40px 15px 15px;
    position: relative;
    text-align: center;
}
.general-form #errorMsgContainer .btn-close {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    opacity: .5;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 13px;
}
.general-form #errorMsgContainer .btn-close::before {
    content: "\00d7";
}
.general-form #errorMsgContainer .btn-close:hover {
    opacity: .8;
}

/* form "Richiedi subito un preventivo" nella sidebar dei sistemi (campi senza margine sotto) */
.sidebar .general-form .form-floating > label {
    color: #fff;
}
.sidebar .general-form .invalid-feedback {
    margin: 5px 0 0;
}
.sidebar .general-form [errormsgcontainerwrapper] {
    padding-top: 15px;
}
.sidebar .general-form #errorMsgContainer .alert {
    font-size: 13px;
}
