.template-page-main-container {
    padding: 0 0 100px 0 !important;
}

.referti-main-title {
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.referti-main-description {
    background-color: #EDF7FD;
    border-radius: 16px;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.referti-sub-title {
    font-size: 24px;
    line-height: 26px;
    font-weight: 700;
}

.referti-regions-list {
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    /*row-gap: 15px;*/
    /*column-gap: 20px;*/
    margin: 10px 0 50px 0;
    column-count: 2;
}

.referti-regions-list .referti-region-link,
.referti-regions-list .referti-region-name {
    position: relative;
    /*width: calc(50% - 10px);*/
    width: 100%;
    height: 60px;
    background-color: #C1DCEF;
    border-radius: 30px;
    padding: 0;
    color: #2D333D;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.referti-regions-list .referti-region-link.active,
.referti-regions-list .referti-region-link:hover,
.referti-regions-list .referti-region-name.active,
.referti-regions-list .referti-region-name:hover {
    color: white;
    background-color: #2580C8;
}

/* link regioni */
.referti-regions-list .referti-region-link a {
    display: block;
    position: relative;
    width: 100%;
    height: 60px;
    padding: 22px 20px;
}

.referti-regions-list .referti-region-link a:after {
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 25px;
    top: 20px;
    background-image: url(/core/img/referti/referti-link.svg);
    width: 18px;
    height: 18px;
}

.referti-regions-list .referti-region-link:hover a:after {
    background-image: url(/core/img/referti/referti-link-hover.svg);
}

.referti-regions-list .referti-region-link:hover a {
    padding-left: 60px;
}

.referti-regions-list .referti-region-link:hover a:before {
    content: "";
    background-image: url(/core/img/referti/referti-document.svg);
    width: 21px;
    height: 26px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 20px;
    top: 16px;
}

.referti-regions-list .referti-region-link.active a:after {
    background-image: url(/core/img/referti/referti-link-hover.svg);
}


/* div regioni */
.referti-regions-list .referti-region-name {
    cursor: pointer;
    padding: 22px 20px;
}

.referti-regions-list .referti-region-name:after {
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 25px;
    top: 25px;
    background-image: url(/core/img/referti/referti-arrow.svg);
    width: 18px;
    height: 10px;
}

.referti-regions-list .referti-region-name:hover:after {
    background-image: url(/core/img/referti/referti-arrow-hover.svg);
}

.referti-regions-list .referti-region-name.active:after {
    background-image: url(/core/img/referti/referti-arrow-hover.svg);
    transform: rotate(180deg); !important;
}

/* Lista centri */
.referti-centers-block {
    display: none;
    margin: 10px 0 80px 0;
    padding-top: 60px;
    border-top: solid 4px #707070;
}

.referti-centers-block.active {
    display: block;
}

.referti-centers-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.referti-centers-title-row .referti-centers-title {
    color: #2D333D;
    font-size: 24px;
    font-weight: 700;
}

.referti-centers-title-row .referti-centers-searchbar {
    position: relative;
}

.referti-centers-title-row .referti-centers-searchbar input {
    border-radius: 30px;
        border: 0;
        background-color: #E4EDF4;
        width: 500px;
        height: 45px;
        padding: 0 40px 0 20px;
}

.referti-centers-title-row .referti-centers-searchbar:after {
    content: "";
    background-image: url(/core/img/mds_filter_search_icon.svg);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 18px;
    top: 14px;
}

.referti-centers-block #main-centers-list {
    border-top: solid 1px #707070;
    display: flex;
    flex-wrap: wrap;
    column-gap: 80px;
    padding: 5px 0 0 0;
}

.referti-centers-list {
    width: calc(50% - 40px);
    list-style: none !important;
    padding: 0 !important;
}

.referti-centers-list .referti-centers-button {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
}

.referti-centers-list .referti-centers-link {
    display: block;
    position: relative;
    width: 100%;
    min-height: 40px;
    border-bottom: solid 0.25px #707070;
    padding: 6px 20px 6px 0;
    color: #2D333D;
    font-size: 16px;
    font-weight: 400;
}

.referti-centers-list .referti-centers-button:hover,
.referti-centers-list .referti-centers-button:hover .referti-centers-link {
    color: white;
    background-color: #3ABEBE;
    border-bottom: 0;
    border-radius: 19px;
}

.referti-centers-list .referti-centers-button .referti-centers-link:after {
    content: "";
    background-image: url(/core/img/referti/referti-link-centro.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    top: 13px;
    height: 12px;
    width: 12px;
}

.referti-centers-list .referti-centers-button:hover .referti-centers-link:after {
    background-image: url(/core/img/referti/referti-link-hover.svg);
}

.centers-not-found {
    width: 100%;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.centers-not-found p {
    font-size: 20px;
    color: grey;
}

/* Barra ricerca Mobile, sotto ai bottoni regioni */
.referti-regions-list .referti-centers-title-row,
.referti-regions-list .referti-centers-list {
    display: none !important;
    width: 100%;
    list-style: none;
}

.referti-regions-list .referti-centers-title-row {
    margin: 10px 0 20px 0;
    padding-top: 30px;
    border-top: solid 4px #707070;
    display: block;
}

.referti-regions-list .referti-centers-title-row p {
    margin-bottom: 15px;
}

.referti-regions-list .referti-centers-searchbar input {
    width: 100%;
}

.referti-regions-list .referti-centers-list {
    margin-bottom: 30px;
    padding: 20px 0 0 0;
    border-top: solid 1px #707070;
}


/* incerba */
.referti-incerba-blocco {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background-image: url(/core/img/referti/referti-sfondo-incerba.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    width: 100%;
    height: 270px;
    padding: 22px 30px;
    margin-bottom: 30px;
}

.referti-incerba-testo p {
    font-size: 34px;
    letter-spacing: -0.5px;
    line-height: 34px;
    text-align: end;
}

.referti-incerba-testo .referti-incerba-button {
    display: block;
    width: fit-content;
    max-width: 220px;
    background: transparent linear-gradient(0deg, #6BB7D4 20%, #83E3CD 100%) 0% 0% no-repeat padding-box !important;
    color: white !important;
    border: 0px solid white !important;
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    font-weight: 800;
    padding: 12px 40px;
    border-radius: 50px;
    margin: 26px 0 0 auto;
}

/* telemedicina */
.telemedicina-referti-flex {
    display: flex;
    align-items: center;
    background-color: #d1e3eb;
    padding: 40px 35px;
    border-radius: 15px;
    gap: 30px;
}

.telemedicina-referti-block {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 65%;
}

.telemedicina-referti-block .telemedicina-referti-title {
    font-family: 'Roboto Black',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 42px;
    letter-spacing: -3px;
    color: #2580C8;
    margin-bottom: 10px;
}

.telemedicina-referti-block .telemedicina-referti-text {
    font-size: 16px;
}

/* MEDIA QUERIES */

@media all and (max-width: 1100px) {

    .referti-centers-block #main-centers-list {
        column-gap: 24px;
    }

    .referti-centers-list {
        width: calc(50% - 12px);
    }

    body .et_pb_button.button-telemedicina,
    body .et_pb_button.button-telemedicina:hover {
        width: 300px  !important;
        height: 65px  !important;
        padding: 21px 0 0 30px !important;
        color: white !important;
    }

    body .et_pb_button.button-telemedicina:after,
    body .et_pb_button.button-telemedicina:hover::after {
        content: url(/core/img/referti/referti-telemedicina-icon.svg);
        background-size: contain;
        background-repeat: no-repeat;
        margin-left: 25px !important;
        margin-top: -1px;
        width: 28px !important;
        height: 27px;
        font-size: 0;
    }

}

@media all and (max-width: 980px) {

    .referti-centers-block #main-centers-list {
        flex-direction: column;
        column-gap: 0;
    }

    .referti-centers-list {
        width: 100%;
    }

    .referti-centers-title-row {
        flex-direction: column;
        row-gap: 15px;
    }

}

@media all and (max-width: 850px) {

    .telemedicina-referti-flex {
        flex-direction: column;
    }

    body .et_pb_button.button-telemedicina,
    body .et_pb_button.button-telemedicina:hover {
        width: 300px  !important;
        height: 44px !important;
        padding: 10px 0 0 30px !important;
        font-size: 16px;
    }

    .telemedicina-referti-block {
        width: 100%;
    }

}

@media all and (max-width: 700px) {

    .referti-incerba-testo p b span {
        display: none;
    }

}

@media all and (max-width: 580px) {

    .cerba_breadcrumbs {
        margin-bottom: 30px;
        margin-top: 20px;
    }

    .referti-main-title {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .referti-main-description {
        background-color: unset;
        border-radius: 0;
        padding: 0 10px;
    }

    .referti-regions-list {
        column-count: 1;
    }

    .referti-regions-list .referti-region-link,
    .referti-regions-list .referti-region-name {
        width: 100%;
    }

    .referti-centers-block {
        display: none !important;
    }

    .referti-regions-list .referti-centers-title-row.active,
    .referti-regions-list .referti-centers-list.active {
        display: block !important;
    }

    .telemedicina-referti-block div {
        text-align: center;
    }

    .telemedicina-referti-block img {
        display: none;
    }

    .button-telemedicina-block {
        width: auto;
    }

    .referti-incerba-blocco {
        display: block;
        position: relative;
    }

    .referti-incerba-logo {
        position: absolute;
        bottom: 15px;
        left: 15px;
    }
}

@media all and (max-width: 420px) {

    .referti-incerba-blocco {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .referti-incerba-logo {
        position: relative;
        bottom: unset;
        left: unset;
        margin-right: auto;
        margin-bottom: 25px;
    }

    .referti-incerba-testo p {
        font-size: 28px;
    }

}

@media all and (max-width: 350px) {

    .et_pb_button.button-telemedicina,
    .et_pb_button.button-telemedicina:hover{
        width: 250px !important;
    }

    .referti-incerba-blocco {
        padding: 22px 22px;
    }

    .referti-incerba-testo p br {
        display: none;
    }

}
