/* ==========================================================================
   Leonardo Home Design - stili dei widget Elementor del tema
   Specificità bassa: i controlli Stile di Elementor vincono sempre.
   ========================================================================== */

/* ---------- Menu di navigazione ---------- */
:where(.lhd-nav) {
	position: relative;
	display: flex;
	align-items: center;
}

:where(.lhd-nav__desktop) {
	width: 100%;
}

:where(.lhd-nav__list) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.lhd-nav__list li) {
	position: relative;
}

:where(.lhd-nav__list > li > a) {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-block: 30px;
	color: var(--lhd-c-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

/* Linea sotto la voce attiva / al passaggio */
:where(.lhd-nav__list > li > a)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(50% - 14px);
	height: 1px;
	background-color: var(--lhd-c-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--lhd-ease);
}

:where(.lhd-nav__list > li > a:hover, .lhd-nav__list > li.current-menu-item > a, .lhd-nav__list > li.current-menu-ancestor > a) {
	color: var(--lhd-c-primary);
}

:where(.lhd-nav__list > li > a:hover, .lhd-nav__list > li:focus-within > a, .lhd-nav__list > li.current-menu-item > a, .lhd-nav__list > li.current-menu-ancestor > a)::after {
	transform: scaleX(1);
}

/* Freccina voci con sottomenu */
:where(.lhd-nav__list > .menu-item-has-children > a)::before {
	content: "";
	order: 2;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 3px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	opacity: .6;
}

:where(.lhd-nav__list .sub-menu) {
	position: absolute;
	top: 100%;
	left: -24px;
	z-index: 50;
	min-width: 230px;
	margin: 0;
	padding: 18px 24px;
	list-style: none;
	background: var(--lhd-c-white);
	box-shadow: 0 10px 30px rgba(32, 32, 32, .1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s var(--lhd-ease), transform .25s var(--lhd-ease), visibility 0s .25s;
}

:where(.lhd-nav__list .sub-menu.lhd-sub--cols) {
	column-count: 2;
	column-gap: 36px;
	min-width: 460px;
}

:where(.lhd-nav__list .sub-menu .sub-menu) {
	top: -18px;
	left: 100%;
}

:where(.lhd-nav__list li:hover > .sub-menu, .lhd-nav__list li:focus-within > .sub-menu) {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

:where(.lhd-nav__list .sub-menu li) {
	break-inside: avoid;
}

:where(.lhd-nav__list .sub-menu a) {
	display: block;
	padding: 6px 0;
	color: var(--lhd-c-text);
	font-size: 13px;
	line-height: 1.5;
	white-space: nowrap;
	transition: color .2s var(--lhd-ease), transform .2s var(--lhd-ease);
}

:where(.lhd-nav__list .sub-menu a:hover, .lhd-nav__list .sub-menu a:focus-visible) {
	color: var(--lhd-c-primary);
	transform: translateX(4px);
}

/* Hamburger */
:where(.lhd-nav__toggle, .lhd-nav__close) {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lhd-c-primary);
	cursor: pointer;
}

:where(.lhd-nav__close) {
	display: inline-flex;
}

:where(.lhd-nav__overlay) {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(32, 32, 32, .45);
	opacity: 0;
	transition: opacity .3s var(--lhd-ease);
}

:where(.lhd-nav__panel) {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: min(360px, 88vw);
	padding: 16px 24px 40px;
	overflow-y: auto;
	background: var(--lhd-c-white);
	transform: translateX(100%);
	transition: transform .35s var(--lhd-ease);
}

:where(.lhd-nav.is-open .lhd-nav__panel) {
	transform: none;
}

:where(.lhd-nav.is-open .lhd-nav__overlay) {
	opacity: 1;
}

:where(.lhd-nav__panel-head) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--lhd-c-border);
}

:where(.lhd-nav__panel-title) {
	color: var(--lhd-c-primary);
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

:where(.lhd-nav__mobile-list, .lhd-nav__mobile-list .sub-menu) {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.lhd-nav__mobile-list li) {
	position: relative;
	border-bottom: 1px solid var(--lhd-c-border);
}

:where(.lhd-nav__mobile-list .sub-menu li) {
	border-bottom: 0;
}

:where(.lhd-nav__mobile-list a) {
	display: block;
	padding: 13px 48px 13px 0;
	color: var(--lhd-c-primary);
	font-size: 15px;
	font-weight: 500;
}

:where(.lhd-nav__mobile-list .sub-menu) {
	display: none;
	padding: 0 0 10px 14px;
}

:where(.lhd-nav__mobile-list .sub-menu a) {
	padding-block: 8px;
	color: var(--lhd-c-text);
	font-size: 14px;
	font-weight: 400;
}

:where(.lhd-nav__mobile-list li.is-open > .sub-menu) {
	display: block;
}

:where(.lhd-sub-toggle) {
	position: absolute;
	top: 2px;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lhd-c-primary);
	cursor: pointer;
}

:where(.lhd-sub-toggle svg) {
	transition: transform .25s var(--lhd-ease);
}

:where(li.is-open > .lhd-sub-toggle svg) {
	transform: rotate(180deg);
}

@media (max-width: 1024px) {
	:where(.lhd-nav--bp-tablet .lhd-nav__desktop) {
		display: none;
	}

	:where(.lhd-nav--bp-tablet .lhd-nav__toggle) {
		display: inline-flex;
	}
}

@media (max-width: 767px) {
	:where(.lhd-nav--bp-mobile .lhd-nav__desktop) {
		display: none;
	}

	:where(.lhd-nav--bp-mobile .lhd-nav__toggle) {
		display: inline-flex;
	}
}

@media (min-width: 1025px) {
	:where(.lhd-nav--bp-tablet .lhd-nav__panel, .lhd-nav--bp-tablet .lhd-nav__overlay) {
		display: none;
	}
}

@media (min-width: 768px) {
	:where(.lhd-nav--bp-mobile .lhd-nav__panel, .lhd-nav--bp-mobile .lhd-nav__overlay) {
		display: none;
	}
}

:where(body.lhd-lock) {
	overflow: hidden;
}

/* ---------- Icone header e ricerca ---------- */
:where(.lhd-tools) {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

:where(.lhd-tools__btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lhd-c-primary);
	cursor: pointer;
	transition: color .2s var(--lhd-ease);
}

:where(.lhd-tools__btn svg, .lhd-tools__btn i) {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

:where(.lhd-search) {
	position: fixed;
	inset: 0 0 auto;
	z-index: 10000;
	padding: 40px var(--lhd-gutter);
	background: var(--lhd-c-white);
	box-shadow: 0 12px 40px rgba(32, 32, 32, .12);
	transform: translateY(-100%);
	transition: transform .35s var(--lhd-ease);
}

:where(.lhd-search.is-open) {
	transform: none;
}

:where(.lhd-search__form) {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 900px;
	margin: 0 auto;
	border-bottom: 1px solid var(--lhd-c-primary);
}

:where(.lhd-search__form input[type="search"]) {
	flex: 1;
	min-width: 0;
	min-height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lhd-c-primary);
	font-size: 22px;
	outline: 0;
}

:where(.lhd-search__submit, .lhd-search__close) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lhd-c-primary);
	cursor: pointer;
}

@media (max-width: 767px) {
	:where(.lhd-search__form input[type="search"]) {
		font-size: 17px;
	}
}

/* ---------- Slider Hero ---------- */
:where(.lhd-hero) {
	--lhd-hero-h: 558px;
	--lhd-hero-media: 55%;
	--lhd-hero-deco: var(--lhd-c-secondary);
	--lhd-deco-left: 22%;
	--lhd-deco-top: 45%;
	--lhd-deco-extend: 330px;
	position: relative;
}

/* Il blocco sta dietro (z-index -1) e prosegue sotto lo slider, dietro la
   sezione successiva, come nel sito originale. */
:where(.lhd-hero__deco) {
	position: absolute;
	top: var(--lhd-deco-top);
	left: var(--lhd-deco-left);
	right: 0;
	bottom: calc(var(--lhd-deco-extend) * -1);
	z-index: -1;
	background: var(--lhd-hero-deco);
	pointer-events: none;
}

:where(.lhd-hero__track) {
	display: grid;
}

:where(.lhd-hero__slide) {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: var(--lhd-hero-media) minmax(0, 1fr);
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s var(--lhd-ease), visibility 0s .6s;
}

:where(.lhd-hero__slide.is-active) {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

:where(.lhd-hero__media) {
	position: relative;
	height: var(--lhd-hero-h);
	overflow: hidden;
}

:where(.lhd-hero__media img) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:where(.lhd-hero__content) {
	position: relative;
	align-self: start;
	padding: 0 40px 60px 60px;
	padding-top: calc(var(--lhd-hero-h) * .25);
}

:where(.lhd-hero__text) {
	color: var(--lhd-c-primary);
	font-family: var(--lhd-font-head);
	font-size: 50px;
	font-weight: 400;
	line-height: 1.12;
}

:where(.lhd-hero__text p) {
	margin: 0;
}

:where(.lhd-hero__btn) {
	margin-top: 28px;
}

/* Effetto "rivela": una fascia del colore decorativo scorre su immagine e testo */
:where(.lhd-hero--reveal .lhd-hero__media, .lhd-hero--reveal .lhd-hero__text) {
	position: relative;
}

:where(.lhd-hero--reveal .lhd-hero__slide.is-active .lhd-hero__media)::after,
:where(.lhd-hero--reveal .lhd-hero__slide.is-active .lhd-hero__text)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--lhd-hero-deco);
	transform-origin: right;
	transform: scaleX(0);
	animation: lhd-reveal 1.2s var(--lhd-ease) both;
}

:where(.lhd-hero--reveal .lhd-hero__slide.is-active .lhd-hero__text)::after {
	animation-delay: .2s;
}

:where(.lhd-hero--reveal .lhd-hero__slide.is-active .lhd-hero__media img),
:where(.lhd-hero--reveal .lhd-hero__slide.is-active .lhd-hero__text > *) {
	animation: lhd-reveal-content 1.2s var(--lhd-ease) both;
}

@keyframes lhd-reveal {
	0% { transform: scaleX(0); transform-origin: left; }
	45% { transform: scaleX(1); transform-origin: left; }
	55% { transform: scaleX(1); transform-origin: right; }
	100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes lhd-reveal-content {
	0%, 49% { opacity: 0; }
	50%, 100% { opacity: 1; }
}

:where(.lhd-hero__dots) {
	position: absolute;
	left: calc(var(--lhd-hero-media) + 60px);
	bottom: 30px;
	display: flex;
	gap: 6px;
}

:where(.lhd-hero__dots button, .lhd-testimonials__dots button) {
	--lhd-dot: var(--lhd-c-primary);
	position: relative;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

:where(.lhd-hero__dots button, .lhd-testimonials__dots button)::before {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border: 1px solid var(--lhd-dot);
	border-radius: 50%;
	transition: background-color .2s var(--lhd-ease);
}

:where(.lhd-hero__dots button[aria-current="true"], .lhd-testimonials__dots button[aria-current="true"])::before {
	background-color: var(--lhd-dot);
}

@media (max-width: 1024px) {
	:where(.lhd-hero__slide) {
		grid-template-columns: 1fr;
	}

	:where(.lhd-hero__content) {
		order: -1;
		padding: 30px 20px;
		text-align: center;
	}

	:where(.lhd-hero__media) {
		width: var(--lhd-hero-media);
		margin-inline: auto;
	}

	:where(.lhd-hero__text) {
		font-size: 40px;
	}

	:where(.lhd-hero__dots) {
		position: static;
		justify-content: center;
		margin-top: 14px;
	}
}

@media (max-width: 767px) {
	:where(.lhd-hero__text) {
		font-size: 28px;
	}
}

/* ---------- Griglia / carosello ---------- */
:where(.lhd-grid) {
	--lhd-cols: 4;
	--lhd-gap: 30px;
	display: grid;
	grid-template-columns: repeat(var(--lhd-cols), minmax(0, 1fr));
	gap: var(--lhd-gap);
}

:where(.lhd-grid--static) {
	--lhd-cols: 4;
}

@media (max-width: 1024px) {
	:where(.lhd-grid--static) {
		--lhd-cols: 3;
		--lhd-gap: 20px;
	}
}

@media (max-width: 767px) {
	:where(.lhd-grid--static) {
		--lhd-cols: 2;
		--lhd-gap: 14px;
	}
}

@media (max-width: 420px) {
	:where(.lhd-grid--static.lhd-search-results) {
		--lhd-cols: 1;
	}
}

/* Articoli correlati: 3 colonne, 2 su tablet, 1 su mobile. */
:where(.lhd-grid--static.lhd-related__grid) {
	--lhd-cols: 3;
}

@media (max-width: 1024px) {
	:where(.lhd-grid--static.lhd-related__grid) {
		--lhd-cols: 2;
	}
}

@media (max-width: 767px) {
	:where(.lhd-grid--static.lhd-related__grid) {
		--lhd-cols: 1;
	}
}

:where(.lhd-grid-wrap) {
	position: relative;
}

:where(.lhd-grid--carousel) {
	display: flex;
	gap: var(--lhd-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

:where(.lhd-grid--carousel)::-webkit-scrollbar {
	display: none;
}

:where(.lhd-grid--carousel > .lhd-grid__item) {
	flex: 0 0 calc((100% - (var(--lhd-cols) - 1) * var(--lhd-gap)) / var(--lhd-cols));
	scroll-snap-align: start;
}

:where(.lhd-grid--list) {
	grid-template-columns: 1fr;
	gap: 16px;
}

:where(.lhd-grid.is-loading) {
	opacity: .45;
	pointer-events: none;
	transition: opacity .2s var(--lhd-ease);
}

:where(.lhd-carousel-nav button) {
	position: absolute;
	top: 40%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--lhd-c-white);
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	color: var(--lhd-c-white);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .2s var(--lhd-ease), opacity .2s var(--lhd-ease);
}

:where(.lhd-carousel-nav button:hover) {
	background: rgba(32, 32, 32, .35);
}

:where(.lhd-carousel-nav button[disabled]) {
	opacity: 0;
	pointer-events: none;
}

:where(.lhd-carousel-prev) {
	left: 16px;
}

:where(.lhd-carousel-next) {
	right: 16px;
}

:where(.lhd-actions) {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

:where(.lhd-actions[hidden]) {
	display: none;
}

:where(.lhd-empty) {
	padding: 30px 20px;
	background: var(--lhd-c-light);
	text-align: center;
}

:where(.lhd-empty[hidden]) {
	display: none;
}

:where(.lhd-empty p:last-child) {
	margin: 0;
}

/* Segnaposto dei widget vuoti, visibile solo nell'editor Elementor. */
:where(.lhd-editor-placeholder) {
	padding: 20px;
	border: 1px dashed var(--lhd-c-text);
	color: var(--lhd-c-text);
	font-size: 13px;
	text-align: center;
}

/* ---------- Card portfolio ---------- */
:where(.lhd-card) {
	position: relative;
}

:where(.lhd-card__media) {
	position: relative;
	display: block;
	aspect-ratio: 410 / 492;
	overflow: hidden;
	background: var(--lhd-c-light);
}

:where(.lhd-card__img) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .5s var(--lhd-ease), transform .8s var(--lhd-ease);
}

:where(.lhd-card__img--hover) {
	opacity: 0;
}

/* Touch: niente hover, l'immagine (lazy) non viene nemmeno scaricata. */
@media (hover: none) {
	:where(.lhd-card__img--hover) {
		display: none;
	}
}

:where(.lhd-card:hover .lhd-card__img--hover) {
	opacity: 1;
}

:where(.lhd-card:hover .lhd-card__img:only-child, .lhd-card:hover .lhd-card__img--hover) {
	transform: scale(1.04);
}

:where(.lhd-card__placeholder) {
	position: absolute;
	inset: 0;
	background: var(--lhd-c-light);
}

:where(.lhd-card__body) {
	padding-top: 18px;
	text-align: center;
}

:where(.lhd-card__cat) {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

:where(.lhd-card__title) {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .5px;
}

:where(.lhd-card__title a) {
	color: var(--lhd-c-primary);
}

/* ---------- Card news ---------- */
:where(.lhd-post-card__media) {
	display: block;
	aspect-ratio: 1170 / 940;
	overflow: hidden;
	background: var(--lhd-c-light);
}

:where(.lhd-post-card__media img) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--lhd-ease);
}

:where(.lhd-post-card:hover .lhd-post-card__media img) {
	transform: scale(1.04);
}

:where(.lhd-post-card__body) {
	padding-top: 18px;
}

:where(.lhd-post-card__date) {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
}

:where(.lhd-post-card__title) {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

:where(.lhd-post-card__title a) {
	color: var(--lhd-c-primary);
}

:where(.lhd-post-card__cats) {
	margin-bottom: 10px;
	font-size: 12px;
}

:where(.lhd-post-card__cats a) {
	font-weight: 600;
	text-transform: uppercase;
}

:where(.lhd-post-card__excerpt) {
	margin-bottom: 18px;
}

:where(.lhd-post-card__more) {
	min-height: 38px;
	padding: 6px 18px;
	font-size: 12px;
}

/* Variante lista (sidebar) */
:where(.lhd-post-card--list) {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
}

:where(.lhd-post-card--list .lhd-post-card__media) {
	aspect-ratio: 1;
}

:where(.lhd-post-card--list .lhd-post-card__body) {
	padding: 0;
}

:where(.lhd-post-card--list .lhd-post-card__title) {
	font-size: 14px;
}

:where(.lhd-grid--list .lhd-card) {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
}

:where(.lhd-grid--list .lhd-card__body) {
	padding: 0;
	text-align: left;
}

:where(.lhd-grid--list .lhd-card__media) {
	aspect-ratio: 5 / 6;
}

/* ---------- Schede filtro ---------- */
:where(.lhd-tabs) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 30px;
	margin-bottom: 30px;
}

:where(.lhd-tabs button, .lhd-tabs--links a) {
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #a6a6a6;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s var(--lhd-ease);
}

:where(.lhd-tabs--links a) {
	display: inline-flex;
	align-items: center;
	color: var(--lhd-c-text);
}

:where(.lhd-tabs button[aria-selected="true"], .lhd-tabs button:hover, .lhd-tabs--links a:hover, .lhd-tabs--links a[aria-current]) {
	color: var(--lhd-c-primary);
}

@media (max-width: 767px) {
	:where(.lhd-tabs) {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
	}

	:where(.lhd-tabs button, .lhd-tabs--links a) {
		flex: 0 0 auto;
	}

	/* Widget Sottocategorie con "scorri in orizzontale" disattivato. */
	:where(.lhd-tabs--wrap) {
		flex-wrap: wrap;
		overflow-x: visible;
	}
}

/* ---------- Testimonianze ---------- */
:where(.lhd-testimonials) {
	text-align: center;
}

:where(.lhd-testimonials__track) {
	display: grid;
}

:where(.lhd-testimonial) {
	grid-area: 1 / 1;
	max-width: 860px;
	margin: 0 auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s var(--lhd-ease), visibility 0s .5s;
}

:where(.lhd-testimonial.is-active) {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

:where(.lhd-testimonial__quote) {
	display: block;
	margin-bottom: 14px;
	color: var(--lhd-c-primary);
}

:where(.lhd-testimonial__text) {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 14px;
	line-height: 1.9;
}

:where(.lhd-testimonial__text p:last-child) {
	margin: 0;
}

:where(.lhd-testimonial__name) {
	margin-top: 18px;
	color: var(--lhd-c-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

:where(.lhd-testimonials__dots) {
	display: flex;
	justify-content: center;
	gap: 2px;
	margin-top: 26px;
}

/* ---------- Titolo pagina e percorso ---------- */
:where(.lhd-titlebar) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 30px;
}

:where(.lhd-titlebar--stacked) {
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

:where(.lhd-titlebar__title) {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ---------- Pulsanti fissi ---------- */
:where(.lhd-float) {
	--lhd-float-offset: 24px;
	position: fixed;
	bottom: var(--lhd-float-offset);
	z-index: 9000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

:where(.lhd-float--right) {
	right: var(--lhd-float-offset);
}

:where(.lhd-float--left) {
	left: var(--lhd-float-offset);
}

:where(.lhd-float__wa) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	transition: transform .25s var(--lhd-ease);
}

:where(.lhd-float__wa:hover, .lhd-float__wa:focus-visible) {
	color: #fff;
	transform: scale(1.06);
}

:where(.lhd-float__top) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lhd-c-primary);
	color: var(--lhd-c-white);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

:where(.lhd-float__top[hidden]) {
	display: none;
}

/* Nell'editor Elementor il widget fisso resta visibile dov'è inserito */
:where(.elementor-editor-active .lhd-float) {
	position: static;
	flex-direction: row;
}

/* ---------- Gallerie native con classe CSS del tema ----------
   Qui serve specificità normale: Elementor imposta le colonne della Galleria
   base con selettori a 4 classi. Classi da usare in Avanzate > Classi CSS. */

/* lhd-gallery-fixed: mantiene le colonne scelte anche su mobile (es. footer). */
.lhd-gallery-fixed .elementor-image-gallery .gallery.gallery-columns-3 .gallery-item {
	max-width: 33.333%;
}

/* lhd-logos: griglia loghi brand 6 / 4 / 3 colonne. */
@media (min-width: 768px) and (max-width: 1024px) {
	.lhd-logos .elementor-image-gallery .gallery.gallery-columns-6 .gallery-item {
		max-width: 25%;
	}
}

@media (max-width: 767px) {
	.lhd-logos .elementor-image-gallery .gallery.gallery-columns-6 .gallery-item {
		max-width: 33.333%;
	}
}

:where(.lhd-logos .gallery-item img) {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	transition: transform .3s var(--lhd-ease);
}

:where(.lhd-logos .gallery-item a:hover img) {
	transform: scale(1.04);
}

/* ---------- Regole strutturali con specificità normale ----------
   Elementor azzera margini e altezze con ".elementor img" / ".elementor figure"
   (specificità 0,1,1). Queste poche regole di impaginazione devono vincere quel
   reset; i controlli Stile dei widget ({{WRAPPER}} …) restano comunque più forti. */
.lhd-testimonials .lhd-testimonial {
	margin-inline: auto;
}

.lhd-hero .lhd-hero__media img,
.lhd-post-card .lhd-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lhd-card .lhd-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* La Galleria base usa margini negativi per la spaziatura: evita lo scroll orizzontale. */
.lhd-logos,
.lhd-gallery-fixed {
	overflow: hidden;
}

/* Pulsante "Scarica catalogo" delle schede portfolio: sul sito resta nascosto
   finché non ha un link (nell'editor Elementor si vede sempre). */
body:not(.elementor-editor-active) .lhd-catalog:has(.elementor-button:not([href])),
body:not(.elementor-editor-active) .lhd-catalog:has(.elementor-button[href="#"]) {
	display: none;
}
