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

/* Hero: titolo eredita .psh-entry-title dai preset; solo ritmo verticale */
.psh-main--contact .psh-contact-hero {
	padding-bottom: clamp(1rem, 3vw, 2rem);
}

.psh-contact-hero__title {
	margin-bottom: 0.75rem;
}

.psh-contact-hero__intro {
	max-width: 46rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: color-mix(in srgb, var(--psh-text-color, #222) 88%, transparent);
}

.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);
}

.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-secondary-color, #f5f5f5);
	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) 6%, 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.875rem;
	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-secondary-color, #f5f5f5);
	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-secondary-color, #f5f5f5);
	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) 5%, 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) 5%, var(--psh-secondary-color, #f5f5f5));
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 10%, transparent);
	font-size: 0.85rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--psh-text-color, #222) 75%, transparent);
}

/* —— Sedi multiple —— */
.psh-contact-locations {
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
	background: color-mix(in srgb, var(--psh-secondary-color, #f4f6f8) 55%, var(--psh-background-color, #fff));
	border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
}

.psh-contact-locations__group + .psh-contact-locations__group {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: clamp(2rem, 4vw, 2.75rem);
	border-top: 1px solid color-mix(in srgb, var(--psh-primary-color, #1b2735) 10%, transparent);
}

.psh-contact-locations__title {
	margin-bottom: 1.5rem;
}

.psh-contact-locations__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 720px) {
	.psh-contact-locations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.psh-contact-locations__grid {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	}
}

.psh-contact-location {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.25rem;
	border-radius: 10px;
	background: var(--psh-background-color, #fff);
	border: 1px solid color-mix(in srgb, var(--psh-primary-color, #1b2735) 8%, transparent);
	box-shadow: 0 10px 32px rgba(27, 39, 53, 0.06);
}

.psh-contact-location__name {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--psh-primary-color, #1b2735);
	line-height: 1.25;
}

.psh-preset-lucaruosi .psh-contact-location__name {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.35rem;
}

.psh-contact-location__address {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--psh-text-color, #3d4f63) 90%, transparent);
}

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

.psh-contact-location__phone {
	margin: 0;
	font-weight: 600;
}

.psh-contact-location__phone a {
	color: var(--psh-primary-color, #1b2735);
	text-decoration: none;
}

.psh-contact-location__phone a:hover {
	color: var(--psh-button-hover-color, #f38118);
}

.psh-contact-location__note {
	margin: 0;
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--psh-text-color, #3d4f63) 72%, transparent);
	font-style: italic;
}

.psh-contact-location__map {
	margin-top: 0.35rem;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--psh-primary-color, #1b2735) 8%, transparent);
	aspect-ratio: 16 / 10;
	background: var(--psh-secondary-color, #f4f6f8);
}

.psh-contact-location__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 220px;
	border: 0;
}

.psh-contact-locations__group--operate .psh-contact-location__map {
	border-color: color-mix(in srgb, var(--psh-button-hover-color, #f38118) 25%, transparent);
}

.psh-contact-map-section {
	width: 100%;
	background: color-mix(in srgb, var(--psh-secondary-color, #f5f5f5) 65%, var(--psh-background-color, #fff));
	border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 8%, transparent);
}

.psh-contact-map-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.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);
}
