/* AIOP Elenco Eventi Menù — link testuali + anteprima copertina a destra */

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu-wrap,
.elementor-location-header .aiop-elenco-eventi-menu-wrap {
	--aiop-eem-preview-right-offset: 24px;
	--aiop-eem-preview-max-size: 200px;
	--aiop-eem-preview-text-gap: 48px;
	position: relative;
	width: 100%;
	min-height: var(--aiop-eem-preview-max-size, 200px);
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu,
.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__list,
.elementor-location-header .aiop-elenco-eventi-menu,
.elementor-location-header .aiop-elenco-eventi-menu__list {
	display: flex;
	flex-direction: column;
	gap: var(--aiop-eem-item-gap, 0.35rem);
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu-wrap .aiop-elenco-eventi-menu__list,
.elementor-location-header .aiop-elenco-eventi-menu-wrap .aiop-elenco-eventi-menu__list {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding-right: calc(
		var(--aiop-eem-preview-max-size, 200px) +
		var(--aiop-eem-preview-right-offset, 24px) +
		var(--aiop-eem-preview-text-gap, 48px)
	);
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__item,
.elementor-location-header .aiop-elenco-eventi-menu__item {
	margin: 0;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__item.is-preview-source .aiop-elenco-eventi-menu__link,
.elementor-location-header .aiop-elenco-eventi-menu__item.is-preview-source .aiop-elenco-eventi-menu__link {
	color: var(--e-global-color-fifth, #eb6037);
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__item .elementor-heading-title,
.elementor-location-header .aiop-elenco-eventi-menu__item .elementor-heading-title {
	margin: 0;
	line-height: 1.35;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__link,
.elementor-location-header .aiop-elenco-eventi-menu__link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__link:hover,
.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__link:focus-visible,
.elementor-location-header .aiop-elenco-eventi-menu__link:hover,
.elementor-location-header .aiop-elenco-eventi-menu__link:focus-visible {
	color: var(--e-global-color-fifth, #eb6037);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__preview,
.elementor-location-header .aiop-elenco-eventi-menu__preview {
	position: absolute;
	top: 0;
	right: var(--aiop-eem-preview-right-offset, 24px);
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	width: var(--aiop-eem-preview-max-size, 200px);
	max-width: calc(100% - var(--aiop-eem-preview-right-offset, 24px));
	pointer-events: none;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__preview-frame,
.elementor-location-header .aiop-elenco-eventi-menu__preview-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	width: 100%;
	height: auto;
	overflow: visible;
	background: transparent;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__preview-img,
.elementor-location-header .aiop-elenco-eventi-menu__preview-img {
	display: block;
	width: auto;
	height: auto;
	max-width: var(--aiop-eem-preview-max-size, 200px);
	max-height: var(--aiop-eem-preview-max-size, 200px);
	object-fit: contain;
	object-position: center right;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu-wrap.is-preview-active .aiop-elenco-eventi-menu__preview-img,
.elementor-location-header .aiop-elenco-eventi-menu-wrap.is-preview-active .aiop-elenco-eventi-menu__preview-img {
	opacity: 1;
	transform: translateY(0);
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__empty,
.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__editor-note,
.elementor-location-header .aiop-elenco-eventi-menu__empty,
.elementor-location-header .aiop-header-menu-congressi__empty,
.elementor-location-header .aiop-header-menu-congressi__editor-note {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.85;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__archive a,
.elementor-location-header .aiop-elenco-eventi-menu__archive a,
.elementor-location-header .aiop-header-menu-congressi__archive a {
	color: var(--e-global-color-fifth, #eb6037);
	text-decoration: none;
}

.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__archive a:hover,
.elementor-location-header .aiop-elenco-eventi-menu__archive a:hover,
.elementor-location-header .aiop-header-menu-congressi__archive a:hover {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-aiop-elenco-eventi-menu .aiop-elenco-eventi-menu__preview-img,
	.elementor-location-header .aiop-elenco-eventi-menu__preview-img {
		transition: none;
	}
}
