/**
 * Service pages — page hero, audience, compare, map glow, stagger
 * Fusion skin paints colors via home-fusion.css
 */

/* —— Compact page hero —— */
.sh-hero--page {
	min-height: min(62vh, 34rem);
}

body.sabteto-skin-fusion .sh-hero--page {
	min-height: min(62vh, 34rem);
}

body.sabteto-skin-fusion .sh-hero--page .sh-hero__inner {
	padding: clamp(4.5rem, 9vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.sh-hero__brand--page {
	font-size: clamp(1.05rem, 2vw, 1.3rem) !important;
	margin-bottom: 0.5rem !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
}

.sh-hero__brand--page::after {
	width: 1.75rem !important;
	height: 2px !important;
	margin-top: 0.55rem !important;
}

body.sabteto-skin-fusion .sh-hero--page h1 {
	font-size: clamp(2rem, 5.5vw, 3.35rem) !important;
	font-weight: 900 !important;
	letter-spacing: -0.04em !important;
	line-height: 1.2 !important;
	max-width: min(100%, 28rem) !important;
}

.sh-hero__crumb {
	margin-bottom: 1.25rem;
}

.sh-hero--page .sabteto-breadcrumb {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.82rem;
}

.sh-hero--page .sabteto-breadcrumb a {
	color: rgba(255, 255, 255, 0.78);
}

.sh-hero--page .sabteto-breadcrumb a:hover {
	color: #fff;
}

.sh-hero--page .sabteto-breadcrumb [aria-current="page"] {
	color: rgba(255, 255, 255, 0.95);
}

/* —— Audience / fit —— */
.sh-audience {
	display: grid;
	gap: 1rem;
}

@media (min-width: 800px) {
	.sh-audience {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sh-audience article {
	padding: 1.35rem 1.2rem;
}

.sh-audience strong {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 0.45rem;
}

.sh-audience p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	opacity: 0.82;
}

body.sabteto-skin-fusion .sh-audience article {
	background: var(--sh-panel);
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius);
	backdrop-filter: blur(10px);
}

.sh-fit {
	display: grid;
	gap: 1rem;
}

@media (min-width: 800px) {
	.sh-fit {
		grid-template-columns: 1fr 1fr;
	}
}

.sh-fit article {
	padding: 1.35rem 1.25rem;
}

.sh-fit strong {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 1.1rem;
}

.sh-fit ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.sh-fit li {
	position: relative;
	padding-inline-start: 1.1rem;
	font-size: 0.95rem;
	line-height: 1.55;
	opacity: 0.88;
}

.sh-fit li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 1px;
}

body.sabteto-skin-fusion .sh-fit__yes {
	background: var(--sh-panel);
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius);
}

body.sabteto-skin-fusion .sh-fit__yes li::before {
	background: var(--sh-gold);
}

body.sabteto-skin-fusion .sh-fit__no {
	background: rgba(11, 34, 56, 0.04);
	border: 1px dashed var(--sh-line);
	border-radius: var(--sh-radius);
}

body.sabteto-skin-fusion .sh-fit__no li::before {
	background: var(--sh-muted);
	opacity: 0.5;
}

/* —— Comparison table —— */
.sh-compare {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sh-compare table {
	width: 100%;
	border-collapse: collapse;
	min-width: 32rem;
	font-size: 0.95rem;
}

.sh-compare th,
.sh-compare td {
	padding: 0.95rem 1rem;
	text-align: start;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	vertical-align: top;
}

.sh-compare th {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	opacity: 0.65;
}

.sh-compare td strong {
	display: block;
}

.sh-compare td em {
	display: inline-block;
	margin-top: 0.25rem;
	font-style: normal;
	font-size: 0.75rem;
	font-weight: 700;
	opacity: 0.7;
}

.sh-compare tr.is-current {
	background: rgba(255, 170, 1, 0.1);
}

body.sabteto-skin-fusion .sh-compare tr.is-current {
	box-shadow: inset 3px 0 0 var(--sh-gold);
}

.sh-compare a {
	font-weight: 750;
	text-decoration: none;
}

body.sabteto-skin-fusion .sh-compare a {
	color: var(--sh-blue);
}

.sh-compare a:hover {
	text-decoration: underline;
}

/* —— Callout —— */
.sh-callout {
	margin-top: 2rem;
	padding: 1.25rem 1.35rem;
	max-width: 40rem;
}

.sh-callout strong {
	display: block;
	margin-bottom: 0.4rem;
}

.sh-callout p {
	margin: 0;
	line-height: 1.7;
	opacity: 0.85;
}

body.sabteto-skin-fusion .sh-callout {
	background: var(--sh-panel);
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius);
	border-inline-start: 3px solid var(--sh-gold);
}

/* —— Prose on service pages (full content width — no fake sidebar gutter) —— */
.sh-prose {
	max-width: none;
	width: 100%;
	line-height: 1.85;
	font-size: 1.05rem;
}

.sh-prose > *:first-child {
	margin-top: 0;
}

.sh-prose img,
.sh-prose figure,
.sh-prose video,
.sh-prose iframe {
	max-width: 100%;
	height: auto;
}

/* —— Migrated content tables (C3 — mirror .sh-compare) —— */
.sh-prose .sh-prose-table {
	margin: 1.5rem 0 2rem;
}

.sh-prose table,
.sh-prose .sh-prose-table table {
	width: 100%;
	border-collapse: collapse;
	min-width: 32rem;
	font-size: 0.95rem;
	max-width: 100%;
}

.sh-prose table th,
.sh-prose table td,
.sh-prose .sh-prose-table th,
.sh-prose .sh-prose-table td {
	padding: 0.95rem 1rem;
	text-align: start;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	vertical-align: top;
}

.sh-prose table th,
.sh-prose .sh-prose-table th {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	opacity: 0.65;
}

body.sabteto-skin-fusion .sh-prose table,
body.sabteto-skin-fusion .sh-prose .sh-prose-table {
	background: var(--sh-panel);
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

body.sabteto-skin-fusion .sh-prose .sh-prose-table table {
	min-width: 32rem;
}

.sh-prose figure {
	margin: 1.25rem 0;
	width: 100%;
}

.sh-prose figure img {
	width: 100%;
	display: block;
	border-radius: 12px;
}

.sh-prose p {
	margin: 0 0 1.1rem;
}

.sh-prose h2,
.sh-prose h3 {
	line-height: 1.35;
	margin-top: 1.75rem;
}

/* —— Service motion strip (per-service dynamic copy) —— */
.sh-svm {
	position: relative;
	padding: 1.1rem 1rem 1rem;
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius);
	background: var(--sh-panel);
}

.sh-svm__track {
	position: absolute;
	inset-inline: 1.2rem;
	top: 2.25rem;
	height: 1.2rem;
	pointer-events: none;
	z-index: 1;
}

.sh-svm__path--desk,
.sh-svm__path--mob {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sh-svm__path--mob {
	display: none;
}

.sh-svm__path-line {
	fill: none;
	stroke: rgba(26, 74, 110, 0.2);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: var(--svm-path-len, 520);
	stroke-dashoffset: var(--svm-path-len, 520);
	transition: stroke-dashoffset 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-service-motion].is-drawn .sh-svm__path-line {
	stroke-dashoffset: 0;
}

.sh-svm__dot {
	position: absolute;
	top: var(--svm-dot-y, 50%);
	left: var(--svm-dot-x, 0px);
	z-index: 3;
	width: 0.78rem;
	height: 0.78rem;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: var(--sh-gold);
	box-shadow: 0 0 0 6px rgba(255, 170, 1, 0.14);
	will-change: left, top;
	opacity: 0;
}

[data-service-motion].is-drawn .sh-svm__dot {
	opacity: 1;
}

.sh-svm__steps {
	position: relative;
	z-index: 2;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.7rem;
}

.sh-svm__step {
	position: relative;
	padding-top: 2.3rem;
	text-align: center;
	opacity: 0.52;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.sh-svm__step em {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-style: normal;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--sh-blue-deep);
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(15, 45, 72, 0.18);
	transition:
		background 0.35s ease,
		border-color 0.35s ease,
		color 0.35s ease,
		box-shadow 0.35s ease,
		transform 0.35s ease;
}

.sh-svm__step strong {
	font-size: 0.83rem;
	line-height: 1.45;
}

[data-service-motion].is-on-0 .sh-svm__step[data-svm-step="0"],
[data-service-motion].is-on-1 .sh-svm__step[data-svm-step="1"],
[data-service-motion].is-on-2 .sh-svm__step[data-svm-step="2"],
[data-service-motion].is-on-3 .sh-svm__step[data-svm-step="3"] {
	opacity: 1;
	transform: translateY(-0.12rem);
}

[data-service-motion].is-on-0 .sh-svm__step[data-svm-step="0"] em,
[data-service-motion].is-on-1 .sh-svm__step[data-svm-step="1"] em,
[data-service-motion].is-on-2 .sh-svm__step[data-svm-step="2"] em,
[data-service-motion].is-on-3 .sh-svm__step[data-svm-step="3"] em {
	background: var(--sh-gold);
	color: #0b2238;
	border-color: rgba(255, 170, 1, 0.85);
	box-shadow: 0 0 0 4px rgba(255, 170, 1, 0.2);
	transform: translateX(-50%) scale(1.08);
}

@media (max-width: 760px) {
	.sh-svm {
		padding: 0.85rem 0.65rem 1rem;
		min-height: 12.5rem;
	}

	.sh-svm__track {
		inset: 0.35rem 0.5rem;
		top: 0.35rem;
		height: auto;
		bottom: 0.35rem;
	}

	.sh-svm__path--desk {
		display: none;
	}

	.sh-svm__path--mob {
		display: block;
	}

	.sh-svm__steps {
		grid-template-columns: 1fr 1fr;
		gap: 2.4rem 0.65rem;
		padding: 0.15rem 0.1rem;
	}

	.sh-svm__step {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 0.35rem;
		padding: 0;
		text-align: center;
		opacity: 0.5;
	}

	.sh-svm__step em {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
	}

	[data-service-motion].is-on-0 .sh-svm__step[data-svm-step="0"] em,
	[data-service-motion].is-on-1 .sh-svm__step[data-svm-step="1"] em,
	[data-service-motion].is-on-2 .sh-svm__step[data-svm-step="2"] em,
	[data-service-motion].is-on-3 .sh-svm__step[data-svm-step="3"] em {
		transform: scale(1.12);
	}

	.sh-svm__step strong {
		font-size: 0.8rem;
		line-height: 1.4;
		max-width: 9.5rem;
	}
}

/* —— Map / city glow (motion B on service_city) —— */
.sh-map__note {
	margin: 0 0 1.5rem;
	max-width: 36rem;
	line-height: 1.7;
	opacity: 0.88;
}

.sh-map__cities a.is-active,
.sh-cities a.is-active {
	position: relative;
}

body.sabteto-skin-fusion .sh-cities a.is-active {
	border-color: rgba(255, 170, 1, 0.65);
	background: rgba(255, 170, 1, 0.18);
	color: #fff;
	box-shadow: 0 0 0 1px rgba(255, 170, 1, 0.35);
}

.sh-map__dot.is-active::after,
.sh-cities a.is-active.sh-map__dot::after {
	content: "";
	position: absolute;
	inset-inline-end: 0.55rem;
	top: 50%;
	width: 0.45rem;
	height: 0.45rem;
	margin-top: -0.225rem;
	border-radius: 50%;
	background: #ffaa01;
	box-shadow: 0 0 0 0 rgba(255, 170, 1, 0.55);
}

[data-map-glow].is-glow .sh-map__dot.is-active::after,
[data-map-glow].is-glow .sh-cities a.is-active.sh-map__dot::after {
	animation: sabteto-map-glow 2.2s ease-out infinite;
}

@keyframes sabteto-map-glow {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 170, 1, 0.55);
	}
	70% {
		box-shadow: 0 0 0 12px rgba(255, 170, 1, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 170, 1, 0);
	}
}

/* —— Stagger rise (motion B) —— */
.sh-stagger__item {
	opacity: 1;
	transform: none;
}

[data-stagger-rise]:not(.is-risen) .sh-stagger__item {
	opacity: 0;
	transform: translateY(1.1rem);
}

[data-stagger-rise].is-risen .sh-stagger__item {
	opacity: 1;
	transform: none;
	transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-stagger-rise].is-risen .sh-stagger__item:nth-child(1) { transition-delay: 0.04s; }
[data-stagger-rise].is-risen .sh-stagger__item:nth-child(2) { transition-delay: 0.1s; }
[data-stagger-rise].is-risen .sh-stagger__item:nth-child(3) { transition-delay: 0.16s; }
[data-stagger-rise].is-risen .sh-stagger__item:nth-child(4) { transition-delay: 0.22s; }
[data-stagger-rise].is-risen .sh-stagger__item:nth-child(5) { transition-delay: 0.28s; }
[data-stagger-rise].is-risen .sh-stagger__item:nth-child(6) { transition-delay: 0.34s; }
[data-stagger-rise].is-risen .sh-stagger__item:nth-child(7) { transition-delay: 0.4s; }
[data-stagger-rise].is-risen .sh-stagger__item:nth-child(8) { transition-delay: 0.46s; }

@media (prefers-reduced-motion: reduce) {
	[data-stagger-rise] .sh-stagger__item,
	[data-stagger-rise]:not(.is-risen) .sh-stagger__item {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	[data-map-glow].is-glow .sh-map__dot.is-active::after,
	[data-map-glow].is-glow .sh-cities a.is-active.sh-map__dot::after {
		animation: none !important;
	}

	.sh-svm__dot,
	.sh-svm__step,
	.sh-svm__step em,
	.sh-svm__path-line {
		transition: none !important;
	}

	[data-service-motion] .sh-svm__path-line {
		stroke-dashoffset: 0 !important;
	}
}
