/* Replica helpers — keep Cornerstone layout visible without Pro JS */

.x-effect-exit,
.x-effect-entering,
.x-effect-exiting {
	pointer-events: auto !important;
	animation: none !important;
}

/* Exit effects hide the hero without Pro JS. Keep content visible. */
.x-slide-container-viewport.x-effect-exit,
.x-slide-container-content.x-effect-exit,
[class*="m14j-"].x-effect-exit {
	opacity: 1 !important;
}

.x-slide-container-viewport.is-loading .x-slide,
.x-slide-container-viewport:not(.is-ready) .x-slide {
	opacity: 1 !important;
}

.x-slide-container.is-stacked > .x-slide {
	opacity: 0 !important;
	transition: opacity 0.8s ease;
}

.x-slide-container.is-stacked > .x-slide.is-current-slide,
.x-slide-container-viewport:not(.is-ready) .x-slide-container.is-stacked > .x-slide:first-child {
	opacity: 1 !important;
}

.x-slide-container.is-inline {
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.x-dropdown.x-active {
	display: block;
}

body.merin-home,
body.home {
	margin: 0;
}

/* Header: Pro exit-effect hides the yellow utility bar without Cornerstone JS */
.x-masthead .x-effect-exit,
.e1440-e1.m140-3.x-effect-exit,
.m140-3:is(.x-effect-exit) {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}

.x-masthead,
.x-masthead .x-bar,
.x-masthead .x-bar-content,
.x-masthead .x-bar-container {
	overflow: visible;
}

.e1440-e1.x-bar {
	background-color: #fe0;
	z-index: 10002;
	position: relative;
}

.e1440-e2.m140-c {
	position: relative;
	z-index: 1;
	background-image: url("../uploads/2024/07/flag-white.png");
	background-repeat: no-repeat;
	background-position: center right;
	background-size: cover;
}

.e1440-e13.x-bar {
	background-color: #000;
}

.e1440-e14.x-bar-container {
	justify-content: flex-start;
	flex: 0 0 auto;
}

.logo-header,
.e1440-e15.x-image {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.logo-header img,
.e1440-e15 img {
	width: 200px !important;
	height: 50px !important;
	max-width: 200px;
	max-height: 50px;
	object-fit: contain;
	object-position: left center;
}

.e1440-e16.x-bar-container {
	flex-wrap: nowrap;
}

.e1440-e16 .x-anchor-text-primary {
	font-family: "Open Sans", sans-serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}

#languageSel,
.e1440-e6 {
	position: relative;
	z-index: 10003;
	pointer-events: auto;
}

.e1440-e1.x-bar,
.e1440-e1 .x-bar-content,
.e1440-e1.x-bar-space {
	height: 36px;
}

.e1440-e6.x-bar-container {
	align-items: center;
	column-gap: 12px;
	row-gap: 0;
	padding-right: 28px;
}

.e1440-e7 {
	display: flex;
	align-items: center;
	column-gap: 10px;
}

.e1440-e8.x-text {
	padding-right: 0;
	transform: none;
	line-height: 1;
	white-space: nowrap;
}

.e1440-e6 .x-anchor.has-graphic {
	overflow: visible;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

.e1440-e9.x-anchor {
	margin: 0;
}

#languageSel {
	display: flex;
	align-items: center;
	margin-left: 6px;
	padding-left: 12px;
	border-left: 1px solid rgba(0, 0, 0, 0.18);
	overflow: visible;
}

.merin-lang {
	position: relative;
	z-index: 10004;
	display: flex;
	align-items: center;
	overflow: visible;
}

.merin-lang__toggle {
	all: unset;
	display: block;
	box-sizing: content-box;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	line-height: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.merin-lang__toggle:focus,
.merin-lang__toggle:hover,
.merin-lang__toggle:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}

.merin-lang__flag {
	display: block;
	width: 24px !important;
	height: 16px !important;
	min-width: 24px;
	max-width: none;
	object-fit: fill;
	border: 0 !important;
	flex-shrink: 0;
}

.merin-lang__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 4px);
	z-index: 10005;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: max-content;
	min-width: 40px;
	margin: 0;
	padding: 8px;
	background: #fe0;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.merin-lang:hover .merin-lang__menu,
.merin-lang:focus-within .merin-lang__menu,
.merin-lang.is-open .merin-lang__menu {
	display: flex;
}

.merin-lang__option {
	display: block;
	width: 24px;
	line-height: 0;
	background: transparent !important;
	opacity: 0.7;
}

.merin-lang__option.is-current,
.merin-lang__option:hover {
	opacity: 1;
	background: transparent !important;
}

.admin-bar .x-bar-fixed,
.admin-bar .x-bar-top.x-bar-fixed {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .x-bar-fixed,
	.admin-bar .x-bar-top.x-bar-fixed {
		top: 46px;
	}

	.e1440-e6.x-bar-container {
		column-gap: 10px;
		padding-right: 16px;
	}

	.e1440-e7 {
		column-gap: 8px;
	}

	#languageSel {
		margin-left: 2px;
		padding-left: 10px;
	}
}

.x-cart-notification {
	display: none !important;
}

/* Hero: same remaining-viewport height as merin.it (header + slider = 100vh) */
.e1459-e1,
.e1459-e2,
.e1459-e3.x-slide-container-viewport,
.x-slide.m14j-2f {
	height: calc(100vh - 101px);
	min-height: calc(100vh - 101px);
	max-height: none;
}

.x-slide.m14j-2f {
	position: relative;
	z-index: 0;
	isolation: isolate;
	background-color: #383838;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.x-slide.m14j-2f > .x-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.x-slide.m14j-2f > .x-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.08) 100%);
	pointer-events: none;
}

.x-slide.m14j-2f > .x-row {
	position: relative;
	z-index: 1;
}

.x-slide.m14j-2f .x-text-content-text-subheadline {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.x-slide.m14j-2f .m14j-5f.x-image img,
.x-slide.m14j-2f .m14j-5g.x-image img {
	max-width: 320px;
	height: auto;
}

.e1459-e67 {
	opacity: 0.92;
}

.e1459-e72 {
	padding-bottom: 8px;
}

/* Hero slide backgrounds from Media Library */
.m14j-2h,
.m14j-2h > .x-bg > .x-bg-layer-lower-image {
	background-image: url("/wp-content/uploads/2026/08/01-motorsport-globale.jpg") !important;
}

.m14j-2j,
.m14j-2j > .x-bg > .x-bg-layer-lower-image {
	background-image: url("/wp-content/uploads/2026/08/02-motorsport-nord-america.jpg") !important;
}

.m14j-2k,
.m14j-2k > .x-bg > .x-bg-layer-lower-image {
	background-image: url("/wp-content/uploads/2026/08/03-nautica.jpg") !important;
}

.m14j-2l,
.m14j-2l > .x-bg > .x-bg-layer-lower-image {
	background-image: url("/wp-content/uploads/2026/08/04-aerospazio-difesa.jpg") !important;
}

.m14j-2m,
.m14j-2m > .x-bg > .x-bg-layer-lower-image {
	background-image: url("/wp-content/uploads/2026/08/05-industria.png") !important;
}

/* Shared section rhythm */
.e1459-e74.x-section,
.e1459-e123.x-section,
.e1459-e143.x-section {
	padding-top: 56px;
	padding-bottom: 48px;
}

.e1459-e74 .e1459-e78-v0 .x-text-content-text-primary,
.e1459-e123 .e1459-e127-v0 .x-text-content-text-primary {
	font-size: 42px;
	letter-spacing: 0.04em;
	line-height: 1.12;
}

.e1459-e74 .e1459-e79.x-text {
	max-width: 720px;
	padding-top: 16px;
	padding-right: 0;
	font-size: 16px;
	line-height: 1.55;
	font-style: italic;
}

.e1459-e74 .e1459-e80.x-row {
	padding-top: 28px;
}

.e1459-e74 .bt-col-up {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.e1459-e74 .bt-col-up:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.e1459-e74 .bg-mm-bn {
	overflow: hidden;
}

.e1459-e74 .bg-mm-bn img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* NEWS carousel: equal-height compact cards */
.e1459-e123.x-section {
	padding-bottom: 40px;
}

.e1459-e132.x-slide-container-viewport {
	overflow: hidden;
	padding-bottom: 8px;
}

.e1459-e132 .x-slide-container-content,
.e1459-e132 .x-slide-container-content .x-slide-container {
	height: auto !important;
}

.e1459-e132 .x-slide-container.is-inline {
	align-items: stretch;
}

.e1459-e133.post-box-arrow {
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 0;
	box-sizing: border-box;
	overflow: hidden;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.e1459-e133.post-box-arrow figure.e1459-e134 {
	flex: 0 0 auto;
	position: relative;
	width: 100%;
	margin: 0 0 10px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: #e8e8e8;
}

.e1459-e133.post-box-arrow .e1459-e135.x-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.e1459-e133.post-box-arrow .e1459-e135.x-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	aspect-ratio: auto !important;
	object-fit: cover;
	object-position: center;
}

.e1459-e133.post-box-arrow article.e1459-e136 {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	row-gap: 0;
	padding-bottom: 4px;
}

.e1459-e133.post-box-arrow .e1459-e137.x-text {
	max-width: none;
	margin: 0 0 8px;
}

.e1459-e133.post-box-arrow .e1459-e137 .x-text-content-text-primary {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	font-size: 0.92em;
	line-height: 1.3;
	min-height: calc(1.3em * 3);
}

.e1459-e133.post-box-arrow .e1459-e138.x-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin-top: 0;
	margin-bottom: 0;
	min-height: calc(1.3em * 2);
}

.e1459-e123 .e1459-e142.x-slide-pagination,
.e1459-e123 [data-x-slide-pagination] {
	display: none !important;
}

/* BASIC STRUCTURE: compact vertical rhythm; keep hotspots aligned to the diagram */
.e1459-e101.x-section {
	padding-top: 48px;
	padding-bottom: 40px;
	overflow: visible;
}

.e1459-e101 .e1459-e108.x-col {
	position: relative;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 8px;
	padding-bottom: 8px;
	overflow: visible;
}

.e1459-e101 .e1459-e109,
.e1459-e101 .e1459-e112,
.e1459-e101 .e1459-e115 {
	z-index: 4;
}

.e1459-e101 .m14j-5w.x-anchor {
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.e1459-e101 .m14j-5w.x-anchor:hover,
.e1459-e101 .m14j-5w.x-anchor.x-active {
	transform: scale(1.08);
}

.e1459-e101 .x-effect-exit:not(.is-entered) {
	opacity: 0 !important;
}

.e1459-e101 .x-effect-exit.is-entered {
	opacity: 1 !important;
	animation-duration: 0.95s !important;
	animation-fill-mode: both !important;
}

.e1459-e101 .x-effect-exit.is-entered.bounceInDown {
	animation-name: bounceInDown !important;
}

.e1459-e101 .x-effect-exit.is-entered.fadeIn {
	animation-name: fadeIn !important;
}

.e1459-e101 .x-effect-exit.is-entered.fadeInLeft {
	animation-name: fadeInLeft !important;
}

.e1459-e101 .x-effect-exit.is-entered.fadeInRight {
	animation-name: fadeInRight !important;
}

#e1459-e110-dropdown,
#e1459-e113-dropdown,
#e1459-e116-dropdown {
	width: 14em;
	padding: 1em;
	background: #000;
	color: #fff;
	box-shadow: 0 0.15em 2em rgba(0, 0, 0, 0.18);
}

#e1459-e110-dropdown.x-active,
#e1459-e113-dropdown.x-active,
#e1459-e116-dropdown.x-active {
	display: block;
	opacity: 1;
	transform: none;
}

#e1459-e110-dropdown p,
#e1459-e113-dropdown p,
#e1459-e116-dropdown p {
	margin: 0 0 0.45em;
	color: #fff;
	font-size: 0.9em;
	line-height: 1.25;
}

#e1459-e110-dropdown p:first-child,
#e1459-e113-dropdown p:first-child,
#e1459-e116-dropdown p:first-child {
	color: #fe0;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 0.55em;
}

#e1459-e110-dropdown p:last-child,
#e1459-e113-dropdown p:last-child,
#e1459-e116-dropdown p:last-child {
	margin-bottom: 0;
}

.e1459-e101 .e1459-e105-v0 .x-text-content-text-primary {
	font-size: 42px;
}

.e1459-e101 .e1459-e106.x-text {
	max-width: 720px;
	padding-top: 12px;
	padding-right: 0;
	font-size: 16px;
	line-height: 1.55;
}

.e1459-e101 .e1459-e107.x-row {
	padding-top: 8px;
}

.e1459-e101 .e1459-e118 {
	width: 100%;
}

.e1459-e101 .e1459-e119.x-image,
.e1459-e101 .e1459-e120.x-image {
	width: 60%;
	max-width: 460px;
}

.e1459-e101 .e1459-e119.x-image img,
.e1459-e101 .e1459-e120.x-image img {
	display: block;
	width: 100%;
	height: auto;
}

.e1459-e101 .e1459-e121 {
	position: absolute;
	top: auto;
	right: 0;
	bottom: 8px;
	left: auto;
	z-index: 2;
}

/* TEAM AREA: equal cards in one row; extras scroll horizontally */
.team-area.e1459-e143.x-section {
	padding-top: 48px;
	padding-bottom: 40px;
}

.team-area .e1459-e144.x-row {
	padding-top: 0;
	padding-bottom: 8px;
}

.team-area .e1459-e146-v0 .x-text-content-text-primary {
	font-size: 42px;
	letter-spacing: 0.04em;
}

.team-area .e1459-e149.team-area__scroller {
	position: relative;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.team-area .e1459-e149 > .x-row-inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	column-gap: 16px;
	row-gap: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 44px;
	padding-right: 44px;
	box-sizing: border-box;
}

.team-area .e1459-e149 > .x-row-inner::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

/* Lock equal widths on all viewports (Cornerstone only sets 25% below 1400px). */
.team-area .e1459-e149 > .x-row-inner > .team-box-wrap {
	box-sizing: border-box;
	flex: 0 0 calc((100% - 48px) / 4);
	width: calc((100% - 48px) / 4);
	max-width: calc((100% - 48px) / 4);
	min-width: 0;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	scroll-snap-align: start;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.team-area .team-box-wrap > .x-div,
.team-area .team-box-wrap > span.x-div {
	display: block !important;
	position: relative;
	clip-path: none !important;
	-webkit-clip-path: none !important;
	mask: none !important;
	-webkit-mask: none !important;
	border-radius: 0 !important;
	transform: none !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	padding-bottom: 0 !important;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #d9d9d9;
}

/* Copy / email under the portrait (not the photo shell). */
.team-area .team-box-wrap > .x-div:not(:has(> .x-image)):not(:has(> .bg-mm-bn)),
.team-area .team-box-wrap > span.x-div:not(:has(> .x-image)):not(:has(> .bg-mm-bn)),
.team-area .team-box-wrap > a.x-div {
	aspect-ratio: auto;
	height: auto !important;
	min-height: 0;
	overflow: visible;
	background-color: transparent;
	margin-top: 10px !important;
	transform: none !important;
}

.team-area .team-box-wrap > .x-div > .x-bg,
.team-area .team-box-wrap > span.x-div > .x-bg {
	display: none !important;
}

.team-area .team-box-wrap .x-image,
.team-area .team-box-wrap .bg-mm-bn {
	position: absolute;
	inset: 0;
	clip-path: none !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden;
	opacity: 1 !important;
}

/* Hover used to fade the photo away (bg layer is hidden) — keep portraits visible. */
.team-area .bt-col-up:hover .bg-mm-bn,
.team-area .bt-col-up:hover .x-image,
.team-area .team-box-wrap:hover .bg-mm-bn,
.team-area .team-box-wrap:hover .x-image {
	opacity: 1 !important;
}

.team-area .team-box-wrap .x-image img {
	position: absolute;
	left: 50%;
	top: 42%;
	width: 185% !important;
	height: 185% !important;
	max-width: none !important;
	transform: translate(-50%, -50%);
	object-fit: cover;
	object-position: center 18%;
	opacity: 1 !important;
}

.team-area .team-box-wrap .x-text,
.team-area .team-box-wrap .x-text-content-text-primary,
.team-area .team-box-wrap .x-text-content-text-subheadline {
	text-align: center;
}

.team-area__nav {
	pointer-events: none;
	position: absolute;
	top: 0;
	right: 4px;
	left: 4px;
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: space-between;
	height: 0;
	transform: translateY(-50%);
}

.team-area__scroller.is-scrollable .team-area__nav {
	display: flex;
}

.team-area__prev,
.team-area__next {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	border: 0;
	padding: 0;
	background-color: #fe0;
	color: #000;
	cursor: pointer;
	line-height: 1;
	flex-shrink: 0;
}

.team-area__prev:hover,
.team-area__next:hover {
	background-color: #000;
	color: #fe0;
}

.team-area__prev:disabled,
.team-area__next:disabled {
	opacity: 0.28;
	cursor: default;
	pointer-events: none;
}

.team-area__prev::before,
.team-area__next::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.team-area__prev::before {
	transform: rotate(-135deg);
	margin-left: 3px;
}

.team-area__next::before {
	transform: rotate(45deg);
	margin-right: 3px;
}

@media screen and (max-width: 978px) {
	.team-area .e1459-e149 > .x-row-inner > .team-box-wrap {
		flex-basis: calc((100% - 16px) / 2);
		width: calc((100% - 16px) / 2);
		max-width: calc((100% - 16px) / 2);
	}
}

@media screen and (max-width: 479px) {
	.team-area .e1459-e149 > .x-row-inner {
		padding-left: 40px;
		padding-right: 40px;
	}

	.team-area .e1459-e149 > .x-row-inner > .team-box-wrap {
		flex-basis: 78%;
		width: 78%;
		max-width: 78%;
	}
}

@media screen and (max-width: 978px) {
	.e1459-e74.x-section,
	.e1459-e123.x-section,
	.e1459-e143.x-section,
	.e1459-e101.x-section {
		padding-top: 36px;
		padding-bottom: 32px;
	}

	.e1459-e74 .e1459-e78-v0 .x-text-content-text-primary,
	.e1459-e123 .e1459-e127-v0 .x-text-content-text-primary,
	.e1459-e101 .e1459-e105-v0 .x-text-content-text-primary,
	.team-area .e1459-e146-v0 .x-text-content-text-primary {
		font-size: 32px;
	}

	.e1459-e101 .e1459-e108.x-col {
		max-width: 100%;
	}

	.e1459-e101 .e1459-e119.x-image,
	.e1459-e101 .e1459-e120.x-image {
		width: 72%;
		max-width: none;
	}

	.x-slide.m14j-2f .m14j-5f.x-image img,
	.x-slide.m14j-2f .m14j-5g.x-image img {
		max-width: 240px;
	}
}
