/**
 * Singolo articolo (blog) — layout editoriale, leggibile, coerente con About/Contatti.
 */

.psh-main--single-post,
.psh-main--single-service {
	display: block;
}

.psh-single-post {
	margin: 0;
	padding: 0;
}

.psh-single-post__media {
	margin: 0;
	max-height: min(52vh, 420px);
	overflow: hidden;
	background: color-mix(in srgb, var(--psh-text-color, #111) 6%, var(--psh-background-color, #fff));
}

.psh-single-post__image {
	display: block;
	width: 100%;
	height: min(52vh, 420px);
	object-fit: cover;
}

.psh-single-post__masthead {
	padding: clamp(2rem, 5vw, 3rem) 0;
	text-align: center;
	background: linear-gradient(
		180deg,
		var(--psh-surface-muted, color-mix(in srgb, var(--psh-secondary-color, #f5f5f5) 55%, var(--psh-background-color, #fff))) 0%,
		var(--psh-background-color, #fff) 100%
	);
	border-bottom: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
}

.psh-single-post__masthead-inner {
	max-width: 48rem;
	margin-inline: auto;
}

.psh-single-post__terms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.5rem;
	margin: 0 0 0.65rem;
	padding: 0;
	list-style: none;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.psh-single-post__terms-sep {
	opacity: 0.45;
	user-select: none;
}

a.psh-single-post__term {
	color: var(--psh-primary-color, #111);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--psh-primary-color, #111) 30%, transparent);
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

a.psh-single-post__term:hover,
a.psh-single-post__term:focus-visible {
	border-bottom-color: var(--psh-primary-color, #111);
	opacity: 0.92;
}

.psh-single-post__title {
	margin: 0;
	font-size: clamp(1.45rem, 3.4vw, 2rem);
	line-height: 1.14;
	letter-spacing: -0.025em;
	font-weight: 700;
}

.psh-single-post__meta {
	margin: 1rem 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	font-size: 0.9rem;
	color: color-mix(in srgb, var(--psh-text-color, #222) 62%, transparent);
}

.psh-single-post__date {
	font-variant-numeric: tabular-nums;
}

.psh-single-post__body {
	padding-top: clamp(1.75rem, 4vw, 2.75rem);
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.psh-single-post__content {
	max-width: 42rem;
	margin-inline: auto;
	font-size: 1.05rem;
	line-height: 1.72;
}

/* Video / galleria sotto il testo (servizi e affini) */
.psh-single-post__extras {
	max-width: 42rem;
	margin-inline: auto;
	margin-top: clamp(2rem, 4vw, 2.75rem);
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 9%, transparent);
}

.psh-single-post__extras .psh-visual-gallery {
	margin-top: 0;
}

.psh-single-post__extras .psh-work-video + .psh-visual-gallery {
	margin-top: 2rem;
}

/* Singolo servizio — dopo il testo: box richiesta info + elenco altri servizi */
.psh-single-service-info-box {
	margin-top: clamp(1.75rem, 4vw, 2.75rem);
	max-width: 42rem;
	margin-inline: auto;
}

.psh-single-service-others {
	margin-top: clamp(1.75rem, 4vw, 2.75rem);
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 9%, transparent);
	max-width: 42rem;
	margin-inline: auto;
}

.psh-single-service-others__title {
	margin-bottom: 1rem;
}

.psh-single-service-others__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.45rem;
}

@media (min-width: 520px) {
	.psh-single-service-others__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem 1.25rem;
	}
}

.psh-single-service-others__link {
	display: block;
	padding: 0.45rem 0;
	font-weight: 600;
	text-decoration: none;
	color: var(--psh-primary-color, #111);
	border-bottom: 1px solid color-mix(in srgb, var(--psh-primary-color, #111) 22%, transparent);
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.psh-single-service-others__link:hover,
.psh-single-service-others__link:focus-visible {
	border-bottom-color: var(--psh-primary-color, #111);
	opacity: 0.92;
}

.psh-single-service-others__all {
	margin: 1.35rem 0 0;
	text-align: center;
}

.psh-single-service-others__all-link {
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	color: color-mix(in srgb, var(--psh-text-color, #222) 72%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 28%, transparent);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.psh-single-service-others__all-link:hover,
.psh-single-service-others__all-link:focus-visible {
	color: var(--psh-primary-color, #111);
	border-bottom-color: color-mix(in srgb, var(--psh-primary-color, #111) 40%, transparent);
}

.psh-single-post__page-links {
	margin: 2rem 0 0;
	padding: 1rem 1.15rem;
	border-radius: 6px;
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 10%, transparent);
	background: color-mix(in srgb, var(--psh-text-color, #222) 3.5%, var(--psh-background-color, #fff));
	font-size: 0.92rem;
}

.psh-single-post__page-links-label {
	font-weight: 600;
	margin-right: 0.5rem;
	color: color-mix(in srgb, var(--psh-text-color, #222) 78%, transparent);
}

.psh-single-post__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 0.65rem;
	max-width: 42rem;
	margin: clamp(2rem, 4vw, 2.75rem) auto 0;
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 9%, transparent);
}

.psh-single-post__tags-label {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--psh-text-color, #222) 48%, transparent);
	margin-right: 0.25rem;
}

a.psh-single-post__tag {
	display: inline-block;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	color: color-mix(in srgb, var(--psh-text-color, #222) 88%, transparent);
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 14%, transparent);
	background: color-mix(in srgb, var(--psh-text-color, #222) 3%, var(--psh-background-color, #fff));
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

a.psh-single-post__tag:hover,
a.psh-single-post__tag:focus-visible {
	color: var(--psh-primary-color, #111);
	border-color: color-mix(in srgb, var(--psh-primary-color, #111) 35%, transparent);
	background: color-mix(in srgb, var(--psh-primary-color, #111) 6%, var(--psh-background-color, #fff));
}

.psh-single-post__pager {
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.psh-single-post .post-navigation {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin: 0;
	border: none;
	padding: 0;
}

@media (min-width: 640px) {
	.psh-single-post .post-navigation {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.psh-single-post .post-navigation .nav-previous {
		grid-column: 1;
	}

	.psh-single-post .post-navigation .nav-next {
		grid-column: 2;
		text-align: right;
	}
}

.psh-single-post .post-navigation .nav-previous a,
.psh-single-post .post-navigation .nav-next a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1rem 1.15rem;
	min-height: 100%;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 10%, transparent);
	background: color-mix(in srgb, var(--psh-text-color, #222) 2.5%, var(--psh-background-color, #fff));
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.psh-single-post .post-navigation .nav-next a {
	align-items: flex-end;
	text-align: right;
}

.psh-single-post .post-navigation a:hover,
.psh-single-post .post-navigation a:focus-visible {
	border-color: color-mix(in srgb, var(--psh-primary-color, #111) 28%, transparent);
	box-shadow: 0 8px 28px color-mix(in srgb, var(--psh-text-color, #111) 8%, transparent);
	transform: translateY(-1px);
}

.psh-single-post__nav-kicker {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--psh-text-color, #222) 48%, transparent);
}

.psh-single-post__nav-label {
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.35;
	color: color-mix(in srgb, var(--psh-text-color, #222) 92%, transparent);
}

/* Dark scheme */
.psh-scheme-dark .psh-single-post__masthead {
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--psh-secondary-color, #1a1a1a) 80%, #000) 0%,
		var(--psh-background-color, #0f0f0f) 100%
	);
	border-bottom-color: color-mix(in srgb, var(--psh-text-color, #fff) 10%, transparent);
}

.psh-scheme-dark .psh-single-post__media {
	background: color-mix(in srgb, var(--psh-text-color, #fff) 6%, var(--psh-background-color, #111));
}

.psh-scheme-dark .psh-single-post__page-links,
.psh-scheme-dark .psh-single-post .post-navigation .nav-previous a,
.psh-scheme-dark .psh-single-post .post-navigation .nav-next a {
	border-color: color-mix(in srgb, var(--psh-text-color, #fff) 12%, transparent);
	background: color-mix(in srgb, var(--psh-text-color, #fff) 5%, var(--psh-background-color, #111));
}

.psh-scheme-dark .psh-single-post__extras {
	border-top-color: color-mix(in srgb, var(--psh-text-color, #fff) 10%, transparent);
}

.psh-scheme-dark .psh-single-service-others {
	border-top-color: color-mix(in srgb, var(--psh-text-color, #fff) 10%, transparent);
}

.psh-scheme-dark .psh-single-service-others__link {
	color: color-mix(in srgb, var(--psh-text-color, #fff) 94%, transparent);
	border-bottom-color: color-mix(in srgb, var(--psh-text-color, #fff) 22%, transparent);
}

.psh-scheme-dark .psh-single-service-others__all-link {
	color: color-mix(in srgb, var(--psh-text-color, #fff) 72%, transparent);
	border-bottom-color: color-mix(in srgb, var(--psh-text-color, #fff) 26%, transparent);
}

.psh-scheme-dark a.psh-single-post__tag {
	border-color: color-mix(in srgb, var(--psh-text-color, #fff) 14%, transparent);
	background: color-mix(in srgb, var(--psh-text-color, #fff) 4%, var(--psh-background-color, #111));
	color: color-mix(in srgb, var(--psh-text-color, #fff) 88%, transparent);
}
