.btnViewMap{
    background-color: #2e353d;
    border: 1px solid #4b4b4b;
    color: #ffffff;
    width: 100%;
    height: auto;
    padding: 2px 2px 2px 15px;
    text-align: left;
    position: relative;
}
.btnViewMap.selected:before{
    content: " ";
    width: 0;
    height: 0;
    border: 10px solid;
    border-color: transparent transparent transparent #ffa200;
    left: -1px;
    top: 3px;
    position: absolute;
}

.list-item.selected {
    background-color: #3d83c0;
    color: #f5deb3;
}

.viewMap{
    width: 100%;
    height: 80vh;
    display: flex;
    position: relative!important;
    z-index: 1;
}

.viewMap .map{
    width: 100%;
    height: 100%;
    border: 1px solid #a3b8ca;
    box-sizing: border-box;
}
.viewMap .viewResult{
    background-color: #ffffff9c;
    position: absolute;
    top: 45px;
    height: 90%;
    border-radius: 12px;
    border: 1px solid #004a7c;
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
    box-shadow: 0 0 35px 5px #00000085;
}
.viewMap .viewResult .open_link{
    bottom: 3px;
    position: absolute;
    padding: 0 25px;
    background-color: #434b53;
    color: white;
}
.viewMap .viewResult .content_close{
    color: white;
    background-color: #434b53;
    position: absolute;
    right: 0;
    padding: 3.8px 15px;
    cursor: pointer;
    border-radius: 0 12px 0 0;
}
.viewMap .viewResult .content_result{
    border: 1px solid #004a7c;
    border-radius: 12px;
    position: absolute;
    top: 5%;
    min-height: min-content;
    max-height: 100%;
    left: 5%;
    width: 90%;
    overflow: hidden;
    height: 90%;
}
.content_result {
    transition: all 0.3s ease;
}

.content_result.active {
    display: block;
}

.setting.max.collapsed {
    right: -90%; /* Uses the same behavior as .setting.min <source_id data="mapStyle.css" /> */
}
div.ol-viewport.ol-touch{    
    background: #d8dcdc;
}

.viewMap .viewResult.open {      /* Invece di 217px per occupare tutto lo spazio disponibile */
    width: 100%;        /* Larghezza maggiore */
    height: 85%;       /* Altezza maggiore */
    transition: 0.5s;
    opacity: 1;
    pointer-events: auto;
    position: absolute; /* Per assicurarsi che sia posizionato correttamente */
    top: 5%;      
    margin:0;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 2em;
}

.viewMap .setting{
    /*position: absolute;*/
    width: 420px;
    height: 40px;
    border-radius: 0 0 0 15px;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&0.45+0,1+38 */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#73ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
}
h1.entry-title{
    margin-bottom: 1em;
}
ol.unelectable {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Se necessario, assicurati che l'elemento genitore abbia un'altezza definita */
    height: 100%;
}

/* Se ci sono elementi figli che devono essere centrati */
ol.unelectable > * {
    margin: auto;
    /* Se vuoi che gli elementi figli occupino una larghezza specifica */
}

.viewMap .setting .search{
    width: 340px;
    border: 1px solid #3b81bb;
    border-radius: 6px;
    color: #035192;
}
.viewMap .setting .search:focus{
    outline: transparent;
    box-shadow: 0 0 3px 0 #035192;
}
.mobile-search-result{
    top: 3em!important;
    left: 0!important;
}

.mobile-result-item{
   height: auto!important;
   left: 0!important;
   line-height: 1.5!important;
}

.mobile-result-item:focus{
    background-color: wheat;
    color:#004A7C;
    font-weight: bolder;
}
.viewMap .setting .userSetting{
    font-size: 24px;
    padding: 5px;
    right: 0;
    top: 10px;
    margin-right: 15px;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    color: #035192;
}
.viewMap .setting .userSetting:active, .viewMap .setting .userSetting:focus{
    outline: none;
    box-shadow: none;
}

.viewMap .setting.min .conSet{
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    display: inline-flex;
}

.setting.max {
    position: absolute!important;
    z-index: 1002; 
    top: 0;
    transform: translateX(50%);
}
.setting.max .conSet{
    opacity: 1;
}
.conSet{
    justify-content: center;
    align-items: center;
}
.openSet.fa {
    position: absolute;
    left:-2em;
    display: none;
}

.viewMap .setting .openSet{
    background-color: transparent;
    border: 0;
    font-size: 24px;
    color: #3b81bb;
    outline: none;
}
.userSetting.fa.fa-cog{
    display: inline-block;
}
.viewMap .setting .openSet:focus, .viewMap .setting .openSet:active{
    outline: none;
    border: 0;
    background-color: transparent;
    box-shadow: none;
}
.setting .panelSetting{
    right: 10px;
    background-color: #ffffffbd;
    padding: 10px;
    width: 320px;
    border: 1px solid white;
}

.viewMap .setting .panelSetting .title{
    font-size: 22px;
    color: #3b81bb;
}
.viewMap .setting .panelSetting .rowPanel{
    display: flex;
}
.viewMap .setting .panelSetting .rowPanel .colLabel{
    width: 220px;
    font-weight: bold;
}

input.onoff{
    width: 70px;
    position: relative;
    margin: 0 4px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 100;
    font-size: 14px;
    height: 24px;
    box-sizing: border-box;
}
input.onoff:before{
    text-align: right;
    content: "off";
    padding: 2px 7px;
    color: #afafaf;
    position: absolute;
    height: 24px;
    top: 0;
    left: 0;
    width: 70px;
    border: 1px solid rgb(186, 186, 186);
    border-radius: 10px;
    background-color: rgba(36, 36, 36, 0.98);
    box-sizing: border-box;
}
input.onoff:after{
    content: "";
    position: absolute;
    height: 18px;
    top: 3px;
    left: 2px;
    width: 35px;
    border: 1px solid rgba(189, 189, 189, 0.95);
    border-radius: 10px;
    background-color: rgba(189, 189, 189, 0.95);
    transition: all 0.5s;
}
input.onoff:checked:before{
    content: "on";
    text-align: left;
    color: wheat;
    text-shadow: 0 0 4px wheat;
    background-color: #004A7C;
}
input.onoff:checked:after{
    left: 30px;
    background-color: wheat;
    border: 1px solid #3d83c0;
    transition: all 0.5s;
}

.viewMap .list{
    border: 1px solid #424b53;
    width: 250px;
    height: 100%;
    border-radius: 0 8px 8px 0;
    overflow: auto;
    box-sizing: border-box;
    background-color: #f6f6f6;
    z-index: 1;
    overflow: auto;
}
.rscas-mycard .title {
    font-size:1.15em;
}
.viewMap .list div{
    padding: 5px 5px 5px 10px;
    color: #22272b;
    border-bottom: 1px solid #b9b9b9;
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
}
.viewMap .list div:hover{
    background-color: #F5deb3; /* colore sabbia che corrisponde al color_bg <source_id data="form.php" /> */
    color: #004a7c; /* colore azzurro che corrisponde al color_bg_hover <source_id data="form.php" /> */
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 15px -4px #222;
    
}

.flag{
    width: 18px;
    margin-right: 10px;
}
.viewMap .btnViewList{
    position: absolute;
    width: 100%;
    top: 14px;
}
.viewMap .menupop{
    height: 90%;
    color: #222222;
    
}
.viewMap .menupop .menulistpop{
    width: 20.5%;
    height: 150em!important;
    
}
.bcollapse{
    padding: 0.7em 0 0.7em 0;
    border: solid 1px #004a7c;
    margin-bottom: 0.7em!important;
    font-weight: bold;
}
.published {
    font-size: 11px;
    color: #222;
}
.viewMap .menupop .contentpop {
    height: 100%;
    width: 79.6%;
    background-color: wheat;
    display: flex;
    flex-direction: column;
    overflow: auto;
    border:0.4px solid #004a7c;
}
.intemContentPop p{
    padding: 1em 0 1em 0;
}
.viewMap .menupop .contentpop h4{
    color: black;
    text-align: center;
    padding: 1em;
    font-size: 1.875em;
}

.viewMap .menupop .contentpop h5{
    color: black;
    font-style: italic ;
    text-align: center;
    /*padding-top: 1em;
    /*padding: 1em;*/
    font-weight: bolder;
    font-size: 2em;
}
.TitlePop{
    margin: 0 0 0.8rem 0;
    background-color: #004A7C;
    color: white;
    padding: 0.8rem; 
    text-align: center;
    font-size: 1.5rem;
}

.report-item {
    text-align: center;
}

.report-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

p.report-title {
    margin: 0;
    text-align: center;
    justify-content: center;
    padding-top: 1em;
}

.report-title:hover {
    text-decoration: underline;
}

.fa-file-pdf-o {
    color: #ff9255;
    margin-left: 0.4em;
}

.report-content img {
    vertical-align: middle;
}
.authors {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.published {
    font-size: 11px;
    color: #222222;
    margin: 5px 0 0 0;
}
.viewMap .closePop{
    display: none;
}
.none{
    display: none;
}

/* Stile per hover - solo bordo azzurro */
.country:hover {
    stroke: #004A7C;  /* Bordo azzurro */
    stroke-width: 2px;
    fill: transparent; /* Mantiene il riempimento trasparente */
}

/* Stile per click - riempimento azzurro */
.country.active {
    fill: #3d83c0;    /* Riempimento azzurro */
    stroke: #004A7C;  /* Mantiene il bordo azzurro */
}
.rscas-mycard {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #3d83c0;
    border-radius: 12px;
    transition: all 0.3s ease;
    justify-content: space-between;
}

.rscas-mycard:hover{
    background-color: #3d83c0;
    font: #f5deb3;
}

.rscas-mycard:hover .title {
    color: #f5deb3;  /* Colore sabbia */
    text-decoration: underline;
}

.rscas-mycard .image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
}

.rscas-mycard .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rscas-mycard .title {
    flex: 1;
    font-size: 1.1em;
    color: #333;
}
.popHidden .content-center, .center, b.lang, a.lang {
    display: flex;
    justify-content: center;
    /* oppure */
    text-align: center;
    width: 100%;
}
.popHidden {
    display: none;
}

div#collapse_03.itemContentPop.popHidden{
    text-align: center;
}
.itemContentPop b, .content-center a{
    text-align: center;
}

[class^="collapse_"] a {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}
[class^="collapse_"] {
    display: flex;
    justify-content: center;
    display: block;
}

.bcollapse, .bactive{
        /* left: 0.8em; */
    width: 7.6em;
        /* justify-content: center; */
    text-wrap: wrap;
    text-align: center;
    display: block;
}
.bactive:focus, .bcollapse:focus, .bcollapse:hover {
    background-color: #3d83c0;
    color: white;
    font-weight: bolder;
 }

.text-center {
    text-align: center;
}
.content-center {
    flex-wrap: wrap;
}
.boxPg10.text-center {
    text-align: center;
}
.boxPg10 .link-item {
    display: block;
    margin-bottom: 10px; /* spazio tra gli elementi, puoi modificarlo */
}

.boxPg10 a {
    display: inline-block;
}
.viewMap .rscas-img-rounded {
    width: 100%;
    filter: opacity(90%);
}
.rscas-mycard{
    text-align: center;
}
img.rscas-img-rounded{
    width: 5em;
    height: 5em;
    border-radius: 10px;
}
#btnBackPop{
    background-color: #004a7c;
}

/*.viewMap .rscas-mycard {
    margin: 5px 10px;
    display: inline-block;
    width: 120px;
    text-align: center;
    border: 1px solid #2196F3;
    height: 140px;
    border-radius: 4px;
    box-shadow: 0 2px 10px 0 #22222254;
    transition: 0.4s;
}
.viewMap .rscas-mycard:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 10px 0 #222222a3;
    transition: 0.4s;
}
.viewMap .rscas-mycard .image {
    width: 60px;
    display: inline-block;
    margin: 4px;
    min-height: 60px;
}

.viewMap .rscas-mycard .title {
    margin-left: 0;
}
.viewMap .menupop a {
    line-height: 0;
}
.viewMap .menupop a .title{
    padding: 4px;
    line-height: normal;
    display: flex;
    text-overflow: ellipsis;
    overflow: auto;
    height: 70px;
}*/
.mobile-search-results {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 19px;
    right: 10px;
    background: white;
    z-index: 1000;
    overflow: hidden;    
    border-radius: 0 0 4px 4px;
    border-top: none;
    max-height: 50vh;
    width: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mobile-search-result.wrap-up {
    max-height: 0;
    padding: 0;
    opacity: 0;
}
.mobile-search-results[style*="display: none"] + .menulistpop {
    transition: opacity 0.3s ease;
    display: block !important;
}
.content-open .mobile-search-results {
    transform: translateY(-100%);
}
.mobile-search-item {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.search {
    width: 15em;
}

/* Stato fullscreen */
.is-fullscreen .search {
    width: 20em;
    z-index: 1002;
}
/* Assicurarsi che i sottomenu siano visibili in fullscreen */
.is-fullscreen .mobile-search-results {
    display: block !important;
    position: fixed;
    z-index: 1003;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    width: calc(100% - 40px) !important;
    overflow-y: auto;
    top: 60px !important;
    left: 20px !important;
}
.setting.max.active .mobile-search-results {
    display: block !important;
    position: fixed;
    z-index: 1003;
    background: white;
    left: 20px !important;
}
.mobile-search-item:hover {
    background-color: #f5f5f5;
}

.mobile-search-item:last-child {
    border-bottom: none;
}
.TitlePop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    font-weight: bolder;
    font-size: 1.2rem;
}

.TitlePop .FLAG {
    position: absolute;
    left: 10px; /* o il valore che preferisci */
}
.viewMap .list .titleContinents{
    background: #3b81bb;
    color: white;
    font-weight: bold;
    position: sticky;
    text-align: center;
    font-size: 1.2em;
    top: 0;
    z-index: 1;
    text-transform: capitalize;
    pointer-events: none;
}
.viewMap .list .titleContinents.asia{
    background-color: #bca352;
}
.viewMap .list .titleContinents.europe{
    background-color: #008503;
}
.viewMap .list .titleContinents.oceania{
    background-color: #5914bb;
}
.viewMap .list .titleContinents.africa{
    background-color: #2d1510;
}
.viewMap .list .titleContinents.americas{
    background-color: #79291c;
}

@media screen and (max-width: 1280px){
   
    .viewMap .setting .search{
        width: 18em;
    }
    .setting .userSetting {
        margin-right: -0.5em;
    }
    
    .TitlePop{        
        padding: .8rem;
    }
    .viewResult.open{
        top: 0!important;
    }
    .mobile-search-results{
        max-width: 18em;
        font-size: 0.9em;
    }
    .ol-control button{
        height: auto;
        line-height: 1.5!important;
    }
    .menupop div button {
        margin-bottom: 0.3em;
    }
    .bcollapse {
        padding: 0.6em 0 0.6em 0;
    }
    .fullscreen-active .report-title, .fullscreen-active .center, .fullscreen-active b.lang{
        font-size: 1em;
    }
    .viewMap .viewResult.open{
        margin-top: 5em;
    }
}
    

@media screen and (max-width: 990px){
    .setting.max{
        width: 15em;
    
    }
    .viewMap .setting .userSetting{
        display: none;
    }
    .viewMap .setting .search {
        width: 80%;
    }
    
    .contentpop h4{
        padding: 1.55em;

    }
    .openSet.fa {
        top: -8px;
    }
    .text-center .lang{
        font-size: 1.2em;
    }
    .TitlePop{
        font-size: 1em!important;
        padding: .7rem;
    }
    .viewMap .viewResult.open{
        height: 90%;
        margin-top: 5%;
        display: block;
        z-index: 1000;        
    }
    .rscas-btn-sm, .rscas-btn-group-sm > .rscas-btn{
        font-size: 0.75em;
    }
    .viewMap .menupop .contentpop h4, .viewMap .menupop .contentpop h5 {
        font-size: 1.25em;
    }

    .viewMap .menupop .contentpop h4 {
        padding: .7rem;
    }
}
@media screen and (max-width: 768px) {
   
    .viewMap .menupop {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: auto;
    }
    
    .viewMap .menupop .contentpop {
        display: block;
    }
    
        /* Per assicurarsi che il contenuto sia scorrevole */
    .viewMap .menupop .contentpop .intemContentPop {
        padding: 10px;
        overflow-y: auto;
    }
    .bactive, .bcollapse, .content_close{
        text-align: center;
        font-size: 0.87em;
        justify-content: center;
    }
    .rscas-btn-sm, .rscas-btn-group-sm > .rscas-btn{
        font-size: 0.7em;
    }
    .country{
        margin-bottom: none;
    }
    .menulistpop{
        height: 30em;
    }
    .searchbar {
        /*width: 100%;
        max-width: 100%;*/
        font-size: 0.9em;
        padding: 8px;
    }
    .colLabel{
        font-size: 1em;
    }
    .panelSetting{
        right: 50px;
    }
    
    .report-item {
        margin-bottom: 0;
    }
    /* Per mantenere il contenuto centrato e leggibile */
    .viewMap .menupop .contentpop h4,
    .viewMap .menupop .contentpop h5 {
        max-width: 100%;
        word-wrap: break-word;
    }

    .contentpop h4{
        padding: 0;
        font-size: 1em;
    }
    .viewMap .menupop img {
        max-width: 100%;
        height: auto;
    }
    .viewMap .setting .userSetting{
        display: none;
    }
    .viewMap .setting .search{
        width: 15em!important;
    }
    .bcollapse, .bactive{
        overflow-wrap: break-word;
    }
    .mobile-search-results {
        position: fixed;
        z-index: 1000;
    }
    p.report-title{
        padding-top: 0.75rem;
        font-size: 0.8rem;
    }
    .rscas-mycard .image {
        width: 50px;
        height: 50px;
    }
}
@media screen and (max-width: 481px) {
    .viewMap{
        height: 70vh;
    }
    .rscas-mycard .title{
        padding: 0 0 0 0.5em;
    }
    .list{
        top: 45px;
        position: absolute;
        left: calc(calc(100% - 250px) / 2);
        border-radius: 8px !important;
        height: 60vh !important;
        padding: 0 !important;
    }
    .list.close{
        display: none;
    }
    .list.active{
        display: block;
        top: 0!important;
        left:100%;
    }
    .viewMap .viewResult {
        width: calc( 100% - 13px );
    }
    .viewMap .viewResult.open, .colLabel{
        right: 5px;
    }
    .viewMap .viewResult .open_link {
        width: 100%;
        left: 0;
    }
    .viewMap .menupop .contentpop{
        width: 80%;
    }
    .viewMap .setting{
        width: 100%;
    }
    .viewMap .setting.max{
       width: 7em;
    }
    .viewMap .setting.min{
        right:-90%
    }
    .TitlePop{
        font-size: 0.7em;
    }
    .published{
        font-size: 0.7rem;
    }
    .country{
        margin-bottom: none;
    }
    .menulistpop{
        height: 8em;
    }
   
    .bcollapse, .bactive{
        font-size: 0.65em;
        padding: 0.55em;
    }    
    .viewMap .viewResult.open{
        height: 60%;
    }
    .content_close, .TitlePop{
        font-size: 0.8em!important;
    }
    .content-close{
        padding: 0.55em 1em;
    }
    .viewMap .menupop .contentpop h4{
        font-size: 0.9em;
    }
    .contentpop h4{
        font-size: 0.9!important;
    }
    .contentpop h5{
        font-size: 0.8rem!important;
    }
    .text-center .lang {
        font-size: 0.8em;
        text-align: center;
    }
    .boxPg10, .itemContentPop a{
        padding: 0.5em;
    }
    

    .viewMap{
        height: 60em;
    }

    div.list.active{
        display: none;
    }
    
    .mobile-search-results {
        left: 10px;
        right: 10px;
        max-height: 50vh;
        display: flex;
        flex-direction: column;
    }
    .mobile-result-item{
        background-color: white;
        color: #004a7c;
        border: #035192;
        width: 5em;
    }
    .viewMap .viewResult .content_result {
        height: calc(100% - 40px);
        overflow-y: auto;
    }
    .rscas-mycard{
        margin: none!important;
        height:60px;
        font-size: 8px;
        object-fit: contain;

    }

    p.report-title{
        padding-top: 1em;
    } 
    .itemContentPop b, .content-center a{
        font-size: 0.75rem;
    }
    .TitlePop {
        font-size: 0.8rem;
    }
    }
    
@media screen and (max-width: 241px){
    .viewMap .setting .search {
        width: 5em !important;
    }
}
.rscas-btn:not(:disabled):not(.rscas-disabled){
    margin: 0.5em 0 0.5em 0;
}












