/* ==========================================================================
   Sirmione — layout: containers, header, navigation, footer, grids
   ========================================================================== */

.container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--wide {
	max-width: 1520px;
}

.site-main {
	display: block;
	outline: none;
}

.section {
	position: relative;
	padding-block: var(--space-section);
}

.section--tight {
	padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--space-section);
}

.section--travertine {
	background: var(--c-travertine);
}

.section--blue {
	background: var(--c-blue);
	color: var(--c-white);
}

.grid {
	display: grid;
	gap: clamp(1.75rem, 1rem + 2vw, 3rem) clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem);
}

@media (min-width: 640px) {
	.grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}

.section-header .section-intro {
	margin-bottom: 0;
}

.section-header--light .section-intro {
	color: rgba(255, 255, 255, 0.72);
}

.section-header--light .link-arrow {
	color: var(--c-white);
}

/* Header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--c-line);
	transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}

/* Blur lives on a pseudo-element so the fixed mobile menu is not trapped inside the header box. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(248, 246, 242, 0.92);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	transition: opacity 0.35s var(--ease);
}

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

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

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: var(--header-h);
}

.has-transparent-header .site-header {
	position: fixed;
	left: 0;
	right: 0;
	border-color: transparent;
	color: var(--c-white);
}

.has-transparent-header .site-header::before {
	opacity: 0;
}

.has-transparent-header .site-header.is-scrolled,
.has-transparent-header .site-header.is-open {
	border-color: var(--c-line);
	color: var(--c-ink);
}

.has-transparent-header .site-header.is-scrolled::before,
.has-transparent-header .site-header.is-open::before {
	opacity: 1;
}

.site-brand__text {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}

.site-brand__name {
	font-family: var(--f-display);
	font-size: 1.65rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.site-brand__tagline {
	margin-top: 0.35rem;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	opacity: 0.7;
}

.custom-logo {
	max-height: 52px;
	width: auto;
}

.nav-toggle {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 2rem var(--gutter) 3rem;
	background: var(--c-travertine);
	color: var(--c-ink);
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.js .site-nav {
	display: flex;
}

html:not(.js) .site-nav {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
}

.site-nav.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav__menu {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__menu a {
	display: block;
	padding: 0.65rem 0;
	color: inherit;
	font-family: var(--f-display);
	font-size: 1.9rem;
	text-decoration: none;
	border-bottom: 1px solid var(--c-line);
}

.nav__menu .sub-menu {
	margin: 0;
	padding: 0 0 0 1rem;
	list-style: none;
}

.nav__menu .sub-menu a {
	font-family: var(--f-body);
	font-size: 1rem;
}

.site-nav__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: inherit;
	transition: background-color 0.2s var(--ease);
}

.icon-btn:hover {
	background: rgba(15, 61, 94, 0.08);
	color: inherit;
}

.has-transparent-header .site-header:not(.is-scrolled):not(.is-open) .btn--outline {
	color: var(--c-white);
	border-color: rgba(255, 255, 255, 0.6);
}

.has-transparent-header .site-header:not(.is-scrolled):not(.is-open) .btn--outline:hover {
	background: var(--c-white);
	color: var(--c-blue);
}

@media (min-width: 1280px) {
	.nav-toggle {
		display: none;
	}

	.site-nav,
	.js .site-nav {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 2.25rem;
		padding: 0;
		background: transparent;
		color: inherit;
		overflow: visible;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav__menu {
		flex-direction: row;
		gap: 2rem;
	}

	.nav__menu > li {
		position: relative;
	}

	.nav__menu a {
		padding: 0.5rem 0;
		font-family: var(--f-body);
		font-size: var(--fs-sm);
		font-weight: 500;
		letter-spacing: 0.03em;
		border: 0;
		background-image: linear-gradient(currentColor, currentColor);
		background-size: 0 1px;
		background-position: 0 100%;
		background-repeat: no-repeat;
		transition: background-size 0.3s var(--ease);
	}

	.nav__menu a:hover,
	.nav__menu .current-menu-item > a {
		background-size: 100% 1px;
	}

	.nav__menu .sub-menu {
		position: absolute;
		top: 100%;
		left: -1rem;
		min-width: 220px;
		padding: 0.75rem 1rem;
		background: var(--c-white);
		color: var(--c-ink);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s;
	}

	.nav__menu li:hover > .sub-menu,
	.nav__menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
	}
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	background: var(--c-blue-deep);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--fs-sm);
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--c-white);
}

.site-footer__grid {
	display: grid;
	gap: 3rem;
	padding-block: clamp(4rem, 3rem + 4vw, 7rem) 3.5rem;
}

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

@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
		gap: 4rem;
	}
}

.site-footer__logo {
	display: inline-block;
	margin-bottom: 1.25rem;
	font-family: var(--f-display);
	font-size: 2.25rem;
	color: var(--c-white) !important;
}

.site-footer__about {
	max-width: 36ch;
}

.footer__title {
	margin-bottom: 1.25rem;
	font-family: var(--f-body);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #e8b98d;
}

.footer-menu,
.social-links,
.legal-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li + li {
	margin-top: 0.65rem;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-top: 1.5rem;
}

.social-links__link {
	border-bottom: 1px solid var(--c-line-light);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.75rem;
	border-top: 1px solid var(--c-line-light);
	font-size: var(--fs-xs);
}

.site-footer__bottom p {
	margin: 0;
}

.legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

/* Footer widgets (classic and block) */
.site-footer .widget + .widget {
	margin-top: 2rem;
}

.site-footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .widget li + li {
	margin-top: 0.65rem;
}

.site-footer .widget h2,
.site-footer .widget h3,
.site-footer .widget .wp-block-heading {
	margin-bottom: 1.25rem;
	font-family: var(--f-body);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #e8b98d;
}

.site-footer .widget select,
.site-footer .widget input {
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--c-line-light);
	border-radius: var(--radius);
	background: transparent;
	color: inherit;
}

/* Language switcher */
.lang-switcher__list {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switcher__item {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
}

.lang-switcher__toggle,
.lang-switcher__name {
	display: none;
}

.lang-switcher__item + .lang-switcher__item::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 10px;
	margin: 0 0.1rem;
	background: currentColor;
	opacity: 0.25;
	vertical-align: middle;
}

.lang-switcher__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.5rem;
	color: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	opacity: 0.6;
	transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switcher__link::after {
	content: "";
	position: absolute;
	left: 0.5rem;
	right: calc(0.5rem + 0.14em);
	bottom: 0.2rem;
	height: 1px;
	background: var(--c-terracotta);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}

.lang-switcher__link:hover,
.lang-switcher__link.is-active {
	opacity: 1;
	color: inherit;
}

.lang-switcher__link:hover::after,
.lang-switcher__link.is-active::after {
	transform: scaleX(1);
}

@media (max-width: 1279px) {
	.site-nav__actions {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.lang-switcher {
		flex-basis: 100%;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--c-line);
	}

	.lang-switcher__link {
		padding: 0.6rem 0.75rem;
		font-size: 0.85rem;
	}

	.lang-switcher__item:first-child .lang-switcher__link {
		padding-left: 0;
	}

	.lang-switcher__item:first-child .lang-switcher__link::after {
		left: 0;
	}
}

@media (min-width: 1280px) {
	.site-nav__actions {
		gap: 0.75rem;
	}

	.nav__menu {
		gap: 1.5rem;
	}

	.nav__menu a,
	.site-nav__actions .btn {
		white-space: nowrap;
	}

	/* Compact dropdown on desktop: current language + list on hover, focus or click. */
	.lang-switcher {
		position: relative;
	}

	.lang-switcher__toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.35rem;
		padding: 0.45rem 0.6rem;
		border: 0;
		background: transparent;
		color: inherit;
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.14em;
		cursor: pointer;
	}

	.lang-switcher__toggle svg {
		transition: transform 0.25s var(--ease);
	}

	.lang-switcher__list {
		position: absolute;
		top: calc(100% + 0.5rem);
		right: 0;
		flex-direction: column;
		align-items: stretch;
		min-width: 150px;
		padding: 0.5rem;
		background: var(--c-white);
		color: var(--c-ink);
		border-radius: var(--radius-lg);
		box-shadow: var(--shadow);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-6px);
		transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
	}

	.lang-switcher:hover .lang-switcher__list,
	.lang-switcher:focus-within .lang-switcher__list,
	.lang-switcher.is-open .lang-switcher__list {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.lang-switcher:hover .lang-switcher__toggle svg,
	.lang-switcher.is-open .lang-switcher__toggle svg {
		transform: rotate(180deg);
	}

	.lang-switcher__item + .lang-switcher__item::before {
		display: none;
	}

	.lang-switcher__link {
		width: 100%;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.55rem 0.75rem;
		border-radius: var(--radius);
		opacity: 0.75;
	}

	.lang-switcher__link::after {
		display: none;
	}

	.lang-switcher__link:hover,
	.lang-switcher__link.is-active {
		background: var(--c-travertine);
	}

	.lang-switcher__name {
		display: inline;
		font-weight: 500;
		letter-spacing: 0;
		text-transform: none;
		opacity: 0.8;
	}
}

@media (min-width: 1280px) and (max-width: 1439px) {
	.site-nav__actions .btn {
		display: none;
	}
}
