/**
 * Footer premium layout — logo, tagline, testo, social, barra legale.
 */

.psh-site-footer {
	position: relative;
	padding: 0;
	border-top: none;
	background: linear-gradient(180deg, color-mix(in srgb, var(--psh-secondary-color, #f5f5f5) 88%, var(--psh-background-color, #fff)) 0%, var(--psh-secondary-color, #f5f5f5) 28%, var(--psh-secondary-color, #f5f5f5) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.psh-site-footer::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--psh-primary-color, #111) 0%, color-mix(in srgb, var(--psh-primary-color, #111) 55%, var(--psh-button-hover-color, #333)) 45%, var(--psh-button-hover-color, #333) 100%);
	opacity: 0.92;
}

.psh-site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 5vw, 3rem);
	padding-top: clamp(2.25rem, 5vw, 3.5rem);
	padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.psh-footer-main {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, auto);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

@media (max-width: 960px) {
	.psh-footer-main {
		grid-template-columns: 1fr 1fr;
	}

	.psh-footer-aside {
		grid-column: 1 / -1;
		justify-self: center;
		text-align: center;
	}
}

@media (max-width: 600px) {
	.psh-footer-main {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.psh-footer-brand {
		align-items: center;
	}

	.psh-footer-nav .psh-footer-menu {
		justify-content: center;
	}
}

.psh-footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	min-width: 0;
}

.psh-footer-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease, transform 0.25s ease;
}

.psh-footer-logo:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

.psh-footer-logo__img {
	display: block;
	max-height: 52px;
	width: auto;
	height: auto;
	max-width: min(var(--psh-footer-logo-width, 220px), 100%);
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

.psh-footer-logo__text {
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.psh-footer-tagline {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: color-mix(in srgb, var(--psh-text-color, #222) 78%, transparent);
	max-width: 36ch;
}

.psh-footer-desc {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--psh-text-color, #222) 82%, transparent);
	max-width: 42ch;
}

.psh-footer-desc > *:first-child {
	margin-top: 0;
}

.psh-footer-desc > *:last-child {
	margin-bottom: 0;
}

.psh-footer-nav .psh-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.psh-footer-nav .psh-footer-menu a {
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	color: color-mix(in srgb, var(--psh-text-color, #222) 88%, transparent);
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.psh-footer-nav .psh-footer-menu a:hover {
	color: var(--psh-primary-color, #111);
	border-bottom-color: color-mix(in srgb, var(--psh-primary-color, #111) 35%, transparent);
}

.psh-footer-aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
	min-width: 0;
}

.psh-footer-aside__label {
	margin: 0;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
	color: color-mix(in srgb, var(--psh-text-color, #222) 55%, transparent);
}

.psh-social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: flex-end;
}

@media (max-width: 600px) {
	.psh-social-icons {
		justify-content: center;
	}
}

.psh-social-icons__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--psh-background-color, #fff) 55%, transparent);
	color: var(--psh-text-color, #222);
	border: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 10%, transparent);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
}

.psh-social-icons__link:hover {
	background: var(--psh-primary-color, #111);
	color: var(--psh-background-color, #fff);
	border-color: transparent;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px color-mix(in srgb, var(--psh-primary-color, #111) 28%, transparent);
}

.psh-social-icons__svg {
	display: block;
	flex-shrink: 0;
}

.psh-footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--psh-text-color, #222) 9%, transparent);
}

.psh-footer-bar__meta {
	min-width: 0;
}

.psh-footer-bar__meta .psh-footer-bar__copy {
	margin: 0;
}

.psh-footer-bar__address {
	margin: 0.3rem 0 0;
	font-size: 0.85em;
	opacity: 0.65;
}

.psh-footer-bar__copy {
	margin: 0;
	font-size: 0.8rem;
	color: color-mix(in srgb, var(--psh-text-color, #222) 65%, transparent);
	max-width: min(100%, 42rem);
}

.psh-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
}

.psh-footer-legal a {
	color: color-mix(in srgb, var(--psh-text-color, #222) 75%, transparent);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.psh-footer-legal a:hover {
	color: var(--psh-primary-color, #111);
	border-bottom-color: color-mix(in srgb, var(--psh-primary-color, #111) 40%, transparent);
}

.psh-footer-legal__sep {
	color: color-mix(in srgb, var(--psh-text-color, #222) 35%, transparent);
	user-select: none;
}

.psh-footer-credit-wrap {
	margin: 0;
	padding-top: 0.75rem;
	text-align: center;
}

.psh-footer-credit-wrap .psh-credit {
	margin: 0;
	font-size: 0.72rem;
}

.psh-footer-credit-wrap .psh-credit a {
	color: color-mix(in srgb, var(--psh-text-color, #222) 55%, transparent);
}

@media (min-width: 961px) {
	.psh-footer-main--no-nav {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, auto);
	}
}
