/**
 * TB 816 — alert acquisto diretto obsoleto (sostituito dal flusso carrello Premia).
 */
.single-product .elementor-element-27e38ff {
	display: none !important;
}

/**
 * Mini-cart Porto: evita overlay semi-trasparente “appeso” quando chiuso.
 */
body:not(.minicart-opened) .minicart-overlay,
html:not(.minicart-opened) .minicart-overlay,
#mini-cart:not(.minicart-opened):not(.opened) > .minicart-overlay {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/**
 * Sticky header Porto: Theme Options aveva sticky-header-opacity: 0%,
 * quindi .header-main / .main-menu-wrap restavano rgba(…, 0) dopo lo scroll
 * e la barra non tornava opaca. Forza bianco pieno da sticky-header-bg.
 */
#header.sticky-header .header-main,
.fixed-header #header.sticky-header .header-main,
#header.sticky-header .main-menu-wrap,
.fixed-header #header.sticky-header .main-menu-wrap,
#header.sticky-header .header-row,
.fixed-header #header.sticky-header .header-row,
#header.sticky-header .header-top,
.fixed-header #header.sticky-header .header-top {
	background-color: #ffffff !important;
}

#header.sticky-header,
.fixed-header #header.sticky-header {
	opacity: 1 !important;
}

/**
 * Fix layout Elementor/Porto (homepage e sezioni nested slider).
 * Slider "Ultime notizie": su mobile i testi sono nascosti e le immagini sono absolute,
 * quindi il contenitore collassa in altezza.
 */

@media (max-width: 767px) {
	.elementor-element-3ae1feb .swiper-slide > .e-con {
		display: flex;
		flex-direction: column;
		position: relative;
		overflow: hidden;
	}

	.elementor-element-3ae1feb .swiper-slide .elementor-widget-image.elementor-absolute {
		position: relative !important;
		inset: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		order: -1;
		margin-bottom: 0.75rem;
	}

	.elementor-element-3ae1feb .swiper-slide .elementor-widget-image.elementor-absolute img {
		display: block;
		width: 100%;
		height: auto;
		max-width: 100%;
		object-fit: cover;
	}

	.elementor-element-3ae1feb .swiper-slide .elementor-hidden-mobile {
		display: block !important;
	}

	.elementor-element-3ae1feb .swiper-slide .elementor-hidden-mobile .elementor-heading-title {
		margin: 0 0 0.35rem;
		text-align: left;
	}

	.elementor-element-3ae1feb .swiper-slide {
		height: auto !important;
	}

	.elementor-element-3ae1feb .elementor-main-swiper .swiper-wrapper {
		align-items: stretch;
	}
}
