*, ::after, ::before {
     box-sizing: inherit;
}

 .tabelle_container a, .tabelle_container button, .tabelle_container input {
     transition: all .1s ease-in-out;
}

 figure.aligncenter.size-full {
     margin: 0 auto !important;
}
 .tabelle_button_green {
     background: #008344;
}
 .tabelle_button{
     width: 264px;
}
 .tabelle_wrap {
     padding: 7px;
     margin-bottom: 48px;
     margin-top: 5px;
}

.tabelle_container .filtered .feature {
	display:none;
}

#loading-spinner {
	display: inline-block;
	margin-left: 10px;
	padding: 5px 10px;
	background-color: #f0f0f0;
	border-radius: 3px;
	font-style: italic;
}


.tabelle_container .filtered {
}

#contentToBlur.filtercontent {
    display: flex;
    flex-wrap: nowrap; 
    column-gap: 15px;
}

.filter-main {
    flex-basis: 20%;
    max-width: 20%;
    min-width: 20%;
}

#risultati-agenzie {
    flex-grow: 1; 
}

#filtri-form label {
    font-size: 15px;
}


.filter-button {
    display: none;
    background-color: #ffffff;
    color: #203454;
    padding: 10px 20px;
    border: 2px solid #1e3359;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0; 
    width: 100%; 
    text-align: center;
}


.filter-button.update {
    background-color: #007bff; 
}


.filter-main h3 {
    font-family: Inter, Helvetica, arial;
    font-size: 16px;
    background: #edf1f6;
    padding: 7px 10px;
    border-radius: 4px 4px 0 0;
    text-align: left;
    letter-spacing: 0;
}

form#filtri-form {
	border-radius: 4px 4px 0 0;
    background: #f9f9f9;
}

#filtri-form fieldset {
margin-bottom: 10px;
    padding-bottom: 14px;
    padding-left: 10px;
    border-bottom: 1px solid #ddd;
    margin-right: 8px;
    margin-left: 8px;
}

#filtri-form legend {
    font-size: 15px;
    font-weight: 600;
    width: 100%;
}

.tabelle_container {
     padding-bottom: 40px;
     font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

.tabelle_container .warning-update-container {
	display: flex;
	align-items: center;
	margin-bottom: 0rem;
	font-size: 13px;
	padding: 0 1px;
	justify-content: flex-start;
	flex-direction: row-reverse;
	margin-right: 10px;
}

.tabelle_container .warning-text span.tooltip {
	background: inherit;
	border: inherit;
	color: inherit;
	padding: inherit;
	opacity: 0.8;
	font-size: 13px;
	color: #333;
}

.tabelle_container .update-date {
    font-style: italic;
    color: #333;
    font-size:13px;
    border-radius: 4px;
    padding: 4px 0px;
}

.tabelle_container .custom-tooltip {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
   
}

.tabelle_container .warning-text {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: #333;
}

.tabelle_container .tooltip-text {
    position: absolute;
    width: 400px;
    max-width: 350px;
    top: 100%;
    right: 0%;
    background: #223554;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10000;
    word-wrap: break-word;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease; 
    visibility: hidden; 
}

.tabelle_container .warning-text .tooltip-icon {
    margin-left: 0.5rem; 
    width: 18px; 
    height: 18px; 
}

.tabelle_container .warning-text:hover .tooltip-text {
    opacity: 1; 
    visibility: visible; 
}

.tabelle_container .single_row {
	box-shadow: 0px 2px 10px rgba(0,0,0,.1);
    margin-bottom: 30px;
    min-height: 200px;
}

.tabelle_container .loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001; 
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.blur-effect {
    filter: blur(5px);
}

/* Loading state — only on results container, never sidebar */
#risultati-agenzie {
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

#risultati-agenzie.is-loading {
    opacity: 0.4;
    filter: blur(2px);
    pointer-events: none;
}

.tp-filters-sidebar {
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
}


.main_row {
	display: flex;
	position: relative;
	transition: 1s easy-in;
	justify-content: space-around;
	min-height: 220px;
}

.logobrand { 
    display: flex;
    flex-basis: 50%;
    padding: 0 11px;
}

.single_row .main_row  .caratteristiche ul li {
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    line-height: 1.5;
    position: relative;
}


.single_row .main_row  .caratteristiche ul li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 5px;
    padding: 15px 25px 0 0;
    height: 10px;
    width: 10px;
    background-image: url(../../assets/img/v.svg);
    background-repeat: no-repeat;
}

.single_row .main_row  .cta-btn-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-basis: 20%;
	margin-right: 20px;
}

.single_row .main_row  .disclaimer-text {
    font-size: 10px;
    color: #666;
    padding: 5px 5px;
    text-align: center;
}

.single_row .main_row .rating-container {
	display: flex;
    flex-direction: row-reverse;
    align-items: center;
    font-size: 13px;
}

.tabelle_container .star {
    font-size: 18px;
    position: relative;
}

.tabelle_container .star.filled {
	content: '\2605'; 
	color: #ffa83c;
}

.tabelle_container .star.half-filled {
    content: '\2605'; 
    color: #ffa83c40;
}

.tabelle_container .star.half-filled::before {
    content: '\2605'; 
    position: absolute;
    left: 0;
    width: 50%; 
    overflow: hidden;
    color: #ffa62f; 
}

.tabelle_container .star.empty {
    content: '\2606'; 
    color: #ffa83c40; 
}


.single_row .main_row .rating-number {
	font-size: 13px;
    color: #838a97;
    padding-right: 4px;
    padding-top: 2px;
}

.single_row .main_row .rating-out-of {
	font-size: 13px;
    font-weight: 400;
}

.single_row .main_row .disclaimer-text p {
	margin-top: 10px;
	font-size: 13px;
	color: #475569;
}

.single_row .main_row span.numero {
     color: #fff;
     position: absolute;
     top: 0;
     left: 0;
     font-weight: 900;
     font-size: 15px;
     background: #ffa723;
     padding: 0px 8px;
}
.single_row .the-best {
	position: absolute;
	top: 0px;
	left: 31px;
	background: #ffa617;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 1.66px 10px;
	border-radius: 0px 0px 5px 0px;
}

.single_row .the-best svg {
    margin-right: 4px;
    padding-top: 0px;
	margin-top: 3px;
}


.single_row .the-best:before {
	display:none;
}

.single_row .main_row .feature_desc {
	font-size: 13px;
    font-weight: 600;
    background: #eef7f2;
    border-radius: 4px;
    padding: 5px 10px;
    text-align: left;
    color: #228b54;
    margin-top: 10px;
    margin-left: -17px;
    width: fit-content;
}

.single_row .main_row .brand {
    padding: 0px 20px 0px 5px;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-basis: 20%;
    word-break: normal !important;
    border-right: 1px solid #f3f3f3;
}

.single_row .main_row .brand img {
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    height:auto;
    max-width: 180px;
    padding: 10px;
	object-fit: contain;
}


.single_row .main_row .caratteristiche {
	flex-basis: 40%;
	display: flex;
	border: none;
	flex-direction: column;
	vertical-align: top;
    padding: 20px 25px;
	font-size: 15px;
	justify-content: center;
}

.single_row .main_row .caratteristiche-title {
	font-weight: bold;
    margin-bottom: 10px;
    font-size: 15px;
    margin-left: -15px;
}	
	
.single_row .main_row .caratteristiche ul,.feature ul {
     margin: 0 0px;
     list-style: none;
     padding:0 !important;
}
.single_row .main_row .feature ul li {
     font-size: 14px;
     cursor: pointer;
     list-style: none;
     line-height: 1.4;
}

.single_row .main_row .feature {
	text-align: right;
    margin: 20px 20px 20px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-basis: 15%;
    border: none;
    padding: 18px;
}



.single_row .main_row .feature .testo-valore  {
    font-size: 14px;
    font-weight: 600;
    color: #203454;
	margin-bottom: -6px;

}

.single_row .main_row .feature .euro {
    font-size: 22px;
    font-weight: bold;
    color: orange;
    line-height: 1.1;
    padding-top: 4px;
    padding-bottom: 5px;
}

.single_row .main_row .feature .sotto-valore {
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
}

.tabelle_container.with-sidebar .singola .feature {
	display: none;
}

.tabelle_container.with-sidebar .feature {
	display: none;
}

.tabelle_container.with-sidebar .feature_mini {
    display: block;
    width: 100%;
}

.tabelle_container.with-sidebar .singola .brand {
	flex-basis: 25%;
    margin-left: 10px;
}

.tabelle_container.with-sidebar .singola .caratteristiche {
    padding-left: 10px;
    margin-left: 20px;
    flex-basis: 55%;
}

.tabelle_container.with-sidebar .singola .the-best svg {
    margin-right: 3px;
}

.tabelle_container.with-sidebar .single_row .main_row .cta-btn button {
    min-width: 170px!important;
}

.tabelle_container.without-sidebar .filtercontent .single_row .main_row .feature {
    margin: 20px 10px 20px 0px;
    flex-basis: 16%;
    padding: 18px 10px 18px 5px;
}

.tabelle_container.without-sidebar .filtercontent .single_row .main_row .caratteristiche {

}

.tabelle_container.without-sidebar .filtercontent .single_row .main_row .cta-btn-container {
   flex-basis: 22%;
}

.tabelle_container.without-sidebar .filtercontent .single_row .main_row .brand {
	flex-basis: 22%;
}
	
.single_row .cta-btn {
    display: flex;
    border: none;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
    flex-direction: column;
	width: 100%;
}
.single_row .main_row .cta-btn button {
     border-radius: 8px;
}
.single_row .main_row .cta-btn button {
     border-radius: 8px;
     width: 100%;
     padding: 9px;
     font-size: 16px;
     background-color: #2371cc;
     transition: all 0.2s ease-in-out;
     box-shadow: 0px 5px 15px -3px #3c444c47;
     -webkit-appearance: button;
     cursor: pointer;
     color: #fff;
     border: 1px solid transparent;
     font-family: Inter, sans-serif;
     font-weight: 600;
}
.single_row .main_row .cta-btn button:hover {
    background-color: #2496eb;
    border-radius: 8px;
}
.single_row .main_row .cta-btn > a{
    display: block;
    text-align: center;
    flex-shrink: 0;
    flex-grow: 1;
	border: none;
	width: 100%;
}
.single_row .main_row span.descbutton {
     font-size: 14px !important;
     padding: 10px;
     flex-shrink: 0;
     flex-grow: 1;
     display: block;
}
.single_row .main_row span.descbutton a {
     text-decoration: none !important;
     border-bottom: 1px solid #ddd;
     transition: border-bottom 0.2s ease-in-out;
     color: #223554;
}
.single_row .main_row span.descbutton a:hover{
     border-bottom: 1px solid #223554;
}


.single_row .accordion-container {
    background: #f2f4f7;
	position: relative;
}

.single_row .accordion-content {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 10px 35px 20px 35px;
    background: #f6f7f9;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #444;
}

.single_row .accordion-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 8px 0 !important;
}

.single_row .accordion-content ul,
.single_row .accordion-content ol {
    font-size: 14px !important;
    margin: 8px 0 !important;
    padding-left: 20px !important;
}

.single_row .accordion-content ul li,
.single_row .accordion-content ol li {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 4px 0 !important;
}

.single_row .accordion-content .link_accordion {
	float: left;
    font-weight: bold;
}

.single_row .accordion-content a.link_accordion::after {
	background-image: url('../img/link-out.svg');
	content: "";
	display: inline-block;
	width: 18px; 
	height: 18px; 
	background-size: contain;
	background-repeat: no-repeat;
	margin-left: 8px; 
	vertical-align: sub;
}

.single_row .accordion-content a.link_accordion:hover {
	text-decoration: underline;
}

.single_row .accordion-tag {
	height:14px; 
	background:#f6f7f9;
}

.single_row .accordion-trigger {
	cursor: pointer;
    text-align: center;
    padding: 4px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    bottom: -28px;
    background: #f6f7f9;
    width: 20%;
    height: 25px;
    border-radius: 10px;
    border-bottom: 2px solid #ededed73;
    transform: translate(-50%, -50%);
    min-width: 150px;
}

.single_row .accordion-trigger:hover {
	opacity:1;	
}

.accordion-container.open .svg-icon {
    transform: rotate(180deg);
    position: absolute;
    margin-left: 5px;
	top: 1px;
}


.accordion-trigger .svg-icon {

}

.accordion-container .readmoretab {
	position: absolute;
	top: -2px;
}

.single_row .bottom_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    background: #fbfbfbcf;
}


.single_row .bottom_bar .col-1,
.single_row .bottom_bar .col-2,
.single_row .bottom_bar .col-3 {
    flex: 1;
    padding: 5px;
	font-size: 13px;
}

.single_row .bottom_bar .col-1 {
	text-align: left;
	margin-left: 20px;
}

.single_row .bottom_bar .col-2 {
	text-align: center;	
}

.single_row .bottom_bar .col-3 {
	text-align: right;
	padding-right: 40px;
}

.single_row .bottom_bar .col-1.has-content::before {
  content: "";
  display: inline-block;
  width: 18px; 
  height: 18px; 
  background-image: url('../img/information.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px; 
  vertical-align: sub;
  opacity: 0.6;
}

.single_row .bottom_bar .col-2.has-content::before {
	content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url(../img/check-shield.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: sub;
    opacity: 0.6;
}

.single_row .trustpilot {
	display: inline-flex;
    align-items: center;
}

.single_row .trustpilot span {
	font-size: 13px;
	
}

.single_row .trustpilot p {
	font-size: 13px;
    margin-right: 10px;
}

.single_row .trustpilot svg {
    width: 70px;
    height: 33px;
    margin-left: 2px;
    padding-bottom: 3px;
}

.sidebar .tabelle_container .feature {
    display: none; 
}

.sidebar .tabelle_container .single_row .main_row .feature {
    display: none; 
}

.tabelle_container.with-sidebar .brand {
    flex-basis: 30%;
    margin-left: 0;
    padding: 15px;
}

.tabelle_container.with-sidebar .caratteristiche {
	padding-left: 30px;
	flex-basis: 50%;
}

.tabelle_container.with-sidebar .the-best svg {
    margin-right: 3px;
}

.tabelle_container.without-sidebar .feature {
    display: flex; 
}

.tabelle_container.without-sidebar .filtercontent {
	width: 100%;
}

.tabelle_container .ai-code {
    display: none;
}

.tabelle_container .ai-dynamic {
    display: none;
}

@media (max-width: 1240px) {
	.tabelle_container.without-sidebar .filtercontent {
	width: inherit;
	}
}

@media (max-width: 1023px) {
    #contentToBlur.filtercontent {
        display: block; 
    }
	
	


    #risultati-agenzie {
        flex-basis: 100%;
        max-width: 100%; 
    }
	
	.single_row .accordion-tag {
    height: 25px;
	}

	.tabelle_container button.filter-button {
		display: block;
		transition: background-color 0.3s;
		position: relative;
		z-index: 1000;
		border-radius: 4px;
		margin-left: 0;
		margin-bottom: 25px;
	}

	.tabelle_container button.filter-button:hover {
		background-color: #7f95ad;
	}
	.tabelle_container .filter-main {
		visibility: hidden;
		max-height: 0;
		opacity: 0;
		transition: visibility 0s 0.5s, max-height 0.5s ease-out, opacity 0.3s ease;
		overflow-y: scroll;
        flex-basis: 100%;
        max-width: 100%;
		position: relative;
		z-index:10000;

	}

	.tabelle_container .filter-main.active {
		visibility: visible;
		max-height: 500px; 
		opacity: 1;
		transition: max-height 0.5s ease-out, opacity 0.3s ease, visibility 0s 0s;
	}
	
	.tabelle_container .filter-button.update {
        background-color: #007bff; 
    }
	
	
	.tabelle_container .filter-main::-webkit-scrollbar {
		width: 5px; 
	}
	
	.tabelle_container .filter-main::-webkit-scrollbar-track {
		background-color: #a6a9ae; 
	}

	.tabelle_container .filter-main::-webkit-scrollbar-thumb {
		background-color: #24375f; 
	}

	.tabelle_container .filter-main::-webkit-scrollbar-thumb:hover {
		background-color: #24375f; 
	}

    body.no-scroll {
        overflow: hidden; 
    }
	
	.overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 41%);
	z-index: 999;
}
	
	.tabelle_container {
	position: relative;
}
	
	.warning-update-container {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.warning-update-container.hidden {
    opacity: 0;
    pointer-events: none; 
}
}


@media (max-width: 992px) {
	.tabelle_container {
		width: 100%;
	}
	
    .main_row {
        flex-direction: column;
        align-items: center;
		padding: 0 15px;
		padding-bottom: 10px;
		display: flex;
		box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.15);
		margin-bottom: 21px;
		position: relative;
		transition: 2s easy-in;
		justify-content: space-around;
		min-height: 200px;
    }

    .single_row .main_row .brand {
		flex-direction: row;
		justify-content: end;
		align-items: center;
		width: 100%;
		padding: 10px 0;
		border-bottom: 1px solid #ddd!important;
		margin-top: 20px;
		border-right: none;
		display: flex;
    }

    .single_row .main_row .brand img {
        padding-bottom: 13px;
        height: auto;
        width: auto;
        padding-left: 0;
    }

	.single_row .main_row .brand a {
	    display: inline-block;
        width: 50%;
		text-align: left;
	    margin-left: 10px;
	}
	
	.single_row .main_row .brand a img {
		height: auto;
	}
	
	.single_row .main_row .caratteristiche-title {
		margin-left: 0;
	}

    .single_row .main_row .rating-container {
		flex-grow: 1;
		justify-content: center;
		display: flex;
		flex-direction: column;
		margin-top: -10px;
    }
	
	.single_row .main_row .rating-number {
		padding-top: 0;
		margin-top: -2px;
	}

	.single_row .main_row .caratteristiche {
		order: 2;
		flex-basis: 100%;
		display: flex;
		justify-content: flex-start;
		width: 100%;
		border-bottom: 1px solid #ddd;
		padding: 0px 12px 15px;
		flex-direction: column;
		align-content: flex-end;
	}
	
	.single_row .main_row .caratteristiche ul {
	margin-left: 15px;
	}
	
	.single_row .main_row .feature {
		order: 3;
		flex-basis: 50%;
		display: flex;
		width: 100%;
		margin-top: 0;
		padding-left: 10px;
		margin-right: 0;
		border-bottom: 1px solid #ddd;
		text-align: left;
	}


	.single_row .bottom_bar {
		display:none!important;
	}
	
	.single_row .main_row {
		margin-bottom: 0;
		padding-bottom: 0;
	}
	
	.single_row .main_row .cta-btn-container {
		display: inline-block;
		align-items: center;
		justify-content: center;
		order: 5;
		margin: 0;
		flex-basis: 100%;
		width: 100%;
	}

    .single_row .main_row .disclaimer-text {
		order: 6;
		width: 100%;
		text-align: center;
		margin-bottom: 10px;
		font-size: 11px;
    }
	
	.single_row .main_row .cta-btn > a {
    width: 100%;
	}
	
	.single_row .main_row .star {
    font-size: 22px;
	}
	
	.single_row .accordion-content .link_accordion {
	float: left;
    font-weight: bold;
	}
	
	.single_row .accordion-content {
		padding: 0 15px 30px;
	}
	
	.single_row .main_row .cta-btn button {
		border-radius: 8px;
		width: 100%;
		margin: 0;
		margin-top: 15px;
		margin-bottom: 15px;
	}
	.singola .the-best { 
		display:none;	
	}
	

	.tabelle_container.with-sidebar .brand {
		flex-direction: row;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 10px 0;
		border-bottom: 1px solid #ddd!important;
		margin-top: 20px;
		border-right: none;
    	flex-basis: 20%;
	}

	.tabelle_container.with-sidebar .caratteristiche {
		order: 2;
		flex-basis: 100%;
		display: flex;
		justify-content: flex-start;
		width: 100%;
		border-bottom: 1px solid #ddd;
		padding: 0px 12px 15px;
		flex-direction: column;
		align-content: flex-end;
	}
	
	.tabelle_container.with-sidebar .feature {
		display: none; 
	}
	
	.tabelle_container .filtered .feature {
	display:flex!important;
}

}

/* stile_tabella_orizzontale.css */

.tab_horizontal_primary {
    position: relative;
    overflow: hidden; /* Importante per nascondere il contenuto che esce */
}

/* Il gradiente destro - sempre visibile tranne quando si arriva alla fine */
.tab_horizontal_primary::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Nascondi gradiente destro quando si arriva alla fine */
.tab_horizontal_primary.scrolled-end::after {
    opacity: 0;
}

/* Versione specifica per le sezioni related con gradiente più piccolo */
.single-ag-related .tab_horizontal_primary::after {
    width: 50px;
}

/* Gradiente sinistro - mostrato quando si scrolla */
.tab_horizontal_primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mostra il gradiente di sinistra quando si scrolla */
.tab_horizontal_primary.scrolled::before {
    opacity: 1;
}

/* Container scrollabile - deve permettere lo scroll orizzontale */
.tabelle_orizzontali_container {
    position: relative;
    /* Non aggiungere overflow: hidden qui */
}

.single.has-sidebar .entry-content .tab_horizontal_primary {
    width: 650px;
}

.single.has-sidebar .entry-content .tabelle_orizzontali_container::after {
	width: 20px;
}

.tabelle_orizzontali_container:active {
    cursor: grabbing;
}

.tabelle_orizzontali_container:hover {
    overflow-x: auto; 
	padding-bottom: 20px
}


/* Migliora il comportamento del grabbing */
.tabelle_orizzontali_container.smooth-grabbing-enabled {
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Nasconde la scrollbar */
.tabelle_orizzontali_container.smooth-grabbing-enabled::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Migliora la responsività delle card durante il drag */
.tabelle_orizzontali_container.smooth-grabbing-enabled .agenzia_card {
    pointer-events: auto;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0); /* Forza l'accelerazione hardware */
}

/* Stato durante il grabbing */
.tabelle_orizzontali_container[style*="grabbing"] .agenzia_card {
    pointer-events: none; /* Disabilita eventi durante il drag */
}

/* Migliora le performance durante il scroll */
.tabelle_orizzontali_container.smooth-grabbing-enabled {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Fix per evitare selezione del testo durante il drag */
.tabelle_orizzontali_container.smooth-grabbing-enabled * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.agenzia_card {
    flex: 0 0 auto;
    background: #fff;
	width: 250px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
	justify-content: space-around;
}

.agenzia_card img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.agenzia_card .brand {
	display: flex;
  justify-content: center;
	cursor: pointer;
}

.agenzia_card .rating {
	padding: 10px;
	font-size: 14px;
}

.agenzia_card .agenzia {
	font-weight: bold;
	color: inherit;
	white-space: normal;
}

.agenzia_card .disclaimer-text {
		font-size: 11px;
		padding-top: 10px;
		white-space: normal;
}

.agenzia_card .cta-button button {
    border-radius: 8px;
    width: 100%;
    padding: 8px;
    font-size: 16px;
    background: #179650;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    box-shadow: 0px 5px 15px -3px #3c444c47;
    -webkit-appearance: button;
    cursor: pointer;
    color: #fff;
    border: 1px solid transparent;
    font-family: Inter, sans-serif;
    font-weight: 600;
}

.bg-shimmer {
    overflow: hidden;
    position: relative
}

.bg-shimmer:after {
	animation: shimmer 2.5s .5s 6;
    background: linear-gradient(90deg, hsla(0, 0%, 100%, .1) 10%, hsla(0, 0%, 100%, 0) 30%);
    content: "";
    height: 100%;
    left: 10%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(100%) rotate(30deg);
    width: 100%;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        opacity: 1;
        transform: translateX(-100%) skew(30deg)
    }

    to {
        opacity: 0;
        transform: translateX(80%) skew(30deg)
    }
}


.tabelle_orizzontali_container {
    display: flex;
    flex-wrap: nowrap;
    cursor: grab;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
	padding: 20px 80px 20px 0;
    box-sizing: border-box;
	transition: overflow-x 0.3s ease; 
	scrollbar-width: thin; 
    scrollbar-color: transparent transparent;
}

.tabelle_orizzontali_container:hover {
    overflow-x: auto;
    scrollbar-color: #cedbe2 transparent; 
}

.tabelle_orizzontali_container::-webkit-scrollbar {
    height: 4px; 
    background: transparent;
}

.tabelle_orizzontali_container::-webkit-scrollbar-track {
    background: transparent; 
}

.tabelle_orizzontali_container::-webkit-scrollbar-thumb {
    background: transparent; 
    transition: background 0.3s ease;
}

.tabelle_orizzontali_container:hover::-webkit-scrollbar-thumb {
    background: #cedbe2; 
}

/* TABELLA HTML */

.custom_table {
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0; 
    font-family: Arial, sans-serif; 
}

.custom_table th, .custom_table td {
    border: 1px solid #ccc; 
    padding: 8px;
    text-align: left; 
}

.custom_table th {
    background-color: #f9f9f9; 
    color: #333; 
}

.custom_table td {
    background-color: #FFF;
    vertical-align: top; 
}

.custom_table a {
    color: #06c; 
    text-decoration: none; 
}

.custom_table a:hover {
    text-decoration: underline; 
}

.custom_table ul {
    list-style-type: disc; 
    padding-left: 20px; 
    margin: 0; 
}


/* Feature-mini Filtered */
.feature_mini {
    display: none;
    text-align: center;
    margin-bottom: 10px;
	margin-top: 10px;
}


#risultati-agenzie.filtered .feature_mini {
    display: block;
    width: 100%;
    padding-right: 10px;
}

#risultati-agenzie.filtered .feature {
    display: none;
}

.feature_mini .testo-valore,
.feature_mini .euro,
.feature_mini .sotto-valore {
    margin-bottom: 5px;
}

.feature_mini .testo-valore  {
    font-size: 14px;
    font-weight: 600;
    color: #203454;
	margin-bottom: -6px;
	text-align: right;

}

.feature_mini .euro {
    font-size: 26px;
    font-weight: bold;
    color: orange;
	text-align: right;
}

.feature_mini .sotto-valore {
    font-size: 12px;
    font-weight: normal;
	text-align: right;
}


#risultati-agenzie.filtered .cta-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#risultati-agenzie.filtered .feature {
    display: none;
}

@media (max-width: 1024px) {
	#risultati-agenzie.filtered .feature_mini {
		display:none;
	}
}


/* TABELLA LIGHT */

/* Stile di base per tutti i dispositivi */
.tabelle_light_container {
    margin: 30px auto 50px;
    width: 100%;
}

.tabelle_light_row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 20px;
    border-bottom: 1px dashed #dfe4ea;
    cursor: pointer;
    position:relative;
}

.tabelle_light_row:hover {
    background: #e8eff547;
}


.tabelle_light_info {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.tabelle_light_container .info1_light,
.tabelle_light_container .info2_light {
    font-size: 14px;
    font-weight: 700;
}
.tabelle_light_container .info1_light.has-content,
.tabelle_light_container .info2_light.has-content {
    display: flex;
    position: relative;
    align-items: center;
}

.tabelle_light_container .info1_light.has-content {
	margin-bottom: 10px;	
}

.tabelle_light_container .info1_light.has-placeholder::before,
.tabelle_light_container .info2_light.has-placeholder::before {
    padding-left: 28px;
}

.tabelle_light_container .info1_light.has-content .icon,
.tabelle_light_container .info2_light.has-content .icon {
    padding-left: 0;
}



.tabelle_light_container .info1_light.has-content .icon,
.tabelle_light_container .info2_light.has-content .icon {
	display: flex;
}

.tabelle_light_container .info1_light.has-content .icon svg, 
.tabelle_light_container .info2_light.has-content .icon svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
	margin-bottom: 1px;
}

.tabelle_light_info .info1_light.has-content span.textcol, .tabelle_light_info .info2_light.has-content span.textcol {
    padding-left: 8px;
}

.tabelle_light_container .info1_light.has-content:not(:has(.icon))::before {
    content: '';
    display: inline-block; /* Cambiato da absolute a inline-block */
    width: 20px;
    height: 20px;
	margin-bottom: 1px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 19.5H14M10.6667 22H13.3333' stroke='%231C274C' stroke-width='0.96' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M7.41058 13.6805L8.51463 14.7196C8.82437 15.0112 9 15.4177 9 15.843C9 16.482 9.518 17 10.157 17H13.843C14.482 17 15 16.482 15 15.843C15 15.4177 15.1756 15.0112 15.4854 14.7196L16.5894 13.6805C18.1306 12.2187 18.9912 10.2984 18.9999 8.30193L19 8.21807C19 4.8069 15.866 2 12 2C8.13401 2 5 4.8069 5 8.21807L5.00007 8.30193C5.00875 10.2984 5.86939 12.2187 7.41058 13.6805Z' stroke='%231C274C' stroke-width='0.96'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.tabelle_light_container .info2_light.has-content:not(:has(.icon))::before {
    content: '';
    display: inline-block; /* Cambiato da absolute a inline-block */
    width: 20px;
    height: 20px;
	margin-bottom: 1px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 4.00195C18.175 4.01406 19.3529 4.11051 20.1213 4.87889C21 5.75757 21 7.17179 21 10.0002V16.0002C21 18.8286 21 20.2429 20.1213 21.1215C19.2426 22.0002 17.8284 22.0002 15 22.0002H9C6.17157 22.0002 4.75736 22.0002 3.87868 21.1215C3 20.2429 3 18.8286 3 16.0002V10.0002C3 7.17179 3 5.75757 3.87868 4.87889C4.64706 4.11051 5.82497 4.01406 8 4.00195' stroke='%231C274C' stroke-width='0.96'%3E%3C/path%3E%3Cpath d='M8 14H16' stroke='%231C274C' stroke-width='0.96' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M7 10.5H17' stroke='%231C274C' stroke-width='0.96' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M9 17.5H15' stroke='%231C274C' stroke-width='0.96' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M8 3.5C8 2.67157 8.67157 2 9.5 2H14.5C15.3284 2 16 2.67157 16 3.5V4.5C16 5.32843 15.3284 6 14.5 6H9.5C8.67157 6 8 5.32843 8 4.5V3.5Z' stroke='%231C274C' stroke-width='0.96'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.tabelle_light_container span.numero {
     color: #f2f5f7ad;
     font-size: 89px;
     font-weight: bold;
     display: flex;
     z-index: -1000;
     padding-left: 10px;
}


.tabelle_light_container .rating-container-mobile {
	 display: none;	
	}

.tabelle_light_logo {
    display: flex;
	flex: 0 0 20%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-left: 10px;
}

.tabelle_light_logo h3 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 2px;
}

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

.tabelle_light_info h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.tabelle_light_rating {
    font-weight: bold;
    margin-bottom: 10px;
}

.tabelle_light_description {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 14px;
}

.tabelle_light_description ul {
	padding-left: 20px!important;
	margin: 0!important;
}

.tabelle_light_description ul li {
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    line-height: 1.5;
    position: relative;
	padding-left: 5px;
}


.tabelle_light_description ul li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 5px;
    padding: 15px 25px 0 0;
    height: 10px;
    width: 10px;
    background-image: url(../../assets/img/v.svg);
    background-repeat: no-repeat;
}
	
.tabelle_light_feature {
    font-size: 11px;
    font-weight: bold;
    line-height: 1.4;
    background: #eef7f2;
    color: #228b54;
    padding: 2px 10px;
    border-radius: 4px;
    text-align: center;
    margin: 13px auto;
}

.tabelle_light_cta {
    flex: 0 0 25%;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.tabelle_light_cta a {
    display: inline-block;
    padding: 7px 20px;
    background-color: #e8eff5;
    color: #084a7e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
}

.tabelle_light_cta a:hover {
    background-color: #3f85d1;
    color: #fff;
}

.tabelle_light_header {
    display: flex;
    background: #f2f5f7;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.tabelle_light_header_col {
    padding: 13px;
}

.tabelle_light_header_col:nth-child(1) {
    flex: 0 0 25%; 
}

.tabelle_light_header_col:nth-child(2) {
    flex: 1;
}

.tabelle_light_header_col:nth-child(3) {
    flex: 0 0 25%;
}

.tabelle_light_valori {
	background: #fff7e4;
	border-radius: 10px;
	padding: 5px 13px;
	margin: 10px 0px 0px 0px;
}

.tabelle_light_valori .light_feature_valori {
	display:none;
}

 

.tabelle_light_container .warning-update-container {
    display: flex;
    align-items: center;
    margin-bottom: 0rem;
    padding: 0 1px;
    justify-content: flex-start;
    flex-direction: row-reverse;
    border-bottom: 1px dashed #dfe4ea;
}

.tabelle_light_container .warning-text span.tooltip {
    background: inherit;
    border: inherit;
    padding: inherit;
    opacity: 0.8;
    font-size: 14px;
    color: #b5b5b5;
    text-decoration: underline;
}

.tabelle_light_container .update-date {
    font-style: italic;
    color: #333;
    font-size: 13px;
    border-radius: 4px;
    padding: 4px 0px;
}

.tabelle_light_container .custom-tooltip {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.tabelle_light_container .warning-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #003f5c;
    margin-bottom: 10px;
}

.tabelle_light_container .tooltip-text {
    position: absolute;
    width: 400px;
    font-size: 13px;
    max-width: 350px;
    top: 100%;
    right: 0%;
    background: #ffffff;
    color: #585858;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f2f5f7;
    box-shadow: 0 2px 5px rgb(0 0 0 / 14%);
    z-index: 100;
    word-wrap: break-word;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.tabelle_light_container .warning-text .tooltip-icon {
    margin-left: 0.5rem; 
    width: 18px; 
    height: 18px; 
}

.tabelle_light_container .warning-text:hover .tooltip-text {
    opacity: 1; 
    visibility: visible; 
}

.light_feature_valori_desk {
	display: flex;
	flex-direction: column;
}
	
.light_feature_valori_desk .testo-valore,
.light_feature_valori_desk .euro,
.light_feature_valori_desk .sotto-valore {
    margin-bottom: 5px;
}

.light_feature_valori_desk .testo-valore  {
    font-size: 13px;
    font-weight: 600;
    color: #203454;
    margin-bottom: -6px;
    text-align: center;
}

.light_feature_valori_desk .euro {
    font-size: 20px;
    font-weight: bold;
    color: orange;
    text-align: center;
}

.light_feature_valori_desk .sotto-valore {
    font-size: 12px;
    font-weight: normal;
	text-align: right;
}

/* CSS per Visualizzazione Agenzie per Categoria */

/* Container principale orizzontale */
.tabelle-category-horizontal-primary {
    width: 100%;
    margin: 2rem 0;
}

.tabelle-category-horizontal-header {
    margin-bottom: 1.5rem;
}

.tabelle-category-horizontal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.tabelle-category-horizontal-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar personalizzata */
.tabelle-category-horizontal-container::-webkit-scrollbar {
    height: 8px;
}

.tabelle-category-horizontal-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.tabelle-category-horizontal-container::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.tabelle-category-horizontal-container::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Card singola agenzia */
.tabelle-category-agency-card {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 380px;
    border: 1px solid #e9ecef;
}

.tabelle-category-agency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Logo agenzia */
.tabelle-category-agency-logo {
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tabelle-category-agency-logo:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.tabelle-category-agency-logo img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

/* Nome agenzia */
.tabelle-category-agency-name {
    padding: 1rem 1rem 0.5rem;
    text-align: center;
}

.tabelle-category-agency-name h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

/* Rating */
.tabelle-category-agency-rating {
    padding: 0.5rem 1rem;
    text-align: center;
}

.tabelle-category-stars {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 4px;
}

.tabelle-category-star {
    font-size: 16px;
    line-height: 1;
}

.tabelle-category-star--filled {
    color: #ffa62f;
}

.tabelle-category-star--half {
    position: relative;
    color: #ddd;
}

.tabelle-category-star--half::before {
    content: '\2605';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffa62f;
}

.tabelle-category-star--empty {
    color: #ddd;
}

.tabelle-category-rating-number {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 4px;
}

/* Disclaimer */
.tabelle-category-agency-disclaimer {
    padding: 0 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.4;
    flex-grow: 1;
}

/* Azioni */
.tabelle-category-agency-actions {
    padding: 1rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tabelle-category-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tabelle-category-btn--primary {
    background: #3498db;
    color: white;
}

.tabelle-category-btn--primary:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-1px);
}

.tabelle-category-btn--secondary {
    background: #fff;
    color: #3498db;
    border: 1px solid #3498db;
}

.tabelle-category-btn--secondary:hover {
    background: #3498db;
    color: white;
}

/* Visualizzazione Griglia */
.tabelle-category-grid-primary {
    width: 100%;
    margin: 2rem 0;
}

.tabelle-category-grid-header {
    margin-bottom: 1.5rem;
}

.tabelle-category-grid-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.tabelle-category-grid-container {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 2rem;
}

.tabelle-category-grid-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tabelle-category-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tabelle-category-grid-card-header {
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tabelle-category-grid-card-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.tabelle-category-grid-card-header img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    border-radius: 6px;
}

.tabelle-category-grid-card-content {
    padding: 1.5rem;
}

.tabelle-category-grid-card-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.tabelle-category-grid-card-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    text-align: center;
}

.tabelle-category-grid-rating {
    margin-bottom: 1rem;
    text-align: center;
}

.tabelle-category-grid-disclaimer {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.tabelle-category-grid-actions {
    text-align: center;
}

/* Stati di errore e vuoti */
.tabelle-category-horizontal-error,
.tabelle-category-horizontal-empty,
.tabelle-category-grid-error,
.tabelle-category-grid-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabelle-category-agency-card {
        flex: 0 0 220px;
        height: 340px;
    }
    
    .tabelle-category-agency-logo {
        height: 100px;
    }
    
    .tabelle-category-agency-logo img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .tabelle-category-agency-name h4 {
        font-size: 1rem;
    }
    
    .tabelle-category-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tabelle-category-agency-card {
        flex: 0 0 200px;
        height: 320px;
    }
    
    .tabelle-category-agency-logo {
        height: 90px;
    }
    
    .tabelle-category-agency-logo img {
        max-width: 50px;
        max-height: 50px;
    }
    
    .tabelle-category-horizontal-header h3,
    .tabelle-category-grid-header h3 {
        font-size: 1.3rem;
    }
    
    .tabelle-category-grid-container {
        grid-template-columns: 1fr;
    }
}

/* ELENCO DINAMICO */ 

.elenco_dinamico_container .warning-update-container {
    display: flex;
    align-items: center;
    margin-bottom: 0rem;
    padding: 0 1px;
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.elenco_dinamico_container .warning-text span.tooltip {
    background: inherit;
    border: inherit;
    padding: inherit;
    opacity: 0.8;
    font-size: 14px;
    color: #b5b5b5;
    text-decoration: underline;
}


.elenco_dinamico_container .tabelle_light_container {
    margin: 0px auto 50px;
}

.elenco_dinamico_container .update-date {
    font-style: italic;
    color: #333;
    font-size: 13px;
    border-radius: 4px;
    padding: 4px 0px;
}

.elenco_dinamico_container .custom-tooltip {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.elenco_dinamico_container .warning-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #003f5c;
    margin-bottom: 10px;
}

.elenco_dinamico_container .tooltip-text {
    position: absolute;
    width: 400px;
    font-size: 13px;
    max-width: 350px;
    top: 100%;
    right: 0%;
    background: #ffffff;
    color: #585858;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f2f5f7;
    box-shadow: 0 2px 5px rgb(0 0 0 / 14%);
    z-index: 100;
    word-wrap: break-word;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.elenco_dinamico_container .warning-text .tooltip-icon {
    margin-left: 0.5rem; 
    width: 18px; 
    height: 18px; 
}

.elenco_dinamico_container .warning-text:hover .tooltip-text {
    opacity: 1; 
    visibility: visible; 
}

.elenco_dinamico_container .feature_desc {
	font-size: 13px;
	font-weight: 600;
	background: #eef7f2;
	border-radius: 4px;
	padding: 0px 14px;
	text-align: left;
	color: #228b54;
	margin-top: 8px;
	width: fit-content;
}

.tabelle-settings-section.elenco-items {
    max-width: 100%;
    overflow-x: auto;
}

.table-wrapper {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
}

#elenco_dinamico_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#elenco_dinamico_table th,
#elenco_dinamico_table td {
    padding: 10px;
    border: 1px solid #e1e1e1;
    white-space: nowrap;
}

#elenco_dinamico_table .fixed-column {
    position: sticky;
    left: 0;
    background-color: #f1f1f1;
    z-index: 1;
}

#elenco_dinamico_table input[type="text"],
#elenco_dinamico_table textarea {
    width: 100%;
    max-width: 200px;
}

#elenco_dinamico_table textarea {
    height: 60px;
}

#elenco_dinamico_table .logo-column {
    width: 100px;
}

#elenco_dinamico_table .rating-column {
    width: 80px;
}

#elenco_dinamico_table .actions-column {
    width: 100px;
}

@media screen and (max-width: 767px) {
	
	.tabelle_light_container {
		border-top: 6px solid #f2f5f7;
		border-radius: 18px;
	}
	
    .tabelle_light_row {
        flex-wrap: wrap;
        padding: 20px 10px;
    }

    .tabelle_light_logo {
        flex: 0 0 50%;
        order: 1;
        margin-right: 0;
        padding-right: 5px;
    }
	
    .tabelle_light_row.no-cta-rating .tabelle_light_logo {
        flex: 0 0 100%;
	}

    .tabelle_light_cta {
        flex: 0 0 50%;
        order: 2;
        padding-left: 15px;
        border-left: 1px dashed #e5e5e5;
        position: relative;
    }
	
    .tabelle_light_valori {
        flex: 0 0 100%;
        order: 4;
    }
    
    .tabelle_light_valori .light_feature_valori {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    
    .light_feature_valori .testo-valore {
        font-size: 14px;
        font-weight: 600;
        color: #203454;
        flex: 1;
        text-align: left;
    }
    
    .light_feature_valori .euro {
        font-size: 20px;
        font-weight: bold;
        color: orange;
        padding-left: 10px;
        text-align: right;
    }
    
    .light_feature_valori .sotto-valore {
        font-size: 14px;
        font-weight: normal;
        flex-basis: 100%;
        text-align: left;
        margin-top: -5px;
    }
    
    .light_feature_valori .sotto-valore span {
        white-space: normal;
        max-width: none;
    }
	
	.light_feature_valori_desk {
		display: none;	
	}

    .tabelle_light_container .rating-container-mobile {
        display: flex !important;
        justify-content: center;
    }
	
	.tabelle_light_cta:after {
			content: "";
			position: absolute;
			top: 50px;
			bottom: 0;
			left: -.125rem;
			width: .125rem;
			background: linear-gradient(0deg, #ffffff, #00000000);
	}

    .tabelle_light_info {
        flex: 0 0 100%;
        order: 3;
        margin-top: 25px;
        padding: 5px;
    }
	
	.tabelle_light_logo {	
		margin-left: 0;
	}

    .tabelle_light_logo img {
        max-width: 150px;
        height: auto;
    }

    .tabelle_light_logo h3 {
        font-size: 18px;
        line-height: 1.5;
        margin: 0!important;
    }

    .tabelle_light_cta a {
        padding: 8px 15px;
        font-size: 14px;
        margin-top: 10px;
        min-width: 150px;
    }

    .tabelle_light_logo, .tabelle_light_cta {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
	
	.tabelle_light_container .numero-container {
    position: absolute;
    top: 5px;
    left: 5px;
	}
	
	.tabelle_light_container span.numero {
		color: #e8eff5;
		font-size: 18px;
		line-height: 1;
		padding: 2px;
		font-weight: 900;
		display: block;
		width: 30px;
		text-align: center;
		padding-bottom: 0;
	}
	
    .tabelle_light_header {
        display: none;
    }
	
	.rating-container-desktop {
		display: none;	
	}
}

@media screen and (min-width: 768px) {
    .tabelle_light_row {
        flex-wrap: nowrap;
        border-right: 1px solid #dfe4ea;
        border-left: 1px solid #dfe4ea;
    }

    .tabelle_light_logo {
        order: 1;
        flex: 0 0 20%;
        z-index: 1000;
    }
	
	.tabelle_light_logo img {
		max-width: 150px;
	}

    .tabelle_light_info {
        order: 2;
        flex: 1;
    }
	
    .tabelle_light_valori {
        order: 3;
        flex: 1;
		display: none;
    }

    .tabelle_light_cta {
        order: 4;
        flex: 0 0 25%;
    }
	
	.numero-container {
		position: absolute;
		left: -8%;
		top: 45%;
		transform: translateY(-50%);
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

@media (max-width: 480px) {
    .light_feature_valori {
        flex-direction: column;
        align-items: flex-end;
    }

    .light_feature_valori .testo-valore,
    .light_feature_valori .euro,
    .light_feature_valori .sotto-valore {
        width: 100%;
        text-align: right;
    }

    .light_feature_valori .sotto-valore span {
        white-space: normal;
        max-width: none;
    }
	.tabelle_light_row {
    display: inline-block!important;
	}
	.tabelle_light_cta {
	border-left: none!important;
    padding-left: 0 !important;
    margin-top: 20px;
}
}

/* ═══════════════════════════════════════════════════
   CARD DESIGN — Final Bankrate style
   ═══════════════════════════════════════════════════ */

.tp-cards-list { max-width: 100%; }

/* === CARD BASE === */
.tp-card { background:#fff; border:0.5px solid #e0e0e0; border-radius:4px; margin-bottom:20px; box-shadow:4px 5px 1px #f4f4f4; position:relative; }
.tp-card--best { }

/* === BEST BANNER === */
.tp-card__best-banner { display:flex; align-items:stretch; background:#065F46; }
.tp-card__best-badge { color:#fff; font-size:12px; font-weight:600; padding:8px 14px; white-space:nowrap; display:flex; align-items:center; }
.tp-card__best-feature { color:rgba(255,255,255,.9); font-size:13px; font-weight:400; padding:8px 18px; background:#044032; flex:1; display:flex; align-items:center; }

/* === BODY === */
.tp-card__body { padding:20px 24px 16px; border-bottom:1px solid #e0e0e0; }
.tp-card__main { display:flex !important; flex-direction:row !important; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:nowrap !important; }

/* === LEFT: Identity === */
.tp-card__identity { display:flex; align-items:flex-start; gap:25px; flex:1 1 0%; min-width:0; }
.tp-card__logo { width:110px; height:50px; object-fit:contain; border-radius:6px; flex-shrink:0; }
.tp-card__stars { color:#ef5700; font-size:13px; }
.tp-card__stars .star { font-size:13px; }
.tp-card__stars .star.filled, .tp-card__stars .star.half-filled { color:#ef5700; }
.tp-card__stars .star.empty { color:#ef570040; }
.tp-card__info { min-width:0; }
.tp-card__name { font-size:22px; font-weight:700; color:#0b1d44; margin-bottom:0; padding-top:0 !important; }

.tp-card__rating-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.tp-card__rating-label { font-size:13px; color:#888; }
.tp-card__rating-value { font-size:14px; font-weight:500; color:#0b1d44; }
a.tp-card__review-link, .tp-card__review-link { font-size:13px; color:#2563eb !important; font-weight:500; text-decoration:none; }
.tp-card__review-link:hover { text-decoration:underline; }

/* Features (check verdi) */
.tp-card__features { display:flex; flex-direction:column; gap:3px; margin-bottom:10px; font-size:13px; color:#555; }
.tp-card__feature-item { display:flex; align-items:center; gap:5px; }
.tp-card__feature-check { color:#16a34a; }
.tp-card__feature-badge { display:inline-block; background:#ECFDF5; border:0.5px solid #A7F3D0; padding:5px 12px; border-radius:4px; font-size:12px; font-weight:500; }

/* === RIGHT: CTA Block === */
.tp-card__cta-block { flex-shrink:0; min-width:170px; max-width:220px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.tp-card__value-box { text-align:center; border-radius:4px; padding:14px 20px; width:100%; box-sizing:border-box; }
.tp-card__value-label { font-size:11px; color:#888; margin-bottom:3px; }
.tp-card__value { font-size:26px; font-weight:600; color:#ef5700; line-height:1.1; }
.tp-card__value-sub { font-size:11px; color:#888; margin-top:2px; }
.tp-card__cta { display:block; background:#2563EB; color:#fff!important; padding:12px 0; border-radius:4px; font-size:14px; font-weight:500; text-align:center; text-decoration:none; width:100%; transition:background .15s; }
.tp-card__cta:hover { background:#1d4ed8; color:#fff; }
.tp-card__disclaimer { font-size:10px; color:#999; text-align:center; line-height:1.3; }

/* === STAT BOX (Category fields) === */
.tp-card__stats { display:grid; grid-template-columns:repeat(var(--stat-cols,4),1fr); }
.tp-card__stat { border-right:0.5px solid #e0e0e0; margin:14px 14px; }
.tp-card__stat:last-child { border-right:none; }
.tp-card__stat-label { display:block; font-size:11px; color:#888; margin-bottom:4px; }
.tp-card__stat-value { display:block; font-size:17px; font-weight:600; color:#0b1d44; line-height:1.2; }

/* === FOOTER 3 columns === */
.tp-card__footer { display:grid; grid-template-columns:1fr 1fr 1fr; background:rgb(1 87 255 / .05); }
.tp-card__footer-col { padding:10px 16px; font-size:12px; display:flex; align-items:center; justify-content:center; gap:5px; }
.tp-card__footer-col:last-child { border-right:none; }
.tp-card__footer-icon { opacity:0.5; }
.tp-card__trustpilot { color:#00B67A; font-weight:600; }

/* === ACCORDION === */
.tp-card__accordion-trigger { display:flex; justify-content:space-between; align-items:center; padding:16px 24px; cursor:pointer; }
.tp-card__accordion-trigger:hover { background:#fafafa; }
.tp-card__accordion-trigger span { font-size:13px; font-weight:500; color:#0b1d44; }
.tp-card__accordion-chevron { color:#999; transition:transform .2s; }
.tp-card__accordion.is-open .tp-card__accordion-chevron { transform:rotate(180deg); }
.tp-card__accordion-content { padding:10px 24px 20px; font-size:14px!important; color:#555; line-height:1.75; }
.tp-card__accordion-content p { font-size:14px!important; line-height:1.75!important; margin:8px 0!important; }
.tp-card__accordion-content ul li { font-size:14px!important; line-height:1.6!important; }
.tp-card__accordion-review-link { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:500; color:#2563EB; text-decoration:none; margin-top:16px; }

/* === TOOLTIP METODOLOGIA === */
.tp-card__methodology-tooltip { position:relative; display:inline-flex; }
.tp-card__methodology-icon { font-size:18px; color:#0b51ea; cursor:pointer; display:flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; font-style:normal; }
.tp-card__methodology-content { display:none; position:absolute; top:28px; left:-10px; z-index:9999; background:#fff; border:0.5px solid #e0e0e0; border-radius:4px; padding:14px 16px; width:320px; box-shadow:0 4px 12px rgba(0,0,0,.15); }
.tp-card__methodology-tooltip:hover .tp-card__methodology-content,
.tp-card__methodology-tooltip.is-open .tp-card__methodology-content,
.tp-card__methodology-tooltip:focus-within .tp-card__methodology-content { display:block; }
.tp-card__methodology-content p { font-size:12px!important; color:#555; line-height:1.6; margin:0 0 8px!important; }
.tp-card__methodology-link { font-size:12px; color:#2563EB; font-weight:500; text-decoration:none; }

/* ── tp-card compact variant (sidebar) ── */
.tp-card--compact { margin-bottom:0; box-shadow:none; background:#fff; border:none; border-radius:6px; }
.tp-card-c__head { display:flex; align-items:center; justify-content:space-around; gap:14px; margin-bottom:18px; }
.tp-card-c__logo { max-width:160px; max-height:60px; width:auto; height:auto; object-fit:contain; }
.tp-card-c__rating { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.tp-card-c__stars { color:#ef5700; font-size:15px; line-height:1; white-space:nowrap; }
.tp-card-c__stars .star { font-size:15px; }
.tp-card-c__stars .star.filled, .tp-card-c__stars .star.half-filled { color:#ef5700; }
.tp-card-c__stars .star.empty { color:#ef570040; }
.tp-card-c__rating-val { font-size:13px; color:#888; }
.tp-card-c__body { padding:0; }
.tp-card-c__name { font-size:18px; font-weight:700; color:#0b1d44; margin:0 0 14px; padding:0 !important; }
.tp-card-c__features { list-style:none; margin:0 0 18px; padding:0; }
.tp-card-c__features li { display:flex; align-items:flex-start; gap:8px; padding:4px 0; font-size:14px; color:#333; line-height:1.4; }
.tp-card-c__check { color:#16a34a; flex-shrink:0; font-weight:700; }
.tp-card-c__price { border-top:1px solid #e0e0e0; padding-top:16px; margin-bottom:14px; }
.tp-card-c__price-label { font-size:14px; color:#0b1d44; font-weight:600; margin-bottom:2px; }
.tp-card-c__price-val { font-size:26px; font-weight:700; color:#ef5700; line-height:1.1; }
.tp-card-c__cta { display:block; background:#2563EB; color:#fff !important; padding:14px 0; border-radius:6px; font-size:15px; font-weight:600; text-align:center; text-decoration:none; width:100%; transition:background .15s; }
.tp-card-c__cta:hover { background:#1d4ed8; color:#fff; }

/* ── Filter sidebar ── */

.tp-table-with-filters {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

.tp-filters-sidebar {
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.tp-filters-header {
    background: #1E3A5F;
    color: #fff;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}
.tp-filters-close { display: none; }

.tp-filter-group {
    padding: 14px 18px;
    border-bottom: 0.5px solid #e0e0e0;
}

.tp-filter-group__title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
    color: #333;
}

.tp-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.tp-filter-option input[type="checkbox"],
.tp-filter-option input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
    margin: 0;
    position: relative;
}
.tp-filter-option input[type="radio"] { border-radius: 50%; }
.tp-filter-option input[type="checkbox"]:checked {
    background: #2563EB;
    border-color: #2563EB;
}
.tp-filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.tp-filter-option input[type="radio"]:checked {
    background: #fff;
    border-color: #2563EB;
}
.tp-filter-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2563EB;
}

/* Filter button (hidden on desktop, shown on mobile) */
.tp-table-with-filters .filter-button {
    display: none;
    background: #1E3A5F;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Mobile: hide sidebar, show button */
@media (max-width: 768px) {
    .tp-table-with-filters { grid-template-columns: 1fr; }
    .tp-table-with-filters .filter-button { display: block; }
    .tp-filters-sidebar {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 9998;
        border-radius: 0;
        overflow-y: auto;
        border: none;
    }
    .tp-filters-sidebar.active { display: block; }
    .tp-filters-close {
        display: flex;
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 44px;
        align-items: center; justify-content: center;
        background: none; border: none;
        color: #fff; font-size: 22px;
        cursor: pointer; z-index: 1;
    }
    .tp-filters-header { cursor: pointer; }
    .tp-mobile-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,.5); z-index: 9997;
    }
}

/* Card responsive */
@media (max-width: 640px) {

    /* Card: stack main into column but keep logo+info side by side */
    .tp-card__main { flex-direction: column !important; flex-wrap: wrap !important; }
    .tp-card__identity { flex-wrap: wrap; }
    .tp-card__info { flex: 1 1 0%; min-width: 150px; }

    /* Features go full width below logo+name+rating */
    .tp-card__features { width: 100%; margin-top: 10px; }

    /* CTA full width */
    .tp-card__cta-block { width: 100%; min-width: auto; max-width: none; }
    .tp-card__cta-block .tp-card__value-box { display: flex; gap: 8px; align-items: baseline; justify-content: center; }

    .tp-card__footer { grid-template-columns: 1fr; }
    .tp-card__footer-col { border-right: none; border-bottom: 0.5px solid #e0e0e0; justify-content: flex-start; }
    .tp-card__footer-col:last-child { border-bottom: none; }
    .tp-card__stats { grid-template-columns: 1fr 1fr !important; }
}
