/* Terrazzo: the Mixcat brand world (chosen by Ahmad on 2026-11-07).
   A slab of one base colour set with flat stone chips. The four chip colours stand for the four parts of the work:
   marmo = website, corallo = marketing, senape = AI, nero = IT. Each page pours its own batch on its own base colour;
   the homepage is verde. Matte and flat: no gradients, no gloss, no shadows.

   Homepage: the Elementor hero container carries the classes "tz tz--home". Its copy stays in Elementor widgets
   (heading .mx-h1, text .mx-lede, buttons .mx-btn); the shortcode widget (class tz-fieldw) prints [mx_terrazzo],
   the chip field that assets/js/terrazzo.js pours. */
.tz {
	--tz-marmo: #F4EFE6;
	--tz-corallo: #EE6A4D;
	--tz-senape: #EDB33C;
	--tz-nero: #161616;
	--tz-verde: #0F4A38;
	--tz-base: var(--tz-verde);
	--tz-text: var(--tz-marmo);
	--tz-font: "MX Geologica", var(--mx-display, system-ui), system-ui, sans-serif;
}
.e-con.tz {
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	min-height: clamp(560px, calc(100svh - 88px), 900px);
	padding: clamp(56px, 11vh, 120px) max(var(--mx-gutter, 56px), calc((100% - var(--mx-max, 1328px)) / 2)) clamp(200px, 30vh, 300px);
	background: var(--tz-base);
	color: var(--tz-text);
	font-family: var(--tz-font);
}
.tz ::selection { background: var(--tz-senape); color: var(--tz-nero); }

/* The chip field fills the slab behind the words. */
.e-con.tz > .tz-fieldw {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: auto;
	max-width: none;
	margin: 0;
	pointer-events: none;
}
.tz-fieldw .elementor-widget-container,
.tz-fieldw .elementor-shortcode { height: 100%; }
.tz__field { display: block; width: 100%; height: 100%; }
.tz__c--marmo { fill: var(--tz-marmo); }
.tz__c--corallo { fill: var(--tz-corallo); }
.tz__c--senape { fill: var(--tz-senape); }
.tz__c--nero { fill: var(--tz-nero); }

/* The words. */
.e-con.tz > .e-con.mx-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	max-width: none;
	padding: 0;
}
.e-con.tz .mx-h1.elementor-widget-heading .elementor-heading-title {
	max-width: 10.5em;
	margin: 0;
	font-family: var(--tz-font);
	font-variation-settings: "SHRP" 100;
	font-size: clamp(2.5rem, 1.1rem + 5.4vw, 6rem);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.03em;
	color: var(--tz-text);
	text-wrap: balance;
}
.e-con.tz .mx-lede.elementor-widget-text-editor {
	margin-top: clamp(20px, 2.6vw, 32px);
	font-family: var(--tz-font);
	font-size: clamp(1.125rem, .95rem + .7vw, 1.5rem);
	font-weight: 400;
	line-height: 1.4;
	color: var(--tz-text);
}
.e-con.tz .mx-lede p { max-width: 30em; margin: 0; }

/* One clear action: the booking button is a cut tile; the second link stays quiet. */
.e-con.tz .e-con.mx-hero__ctas {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 30px;
	margin-top: clamp(28px, 3.4vw, 44px);
	padding: 0;
}
.e-con.tz .elementor-widget-button.mx-btn .elementor-button {
	padding: 1.05em 1.7em 1em;
	border-radius: 3px;
	background: var(--tz-senape);
	color: var(--tz-nero);
	font-family: var(--tz-font);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	transform: none;
	transition: background-color .2s cubic-bezier(.16, 1, .3, 1);
}
.e-con.tz .elementor-widget-button.mx-btn .elementor-button:hover { background: var(--tz-marmo); color: var(--tz-nero); box-shadow: none; transform: none; }
.e-con.tz .elementor-widget-button.mx-btn--outline .elementor-button,
.e-con.tz .elementor-widget-button.mx-btn--outline .elementor-button:hover {
	padding: .6em 0;
	background: transparent;
	color: var(--tz-marmo);
	box-shadow: none;
	text-decoration: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .25em;
}
.e-con.tz .elementor-widget-button.mx-btn--outline .elementor-button:hover { text-decoration-thickness: .14em; }
.e-con.tz .elementor-button:focus-visible { outline: 3px solid var(--tz-marmo); outline-offset: 4px; }

/* Closing band (Elementor container 39583f0, classes "mx-section mx-band tz tz--band"): the hero's bookend, a second
   slab with its own pour. Its field widget prints [mx_terrazzo seed="31" cat="corallo"]. */
.e-con.tz.tz--band {
	min-height: 0;
	padding: clamp(72px, 9vw, 128px) max(var(--mx-gutter, 56px), calc((100% - var(--mx-max, 1328px)) / 2));
}
.e-con.tz .mx-h2 .elementor-heading-title { max-width: 13em; color: var(--tz-text); }
.e-con.tz .mx-intro { color: var(--tz-text); }
.e-con.tz .mx-intro p { max-width: 34em; }
.e-con.tz .e-con.mx-band__actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding: 0; }
.e-con.tz .elementor-widget-button.mx-btn--light .elementor-button { background: var(--tz-senape); color: var(--tz-nero); }
.e-con.tz .elementor-widget-button.mx-btn--light .elementor-button:hover { background: var(--tz-marmo); color: var(--tz-nero); }
.e-con.tz .elementor-widget-button.mx-btn--ghost .elementor-button,
.e-con.tz .elementor-widget-button.mx-btn--ghost .elementor-button:hover {
	padding: .6em 0;
	background: transparent;
	color: var(--tz-marmo);
	box-shadow: none;
	text-decoration: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .25em;
}
.e-con.tz .elementor-widget-button.mx-btn--ghost .elementor-button:hover { text-decoration-thickness: .14em; }

/* The pour: chips drop into wet colour and come to rest; the cat chip turns into place last. The words never move. */
.tz__field.is-pouring .tz__c {
	transform-box: fill-box;
	transform-origin: center;
	animation: tz-drop .8s cubic-bezier(.16, 1, .3, 1) both;
	animation-delay: var(--d, 0ms);
}
.tz__field.is-pouring .tz__c--cat { animation: tz-cat 1s cubic-bezier(.16, 1, .3, 1) 1.2s both; }
@keyframes tz-drop {
	from { opacity: 0; transform: translateY(-28px) scale(.55) rotate(-16deg); }
	55% { opacity: 1; }
}
@keyframes tz-cat {
	from { opacity: 0; transform: scale(.4) rotate(28deg); }
	50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.tz__field.is-pouring .tz__c { animation: none; }
}

@media (max-width: 767px) {
	.e-con.tz {
		min-height: clamp(620px, calc(100svh - 72px), 820px);
		padding: 40px 20px 260px;
	}
	.e-con.tz .e-con.mx-hero__ctas { flex-direction: column; align-items: flex-start; }
	.e-con.tz .elementor-widget-button.mx-btn .elementor-button { font-size: 1.0625rem; }
}

/* The brand film ([mx_film]), opening the "What we do" section: a slab-coloured tile with one control. */
.tz-film { position: relative; margin: 0 0 clamp(32px, 4vw, 52px); }
.tz-film__v { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; background: #0F4A38; }
.tz-film__btn {
	position: absolute;
	right: clamp(10px, 1.6vw, 20px);
	bottom: clamp(10px, 1.6vw, 20px);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 15px 10px;
	border: 0;
	border-radius: 3px;
	background: #F4EFE6;
	color: #161616;
	font: 700 15px/1 "MX Geologica", system-ui, sans-serif;
	cursor: pointer;
	transition: background-color .2s cubic-bezier(.16, 1, .3, 1);
}
.tz-film__btn:hover { background: #EDB33C; }
.tz-film__btn:focus-visible { outline: 3px solid #EDB33C; outline-offset: 3px; }
.tz-film__btn::before { content: ""; flex: none; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.tz-film.is-playing .tz-film__btn::before { width: 10px; height: 12px; box-sizing: border-box; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.tz-film__pause, .tz-film.is-playing .tz-film__play { display: none; }
.tz-film.is-playing .tz-film__pause { display: inline; }

