/**
 * Pagina Contatti — allineata a card / sezioni / tipografia del resto del tema.
 */

/* Superfici card/form: quasi bianco (traccia minima di contrasto, no tinta calda). */
.psh-main--contact {
	--psh-contact-surface: color-mix(
		in srgb,
		var(--psh-text-color, #1e293b) 1.75%,
		var(--psh-background-color, #ffffff)
	);
	--psh-contact-surface-band: color-mix(
		in srgb,
		var(--psh-text-color, #1e293b) 2.6%,
		var(--psh-background-color, #ffffff)
	);
}

/* Masthead: stesse classi della pagina Chi siamo (.psh-page-about__masthead). Lead sotto il titolo. */
.psh-page-contact__lead {
	margin: 0.75rem auto 0;
	max-width: 46rem;
	text-align: center;
	font-size: clamp(1.05rem, 2.2vw, 1.15rem);
	line-height: 1.65;
	color: color-mix(in srgb, var(--psh-text-color, #222) 88%, transparent);
}

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

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

.psh-contact-aside-recapiti {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.psh-contact-aside-section-title {
	margin: 0;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 600;
	line-height: 1.3;
	color: var(--psh-text-color, #222);
}

.psh-contact-alert-wrap {
	padding-bottom: 0;
}

.psh-contact-alert {
	padding: 1rem 1.25rem;
	border-radius: 6px;
	margin-bottom: 0;
	font-size: 0.95rem;
}

.psh-contact-alert--success {
	background: color-mix(in srgb, var(--psh-primary-color, #111) 9%, transparent);
	border: 1px solid color-mix(in srgb, var(--psh-primary-color, #111) 18%, transparent);
}

.psh-contact-alert--success p {
	margin: 0;
}

.psh-contact-alert--error,
.psh-contact-alert--warn {
	background: color-mix(in srgb, #c0392b 12%, transparent);
	border: 1px solid color-mix(in srgb, #c0392b 28%, transparent);
}

/* Niente “fascia grigia” a tutta larghezza: stesso sfondo del sito */
.psh-contact-shell {
	padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
	background: transparent;
	border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
}

/* Stessa linea del masthead About: niente bordo doppio se subito sotto l’header (senza alert) */
.psh-main--contact .psh-page-about__masthead + .psh-contact-shell {
	border-top: none;
}

.psh-contact-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.75rem, 4vw, 2.75rem);
	align-items: start;
}

.psh-contact-layout__aside {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 960px) {
	.psh-contact-layout {
		grid-template-columns: minmax(260px, 1fr) minmax(0, 1.15fr);
	}
}

.psh-contact-cards {
	display: grid;
	gap: 1rem;
}

/* Stessa famiglia visiva delle .psh-card in archive / home */
.psh-contact-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem 1rem;
	align-items: start;
	padding: 1rem;
	border-radius: 6px;
	overflow: hidden;
	border: 0;
	background: var(--psh-contact-surface);
	box-shadow: none;
}

.psh-contact-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 6px;
	background: color-mix(in srgb, var(--psh-text-color, #222) 2.5%, transparent);
	color: var(--psh-primary-color, #111);
	flex-shrink: 0;
}

.psh-contact-card__svg {
	display: block;
	width: 1.15rem;
	height: auto;
}

.psh-contact-card__title {
	margin: 0 0 0.25rem;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: color-mix(in srgb, var(--psh-text-color, #222) 82%, transparent);
}

.psh-contact-card__content {
	font-size: 1rem;
	line-height: 1.5;
}

.psh-contact-card__content p {
	margin: 0;
}

.psh-contact-card__content a {
	font-weight: 600;
	text-decoration: none;
}

.psh-contact-card__content a:hover {
	text-decoration: underline;
}

.psh-contact-social-block {
	padding: 1rem;
	border-radius: 6px;
	background: var(--psh-contact-surface);
	border: 0;
	box-shadow: none;
}

.psh-contact-social-block__title {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: color-mix(in srgb, var(--psh-text-color, #222) 82%, transparent);
}

.psh-contact-social-block__icons .psh-social-icons {
	justify-content: flex-start;
}

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

.psh-contact-form-panel {
	padding: 1rem;
	border-radius: 6px;
	border: 0;
	background: var(--psh-contact-surface);
	box-shadow: none;
}

.psh-contact-form-panel .psh-section-title {
	margin-top: 0;
	margin-bottom: 1.15rem;
}

.psh-contact-form__field {
	margin: 0 0 1.1rem;
}

.psh-contact-form__field label {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	margin-bottom: 0.45rem;
}

.psh-contact-form__field input[type="text"],
.psh-contact-form__field input[type="email"],
.psh-contact-form__field input[type="tel"],
.psh-contact-form__field input[type="number"],
.psh-contact-form__field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 16%, transparent);
	border-radius: 4px;
	font: inherit;
	background: var(--psh-background-color, #fff);
	color: inherit;
}

.psh-contact-form__field textarea {
	resize: vertical;
	min-height: 8rem;
}

.psh-contact-form__field:focus-within input,
.psh-contact-form__field:focus-within textarea {
	outline: 2px solid color-mix(in srgb, var(--psh-primary-color, #111) 35%, transparent);
	outline-offset: 1px;
}

.psh-contact-form__req {
	color: color-mix(in srgb, #c0392b 80%, var(--psh-text-color, #222));
}

.psh-contact-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.psh-contact-form__recaptcha {
	margin-bottom: 1rem;
}

.psh-contact-form__submit-wrap {
	margin: 1.25rem 0 0;
}

.psh-contact-form__submit {
	cursor: pointer;
	border: none;
}

.psh-contact-form__notice {
	margin: 0;
	padding: 1rem;
	border-radius: 6px;
	background: color-mix(in srgb, var(--psh-text-color, #222) 2%, var(--psh-background-color, #fff));
}

.psh-contact-form__notice--warn {
	border: 1px solid color-mix(in srgb, #f39c12 35%, transparent);
}

.psh-contact-form__notice--muted {
	font-size: 0.95rem;
	color: color-mix(in srgb, var(--psh-text-color, #222) 68%, transparent);
}

.psh-contact-form__privacy {
	margin-top: 1.25rem;
	padding: 1rem;
	border-radius: 6px;
	background: color-mix(in srgb, var(--psh-text-color, #222) 2%, var(--psh-background-color, #fff));
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 7%, transparent);
	font-size: 0.85rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--psh-text-color, #222) 75%, transparent);
}

.psh-contact-map-section {
	position: relative;
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--psh-contact-surface-band);
	border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
}

.psh-contact-map-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.psh-contact-map-inner > div {
	width: 100% !important;
	max-width: none !important;
}

.psh-contact-map-inner iframe {
	display: block;
	width: 100%;
	min-height: 320px;
	border: 0;
}

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

.psh-scheme-dark .psh-contact-card,
.psh-scheme-dark .psh-contact-form-panel,
.psh-scheme-dark .psh-contact-social-block {
	background: color-mix(in srgb, var(--psh-text-color, #fff) 5%, var(--psh-background-color, #111));
}

.psh-scheme-dark .psh-contact-form__privacy {
	background: color-mix(in srgb, var(--psh-text-color, #fff) 9%, var(--psh-background-color, #111));
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #fff) 12%, transparent);
}

.psh-scheme-dark .psh-contact-form__field input[type="text"],
.psh-scheme-dark .psh-contact-form__field input[type="email"],
.psh-scheme-dark .psh-contact-form__field input[type="tel"],
.psh-scheme-dark .psh-contact-form__field input[type="number"],
.psh-scheme-dark .psh-contact-form__field textarea {
	background: color-mix(in srgb, var(--psh-background-color, #111) 92%, transparent);
	border-color: color-mix(in srgb, var(--psh-text-color, #fff) 14%, transparent);
}

body.psh-preset-rock_dark .psh-contact-card__icon {
	background: rgba(255, 255, 255, 0.06);
	color: var(--psh-rock-accent, #e63939);
}

body.psh-preset-rock_dark .psh-contact-card,
body.psh-preset-rock_dark .psh-contact-form-panel,
body.psh-preset-rock_dark .psh-contact-social-block {
	border: 1px solid var(--psh-rock-edge, rgba(255, 255, 255, 0.08));
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
