/**
 * PSH Professional Theme — base layout (variables via styles-manager.php).
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--psh-text-color, #222);
	background: var(--psh-background-color, #fff);
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a {
	color: var(--psh-primary-color, #111);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.psh-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.psh-section { padding-top: 3rem; padding-bottom: 3rem; }
.psh-main { min-height: 40vh; }

/**
 * Home — blocchi modulari (wrapper da theme-options / JSON home_sections).
 * Senza queste regole le classi --p-* non creano spazio fra le sezioni.
 */
.psh-home {
	display: flex;
	flex-direction: column;
}

.psh-home-block--p-none {
	padding-top: 0;
	padding-bottom: 0;
}

.psh-home-block--p-sm {
	padding-top: clamp(1.25rem, 3vw, 2rem);
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.psh-home-block--p-md {
	padding-top: clamp(2rem, 5vw, 3.75rem);
	padding-bottom: clamp(2rem, 5vw, 3.75rem);
}

.psh-home-block--p-lg {
	padding-top: clamp(2.75rem, 6vw, 5rem);
	padding-bottom: clamp(2.75rem, 6vw, 5rem);
}

.psh-home-block--p-xl {
	padding-top: clamp(3.5rem, 8vw, 6.5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

/* Larghezza: il contenuto usa già .psh-container; qui solo varianti di max-width */
.psh-home-block--w-contained .psh-container {
	max-width: 1200px;
}

.psh-home-block--w-full .psh-container {
	max-width: none;
}

/* Schema di sfondo per separare visivamente le bande */
.psh-home-block--s-default {
	background: transparent;
}

.psh-home-block--s-muted {
	background: var(--psh-secondary-color, #f5f5f5);
}

.psh-home-block--s-primary {
	background: rgba(0, 0, 0, 0.04);
}

.psh-scheme-dark .psh-home-block--s-primary {
	background: rgba(255, 255, 255, 0.05);
}

.psh-home-block--s-contrast {
	background: var(--psh-primary-color, #111);
	color: var(--psh-background-color, #fff);
}

.psh-home-block--s-contrast a {
	color: inherit;
}

.psh-page-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.psh-site-header {
	position: relative;
	z-index: 50;
	background: var(--psh-background-color, #fff);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.psh-header-sticky .psh-site-header {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 50;
}

body.admin-bar.psh-header-sticky .psh-site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.psh-header-sticky .psh-site-header {
		top: 46px;
	}
}

/* Home con hero trasparente: header in overlay, niente riserva su #page */
body.psh-header-sticky.psh-header-transparent-hero.psh-page-home .psh-site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

body.psh-header-sticky.psh-header-transparent-hero.psh-page-home #page.psh-page-wrapper {
	padding-top: 0;
}

body.psh-header-sticky #page.psh-page-wrapper {
	padding-top: var(--psh-header-offset, 5rem);
}

html {
	scroll-padding-top: var(--psh-header-offset, 0px);
}

.psh-site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.psh-custom-logo-link img,
.psh-logo-img { max-height: 48px; width: auto; }

.psh-site-title {
	font-weight: 700;
	font-size: 1.25rem;
	text-decoration: none;
	color: inherit;
}

.psh-nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.5rem;
}

.psh-nav-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	margin: 5px 0;
}

.psh-primary-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.psh-header-social {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.psh-header-social .psh-social-icons {
	justify-content: flex-start;
	gap: 0.35rem;
	margin: 0;
}

.psh-header-social .psh-social-icons__link {
	width: 2.35rem;
	height: 2.35rem;
}

@media (min-width: 641px) {
	.psh-primary-nav {
		flex: 1;
		justify-content: flex-end;
	}

	.psh-header-social {
		margin-left: 0.5rem;
	}
}

.psh-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.psh-menu a { text-decoration: none; font-weight: 500; }

/* Menu — voce CTA App (leggermente in evidenza) */
.psh-menu .psh-menu-item--app-cta > a,
.psh-menu .psh-menu__link--app-cta {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	color: var(--psh-primary-color, var(--psh-text-color, #222));
	background: color-mix(in srgb, var(--psh-button-color, #f38118) 14%, var(--psh-background-color, #fff));
	border: 1px solid color-mix(in srgb, var(--psh-button-color, #f38118) 42%, transparent);
	box-shadow: 0 1px 0 color-mix(in srgb, var(--psh-button-color, #f38118) 18%, transparent);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.psh-menu .psh-menu-item--app-cta > a:hover,
.psh-menu .psh-menu__link--app-cta:hover {
	background: color-mix(in srgb, var(--psh-button-color, #f38118) 22%, var(--psh-background-color, #fff));
	border-color: color-mix(in srgb, var(--psh-button-color, #f38118) 58%, transparent);
	color: var(--psh-primary-color, var(--psh-text-color, #222));
}

@media (min-width: 641px) {
	.psh-menu .psh-menu-item--app-cta {
		margin-left: 0.15rem;
	}
}

.psh-btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	background: var(--psh-button-color, #111);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.psh-btn:hover {
	background: var(--psh-button-hover-color, #333);
	color: #fff;
}

.psh-btn--ghost {
	background: transparent;
	color: inherit;
	border: 2px solid currentColor;
}

.psh-site-footer {
	margin-top: auto;
}

.psh-social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.psh-social-list a { text-decoration: none; }

.psh-hero {
	position: relative;
	display: flex;
	align-items: center;
	padding: 4rem 0;
	overflow: hidden;
}

.psh-hero:not(.psh-hero--fullscreen) {
	min-height: calc(var(--psh-hero-min-vh-mobile, 70) * 1vh);
}

@media (min-width: 768px) {
	.psh-hero:not(.psh-hero--fullscreen) {
		min-height: calc(var(--psh-hero-min-vh-desktop, 85) * 1vh);
	}
}

.psh-hero--fullscreen { min-height: 100vh; }

.psh-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.psh-hero__video-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.psh-hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.psh-hero__video-wrap--youtube {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

/*
 * Crop cover (come object-fit: cover): iframe 16:9 più grande del box,
 * centrata; scale leggero per tagliare barre/UI ai bordi del player.
 */
.psh-hero__youtube-iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.78vh;
	min-height: 100vh;
	max-width: none;
	border: 0;
	outline: none;
	box-shadow: none;
	transform: translate(-50%, -50%) scale(1.12);
	transform-origin: center center;
}

.psh-hero__inner { position: relative; z-index: 1; }

.psh-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	margin: 0 0 0.5rem;
	line-height: 1.1;
}

.psh-hero__subtitle {
	font-size: 1.25rem;
	opacity: 0.9;
	margin: 0 0 1rem;
}

.psh-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

.psh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

@media (min-width: 900px) {
	.psh-grid:not(.psh-grid--masonry):not(.psh-grid--carousel):not(.psh-grid--archive-stack) {
		grid-template-columns: repeat(var(--psh-grid-columns, 3), minmax(0, 1fr));
	}
}

.psh-grid--masonry {
	column-count: var(--psh-grid-columns, 3);
	column-gap: 1.25rem;
	display: block;
}

.psh-grid--masonry .psh-card {
	break-inside: avoid;
	margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
	.psh-grid--masonry {
		column-count: min(2, var(--psh-grid-columns, 3));
	}
}

@media (max-width: 520px) {
	.psh-grid--masonry {
		column-count: 1;
	}
}

.psh-grid--carousel {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 1rem;
	padding-bottom: 0.5rem;
}

.psh-grid--carousel .psh-card {
	flex: 0 0 min(320px, 85vw);
	scroll-snap-align: start;
}

/* Archivi «vedi tutto»: elenco verticale (no carosello) */
.psh-grid--archive-stack {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: stretch;
}

.psh-grid--archive-stack .psh-card {
	width: 100%;
	max-width: none;
	flex: none;
}

.psh-card {
	border-radius: 6px;
	overflow: hidden;
	background: var(--psh-secondary-color, #f5f5f5);
}

.psh-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.psh-card__img {
	width: 100%;
	aspect-ratio: 4/5;
	object-fit: cover;
	display: block;
}

.psh-card__placeholder {
	aspect-ratio: 4/5;
	background: rgba(0, 0, 0, 0.06);
}

.psh-card__body { padding: 1rem; }

/* Archive / home — video & audio «fast» cards: player nel box, titolo con link (no card-link wrap) */
.psh-card--fast {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.psh-card--fast .psh-card__media--embed {
	background: #0a0a0a;
	min-height: 0;
}

.psh-card--fast .psh-card__media--embed .psh-embed-responsive {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
}

.psh-card--fast .psh-card__media--embed .psh-local-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.psh-card--fast .psh-card__media--embed .psh-local-video video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.psh-card--fast .psh-card__media--audio {
	padding: 1rem 1rem 0;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.psh-card--fast .psh-card__media--audio .psh-audio-native {
	width: 100%;
	min-width: 0;
}

.psh-card--fast .psh-card__media--audio .psh-audio-external {
	margin: 0;
	text-align: center;
}

.psh-card--fast .psh-card__title {
	margin: 0;
}

.psh-card--fast .psh-card__title a {
	text-decoration: none;
	color: inherit;
}

.psh-card--fast .psh-card__title a:hover {
	text-decoration: underline;
}

.psh-card__title {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
}

.psh-section-title {
	font-size: clamp(1.625rem, 3.2vw, 2.25rem);
	margin: 0 0 1.5rem;
}

/* Home — sezioni «in evidenza» (carousel mobile, griglia desktop) */
.psh-featured-work {
	padding-top: 0.125rem;
}

.psh-featured-work .psh-section-head {
	margin-bottom: 1.25rem;
}

.psh-featured-work .psh-section-head .psh-section-title {
	margin-bottom: 0;
}

.psh-featured-work__archive-desktop {
	display: none;
}

@media (min-width: 768px) {
	.psh-featured-work__archive-desktop {
		display: inline;
	}
}

.psh-featured-work__archive-mobile {
	display: block;
	margin: 1.15rem 0 0;
	text-align: center;
}

.psh-featured-work__see-all {
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: color-mix(in srgb, var(--psh-text-color, #222) 65%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--psh-primary-color, #111) 30%, transparent);
	padding-bottom: 0.1rem;
}

.psh-featured-work__see-all:hover {
	color: var(--psh-primary-color, #111);
}

@media (min-width: 768px) {
	.psh-featured-work__archive-mobile {
		display: none;
	}
}

.psh-featured-carousel {
	position: relative;
	--psh-feat-fade: var(--psh-background-color, #fff);
}

.psh-featured-carousel__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right));
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 0.25rem 0 0.5rem;
	margin: 0 -0.25rem;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

@media (min-width: 768px) {
	.psh-featured-carousel__track {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
		gap: clamp(1rem, 2vw, 1.5rem);
		overflow: visible;
		scroll-snap-type: none;
		margin: 0;
		padding: 0;
	}
}

@media (max-width: 767px) {
	.psh-featured-carousel::before,
	.psh-featured-carousel::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 2.5rem;
		width: 1.5rem;
		z-index: 1;
		pointer-events: none;
	}
	.psh-featured-carousel::before {
		left: 0;
		background: linear-gradient(90deg, var(--psh-feat-fade) 0%, transparent 100%);
	}
	.psh-featured-carousel::after {
		right: 0;
		background: linear-gradient(270deg, var(--psh-feat-fade) 0%, transparent 100%);
	}
}

.psh-featured-slide {
	flex: 0 0 min(86vw, 22rem);
	scroll-snap-align: center;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: color-mix(in srgb, var(--psh-secondary-color, #f5f5f5) 50%, var(--psh-background-color, #fff));
	border-radius: 16px;
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
	overflow: hidden;
}

@media (min-width: 768px) {
	.psh-featured-slide {
		flex: none;
		scroll-snap-align: unset;
	}
}

.psh-featured-slide__media {
	position: relative;
	width: 100%;
	min-height: 10rem;
	background: color-mix(in srgb, var(--psh-text-color, #111) 4%, transparent);
}

.psh-featured-slide__media .psh-featured-slide__figure {
	margin: 0;
	line-height: 0;
}

.psh-featured-slide__img {
	width: 100%;
	height: auto;
	max-height: min(52vh, 420px);
	object-fit: cover;
	display: block;
	aspect-ratio: 4 / 3;
}

.psh-featured-slide__embed {
	width: 100%;
	height: 100%;
	min-height: 11rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.psh-featured-slide__embed .psh-embed-responsive {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 0;
}

.psh-featured-slide__embed .psh-embed-responsive iframe,
.psh-featured-slide__embed .psh-embed-responsive > * {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
}

.psh-featured-slide__embed .psh-local-video video {
	width: 100%;
	max-height: min(52vh, 420px);
	border-radius: 0;
	background: #000;
}

.psh-featured-slide__audio {
	padding: 1rem 1rem 0.25rem;
	width: 100%;
	box-sizing: border-box;
}

.psh-featured-slide__audio .psh-audio-native {
	width: 100%;
	min-height: 2.5rem;
}

.psh-featured-slide__audio .psh-embed-responsive {
	padding-bottom: 120px;
	min-height: 120px;
}

.psh-featured-slide__placeholder {
	min-height: 12rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, color-mix(in srgb, var(--psh-primary-color, #111) 15%, transparent), color-mix(in srgb, var(--psh-secondary-color, #f5f5f5) 80%, transparent));
}

.psh-featured-slide__ph-icon {
	display: block;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 2px solid color-mix(in srgb, var(--psh-text-color, #222) 25%, transparent);
	opacity: 0.35;
}

.psh-featured-slide__footer {
	padding: 0.85rem 1rem 1rem;
	flex-grow: 1;
	display: flex;
	align-items: flex-end;
}

.psh-featured-slide__title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.35;
	font-weight: 600;
}

.psh-featured-slide__title a {
	text-decoration: none;
	color: inherit;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.psh-featured-slide__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.psh-featured-carousel__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.85rem;
	min-height: 1.25rem;
}

@media (min-width: 768px) {
	.psh-featured-carousel__dots {
		display: none !important;
	}
}

.psh-featured-carousel__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--psh-text-color, #222) 28%, transparent);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.psh-featured-carousel__dot.is-active {
	background: var(--psh-primary-color, #111);
	transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
	.psh-featured-carousel__track {
		scroll-behavior: auto;
	}

	.psh-featured-carousel__dot {
		transition: none;
	}
}

.psh-scheme-dark .psh-featured-slide {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	border-color: color-mix(in srgb, var(--psh-text-color, #fff) 12%, transparent);
}

.psh-scheme-dark .psh-featured-carousel {
	--psh-feat-fade: var(--psh-background-color, #111);
}

/* Home — Intro / Chi siamo: testo + immagine affiancati (desktop), colonna su mobile */
.psh-about-preview__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.psh-about-preview__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}

.psh-about-preview__content .psh-section-title {
	margin-bottom: 0;
}

.psh-about-preview__text > *:first-child {
	margin-top: 0;
}

.psh-about-preview__text > *:last-child {
	margin-bottom: 0;
}

.psh-about-preview__aside {
	min-width: 0;
}

.psh-about-preview__figure {
	margin: 0;
}

.psh-about-preview__figure img {
	width: 100%;
	max-width: 560px;
	height: auto;
	display: block;
	border-radius: 4px;
	object-fit: cover;
}

/* About intro — gallery slider */
.psh-about-gallery {
	position: relative;
	--psh-about-gallery-aspect: 1 / 1;
	--psh-about-fade: var(--psh-background-color, #fff);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.psh-about-gallery--1_1 {
	--psh-about-gallery-aspect: 1 / 1;
}

.psh-about-gallery--4_5 {
	--psh-about-gallery-aspect: 4 / 5;
}

.psh-about-gallery--5_4 {
	--psh-about-gallery-aspect: 5 / 4;
}

.psh-about-gallery__viewport {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 10%, transparent);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.psh-about-gallery__track {
	display: flex;
	gap: 0.85rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(0.5rem, env(safe-area-inset-left)) max(0.5rem, env(safe-area-inset-right));
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 0.2rem 0 0.35rem;
}

.psh-about-gallery__slide {
	flex: 0 0 min(88vw, 420px);
	max-width: min(88vw, 520px);
	scroll-snap-align: center;
	min-width: 0;
}

@media (min-width: 721px) {
	.psh-about-gallery__slide {
		flex: 0 0 calc(100% - 0.5rem);
		max-width: 100%;
	}
}

.psh-about-gallery__frame {
	position: relative;
	width: 100%;
	aspect-ratio: var(--psh-about-gallery-aspect);
	overflow: hidden;
	border-radius: 10px;
	background: color-mix(in srgb, var(--psh-text-color, #111) 6%, transparent);
}

.psh-about-gallery__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.psh-about-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--psh-background-color, #fff);
	background: color-mix(in srgb, var(--psh-text-color, #111) 72%, transparent);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
	transition: background 0.2s ease, transform 0.2s ease;
}

.psh-about-gallery__nav:hover,
.psh-about-gallery__nav:focus-visible {
	background: var(--psh-primary-color, #111);
	outline: none;
}

.psh-about-gallery__nav:focus-visible {
	box-shadow: 0 0 0 2px var(--psh-background-color, #fff), 0 0 0 4px var(--psh-primary-color, #111);
}

.psh-about-gallery__nav--prev {
	left: 0.4rem;
}

.psh-about-gallery__nav--next {
	right: 0.4rem;
}

.psh-about-gallery__nav[hidden] {
	display: none !important;
}

.psh-about-gallery__dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.75rem;
	min-height: 1.1rem;
}

.psh-about-gallery__dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--psh-text-color, #222) 28%, transparent);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.psh-about-gallery__dot.is-active {
	background: var(--psh-primary-color, #111);
	transform: scale(1.35);
}

@media (max-width: 720px) {
	.psh-about-gallery::before,
	.psh-about-gallery::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 2.25rem;
		width: 1.25rem;
		z-index: 1;
		pointer-events: none;
	}
	.psh-about-gallery::before {
		left: 0;
		background: linear-gradient(90deg, var(--psh-about-fade) 0%, transparent 100%);
	}
	.psh-about-gallery::after {
		right: 0;
		background: linear-gradient(270deg, var(--psh-about-fade) 0%, transparent 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.psh-about-gallery__track {
		scroll-behavior: auto;
	}
	.psh-about-gallery__dot {
		transition: none;
	}
}

@media (min-width: 721px) {
	.psh-about-preview__grid:has(.psh-about-preview__aside) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.psh-scheme-dark .psh-about-gallery__viewport {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	border-color: color-mix(in srgb, var(--psh-text-color, #fff) 12%, transparent);
}

.psh-scheme-dark .psh-about-gallery {
	--psh-about-fade: var(--psh-background-color, #111);
}

/* Pagina About (template PSH About) — fasce a sfondo alternato */
.psh-main--about {
	--psh-about-surface-a: var(--psh-background-color, #fff);
	--psh-about-surface-b: color-mix(in srgb, var(--psh-secondary-color, #f4f6f8) 38%, var(--psh-background-color, #fff));
}

.psh-scheme-dark .psh-main--about {
	--psh-about-surface-a: var(--psh-background-color, #111);
	--psh-about-surface-b: color-mix(in srgb, var(--psh-secondary-color, #1a1a1a) 55%, var(--psh-background-color, #111) 45%);
}

.psh-page-about__band {
	padding-top: clamp(2rem, 5vw, 3.5rem);
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.psh-page-about__band--surface-a {
	background: var(--psh-about-surface-a);
}

.psh-page-about__band--surface-b {
	background: var(--psh-about-surface-b);
}

.psh-page-about__band + .psh-page-about__band {
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--psh-text-color, #222) 6%, transparent);
}

/* Hero: stesso gutter di header, breadcrumb e Contatti (.psh-container) */
.psh-main--about .psh-page-about__hero {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-top: clamp(2rem, 5vw, 3rem);
	padding-bottom: clamp(2rem, 5vw, 3rem);
	box-sizing: border-box;
}

.psh-main--about .psh-page-about__hero + .psh-page-about__blocks .psh-page-about__band:first-child {
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--psh-text-color, #222) 6%, transparent);
}

.psh-page-about__header {
	margin: 0;
}

.psh-page-about__title {
	margin: 0;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.15;
}

.psh-page-about__subtitle {
	margin: 0.65rem 0 0;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 500;
	opacity: 0.88;
	line-height: 1.4;
	color: color-mix(in srgb, var(--psh-text-color, #222) 88%, transparent);
}

.psh-page-about__header-intro {
	margin-top: clamp(1rem, 2.5vw, 1.5rem);
	max-width: 48rem;
	font-size: clamp(1.02rem, 1.8vw, 1.125rem);
	line-height: 1.65;
	color: color-mix(in srgb, var(--psh-text-color, #222) 92%, transparent);
}

.psh-page-about__header-intro > *:first-child {
	margin-top: 0;
}

.psh-page-about__header-intro > *:last-child {
	margin-bottom: 0;
}

.psh-page-about__content {
	margin: 0;
}

.psh-page-about__blocks {
	padding-bottom: 0;
}

.psh-page-about__row {
	margin: clamp(1.75rem, 4vw, 3rem) 0;
}

.psh-page-about__row--split {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: center;
}

@media (min-width: 768px) {
	.psh-page-about__row--split {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	}
}

.psh-page-about__figure {
	margin: 0;
	line-height: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
}

.psh-page-about__figure img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: top;
	object-fit: cover;
	max-height: min(70vh, 520px);
}

.psh-page-about__figure--hero img {
	max-height: min(78vh, 640px);
}

.psh-page-about__figure--secondary {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.psh-page-about__figure--secondary img {
	max-height: min(60vh, 480px);
}

.psh-page-about__intro--wide {
	max-width: 42rem;
}

.psh-page-about__story {
	max-width: 46rem;
	font-size: 1.05rem;
	line-height: 1.65;
}

/* About — fasce 2 colonne a scacchiera */
.psh-page-about__strip-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: center;
}

@media (min-width: 900px) {
	.psh-page-about__strip-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 3rem);
	}

	.psh-page-about__strip--reverse .psh-page-about__strip-media {
		order: 2;
	}

	.psh-page-about__strip--reverse .psh-page-about__strip-content {
		order: 1;
	}
}

.psh-page-about__strip-media .psh-page-about__figure {
	height: 100%;
	min-height: 220px;
}

.psh-page-about__strip-media .psh-page-about__figure img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	max-height: min(65vh, 480px);
	object-fit: cover;
}

.psh-page-about__strip-placeholder {
	min-height: 220px;
	height: 100%;
	border-radius: 12px;
	background: color-mix(in srgb, var(--psh-secondary-color, #f5f5f5) 70%, var(--psh-background-color, #fff));
	border: 1px dashed color-mix(in srgb, var(--psh-text-color, #222) 18%, transparent);
}

@media (min-width: 900px) {
	.psh-page-about__strip--no-media .psh-page-about__strip-grid {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	}
}

.psh-page-about__strip-title {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	line-height: 1.25;
}

.psh-page-about__strip-body > *:first-child {
	margin-top: 0;
}

.psh-page-about__strip-body ul {
	margin: 0.75em 0 0;
	padding-left: 1.25em;
}

.psh-page-about__strip-body li + li {
	margin-top: 0.65em;
}

.psh-page-about__cta {
	text-align: center;
}

.psh-page-about__cta .psh-container {
	max-width: 52rem;
}

.psh-page-about__cta-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.psh-page-about__cta-text {
	margin: 0 auto 1.25rem;
	max-width: 36rem;
	text-align: left;
}

.psh-page-about__cta-action {
	margin: 0;
}

.psh-page-about__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: center;
	margin: 0;
}

.psh-page-about__team {
	margin: 0;
}

.psh-page-about__team-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.psh-page-about__team .psh-section-title {
	margin-bottom: 0;
}

.psh-scheme-dark .psh-page-about__figure {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	border-color: color-mix(in srgb, var(--psh-text-color, #fff) 12%, transparent);
}

.psh-scheme-dark .psh-page-about__cta {
	background: color-mix(in srgb, var(--psh-text-color, #fff) 6%, var(--psh-background-color, #111));
	border-color: color-mix(in srgb, var(--psh-text-color, #fff) 10%, transparent);
}

.psh-section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.psh-section-link { font-weight: 600; text-decoration: none; }

/* Home — striscia loghi (CPT Loghi) */
.psh-home-logos-marquee__head {
	margin-bottom: 0.75rem;
}

.psh-home-logos-marquee__strip {
	--psh-logo-marquee-duration: 45s;
}

.psh-home-logos-marquee__viewport {
	overflow: hidden;
	width: 100%;
	margin-top: 0.25rem;
	position: relative;
}

.psh-home-logos-marquee__track {
	--psh-logo-marquee-duration: 45s;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	width: max-content;
	animation-name: psh-logo-marquee-scroll;
	animation-duration: var(--psh-logo-marquee-duration, 45s);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-fill-mode: none;
	will-change: transform;
}

.psh-home-logos-marquee__seq {
	flex: 0 0 auto;
}

.psh-home-logos-marquee__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 2.75rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.psh-home-logos-marquee__item {
	flex: 0 0 auto;
}

.psh-home-logos-marquee__link,
.psh-home-logos-marquee__nolink {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	opacity: 0.88;
	transition: opacity 0.2s ease;
}

.psh-home-logos-marquee__link:hover,
.psh-home-logos-marquee__link:focus-visible {
	opacity: 1;
}

.psh-home-logos-marquee__img {
	display: block;
	max-height: 3rem;
	width: auto;
	max-width: 9rem;
	object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
	.psh-home-logos-marquee__track {
		animation: none;
		transform: none;
	}

	.psh-home-logos-marquee__seq[aria-hidden="true"] {
		display: none;
	}

	.psh-home-logos-marquee__viewport {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}
}

@keyframes psh-logo-marquee-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

.psh-prose > *:first-child { margin-top: 0; }
.psh-prose > *:last-child { margin-bottom: 0; }

.psh-breadcrumbs {
	padding: 0.75rem 0;
	font-size: 0.875rem;
}

.psh-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.psh-embed-responsive {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
}

.psh-embed-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* YouTube: poster + play until click (no pre-play title/chrome from iframe) */
.psh-youtube-facade {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
}

.psh-youtube-facade__btn {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	display: block;
	width: 100%;
	height: 100%;
	background: transparent;
}

.psh-youtube-facade__btn:focus-visible {
	outline: 2px solid var(--psh-primary-color, #fff);
	outline-offset: -4px;
}

.psh-youtube-facade__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.psh-youtube-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4.25rem;
	height: 3rem;
	margin: 0;
	transform: translate(-50%, -50%);
	background: rgba(255, 0, 0, 0.88);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, background 0.2s ease;
}

.psh-youtube-facade__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.65rem 0 0.65rem 1.1rem;
	border-color: transparent transparent transparent #fff;
	transform: translate(-50%, -50%);
}

.psh-youtube-facade__btn:hover .psh-youtube-facade__play,
.psh-youtube-facade__btn:focus-visible .psh-youtube-facade__play {
	transform: translate(-50%, -50%) scale(1.06);
	background: #f00;
}

@media (prefers-reduced-motion: reduce) {
	.psh-youtube-facade__play {
		transition: none;
	}
}

.psh-local-video video {
	width: 100%;
	height: auto;
	display: block;
}

.psh-visual-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.75rem;
	margin-top: 2rem;
}

.psh-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

.psh-archive-header { padding: 2rem 0 1rem; }

.psh-archive-title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.psh-team-single__grid {
	display: grid;
	grid-template-columns: minmax(200px, 320px) 1fr;
	gap: 2rem;
	align-items: start;
}

.psh-team-single__header {
	margin-bottom: 1rem;
}

.psh-team-single__intro {
	font-size: 1.05rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--psh-text-color, #222) 88%, transparent);
	margin-bottom: 1.25rem;
}

.psh-team-contacts {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.psh-team-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
	color: var(--psh-text-color, #222);
	font-weight: 500;
}

.psh-team-contact-link:hover {
	text-decoration: underline;
}

.psh-team-contact__icon {
	display: inline-flex;
	color: color-mix(in srgb, var(--psh-text-color, #222) 65%, transparent);
}

.psh-team-contact__icon .psh-chat-icon,
.psh-team-contact__icon .psh-social-icons__svg {
	width: 1.15rem;
	height: 1.15rem;
}

.psh-team-single__content {
	margin-top: 0.5rem;
}

@media (max-width: 640px) {
	.psh-nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-left: auto;
		min-width: 44px;
		min-height: 44px;
		z-index: 60;
	}

	.psh-site-header__inner {
		flex-wrap: wrap;
		align-items: center;
	}

	.psh-primary-nav {
		display: none;
		flex-basis: 100%;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		order: 10;
		margin: 0;
		padding: 0.35rem 0 1.25rem;
		border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 12%, transparent);
		background: var(--psh-background-color, #fff);
	}

	body.psh-nav-open .psh-primary-nav {
		display: flex;
	}

	body.psh-nav-open .psh-nav-toggle__bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	body.psh-nav-open .psh-nav-toggle__bar:nth-child(2) {
		opacity: 0;
	}

	body.psh-nav-open .psh-nav-toggle__bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.psh-nav-toggle__bar {
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.psh-primary-nav .psh-menu {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		width: 100%;
		gap: 0;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.psh-primary-nav .psh-menu > li {
		width: 100%;
		margin: 0;
		border-bottom: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
	}

	.psh-primary-nav .psh-menu > li:last-child {
		border-bottom: none;
	}

	.psh-primary-nav .psh-menu > li.psh-menu-item--app-cta {
		margin-top: 0.65rem;
		padding-top: 0.85rem;
		border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 10%, transparent);
		border-bottom: none;
	}

	.psh-primary-nav .psh-menu a {
		display: block;
		width: 100%;
		padding: 0.9rem 0;
		font-size: 1.0625rem;
		font-weight: 600;
		line-height: 1.35;
		text-decoration: none;
		color: var(--psh-primary-color, var(--psh-text-color, #222));
	}

	.psh-primary-nav .psh-menu .psh-menu__link--app-cta {
		display: block;
		width: 100%;
		padding: 0.85rem 1.15rem;
		text-align: center;
		box-sizing: border-box;
	}

	.psh-primary-nav .psh-menu .sub-menu {
		display: flex;
		flex-direction: column;
		gap: 0;
		list-style: none;
		margin: 0;
		padding: 0 0 0.5rem 0.75rem;
		border-left: 2px solid color-mix(in srgb, var(--psh-text-color, #222) 12%, transparent);
	}

	.psh-primary-nav .psh-menu .sub-menu a {
		padding: 0.65rem 0;
		font-size: 0.975rem;
		font-weight: 500;
	}

	.psh-primary-nav .psh-header-social {
		width: 100%;
		margin-top: 0.75rem;
		padding-top: 0.75rem;
		border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
	}

	.psh-primary-nav .psh-header-social .psh-social-icons {
		justify-content: flex-start;
		gap: 0.5rem;
	}

	.psh-primary-nav .psh-header-cta {
		display: block;
		width: 100%;
		margin-top: 1rem;
		text-align: center;
		box-sizing: border-box;
	}

	.psh-team-single__grid { grid-template-columns: 1fr; }
}

.psh-scheme-dark .psh-site-header {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Pagina Portfolio hub — griglia tipologie */
.psh-main--portfolio-hub .psh-portfolio-hub-intro.psh-section {
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.psh-portfolio-types {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5.5rem);
	background: color-mix(in srgb, var(--psh-secondary-color, #f5f5f5) 55%, var(--psh-background-color, #fff));
}

.psh-portfolio-types__intro {
	max-width: 40rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.psh-portfolio-types__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.65rem, 3.2vw, 2.15rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.psh-portfolio-types__lede {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--psh-text-color, #222) 72%, transparent);
}

.psh-portfolio-types__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(1rem, 2.4vw, 1.65rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.psh-portfolio-types__card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem 1.25rem;
	min-height: 7.25rem;
	padding: 1.25rem 1.2rem;
	border-radius: 14px;
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 11%, transparent);
	background: var(--psh-background-color, #fff);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.psh-portfolio-types__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 44px color-mix(in srgb, var(--psh-primary-color, #111) 12%, transparent);
	border-color: color-mix(in srgb, var(--psh-primary-color, #111) 22%, transparent);
}

.psh-portfolio-types__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.75rem;
	height: 3.75rem;
	flex-shrink: 0;
	border-radius: 12px;
	background: color-mix(in srgb, var(--psh-primary-color, #111) 10%, transparent);
	color: var(--psh-primary-color, #111);
}

.psh-portfolio-types__svg {
	display: block;
	width: 2.25rem;
	height: auto;
}

.psh-portfolio-types__body {
	min-width: 0;
}

.psh-portfolio-types__label {
	display: block;
	font-weight: 700;
	font-size: 1.12rem;
	margin-bottom: 0.3rem;
	line-height: 1.25;
}

.psh-portfolio-types__hint {
	display: block;
	font-size: 0.9rem;
	line-height: 1.45;
	color: color-mix(in srgb, var(--psh-text-color, #222) 66%, transparent);
}

.psh-portfolio-types__chev {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: color-mix(in srgb, var(--psh-text-color, #222) 38%, transparent);
	transition: transform 0.2s ease, color 0.2s ease;
}

.psh-portfolio-types__card:hover .psh-portfolio-types__chev {
	transform: translateX(5px);
	color: var(--psh-primary-color, #111);
}

.psh-scheme-dark .psh-portfolio-types {
	background: color-mix(in srgb, var(--psh-text-color, #fff) 5%, var(--psh-background-color, #111));
}

.psh-scheme-dark .psh-portfolio-types__card {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	border-color: color-mix(in srgb, var(--psh-text-color, #fff) 12%, transparent);
}

.psh-scheme-dark .psh-portfolio-types__card:hover {
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

