/*
 * Global Italy Travel Experience footer.
 *
 * Loaded on every front-end page. All selectors are scoped to .ite-site-footer
 * so the Foxiz parent footer styles and other page components remain untouched.
 */

.ite-site-footer,
.ite-site-footer *,
.ite-site-footer *::before,
.ite-site-footer *::after {
	box-sizing: border-box;
}

.ite-site-footer {
	--ite-footer-bg: #14202b;
	--ite-footer-surface: #1b2b37;
	--ite-footer-text: #ffffff;
	--ite-footer-muted: #b9c7cf;
	--ite-footer-border: rgba(231, 238, 242, 0.18);
	--ite-footer-link: #e7eef2;
	--ite-footer-accent: #8fb0c1;
	--ite-footer-container: 1240px;
	--ite-footer-padding: clamp(1rem, 4vw, 2rem);
	color: var(--ite-footer-text);
	background-color: var(--ite-footer-bg);
}

.ite-footer-accent {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	height: 4px;
}

.ite-footer-accent span {
	display: block;
}

.ite-footer-accent-green {
	background-color: #16834b;
}

.ite-footer-accent-white {
	background-color: #f5f7f8;
}

.ite-footer-accent-red {
	background-color: #c92336;
}

.ite-footer-container {
	width: 100%;
	max-width: var(--ite-footer-container);
	margin-inline: auto;
	padding: clamp(2.25rem, 5vw, 4rem) var(--ite-footer-padding) 1.5rem;
}

.ite-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.ite-footer-brand {
	max-width: 42rem;
}

.ite-footer-logo {
	display: flex;
	align-items: center;
	width: min(100%, 17.5rem);
	height: 4rem;
	overflow: hidden;
	border-radius: 8px;
	background-color: #ffffff;
}

.ite-footer-logo > a,
.ite-footer-logo .logo-wrap,
.ite-footer-logo .logo-wrap > a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	height: 100%;
}

body .ite-site-footer .ite-footer-logo img {
	display: block;
	flex: 0 0 auto;
	width: clamp(15rem, 28vw, 18rem);
	max-width: none;
	height: auto;
	max-height: none;
	object-fit: contain;
}

.ite-footer-site-name {
	color: var(--ite-footer-text);
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}

.ite-footer-description {
	max-width: 58ch;
	margin: 1rem 0 0;
	color: var(--ite-footer-muted);
	font-size: 0.9375rem;
	line-height: 1.7;
}

.ite-footer-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 1.25rem;
	padding: 0.7rem 1rem;
	border: 1px solid var(--ite-footer-link);
	border-radius: 8px;
	color: var(--ite-footer-bg);
	background-color: var(--ite-footer-link);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.ite-footer-cta:hover {
	border-color: #ffffff;
	background-color: #ffffff;
	color: var(--ite-footer-bg);
}

.ite-footer-heading {
	margin: 0 0 0.875rem;
	color: var(--ite-footer-text);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ite-footer-menu,
.ite-footer-legal-menu {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ite-footer-menu li,
.ite-footer-legal-menu li {
	margin: 0;
	padding: 0;
}

.ite-footer-menu a,
.ite-footer-legal-menu a {
	color: var(--ite-footer-link);
	font-size: 0.9375rem;
	line-height: 1.45;
	text-decoration: none;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease;
}

.ite-footer-menu a:hover,
.ite-footer-legal-menu a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.ite-footer-cta:focus-visible,
.ite-footer-menu a:focus-visible,
.ite-footer-legal-menu a:focus-visible,
.ite-footer-site-name:focus-visible {
	outline: 3px solid var(--ite-footer-accent);
	outline-offset: 3px;
}

.ite-footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--ite-footer-border);
}

.ite-footer-copyright {
	margin: 0;
	color: var(--ite-footer-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.ite-footer-legal-menu {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.ite-footer-legal-menu a {
	font-size: 0.8125rem;
}

.ite-footer-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

@media (min-width: 640px) {
	.ite-footer-grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(10rem, 0.6fr);
	}

	.ite-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 960px) {
	.ite-footer-grid {
		grid-template-columns:
			minmax(18rem, 1.6fr)
			minmax(10rem, 0.7fr)
			minmax(14rem, 1fr);
		gap: clamp(2rem, 5vw, 4rem);
	}

	.ite-footer-brand {
		grid-column: auto;
	}

	.ite-footer-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.ite-footer-legal-menu {
		justify-content: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ite-footer-cta,
	.ite-footer-menu a,
	.ite-footer-legal-menu a {
		transition: none;
	}
}
