@font-face {
    font-display: swap;
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/sourcesanspro-light-webfont.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/sourcesanspro-regular-webfont.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/sourcesanspro-bold-webfont.woff2") format("woff2");
}

:root {
    --font-sans-serif: "Source Sans Pro", sans-serif;
    --main-color: #005387;
    --main-color-dark: #003759;
    --green-color: #249556;
    --green-color-dark: #176b40;
    --green-color-light: #eaf6ef;
    --lime-color: #dff2a7;
    --black-color: #333333;
    --gray-color-10: #f1f1f1;
    --gray-color-20: #e1e1e1;
    --gray-color-30: #dcdcdc;
    --gray-color-40: #cacaca;
    --gray-color-50: #b6b6b6;
    --gray-color-60: #a5a5a5;
    --gray-color-70: #979797;
    --gray-color-80: #878787;
    --gray-color-90: #777777;
    --gray-color-100: #515151;
    --hero-min-h: 550px;
    --notice-bar-h: 46px;
}

body {
    font-family: var(--font-sans-serif);
    font-size: 16px;
    line-height: 1.5;
    color: var(--black-color);
}

a {
    color: var(--main-color);
}

h2 {
    font-size: clamp(1.375rem, 1rem + 1.2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--black-color);
    margin: 0;
}

.container {
    max-width: 1700px;
}

.font-12 {
    font-size: 12px;
}

.font-14 {
    font-size: 14px;
}

.font-18 {
    font-size: 18px;
}

.font-24 {
    font-size: clamp(16px, 1.5vw + 12px, 24px);
}

.font-32 {
    font-size: clamp(26px, 1vw + 23px, 32px);
}

.color-blue {
    color: var(--main-color);
}

.color-gray-80 {
    color: var(--gray-color-80);
}

.color-gray-90 {
    color: var(--gray-color-90);
}

.bg-gray-10 {
    background-color: var(--gray-color-10);
}

.bg-primary {
    background-color: var(--main-color) !important;
}

.bg-green {
    background-color: var(--green-color) !important;
}

.btn-primary {
    font-weight: 500;
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    transition: all .3s ease-in-out;
}

    .btn-primary:hover {
        background-color: var(--main-color);
        border-color: var(--main-color);
        opacity: 0.7;
    }

.btn-secondary {
    font-weight: 500;
    background-color: var(--green-color);
    border-color: var(--green-color);
    color: #fff;
    transition: all .3s ease-in-out;
}

    .btn-secondary:hover {
        background-color: var(--green-color);
        border-color: var(--green-color);
        opacity: 0.7;
    }

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    color: #fff;
    background: rgba(122, 122, 122, .85);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    cursor: pointer;
    /* nascosto di default: gestito via JS con .is-visible */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .18s ease;
}

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

    .back-to-top:hover {
        background: rgba(122, 122, 122, 1);
    }

    .back-to-top:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
    }

.back-to-top__icon {
    font-size: 20px;
    line-height: 1;
}

.back-to-top__label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

/* ---- BREADCRUMB ---- */
.breadcrumbs {
    font-size: 14px;
    color: var(--gray-color-100);
}

    .breadcrumbs a {
        text-decoration: none;
        color: inherit;
    }

        .breadcrumbs a:hover {
            text-decoration: underline;
            color: var(--green-color-dark);
        }

    .breadcrumbs .sep {
        padding: 0 8px;
        color: #98a39d;
    }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .rounded-0-mob {
        border-radius: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }

    .back-to-top__icon {
        font-size: 20px;
    }

    .back-to-top__label {
        font-size: 13px;
    }
}

/* ---- Riduzione movimento ---- */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity .25s ease, visibility .25s ease;
        transform: none;
    }

        .back-to-top.is-visible {
            transform: none;
        }
}

/* Offcanvas Add to Cart */
.cf-mobal-popup .modal-footer .btn + .btn {
    margin-left: 5px;
}

.cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content .cf-pop-allicons .cf-star {
    display: inline;
}

.cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content .cf-pop-allicons .cf-pop-heart {
    display: inline;
    padding: 0px 5px;
}

    .cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content .cf-pop-allicons .cf-pop-heart img {
        width: 18px;
    }

.cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content .cf-pop-allicons .cf-pop-cart {
    display: inline;
}

    .cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content .cf-pop-allicons .cf-pop-cart img {
        width: 25px;
    }

.cf-mobal-popup.modal.fade .modal-dialog {
    position: absolute;
    margin: 0px;
    inset: 0px 0px 100% auto;
    height: 100%;
    width: 360px;
    transform: translate(100%, 0);
}

.cf-mobal-popup.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.cf-mobal-popup .modal-content {
    border: none;
    height: 100%;
}

.cf-mobal-popup .modal-header .modal-title span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.cf-mobal-popup .modal-header {
    display: block;
    padding: 20px;
    border-bottom: none;
    background: rgb(0, 83, 135);
    color: rgb(255, 255, 255) !important;
    border-radius: 0px;
}

.cf-mobal-popup .modal-body .cf-pop-heading {
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 0;
}

.cf-mobal-popup .modal-body .cf_sidePopup_box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    border-bottom: 1px solid rgb(170, 170, 170);
    padding: 20px 0px;
}

    .cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-img img {
        width: 100px;
    }

    .cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content {
        display: inline-block;
    }

        .cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content .cf-pop-text {
            font-size: 14px;
            font-weight: 600;
            line-height: 16px;
        }

        .cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content .cf-pop-price {
            color: rgb(0, 83, 135);
            font-size: 14px;
            font-weight: 600;
            margin: 5px 0px;
        }

        .cf-mobal-popup .modal-body .cf_sidePopup_box .cf_pop-content .cf-pop-allicons {
            display: inline-block;
        }

.cf-mobal-popup.modal {
    z-index: 2147483647;
}

.cf-mobal-popup .btn-outline:hover {
    color: rgb(255, 255, 255);
    background-color: rgb(36, 149, 86);
    border: 1px solid rgb(36, 149, 86);
}

.cf-mobal-popup.cf-modal-add-cart .modal-body {
    height: calc(100% - 286px);
    padding-bottom: 50px;
    background-color: rgb(249, 249, 249);
    overflow: hidden auto;
    flex-grow: 0;
}

.cf-mobal-popup.cf-modal-add-cart .modal-footer {
    position: absolute;
    bottom: 0px;
    right: 0px;
    left: 0px;
    background: rgb(255, 255, 255);
    z-index: 10;
    display: block;
    border-radius: 0px;
}

.cf-mobal-popup .btn-green {
    color: rgb(255, 255, 255);
    text-decoration: none;
    background: rgb(3, 130, 75);
}

.cf-mobal-popup .btn-outline-green {
    color: rgb(3, 130, 75);
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(3, 130, 75);
}

.cf-mobal-popup.cf-modal-add-cart .modal-footer .btn {
    font-size: 14px;
    line-height: 1;
    padding: 15px 10px;
    text-align: center;
    flex: 1 1 auto;
    display: inline-block;
    margin-bottom: 0;
    font-weight: 700;
    '' text-transform: uppercase;
}

.cf-mobal-popup.cf-modal-add-cart .check-circle {
    background-color: rgb(3, 130, 75);
    color: rgb(255, 255, 255);
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    padding: 8px;
}

.cf-mobal-popup .cf_pop-product-add-img {
    width: auto;
    height: 120px;
    flex: 0 0 auto;
}

    .cf-mobal-popup .cf_pop-product-add-img img {
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

.cf-mobal-popup .cf-modal-add-cart-info-product {
    display: flex;
    gap: 15px;
}

.cf-mobal-popup .cf_pop-product-add-img-price {
    font-size: 18px;
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 0;
}

.cf-mobal-popup.cf-modal-add-cart .modal-header .modal-title.cf_pop-product-add-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    line-height: 14px;
}

@media screen and (max-width: 480px) {
    .cf-mobal-popup.cf-modal-add-cart .modal-dialog {
        width: 100% !important;
    }
}

.cf-mobal-popup .feedaty-stars-container .feedaty-stars-background {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    z-index: 1;
    background-color: rgb(240, 172, 1);
}

.cf-mobal-popup .feedaty-stars-container .feedaty-stars-icons {
    position: relative;
    background-image: url("https://www.cfadda.com/images/rating-background.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.cf-mobal-popup .feedaty-stars-container {
    position: relative;
    width: 80px;
    height: 15px;
    background-color: rgb(185, 185, 185);
    display: inline-grid;
}

@media (max-width: 480px) {
    :root {
        --notice-bar-h: 32px;
    }
}