/**
 * Footer — sezione sponsor (Elementor template 597).
 * Solo ≤767px. Specificità alta + !important per prevalere su post-597 e aiop-responsive-layout.
 */

@media (max-width: 767px) {
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-4bc23b7, .elementor-element-a1ef9be) {
		--aiop-footer-sponsor-inline-pad: clamp(0.75rem, 4vw, 1.25rem);
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-4bc23b7, .elementor-element-a1ef9be)
		.elementor-heading-title {
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: auto;
	}

	/* Titolo a sinistra; a destra partner (stessa riga) + prospectus sotto partner */
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-4bc23b7 {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: flex-start !important;
		justify-content: space-between !important;
		gap: clamp(0.35rem, 2vw, 0.75rem) !important;
		padding-inline: var(--aiop-footer-sponsor-inline-pad) !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-dd8c7fc {
		flex: 0 1 auto !important;
		width: auto !important;
		max-width: 55% !important;
		min-width: 0 !important;
		margin: 0 !important;
		--width: auto !important;
		--content-width: 100% !important;
		align-self: flex-start !important;
		padding: 0 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-dd8c7fc > .e-con-inner {
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-4bc23b7
		.elementor-element-45e6019 {
		width: auto !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-4bc23b7
		.elementor-element-86b9aec {
		display: none !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-62a0f1a {
		flex: 0 1 auto !important;
		width: auto !important;
		max-width: 55% !important;
		min-width: 0 !important;
		margin: 0 0 0 auto !important;
		--width: auto !important;
		--content-width: 100% !important;
		align-items: flex-end !important;
		align-self: flex-start !important;
		--justify-content: flex-start;
		padding: 0 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-62a0f1a > .e-con-inner {
		flex-direction: column !important;
		align-items: flex-end !important;
		justify-content: flex-start !important;
		gap: 0.25rem !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-4bc23b7
		:is(.elementor-element-91317ac, .elementor-element-ffea169) {
		width: auto !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		align-self: flex-end !important;
		text-align: right !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-4bc23b7
		:is(.elementor-element-91317ac, .elementor-element-ffea169)
		.elementor-heading-title {
		text-align: right !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-45e6019
		h2.elementor-heading-title {
		font-size: clamp(1.25rem, 5.2vw, 1.75rem) !important;
		line-height: 1.08 !important;
		text-align: left !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-91317ac {
		padding-top: 0 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-91317ac
		.elementor-heading-title {
		font-size: clamp(1.125rem, 4.5vw, 1.375rem) !important;
		line-height: 1.2 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-ffea169
		.elementor-heading-title {
		font-size: clamp(0.9375rem, 3.8vw, 1.0625rem) !important;
		line-height: 1.45 !important;
		letter-spacing: normal !important;
		word-spacing: normal !important;
		max-width: 100%;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-a1ef9be {
		padding-inline: var(--aiop-footer-sponsor-inline-pad) !important;
		align-items: stretch !important;
		width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		:is(
			.elementor-element-e79fdb2,
			.elementor-element-72577d7,
			.elementor-element-70cb20d,
			.elementor-element-7dc55dd
		) {
		width: 100% !important;
		max-width: 100% !important;
		--content-width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		:is(
			.elementor-element-e79fdb2,
			.elementor-element-72577d7,
			.elementor-element-70cb20d,
			.elementor-element-7dc55dd
		)
		> .e-con-inner {
		flex-direction: row !important;
		align-items: center !important;
		flex-wrap: nowrap !important;
		gap: clamp(0.35rem, 2vw, 0.75rem) !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		:is(
			.elementor-element-7c101d8,
			.elementor-element-a06e218,
			.elementor-element-3e5310e,
			.elementor-element-7862d05
		) {
		width: auto !important;
		min-width: 5.5rem;
		max-width: 28vw;
		flex: 0 0 auto !important;
		--container-widget-width: auto !important;
		align-self: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		:is(
			.elementor-element-7c101d8,
			.elementor-element-a06e218,
			.elementor-element-3e5310e,
			.elementor-element-7862d05
		)
		h2.elementor-heading-title {
		font-size: 0.875rem !important;
		line-height: 1.15 !important;
		letter-spacing: 0.03em;
		text-transform: uppercase;
		white-space: nowrap;
		text-align: left;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		.elementor-widget-spacer {
		display: none !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		.elementor-widget-aiop-logos-marquee {
		flex: 1 1 0 !important;
		width: auto !important;
		max-width: 100% !important;
		min-width: 0 !important;
		align-self: center !important;
	}

	/* Override style inline Elementor sul widget (--aiop-marquee-* sul nodo .aiop-logos-marquee) */
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		.aiop-logos-marquee {
		--aiop-marquee-gap: 0px !important;
		--aiop-marquee-min-height: 75px !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		.aiop-logos-marquee__set {
		gap: 0 !important;
	}

	/* Slot largo (visible:1) separava i loghi: larghezza = immagine, in fila attaccata */
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		.aiop-logos-marquee__item {
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: none !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-a1ef9be
		.aiop-logos-marquee__img {
		max-height: 75px !important;
		max-width: none !important;
	}
}
