/*
 * Speerdent Hotspot Animation — frontend styles
 * Every selector is scoped under .sh-stage / prefixed with "sh-" so it can
 * never leak into, or be affected by, the rest of the theme's CSS.
 */

.sh-stage,
.sh-stage * {
	box-sizing: border-box;
}

.sh-stage {
	position: relative;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	aspect-ratio: 778 / 379;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	background: #000;
	font-family: 'Poppins', Arial, sans-serif;
}

.sh-stage img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .55s ease;
}

.sh-stage img.active {
	opacity: 1;
}

/* ---------- top-left intro text ---------- */
.sh-intro {
	position: absolute;
	left: 3.2%;
	top: 6%;
	z-index: 20;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	max-width: 225px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
	opacity: .96;
}

/* ---------- logo ---------- */
.sh-logo {
	position: absolute;
	right: 3.2%;
	top: 5.5%;
	width: 95px;
	height: 28px;
	z-index: 20;
}

.sh-logo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right center;
	display: block;
	opacity: 1;
}

/* ---------- heading block ---------- */
.sh-heading-block {
	position: absolute;
	left: 57%;
	top: 19%;
	z-index: 18;
	max-width: 270px;
	color: #fff;
	background: rgba(0, 0, 0, .5);
	padding: 18px 22px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .5s ease, transform .5s ease;
}

.sh-heading-block.active {
	opacity: 1;
	transform: translateY(0);
}

.sh-heading-block h1 {
	margin: 0;
	font-size: 27px;
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: .2px;
}

.sh-heading-block p {
	margin: 8px 0 0;
	font-size: 11.5px;
	font-weight: 400;
	color: rgba(255, 255, 255, .8);
	line-height: 1.4;
}

/* ---------- bottom paragraph ---------- */
.sh-para-block {
	position: absolute;
	left: 57%;
	top: 53%;
	z-index: 18;
	max-width: 275px;
	color: rgba(255, 255, 255, .92);
	font-size: 11.5px;
	line-height: 1.6;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.sh-para-block p {
	margin: 0 0 12px;
}

.sh-para-block p:last-child {
	margin-bottom: 0;
}

/* ---------- button ---------- */
.sh-cta {
	position: absolute;
	right: 3.2%;
	bottom: 6.5%;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #F0262B;
	color: #fff;
	border: none;
	padding: 8px 8px 8px 18px;
	border-radius: 999px;
	font-family: 'Poppins', sans-serif;
	font-size: 11.5px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
}

.sh-cta .sh-arrow {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sh-cta .sh-arrow svg {
	width: 11px;
	height: 11px;
}

/* ---------- hotspot markers ---------- */
.sh-hotspot {
	position: absolute;
	width: 22px;
	height: 22px;
	border: none;
	background: transparent;
	cursor: pointer;
	z-index: 16;
	padding: 0;
	transform: translate(-50%, -50%);
}

.sh-hotspot .sh-plus {
	position: absolute;
	inset: 0;
}

.sh-hotspot .sh-plus::before,
.sh-hotspot .sh-plus::after {
	content: "";
	position: absolute;
	background: #F0262B;
	border-radius: 1px;
}

.sh-hotspot .sh-plus::before {
	top: 50%; left: 15%; right: 15%; height: 3px;
	transform: translateY(-50%);
}

.sh-hotspot .sh-plus::after {
	left: 50%; top: 15%; bottom: 15%; width: 3px;
	transform: translateX(-50%);
}

.sh-hotspot .sh-pulse {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(240, 38, 43, .55);
	animation: sh-pulse 2.2s infinite;
}

@keyframes sh-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(240, 38, 43, .5); }
	70%  { box-shadow: 0 0 0 12px rgba(240, 38, 43, 0); }
	100% { box-shadow: 0 0 0 0 rgba(240, 38, 43, 0); }
}

.sh-hotspot.active .sh-plus::before,
.sh-hotspot.active .sh-plus::after {
	background: #fff;
}

.sh-hotspot[data-target="produzione"]  { left: 41.5%; top: 35%; }
.sh-hotspot[data-target="laboratorio"] { left: 52%;   top: 16%; }
.sh-hotspot[data-target="clinica"]     { left: 37%;   top: 59%; }

/* ---------- hover hint (unselected state) ---------- */
.sh-hint {
	position: absolute;
	left: 15%;
	top: 47%;
	z-index: 14;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	max-width: 150px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
	opacity: .95;
	transition: opacity .3s ease;
}

.sh-stage.engaged .sh-hint {
	opacity: 0;
}
