/* Know-How (DEMAK Value): grafica in SVG, testi in HTML (font del tema).
   Le dimensioni del testo seguono la larghezza del blocco (container query). */
.dmk-kkh {
	position: relative;
	container-type: inline-size;
	width: 100%;
	max-width: 1024px;
	margin-inline: auto;
}
.dmk-kkh .dmk-kkh__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Etichette attorno al cerchio: ancorate al punto, lato sinistro allineate a destra. */
.dmk-kkh .dmk-kkh__label {
	position: absolute;
	top: calc(var(--y) * 1%);
	font-size: max(9px, 1.95cqw);
	font-weight: 500;
	line-height: 1.25;
	color: #294c74;
	text-wrap: balance;
}
.dmk-kkh .dmk-kkh__label--l {
	left: calc(var(--x) * 1% - 2.4cqw);
	transform: translate(-100%, -50%);
	text-align: right;
	max-width: min(calc(var(--x) * 1cqw - 2.4cqw), 17cqw);
}
.dmk-kkh .dmk-kkh__label--r {
	left: calc(var(--x) * 1% + 2.4cqw);
	transform: translate(0, -50%);
	text-align: left;
	max-width: min(calc((100 - var(--x)) * 1cqw - 2.4cqw), 17cqw);
}
.dmk-kkh .dmk-kkh__text {
	display: block;
}

/* Testi dentro le forme. */
.dmk-kkh .dmk-kkh__inner {
	position: absolute;
	left: calc(var(--x) * 1%);
	top: calc(var(--y) * 1%);
	transform: translate(-50%, -50%);
	width: 14cqw;
	font-size: max(8px, 1.95cqw);
	line-height: 1.4;
	text-align: center;
	color: #fff;
	text-wrap: balance;
}
.dmk-kkh .dmk-kkh__inner b {
	font-weight: 600;
}
.dmk-kkh .dmk-kkh__inner .dmk-kkh__text {
	display: block;
}

/* Animazione: stato di partenza solo se JS è attivo (senza JS tutto resta visibile). */
@media (scripting: enabled) {
	.dmk-kkh .dmk-kkh__a {
		opacity: 0;
		transition: opacity .6s ease, transform .6s ease;
		transition-delay: var(--d, 0s);
	}
	.dmk-kkh .dmk-kkh__ring {
		transform: rotate(-8deg) scale(.96);
		transform-box: fill-box;
		transform-origin: center;
		transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1);
		transition-delay: var(--d, 0s);
	}
	.dmk-kkh .dmk-kkh__gear,
	.dmk-kkh .dmk-kkh__hexagon,
	.dmk-kkh .dmk-kkh__overlap {
		transform: scale(.85);
		transform-box: fill-box;
		transform-origin: center;
	}
	.dmk-kkh .dmk-kkh__dot,
	.dmk-kkh .dmk-kkh__accent {
		transform: scale(.3);
		transform-box: fill-box;
		transform-origin: center;
	}
	.dmk-kkh .dmk-kkh__text.dmk-kkh__a { transform: translateY(8px); }

	.dmk-kkh.is-in .dmk-kkh__a {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dmk-kkh .dmk-kkh__a {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
