/**
 * Dopo Elementor (kit + post + widget-nav-menu).
 * Non usare max-content + nowrap sul <ul> principale: con colonna centrale limitata diventa box con scrollbar.
 * Desktop: wrap + width 100% (allineato a elementor-theme-ui.css). Solo <ul> di primo livello.
 */
.elementor-location-header .elementor-widget-nav-menu nav.elementor-nav-menu--main > ul.elementor-nav-menu > li,
.elementor-location-header nav.elementor-nav-menu--main.elementor-nav-menu--layout-horizontal > ul.elementor-nav-menu > li {
	float: none !important;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
}

@media (min-width: 1025px) {
	.elementor-location-header .elementor-widget-nav-menu nav.elementor-nav-menu--main > ul.elementor-nav-menu,
	.elementor-location-header nav.elementor-nav-menu--main.elementor-nav-menu--layout-horizontal > ul.elementor-nav-menu {
		display: flex !important;
		flex-flow: row wrap !important;
		flex-wrap: wrap !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow: visible !important;
		justify-content: center !important;
	}

	.elementor-location-header .elementor-widget-nav-menu nav.elementor-nav-menu--dropdown {
		display: none !important;
	}
}

/* Stessa specificità del post CSS + scope header → vince su var(--e-global-color-accent) */
.elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item:before,
.elementor-location-header .elementor-widget-nav-menu .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item:after {
	background-color: var(--psai-primary) !important;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active:after,
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active:before,
.elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted:after,
.elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted:before {
	background-color: var(--psai-primary) !important;
}

/**
 * Theme Builder — Single Page servizi tecnici (template purplesoft-ai-single-service-page).
 * Layout: TOC + contenuto affiancati su desktop; icon box in riga responsive.
 */

/* Hub /servizi/ e /portfolio/ (Theme Builder): hero a tutta colonna root */
.elementor-location-single .psai-tb-servizi-hub-hero {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
	background: linear-gradient(128deg, #2d1f3d 0%, var(--psai-brand) 38%, #3d5a9e 72%, var(--psai-primary) 100%);
	color: var(--psai-white);
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* Portfolio: gradiente distinto (ciano / petrolio) per differenziare dalla pagina Servizi */
.elementor-location-single .psai-tb-portfolio-hub-hero {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
	background: linear-gradient(
		125deg,
		#0c1a28 0%,
		#143d52 34%,
		color-mix(in srgb, var(--psai-primary, #5b9fff) 75%, #0d3d4a) 68%,
		#1a4d5c 100%
	);
	color: var(--psai-white);
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.elementor-location-single .psai-tb-hub-page-title .elementor-heading-title {
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(2rem, 4vw, 2.65rem);
	line-height: 1.15;
	margin: 0;
	color: var(--psai-white) !important;
}

.elementor-location-single .psai-tb-hub-lead {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.1rem);
	line-height: 1.62;
	max-width: 48rem;
	color: rgba(255, 255, 255, 0.92);
}

.elementor-location-single .psai-tb-hub-lead a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-color: rgba(255, 255, 255, 0.45);
}

.elementor-location-single .psai-tb-hub-lead a:hover {
	text-decoration-color: rgba(255, 255, 255, 0.9);
}

/* Colonna unica centrata: niente “muro” a tutta larghezza su monitor ultralarge */
.elementor-location-single .psai-tb-servizi-hub-root,
.elementor-location-single .psai-tb-portfolio-hub-root {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1rem, 3vw, 1.5rem);
	padding-right: clamp(1rem, 3vw, 1.5rem);
	box-sizing: border-box;
}

.elementor-location-single .psai-tb-servizi-hub-root > .e-con-inner,
.elementor-location-single .psai-tb-portfolio-hub-root > .e-con-inner {
	width: 100%;
	max-width: 100%;
}

/* Stessa larghezza utile per tutti i boxed figli (evita 1040px vs 1072px per padding diversi) */
.elementor-location-single .psai-tb-servizi-hub-root .e-con-boxed,
.elementor-location-single .psai-tb-portfolio-hub-root .e-con-boxed {
	max-width: 100% !important;
}

.elementor-location-single .psai-tb-servizi-hub-root .e-con-boxed > .e-con-inner,
.elementor-location-single .psai-tb-portfolio-hub-root .e-con-boxed > .e-con-inner {
	max-width: 100%;
	padding-inline: 0;
}

.elementor-location-single .psai-tb-servizi-hub-hero .elementor-widget-heading .elementor-heading-title,
.elementor-location-single .psai-tb-portfolio-hub-hero .elementor-widget-heading .elementor-heading-title {
	font-weight: 500;
	letter-spacing: 0.02em;
}

.elementor-location-single .psai-tb-hub-cta-row {
	margin-top: 0.25rem;
}

.elementor-location-single .psai-tb-hub-btn-ghost .elementor-button {
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.42) !important;
	color: #fff !important;
	backdrop-filter: blur(8px);
}

.elementor-location-single .psai-tb-hub-btn-ghost .elementor-button:hover {
	background: rgba(255, 255, 255, 0.2) !important;
	border-color: rgba(255, 255, 255, 0.65) !important;
	color: #fff !important;
}

/* Contatti (hub): contrasto su gradiente Servizi / Portfolio */
.elementor-location-single .psai-tb-hub-btn-solid .elementor-button,
.elementor-location-single .psai-tb-hub-btn-solid .elementor-button:link,
.elementor-location-single .psai-tb-hub-btn-solid .elementor-button:visited {
	background-color: #ffffff !important;
	background-image: none !important;
	color: #14101f !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	font-weight: 600 !important;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}

.elementor-location-single .psai-tb-hub-btn-solid .elementor-button:hover,
.elementor-location-single .psai-tb-hub-btn-solid .elementor-button:focus {
	background-color: color-mix(in srgb, #ffffff 88%, var(--psai-primary, #5b9fff)) !important;
	color: #0a0710 !important;
	border-color: rgba(255, 255, 255, 0.55) !important;
}

.elementor-location-single .psai-tb-servizi-pillars-wrap,
.elementor-location-single .psai-tb-portfolio-pillars-wrap {
	border-radius: 16px;
	border: 1px solid var(--psai-border-subtle, rgba(255, 255, 255, 0.08));
	background: linear-gradient(
		165deg,
		color-mix(in srgb, var(--psai-surface-raised, #1c1528) 88%, var(--psai-brand, #954392) 12%),
		var(--psai-surface, #14101f)
	);
	box-shadow: var(--psai-card-shadow, 0 8px 32px rgba(0, 0, 0, 0.35));
	padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1rem, 2.5vw, 1.35rem) !important;
}

.elementor-location-single .psai-tb-portfolio-pillars-wrap {
	background: linear-gradient(
		165deg,
		color-mix(in srgb, var(--psai-surface-raised, #1c1528) 86%, var(--psai-primary, #5b9fff) 14%),
		var(--psai-surface, #14101f)
	);
}

.elementor-location-single .psai-tb-servizi-pillars-title .elementor-heading-title,
.elementor-location-single .psai-tb-portfolio-pillars-title .elementor-heading-title {
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(1.35rem, 2.8vw, 1.75rem);
	letter-spacing: -0.02em;
	margin: 0 0 0.35rem;
}

.elementor-location-single .psai-tb-servizi-icons-row .elementor-widget-icon-box.psai-tb-hub-icon-box .elementor-widget-container {
	height: 100%;
	background: color-mix(in srgb, var(--psai-surface-raised, #1c1528) 92%, transparent);
	border: 1px solid var(--psai-border-subtle, rgba(255, 255, 255, 0.08));
	border-radius: 12px;
	padding: 1.15rem 1.1rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.elementor-location-single .psai-tb-servizi-icons-row .elementor-widget-icon-box.psai-tb-hub-icon-box:hover .elementor-widget-container {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
	border-color: color-mix(in srgb, var(--psai-primary, #5b9fff) 35%, transparent);
}

.elementor-location-single .psai-tb-hub-icon-box .elementor-icon-box-title {
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 1.02rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	margin-bottom: 0.35rem !important;
}

.elementor-location-single .psai-tb-hub-icon-box .elementor-icon-box-description {
	font-size: 0.9rem !important;
	line-height: 1.5 !important;
	color: color-mix(in srgb, var(--psai-text, #e8eaef) 82%, transparent) !important;
}

.elementor-location-single .psai-tb-hub-icon-box .elementor-icon {
	color: var(--psai-primary, #5b9fff) !important;
	fill: var(--psai-primary, #5b9fff) !important;
}

.elementor-location-single .psai-tb-servizi-div-wrap .elementor-divider,
.elementor-location-single .psai-tb-portfolio-div-wrap .elementor-divider {
	padding: 0.75rem 0 1.25rem;
}

.elementor-location-single .psai-tb-servizi-div-wrap .elementor-divider-separator,
.elementor-location-single .psai-tb-portfolio-div-wrap .elementor-divider-separator {
	display: block;
	border: none;
	height: 2px;
	max-width: min(480px, 75%);
	margin-left: auto !important;
	margin-right: auto !important;
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, var(--psai-primary, #5b9fff) 70%, transparent),
		transparent
	);
}

.elementor-location-single .psai-tb-servizi-article-heading .elementor-heading-title,
.elementor-location-single .psai-tb-portfolio-article-heading .elementor-heading-title {
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(1.25rem, 2.5vw, 1.55rem);
	letter-spacing: -0.02em;
	padding-bottom: 0;
	margin: 0 0 1rem;
	border: none;
	position: relative;
}

.elementor-location-single .psai-tb-servizi-article-heading .elementor-heading-title::after,
.elementor-location-single .psai-tb-portfolio-article-heading .elementor-heading-title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin-top: 0.5rem;
	border-radius: 3px;
	background: linear-gradient(
		90deg,
		var(--psai-brand, #954392),
		var(--psai-primary, #5b9fff)
	);
}

.elementor-location-single .psai-tb-service-hero {
	border-bottom: 1px solid var(--psai-border-subtle, rgba(255, 255, 255, 0.08));
}

.elementor-location-single .psai-tb-service-breadcrumb {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.elementor-location-single .psai-tb-service-breadcrumb a {
	color: var(--psai-primary, #5b9fff);
	text-decoration: none;
	font-weight: 500;
}

.elementor-location-single .psai-tb-service-breadcrumb a:hover,
.elementor-location-single .psai-tb-service-breadcrumb a:focus-visible {
	color: var(--psai-secondary, #8ab4ff);
	text-decoration: underline;
}

.elementor-location-single .psai-tb-service-breadcrumb-sep {
	margin: 0 0.5em;
	opacity: 0.35;
	color: var(--psai-text-muted, #9aa3b2);
	font-weight: 400;
}

.elementor-location-single .psai-tb-service-breadcrumb-label {
	color: var(--psai-text-muted, #9aa3b2);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.elementor-location-single .psai-tb-service-page-title .elementor-heading-title {
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
	margin: 0;
}

.elementor-location-single .psai-tb-service-hero-note {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--psai-text, #e8eaef) 72%, transparent);
	max-width: 42rem;
}

.elementor-location-single .psai-tb-service-hero-note a {
	color: var(--psai-primary, #5b9fff);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--psai-primary) 45%, transparent);
	text-underline-offset: 0.15em;
}

.elementor-location-single .psai-tb-service-hero-note a:hover {
	color: var(--psai-secondary, #8ab4ff);
}

.elementor-location-single .psai-tb-service-icons-row > .e-con-inner,
.elementor-location-single .psai-tb-servizi-icons-row > .e-con-inner {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem;
	width: 100%;
	justify-content: space-between;
}

.elementor-location-single .psai-tb-service-icons-row .elementor-widget-icon-box,
.elementor-location-single .psai-tb-servizi-icons-row .elementor-widget-icon-box {
	flex: 1 1 220px;
	min-width: 200px;
}

.elementor-location-single .psai-tb-service-split > .e-con-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.5rem;
	width: 100%;
}

.elementor-location-single .psai-tb-service-sidebar,
.elementor-location-single .psai-tb-service-article {
	width: 100%;
	min-width: 0;
}

@media (min-width: 1025px) {
	.elementor-location-single .psai-tb-service-split > .e-con-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 2rem;
	}

	.elementor-location-single .psai-tb-service-sidebar {
		flex: 0 0 min(280px, 30%);
		max-width: 320px;
		width: auto;
		position: sticky;
		top: 5.5rem;
		align-self: flex-start;
	}

	.elementor-location-single .psai-tb-service-article {
		flex: 1 1 0;
		width: auto;
	}
}

/* Contenuto lungo da WordPress: tipografia e spaziatura coerenti col brand */
.elementor-location-single .psai-svc-tb-content .elementor-widget-container,
.elementor-location-single .psai-servizi-hub-content .elementor-widget-container,
.elementor-location-single .psai-portfolio-hub-content .elementor-widget-container {
	max-width: none;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap,
.elementor-location-single .psai-servizi-hub-content .psai-wrap,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap {
	max-width: 100%;
}

.elementor-location-single .psai-svc-tb-content .psai-service-subtitle,
.elementor-location-single .psai-servizi-hub-content .psai-service-subtitle,
.elementor-location-single .psai-portfolio-hub-content .psai-service-subtitle {
	margin: 0 0 0.75rem;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--psai-text, #e8eaef);
}

/*
 * Blocchi .psai-wrap.psai-section nel post content del TB (schede servizio): “card” compatte.
 * La pagina hub Servizi usa regole dedicate più sotto (lettura lunga, senza barra ::before).
 */
.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section {
	box-sizing: border-box;
	padding: clamp(1.25rem, 2.8vw, 1.75rem) clamp(1.1rem, 2.5vw, 1.5rem);
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: var(--psai-radius, 12px);
	border: 1px solid var(--psai-border-subtle, rgba(255, 255, 255, 0.08));
	background: var(--psai-surface, #14101f);
	box-shadow: var(--psai-card-shadow, 0 8px 32px rgba(0, 0, 0, 0.35));
	position: relative;
	overflow: hidden;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section:last-child {
	margin-bottom: 0;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	border-radius: var(--psai-radius, 12px) var(--psai-radius, 12px) 0 0;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--psai-brand, #954392) 72%, transparent),
		color-mix(in srgb, var(--psai-primary, #5b9fff) 68%, transparent)
	);
	opacity: 0.9;
	pointer-events: none;
}

/* Fascia surface + wrap interno: stesso trattamento compatto (import HTML case/servizi) */
.elementor-location-single .psai-svc-tb-content .psai-section.psai-section--surface {
	padding: 0;
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
	background: transparent;
	border: none;
}

.elementor-location-single .psai-svc-tb-content .psai-section.psai-section--surface:last-child {
	margin-bottom: 0;
}

.elementor-location-single .psai-svc-tb-content .psai-section--surface .psai-wrap {
	margin-bottom: 0;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section .psai-badge,
.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section .psai-badge,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section .psai-badge {
	background: color-mix(in srgb, var(--psai-primary, #5b9fff) 20%, transparent);
	color: color-mix(in srgb, var(--psai-text, #e8eaef) 94%, transparent);
	border: 1px solid color-mix(in srgb, var(--psai-primary, #5b9fff) 38%, transparent);
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section > h2:first-of-type {
	margin-top: 0;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section h2:not(:first-of-type) {
	margin-top: 1.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--psai-border-subtle, rgba(255, 255, 255, 0.08));
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section h2 {
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
	line-height: 1.28;
	letter-spacing: 0.01em;
	color: var(--psai-secondary, #c9a8d4);
	margin-bottom: 0.65rem;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section .psai-service-subtitle,
.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section .psai-service-subtitle,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section .psai-service-subtitle {
	color: var(--psai-text, #e8eaef);
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section p {
	max-width: 65ch;
	font-size: 1.02rem;
	line-height: 1.68;
	margin: 0 0 0.85rem;
	color: color-mix(in srgb, var(--psai-text, #e8eaef) 93%, transparent);
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section p:last-child {
	margin-bottom: 0;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section p.psai-lead {
	font-size: 1.08rem;
	line-height: 1.62;
	max-width: 58ch;
	color: color-mix(in srgb, var(--psai-text, #e8eaef) 88%, transparent);
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section code {
	font-size: 0.86em;
	padding: 0.14em 0.42em;
	border-radius: 6px;
	background: color-mix(in srgb, var(--psai-primary, #5b9fff) 16%, var(--psai-surface-raised, #1c1528));
	border: 1px solid color-mix(in srgb, var(--psai-primary, #5b9fff) 32%, transparent);
	font-variant-ligatures: none;
}

.elementor-location-single .psai-svc-tb-content .psai-pillars,
.elementor-location-single .psai-servizi-hub-content .psai-pillars,
.elementor-location-single .psai-portfolio-hub-content .psai-pillars {
	gap: 0.55rem;
	margin: 0.35rem 0 0.5rem;
}

.elementor-location-single .psai-svc-tb-content .psai-pillars li,
.elementor-location-single .psai-servizi-hub-content .psai-pillars li,
.elementor-location-single .psai-portfolio-hub-content .psai-pillars li {
	padding: 0.6rem 0.85rem 0.6rem 1.85rem;
	background: var(--psai-surface-raised, #1c1528);
	border-radius: 8px;
	border: 1px solid var(--psai-border-subtle, rgba(255, 255, 255, 0.08));
	line-height: 1.55;
	color: color-mix(in srgb, var(--psai-text, #e8eaef) 94%, transparent);
}

.elementor-location-single .psai-svc-tb-content .psai-pillars li::before,
.elementor-location-single .psai-servizi-hub-content .psai-pillars li::before,
.elementor-location-single .psai-portfolio-hub-content .psai-pillars li::before {
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 7px;
	height: 7px;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--psai-primary, #5b9fff) 35%, transparent);
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section > ul:not(.psai-pillars),
.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section > ul:not(.psai-pillars),
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section > ul:not(.psai-pillars) {
	margin: 0.35rem 0 1rem;
	padding-left: 1.2rem;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section > ul:not(.psai-pillars) li,
.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section > ul:not(.psai-pillars) li,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section > ul:not(.psai-pillars) li {
	margin-bottom: 0.45rem;
	line-height: 1.55;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section > ul:not(.psai-pillars) a,
.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section > ul:not(.psai-pillars) a,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section > ul:not(.psai-pillars) a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--psai-primary, #5b9fff) 50%, transparent);
	text-underline-offset: 0.15em;
}

.elementor-location-single .psai-svc-tb-content .psai-wrap.psai-section > ul:not(.psai-pillars) a:hover,
.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section > ul:not(.psai-pillars) a:hover,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section > ul:not(.psai-pillars) a:hover {
	color: var(--psai-primary, #5b9fff);
}

.elementor-location-single .psai-svc-tb-content .psai-cta-row,
.elementor-location-single .psai-servizi-hub-content .psai-cta-row,
.elementor-location-single .psai-portfolio-hub-content .psai-cta-row {
	margin-top: 0.25rem;
}

/* Progress lettura: in sidebar sticky, colori coerenti con brand-tokens */
.elementor-location-single .psai-tb-service-sidebar .elementor-widget-progress-tracker.psai-tb-service-read-progress {
	width: 100% !important;
	--container-widget-width: 100%;
	margin-bottom: 0;
}

.elementor-location-single .psai-tb-service-sidebar .psai-tb-service-read-progress .elementor-scrolling-tracker-horizontal {
	--scrolling-track-default-color: color-mix(in srgb, var(--psai-text, #e8eaef) 12%, transparent);
	--scrolling-track-default-progress-color: var(--psai-primary, #5b9fff);
	height: 6px;
	border: none;
	border-radius: 999px;
	padding: 0;
	overflow: hidden;
}

.elementor-location-single .psai-tb-service-sidebar .psai-tb-service-read-progress .current-progress {
	border: none !important;
	border-radius: 999px;
}

/**
 * TOC (scheda servizio): bullet a dimensione fissa — Elementor usa marker-size in em sul wrapper,
 * quindi con titoli lunghi / annidamenti i cerchi sembrano di misure diverse.
 * Gerarchia: H2 (top-level) più evidente; H3 annidati più compatti e indentati.
 */
.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents {
	--marker-size: 8px;
	--nested-list-indent: 0.85rem;
}

.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents .elementor-toc__list-item {
	margin-bottom: 0.45em;
}

.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents .elementor-toc__list-item-text-wrapper {
	align-items: flex-start;
}

.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents .elementor-toc__list-item-text-wrapper > svg {
	width: 8px !important;
	height: 8px !important;
	min-width: 8px;
	min-height: 8px;
	margin-inline-end: 8px;
	margin-top: 0.28em;
	flex-shrink: 0;
}

.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents .elementor-toc__list-item-text-wrapper > i {
	font-size: 8px !important;
	line-height: 1;
	margin-inline-end: 8px !important;
	margin-top: 0.42em;
	flex-shrink: 0;
	display: block;
}

.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents .elementor-toc__list-item-text {
	line-height: 1.4;
}

.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents a.elementor-toc__list-item-text.elementor-toc__top-level {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents .elementor-toc__list-wrapper .elementor-toc__list-wrapper a.elementor-toc__list-item-text {
	font-size: 0.8125rem;
	font-weight: 400;
	color: color-mix(in srgb, var(--e-global-color-text, var(--psai-text, #e8eaef)) 88%, transparent);
}

.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents .elementor-toc__list-wrapper .elementor-toc__list-wrapper a.elementor-toc__list-item-text:hover,
.elementor-location-single .psai-tb-service-sidebar .elementor-widget-table-of-contents .elementor-toc__list-wrapper .elementor-toc__list-wrapper a.elementor-toc__list-item-text.elementor-item-active {
	color: var(--e-global-color-primary, var(--psai-primary, #5b9fff));
}

/* --------------------------------------------------------------------------
 * Hub Servizi / Portfolio: lungo testo in un solo blocco — niente card + barra ::before
 * (evita collisione visiva con l’H3 introduttivo del template).
 * -------------------------------------------------------------------------- */
.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section {
	box-sizing: border-box;
	position: relative;
	overflow: visible;
	margin: 0;
	padding: clamp(1.5rem, 3.2vw, 2.25rem) clamp(1.2rem, 2.8vw, 1.85rem);
	border-radius: 14px;
	border: 1px solid var(--psai-border-subtle, rgba(255, 255, 255, 0.1));
	background: color-mix(in srgb, var(--psai-surface, #14101f) 92%, var(--psai-surface-raised, #1c1528));
	box-shadow: none;
}

.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section::before,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section::before {
	display: none;
	content: none;
}

.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section > h2:first-of-type,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section > h2:first-of-type {
	margin-top: 0;
}

.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section h2:not(:first-of-type),
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section h2:not(:first-of-type) {
	margin-top: 1.75rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--psai-border-subtle, rgba(255, 255, 255, 0.07));
}

.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section h2,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section h2 {
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(1.2rem, 2.4vw, 1.42rem);
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: color-mix(in srgb, var(--psai-secondary, #c9a8d4) 95%, var(--psai-text, #e8eaef));
	margin-bottom: 0.7rem;
}

.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section p,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section p {
	max-width: 68ch;
	font-size: 1.045rem;
	line-height: 1.74;
	margin: 0 0 1rem;
	color: color-mix(in srgb, var(--psai-text, #e8eaef) 94%, transparent);
}

.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section p:last-child,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section p:last-child {
	margin-bottom: 0;
}

.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section p.psai-lead,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section p.psai-lead {
	font-size: 1.09rem;
	line-height: 1.68;
	max-width: 62ch;
}

.elementor-location-single .psai-servizi-hub-content .psai-wrap.psai-section code,
.elementor-location-single .psai-portfolio-hub-content .psai-wrap.psai-section code {
	font-size: 0.86em;
	padding: 0.14em 0.42em;
	border-radius: 6px;
	background: color-mix(in srgb, var(--psai-primary, #5b9fff) 16%, var(--psai-surface-raised, #1c1528));
	border: 1px solid color-mix(in srgb, var(--psai-primary, #5b9fff) 32%, transparent);
	font-variant-ligatures: none;
}

/* CTA nel contenuto: stessi bottoni del tema, ma respiro e wrap su mobile */
.elementor-location-single .psai-portfolio-hub-content .psai-cta-row .psai-btn,
.elementor-location-single .psai-servizi-hub-content .psai-cta-row .psai-btn {
	margin: 0.25rem 0.5rem 0.25rem 0;
}
