/*
Theme Name: Capitaleventi Child
Theme URI: https://www.capitaleventi.it/
Description: Child theme leggero per Capitaleventi, basato su Hello Elementor.
Author: Capitaleventi
Template: hello-elementor
Version: 1.0.5
Text Domain: capitaleventi-child
*/

@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("assets/fonts/nunito-sans-normal-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Nunito Sans";
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url("assets/fonts/nunito-sans-italic-latin.woff2") format("woff2");
}

:root {
	--ce-font-family: "Nunito Sans", Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea {
	font-family: var(--ce-font-family);
}

/*
 * Elementor può salvare il font direttamente nei singoli widget. Questi
 * selettori uniformano il testo senza toccare Eicons, Font Awesome o gli SVG.
 */
body :where(
	p,
	li,
	dt,
	dd,
	blockquote,
	figcaption,
	label,
	legend,
	input,
	select,
	textarea,
	button,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	.elementor-heading-title,
	.elementor-button,
	.elementor-nav-menu a,
	.elementor-post__title,
	.elementor-post__excerpt,
	.elementor-post__meta-data,
	.elementor-widget-text-editor,
	.elementor-widget-theme-post-content,
	.elementor-widget-theme-post-title,
	.elementor-widget-theme-archive-title,
	.ce-locale-card,
	.ce-archive,
	.ce-single-locale,
	.ce-location-manager
) {
	font-family: var(--ce-font-family) !important;
}

/* Focus visibile coerente, senza alterare i componenti grafici di Elementor. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid #dc6300;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/*
 * Mantiene stabile lo spazio del widget recensioni finché Trustindex non viene
 * attivato. Il contenimento limita il lavoro di layout/paint fuori schermo.
 */
.ce-trustindex-lazy {
	min-height: 180px;
	content-visibility: auto;
	contain: layout paint style;
	contain-intrinsic-size: auto 180px;
}

.ce-trustindex-lazy[data-ce-ti-state="loaded"] {
	contain: none;
	content-visibility: visible;
}
