body.cbr-theme .cbr-home-hero__videobox {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

body.cbr-theme .cbr-hero-video-ai-note {
	position: absolute !important;
	right: max(10px, env(safe-area-inset-right, 0px));
	bottom: max(8px, env(safe-area-inset-bottom, 0px));
	left: auto;
	top: auto;
	z-index: 6;
	margin: 0;
	padding: 0;
	max-width: min(42ch, calc(100% - 20px));
	color: #ffffff;
	opacity: 0.5;
	font-family: var(--cbr-serif, "Cormorant Garamond", Georgia, serif);
	font-size: 7px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-align: right;
	pointer-events: none;
	user-select: none;
	text-shadow: none;
	transition: opacity 0.45s ease;
}

body.cbr-theme .cbr-home-hero--cinematic.is-ending .cbr-hero-video-ai-note,
body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-hero-video-ai-note,
body.cbr-theme :is(.cbr-nol-hero, .cbr-evt-hero, .cbr-per-hero).is-ending .cbr-hero-video-ai-note,
body.cbr-theme :is(.cbr-nol-hero, .cbr-evt-hero, .cbr-per-hero).is-ended .cbr-hero-video-ai-note {
	opacity: 0.04;
}

@media (min-width: 1024px) {
	body.cbr-theme .cbr-hero-video-ai-note {
		right: max(14px, env(safe-area-inset-right, 0px));
		bottom: max(12px, env(safe-area-inset-bottom, 0px));
		font-size: 8px;
	}
}

/* Home cinematic hero — desktop 16:9, mobile 1:1 center crop. */

body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic,
body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic {
	position: relative;
	display: block !important;
	width: 100%;
	max-width: none;
	min-height: 0;
	height: auto;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	background: #000;
	transition: padding 0.75s ease, min-height 0.75s ease;
}

body.cbr-theme .cbr-home-hero--cinematic .cbr-home-hero__grid,
body.cbr-theme .cbr-home-hero--cinematic [class*="-hero__grid"] {
	display: none !important;
}

body.cbr-theme .cbr-home-hero__cinematic {
	position: relative;
	display: grid;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: 100dvh;
	min-height: 0;
	place-items: stretch;
	background: #000;
}

body.cbr-theme .cbr-home-hero__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: filter 0.9s ease;
}

body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic .cbr-home-hero__video {
	object-fit: contain;
}

body.cbr-theme .cbr-home-hero--cinematic.is-ending .cbr-home-hero__video,
body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__video {
	filter: blur(2px);
}

body.cbr-theme .cbr-home-hero__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: transparent;
	opacity: 0;
	transition: opacity 0.45s ease;
}

body.cbr-theme .cbr-home-hero--cinematic.is-ending .cbr-home-hero__veil,
body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__veil {
		opacity: 1;
		background: rgba(0, 0, 0, 0.8);
}

body.cbr-theme .cbr-home-hero__endcopy {
	grid-area: 1 / 1;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	width: 100%;
	padding: 1.15rem;
	position: relative;
	text-align: center;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.7s ease, transform 0.7s ease;
	box-sizing: border-box;
}

body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

body.cbr-theme .cbr-home-hero__endlogo {
	display: block;
	width: auto;
	height: auto;
	max-width: min(180px, 42vw);
	max-height: 88px;
	margin-inline: auto;
	object-fit: contain;
	background: none;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

body.cbr-theme .cbr-home-hero__endtitle {
	margin: 0 auto;
	font-family: var(--cbr-serif);
	font-size: clamp(1.2rem, 5vw, 1.5rem);
	font-weight: 500;
	font-style: italic;
	line-height: 1.15;
	letter-spacing: -0.004em;
	color: var(--cbr-hierarchy-subtitle, #c9a227);
	-webkit-text-fill-color: var(--cbr-hierarchy-subtitle, #c9a227);
	text-wrap: balance;
	text-align: center;
}

body.cbr-theme .cbr-home-hero__endtext {
	margin: 0 auto;
	max-width: 46rem;
	font-family: var(--cbr-sans);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	text-align: center;
	color: #ffffff;
	-webkit-text-fill-color: #ffffff;
}

body.cbr-theme .cbr-home-hero__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 0.6rem;
	width: 100%;
	max-width: 46rem;
	margin: 0.85rem auto 0;
	padding: 0;
}

body.cbr-theme .cbr-home-hero__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--cbr-gold, #c9a227);
	border-radius: 9999px;
	background: transparent;
	color: #ffffff;
	-webkit-text-fill-color: #ffffff;
	font-family: var(--cbr-sans), Manrope, sans-serif;
	font-size: 13px;
	font-weight: 500;
	font-style: normal;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 180ms ease, color 180ms ease, -webkit-text-fill-color 180ms ease;
}

body.cbr-theme .cbr-home-hero__chip:hover,
body.cbr-theme .cbr-home-hero__chip:focus-visible {
	background: var(--cbr-gold, #c9a227);
	color: #111111;
	-webkit-text-fill-color: #111111;
}

body.cbr-theme .cbr-home-hero__servicecards {
	display: none;
}

body.cbr-theme .cbr-home-hero__endcta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	align-self: center;
	width: auto;
	max-width: 100%;
	margin-inline: auto;
}

body.cbr-theme .cbr-home-hero__endcta .cbr-btn {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
}

@media (min-width: 1024px) {
	body.cbr-theme .cbr-home-hero__cinematic {
		aspect-ratio: auto !important;
		width: 100%;
		height: 100dvh !important;
		min-height: 100dvh !important;
		max-height: 100dvh !important;
	}

	body.cbr-theme .cbr-home-hero__video {
		object-fit: cover;
	}

	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic .cbr-home-hero__video {
		object-fit: contain;
	}

	body.cbr-theme .cbr-home-hero__endcopy {
		gap: 1.1rem;
		justify-content: flex-start;
		padding: calc(var(--cbr-header-height, 80px) + 2.5rem) 1.5rem 1.75rem;
	}

	body.cbr-theme .cbr-home-hero__endlogo {
		max-width: min(220px, 28vw);
		max-height: 120px;
	}

	body.cbr-theme .cbr-home-hero__endtitle {
		font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	}

	body.cbr-theme .cbr-home-hero__endtext {
		font-size: 16px;
		line-height: 1.55;
		max-width: none;
	}

	body.cbr-theme .cbr-home-hero__leadline {
		white-space: nowrap;
	}

	body.cbr-theme .cbr-home-hero__chips {
		display: none !important;
	}

	body.cbr-theme .cbr-home-hero__servicecards {
		display: block;
		width: 100%;
		max-width: min(72rem, 100%);
		margin: 1rem auto 0;
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-boxes {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.85rem;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	body.cbr-theme .cbr-home-hero__endcopy {
		opacity: 1;
		transform: none;
	}

	body.cbr-theme .cbr-home-hero__endcopy > :not(.cbr-home-hero__servicecards) {
		opacity: 0;
		transform: translateY(-14px);
		transition:
			opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
			transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy > :not(.cbr-home-hero__servicecards) {
		opacity: 1;
		transform: none;
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box {
		padding: 1.05rem 0.95rem 1rem;
		gap: 0.55rem;
		text-align: left;
		opacity: 0;
		transform: translateX(-28px);
		transition:
			opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
			transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box__text {
		font-size: 0.8125rem;
		line-height: 1.4;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__servicecards .cbr-icon-box {
		opacity: 1;
		transform: none;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__servicecards .cbr-icon-box:nth-child(1) {
		transition-delay: 0.18s;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__servicecards .cbr-icon-box:nth-child(2) {
		transition-delay: 0.32s;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__servicecards .cbr-icon-box:nth-child(3) {
		transition-delay: 0.46s;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__servicecards .cbr-icon-box:nth-child(4) {
		transition-delay: 0.6s;
	}

	body.cbr-theme .cbr-page--home:has(.cbr-home-hero__servicecards) > .cbr-home-enrich--services-desktop {
		display: none !important;
	}

	body.cbr-theme .cbr-page--home:has(.cbr-home-hero--cinematic) > .cbr-home-enrich--services-desktop {
		padding-block-start: 0 !important;
		padding-block-end: 1.25rem !important;
	}

	body.cbr-theme .cbr-page--home:has(.cbr-home-hero--cinematic) > .cbr-home-enrich--services-desktop + .cbr-home-service {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.cbr-theme .cbr-home-hero__video,
	body.cbr-theme .cbr-home-hero__veil,
	body.cbr-theme .cbr-home-hero__endcopy,
	body.cbr-theme .cbr-home-hero__endcopy > *,
	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box {
		transition: none;
		opacity: 1;
		transform: none;
	}
}

body.cbr-theme .cbr-page--home:has(.cbr-home-hero--cinematic):not(.is-hero-follow) > .cbr-home-hero--cinematic ~ *,
body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per):has(.cbr-home-hero--cinematic):not(.is-hero-follow) > .cbr-home-hero--cinematic ~ * {
	display: none !important;
}

body.cbr-theme:has(.cbr-page--home:has(.cbr-home-hero--cinematic):not(.is-hero-follow)) .cbr-site-footer,
body.cbr-theme:has(:is(.cbr-nol, .cbr-evt, .cbr-per):has(.cbr-home-hero--cinematic):not(.is-hero-follow)) .cbr-site-footer {
	display: none !important;
}

body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic,
body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic {
	z-index: 1;
}

body.cbr-theme .cbr-page--home.is-hero-follow > .cbr-home-hero--cinematic + *,
body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per).is-hero-follow > .cbr-home-hero--cinematic + * {
	margin-top: -56px;
	position: relative;
	z-index: 4;
}

body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per):has(.cbr-home-hero--cinematic) > .cbr-nol-catalog-hero {
	display: none !important;
}

body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic::after,
body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic + *::before,
body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per).is-hero-follow > .cbr-nol-catalog::before {
	content: none !important;
	display: none !important;
}

body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per).is-hero-follow > .cbr-nol-catalog,
body.cbr-theme .cbr-evt.is-hero-follow > .cbr-evt-showcase,
body.cbr-theme .cbr-per.is-hero-follow > .cbr-per-services {
	position: relative;
	z-index: 5;
	margin-top: calc(var(--cbr-header-height, 80px) + 16px - 100dvh) !important;
	padding-top: 0 !important;
	background: transparent !important;
}

body.cbr-theme .cbr-nol-catalog__heading {
	display: none;
	margin: 0 0 16px;
	padding: 0;
	text-align: center;
	font-family: var(--cbr-serif);
	font-size: clamp(1.75rem, 3.4vw, 2.35rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--cbr-gold, #c9a227);
	-webkit-text-fill-color: var(--cbr-gold, #c9a227);
}

body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per):has(.cbr-home-hero--cinematic) .cbr-nol-catalog__heading {
	display: block;
}

body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per).is-hero-follow .cbr-nol-catalog-hero__media {
	display: none !important;
}

body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per).is-hero-follow .cbr-nol-catalog-hero__grid {
	display: block !important;
}

@media (max-width: 1023px) {
	body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic:not(.is-hero-docked),
	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic:not(.is-hero-docked) {
		min-height: 100dvh;
		padding-top: max(0px, calc((100dvh - 100vw) / 2));
		padding-bottom: max(0px, calc((100dvh - 100vw) / 2));
		box-sizing: border-box;
	}

	body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic.is-hero-docked,
	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic.is-hero-docked {
		min-height: 0;
		padding-top: var(--cbr-header-height, 50px);
		padding-bottom: 0;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-hero-docked .cbr-home-hero__endcopy {
		justify-content: flex-start;
		padding: 1rem 20px 28px;
	}

	body.cbr-theme .cbr-home-hero__endcopy {
		opacity: 1;
		transform: none;
		padding-inline: 20px;
		gap: 0.75rem;
	}

	body.cbr-theme .cbr-home-hero__chips {
		display: none !important;
	}

	body.cbr-theme .cbr-home-hero__servicecards {
		display: block;
		width: 100%;
		max-width: none;
		margin: 0.35rem 0 0;
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-boxes {
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		height: auto;
		min-height: 0;
		padding: 20px;
		gap: 0.45rem;
		box-sizing: border-box;
		text-align: left;
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box__icon,
	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box__cta {
		display: none !important;
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box__title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		width: 100%;
		font-size: 1.05rem;
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box__title::after {
		content: "→";
		flex-shrink: 0;
		font-family: var(--cbr-sans), Manrope, sans-serif;
		font-size: 1rem;
		font-style: normal;
		font-weight: 500;
		line-height: 1;
		color: currentColor;
	}

	body.cbr-theme .cbr-home-hero__servicecards .cbr-icon-box__text {
		font-size: 0.8125rem;
		line-height: 1.4;
	}

	body.cbr-theme .cbr-home-hero__endcopy > * {
		opacity: 0;
		transform: translateY(-20px) scale(0.97);
		transition:
			opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
			transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy > * {
		opacity: 1;
		transform: none;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy > *:nth-child(1) {
		transition-delay: 0.06s;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy > *:nth-child(2) {
		transition-delay: 0.16s;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy > *:nth-child(3) {
		transition-delay: 0.28s;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy > *:nth-child(4) {
		transition-delay: 0.4s;
	}

	body.cbr-theme .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy > *:nth-child(5) {
		transition-delay: 0.5s;
	}

	body.cbr-theme.cbr-hero-intro :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic,
	body.cbr-theme.cbr-hero-intro :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic:not(.is-hero-docked),
	body.cbr-theme.cbr-hero-intro :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic.is-hero-docked {
		min-height: 100dvh !important;
		background: #000000 !important;
	}

	/* Noleggio: video 16:9 sotto la header; a fine clip il catalogo overlap sulla fascia bassa. */
	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic,
	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic:not(.is-hero-docked),
	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic.is-hero-docked {
		min-height: 0;
		padding-top: var(--cbr-header-height, 50px);
		padding-bottom: 0;
	}

	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) .cbr-home-hero__cinematic {
		aspect-ratio: 16 / 9;
		max-height: none;
	}

	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic .cbr-home-hero__video {
		object-fit: cover;
		object-position: center center;
		filter: none;
	}

	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic.is-ending .cbr-home-hero__video,
	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic.is-ended .cbr-home-hero__video {
		filter: none;
	}

	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic.is-ending .cbr-home-hero__veil,
	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per) > .cbr-home-hero--cinematic.is-ended .cbr-home-hero__veil {
		opacity: 1;
		background: linear-gradient(
			to bottom,
			transparent 42%,
			rgba(0, 0, 0, 0.45) 68%,
			#000 100%
		);
	}

	body.cbr-theme :is(.cbr-nol, .cbr-evt, .cbr-per).is-hero-follow > .cbr-nol-catalog,
	body.cbr-theme .cbr-evt.is-hero-follow > .cbr-evt-showcase,
	body.cbr-theme .cbr-per.is-hero-follow > .cbr-per-services {
		margin-top: calc(56.25vw * -0.42) !important;
		padding-top: 1.5rem !important;
		background: linear-gradient(
			to bottom,
			transparent 0,
			rgba(0, 0, 0, 0.55) 12%,
			#000 28%
		) !important;
	}

	/* Home: titolo/card overlap sul video, ma trasferte non copre le card. */
	body.cbr-theme .cbr-page--home.is-hero-follow > .cbr-home-hero--cinematic + * {
		margin-top: 0;
		z-index: auto;
	}

	body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic.is-ended {
		overflow: visible !important;
		min-height: 0;
		padding-top: var(--cbr-header-height, 50px);
		padding-bottom: 1.25rem;
	}

	body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic.is-ended .cbr-home-hero__cinematic {
		aspect-ratio: auto;
		max-height: none;
		height: auto;
		display: flex;
		flex-direction: column;
	}

	body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic.is-ended .cbr-home-hero__videobox {
		position: relative;
		flex: 0 0 auto;
		width: 100%;
		aspect-ratio: 1 / 1;
		inset: auto;
	}

	body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic.is-ended .cbr-hero-video-ai-note {
		z-index: 6;
	}

	body.cbr-theme .cbr-page--home > .cbr-home-hero--cinematic.is-ended .cbr-home-hero__endcopy {
		position: relative;
		z-index: 2;
		margin-top: -100%;
		padding-top: 32px;
		padding-bottom: 0.25rem;
	}

	body.cbr-theme .cbr-page--home > .cbr-home-service--coverage:not(.cbr-home-service--coverage-events) {
		position: relative;
		z-index: 1;
		margin-top: 0 !important;
	}
}
