*{
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
}

h1,h2,h3,h4,h5{
    font-family: "Merriweather Sans", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

b,strong,.bold{
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
}


/* Nohemi - Regular */
@font-face {
  font-family: "Nohemi";
  src: url("../fonts/Nohemi-Regular.woff2") format("woff2"),
       url("../fonts/Nohemi-Regular.woff") format("woff"),
       url("../fonts/Nohemi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Nohemi - medium */
@font-face {
  font-family: "Nohemi";
  src: url("../fonts/Nohemi-Medium.woff2") format("woff2"),
       url("../fonts/Nohemi-Medium.woff") format("woff"),
       url("../fonts/Nohemi-Medium.ttf") format("truetype");
  font-weight: 500; /* fondamentale */
  font-style: normal;
  font-display: swap;
}

/* Nohemi - Semibold */
@font-face {
  font-family: "Nohemi";
  src: url("../fonts/Nohemi-SemiBold.woff2") format("woff2"),
       url("../fonts/Nohemi-SemiBold.woff") format("woff"),
       url("../fonts/Nohemi-SemiBold.ttf") format("truetype");
  font-weight: 600; /* fondamentale */
  font-style: normal;
  font-display: swap;
}

.nohemi{
    font-family: "Nohemi", "Merriweather Sans", sans-serif !important;
    font-weight: 400;
    font-style: normal;
}

.nohemi-medium {
  font-family: "Nohemi", "Merriweather Sans", sans-serif !important;
  font-weight: 500;
}

.nohemi-semibold {
  font-family: "Nohemi", "Merriweather Sans", sans-serif !important;
  font-weight: 600;
}


.font-1{
    font-size: 16px;
    line-height: 24px;
}
.font-2{
    font-size: 20px;
    line-height: 24px;
}
.font-3{
    font-size: 24px;
    line-height: 32px;
}
.font-4{
    font-size: 32px;
    line-height: 40px;
}
.font-5{
    font-size: 40px;
    line-height: 48px;

}

.font-6{
    font-size: 58px;
    line-height: 62px;
}





.color-black{
    color: black;
}

.color-lime{
    color: #00FF00;
}

.bg-lightgray{
    background-color: #F8F8F8;
}

.img-fluid{
    width: 100%;
    height: auto;
}

a.more-link{
    color: #17324D;
    text-decoration: none;
}
a.more-link:hover{
    color: #000;
    text-decoration: underline;
}
a.more-link::after{
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('arrow-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0 5px;
    margin-left: 5px;
}

.cta-gallery{
    background-color: #333333;
    color: white;
    padding: 12px;
    width: calc(25% - 10px);
    margin-right: 10px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    background-image: url('cta-gallery.svg');
    background-repeat: no-repeat;
    background-position: 6px center;
    padding-left: 50px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
}

@media(max-width: 992px){
    .cta-gallery{
    width: calc(50% - 10px) ;
    margin-right: 10px;
}
}

/*  Header Styles */
.bg-header{
    background-color: #fff;
}

.bg-header-dark {
    background-color: #F8F8F8;
}

.logo-wrapper img{
    width: 100%;
    max-width: 800px;
}

@media (max-width: 991px){
    .logo-wrapper img{
        max-width: 70%;
    }
}

/* Navigation Styles */

header .navbar .dropdown-toggle::after{
    vertical-align: 0.135em;
}


@media (min-width: 991px){
    .navbar {
        border-bottom: 1px solid black;
        margin-left: 80px;
        margin-right: 80px;
    }
}

.navbar li.nav-item{
    display: flex;
    align-items: center;
}
.navbar li.nav-item::before{
    content: "+";
    display: inline-block;
    font-weight: 700;
    color: #00FF00;
    transform: scale(1.3);
    margin-right: 15px;
}

.navbar-nav{
    flex-direction: row;
}

@media (min-width: 991px){
    .navbar li.nav-item a.nav-link{
        margin: 0;
        font-size: clamp(20px, 2vw, 60px);
        line-height: 1;
        text-transform: uppercase;
    }

    .navbar li.nav-item::before{
        transform: scale(3.5);
    }

    .navbar-nav{
        flex-direction: row;
    }
}

@media (min-width: 1250px){
    .navbar li.nav-item a.nav-link{
        font-size: clamp(30px, 2.5vw, 60px);
    }
}

@media (max-width: 1420px){
    .navbar li.nav-item::before{
        transform: scale(3);
    }
}
@media (max-width: 1100px){
    .navbar li.nav-item::before{
        transform: scale(2.4);
    }
}



.navbar-collapse {
    flex-basis: auto;
}

@media (max-width: 991.98px) {
    .navbar-collapse.show,
    .navbar-collapsing {
        width: 100%;
    }
}

/* Brand/Logo */
.navbar-brand {
    transition: transform 0.3s ease;
}
.navbar-brand img {
    width: 80px;
    height: auto;
}

.navbar-brand:hover {
    transform: scale(1.05);
}


@media screen and (max-width: 576px) {
    .logo-wrapper img{
        width: 100%;
    }
    .logo-wrapper .project-name {
        font-size: 1em;
    }
}


/* Navigation Links */
nav .inner{
    min-width: 50% !important;
}

.navbar-nav{
    display: flex;
    align-items: center;
    gap: 35px;
    /* min-width: 50% !important; */
}
.navbar-nav .nav-link {
    color: #333;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #000;
    text-decoration: underline;
}

.navbar-nav .nav-link.active {
    color: #000;
    text-decoration: underline;
}

/* Posizionamento dropdown menu centrato e scollegato dal trigger */
.main-nav-wrapper .dropdown-menu {
    position: fixed !important; /* fissa rispetto alla viewport */
    top: 171px !important;   /* poco sotto il nav */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80vw !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    z-index: 1050 !important;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    pointer-events: none;

}
@media (max-width: 991px){
    .main-nav-wrapper .dropdown-menu{
        top: 250px !important; /* Adjust for mobile */
    }
}

@media (max-width: 768px){
    .main-nav-wrapper .dropdown-menu{
        top: 443px !important; /* Adjust for mobile */
    }
}

.main-nav-wrapper .dropdown-menu.show {
    max-height: 500px; /* sufficient for your content */
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px){
    .main-nav-wrapper .navbar-nav{
        display: flex;
        flex-direction: column !important;
        gap: 0px;
    }
    
    .main-nav-wrapper .navbar-collapse{
        padding: 1rem 2rem;
        box-shadow: none;
    }
    
    .main-nav-wrapper .navbar-collapse .navbar-nav{
        align-items: flex-start;
    } 
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(0,123,255,0.1);
    color: #007bff;
    /* transform: translateX(5px); */
}

.dropdown-item.active {
    background-color: #007bff;
    color: white;
}

/* Multi-level Dropdowns */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Hamburger menu personalizzato */
.navbar-toggler {
    /* border: 1px solid rgba(0,0,0,0.9); */
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M24 6L6 24'/%3e%3c/svg%3e");
}

/* Language Selector */
.lang-selector .dropdown-toggle {
    text-transform: uppercase;
}

.lang-selector .dropdown-menu {
    min-width: 100px;
}
.lang-wrapper .dropdown-toggle.btn, .lang-wrapper a{
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}
.lang-wrapper .btn:focus,
.lang-wrapper .btn:active,
.lang-wrapper .btn.show,
.lang-wrapper .btn:first-child:active {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.lang-wrapper ul{
    display: none;
}

.lang-wrapper .dropdown-menu{
    border: 0;
    padding: 0;
}

.lang-wrapper .dropdown-menu li .dropdown-item:hover{
    transform: translateX(0) !important;
}



nav .search button{
    background-color: #17324D;
    aspect-ratio: 1;
    width: 50px;
    height: 50px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow: hidden;
    flex-shrink: 0; /* evita ridimensionamento */
}

nav .search input{
    background: transparent;
    border: 0;
    width: 0px;
    transition: width .3s ease;
    padding-right: 3rem !important;
}

nav .search label{
    color: black !important;
    cursor: pointer;
}

nav .search input:focus{
    background: transparent;
    border: 0;
    border-bottom: 1px solid white;
    border-radius: 0;
    box-shadow: none;
    width: 180px;
    margin-right: 60px;
}


header{
    padding-top: 100px;
}

@media (max-width: 991px){
    header{
        padding-top: 50px;
    }
}




/* Dropdown Menu Styles */
.dropdown-menu[data-bs-popper] {
    top: calc(100% + 6px);
    left: 0;
    margin-top: var(--bs-dropdown-spacer);
    border-radius: 0;
    border: none;
    min-width: 50vw;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0 !important;
}

.dropdown-item.active {
    background-color: transparent;
    color: black;
    text-decoration: underline;
}

.dropdown-item{
     font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem 0.75rem 0;
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        box-shadow: none;
        padding: 0 1rem 0 0;
        margin: 0;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-submenu .dropdown-menu {
        left: 0;
        margin-left: 1rem;
    }

    nav .search button{
        width: 40px;
        height: 40px;
    }
}

/* Navbar Toggle Button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Responsive Width Classes per navbar + cerca */
@media (min-width: 992px) {
  .w-100-lg-auto {
    width: auto !important;
  }
}

/* Footer */
footer{
    background-color: #F8F8F8;
    margin-top: 2em;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}
footer .bottom-dark{
    background-color: #fff;
}

.footer-logo {
    max-width: 230px;
    height: auto;
}

.footer-partners, .footer-stakeholders, .footer-socials {
  white-space: nowrap;
}

footer ul.navbar-nav {
    display: flex;
    flex-direction: row;
}

footer ul.navbar-nav .nav-link {
    color: #000;
    background-color: transparent;
    text-decoration: none;
    padding: 0 1em;
}

footer ul.navbar-nav a.nav-link, .footer-bottom-bar div{
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}
/* Accordion */


.accordion-item {
    border: none;
    border-bottom: 1px solid #5C6F82;
}
.accordion-button {
  background: white;
  border: none;
  padding: 1rem;
  width: 100%;
  text-align: left;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 1rem;
  border-top: 1px solid #eee;
}
.accordion-button::after {
  content: "+";
  font-weight: normal;
  background-image: none;
}
/* .accordion-button.active::after {
  content: "−";
} */
 .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: black !important;
}
.accordion-button:not(.collapsed)::after {
    background-image: none;
    transform: none;

    content: "−";
}

.form-check{
    position: relative;
    margin-bottom: 0.125rem;
}
.form-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.form-check label {
    padding-left: 7px;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
}
.form-check-label::after {
    content: "";
    left: 0;
    position: absolute;
    transition: 0.2s ease-out;
    z-index: 1;
    border-style: solid;
    border-width: 2px;
    border-color: #000;
    background-color: rgba(0, 0, 0, 0);

    border-radius: 4px;
    height: 20px;
    width: 20px;
    margin: 3px 7px 6px 0
}

.form-check [type=checkbox]:checked + label::after {
    border-color: #000;
    background-color: #000;
}

.form-check [type=checkbox]:checked + label::before{
    content: "";
    left: 0;
    position: absolute;
    transition: 0.2s ease-out;
    z-index: 3;
    top: 6px;
    left: 1px;
    width: 8px;
    height: 13px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(0, 0, 0, 0) #fff #fff rgba(0, 0, 0, 0);
    transform: rotate(40deg);
    backface-visibility: hidden;
    transform-origin: 100% 100%;
    opacity: 0.8;
}


/* pagination */
.pagination ul{
    display: flex;
    justify-content: end;
    margin: 1em 0;
    padding: 0;
    list-style: none;
}
.pagination ul li {
    margin: 0 0.5em;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: hsl(210, 17%, 44%);
    background-color: rgba(0, 0, 255, 0);
}

.pagination .page-item .page-link[aria-current] {
    border: 1px solid #06c;
    color: #06c;
    pointer-events: none;
}

.icon-chevron-left {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M14.6 17.2 9 11.6 14.6 6l.8.7-4.9 4.9 4.9 4.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 24px 24px;
  display: inline-block;
}

.icon-chevron-right {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='m9.8 17.2-.8-.7 4.9-4.9L9 6.7l.8-.7 5.6 5.6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 24px 24px;
  display: inline-block;
}

/* form checkbox */
.form-check input {
    margin-right: 0.5em;
}



/* Chips Styles */
.chips-container { 
    margin: 7px 0 0px 0;
}

/* Se contiene un <a>, azzera il margin-top */
.chips-container:has(a) {
    margin-top: 0;
}

.chip-link { 
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.chip-link:hover .chip {
    text-decoration: underline;
}

.linkss{
    padding-left: 25px;
}

@media (max-width: 768px){
    .linkss{
        padding-top: 20px;
        padding-left: 15px;
    }
}

.chip { 
    display: inline-block; 
    color: #7F8384; 
    font-size: 18px; 
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: underline;
}

body.cases-list #itemsCol .item-outher.type-Y .item .top.tile-hoverable.is-hover+.bottom .chips-container .chip-link .chip,
body.cases-list #itemsCol .item-outher.type-Y .item .top.tile-hoverable.is-hover+.bottom .chips-container .divider,
body.cases-list #itemsCol .item-outher.type-Y .item .top.tile-hoverable.is-hover+.bottom{
    color: #9b59b690;
}

body.cases-list #itemsCol .item-outher.type-R .item .top.tile-hoverable.is-hover+.bottom .chips-container .chip-link .chip,
body.cases-list #itemsCol .item-outher.type-R .item .top.tile-hoverable.is-hover+.bottom .chips-container .divider,
body.cases-list #itemsCol .item-outher.type-R .item .top.tile-hoverable.is-hover+.bottom{
    color: #00ff0090;
}

.typeof p,
.typeof span{
    font-size: 18px !important;
}

main.cases-detail .text .ewa-rteLine,
main.cases-detail .text .ewa-rteLine span,
main.cases-detail .text .ewa-rteLine u,
main.cases-detail .pubblicazioni .ewa-rteLine div{
    font-size: 18px !important;
    color: black !important;
}



.chip-no-link {
    background: #f8f9fa;
    color: #6c757d;
    cursor: default;
    margin: 2px;
}

.chip-no-link:hover {
    background: #f8f9fa;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

.glossario-tooltip{
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
}


/* Pagina archivio */
.search-wrapper #searchInputText{
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #858585;
    padding-left: 30px;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14 13.3L19.9 19.1L19.1 19.9L13.3 14C11.8225 15.2676 9.94654 15.9755 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C15.9755 9.94654 15.2676 11.8225 14 13.3ZM1 8C1 11.866 4.13401 15 8 15C9.85652 15 11.637 14.2625 12.9497 12.9497C14.2625 11.637 15 9.85652 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8Z" fill="%2317324D"/></svg>');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: left 50%;
}

.search-wrapper .btn-primary{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.accordion-button::after{
    content: '';
    width: 25px;
    height: 25px;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 10.625H10.625V20H9.375V10.625H0V9.375H9.375V0H10.625V9.375H20V10.625Z" fill="%23000000"/></svg>');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.accordion-button:not(.collapsed)::after{
    content: '';
    width: 25px;
    height: 25px;
    background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="b" data-name="Livello 2" xmlns="http://www.w3.org/2000/svg" width="20" height="1.25" viewBox="0 0 20 1.25"><g id="c" data-name="Livello 1"><rect width="20" height="1.25" style="fill: %23036;"/></g></svg>');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat; 
}

.accordion-item:last-of-type{
    border-radius: 0 !important;
}

.tiles-wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.page-404 main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}


/* Sidebar */

#sidebar-nav{
    border-top: 1px solid lightgray;
    margin-top: 14px;
}

.nav-pills .nav-link{
    border-left: 3px solid white;
    padding-top: 14px;
    padding-top: 14px;

}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
    background: white;
    color: black;
    border-radius: 0;
    border-left: 3px solid lightgray;
    display: block;
    width: 100%;
}

@media(max-width: 768px) {
    .navbar-brand{
        border: 1px solid gray;
        width: 100%;
        display: block;
        padding: 12px 20px 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .navbar-brand:hover{
        transform: scale(1);
    }
    .navbar-brand[aria-expanded=true]::after{
        content: '';
        display: block;
        width: 18px;
        height: 18px;

        background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="b" data-name="Livello 2" xmlns="http://www.w3.org/2000/svg" width="20" height="1.25" viewBox="0 0 20 1.25"><g id="c" data-name="Livello 1"><rect width="20" height="1.25" style="fill: %23036;"/></g></svg>');

        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .navbar-brand[aria-expanded=false]::after{
        content: '';
        display: block;
        width: 18px;
        height: 18px;

        background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 10.625H10.625V20H9.375V10.625H0V9.375H9.375V0H10.625V9.375H20V10.625Z" fill="%23000000"/></svg>');

        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }
}




body.cases-list .tiles-wrapper .item h2{
    font-family: "Nohemi", "Merriweather Sans", sans-serif !important;
    font-weight: 400;
    font-style: normal;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* wrapper tile */
body.cases-list .tiles-wrapper .tile-hoverable{
  position: relative; /* ok lasciarlo, ma non serve per l'overlay immagine */
}

/* wrapper immagine creato dal JS */
body.cases-list .tiles-wrapper .img-mask-wrap{
  position: relative;            /* <-- riferimento per ::after */
  display: block;
}

/* overlay base SUL MEDIA */
body.cases-list .tiles-wrapper .item-outher.type-Y .img-mask-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  z-index:10;
  background:#9b59b690;
  transition: opacity .3s ease;
}

body.cases-list .tiles-wrapper .item-outher.type-R .img-mask-wrap::after{
    content:"";
    position:absolute;
    inset:0;
    opacity:0;
    pointer-events:none;
    z-index:10;
    background:#00FF0090;
  transition: opacity .3s ease;
}

/* fade-in quando la tile è in hover */
body.cases-list .tiles-wrapper .tile-hoverable.is-hover .img-mask-wrap::after{
  opacity:1;
}

/* Overlay titolo (come hai già) */
body.cases-list .tiles-wrapper .tile-title-overlay{
  display:none;
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  height: 100%;
  z-index:50;
  pointer-events:none;
  background:transparent;
  overflow:hidden;
  font-family:"Nohemi","Merriweather Sans",sans-serif !important;
  font-weight:400;
  font-style:normal;
}

body.cases-list .tiles-wrapper .tile-trunc-title.is-hover .tile-title-overlay{
  display:block;
}


@media (max-width: 991px){
    body.cases-list section.hero .container-fluid{
        /* padding-left: 12px; */
    }
}


body.cases-list .row.cases-row #toggleFilters span{
    color: black !important;
    font-size: 30px;
}

body.cases-list .filters-toggle{
    background: none;
    border: 0;
    border-bottom: 2px solid black;
    padding: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}

body.cases-list .row.cases-row #toggleFilters .symbol{
  font-size: 30px;
  font-weight: 700;
  color: #00FF00 !important; /* colore del + / − */
  transition: transform .2s ease;
}

body.cases-list .tiles-wrapper a.top.tile-trunc-title.is-hover h2{
  color: #fff !important;
}

body.cases-list .tiles-wrapper a.top{
  position: relative;
  display: block;
}

body.cases-list .ftr{
    padding: 0;
}

@media (max-width: 768px){
    body.cases-list .ftr{
        padding: 0 15px;
    }
}



@media (min-width: 992px){

  /* base: chiuso */
  body.cases-list .row.cases-row #filtersCol{
    /* collasso dimensioni */
    flex: 0 0 0 !important;
    max-width: 0 !important;
    width: 0 !important;

    /* collasso box-model */
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;

    /* collasso verticale (importante se il contenuto ha margini) */
    height: 0 !important;
    min-height: 0 !important;

    /* sicurezza */
    overflow: hidden !important;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);

    transition:
      max-width .28s ease,
      flex-basis .28s ease,
      width .28s ease,
      padding .28s ease,
      height .28s ease,
      opacity .18s ease,
      transform .28s ease;
  }

  /* items: full width quando chiuso */
  body.cases-list .row.cases-row #itemsCol{
    flex: 0 0 100% !important;
    max-width: 100% !important;

    transition:
      max-width .28s ease,
      flex-basis .28s ease;
  }

  /* aperto */
  body.cases-list .row.cases-row.filters-open #filtersCol{
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: auto !important;

    /* ripristina box-model */
    padding: initial !important;   /* oppure metti il padding reale che vuoi */
    margin: initial !important;
    border: initial !important;

    height: auto !important;

    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  body.cases-list .row.cases-row.filters-open #itemsCol{
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
  }

  body.cases-list .row.cases-row #filtersCol{
    display: flex;
    flex-direction: column;  
  }
}

@media (max-width: 991px) {
  /* open state (default) */
  body.cases-list .row.cases-row #filtersCol {
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
    pointer-events: auto;
    transition:
      max-height .3s ease,
      opacity .2s ease;
  }

  /* closed state */
  body.cases-list .row.cases-row:not(.filters-open) #filtersCol {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* disable transition on initial paint */
  body.cases-list .row.cases-row.no-filters-transition #filtersCol {
    transition: none !important;
  }
}


body.cases-list .tiles-wrapper a.top .media{
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  overflow: hidden;
}

/* immagine dentro: riempie il quadrato */
body.cases-list .tiles-wrapper a.top .media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.cases-list #filtersCol .search-wrapper,
body.cases-list #filtersCol input.form-control,
body.cases-list #filtersCol .accordion-controls,
body.cases-list #filtersCol .accordion-button,
body.cases-list #filtersCol .accordion-body{
    background-color: rgba(23,79,12,0.05);
    padding: 15px;
}

body.cases-list #filtersCol input.form-control{
    padding: 0;
}

main.cases-detail section.text .symbol{
  font-size: 30px;
  font-weight: 700;
  color: #00FF00 !important; /* colore del + / − */
  transition: transform .2s ease;
}


main.cases-detail+footer .footer-stakeholders .stakeholder-1{
    max-width: 200px !important;
}

@media (max-width: 576px){
    main.cases-detail+footer .footer-stakeholders .stakeholder-1{
        max-width: 150px !important;
    }
}

main.cases-detail .data-row span,
main.cases-detail .data-row p{
    color: #545757 !important;
}

main.cases-detail .data-row strong span{
    color: #030303 !important;
}

main.cases-detail .data-row .typeof{
    margin-bottom: 2rem;
}







/* slider con pSlide */


.splide {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 40px !important;
    box-sizing: border-box;
}

.splide__track {
    overflow: hidden;
}

.splide__list {
    display: flex;
    align-items: center;
    height: 430px !important;
}

.splide__slide {
    height: 430px !important;
    overflow: hidden;
    width: fit-content !important;
}

.splide__slide a {
    width: fit-content;
    height: 100%;
    text-decoration: none;
    display: block;
}

.splide__slide img {
    height: 430px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0 !important;
}

@media (max-width: 576px){
    .splide__list,
    .splide__slide,
    .splide__slide img{
        height: auto !important;
    }
}

.splide__arrow {
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 0 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

.splide:hover .splide__arrow{
    opacity: 1 !important;
}

.splide__arrow--prev {
    left: 0 !important;
    right: auto !important;
}

.splide__arrow--next {
    right: 0 !important;
    left: auto !important;
}

.splide__arrow svg {
    fill: #333 !important;
    width: 20px !important;
    height: 20px !important;
}

.splide__arrow:hover {
    border: 1px solid black;
}

.splide__pagination {
    bottom: -30px !important;
    position: relative !important;
    z-index: 5 !important;
}

.splide__pagination__page {
    background: #ccc !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 5px !important;
}

.splide__pagination__page.is-active {
    background: #333 !important;
    transform: scale(1.2) !important;
}

@media (max-width: 768px) {
    .splide {
        padding: 0 40px !important;
    }
    
    .splide__arrow {
        width: 32px !important;
        height: 32px !important;
    }
}

@media (max-width: 480px) {
    .splide {
        padding: 0 0px !important;
    }
    
    .splide__arrow {
        width: 28px !important;
        height: 28px !important;
    }
}


.container-fluid{
    padding-right: 80px;
    padding-left: 80px;
}

@media (max-width: 991px){
    .container-fluid{
        padding-right: 48px;
        padding-left: 48px;
    }   
}
@media (max-width: 768px){
    .container-fluid{
        padding-right: 24px;
        padding-left: 24px;
    }   
}
/* @media (max-width: 578px){
    .container-fluid{
        padding-right: 20px;
        padding-left: 20px;
    }   
} */


/* css filtri archivio */
#filtersCol .search-wrapper #searchInputText{
    background-image: none !important;
    background-color: transparent;
}

#filtersCol .status-group .btn-status{
    border: 0 !important;
    text-align: left;
    background-color: transparent !important;
}

#filtersCol .status-group .btn-status.active{    
    text-decoration: underline #00FF00;
    color: #00FF00;
}

#filtersCol [id^="heading"] button.accordion-button::after {
    background-image: none;
}

body.cases-list #filtersCol .accordion-button{
    gap: 5px;
}

body.cases-list #filtersCol #filterAccordion{
    display: flex;
    flex-direction: column;
}

body.cases-list #filtersCol #filterAccordion .accordion-item{
    border: 0 !important;
    border-radius: 0 !important;
}

body.cases-list #filtersCol #filterAccordion .accordion-item .accordion-button{
    border-radius: 0 !important;
}

body.cases-list #filtersCol #filterAccordion .accordion-item .accordion-button:not(.collapsed){
    box-shadow: none !important;
}

body.cases-list #filtersCol #filterAccordion .accordion-item:first-of-type{
    order: 2;
}

body.cases-list #filtersCol #filterAccordion .accordion-item:last-of-type{
    order: 1;
}

body.cases-list .reset-box{
    color: #545757;
}


body.cases-list .disabled-filter{
    opacity: .5;
    pointer-events: none;
}



/* CSS HOMEPAGE */

body.home-page main .sec2 img{
    aspect-ratio: 1;
    object-fit: cover;
}

body.home-page main .sec3{
    position: relative;
}

body.home-page main .sec3 .abs-text{
    position: absolute;
    top: 40px;
    left: 80px;
    width: auto;
}

body.home-page main .sec3 .abs-text-2{
    position: absolute;
    top: 50%;
    left: 80px;
    width: auto;
    transform: translateY(-50%);
}

body.home-page main .sec3 .abs-text .nohemi-medium{
    gap: 10px;
}

body.home-page main .sec3 .abs-text img{
    max-height: 40px;
    width: auto;
}


.row.cases-row.no-filters-transition,
.row.cases-row.no-filters-transition * {
  transition: none !important;
  animation: none !important;
}



.carousel-card .edita-cms.btn-open-lightbox-media {
    position: relative;
    top: -60px;
    left: 0;
}

/* Filter accordion symbol (+/-) via SVG background */
#filterAccordion .accordion-button .filter-symbol {
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 10.625H10.625V20H9.375V10.625H0V9.375H9.375V0H10.625V9.375H20V10.625Z" fill="%23000000"/></svg>');
}

#filterAccordion .accordion-button:not(.collapsed) .filter-symbol {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="2" viewBox="0 0 20 2"><rect width="20" height="2" fill="%23000000"/></svg>');
}

/* Testo verde quando l'accordion è aperto */
#filterAccordion .accordion-button:not(.collapsed) p {
    color: #00FF00;
}

.carousel-inner{
    background: rgba(23,79,12,0.05);
}

.carousel-item img{
    min-height: 55vh;
    max-height: 55vh;
    object-fit: contain;
}

.img-thumbnail{
    object-fit: cover;
    object-position: top;
}