:root {
    --header-menu-position: unset;
    --header-sticky-fill: 200px;
}

/*changing standard .dropright arrow menu animation */
.btn-group.dropright .btn-dropdown[aria-expanded=true] .icon-expand, .dropdown.dropright .btn-dropdown[aria-expanded=true] .icon-expand {
    transform: rotate(-90deg) scaleY(-1);
}

/*header navbar: does not work on firefox*/
.navbar *::-webkit-scrollbar {
    width: 5px;
}
.navbar *::-webkit-scrollbar-track {
    background: lightgray;
}
.navbar *::-webkit-scrollbar-thumb {
    background: #004277;
}

.loader-animated-error {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    background: crimson;
    box-sizing: border-box;
}

.loader-animated-error:after {
    content: '!';
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: crimson;
    padding-top: 4px;
    box-sizing: border-box;
    left: 50%;
    top: 50%;position: absolute;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
}

.arpa-forms-inner .btn-primary {
    background-color: #0B4A83;
}

.arpa-forms-inner .btn-primary:hover {
    background-color: #09355e;
}

section {
    padding: 30px 0;
}

.ytp-external-link-icon,
.ytp-legacy-external-link-icon,
.ytp-template-external-link-icon {
    top: 3px;
    right: 10px;
    position: absolute;
}

.ytp-container:hover {
    background-color: aliceblue;
    transition: .2s ease-out;
}

.it-header-slim-wrapper {
    background-color: #297a38;
}
.it-header-navbar-wrapper {
    background-color: #d4dee6;
    text-transform: uppercase;
}
.it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li .nav-link {
    color: #000;
    font-size: 9.5pt;
    font-weight: 700;
}

.modal-header-container .nav-item:hover {
    background-color: aliceblue;
    transition: .2s ease-out;
}

.modal-header-container .focus--mouse {
    border-color: transparent !important;
}

.it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li {
    border-bottom: 1px solid #d4dee6;
}

.it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li a.nav-link {
    padding: 13px 0;
}

.it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper .it-brand-text {
    padding-right: 24px;
    padding-left: 10px;
    margin-left: 32px;
    display: flex;
}
.it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper {
    display: flex;
}
.it-footer-small-prints {
    background-color: #00264d;
}
.it-footer-small-prints .flex-md-row {
    font-weight: 700;   
    text-transform: uppercase;
}
.it-footer-small-prints .footer-copyright {
    text-align: center;
    color: #fff;
    font-size: 14px;
    padding: 1.5rem 1rem;
}
.it-access-top-wrapper {
    background-color: #022847;
    display: flex;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
.it-header-wrapper .logo {
    height: auto;
    width: 90%;
}
.it-header-wrapper .logo-rl {
    height: 52px;
    margin-bottom: 2px; 
}
.it-header-wrapper.is-sticky .logo {
    display: none;
}
.it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper .link-list li {
    border: 1px solid #d4dee6;
    padding-left: 0.6rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}
.it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper ul li a {
    line-height: 1rem;
}
.it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper ul li a span {
    color: #000;
    font-weight: 700;
    font-size: 8pt;
    line-height: 0.8rem;
    margin-bottom: 0.2rem;
}
.it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper ul li a.icon-right .icon, .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li a.nav-link.dropdown-toggle .icon {
    font-weight: 700;
    font-size: 14px;
    fill: #000 !important;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 0;
}
.it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper .link-list li:hover {
    background-color: #004277;
}
.it-header-navbar-wrapper .navbar .dropdown-menu > .link-list-wrapper > .link-list > li:hover > a > span {
    color: #fff;
    text-decoration: none;
}
.it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper ul li:hover a:not(.disabled) .icon {
    fill: #fff !important;
}

.it-header-navbar-wrapper .custom-navbar-toggler svg {
    fill: #004277;
    border: 0px solid white;
    transition: .1s ease;
}
.it-header-navbar-wrapper .custom-navbar-toggler:hover svg {
    fill: #0066cc;
}
.it-header-navbar-wrapper .custom-navbar-toggler:active svg {
    border: 2px solid white;
    fill: steelblue;
}


.it-header-wrapper .it-nav-wrapper .it-header-navbar-wrapper {
    top: unset;
    margin-top: -3.5rem;
}
.it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li.nav-item .nav-link {
    display: flex;
    align-self: flex-end;
    align-items: center;
    text-align: left;
    border-top: 4px solid transparent;
}

.back-to-top.back-to-top-show {
    border: 2px solid #09355e;
    background-color: #0073e6;
}

.back-to-top.back-to-top-show:hover {
    background: #09355e;
    text-decoration: none;
}

.it-list-wrapper .it-list a .it-right-zone svg.external-link {
    margin-right: 0;    
}

/* GENERAZIONE ICONA COLLAPSE (coerenza colore titolo paragrafo; icona custom: viene generata a runtime partendo da un modello di Inkscape) */
.collapse-div .collapse-header [data-toggle=collapse]:before {
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' id='svg7' sodipodi:docname='collapseIconBlue.svg' inkscape:version='1.2 (dc2aedaf03, 2022-05-15)' inkscape:export-filename='tabIconBlue.png' inkscape:export-xdpi='256' inkscape:export-ydpi='256' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns:cc='http://creativecommons.org/ns%23' xmlns:dc='http://purl.org/dc/elements/1.1/'%3E%3Cdefs id='defs11' /%3E%3Csodipodi:namedview id='namedview9' pagecolor='%23ffffff' bordercolor='%23999999' borderopacity='1' inkscape:showpageshadow='0' inkscape:pageopacity='0' inkscape:pagecheckerboard='0' inkscape:deskcolor='%23d1d1d1' showgrid='false' inkscape:zoom='34.208333' inkscape:cx='11.532278' inkscape:cy='13.242387' inkscape:window-width='1920' inkscape:window-height='986' inkscape:window-x='2869' inkscape:window-y='-11' inkscape:window-maximized='1' inkscape:current-layer='svg7' /%3E%3Ctitle id='title2'%3Eit-collapse%3C/title%3E%3Cg id='Livello_13' data-name='Livello 13' style='fill:%23004177;fill-opacity:1'%3E%3Cpath fill='%237FB2E5' d='M12,10.25,16.77,15a.75.75,0,0,0,1.06,0,.74.74,0,0,0,0-1.06L13.06,9.19a1.51,1.51,0,0,0-2.12,0L6.17,14a.74.74,0,0,0,0,1.06.75.75,0,0,0,1.06,0Z' id='path4' style='fill:%23004177;fill-opacity:1' /%3E%3C/g%3E%3Cmetadata id='metadata1933'%3E%3Crdf:RDF%3E%3Ccc:Work rdf:about=''%3E%3Cdc:title%3Eit-collapse%3C/dc:title%3E%3C/cc:Work%3E%3C/rdf:RDF%3E%3C/metadata%3E%3C/svg%3E");
    color: #004177;
}

/* TAB VERDE */
div#myDesktopTab #myTab.nav.nav-tabs {
    overflow-x: hidden;
    flex-wrap: wrap;
}

/* SPALLA DESTRA */
.spalla-destra-container {
    padding-left: 20px;
}
.spalla-destra-container .spalla-destra-title {
    text-transform: uppercase;
    color: #004177;
}
.spalla-destra-container .it-list-wrapper .it-list a .it-right-zone {
    padding: 24px 16px;
    margin-left: 0;
}

.spalla-destra-container .link-sublist {
    list-style-type: none;
    padding: 24px 16px;
}

.spalla-destra-container .link-sublist li{
    list-style-type: none;
    padding: 12px 0px;
}
/* PHOTOGALLERY */
.section-evidenza-hp .it-carousel-wrapper.it-carousel-landscape-abstract, .it-carousel-wrapper.it-carousel-landscape-abstract-3 {
    height: 100%;
}

.section-evidenza-hp .it-carousel-wrapper > div:first-child {
    height: 100%;
}

.section-evidenza-hp .it-carousel-wrapper .splide__track {
    padding-top: 0px;
}

.section-evidenza-hp .it-carousel-wrapper.it-carousel-landscape-abstract .splide__pagination {
    margin-left: 80px;
    bottom: 20px;
    left: 65%;
}

.section-evidenza-hp .it-carousel-wrapper .splide__pagination button {
    background-color: #fff;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}

.section-evidenza-hp .it-hero-wrapper .it-hero-text-wrapper .it-btn-container {
    bottom: -20px;
    margin-top: 0px;
}

.section-evidenza-hp .it-hero-wrapper .it-hero-text-wrapper .it-btn-container .h4 {
    font-weight: 700;
    color: #fff;
}

/* YOUTUBE */
.ytp-playlist-button:not([aria-disabled=true]):not([disabled]):not([aria-hidden=true]) {
    cursor: pointer;
}

.ytp-playlist-large-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 30px;
    margin-left: -34px;
    -moz-transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);
    -webkit-transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);
    transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);
    z-index: 9;
}

.ytp-playlist-button:focus, .ytp-playlist-button {
    outline: 0;
}

.ytp-playlist-button {
    border: none;
    background-color: transparent;
    padding: 0;
    color: inherit;
    text-align: inherit;
    font-size: 100%;
    font-family: inherit;
    cursor: default;
    line-height: inherit;
}

.ytp-playlist-large-play-button svg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.ytp-playlist-large-play-button.ytp-legacy {
    margin-top: -40px;
}

.ytp-playlist-large-play-button-bg {
    -moz-transition: fill .1s cubic-bezier(0.4,0.0,1,1),fill-opacity .1s cubic-bezier(0.4,0.0,1,1);
    -webkit-transition: fill .1s cubic-bezier(0.4,0.0,1,1),fill-opacity .1s cubic-bezier(0.4,0.0,1,1);
    transition: fill .1s cubic-bezier(0.4,0.0,1,1),fill-opacity .1s cubic-bezier(0.4,0.0,1,1);
    fill: #212121;
    fill-opacity: .8;
}

.ytp-playlist-large-play-button:hover .ytp-playlist-large-play-button-bg {
    fill: #ff0000;
    fill-opacity: 1;
}

/* BREADCRUMB */
.breadcrumb-container .breadcrumb .breadcrumb-item {
    color: #5b6f82;
    font-weight: 600;
}

.breadcrumb {
    margin-bottom: 0;
}

/* RichText table changes */
.p-custom table {
    border-color: #b9c7d6;
    background-color: white !important;
}

.p-custom table td {
    border-color: #b9c7d6;
}

.p-custom table tbody tr:nth-child(even) {
    background-color: #f6f7f9;
}

.p-custom table tbody tr:first-child {
    background-color: #004080;
    color: white;
    font-weight: 600;
}

.p-custom table tr:hover {
    background-color: #e5f1fa !important;
    transition: .2s ease-out;
}

.p-custom table tr:first-child:hover {
    background-color: #004080 !important;
}

@media (min-width: 992px) {

    .it-header-wrapper .logo {
        height: auto;
        width: 92%;
    }

    .it-header-wrapper.it-header-sticky.is-sticky .it-header-navbar-wrapper .menu-wrapper {
        display: block;
    }
    .it-header-slim-wrapper .collapse:not(.show) {
        justify-content: flex-start;
    }
    .it-header-slim-wrapper .it-header-slim-wrapper-content {
        padding: 0px;
        text-transform: uppercase;
    }
    .it-header-slim-wrapper .it-header-slim-wrapper-content .nav-mobile ul.link-list a {
        font-size: 13px;
        font-weight: 500;
        padding-top: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
        padding-right: 20px;
        padding-right: 1.5vw;
    }
    .it-header-slim-wrapper .it-header-slim-wrapper-content .nav-mobile ul.link-list {
        border: none;
        padding: 0px;
    }
    
    .it-header-slim-wrapper .it-header-slim-wrapper-content .it-right-zone {
        display: flex;
        align-items: center;
        margin-right: 20px;
    }
    .it-header-slim-wrapper .it-header-slim-wrapper-content .it-right-zone .it-socials {
        align-items: center;
        font-size: .889em;
    }
    .it-header-slim-wrapper .it-header-slim-wrapper-content .it-right-zone .it-socials ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
    }
    .it-header-slim-wrapper .it-header-slim-wrapper-content .it-right-zone .it-socials ul .icon {
        width: 24px;
        height: 24px;
        margin-left: 16px;
    }
    .it-header-wrapper .it-nav-wrapper .it-header-navbar-wrapper nav {
        padding: 0;
    }
    .it-header-center-wrapper .it-header-center-content-wrapper {
        padding: 0;
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper {
        margin-left: 0;
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper .form-group {
        margin-bottom: 0;
        display: flex;
        border: 1px solid #022847;
        align-items: center;
        border-radius: 24px;
        padding: 0 5px;
        background-color: white;
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper .form-group > input {
        border: none;
        height: 2rem;
        width: 90%;
        background-color: transparent;
        color: #022847;
        border-radius:12px;
        font-size: 15px;
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper button[type=submit] {
        background: rgb(2,40,71);
        border:2px solid rgb(2,40,71);
        transition: .2s ease-out;
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper button[type=submit]:hover {
        background: rgb(11,50,131);
        border:2px solid rgb(11,50,131);
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper button[type=submit]:active {
        background: steelblue;
        border:2px solid steelblue !important;
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper button[type=submit].rounded-icon {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper .rounded-icon svg {
        position: absolute;
        right: 9px;
        width: 20px;
        height: 20px;
    }
    .it-search-wrapper.cloned-header .form-group {
        display: none !important;
    }
    .it-header-wrapper .it-header-navbar-wrapper.sliding-navbar .it-search-wrapper .rounded-icon {
        width: 24px;
        height: 24px;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu {
        padding: 0;
    }
    .it-header-navbar-wrapper nav .navbar-collapsable .menu-wrapper .navbar-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .it-header-navbar-wrapper .navbar .dropdown-menu:before {
        display: none;
    }
    .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav .nav-item {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .it-header-wrapper .it-header-navbar-wrapper .navbar .navbar-collapsable .menu-wrapper .navbar-nav .dropdown-menu {
        padding-bottom: 0;
        min-width: 230px;   
    }
    .it-header-wrapper .it-header-navbar-wrapper .navbar .navbar-collapsable .menu-wrapper .navbar-nav .dropdown-menu.align-to-arrow {
        right: -12px;
        left: auto;
    }
    .it-header-wrapper .it-header-navbar-wrapper .navbar .navbar-collapsable .menu-wrapper .navbar-nav li.first-child .dropdown-menu.align-to-arrow {
        right: -25px;
    }
    .it-header-wrapper .it-header-navbar-wrapper .navbar .navbar-collapsable .menu-wrapper .navbar-nav .dropdown-menu ul {
        max-height: 251px;
        overflow-y: scroll;
        overflow-x: visible;
    }
    .it-footer-small-prints ul.it-footer-small-prints-list {
        padding: 1.5rem 0;
    }
    .it-header-wrapper .it-nav-wrapper .it-header-navbar-wrapper {
        position: inherit;
        left: auto;
        top: inherit;
        margin-top: 0;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu .dropdown-menu.show {
        left: calc(100% + 1px);
        top: calc(-35.5%);
        color: #000;
    }

    .section-evidenza-hp .it-hero-wrapper {
        min-height: unset;
        width: inherit;
    }
}

@media (max-width: 1350px) {
    .it-header-wrapper .it-header-navbar-wrapper .navbar .navbar-collapsable .menu-wrapper .navbar-nav li.first-child .dropdown-menu.align-to-arrow {
        right: -100px;
        left: auto;
    }
}

@media (max-width: 1199px) {
    .it-header-wrapper .logo-rl {
        height: 42px;
        margin-bottom: 6px;
    }

    .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper .it-brand-text {
        margin-left: 22px;
    }

    .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav .nav-item .nav-link {
        font-size: 8.5pt;
    }
}

@media (min-width: 768px) {
    .it-footer-small-prints .flex-md-row {
        justify-content: space-between;   
    }
}
@media (max-width: 767px) {
    .back-to-top .icon {
        top: 2px;
    }

    .it-header-wrapper .logo {
        height: 65px;
    }
    .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper .it-brand-text {
        border: none;
    }
    .searchText {
        display: none;
    }
    .it-header-wrapper .it-header-center-content-wrapper .it-right-zone .it-search-wrapper .form-group {
        margin-bottom: 0;
    }
    .it-header-navbar-wrapper {
        background-color: #fff;
    }
    .it-header-wrapper .it-nav-wrapper .it-brand-wrapper {
        padding-left: 0;
    }
    .it-header-center-wrapper .it-header-center-content-wrapper {
        justify-content: flex-end;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper .link-list li {
        border: none;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper .link-list li:hover {
        background-color: transparent;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu > .link-list-wrapper > .link-list > li:hover > a > span {
        color: #000;
        text-decoration: none;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu .dropdown-menu .link-list-wrapper {
        padding-left: 0;
        margin-bottom: 0;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu .dropdown-menu .link-list-wrapper ul li a {
        padding: 0;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu .dropdown-menu .link-list-wrapper ul li a span {
        font-weight: normal;
    }
    .it-header-navbar-wrapper .navbar .dropdown-menu .link-list-wrapper ul li:hover a:not(.disabled) .icon {
        fill: #000 !important;
    }
    .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li.d-md-none {
        border-bottom: none;
    }
    .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li.d-md-none .nav-link {
        font-weight: normal;
    }
}

@media screen and (max-width: 575px) {
    .ytp-external-link-icon,
    .ytp-legacy-external-link-icon,
    .ytp-template-external-link-icon {
        position: relative;
        top: -5px;
        right: unset;
    }

    .ytp-external-link-icon .icona-link-esterno-white,
    .ytp-legacy-external-link-icon .icona-link-esterno-white,
    .ytp-template-external-link-icon .icona-link-esterno-white {
        top: 2px !important;
        right: unset !important;
    }
}

@media screen and (max-width: 991px) {

    :root {
        --header-sticky-fill: 100px;
    }

    img#logo-arpa-lombardia {
        margin-bottom: 6px !important;
    }

    .it-header-wrapper .logo-rl {
        margin-bottom: -2px !important;
    }

    .it-header-wrapper.is-sticky .logo {
        display: block;

    }

    .it-header-slim-wrapper {
        height: 48px !important;
    }

    .it-header-slim-wrapper .it-header-slim-wrapper-content .nav-mobile ul.link-list a {
        line-height: 1.25em;
    }

    .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav .nav-item .nav-link {
        font-size: 9.5pt;
    }

    .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li a.nav-link {
        padding: 13px 24px;
    }

    /* container */
    main {
        margin: 0 14px;
    }

    .container.remove-margins-when-mobile {
        max-width:990px;
    }

    .container.remove-margins-when-mobile.breadcrumb-mobile {
        padding-left: 18px;
    }

    .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    /* RichText table changes */
    .p-custom table,
    .p-custom table caption,
    .p-custom table thead,
    .p-custom table tbody,
    .p-custom table th,
    .p-custom table td,
    .p-custom table tr {
        display: block;
        height: unset !important;
        width: unset !important;
    }

    .p-custom table {
        margin-top:42px;
        float: none !important;
    }

    .p-custom table caption {
        padding: 0;
        position: relative;
        top: -24px;
        height: 0 !important;
    }

    /* Hide table headers */
    .p-custom table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .p-custom table tr {
        border: 1px solid;
        border-color: inherit;
    }

    .p-custom table td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        white-space: normal;
        padding: 12px 6px;
        padding-left: 50%;
        line-height: 1.3;
        display: flex;
        text-align:left;
        align-items: center;
    }

    .p-custom table tbody tr:first-child {
        display: none;
    }

    .p-custom table td:before {
        content: attr(data-title);
        position: absolute;
        top: 26%;
        left: 6px;
        white-space: nowrap;
        font-weight: 600;
        max-width: 40%;
        overflow: hidden;
    }
} 