/* Swimo — Base styles
   Design tokens: assets/css/design-tokens.css (enqueued before this file).
   Reset, buttons, site header, footer, language-switcher
   ================================================================ */

/* ---- Base ---- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

:focus:not(:focus-visible) {
	outline: none;
}

html {
	overscroll-behavior-y: none;
}

body {
	margin: 0;
	overflow-x: hidden;
	font-family: "Haskoy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-licorice);
	background-color: var(--color-antique-white);
}

body.site-menu-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 2.5rem;
	font-family: "LT Wave", sans-serif;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ---- Size modifiers ---- */

.btn--sm {
	padding: 1rem 1.5rem;
	font-size: var(--font-size-base);
}

.btn--lg {
	padding: 1rem 2.5rem;
	font-size: var(--font-size-lg);
}

/* ---- Type modifiers ---- */

.btn--primary {
	background-color: var(--color-cornell-red);
	color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background-color: var(--color-slate-blue);
	color: var(--color-white);
	outline: none;
}

.btn--primary-dark {
	background-color: var(--color-warm-bg);
	color: var(--color-cornell-red);
}

.btn--primary-dark:hover,
.btn--primary-dark:focus-visible {
	background-color: var(--color-white);
	color: var(--color-cornell-red);
	outline: none;
}

.btn--secondary {
	background-color: transparent;
	border: 2px solid var(--color-cornell-red);
	color: var(--color-cornell-red);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
	background-color: var(--color-cornell-red);
	color: var(--color-white);
	outline: none;
}

.btn--secondary-dark {
	background-color: transparent;
	border: 2px solid var(--color-warm-bg);
	color: var(--color-warm-bg);
}

.btn--secondary-dark:hover,
.btn--secondary-dark:focus-visible {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-racing-green);
	outline: none;
}

.btn--lg.btn--secondary,
.btn--lg.btn--secondary-dark {
	border-width: 3px;
}

.btn--whatsapp {
	background-color: var(--color-whatsapp);
	border: 2px solid var(--color-white);
	color: var(--color-white);
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
	background-color: var(--color-white);
	color: var(--color-whatsapp);
	outline: none;
}

.btn--tertiary {
	font-family: "Haskoy", sans-serif;
	color: var(--color-licorice);
	background-color: transparent;
	border: none;
}

.btn--tertiary:hover,
.btn--tertiary:focus-visible {
	text-decoration: underline;
	text-decoration-skip-ink: none;
	outline: none;
}

.btn--tertiary-dark {
	font-family: "Haskoy", sans-serif;
	color: var(--color-warm-bg);
	background-color: transparent;
	border: none;
	text-decoration: underline;
	text-decoration-skip-ink: none;
}

/* ================================================================
   SITE HEADER
   ================================================================ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 0.25rem 1.5rem;
	background: var(--color-antique-white);
	box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1);
	transform: translateY(0);
	transition: transform 0.25s ease;
}

.js .site-header:not(.is-open) {
	will-change: transform;
}

.js .site-header.is-scroll-up {
	transform: translateY(0);
}

.js .site-header.is-scroll-down {
	transform: translateY(-100%);
}

.js .site-header.is-open {
	transform: none;
}

.site-header--home-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--color-antique-white);
	box-shadow: none;
}

.js .site-header--home-overlay.has-scroll-nav.is-scrolled {
	position: fixed;
	left: 0;
	right: 0;
}

.admin-bar .site-header--home-overlay {
	top: 46px;
}

@media screen and (min-width: 783px) {
	.admin-bar .site-header--home-overlay {
		top: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header {
		transition: none;
	}

	.site-header__toggle-line,
	.site-header__toggle-close {
		transition: none;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ---- Logo ---- */

.site-header__logo {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.site-header__logo img {
	display: block;
	height: 5rem;
	width: auto;
}

/* ---- Hamburger toggle (mobile) ---- */

.site-header__toggle {
	position: relative;
	z-index: 2;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.4375rem;
	width: 3.5rem;
	height: 3.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.site-header__toggle-line {
	width: 1.75rem;
	height: 0.1875rem;
	background: var(--color-cornell-red);
	border-radius: 1px;
	opacity: 1;
	visibility: visible;
	transition: none;
}

.site-header__toggle-close {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 3.5rem;
	height: 3.5rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: none;
}

.site-header.is-open .site-header__toggle-line {
	opacity: 0;
	visibility: hidden;
}

.site-header.is-open .site-header__toggle-close {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ---- Navigation panel ---- */

.site-header__panel {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.js .site-header__panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 6rem 1.5rem 2rem;
	background: var(--color-antique-white);
	display: none;
	overflow-y: auto;
}

.admin-bar .js .site-header__panel {
	top: calc(var(--site-header-bar-height) + 46px);
}

@media screen and (min-width: 783px) {
	.admin-bar .js .site-header__panel {
		top: calc(var(--site-header-bar-height) + 32px);
	}
}

.js .site-header.is-open .site-header__panel {
	display: flex;
}

/* ---- Main navigation ---- */

.main-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	font-family: "Haskoy", sans-serif;
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.2;
	text-decoration: none;
	color: var(--color-licorice);
	transition: opacity 0.15s ease;
}

.main-navigation a::after {
	content: attr(data-text);
	display: block;
	font-weight: 700;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.main-navigation .current-menu-item > a {
	color: var(--color-cornell-red);
	font-weight: 700;
	text-decoration: none;
	outline: none;
}

/* ---- Header actions (CTA, user icon, language) ---- */

.site-header__actions {
	display: none;
}

.site-header__cta {
	display: flex;
	width: 100%;
	white-space: nowrap;
}

.site-header__user-link {
	flex-shrink: 0;
	line-height: 0;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.site-header__user-link:hover .site-header__user-icon,
.site-header__user-link:focus-visible .site-header__user-icon {
	opacity: 0.85;
}

.site-header__user-link:focus-visible {
	outline: 2px solid var(--color-cornell-red);
	outline-offset: 0.125rem;
}

.site-header__user-icon {
	display: none;
	flex-shrink: 0;
}

/* ---- Mobile-only: Area personale + language switcher ---- */

.site-header__mobile-extras {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.site-header__area-personale {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-family: "Haskoy", sans-serif;
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--color-licorice);
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.site-header__area-personale:hover,
.site-header__area-personale:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2rem;
	outline: none;
}

.site-header__area-personale-icon {
	width: 1.75rem;
	height: 1.75rem;
	flex-shrink: 0;
}

.site-header__mobile-extras .language-switcher-wrap {
	align-self: flex-start;
}

.site-header__mobile-extras .language-switcher.language-switcher__trigger,
.site-header__mobile-extras .language-switcher.language-switcher--static {
	border: none;
	border-radius: 0;
	padding: 0;
	color: var(--color-licorice);
	background: transparent;
	gap: 0.25rem;
}

.site-header__mobile-extras .language-switcher__label {
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--color-licorice);
}

.site-header__mobile-extras .language-switcher__chevron {
	color: var(--color-licorice);
}

.site-header__mobile-extras .language-switcher.language-switcher__trigger:hover,
.site-header__mobile-extras .language-switcher.language-switcher__trigger:focus-visible,
.site-header__mobile-extras .language-switcher.language-switcher--static:hover,
.site-header__mobile-extras .language-switcher.language-switcher--static:focus-visible {
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

/* ---- Mobile-only: social icons in panel ---- */

.site-header__panel-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

.site-header__panel-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 1.25rem;
	background: var(--color-slate-blue);
	flex-shrink: 0;
	transition: opacity 0.2s ease;
}

.site-header__panel-social-link:hover,
.site-header__panel-social-link:focus-visible {
	opacity: 0.75;
	outline: none;
}

.site-header__panel-social-link img {
	width: 1.375rem;
	height: 1.375rem;
	filter: brightness(0) invert(1);
}

/* ---- Mobile-only header shadow & panel offset (< 64rem) ---- */

@media (max-width: 63.9375rem) {
	.site-header,
	.site-header--home-overlay {
		box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1);
	}

	.site-header {
		--site-header-bar-height: 4rem;
		z-index: 60;
		padding: 0.25rem 1.5rem;
	}

	.site-header__logo img {
		height: 3.4375rem;
		width: auto;
	}

	/* When the panel is open it covers the header's own box-shadow from below.
	   ::after re-renders the shadow above the panel (z-index 60 stacking context
	   vs panel z-index 1). Only active when open to avoid doubling on closed state. */
	.site-header.is-open::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 0.25rem;
		box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1);
		z-index: 3;
		pointer-events: none;
	}

	/* Panel starts below the bar instead of covering it from top: 0 */
	.js .site-header__panel {
		top: var(--site-header-bar-height);
		padding: 2rem 1.5rem;
		z-index: 1;
	}
}

/* ---- Language switcher (pill + dropdown) ---- */

.language-switcher-wrap {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	vertical-align: middle;
}

.language-switcher.language-switcher__trigger,
.language-switcher.language-switcher--static {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.25rem;
	padding: 0.25rem 0.5rem 0.25rem 1rem;
	border: 2px solid var(--color-cornell-red);
	border-radius: 2rem;
	text-decoration: none;
	color: var(--color-cornell-red);
	background-color: transparent;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	flex-shrink: 0;
}

.language-switcher.language-switcher__trigger {
	margin: 0;
	font: inherit;
	cursor: pointer;
	text-align: center;
	appearance: none;
}

.language-switcher.language-switcher__trigger:hover,
.language-switcher.language-switcher__trigger:focus-visible,
.language-switcher.language-switcher--static:hover,
.language-switcher.language-switcher--static:focus-visible {
	background: rgba(179, 24, 27, 0.06);
	outline: none;
}

.language-switcher-wrap.is-open .language-switcher__chevron {
	transform: rotate(180deg);
}

.language-switcher__label {
	font-family: "Haskoy", sans-serif;
	font-weight: 700;
	font-size: var(--font-size-base);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
}

.language-switcher__chevron {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.language-switcher__list {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	right: 0;
	z-index: 70;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.25rem;
	list-style: none;
	background: var(--color-white);
	border: 2px solid var(--color-cornell-red);
	border-radius: 0.5rem;
	box-shadow: 0 0.125rem 0.5rem rgba(20, 0, 0, 0.1);
}

.language-switcher-wrap:not(.is-open) .language-switcher__list {
	display: none;
}

.language-switcher__item {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
}

.language-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 0.25rem 0.5rem;
	font-family: "Haskoy", sans-serif;
	font-weight: 400;
	font-size: var(--font-size-base);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
	color: var(--color-cornell-red);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 2rem;
	box-shadow: 0 0 0 0 transparent;
	transition: box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.language-switcher__link:hover,
.language-switcher__link:focus-visible {
	background-color: transparent;
	color: var(--color-cornell-red);
	box-shadow: inset 0 0 0 2px var(--color-cornell-red);
	outline: none;
}

.language-switcher__current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.25rem 0.5rem;
	font-family: "Haskoy", sans-serif;
	font-weight: 700;
	font-size: var(--font-size-base);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
	color: var(--color-white);
	background-color: var(--color-cornell-red);
	border-radius: 2rem;
	white-space: nowrap;
	cursor: default;
}

/* ================================================================
   SITE FOOTER
   ================================================================ */

.site-footer {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
	background-color: var(--color-cornell-red);
	background-image: url("../images/footer_bg.webp");
	background-size: cover;
	background-position: center;
	color: var(--color-antique-white);
	padding: 2rem;
}

.site-footer a {
	color: inherit;
}

/* ---- Top: brand + nav columns ---- */

.site-footer__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.25rem;
	width: 100%;
}

.site-footer__brand {
	width: 100%;
	max-width: 22.375rem;
	text-align: center;
	flex-shrink: 0;
}

.site-footer__logo {
	display: block;
	text-decoration: none;
	color: inherit;
}

.site-footer__logo-image {
	display: block;
	width: 100%;
	height: auto;
	filter: brightness(0) invert(1);
	margin-left: 0;
}

/* ---- Footer nav (hierarchical menu → category columns) ---- */

.site-footer__nav .menu {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.75rem;
	row-gap: 2.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 16.2312rem;
}

.site-footer__nav .menu > .menu-item > a {
	display: block;
	font-family: "Haskoy", sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.site-footer__nav-mondial {
	white-space: nowrap;
}

.site-footer__nav .sub-menu {
	list-style: none;
	margin: 1.375rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.0625rem;
}

.site-footer__nav .sub-menu a {
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.site-footer__nav .sub-menu a:hover,
.site-footer__nav .sub-menu a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2rem;
	outline: none;
}

/* ---- Company / sede legale ---- */

.site-footer__company {
	width: 100%;
	max-width: 22.375rem;
	text-align: center;
	padding-left: 0;
}

.site-footer__company-text {
	margin: 0 0 0.3125rem;
	font-size: 1rem;
	line-height: 1.2;
}

/* ---- Bottom bar ---- */

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.8125rem;
	width: 100%;
}

.site-footer__legal {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.site-footer__legal-link {
	font-size: 0.875rem;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.site-footer__legal-link:hover,
.site-footer__legal-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2rem;
	outline: none;
}

.site-footer__legal-sep {
	font-family: "Haskoy", sans-serif;
	font-size: 1rem;
	line-height: 1.5rem;
	letter-spacing: -0.0195rem;
	opacity: 1;
}

.site-footer__copyright {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	width: 100%;
	max-width: 21.4375rem;
}

/* ---- Website credit (DEside) ---- */

.site-footer__credit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4375rem;
	margin-top: -1.8125rem;
	text-decoration: none;
	color: inherit;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.site-footer__credit:hover,
.site-footer__credit:focus-visible {
	opacity: 0.75;
	outline: none;
}

.site-footer__credit-label {
	font-size: 1rem;
	line-height: 1.2;
	white-space: nowrap;
}

.site-footer__credit-logo {
	display: block;
	height: 1rem;
	width: auto;
}

/* ---- Social icons ---- */

.site-footer__social {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-footer__social-link {
	--icon-bg-color: var(--color-antique-white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	position: relative;
	isolation: isolate;
	transition: opacity 0.2s ease;
}

.site-footer__social-link::before {
	content: '';
	position: absolute;
	inset: 0;
	-webkit-mask-image: url('../icons/ui/background-type-icon.svg');
	mask-image: url('../icons/ui/background-type-icon.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	background-color: var(--icon-bg-color);
	z-index: -1;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
	opacity: 0.75;
	outline: none;
}

.site-footer__social-link img {
	width: 1.375rem;
	height: 1.375rem;
	filter: brightness(0) saturate(100%) invert(12%) sepia(93%) saturate(3800%) hue-rotate(350deg) brightness(85%);
}

/* ================================================================
   HERO (temporary)
   ================================================================ */

.hero {
	max-width: 64rem;
	margin: 0 auto 2rem;
	padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
	border: 1px solid rgba(20, 0, 0, 0.2);
	border-radius: 0.75rem;
	background: var(--color-white);
}

.hero__title {
	margin: 0 0 0.5rem;
	font-family: "LT Wave", serif;
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.3;
}

.hero__subtitle {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	color: var(--color-licorice);
	line-height: 1.5;
}

.hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1rem;
	border-radius: 0.5rem;
	background: var(--color-cornell-red);
	color: var(--color-white);
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.2s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
	background: var(--color-racing-green);
	outline: none;
}

/* ================================================================
   DESKTOP (≥ 1024px)
   ================================================================ */

@media (min-width: 64rem) {

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

	.site-header {
		padding: 1.5rem 2.5rem;
		background: transparent;
		box-shadow: none;
	}

	.site-header__inner {
		padding: 0.75rem clamp(2rem, -3.0769rem + 7.6923vw, 5rem);
		border-radius: 1.5rem;
		background: var(--color-antique-white);
		box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1);
		max-width: 108rem;
		margin: 0 auto;
	}

	.site-header__logo img {
		height: 5rem;
		width: auto;
	}

	.site-header__toggle {
		display: none;
	}

	.js .site-header__panel,
	.site-header__panel {
		position: static;
		inset: auto;
		height: auto;
		padding: 0;
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: clamp(1rem, -0.3846rem + 2.0513vw, 2rem);
		flex: 1;
		overflow: visible;
	}

	.main-navigation {
		flex: 1;
	}

	.main-navigation ul {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: clamp(0.75rem, -0.2885rem + 1.5385vw, 1.5rem);
		justify-content: center;
	}

	.main-navigation a {
		font-size: clamp(1.125rem, 0.4327rem + 1.0256vw, 1.5rem);
	}

	.site-header__user-icon {
		display: block;
		width: 2.25rem;
		height: 2.25rem;
		transition: opacity 0.2s ease;
	}

	.site-header__actions {
		display: flex;
		align-items: center;
		gap: 1rem;
		flex-shrink: 0;
	}

	.site-header__cta {
		width: auto;
	}

	.site-header__mobile-extras,
	.site-header__panel-social {
		display: none;
	}

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

	.site-footer {
		align-items: flex-start;
		padding: 4.5rem 7.5rem;
	}

	.site-footer__top {
		display: grid;
		grid-template-columns: minmax(20rem, 38rem) minmax(0, 1fr);
		align-items: center;
		gap: clamp(2rem, 6vw, 8rem);
	}

	.site-footer__brand {
		text-align: left;
		max-width: 38rem;
	}

	.site-footer__logo {
		width: 100%;
	}

	.site-footer__logo-image {
		margin-left: -4.75rem;
		width: calc(100% + 8rem);
		max-width: none;
	}

	.site-footer__nav {
		width: 100%;
		max-width: 40rem;
		justify-self: end;
		margin-top: 0;
	}

	.site-footer__nav .menu {
		display: grid;
		grid-template-columns: repeat(4, minmax(6rem, 1fr));
		column-gap: clamp(1.5rem, 2.5vw, 3rem);
		row-gap: 0;
		max-width: none;
	}

	.site-footer__nav .sub-menu a {
		font-size: 1.125rem;
	}

	.site-footer__company {
		text-align: left;
		max-width: 38rem;
		padding-left: 0;
	}

	.site-footer__company-text {
		font-size: 1.125rem;
	}

	.site-footer__bottom {
		display: grid;
		grid-template-columns: auto auto minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 2rem;
		row-gap: 1.25rem;
		align-items: center;
	}

	.site-footer__legal {
		grid-column: 1;
		grid-row: 1;
		justify-content: flex-start;
		align-self: center;
	}

	.site-footer__social {
		grid-column: 4;
		grid-row: 1;
		justify-self: end;
	}

	.site-footer__copyright {
		grid-column: 2;
		grid-row: 1;
		width: auto;
		max-width: none;
		text-align: left;
		align-self: center;
		margin-top: 0;
	}

	.site-footer__credit {
		grid-column: 1;
		grid-row: 2;
		justify-content: flex-start;
		margin-top: 0;
		width: auto;
	}

	.site-footer__legal-link {
		font-size: 1rem;
	}

	.site-footer__credit-label {
		font-size: 1rem;
	}
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
	.site-footer__bottom {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-rows: auto auto auto;
		column-gap: 1.5rem;
		row-gap: 1.25rem;
		align-items: center;
	}

	.site-footer__legal {
		grid-column: 1 / -1;
		grid-row: 1;
		justify-content: flex-start;
	}

	.site-footer__social {
		grid-column: 3;
		grid-row: 2;
		justify-self: end;
		margin-left: 0;
	}

	.site-footer__copyright {
		grid-column: 1;
		grid-row: 2;
		width: auto;
		max-width: none;
		text-align: left;
		margin-top: 0;
	}

	.site-footer__credit {
		grid-column: 1 / -1;
		grid-row: 3;
		justify-content: flex-start;
		margin-top: 0;
		width: auto;
	}
}

/* ================================================================
   FLOATING HELP (WhatsApp) — footer.php, tutte le pagine tranne contatti e singolo articolo blog
   ================================================================ */

.home-help-button {
	position: fixed;
	right: 1.5rem;
	bottom: 3.5rem;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	min-height: 2.89625rem;
	padding: 0.5rem 1rem;
	border-radius: 2.5rem;
	background: var(--color-whatsapp);
	color: var(--color-white);
	font-family: "LT Wave", serif;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	transition: padding 0.3s ease, border-radius 0.3s ease, gap 0.3s ease;
}

.has-scrolled-vh .home-help-button {
	padding: 0.5rem;
	border-radius: 50%;
	gap: 0;
}

.home-help-button__label {
	display: inline-block;
	max-width: 12rem;
	overflow: hidden;
	white-space: nowrap;
	opacity: 1;
	transform: translateY(0.0625rem);
	transition: max-width 0.3s ease, opacity 0.3s ease;
}

.has-scrolled-vh .home-help-button__label {
	max-width: 0;
	opacity: 0;
}

.home-help-button__icon {
	display: inline-flex;
	width: 2rem;
	height: 2rem;
	align-items: center;
	justify-content: center;
}

.home-help-button__icon img {
	display: block;
	width: 100%;
	height: 100%;
	filter: brightness(0) invert(1);
}

@media (min-width: 64rem) {
	.home-help-button {
		right: 3.0625rem;
		bottom: 4.4375rem;
	}
}
