/*
 * Elementor pages built from the original design.
 * Elements carrying the "dvx" class are printed with the original markup (inc/elementor.php);
 * these rules remove the extra wrappers Elementor adds so the layout matches the original.
 */

/* Public page: widget wrappers take no space; the original element inside does the layout. */
body:not(.elementor-editor-active) .elementor-widget.dvx,
body:not(.elementor-editor-active) .elementor-widget.dvx > .elementor-widget-container {
	display: contents;
}

/* Elementor's base styles that would otherwise override the site's own classes. */
.elementor .dvx a,
.elementor a.dvx { box-shadow: none; }
.elementor .underline { text-decoration-line: underline; }
.elementor .no-underline { text-decoration-line: none; }
.elementor img.dv-fill { max-width: none; height: 100%; }

/* ---- Inside the Elementor editor: wrappers stay (so they can be selected) but look neutral. ---- */
.elementor-editor-active .e-con.dvx {
	--display: block;
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--gap: 0;
	--row-gap: 0;
	--column-gap: 0;
	--width: auto;
	--min-height: 0;
	--margin-top: 0;
	--margin-bottom: 0;
	--flex-wrap: initial;
	--justify-content: initial;
	--align-items: initial;
}
.elementor-editor-active .dvx .elementor-heading-title {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-transform: inherit;
}
.elementor-editor-active .elementor-widget-button.dvx .elementor-button {
	all: unset;
	display: contents;
}
.elementor-editor-active .elementor-widget-button.dvx .elementor-button-content-wrapper,
.elementor-editor-active .elementor-widget-button.dvx .elementor-button-wrapper {
	display: contents;
}
.elementor-editor-active .elementor-widget-image.dvx.dv-fill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}
.elementor-editor-active .elementor-widget-image.dvx.dv-fill {
	position: absolute;
	inset: 0;
}

/* The hero entrance animation targets the hero's direct children; here they sit one level down. */
body:not(.elementor-editor-active) .hero-copy > .elementor-widget > * { animation: .8s both rise; }
body:not(.elementor-editor-active) .hero-copy > .elementor-widget:nth-child(1) > * { animation-delay: 50ms; }
body:not(.elementor-editor-active) .hero-copy > .elementor-widget:nth-child(2) > * { animation-delay: .18s; }
body:not(.elementor-editor-active) .hero-copy > .elementor-widget:nth-child(3) > * { animation-delay: .3s; }
body:not(.elementor-editor-active) .hero-copy > .elementor-widget:nth-child(4) > * { animation-delay: .42s; }
body:not(.elementor-editor-active) .hero-copy > .elementor-widget:nth-child(5) > * { animation-delay: .52s; }
@media (prefers-reduced-motion: reduce) {
	body:not(.elementor-editor-active) .hero-copy > .elementor-widget > * { animation: none; transform: none; }
}

/* Editor: when the original element is rendered inside the widget wrapper, the wrapper must not
   draw the same box again (both carry the classes). */
body.elementor-editor-active .elementor-widget.dvx:has(> a, > h1, > h2, > h3, > h4, > h5, > h6, > img) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	min-height: 0;
	transform: none;
	animation: none;
}
