/* BACK TO TOP BUTTON */
#back-to-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 48px;
    height: 48px;
    background-color: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    z-index: 9999;
    text-decoration: none;
}

#back-to-top svg {
    width: 20px;
    height: 20px;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
}

div#loading-center {
    background: url(../images/icon.webp);
    background-size: contain;
    animation: rotation 1s linear infinite;
    -webkit-animation: rotation 1s linear infinite;
}

span.loader {
    display: none !important;
}
/* ==========================================================================
   Consensi del form contatti
   ==========================================================================
   Due spunte, e la prima è obbligatoria. La regola generica
   `.contact-form .error` è pensata per le etichette di errore di
   jquery.validate — testo rosso, piccolo, rientrato — e presa così com'è
   rimpicciolirebbe la frase del consenso invece di segnalare la casella.
   Qui si annulla e si segna quello che va segnato: il riquadro. */

.contact-form .contact-form-consent {
    margin-top: 25px;
}

.contact-form .contact-form-consent .form-check {
    padding: 10px 12px 10px 34px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: border-color .2s ease, background-color .2s ease;
}

.contact-form .contact-form-consent .form-check-input {
    margin-left: -22px;
    margin-top: 0.15rem;
    cursor: pointer;
}

.contact-form .contact-form-consent .form-check-label {
    cursor: pointer;
    line-height: 1.5;
}

/* Il contenitore in errore: la frase resta leggibile, è il riquadro a
   parlare. Senza questo `color` e `font-size` la frase erediterebbe quelli
   di `.contact-form .error`, che sono di un'etichetta di errore. */
.contact-form .contact-form-consent .form-check.error {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    padding-left: 34px;
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, .06);
}

.contact-form .contact-form-consent .form-check.error .form-check-input {
    border-color: #e74c3c;
}

.contact-form .contact-form-consent .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(231, 76, 60, .15);
}


/* Home, blocco Risorse: spazio tra le card (il tema lo dà solo con le sue
   classi rows-*, pensate per un numero fisso di righe) */
#risorse-home .fbox-11 {
    margin-bottom: 40px;
}
#risorse-home .fbox-txt h3 a {
    color: inherit;
}
#risorse-home .fbox-txt h3 a:hover {
    color: #5f7d1f;
}
