/* STYLE 01 & GENERAL */
.single_grid_preview
{
    position: relative;
    background-color: #fff;
    overflow: hidden;
    border-radius: 20px; 
    margin-bottom: 40px;
    transition: all 0.3s ease;
    width: 100%;
}

.single_grid_preview .mainTextWebsite a
{
    text-decoration: none !important;
}

.single_grid_preview.style01
{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.single_grid_preview.style01:hover
{
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.preview_post_image {
	position: relative;
	aspect-ratio: 1 / 0.65;
	padding: 15px;
	display: flex;
	flex-direction: column;
	justify-content: end;
    overflow: hidden;
}


.preview_post_image .hover_link
{
    z-index: 12;
}
.preview_post_image .coverWeb
{
    z-index: 1;
}
.preview_post_image .coverWeb img
{
    transform: scale(1.00);
    transition: transform 0.3s ease;
}
.single_grid_preview:hover .coverWeb img
{
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
.preview_post_image .overlay {
	background-color: rgba(0,0,0,0.25);
}

.preview_post_website.style01 .preview_post_image .title,
.preview_post_website.style01 .preview_post_image .subtitle
{
    color: #fff;
    z-index: 2;
    margin: 0;
	position: relative;
	z-index: 10;
}

.preview_post_container
{
    padding: 15px;
}
.preview_post_button .mainButtonWebsite
{
    color: #fff;
    font-weight: 600;
}

/* STYLE 02 */
.preview_post_website.style02 .single_grid_preview
{
   border: 1px solid var(--accent-website-color);
}
.preview_post_website.style02 .preview_post_image
{
    justify-content: start;
}
.preview_post_website.style02 .preview_post_image .taxonomyTags
{
    color: #fff;
    z-index: 2;
    margin: 0;
	position: relative;
	z-index: 10;
}

.preview_post_website.style02 .preview_post_container .title a
{
   color: var(--primary-website-color);
}
.preview_post_website.style02:hover .preview_post_container .title a,
.preview_post_website.style02 .preview_post_container .title a:hover
{
   color: var(--accent-website-color);
}
.preview_post_website.style02 .preview_post_container .shortdescription 
{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.preview_post_button .mainButtonWebsite.simple
{
    background-color:  transparent;
    border: 0;
    padding: 0;
    text-align: left;
    color: var(--primary-website-color);
}
.preview_post_button .mainButtonWebsite.simple svg path
{
   fill: var(--primary-website-color);
}

.preview_post_button .mainButtonWebsite.simple:hover
{
    color: var(--accent-website-color);
}
.preview_post_button .mainButtonWebsite.simple:hover svg path
{
   fill: var(--accent-website-color);
}

.preview_post_website.style02 .preview_post_info
{
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--grey-light-website-color);
}

.preview_post_website.style02.style03 .preview_post_info
{
    margin-top: 15px;
    padding-top: 0;
    border-top: 0;
}
.preview_post_website.style02 .preview_post_content .infoTags.info .infolabels,
.preview_post_website.style02 .preview_post_info .infoTags.info .infolabels
{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;

    font-size: 13px;
    line-height: 14px;
    margin-bottom: 8px;
} 

.preview_post_website.style02 .preview_post_content .infoTags.info .infolabels svg,
.preview_post_website.style02 .preview_post_info .infoTags.info .infolabels svg
{
    height: 14px;
    width: auto;
} 

/*style 03*/
.preview_post_website.style02.style03 .preview_post_info .infolabels .dataview .date
{
    font-weight: 700;
}

.preview_post_website.style02.style03 .preview_post_info .infolabels .dataview svg path
{
    fill: var(--accent-website-color);
}
/*style 04*/
.style04 .single_grid_preview
{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.style04 .single_grid_preview:hover
{
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.preview_post_website.style04 .mainTextWebsite.bigger.title a strong
{
    color: var(--primary-website-color);
    font-weight: 700;
}
.preview_post_website.style04 .preview_post_image
{
    justify-content: start;
}
.preview_post_website.style04 .preview_post_image .taxonomyTags
{
    z-index: 2;
    margin: 0;
	position: relative;
	z-index: 10;
}
.preview_post_website.style04 .infotag.trasporto
{
    background-color: var(--primary-website-color);
    color: #fff;
}
.preview_post_website.style04 .preview_post_info .infoTags.taxonomy .infotag
{
    background-color: rgba(149, 193, 31,.05);
    color: var(--secondary-website-color);
    border: 1px solid rgba(149, 193, 31,.25);
}

.preview_post_website.style04 .preview_post_button .mainButtonWebsite 
{
    background-color: var(--secondary-website-color);
}

.preview_post_website.style04 .infoTags.extra .infolabels
{
    display: flex;
    gap: 10px;
    align-items: center;
}
.preview_post_website.style04 .infoTags.extra .infolabels span:not(.icon)
{
    color: var(--text-website-color);
    font-weight: 700;
}
.preview_post_website.style04 .infoTags.extra .infolabels span.icon
{
    background-color: rgba(149, 193, 31,.05);
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.preview_post_website.style04 .infoTags.extra .infolabels span.icon svg
{
   height: 18px;
   width: auto;
}
.preview_post_website.style04 .infoTags.extra .infolabels span.icon svg path
{
    fill: var(--accent-website-color);
}
.preview_post_website.style04 .infoTags.extra.durata .infolabels span.icon
{
    background-color: rgba(52, 83, 130,.05);
}
.preview_post_website.style04 .infoTags.extra.durata .infolabels span.icon svg path
{
    fill: var(--primary-website-color);
}

.preview_post_website.style04 .preview_post_info.tappe
{
    border-top: 1px solid rgba(149, 193, 31,.25);
}
.preview_post_website.style04 .preview_post_info.tappe .label_tappe
{
    font-size: 12px;
    line-height: 12px;
    color: var(--text-website-color);
    opacity: 0.75;
    margin-top: 5px;
    margin-bottom: 10px;
}


/* whishlist */
.preview_post_image button.jef4wishlist-toggle
{
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 15;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1.0);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.preview_post_image button.jef4wishlist-toggle svg#hearticonEmpty,
.preview_post_image button.jef4wishlist-toggle svg#hearticonFull
{
    width: 18px;
    height: 18px;
    display: block;
}
.preview_post_image button.jef4wishlist-toggle svg#hearticonEmpty path
{
    fill: transparent;
    stroke: var(--accent-website-color);
    stroke-width: 12px;
}
.preview_post_image button.jef4wishlist-toggle svg#hearticonFull path
{
    fill: var(--accent-website-color);
    stroke: var(--accent-website-color);
}



/* faccio piu piccoli */
.preview_post_website .infotag
{
    padding-top: 2px;   
    padding-bottom: 2px;
}

/* FILTERS SEARCH */
/*soluzione rapida per mobile*/
.previewGridFilterGroup 
{
    overflow-x: auto;
    padding-bottom: 15px;
}

.previewGridFilterTerm.labelInfoWebsite
{
    pointer-events: auto !important;
    cursor: pointer;  
    white-space: nowrap;
}
.previewGridFilterTerm.labelInfoWebsite:hover
{
    color: var(--accent-website-color);
    font-weight: 600;
}
.previewGridFilterTerm.labelInfoWebsite.is-active
{
    color: white;
    background-color: var(--primary-website-color);
    font-weight: 600;
}

.contentGridPosts
{
    position: relative;
}
.contentGridPosts.filtering::after
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 4;
}
.previewGridFilteringLoader
{
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOAD MORE */
.loadMoreContainer .loadMoreButton
{
    background-color: var(--primary-website-color);
    color: #fff;
}

/* ── Carousel mode ── */
.widgetPreviewGridCpt[data-layout-mode="carousel"] .previewGridCarousel .preview_post_website {
    padding: 0;
}

.widgetPreviewGridCpt[data-layout-mode="carousel"] .single_grid_preview {
    margin-bottom: 0;
}

.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-nav button.owl-prev,
.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-website-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
}

.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-nav button.owl-prev:hover,
.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-nav button.owl-next:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-nav button.owl-prev {
    left: -20px;
    transform: translateY(-50%) rotate(90deg);
}

.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-nav button.owl-next {
    right: -20px;
    transform: translateY(-50%) rotate(-90deg);
}

.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-nav button.owl-prev.disabled,
.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-nav button.owl-next.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.widgetPreviewGridCpt[data-layout-mode="carousel"] .owl-dots {
    margin-top: 16px;
    text-align: center;
}

/* ── Carousel 5 items: freccia sovrapposta all'ultima card ── */
.widgetPreviewGridCpt[data-layout-mode="carousel"] .wrapperPreviewGridCpt[data-carousel-items-desktop="5"] .owl-nav button.owl-next {
    z-index: 10;
}

/* ── Carousel: nascondi preview_post_info ── */
.widgetPreviewGridCpt[data-layout-mode="carousel"] .preview_post_info {
    display: none;
}