/**
 * Footer Elementor 597 — sotto sezione sponsor (newsletter, link, legal/social).
 * Tablet/mobile: colonne, larghezze 100%, tipografia leggibile, wrap normale.
 */

@media (max-width: 1024px) {
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe)
		.elementor-heading-title {
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: auto;
		max-width: 100% !important;
		white-space: normal !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe)
		.elementor-widget__width-initial {
		width: 100% !important;
		max-width: 100% !important;
		--container-widget-width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe) {
		padding-inline: clamp(1rem, 4vw, 2rem) !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe)
		.elementor-widget-spacer
		.elementor-spacer-inner {
		height: clamp(0.75rem, 3vw, 1.5rem) !important;
	}

	/* —— Newsletter (d17114f) —— */
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		> .e-con-inner {
		align-items: stretch !important;
		gap: clamp(0.5rem, 2vw, 1rem) !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-fb254fb
		h2.elementor-heading-title {
		font-size: clamp(1.15rem, 3.6vw, 1.5rem) !important;
		line-height: 1.2 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-8e01358
		h2.elementor-heading-title {
		font-size: clamp(1rem, 3.2vw, 1.35rem) !important;
		line-height: 1.35 !important;
		font-weight: 300 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-a4b89d9 {
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100% !important;
		max-width: 100% !important;
		--width: 100% !important;
		gap: clamp(0.5rem, 2vw, 0.75rem) !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-2c27165
		h2.elementor-heading-title {
		font-size: clamp(1rem, 3.2vw, 1.25rem) !important;
		line-height: 1.25 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-0fe1879 {
		--e-search-input-padding-inline-end: 0.75rem !important;
		--e-search-input-padding-inline-start: 0.75rem !important;
		--e-search-input-padding-block-start: 0 !important;
		--e-search-input-padding-block-end: 0 !important;
		--e-search-submit-margin-inline-start: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		.elementor-widget-search
		.e-search,
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		.elementor-widget-search
		.e-search-form {
		width: 100% !important;
		max-width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		.elementor-widget-search
		.e-search-form {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0.5rem !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		.elementor-widget-search
		.e-search-input-wrapper {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		.elementor-widget-search
		.e-search-input {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
		min-height: 3rem !important;
		height: 3rem !important;
		padding: 0 0.75rem !important;
		font-size: clamp(0.8125rem, 3.2vw, 0.9375rem) !important;
		line-height: 1.25 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		.elementor-widget-search
		.e-search-submit {
		position: static !important;
		inset: auto !important;
		box-sizing: border-box !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		max-width: 100% !important;
		min-height: 3rem !important;
		height: 3rem !important;
		margin: 0 !important;
		padding: 0 1rem !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		.elementor-widget-search
		.e-search-submit span {
		display: block !important;
		width: 100% !important;
		text-align: center !important;
		font-size: clamp(0.875rem, 3.5vw, 1rem) !important;
		font-weight: 600 !important;
		line-height: 1.2 !important;
		letter-spacing: 0.04em !important;
	}

	/* —— Colonne link (c5af053) —— */
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-c5af053
		> .e-con-inner {
		gap: clamp(1rem, 3vw, 1.5rem) !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-38209cd {
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100% !important;
		max-width: 100% !important;
		--width: 100% !important;
		gap: clamp(0.75rem, 2.5vw, 1.25rem) !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-19923ad
		h2.elementor-heading-title {
		font-size: clamp(1.05rem, 3.4vw, 1.5rem) !important;
		line-height: 1.25 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-c5af053
		:is(.elementor-element-4fdd414, .elementor-element-32d66ee, .elementor-element-9b85ab2) {
		width: 100% !important;
		max-width: 100% !important;
		--width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-c5af053
		:is(.elementor-element-4fdd414, .elementor-element-32d66ee, .elementor-element-9b85ab2)
		> .e-con-inner {
		flex-direction: column !important;
		align-items: flex-start !important;
		flex-wrap: nowrap !important;
		gap: 0.35rem !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-c5af053
		:is(
			.elementor-element-dff350e,
			.elementor-element-9993296,
			.elementor-element-0c156d4,
			.elementor-element-f9d47d6,
			.elementor-element-965f8da,
			.elementor-element-c2cf29a,
			.elementor-element-e525a6c,
			.elementor-element-58adb03
		)
		h2.elementor-heading-title {
		font-size: clamp(0.95rem, 3vw, 1.125rem) !important;
		line-height: 1.3 !important;
	}

	/* —— Legal, logo, social (0135fbe) —— */
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-f7ae087 {
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100% !important;
		gap: clamp(1rem, 3vw, 1.5rem) !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-f49c944,
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-c1cbeb1,
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-54a8c57 {
		width: 100% !important;
		max-width: 100% !important;
		--width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-68076d4
		img {
		width: auto !important;
		max-width: min(280px, 72vw) !important;
		height: auto !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-5644f81 {
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
		flex-wrap: nowrap !important;
		gap: 0.35rem !important;
		width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-0135fbe
		:is(
			.elementor-element-b9aef4b,
			.elementor-element-d1b9752,
			.elementor-element-5fd00fb,
			.elementor-element-d9eb8ae
		)
		h2.elementor-heading-title {
		font-size: clamp(0.75rem, 2.6vw, 0.875rem) !important;
		line-height: 1.35 !important;
		text-align: left !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-0135fbe
		:is(.elementor-element-c618b38, .elementor-element-a0bc158, .elementor-element-3b9400b)
		h2.elementor-heading-title {
		font-size: clamp(0.6875rem, 2.4vw, 0.8125rem) !important;
		line-height: 1.45 !important;
		text-align: left !important;
		font-weight: 400 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-f1ec687 {
		flex-wrap: wrap !important;
		width: 100% !important;
		max-width: 100% !important;
		justify-content: flex-start !important;
		align-items: center !important;
		gap: 0.5rem 0.75rem !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-1a39577
		h2.elementor-heading-title {
		font-size: clamp(0.875rem, 2.8vw, 1rem) !important;
		line-height: 1.2 !important;
		white-space: normal !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-86831cd
		.elementor-social-icons-wrapper.elementor-grid {
		display: flex !important;
		flex-flow: row wrap !important;
		justify-content: flex-start !important;
		gap: 0.5rem !important;
		width: auto !important;
		max-width: 100% !important;
	}
}

@media (max-width: 767px) {
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe) {
		padding-inline: clamp(1rem, 5vw, 1.25rem) !important;
		text-align: center !important;
	}

	/* Centro: newsletter, link, legal/social (sotto sezione sponsor) */
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe)
		.elementor-heading-title,
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe)
		.elementor-widget-text-editor,
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe)
		.elementor-button {
		text-align: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe)
		:is(.e-con, .e-con-inner) {
		align-items: center !important;
		justify-content: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		:is(.elementor-element-d17114f, .elementor-element-c5af053, .elementor-element-0135fbe)
		.elementor-widget__width-initial {
		align-self: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-d17114f
		.elementor-element-a4b89d9 {
		align-items: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-0135fbe
		.elementor-element-68076d4
		img {
		margin-inline: auto !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-0135fbe
		.elementor-element-f1ec687 {
		justify-content: center !important;
		align-items: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-0135fbe
		.elementor-element-86831cd
		.elementor-social-icons-wrapper.elementor-grid {
		justify-content: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-c5af053
		.elementor-element-bba2fc7 {
		align-self: center !important;
		text-align: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-c5af053
		.elementor-element-bba2fc7
		.elementor-button {
		margin-inline: auto !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-8e01358
		h2.elementor-heading-title {
		font-size: clamp(0.9375rem, 4vw, 1.125rem) !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-19923ad
		h2.elementor-heading-title {
		font-size: clamp(1rem, 4.2vw, 1.25rem) !important;
	}

	/* Due colonne link affiancate, blocco centrato nella pagina */
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-38209cd {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		align-items: flex-start !important;
		column-gap: clamp(1rem, 6vw, 2rem) !important;
		row-gap: 0.75rem !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-38209cd
		> :is(
			.elementor-element-19923ad,
			.elementor-element-00edba9,
			.elementor-element-9b85ab2
		) {
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-4fdd414 {
		flex: 0 1 auto !important;
		width: auto !important;
		max-width: 52% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		align-self: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element.elementor-element-32d66ee {
		flex: 0 1 auto !important;
		width: auto !important;
		max-width: 46% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		align-self: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-4fdd414
		> .e-con-inner,
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-32d66ee
		> .e-con-inner {
		align-items: center !important;
		padding-inline: 0 !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-c5af053
		:is(
			.elementor-element-dff350e,
			.elementor-element-9993296,
			.elementor-element-0c156d4,
			.elementor-element-f9d47d6,
			.elementor-element-965f8da,
			.elementor-element-c2cf29a
		)
		.elementor-heading-title,
	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-c5af053
		.elementor-element-c2cf29a
		.elementor-heading-title
		a {
		text-align: center !important;
	}

	body:not(.elementor-editor-active) .elementor-597.elementor-location-footer
		.elementor-element-0135fbe
		.elementor-element-5644f81 {
		align-items: center !important;
		justify-content: center !important;
	}
}
