/* ==== FIX BOOSTRAP ==== */
.d-flex {
    display: flex;
}
.mb-0 {
    margin-bottom: 0!important;
}
/* ==== ==== ==== */

/* ==== FIX LAYOUT ==== */
.get-quote-section:before {
    background: rgba(255, 255, 255, 0.8)!important;
}
/* ==== ==== ==== */

/* ==== ==== ==== */

.form-group label {
    font-size: 13px;
    font-weight: unset!important;
    line-height: 15px;
    margin-left: 15px;
    cursor: pointer;
}

.form-group textarea,
.form-group input {
    background-color: #FFF!important;
}

.form-group .checkbox {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.form-group .checkbox:before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.form-group .checkbox:checked:before {
    content: '\2713';
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #0cb8cf;
    border: 1px solid #0cb8cf;
    border-radius: 3px;
    color: #fff;
    text-align: center;
    line-height: 25px;
    font-size: 18px;
}
.form-group .checkbox {
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

/* =========================================================
   WHATSAPP FLOAT BUTTON
   Pulsante fisso in basso a destra, visibile su tutte le pagine
   ========================================================= */
.whatsapp-widget{
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 999999;
    width: 320px;
    height: 58px;
}

.whatsapp-float{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: width .25s ease, transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.whatsapp-icon{
    width: 58px;
    min-width: 58px;
    height: 58px;
    display: block;
    text-align: center;
    line-height: 58px;
    flex: 0 0 58px;
    color: #fff;
}

.whatsapp-icon i{
    font-size: 30px;
    line-height: 58px;
}

.whatsapp-label{
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    transition: max-width .25s ease, opacity .2s ease, margin-right .25s ease;
    margin-right: 0;
}

.whatsapp-float:hover,
.whatsapp-float:focus{
    color: #fff;
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
    text-decoration: none;
    width: 210px;
}

.whatsapp-float:hover .whatsapp-label,
.whatsapp-float:focus .whatsapp-label{
    max-width: 140px;
    opacity: 1;
    margin-right: 12px;
}

.whatsapp-panel{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    pointer-events: none;
}

.whatsapp-widget.is-open .whatsapp-panel{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.whatsapp-widget.is-open .whatsapp-float{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.whatsapp-panel-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.whatsapp-panel-close{
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    padding: 0;
    cursor: pointer;
}

.whatsapp-panel-textarea{
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    background: #fff;
}

.whatsapp-panel-form{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-panel-send{
    display: inline-block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #25D366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.whatsapp-panel-send:hover,
.whatsapp-panel-send:focus{
    background: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

/* Variante mobile */
@media only screen and (max-width: 767px){
    .whatsapp-widget{
        right: 14px;
        bottom: 74px;
        width: min(86vw, 290px);
    }

    .whatsapp-float{
        width: 52px;
        height: 52px;
    }

    .whatsapp-icon{
        width: 52px;
        min-width: 52px;
        height: 52px;
        flex-basis: 52px;
        line-height: 52px;
    }

    .whatsapp-icon i{
        font-size: 28px;
        line-height: 52px;
    }

    .whatsapp-float:hover,
    .whatsapp-float:focus{
        width: 190px;
    }

    .whatsapp-panel{
        width: min(86vw, 290px);
    }
}
