/* ==========================================================================
   Solaris – foglio di stile principale
   Indice:
   1. Font
   2. Variabili (design system, dal kit Elementor)
   3. Base
   4. Classi globali (stessi nomi usati in Elementor)
   5. Pulsanti
   6. Header e selettore lingua
   7. Menu a comparsa (off-canvas)
   8. Footer
   9. Pagine legali
   Breakpoint: tablet ≤ 1024px, mobile ≤ 767px
   ========================================================================== */

/* 1. Font --------------------------------------------------------------- */
@font-face {
	font-family: "Solaris Red Hat Display";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/redhatdisplay-5b6ac0ec.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Solaris Red Hat Display";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/redhatdisplay-58cf70ed.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Solaris Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/roboto-0f7fcdc8.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Solaris Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/roboto-f0106b44.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Variabili ---------------------------------------------------------- */
/* html:root ha la precedenza sulle variabili omonime che Elementor scrive in :root. */
html:root {
	/* Colori */
	--color-white: #ffffff;
	--color-black: #000000;
	--color-transparent: #ffffff00;
	--color-white-opacity: #ffffff9e;
	--color-whitesmoke-rr: #f2f2f2;
	--color-black-rr: #151515;
	--color-dark-grey-rr: #222222;
	--color-blu-rr: #2c2e3a;
	--color-gray-200-rr: #7c7c7c;
	--color-cool-grey-rr: #d2d2d2;
	--color-light-blue-rr: #b4c7cb;
	--color-lightslategray-rr: #73859f;
	--color-lightslategray-300-rr: #73859fbf;
	--color-lightslategray-200-rr: #73859f80;
	--color-slategray-100-rr: #727281;
	--color-slategray-200-rr: #7e7284;
	--antiquewhite-100-rr: #e7d2c3;
	--color-bg-legal: #b4c7cb;
	--color-accent: #111820;

	/* Font */
	--font-header: "Solaris Red Hat Display", "Red Hat Display", system-ui, sans-serif;
	--text-font: "Solaris Roboto", "Roboto", system-ui, sans-serif;

	/* Titoli */
	--header-xxl: clamp(4.5rem, calc(2.362rem + 9vw), 9rem);
	--header-xl: clamp(2.5rem, calc(1.609rem + 3.75vw), 4.375rem);
	--header-l: clamp(1.5rem, calc(1.203rem + 1.25vw), 2.125rem);
	--header-m: clamp(1rem, calc(0.881rem + 0.5vw), 1.25rem);
	--header-s: clamp(1rem, calc(0.941rem + 0.25vw), 1.125rem);
	--header-xs: clamp(0.875rem, calc(0.816rem + 0.25vw), 1rem);
	--header-xxs: clamp(0.75rem, calc(0.691rem + 0.25vw), 0.875rem);
	--text-spacing-header: 0.1em;

	/* Testo */
	--text-xs: 0.6rem;
	--text-s: 0.875rem;
	--text-m: 1rem;
	--text-spacing-body: 0.05em;

	/* Spazi */
	--space-xs: clamp(0.625rem, calc(0.566rem + 0.25vw), 0.75rem);
	--space-s: clamp(0.75rem, calc(0.572rem + 0.75vw), 1.125rem);
	--space-m: clamp(1rem, calc(0.762rem + 1vw), 1.5rem);
	--space-l: clamp(1.5rem, calc(0.787rem + 3vw), 3rem);
	--space-xl: clamp(3rem, calc(1.575rem + 6vw), 6rem);

	/* Sezioni */
	--section-xs: clamp(0.625rem, calc(0.566rem + 0.25vw), 0.75rem);
	--section-s: clamp(1rem, calc(0.525rem + 2vw), 2rem);
	--section-m: clamp(2rem, calc(1.05rem + 4vw), 4rem);
	--section-l: clamp(4rem, calc(3.05rem + 4vw), 6rem);
	--section-xl: clamp(5.125rem, calc(2.691rem + 10.25vw), 10.25rem);
	--section-xxl: clamp(8rem, calc(6.931rem + 4.5vw), 10.25rem);
	--section-header: clamp(5.125rem, calc(2.691rem + 10.25vw), 10.25rem);
	--section-sides: clamp(1rem, calc(0.525rem + 2vw), 2rem);
	--section-1440: 1440px;
	--section-hero: 100vh;

	/* Header */
	--header-height: 120px;
}

/* 3. Base --------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media not all {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background-color: var(--color-white);
	color: var(--color-black);
	font-family: var(--text-font);
	font-size: var(--text-m);
	font-weight: 300;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-header);
	font-weight: 400;
	line-height: 1.2;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus-visible {
	opacity: 0.8;
}

button,
.site-header button,
.offcanvas button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	letter-spacing: inherit;
	text-transform: none;
	cursor: pointer;
}

:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 4px;
}

hr {
	margin: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 100;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75em 1.5em;
	clip: auto;
	background: var(--color-white);
	color: var(--color-black);
}

/* 4. Classi globali ----------------------------------------------------- */

/* Titoli */
.header-xxl {
	font-family: var(--font-header);
	font-weight: 200;
	font-size: var(--header-xxl);
	letter-spacing: var(--text-spacing-header);
	text-transform: uppercase;
}
.header-xl {
	font-family: var(--font-header);
	font-weight: 300;
	font-size: var(--header-xl);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.header-l {
	font-family: var(--font-header);
	font-weight: 300;
	font-size: var(--header-l);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-wrap: balance;
}
.header-m {
	font-family: var(--font-header);
	font-weight: 400;
	font-size: var(--header-m);
	letter-spacing: var(--text-spacing-header);
	text-transform: uppercase;
	text-wrap: balance;
}
.header-s {
	font-family: var(--font-header);
	font-weight: 500;
	font-size: var(--header-s);
	color: inherit;
	letter-spacing: var(--text-spacing-header);
	text-transform: uppercase;
}
.header-xs {
	font-family: var(--font-header);
	font-weight: 600;
	font-size: var(--header-xxs);
	color: var(--color-black);
	letter-spacing: var(--text-spacing-header);
	text-transform: uppercase;
}
.header-sub {
	font-family: var(--font-header);
	font-weight: 300;
	font-size: var(--header-s);
	letter-spacing: var(--text-spacing-header);
	text-align: center;
	text-transform: uppercase;
	text-wrap: balance;
}

/* Testo */
.text-font-s {
	font-family: var(--text-font);
	font-weight: 300;
	font-size: var(--text-s);
	letter-spacing: var(--text-spacing-body);
	text-wrap: balance;
}
.text-font-m {
	font-family: var(--text-font);
	font-weight: 300;
	font-size: var(--text-m);
	letter-spacing: var(--text-spacing-body);
	text-wrap: balance;
}
.text-footer {
	font-family: var(--font-header);
	font-weight: 400;
	font-size: var(--text-xs);
	color: var(--color-white);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* Sezioni */
.section-xs {
	margin-block: var(--section-xs);
}
.section-s {
	display: flex;
	flex-wrap: wrap;
	gap: var(--section-s);
}
.section-m {
	padding-block: var(--section-m);
}
.section-l {
	padding-block: var(--section-l);
}
.section-xl {
	padding-block: var(--section-xl);
}
.section-xxl {
	padding-block: var(--section-xxl);
}
.section-header {
	display: flex;
	flex-direction: column;
	padding: var(--section-header) var(--section-sides);
}
.section-sides {
	padding-inline: var(--section-sides);
}
.section-width-1440 {
	width: 100%;
	max-width: var(--section-1440);
	margin-inline: auto;
}

/* Layout */
.width-60-80-100 {
	width: 60%;
}
.vh-100-80 {
	height: 100vh;
}
.vh-100-60-50 {
	height: 100vh;
}
.gap-0 {
	gap: 0;
}
.gap-xs {
	gap: var(--space-xs);
}
.gap-m {
	gap: var(--space-m);
}
.gap-l {
	gap: var(--space-l);
}

/* Componenti */
.divider-footer {
	width: 100%;
	border: 0;
	border-bottom: 0.25px solid var(--color-gray-200-rr);
}
.home-card {
	display: flex;
	flex-direction: column;
	row-gap: clamp(0.75rem, calc(0.394rem + 1.5vw), 1.5rem);
	padding: 0 0 var(--section-l);
	border-left: 1px solid var(--color-gray-200-rr);
}
.carousel-picture {
	display: flex;
	flex-direction: column;
	width: 60%;
}
.carousel-data {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1 0 auto;
	gap: var(--space-xs);
	width: 40%;
	margin-top: var(--space-xs);
	padding-inline: var(--section-sides);
}
.scaled-pictures {
	margin-top: -6rem;
}
.icon-scroll {
	position: absolute;
	bottom: 0;
	align-self: center;
	width: 6px;
	height: 80px;
}

@media (max-width: 1024px) {
	.width-60-80-100 {
		width: 80%;
	}
	.vh-100-60-50 {
		height: 60vh;
	}
	.carousel-picture,
	.carousel-data {
		width: 100%;
		flex: 1 0 auto;
	}
	.scaled-pictures {
		margin-top: -2rem;
	}
	.icon-scroll {
		display: none;
	}
}

@media (max-width: 767px) {
	.width-60-80-100 {
		width: 100%;
	}
	.vh-100-60-50 {
		height: 50vh;
	}
	.carousel-data {
		padding-top: var(--space-xs);
	}
	.scaled-pictures {
		margin-top: 1rem;
	}
	.section-s {
		padding-top: clamp(1rem, calc(0.525rem + 2vw), 2rem);
	}
}

/* 5. Pulsanti ----------------------------------------------------------- */
.button-positive,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: var(--section-s);
	padding: 0.75em 2em;
	font-family: var(--font-header);
	font-weight: 600;
	font-size: var(--header-xxs);
	letter-spacing: var(--text-spacing-header);
	text-transform: uppercase;
	color: var(--color-white);
	background-color: var(--color-transparent);
	border: 1px solid var(--color-white);
	border-radius: 2em;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.button-positive:hover,
.button-positive:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	opacity: 1;
	color: var(--color-black-rr);
	background-color: var(--color-white);
}

/* 6. Header ------------------------------------------------------------- */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
}
.site-header__bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	height: var(--header-height);
	padding-block: 10px;
	border-bottom: 0.75px solid var(--color-white);
}
.site-header .menu-trigger {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	justify-self: start;
	color: var(--color-white);
	transition: opacity 0.3s ease;
}
.menu-trigger__icon {
	width: 24px;
	height: 24px;
}
.menu-trigger__label,
.offcanvas__close span {
	font-family: var(--font-header);
	font-weight: 600;
	font-size: clamp(0.75rem, calc(0.691rem + 0.25vh), 0.875rem);
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.menu-is-open .menu-trigger {
	opacity: 0;
	pointer-events: none;
}
.site-logo {
	justify-self: center;
}
.site-logo img {
	width: 80px;
	height: auto;
}
.site-header__lang {
	justify-self: end;
}
.lang-switch {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
}
.lang-switch a {
	display: block;
	padding: 5px 10px 6px;
	font-family: var(--font-header);
	font-weight: 600;
	font-size: clamp(0.875rem, calc(0.816rem + 0.25vh), 1rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-white);
}

/* 7. Menu a comparsa ---------------------------------------------------- */
.offcanvas {
	position: fixed;
	inset: 0;
	z-index: 50;
	visibility: hidden;
	transition: visibility 0s linear 0.5s;
}
.offcanvas[aria-hidden="false"] {
	visibility: visible;
	transition-delay: 0s;
}
.offcanvas__overlay {
	position: absolute;
	inset: 0;
}
.offcanvas__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 9rem;
	width: 40vw;
	height: 100%;
	overflow-y: auto;
	padding: 3rem clamp(1.875rem, calc(-0.203rem + 8.75vw), 6.25rem) 4rem var(--section-sides);
	background-color: #22222273;
	-webkit-backdrop-filter: blur(30px);
	backdrop-filter: blur(30px);
	transform: translateX(-100%);
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.offcanvas[aria-hidden="false"] .offcanvas__panel {
	transform: translateX(0);
}
.offcanvas .offcanvas__close {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 15px;
	color: var(--color-white);
}
.offcanvas__close:hover {
	color: var(--color-white-opacity);
}
.offcanvas__close-icon {
	width: 12px;
	height: 12px;
}
.offcanvas__menu {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2.4rem;
	list-style: none;
	padding: 0;
	overflow: hidden;
}
.offcanvas__menu a {
	font-family: var(--font-header);
	font-weight: 600;
	font-size: 1.125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-white-opacity);
	transition: color 0.3s ease;
}
.offcanvas__menu a:hover,
.offcanvas__menu a:focus-visible,
.offcanvas__menu .current-menu-item > a {
	opacity: 1;
	color: var(--color-white);
}

/* Voci che entrano da sinistra, a cascata */
.offcanvas__menu > li {
	opacity: 0;
	transform: translateX(-100%);
	transition: opacity 0.3s ease, transform 0s linear 0.3s;
}
.offcanvas[aria-hidden="false"] .offcanvas__menu > li {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media not all {
	.offcanvas__panel,
	.offcanvas__menu > li,
	.offcanvas[aria-hidden="false"] .offcanvas__menu > li {
		transform: none;
		transition: opacity 0.3s ease;
	}
}

@media (max-width: 1024px) {
	.offcanvas__panel {
		width: 70%;
	}
}

@media (max-width: 767px) {
	.offcanvas__panel {
		width: 100%;
		padding: clamp(1rem, calc(-1.494rem + 10.5vw), 6.25rem);
	}
}

/* 8. Footer ------------------------------------------------------------- */
.site-footer {
	background-color: var(--color-black-rr);
	color: var(--color-white);
}
.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}
.site-footer__logo {
	align-self: center;
	width: 80px;
	height: 80px;
	margin-top: var(--section-m);
	margin-bottom: var(--section-xs);
}
.site-footer__contact,
.site-footer__companies {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: start;
	gap: 24px;
}
.site-footer__person {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.site-footer .header-xs,
.site-footer .header-s {
	color: var(--color-white);
}
.site-footer__company {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	margin-block: var(--section-xs);
}
.site-footer__company ul {
	list-style: none;
	padding: 0;
	line-height: 1.2;
}
.social {
	display: flex;
	gap: 5px;
	margin-left: -0.3em;
}
.social a {
	display: block;
	padding: 0.3em;
	color: var(--color-gray-200-rr);
	transition: color 0.3s ease, transform 0.3s ease;
}
.social a:hover,
.social a:focus-visible {
	opacity: 1;
	color: var(--color-white);
	transform: scale(1.1);
}
.social svg {
	width: 1.25em;
	height: 1.25em;
}
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-xs);
	padding-top: var(--space-xs);
}
.site-footer__bottom p:first-child {
	flex: 1 0 auto;
}

@media (max-width: 1024px) {
	.site-footer__contact,
	.site-footer__companies {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.site-footer__contact,
	.site-footer__companies {
		grid-template-columns: 1fr;
	}
	.site-footer__bottom {
		flex-direction: column;
	}
}

/* 9. Pagine legali ------------------------------------------------------ */
body.is-legal {
	background-color: var(--color-bg-legal);
	color: var(--color-black);
}
.legal__header {
	align-items: center;
	text-align: center;
	gap: var(--space-m);
}
.legal__content {
	padding-bottom: var(--section-xl);
	text-wrap: pretty;
}
.legal__content h2,
.legal__content h3 {
	margin: 2em 0 0.75em;
	font-size: var(--header-m);
	text-transform: uppercase;
	letter-spacing: var(--text-spacing-header);
}
.legal__content p,
.legal__content ul,
.legal__content ol {
	margin-bottom: 1em;
}
.legal__content a {
	text-decoration: underline;
}

/* Finché Elementor è attivo, il suo kit dà uno stile a tutti i <button>: qui lo annulliamo. */
.site-header .menu-trigger,
.site-header .menu-trigger:hover,
.site-header .menu-trigger:focus,
.offcanvas .offcanvas__close,
.offcanvas .offcanvas__close:hover,
.offcanvas .offcanvas__close:focus {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--color-white);
}
.offcanvas .offcanvas__close:hover {
	color: var(--color-white-opacity);
}

/* ==========================================================================
   10. Contenuto a blocchi
   ========================================================================== */

/* Azzeramento dei margini dei blocchi di WordPress: gli spazi li danno le classi globali */
.site-main .wp-block-image,
.site-main .wp-block-columns,
.site-main .wp-block-buttons,
.site-main .wp-block-group,
.site-main figure {
	margin: 0;
}
.site-main .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}
.site-main :where(h1, h2, h3, h4, h5, h6, p) {
	margin: 0;
}

/* Sfondi della tavolozza: colore del testo coerente */
.has-white-background-color,
.has-whitesmoke-background-color,
.has-light-blue-background-color,
.has-antique-background-color {
	color: var(--color-black);
}
.has-slate-background-color,
.has-blu-background-color,
.has-dark-background-color,
.has-black-background-color {
	color: var(--color-white);
}
.has-white-background-color { background-color: #ffffff; }
.has-whitesmoke-background-color { background-color: #f2f2f2; }
.has-light-blue-background-color { background-color: #b4c7cb; }
.has-antique-background-color { background-color: #e7d2c3; }
.has-slate-background-color { background-color: #73859f; }
.has-blu-background-color { background-color: #2c2e3a; }
.has-dark-background-color { background-color: #222222; }
.has-black-background-color { background-color: #151515; }

/* Colonna centrata: titoli e testi centrati uno sotto l'altro */
.stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}
.stack > .wp-block-group.is-style-carousel,
.stack > .wp-block-group[class*="is-style-carousel"],
.stack > .wp-block-image.is-style-zoom {
	align-self: stretch;
	text-align: left;
}
.stack--left {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.section-intro-top {
	margin-top: 96px;
}

/* Immagine a tutta larghezza dentro una sezione con margini laterali */
.full-bleed {
	align-self: stretch;
	margin-inline: calc(var(--section-sides) * -1) !important;
	padding-top: var(--section-l);
}

/* Colonne divise (immagine + testo) */
.site-main .split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 96px;
}
.site-main .split.split--around {
	justify-content: space-around;
	gap: 24px;
}
.split .wp-block-column {
	flex-grow: 0;
}
.split .wp-block-column.stack--left,
.split .wp-block-column .stack--left {
	gap: 24px;
}
.images-column {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.images-column--tight {
	gap: 12px;
}

@media (max-width: 1024px) {
	.site-main .split,
	.site-main .wp-block-columns.stack-tablet {
		flex-direction: column;
		align-items: stretch;
	}
	.site-main .split > .wp-block-column,
	.site-main .wp-block-columns.stack-tablet > .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}
}

/* Interni su misura: testo fisso (sticky) a sinistra, foto che scorrono a destra.
   Valori dalla pagina originale: colonne 45% che crescono, testo con margini laterali,
   sticky in alto; su telefono il testo torna normale sopra le foto. */
.site-main .split.split--flush {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0;
}
.site-main .split--flush > .interiors-text {
	flex: 1 0 auto !important;
	flex-basis: 45% !important;
	width: 45%;
	position: sticky;
	top: 0;
	align-self: flex-start;
	justify-content: center;
	padding: var(--space-xl) var(--section-sides) var(--space-xs);
}
.site-main .split--flush > .images-column {
	flex: 1 0 auto !important;
	flex-basis: 45% !important;
	width: 45%;
	padding: 0;
}
@media (max-width: 767px) {
	.site-main .split.split--flush {
		flex-direction: column;
		align-items: stretch;
	}
	.site-main .split--flush > .interiors-text,
	.site-main .split--flush > .images-column {
		flex-basis: 100% !important;
		width: 100%;
	}
	.site-main .split--flush > .interiors-text {
		position: static;
		padding-top: var(--space-xs);
	}
}

/* Foto sotto l'intestazione (componente "Expanding image grid" dell'originale):
   allo scorrimento verso il basso si ingrandisce (z da -800 px a 0 su desktop,
   da -300 px su tablet, nessun effetto su telefono), ancorata in alto al centro. */
.site-main .wp-block-image.fx-shrink {
	overflow: visible;
}
.site-main .wp-block-image.fx-shrink img {
	display: block;
	width: 100%;
	height: auto;
	transform: scale(var(--shrink, 1));
	transform-origin: 50% 0;
	will-change: transform;
}

/* Griglia di immagini 2 × 2 */
.image-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 48px;
	width: 100%;
}
@media (max-width: 767px) {
	.image-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Card della home */
.site-main .home-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px 24px;
}
.home-cards > .wp-block-column {
	flex-basis: auto !important;
}
.home-card .wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
}
.home-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding-left: 32px;
}
.home-card__body .header-s {
	color: inherit;
}
@media (max-width: 1024px) {
	.site-main .home-cards {
		grid-template-columns: 1fr;
	}
}

/* Pulsante (blocco Pulsanti con classe button-positive) */
.wp-block-button.button-positive {
	all: unset;
}
.wp-block-buttons {
	display: flex;
	gap: 16px;
}
.wp-block-button__link {
	text-decoration: none;
}

/* Hero ------------------------------------------------------------------ */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	height: 100svh;
	min-height: 480px;
	overflow: hidden;
	background-color: #0a0a0a;
	color: var(--color-white);
	text-align: center;
}
.hero--large {
	height: 100vh;
}
@media (max-width: 1024px) {
	.hero--large {
		height: 80vh;
	}
	.hero--responsive {
		height: 60vh;
	}
}
@media (max-width: 767px) {
	.hero--responsive {
		height: 50vh;
	}
}
.hero__media {
	position: absolute;
	inset: 0;
}
.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, 177.78vh);
	height: max(100%, 56.25vw);
	border: 0;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 1.4s ease;
	pointer-events: none;
}
.hero.is-playing .hero__video {
	opacity: 1;
}
.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 0 var(--section-sides);
}
.hero__content .header-xl,
.hero__content .header-xxl,
.hero__content .header-m {
	color: var(--color-white);
}
.hero__scroll {
	position: absolute;
	bottom: 0;
	left: 50%;
	z-index: 1;
	width: 6px;
	height: 80px;
	color: var(--color-white);
	transform: translateX(-50%);
}
.hero__scroll svg {
	width: 100%;
	height: 100%;
}
.scroll-track {
	opacity: 0.25;
}
.scroll-moving {
	opacity: 0.5;
	stroke-dasharray: 40 60;
	animation: solaris-scroll 2s linear infinite;
}
@keyframes solaris-scroll {
	from { stroke-dashoffset: 100; }
	to { stroke-dashoffset: 0; }
}
@media (max-width: 1024px) {
	.hero__scroll {
		display: none;
	}
}
@media not all {
	.scroll-moving {
		animation: none;
		stroke-dashoffset: 40;
	}
}

/* Immagine con zoom allo scorrimento ------------------------------------ */
.site-main .wp-block-image.is-style-zoom {
	display: block;
	width: 100%;
	overflow: hidden;
}
/* La foto mantiene sempre le proporzioni originali (es. 16:9), senza tagli */
.site-main .wp-block-image.is-style-zoom img {
	display: block;
	width: 100%;
	height: auto;
	transform: scale(var(--zoom, 1));
	transform-origin: center center;
	will-change: transform;
}

/* Immagini sfalsate ----------------------------------------------------- */
.site-main .wp-block-group.is-style-stagger {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.is-style-stagger > .wp-block-image {
	width: 55%;
}
.is-style-stagger > .wp-block-image:nth-child(even) {
	align-self: flex-end;
}
.is-style-stagger > .wp-block-image + .wp-block-image {
	margin-top: -6rem;
}
@media (max-width: 1024px) {
	.is-style-stagger > .wp-block-image + .wp-block-image {
		margin-top: -2rem;
	}
}
@media (max-width: 767px) {
	.is-style-stagger > .wp-block-image {
		width: 100%;
	}
	.is-style-stagger > .wp-block-image + .wp-block-image {
		margin-top: 1rem;
	}
}

/* Carousel -------------------------------------------------------------- */
.carousel {
	--carousel-ui: #222222;
	--carousel-ui-inverse: #ffffff;
	position: relative;
	width: 100%;
	overflow-x: clip;
}
.carousel--on-dark {
	--carousel-ui: #ffffff;
	--carousel-ui-inverse: #222222;
}
.carousel__viewport {
	overflow: visible;
	touch-action: pan-y;
	cursor: grab;
}
.carousel__viewport:active {
	cursor: grabbing;
}
.carousel__track {
	display: flex;
	column-gap: 0;
	transition: transform 0.5s ease;
	will-change: transform;
}
.carousel__slide {
	flex: 0 0 auto;
	min-width: 0;
	user-select: none;
}
.carousel__slide img {
	-webkit-user-drag: none;
	pointer-events: none;
}
/* Prima che lo script prepari il carousel le slide stanno in fila */
.wp-block-group[class*="is-style-carousel"]:not(.is-ready) {
	display: flex;
	overflow: hidden;
}
.wp-block-group[class*="is-style-carousel"]:not(.is-ready) > * {
	flex: 0 0 100%;
}

.carousel__controls {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--carousel-arrows-height, 100%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}
.carousel .carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.125rem;
	height: 3.125rem;
	margin-inline: var(--section-sides);
	padding: 0;
	border: 1px solid var(--carousel-ui);
	border-radius: 50%;
	background: transparent;
	color: var(--carousel-ui);
	opacity: 0;
	pointer-events: auto;
	transition: opacity 0.3s, color 0.3s, background-color 0.3s;
}
.carousel:hover .carousel__arrow,
.carousel .carousel__arrow:focus-visible {
	opacity: 1;
}
.carousel .carousel__arrow:hover,
.carousel .carousel__arrow:focus-visible {
	color: var(--carousel-ui-inverse);
	background-color: var(--carousel-ui);
}
.carousel__arrow svg {
	width: 0.5rem;
	height: 0.875rem;
}
@media (max-width: 1024px) {
	.carousel .carousel__arrow {
		display: none;
	}
}

.carousel__dots {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	padding: 2rem 0 0.3125rem;
}
.carousel .carousel__dot {
	position: relative;
	width: 1rem;
	height: 1rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--carousel-ui) 50%, transparent) 0 0.2rem, transparent 0.2rem 100%);
	cursor: pointer;
}
.carousel .carousel__dot.is-selected {
	background: radial-gradient(circle, var(--carousel-ui) 0 0.2rem, transparent 0.2rem 100%);
}
.carousel__dot::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
	background: conic-gradient(from 270deg, var(--carousel-ui) var(--dot-progress), transparent 0);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.09375rem), #000 calc(100% - 0.09375rem));
	mask: radial-gradient(farthest-side, transparent calc(100% - 0.09375rem), #000 calc(100% - 0.09375rem));
}
@property --dot-progress {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
@keyframes solaris-dot-progress {
	from { --dot-progress: 0deg; }
	to { --dot-progress: 360deg; }
}
.carousel.is-running .carousel__dot.is-selected::before {
	animation: solaris-dot-progress var(--carousel-delay, 3s) linear forwards;
}
.carousel--static .carousel__dot.is-selected::before {
	--dot-progress: 360deg;
	animation: none;
}
@media (max-width: 767px) {
	.carousel__dots {
		padding-top: 1.25rem;
	}
}

/* Variante 1: immagini (3 visibili, quella centrale grande) */
.carousel--carousel .carousel__slide {
	width: 55.556%;
}
.carousel--carousel .carousel__slide img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transform: scale(0.8);
	transition: transform 0.5s ease;
}
.carousel--carousel .carousel__slide.is-active img {
	transform: scale(1);
}
@media (max-width: 1024px) {
	.carousel--carousel .carousel__slide {
		width: 51.1%;
	}
}
@media (max-width: 767px) {
	.carousel--carousel .carousel__slide {
		width: 50%;
	}
}

/* Variante 2: slide a tutto schermo con titolo in basso (home) */
.carousel--carousel-slides .carousel__slide {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	background: #000;
}
.carousel--carousel-slides .carousel__slide .wp-block-image,
.carousel--carousel-slides .carousel__slide .wp-block-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.slide-caption {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.2em;
	padding: 0 50px 72px;
	color: var(--color-white);
	text-align: center;
}
.slide-caption .header-xs {
	color: var(--color-white);
}
.slide-caption p:empty {
	display: none;
}
.carousel--carousel-slides .carousel__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding-bottom: 32px;
}
.carousel--carousel-slides {
	--carousel-ui: #ffffff;
	--carousel-ui-inverse: #000000;
}

/* Variante 3: yacht (foto + dati tecnici) */
.carousel--carousel-yachts .carousel__track {
	column-gap: 2rem;
	padding-right: 2rem;
}
.carousel--carousel-yachts .carousel__slide {
	width: 87%;
}
.yacht-slide {
	display: flex;
}
.yacht-slide .carousel-picture {
	width: 65%;
	flex: 0 0 65%;
}
.yacht-slide .carousel-picture img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transform: scale(0.7);
	transform-origin: 0% 100%;
	transition: transform 0.8s;
}
.yacht-slide .carousel-data {
	width: 35%;
	flex: 0 0 35%;
	justify-content: flex-start;
	margin-top: var(--space-xs);
	padding-top: var(--section-xl);
	padding-inline: var(--section-sides);
	opacity: 0;
	transition: opacity 0.6s;
}
/* Dati dei modelli: righe ravvicinate, un po' di stacco dopo il nome */
.yacht-slide .carousel-data.stack--left {
	gap: 4px;
}
.yacht-slide .carousel-data > h2,
.yacht-slide .carousel-data > h3 {
	margin-bottom: var(--space-xs);
}
.yacht-slide .carousel-data > h3 {
	margin-top: var(--space-xs);
}
.carousel__slide.is-active .carousel-picture img {
	transform: scale(1);
}
.carousel__slide.is-active .carousel-data {
	opacity: 1;
}
.yacht-slide .carousel-data .header-xs {
	margin-top: 8px;
}
.yacht-slide .carousel-data p:empty,
.yacht-slide .carousel-data h3:empty {
	display: none;
}
@media (max-width: 1024px) {
	.yacht-slide {
		flex-direction: column;
	}
	.yacht-slide .carousel-picture,
	.yacht-slide .carousel-data {
		width: 100%;
		flex-basis: auto;
	}
	.yacht-slide .carousel-picture img {
		transform: none;
	}
	.yacht-slide .carousel-data {
		padding-top: 1.5rem;
	}
}

/* Pagina mappa del sito */
.sitemap .wp-block-page-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}
.sitemap .wp-block-page-list a {
	text-decoration: underline;
}

/* Mappa del sito dentro il modello "Pagina legale" */
.legal__content .wp-block-page-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75em;
	text-transform: uppercase;
	letter-spacing: var(--text-spacing-body);
}

/* Contenitori larghi max 1440px sempre centrati (anche dentro il contenuto a blocchi) */
.site-main .section-width-1440 {
	margin-inline: auto;
}

/* ==========================================================================
   11. Effetti (come nel sito Elementor)
   ========================================================================== */

/* Hero: il titolo compare dopo 2 s; nelle hero video sparisce dopo 6 s */
@keyframes solaris-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes solaris-fade-out {
	from { opacity: 1; }
	to { opacity: 0; }
}
.hero--fx-fade-in .hero__content {
	animation: solaris-fade-in 0.6s linear 2s both;
}
.hero--fx-fade-in-out .hero__content {
	animation: solaris-fade-in 0.6s linear 2s both, solaris-fade-out 1s linear 6.1s forwards;
}
.hero--fx-none .hero__scroll {
	animation: solaris-fade-in 0.8s ease-out 2s both;
}

/* Titoli e testi introduttivi delle sezioni: salgono di 100 px comparendo */
.js .section-header > :is(h2, h3, p),
.js .reveal-up {
	opacity: 0;
	transform: translateY(100px);
}
.js .section-header > :is(h2, h3, p).is-revealed,
.js .reveal-up.is-revealed {
	opacity: 1;
	transform: none;
	transition: opacity 1.25s cubic-bezier(0, 0, 0.58, 1) 0.5s, transform 1.25s cubic-bezier(0, 0, 0.58, 1) 0.5s;
}
/* Contenuto della hero "scroll" (es. "Beyond the surface"): più rapido, senza attesa */
.js .hero__content.reveal-up.is-revealed {
	transition: opacity 0.6s cubic-bezier(0.42, 0, 1, 1), transform 0.6s cubic-bezier(0.42, 0, 1, 1);
}

@media not all {
	.hero .hero__content,
	.hero .hero__scroll {
		animation: none !important;
	}
	.js .section-header > :is(h2, h3, p),
	.js .reveal-up {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Comparsa di blocchi e immagini (classi fx-… nel campo "Classe CSS aggiuntiva")
   fx-slide-up: sale dal basso (0,4 s) · fx-slide-left / fx-slide-right: entra da sinistra / destra (0,6 s)
   fx-fade: dissolvenza (1 s) · fx-delay-200 / -250 / -500: ritardo in millisecondi
   fx-parallax-60 / fx-parallax-120: si sposta in verticale durante lo scorrimento */
.site-main {
	overflow-x: clip;
}
.js .fx-slide-up,
.js .fx-slide-left,
.js .fx-slide-right,
.js .fx-fade {
	opacity: 0;
}
.js .fx-slide-up { transform: translateY(100px); }
.js .fx-slide-left { transform: translateX(-100px); }
.js .fx-slide-right { transform: translateX(100px); }
.js .fx-slide-up.is-revealed {
	transition: opacity 0.4s cubic-bezier(0, 0, 0.58, 1), transform 0.4s cubic-bezier(0, 0, 0.58, 1);
}
.js .fx-slide-left.is-revealed,
.js .fx-slide-right.is-revealed {
	transition: opacity 0.6s cubic-bezier(0.42, 0, 1, 1), transform 0.6s cubic-bezier(0.42, 0, 1, 1);
}
.js .fx-fade.is-revealed {
	transition: opacity 1s cubic-bezier(0, 0, 0.58, 1);
}
.js .is-revealed:is(.fx-slide-up, .fx-slide-left, .fx-slide-right, .fx-fade) {
	opacity: 1;
	transform: none;
}
.js .fx-delay-200.is-revealed { transition-delay: 0.2s; }
.js .fx-delay-250.is-revealed { transition-delay: 0.25s; }
.js .fx-delay-500.is-revealed { transition-delay: 0.5s; }
[class*="fx-parallax-"] {
	translate: 0 var(--parallax, 0px);
	will-change: translate;
}
@media not all {
	.js .fx-slide-up,
	.js .fx-slide-left,
	.js .fx-slide-right,
	.js .fx-fade {
		opacity: 1;
		transform: none;
		transition: none;
	}
	[class*="fx-parallax-"] {
		translate: none;
	}
}

/* Sfondi fotografici dietro le immagini con zoom (come nel sito Elementor) */
.bg-yard {
	background: url("/wp-content/uploads/2026/10/yard-background-scaled.jpg") center / cover no-repeat;
}
.bg-yards {
	background: url("/wp-content/uploads/2026/10/yards-background-scaled.jpg") bottom center / cover no-repeat;
}
.bg-carbon {
	background: url("/wp-content/uploads/2026/09/carbon-background-1024x576.webp") repeat;
}

/* Hero: l'immagine (o il video) entra sfocata e si mette a fuoco, come nel sito Rolls-Royce */
.js .hero__media {
	filter: blur(28px);
	transform: scale(1.08);
	transition: filter 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: filter, transform;
}
.js .hero.is-loaded .hero__media {
	filter: blur(0);
	transform: scale(1);
}
@media not all {
	.js .hero__media {
		filter: none;
		transform: none;
		transition: none;
	}
}

/* ==========================================================================
   12. Header che si riduce allo scorrimento e footer "reveal" (come Rolls-Royce)
   ========================================================================== */

/* Header fisso: --shrink va da 0 (in cima) a 1 (ridotto), lo imposta lo script */
.site-header {
	--shrink: 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.is-hidden {
	transform: translateY(-120px);
}
.site-header__inner {
	background: linear-gradient(0deg, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.25));
	transform: translateY(calc(var(--shrink) * -48px));
}
.site-header__bar > * {
	transform: translateY(calc(var(--shrink) * 25px));
}
.site-logo {
	position: relative;
	display: block;
}
.site-header .site-logo img.site-logo__full {
	width: 80px;
	opacity: calc(1 - var(--shrink));
}
.site-header .site-logo .site-logo__arcs {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 38px;
	height: 38px;
	color: var(--color-white);
	opacity: min(1, calc(var(--shrink) * 4));
	/* in cima coincide con gli archi del logo intero; ridotto scende al centro della barra */
	transform: translate(-50%, calc(-50% - 21px * (1 - var(--shrink)))) scale(calc(1 - var(--shrink) * 0.15));
	pointer-events: none;
	transition: color 0.3s ease;
}
.site-header.is-on-light .site-logo .site-logo__arcs {
	color: var(--color-black);
}

/* Sopra le sezioni chiare il header diventa scuro, per restare leggibile */
.site-header.is-on-light .site-header__bar {
	border-bottom-color: var(--color-black);
}
.site-header.is-on-light .menu-trigger,
.site-header.is-on-light .menu-trigger:hover,
.site-header.is-on-light .lang-switch a {
	color: var(--color-black);
}
.site-header.is-on-light .site-logo img.site-logo__full {
	filter: invert(1);
}
.site-header__inner,
.site-header__bar,
.site-header .menu-trigger,
.site-header .lang-switch a,
.site-header .site-logo img {
	transition: color 0.3s ease, border-color 0.3s ease, filter 0.3s ease, background 0.3s ease;
}

/* Footer "reveal": il contenuto scorre via e scopre il footer, fermo sotto */
.site-main {
	position: relative;
	z-index: 1;
	background-color: var(--page-bg, var(--color-white));
}
body.is-legal {
	--page-bg: var(--color-bg-legal);
}
.site-footer {
	position: sticky;
	bottom: min(0px, calc(100vh - var(--footer-h, 0px)));
	z-index: 0;
}

@media not all {
	.site-header {
		transition: none;
	}
}

/* ==========================================================================
   13. Menu laterale come Rolls-Royce
   Apertura: pannello 0,8 s power3.out · velo 0,4 s · voci 0,9 s power3.out
             a cascata dall'ultima alla prima (0,1 s), partenza a 0,075 s.
   Chiusura: voci 0,9 s power3.in a cascata dalla prima (0,1 s) · velo 0,2 s
             dopo 0,4 s · pannello 0,8 s power3.in dopo 0,65 s.
   ========================================================================== */
:root {
	--ease-power3-out: cubic-bezier(0.215, 0.61, 0.355, 1);
	--ease-power3-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
	--ease-power2-inout: cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

/* Il pulsante del menu resta visibile sopra il pannello e diventa "Chiudi" */
.offcanvas {
	z-index: 15;
	visibility: hidden;
	transition: visibility 0s linear 1.5s;
}
.offcanvas[aria-hidden="false"] {
	visibility: visible;
	transition-delay: 0s;
}
.menu-is-open .menu-trigger {
	opacity: 1;
	pointer-events: auto;
}

/* Velo scuro sul resto della pagina */
.offcanvas .offcanvas__overlay {
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.2s linear 0.4s;
}
.offcanvas[aria-hidden="false"] .offcanvas__overlay {
	opacity: 0.8;
	transition: opacity 0.4s linear 0s;
}

/* Pannello: vetro sfocato. Larghezze e margini dalla griglia di Rolls-Royce
   (colonne da 16 px + 12 colonne fluide; da 1440 px colonne fisse da 96 px). */
.offcanvas .offcanvas__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	padding: 0 16px;
	background-color: rgba(0, 0, 0, 0.004);
	-webkit-backdrop-filter: blur(150px) saturate(1.8);
	backdrop-filter: blur(150px) saturate(1.8);
	transform: translateX(-100%);
	transition: transform 0.8s var(--ease-power3-in) 0.65s;
}
.offcanvas[aria-hidden="false"] .offcanvas__panel {
	transform: translateX(0);
	transition: transform 0.8s var(--ease-power3-out) 0s;
}
.offcanvas .offcanvas__menu > li { padding-right: 16px; }
@media (min-width: 768px) {
	.offcanvas .offcanvas__panel {
		width: calc(144px + (100vw - 208px) * 0.75);
		padding: 0 0 0 16px;
	}
	.offcanvas .offcanvas__menu > li { padding-right: 40px; }
}
@media (min-width: 1024px) {
	.offcanvas .offcanvas__panel {
		width: calc(80px + (100vw - 208px) * 5 / 12);
	}
	.offcanvas .offcanvas__menu > li { padding-right: calc(16px + 6.5vw); }
}
@media (min-width: 1440px) {
	.offcanvas .offcanvas__panel {
		width: calc(576px + (100vw - 1392px) / 2);
		padding-left: calc(32px + (100vw - 1392px) / 2);
	}
}

/* Voci del menu */
.offcanvas .offcanvas__menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 30px;
	overflow: visible;
}
.offcanvas .offcanvas__menu > li {
	width: 100%;
	text-align: right;
	opacity: 0;
	transform: translateX(-100%);
	will-change: transform, opacity;
}
/* Senza JS le voci restano visibili a menu aperto */
html:not(.js) .offcanvas[aria-hidden="false"] .offcanvas__menu > li {
	opacity: 1;
	transform: none;
}
.offcanvas .offcanvas__menu a {
	display: inline-block;
	line-height: 30px;
	font-family: var(--font-header);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 1.88px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	transition: color 0.3s ease;
}
.offcanvas .offcanvas__menu a:hover,
.offcanvas .offcanvas__menu a:focus-visible,
.offcanvas .offcanvas__menu .current-menu-item > a {
	opacity: 1;
	color: #ffffff;
}

/* Icona: tre linee che diventano una X */
.site-header .menu-trigger__icon {
	width: 24px;
	height: 24px;
	overflow: visible;
}
.menu-line {
	transform-box: fill-box;
	transform-origin: center;
	stroke-dasharray: 50 100;
	transition: transform 0.5s var(--ease-power2-inout), stroke-dasharray 0.5s var(--ease-power2-inout), opacity 0.3s var(--ease-power2-inout);
}
.menu-line--mid { stroke-dasharray: 37.5 100; }
.menu-line--bot { stroke-dasharray: 18.8 100; }
.menu-is-open .menu-line--top {
	stroke-dasharray: 50 100;
	transform: translateY(18.8px) rotate(45deg);
}
.menu-is-open .menu-line--mid {
	opacity: 0;
	transform: scaleX(0);
}
.menu-is-open .menu-line--bot {
	stroke-dasharray: 50 100;
	transform: translateY(-18.7px) rotate(-45deg);
}

/* Scritta: "Menu" sfuma via e lascia il posto a "Chiudi" (0,25 s) */
.menu-trigger__labels {
	display: grid;
}
.menu-trigger__labels > span {
	grid-area: 1 / 1;
	transition: opacity 0.25s var(--ease-power2-inout);
}
.menu-trigger__label--close {
	opacity: 0;
}
.menu-is-open .menu-trigger__label--open {
	opacity: 0;
}
.menu-is-open .menu-trigger__label--close {
	opacity: 1;
	transition-delay: 0.05s;
}

/* Con il menu aperto il header resta chiaro su scuro e non sparisce */
.menu-is-open .site-header {
	transform: none;
}

@media not all {
	.offcanvas .offcanvas__panel,
	.offcanvas .offcanvas__menu > li,
	.offcanvas .offcanvas__overlay,
	.menu-line {
		transition-duration: 0.01s !important;
		transition-delay: 0s !important;
	}
}

/* Footer: i primi due box del contatto sempre su tre righe (le righe le crea solaris_three_lines) */
.site-footer .lines-3 > span {
	display: block;
}

/* Footer: altezze delle sezioni tra i filetti (desktop: circa 160 px e 280 px)
   e testo © a 8 px dal filetto sopra */
.site-footer__bottom {
	padding-top: 0;
	margin-top: -4px;
}
@media (min-width: 1025px) {
	.site-footer__contact.section-m {
		padding-block: 35px 36px;
	}
	.site-footer__companies {
		padding-block: 47px;
	}
}
