/* ############ STILI GENERICI 	############  */	
.noAds > .google-auto-placed {display:none !important;}

.text-success { color: #067D52 !important; }
.text-danger { color: #A70636 !important; }

.font-piccolo { font-size: 12px; }
.font-piccolo .fa-brands { color: #808080; }

.numeriGrandi { font-size: 38px; color: #00d89f;  }
.testoGrande { font-size: 20px; font-weight: 700; }
.top, .top a { font-size: 16px; text-decoration: none; color: #4d4d4d; }

.bluPrimario { color: #0656a7 !important; }
.bluSecondario { color: #1D3470 !important; }

.verdePrimario { color: #00d89f !important; }
.verdeSecondario { color: #061 !important; }

.fondoGrigio { background-color: #F5F5F5 !important; }
.fondoBlu1 { background-color: #0656a7 !important; }
.fondoBlu2 { background-color: #1D3470 !important; }
.fondoVerdePrimario { background-color: #00d89f !important; }
.fondoVerdeSecondario { background-color: #061 !important; }  

.giallo { color: #ffd814 !important; }
.rosso { color: #ff1414 !important; }
.arancione { color: #f68421; }
.nero { color: #000000 !important; }
.btnGiallo { background-color: #ffd814 !important; }

.cta { 
    background-color: #0656a7; 
    color: #ffffff; 
    padding: 2rem;
    border-radius: 5px;
    text-decoration: none;
}
.cta.alternata {
    background-color: #061; 
    color: #FFFFFF; 
}

.sfondo-trasparente { background-color: rgba(255,255,255,0)!important; }

.btnBluPrimario {
    color:#ffffff !important;
    background-color: #0656a7; 
}

.btnBluPrimario:hover { 
    color:#ffffff !important;
    background-color: #1D3470 !important; 
}

.btnBluSecondario {
    color:#ffffff !important;
    background-color: #1D3470; 
}

.btnBluSecondario:hover {
    color:#ffffff !important;
    background-color: #0656a7; 
}

.btnVerdePrimario {
    color:#ffffff !important;
    background-color: #00d89f !important; 
}

.btnVerdePrimario:hover {
    background-color: #061; 
    color:#ffffff !important;
}

.btnVerdeSecondario {
    color:#ffffff !important;
    background-color: #061; 
}
.btnVerdeSecondario:hover {
    background-color: #00d89f;
    color:#ffffff !important;
}

.btnPartner { background-color: #f0f0f0; }

/* .btn.btn-outline-primary {
  color: #1D3470;
  border-color: #1D3470;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:active,
.btn.btn-outline-primary.active,
.btn.btn-outline-primary.show {
  color: #fff;
  background-color: #0656a7;
  border-color: #0656a7;
} */


.punto-elenco { 
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

.avviso {
    background-color: #2caffe;
    padding: 1rem;
    color: #FFFFFF;
}
.avviso a { color: #004080; }

.avviso2 {
    background-color: #00d89f;
    padding: 1rem;
    color: #1d3470 !important;
}
.avviso2 a { color: #1d3470; font-weight: 700;}



.modal.show {
    background-color: rgba(0, 0, 0, 0.7); 
}

/* CARD */
.card { 
    padding: 1rem;
}

.card-header, .card-footer { 
    background-color: #FFFFFF; 
    border: none; 
    justify-content: center; 
    align-items: center; 
}

.card-header { 
    font-weight: 700;
}

.card-body { color: #4d4d4d; }



/* CONTATORE */
.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    border-width: 1px 0 !important;
    border-style: solid;
    border-color: #0656a7;
    width: auto;
    margin: auto;
    margin-bottom: 2rem;
}
.countdown .box {
    padding: 20px;
    border-radius: 10px;
    width: 120px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}
.countdown .label {
    font-size: 1rem;
    margin-top: 5px;
    display: block;
}


/* NAV BAR */
.nav-link.active { font-weight: 700; color: #0656a7 !important; } 
.nav-link { font-size: 17px; }

/* HOME */
    .immagine-home {
        background-image: url('/img/img-home1.jpg');
        background-position: top center;
        background-size: 100% auto; /* Ensures the image fits the width of the page without stretching */
        background-repeat: no-repeat;
        background-color: #ffffff;
        max-width: 100%;
    }

/* GUIDA */
.container-overlapping-up {
    position: relative;
    z-index: 1;
    height: 100%; 
    overflow: hidden; 
}

.container-overlay-up {
    position: relative;
    top: 0;
    transform: translateY(-50%); 
    z-index: 2;
    height: 50%; 
}

.immagine-dettaglio-bottom {
    background-image: url('/img/fondoDettaglio.png');
    background-position: bottom center; 
    background-size: auto 700px; 
    background-repeat: no-repeat;
    background-color: #ffffff;
    min-width: 100%;
}

.immagine-dettaglioVerde {
    background-image: url('/img/sfondo-verde.png');
    background-position: bottom center; 
    background-size: auto 700px; 
    background-repeat: no-repeat;
    background-color: #ffffff;
    min-width: 100%;
}

.separatoreBlu {border: 2px solid #0656a7; width: 80px; margin: 20px 0px;}
.separatoreVerde {border: 2px solid #00d89f; width: 80px; margin: 20px 0px;}

.icona-guida {
    margin-bottom: 20px;
    height: 50px;
    width: auto;
}

.a-black { 
    font-style: italic !important; 
    font-weight: bold !important;
    color: #000 !important; 
    font-size: inherit;  }
.a-black:hover  { 
    text-decoration: underline !important;
    color: #000 !important; 
}

.a-white { 
    font-style: italic !important;
    font-weight: bold !important;
    color: #fff !important; 
    font-size: inherit;  }
.a-white:hover  { 
    text-decoration: underline !important;
    color: #fff !important; 
}

/* GRAFICI */
    .tableGrafici, .tableGrafici *,
    .tableDoppia, .tableDoppia * {
        /*font-size: 0.9rem;*/
        border-bottom: none;
    }

    .tableGrafici td,
    .tableDoppia td {
        padding: 4px 3px; 
        letter-spacing: 1px;
    }

    /* Alternating row colors */
    .tableGrafici tr:nth-child(odd) td, 
    .tableDoppia tr:nth-child(odd) td,
    .tableDati tr:nth-child(odd) td {
        background-color: rgba(44, 175, 254, 0.1) !important;
    }
    
    .scheda-header { 
        text-transform:uppercase;
    }

    /*tableDati */

    .tableDati, .tableDati * {
        font-size: 16px;
        border-bottom: none;
    }

    .tableDati thead tr th:first-child,
    .tableDati tbody tr th:first-child {
        position: sticky !important;
        left: 0;
        z-index: 2;
    }

    .sticky-column {
        position: sticky;
        left: 0;
        z-index: 2;
    }

    .tableDati td {
        min-width: 200px;
        padding: 1rem 1.25rem; 
    }

    .tableDati th {
        background-color: #fff;
        min-width: 175px;
        font-weight: normal;        
    }

    .tableDati td span {
        display: inline-block !important; 
    }

    .tableDati td,
    .tableDati td span  {
        white-space: nowrap;
    }

    .tableDati tr{
        min-height: 25px !important;
    }


/* SEARCH */
    .form-check-label { border: 0; }

    .nav-link-tab { 
        background-color: #0656a7; 
        color: #FFFFFF; 
        border-radius: 10px; 
        font-size: 14px;
        width: 100%;
    }

    .dataTables_info {
        font-size: 14px;
        padding-top: 1rem;
        text-align: center;
        font-style: italic;
    }

    .ricercaSemplice_filter {
        font-size: 14px;

    }

    .dataTables_filter {
        margin-bottom: 2rem;
        background-color: #F5F5F5; 
        padding: 1rem;
    }

    .dataTables_paginate {
        text-align: center;
        padding: 1rem;
    }
    .paginate_button {
        font-size: 14px;
        padding: 3px 10px;
        border: 1px solid #F5F5F5 !important;
        cursor: pointer;
    }

    .paginate_button.current {
        background-color: #4a4a4a !important; 
        border: 1px solid #cccccc !important;
        color:#ffffff;
    }


    .voce_titolo { 
            display: flex;  
            justify-content: space-between; 
            border-bottom: 1px solid #aaa;
            padding: 5px;
            margin: 5px 0; 
    }

    .voce .filtri_menu  { padding: 5px 0; margin:5px 5px; }
    .voce .filtri_menu input[type=text] { border:none; width: 100%; font-size: 14px; }
    .filtri_menu span { font-size: 14px; }

    .voce .filtri_menu .voce_filtro { border-bottom: 1px solid #aaa;  display: flex;  justify-content: space-between; }


    .voce .selezionati a { font-weight: bold; } 
    .voce .selezionati  {
        display: flex;
        justify-content: space-between;
        border-radius: 5px;
        background-color: #d4edf7;
        margin: 5px 0;
        padding: 5px 10px;
        font-size: 11px;
    }


    .accordion-button, .accordion-button a {
        background-color: #183a72;
        color: #FFFFFF;
    }

    .accordion-button:hover {
        color: #00d89f !important;
    }

    .accordion-button::after { color: #FFFFFF !important; }
    .accordion-button, .accordion-button .collapsed, .accordion-button:not(.collapsed) { color: #00d89f; }
    


    .testo-home {
            min-height: 400px;
        }
    
    .loading {
        display: none;
        padding: 20px;
    }
    
    .tooltip-text {
        visibility: hidden;
        width: 300px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 20px;
        position: absolute;
        z-index: 1;
        bottom: 125%; /* Position the tooltip above the icon */
        left: 50%;
        margin-left: -150px; /* Center the tooltip */
        opacity: 0;
        transition: opacity 0.3s;
        font-weight: 300;
    }

    .info-icon:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

        
    .pannello_ricerca .nav-pills { width: 95%; margin: 0 auto;}

    .pannello_ricerca .nav-item {  font-size:12px; }
    .pannello_ricerca .nav-item .active {  background-color: #fff!important; border-radius: 10px 10px 0 0; color:#000!important; width: 80%!important; margin: 0 10% 0 10%; font-weight: bold; font-size:12px; height: 100%; }

    .pannello_ricerca .tab-content {  border-radius: 10px; min-height: 315px; display: flex; }
    
    /* Cambia il colore delle frecce */
    table.dataTable thead .sorting:after {
        content: "\f07d"; /* Aggiungi una freccia giù */
        font-family: FontAwesome; /* Usa FontAwesome per icone */
        margin-left: 0.5rem;
    }

    table.dataTable thead .sorting_asc:after {
        content: "\f062"; /* Aggiungi una freccia su */
        margin-left: 0.5rem;
    }

    table.dataTable thead .sorting_desc:after {
        content: "\f063"; /* Aggiungi una freccia giù */
        margin-left: 0.5rem;
    }

   



/* CODICI ATECO */
    .accordion-button {
        background-color: #183a72; /* Base color */
        color: #fff;
    }

    .accordion-button:not(.collapsed) {
        background-color: #183a72; /* Slightly darker when expanded */
    }

    .accordion-body {
        background-color: #f5f5f5;
    }
    /* === FRECCE ACCORDION BIANCHE === */

/* Freccia chiusa */
.accordion-button::after {
  filter: invert(100%) brightness(200%); /* trasforma in bianco */
}

/* Freccia quando aperta */
.accordion-button:not(.collapsed)::after {
  filter: invert(100%) brightness(200%);
}


/* DETTAGLIO AZIENDA */
    .immagine-dettaglio {
        background-image: url('/img/fondoDettaglio.png');
        background-position: top center;
        background-size: 100% auto; /* Ensures the image fits the width of the page without stretching */
        background-repeat: no-repeat;
        max-width: 100%;
        background-color: #fff;
    }

    .titolo-dettaglio {
            min-height: 200px;
        }
    
    .titolo-dettaglio-img {
        width: 100%;          
        height: 300px;        
        object-fit: cover;    
        object-position: center; 
    }

    .titoletto { font-weight: 700; 
    line-height: 1.5rem;}
    .testoPiccolo { font-size: 0.90rem; }


    .card-header {
        padding-top: 2rem; 
        border-bottom: none; 
    }
    
    .bottone-container {
        width: 100%; 
    }

    .bottoneAzienda {
        background-color: #FFFFFF;
        border: solid 1px #cccccc;

        padding: 10px 15px;
        border-radius: 5px;
        text-align: center;
        vertical-align: middle;
        flex-grow: 1; 
        margin: 0 5px; 

        line-height: 20px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
    
    .bottoneAzienda:hover, .bottoneAzienda.active, .bottoneAzienda:hover a { background-color: #0656a7; color: #ffffff !important; }
    
    .btn-start,
    .btn-middle,
    .btn-end {
        border-radius: 50rem !important; 
    }

    .vertical-text {
        writing-mode: vertical-rl; /* Per il testo verticale da destra a sinistra */
        transform: rotate(180deg); /* Per capovolgere il testo */
        /* Altre opzioni di stile */
        font-size: 24px;
        white-space: nowrap; /* Per evitare che il testo vada a capo */
    }

    .cards-home { background-color: #ffffff; }
                
    .cardHometesto span { font-size: 12px; }
    .cards-home:hover { background-color: #0656a7; } 
    .cards-home:hover * { color: #ffffff !important; }

    .cardHomeIcona {
        background-color: #0656a7;
        padding: 5px;
        width: 50px;
        height: 50px;
        position: absolute;
        left: -25px;
    }
    .cardHomeIcona img { 
        width: 40px;
        height: 40px;
    }


    .scheda-header {
        display: flex;
        align-items: center; 
        margin: 0;
    }

    .punto-elenco {
        margin-right: 10px;
        width: 16px;
        height: auto;
        display: inline-block;
    }

    .sottotitolo { margin-left: 30px;}
    
    .collapse.show + a .fa-chevron-right {
        transform: rotate(90deg);
        transition: transform 0.3s;
    }
    
    /* Dati offuscati */
    .blurred {
        filter: blur(5px); /* Applica il blur */
        cursor: pointer;
        transition: filter 0.3s ease; /* Transizione quando rimosso */
    }
    
    /* Animazione per ruotare l'icona */
    .icon-collapse {
        transition: transform 0.3s ease;
    }
    .icon-rotated {
        transform: rotate(180deg);
    }

    .menuSchede h3 { 
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    
    .menuSchede .nav-link {
        font-size: 0.85rem;
        line-height: 1rem;
        color: #000000;
    }
    .vociInterneSchede .smooth-scroll {
        line-height: 1.5rem;
        cursor: pointer;
    }

    .vociInterneSchede .smooth-scroll:hover {
        color: #1D3470 !important; 
    }

    .score-display {
        color: white; 
        padding: 0.5rem 0.75rem; 
        border-radius: 0.25rem; 
        aspect-ratio: 1 / 1; 
        display: flex; 
        align-items: center;
        justify-content: center;
    }

/* VALUTE YAHOO FINANCE*/

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f4f4f4;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 200s linear infinite;
    font-size: 15px;
}

@keyframes scroll-left {
    from { transform: translateX(10%); }
    to { transform: translateX(-100%); }
}


.positive {
    color: green;
}

.negative {
    color: red;
}


/************************** Scheda ANALISI FINANZIARIA (scheda00) ****************************/
.liste {
    list-style-type: none; /* Rimuove i punti elenco predefiniti */
    padding-left: 0; /* Rimuove il margine sinistro della lista */
}

.liste li {
    position: relative; /* Necessario per posizionare l'icona */
    padding-left: 25px; /* Distanza tra l'icona e il testo */
}

.liste li::before {
    content: "\f101"; /* Unicode per l'icona fa-angles-right */
    font-family: "Font Awesome 6 Free"; /* Font Awesome 6 */
    font-weight: 900; /* Assicurati di usare il peso 'Solid' */
    position: absolute;
    left: 0;
    top: 0; /* Allinea l'icona in cima alla riga */
    transform: translateY(0); /* Rimuovi la centratura verticale */
}

#contenuto-wrapper {
    position: relative;
}


/*
.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; 
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
    pointer-events: none; 
    z-index: 10;
}
*/
.login-overlay-box {
    
    background: rgb(255, 255, 255);
    padding: 20px 25px;
    text-align: center;
    z-index: 11;
    max-width: 90%;
}

.login-overlay-box p {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333;
}

.login-overlay-box button {
    padding: 8px 18px;
    font-size: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-overlay-box button:hover {
    background-color: #0056b3;
}

.login-overlay-box {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.login-overlay-box.visible {
    opacity: 1;
}

.extra-padding {
    padding-bottom: 3rem; /* ajusta según altura del box */
}
    

.image-score {
    max-height: 50px !important;
    aspect-ratio: 1 / 1 !important; 
}

#riga00504 ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#riga00504 li {
    position: relative;
    display: flex;
    align-items: stretch; 
    padding-left: 5rem;
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: start;
}

#riga00504 li::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 35px;
    color: white;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 0.25rem;
    margin: 0.75rem;
    padding: 0.75rem !important;
    display: flex;
    align-items: center;
}

#riga00504 li:nth-child(1)::before {
    content: "\f164";
    background-color: #061;
}

#riga00504 li:nth-child(2)::before {
    content: "\f2b5";
    background-color: #f4b400;
    font-size: 29px !important;
}

#riga00504 li:nth-child(3)::before {
    content: "\f165";
    background-color: #A70636;
}


/* MAPPA */
#map {
    touch-action: pan-y; 
    pointer-events: auto; 
    overflow: hidden; 
}

/* tooltip */
.js-tooltip {
  display: inline-flex;
  align-items: center;
  vertical-align: top;
  margin-left: 4px;
  flex-shrink: 0;
}

.js-tooltip i.bi {
  font-size: 0.85em; /* ligeramente más pequeño */
  vertical-align: middle;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.js-tooltip i.bi:hover {
  opacity: 1;
}

.custom-tooltip {
  position: fixed;
  background: white;
  color: black;
  padding: 6px 10px;
  border-radius: 0;
  border: 3px solid #183a72;
  white-space: normal;  
  max-width: 250px;      
  word-wrap: break-word;   
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0;
  
}

/* Flecha */
.custom-tooltip::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* En pantallas grandes: flecha a la izquierda */
@media (min-width: 768px) {
  .custom-tooltip::after {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-color: transparent white transparent transparent;
  }
}
/*tooltip ends*/


/* Scheda AI*/
.rotating-icon {
    font-size: 24px;
    color: #0656a7;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .w-md-50 {
        width: 70% !important;
    }

    
}
    

@media (min-width: 992px) { /* 992px è la larghezza per lg in Bootstrap */
    .header-bottoni {
        margin-top: -3rem !important;
    }

    /* GRAFICI */
    .tableDoppia, .tableDoppia * {
        border-bottom: none;
    }


}


@media (max-width: 1200px){

    .tableDati td {
        /*min-width: 180px;*/
        padding: 0.50rem !important;     

    }

    .tableDati td span {
        display: inline-block; 
    }

}


@media (max-width: 768px) { /* For medium screens and up (md bootstrap)*/

    /* GENERICI */
    .numeriGrandi { font-size: 30px; color: #00d89f;  }

    /* GRAFICI */
    .tableGrafici, .tableGrafici * ,
    .tableDoppia, .tableDoppia *,
    .tableDati, .tableDati *  {
        border-bottom: none;
    }
    .tableGrafici td,
    .tableDoppia td,
    .tableDati td  { 
        padding: 4px 3px; 
        letter-spacing: 0.2px;
    }    

    /*guida Movile*/
    .immagine-dettaglio-bottom {
        background-image: url('/img/fondoDettaglio-movile.jpg');
        background-position: bottom center; 
        background-size: auto 1200px; 
        background-repeat: no-repeat;
        background-color: #ffffff;
        min-width: 100%;
    }

    .immagine-home {
        background-image: url('/img/img-home1.jpg');
        background-position: top center;
        background-size: 800px; /* Ensures the image fits the width of the page without stretching */
        background-repeat: no-repeat;
    }


    .sediBoxResponsive {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* CTA */

.imgCTA { max-height: 350px;}

/* LOGIN ECOMMERCE2 */
.logo_img { width: 400px; }

@media (max-width: 576px) { /* For small screens and up (ms bootstrap)*/

    .titolo-dettaglio {
        min-height: 250px;
    }

    .immagine-dettaglio {
        background-image: url('/img/fondoDettaglio.png');
        background-position: top center;
        background-size: 600px; /* Ensures the image fits the width of the page without stretching */
        background-repeat: no-repeat;
    }

    .no-shadow-sm {
        box-shadow: none !important;
    }
    .no-border-sm {
        border: none !important;
    }

    /* GENERICI */
    .numeriGrandi { font-size: 25px; color: #00d89f;  }

    /* CARD */
    .card { 
        padding: 1rem 0 !important;
    }


    /* GRAFICI */
    .tableGrafici, .tableGrafici *,
    .tableDoppia, .tableDoppia *,
    .tableDati, .tableDati *   {
        font-size: 14px;
        border-bottom: none;
    }
    
    .tableGrafici td,
    .tableDoppia td   { 
        padding: 4px 3px; 
        letter-spacing: 0px;
    }

}








/* === Stile moderno e coerente per Choices.js in ricercaPersonalizzata=== */

#ricercaPersonalizzata .choices {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#ricercaPersonalizzata .choices__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
  width: 100%;
  background-color: var(--bs-body-bg, #f8f9fa);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bs-border-color, #ced4da);
  border-radius: 0.5rem;
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#ricercaPersonalizzata .choices__inner:focus-within {
  border-color: #183a72;
  box-shadow: 0 0 0 0.25rem rgba(24, 58, 114, 0.25);
}

#ricercaPersonalizzata .choices__list--multiple .choices__item--selectable,
#ricercaPersonalizzata .choices__list--single .choices__item--selectable {
  background-color: #183a72;
  color: #fff;
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  margin: 0.25rem 0.4rem 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.2s;
}

#ricercaPersonalizzata .choices__list--multiple .choices__item--selectable:hover,
#ricercaPersonalizzata .choices__list--single .choices__item--selectable:hover {
  background-color: #084298;
}

#ricercaPersonalizzata .choices__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  background-color: transparent;
  color: #ffffff;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#ricercaPersonalizzata .choices__button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

#ricercaPersonalizzata .choices__button::after {
  content: '×';
  line-height: 1;
}

#ricercaPersonalizzata .choices__input--cloned {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.3rem 0.4rem;
  font-size: 0.85rem;
  min-width: 2ch;
  flex-grow: 1;
  color: var(--bs-body-color, #212529);
}

#ricercaPersonalizzata .choices__input--cloned:focus {
  border: none;
  outline: none;
}

#ricercaPersonalizzata .choices__list--dropdown,
#ricercaPersonalizzata .choices__list.choices__list--dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1055;
  margin-top: 0.25rem;
  background-color: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #ced4da);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

#ricercaPersonalizzata .choices__list--dropdown::-webkit-scrollbar,
#ricercaPersonalizzata .choices__list.choices__list--dropdown::-webkit-scrollbar {
  width: 6px;
}

#ricercaPersonalizzata .choices__list--dropdown::-webkit-scrollbar-thumb,
#ricercaPersonalizzata .choices__list.choices__list--dropdown::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

#ricercaPersonalizzata .choices__list--dropdown::-webkit-scrollbar-track,
#ricercaPersonalizzata .choices__list.choices__list--dropdown::-webkit-scrollbar-track {
  background-color: transparent;
}

#ricercaPersonalizzata .choices__item--choice {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: var(--bs-body-color, #212529);
  background-color: var(--bs-light, #f8f9fa);
  border: 1px solid var(--bs-border-color, #ced4da);
  border-radius: 2rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  animation: fadeIn 0.15s ease-in;
  margin: 4px 6px;
}

#ricercaPersonalizzata .choices__item--choice:hover,
#ricercaPersonalizzata .choices__item--choice.is-highlighted {
  background-color: var(--bs-primary-bg-subtle, #e7f1ff);
  color: var(--bs-primary-text-emphasis, #052c65);
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
  transform: translateY(-1px);
}

/* Animazione fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ricercaPersonalizzata .choices > select {
  opacity: 0;
  position: absolute;
  left: -9999px;
  pointer-events: none;
  height: 0;
  width: 0;
}



/* Spinner coerente */
#spinnerContainer .spinner-border {
  width: 2rem;
  height: 2rem;
  color: #183A72;
}


/* === MIGLIORAMENTO CONTROLLI DataTables: Cerca e Mostra === */

/* Contenitore unico per bottoni + select + search */
.toolbar-tabella {
  background-color: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}


/* Stile campo cerca e mostra */
#ricercaPersonalizzata #tabellaRisultati_length label,
#ricercaPersonalizzata #tabellaRisultati_filter label {
  font-weight: 600;
  color: #183A72;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



/* Uniforma altezza elementi */
.toolbar-tabella .form-select,
.toolbar-tabella .form-control,
.toolbar-tabella .btn {
  height: 36px;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  line-height: 1.5;
  border-radius: 6px;
}

.toolbar-tabella .form-select {
  appearance: none;       /* Nasconde lo stile nativo (freccia compresa) */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none; /* Rimuove anche eventuali sfondi */
}

/* Allinea "Mostra n righe" e "Cerca" con padding interno coerente */
/* .dataTables_length,
.dataTables_filter {
  margin: 0 !important;
  padding: 0 !important;
} */

.dataTables_filter label,
.dataTables_length label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}


/* Badge campi visualizzati ricercaPersonalizzata */

.campo-selezionato {
  display: inline-block;
  background-color: #183a72;
  color: #fff;
  padding: 0.35em 0.7em;           
  font-size: 0.82rem;             
  font-weight: 500;               
  border-radius: 1rem;            
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

.campo-selezionato:hover {
  background-color: #084298;
  cursor: default;
  transform: scale(1.04);
}


/* Input filtri numerici ricercaPersonalizzata */
.form-control.form-control-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  box-shadow: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s;
}


.form-control.form-control-sm:focus {
  border-color: #183a72;
  box-shadow: 0 0 0 0.15rem rgba(6, 86, 167, 0.25);
}

/* Titoli e sottotitoli ricercaPersonalizzata*/

h5.titolo-modern,
h5.sottotitolo-modern {
  font-size: 1.3rem;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1.5rem;
}

h5.titolo-modern {
  position: relative;
  font-weight: 600;
  color: #183a72;
  padding-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

h5.titolo-modern::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background-color: #00d89f;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #00d89f1a;
  transition: width 0.3s ease;
}

h5.titolo-modern:hover::after {
  width: 90px;
}

h5.sottotitolo-modern {
  font-weight: 500;
  color: #183a72;
  border-left: 4px solid #00d89f;
  padding-left: 12px;
}

/* Pulsante Reset ricercaPersonalizzata*/
.btn-reset-custom {
  background-color: #dc3545;
  color: #fff;
  border: 1px solid #dc3545;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 0.375rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  line-height: 1.5;
}

.btn-reset-custom:hover {
  background-color: #bb2d3b;
  border-color: #b02a37;
  color: #fff; 
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
  transform: translateY(-1px);
}

.btn-reset-custom:active {
  background-color: #a52834;
  border-color: #92262f;
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(211, 47, 47, 0.2);
}



/* Bottone accordion (chiuso e aperto) */
#ricercaPersonalizzata .accordion-button {
  background-color: #183a72;
  color: #ffffff;
  box-shadow: none;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Icona caret (freccetta) bianca */
#ricercaPersonalizzata .accordion-button::after {
  filter: brightness(0) invert(1);
}

/* Corpo dell'accordion aperto */
#ricercaPersonalizzata .accordion-body {
  background-color: #ffffff;
  color: #183a72;
  border-left: 3px solid #183a72;
}


#ricercaPersonalizzata .badge.bg-primary {
  background-color: #183a72 !important;
  color: #ffffff;
}

/* riempimento checkbox ricercaPersonalizzata */


#ricercaPersonalizzata .form-check-input:checked {
  background-color: #183A72;
  border-color: #183A72;
}

#ricercaPersonalizzata .form-check-input:checked::before {
  background-color: #ffffff; /* Colore della spunta ✓ */
}


/* Contenitore box dei filtri da settare ricercaPersonalizata */

#filtriSelezionatiContainer {
  background-color: #f1f3f5; /* sfondo contenitore filtri */
  border: 1px solid #ced4da;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Singolo box filtro attivo */
#filtriSelezionatiContainer .bg-filtri-attivi {
  background-color: #ffffff;
  border: 1px solid #cfd4da;
  border-left: 5px solid #183a72;
  border-radius: 0.65rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  font-size: 0.9rem;
  color: #212529;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

#filtriSelezionatiContainer .bg-filtri-attivi:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* Etichetta filtro */
#filtriSelezionatiContainer .bg-filtri-attivi .etichetta-filtro {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;  
  color: #183a72;
  letter-spacing: 0.3px; 
  margin-bottom: 0.2rem;
}

/* Valore filtro */
#filtriSelezionatiContainer .bg-filtri-attivi .valore-filtro {
  font-size: 0.95rem;
  font-weight: 500;
  color: #343a40;
  word-break: break-word;
}

#campiSelezionatiContainer {
  background-color: #f1f3f5;
  border: 1px solid #ced4da;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}


.novita-badge {
  width: 50px;            /* Più grande rispetto a prima */
  height: auto;
  max-width: 100%;
  vertical-align: middle;
  margin-right: 0.65em;
  margin-left: -10px;      /* Sposta leggermente a sinistra */
}

@media (max-width: 576px) {
  .novita-badge {
    width: 32px;          /* Più grande anche su mobile */
    margin-right: 0.45em;
    margin-left: -6px;    /* Anche su mobile più a sinistra */
  }
}








/* =====================================================
   COOKIE BANNER + PREFERENCE CENTER — REPORTAZIENDE.IT
   ===================================================== */

/* === BANNER PRINCIPALE === */
.termsfeed-com---nb.termsfeed-com---palette-dark,
.termsfeed-com---palette-dark.termsfeed-com---nb {
  background-color: #183a72 !important;
  color: #f1f3f5 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
}

/* Link (Privacy Policy, Cambia impostazioni, ecc.) */
.termsfeed-com---link,
#open_preferences_center {
  color: #f1f3f5 !important;
  text-decoration: underline !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Pulsanti banner */
.cc-nb-okagree,
.cc-nb-reject,
.cc-nb-changep {
  background-color: #eaeaea !important;
  color: #183a72 !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  padding: 8px 18px !important;
  margin: 4px !important;
  cursor: pointer !important;
  transition: all 0.25s ease-in-out;
}
.cc-nb-okagree:hover,
.cc-nb-reject:hover,
.cc-nb-changep:hover {
  background-color: #cfd4da !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   PREFERENCE CENTER
   ===================================================== */

/* === CONTENITORE GENERALE === */
.cc-pc-container,
.cc-pc-container * {
  background-color: #183a72 !important;
  color: #f1f3f5 !important;
  font-family: 'Poppins', sans-serif !important;
}
.cc-pc-container p,
.cc-pc-container h1,
.cc-pc-container h2,
.cc-pc-container h3,
.cc-pc-container h4,
.cc-pc-container label,
.cc-pc-container span {
  color: #f8f9fa !important;
}

/* === HEADER === */
.cc-pc-head,
.cc-pc-head-title,
.cc-pc-head-title-text,
.cc-pc-head-title-headline {
  background-color: #183a72 !important;
  color: #f1f3f5 !important;
  border: none !important;
}
.cc-pc-head-close {
  background: transparent !important;
  color: #f1f3f5 !important;
  font-size: 22px !important;
  border: none !important;
  cursor: pointer !important;
}

/* === CORPO PRINCIPALE === */
body .termsfeed-com---pc-dialog .cc-cp-body,
body .termsfeed-com---palette-dark .cc-cp-body {
  background-color: #183a72 !important;
  color: #f1f3f5 !important;
  display: flex !important;
  align-items: stretch !important;
  border: none !important;
  box-shadow: none !important;
}
body .termsfeed-com---pc-dialog .cc-cp-body *,
body .termsfeed-com---palette-dark .cc-cp-body * {
  background-color: transparent !important;
  color: #f1f3f5 !important;
  border: none !important;
  box-shadow: none !important;
}

/* === MENU LATERALE (Tabs sinistro) === */
body .termsfeed-com---pc-dialog .cc-cp-body-tabs-item,
body .termsfeed-com---palette-dark .cc-cp-body-tabs-item {
  background-color: #f1f3f5 !important;
  color: #183a72 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

body .termsfeed-com---pc-dialog .cc-cp-body-tabs-item-link,
body .termsfeed-com---palette-dark .cc-cp-body-tabs-item-link {
  display: block !important;
  width: 100% !important;
  background-color: #f1f3f5 !important;
  color: #183a72 !important;
  font-weight: 600 !important;
  margin: 3px 0 !important;
  padding: 10px 12px !important;
  text-align: left !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}
body .termsfeed-com---pc-dialog .cc-cp-body-tabs-item-link:hover {
  background-color: #e0e5eb !important;
  color: #183a72 !important;
}
body .termsfeed-com---pc-dialog .cc-cp-body-tabs-item[active="true"] .cc-cp-body-tabs-item-link,
body .termsfeed-com---pc-dialog .cc-cp-body-tabs-item-link[aria-selected="true"] {
  background-color: #d8dde3 !important;
  color: #183a72 !important;
  font-weight: 700 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
body .termsfeed-com---pc-dialog .cc-cp-body-tabs-item-link:focus,
body .termsfeed-com---pc-dialog .cc-cp-body-tabs-item-link:active {
  background-color: #d8dde3 !important;
  color: #183a72 !important;
  transform: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* === CONTENUTO PRINCIPALE (Colonna destra) === */
body .termsfeed-com---pc-dialog .cc-cp-body-content,
body .termsfeed-com---palette-dark .cc-cp-body-content {
  background-color: #183a72 !important;
  color: #f1f3f5 !important;
  border-left: 1px solid rgba(255,255,255,0.15) !important;
  padding-left: 20px !important;
}
.cc-cp-body-content-entry-title {
  color: #ffffff !important;
  font-weight: 600 !important;
}
.cc-cp-body-content-entry-text {
  color: #f1f3f5 !important;
  line-height: 1.6 !important;
}

/* === FOOTER === */
.cc-cp-foot {
  background-color: #183a72 !important;
  color: #f1f3f5 !important;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
}
.cc-cp-foot-save,
.cc-pc-btn,
.cc-pc-accept-all,
.cc-pc-reject-all,
.cc-pc-save {
  background-color: #eaeaea !important;
  color: #183a72 !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  padding: 8px 18px !important;
  margin: 4px !important;
  cursor: pointer !important;
  transition: all 0.25s ease-in-out;
}
.cc-cp-foot-save:hover,
.cc-pc-btn:hover,
.cc-pc-accept-all:hover,
.cc-pc-reject-all:hover,
.cc-pc-save:hover {
  background-color: #cfd4da !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.cc-cp-foot-byline,
.cc-cp-foot-byline a {
  color: #f1f3f5 !important;
}

/* === CHECKBOX e SWITCH === */
.cc-custom-checkbox input[type="checkbox"],
.cc-switch input[type="checkbox"] {
  accent-color: #f1f3f5 !important;
}


/* MODALE CHIUSURA */
  #exitModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 10000;
      justify-content: center;
      align-items: center;
  }
  #exitModalContent {
      background: white;
      padding: 20px;
      border-radius: 5px;
      text-align: center;
  }




















