/**
 * Native single Premi layout (Django _premio_elementor_payload).
 * Visual alignment with the manual Elementor reference page: centered column,
 * section-style intro, grey pill CTAs, hero image after CTAs.
 */

.montaribaldi-premi-native__wrap {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
	padding: 1.5rem 1rem 2.5rem;
}

/* Hero after body + CTAs: spacing and poster-like frame */
.montaribaldi-premi-native__hero {
	margin: 0 0 1.75rem;
	border-radius: 4px;
	overflow: hidden;
	background: #f4f4f4;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.montaribaldi-premi-native__hero--after-ctas {
	margin-top: 3rem;
	margin-bottom: 0;
	max-width: 100%;
}

.montaribaldi-premi-native__hero-img {
	display: block;
	width: 100%;
	max-width: 850px;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	vertical-align: middle;
}

.montaribaldi-premi-native__body {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #3a3a3a;
	text-align: center;
}

.montaribaldi-premi-native__body .premio-intro {
	display: block;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.35;
	color: #1a1a1a;
	margin: 0 0 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	text-transform: none;
}

.montaribaldi-premi-native__body .premio-body {
	margin: 0;
	text-align: center;
}

.montaribaldi-premi-native__body p {
	margin: 0 0 1rem;
}

.montaribaldi-premi-native__body a {
	color: #555;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.montaribaldi-premi-native__body a:hover,
.montaribaldi-premi-native__body a:focus {
	color: #750c2b;
}

.montaribaldi-premi-native__body strong {
	font-weight: 600;
	color: #222;
}

.montaribaldi-premi-native__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.85rem;
	justify-content: center;
	align-items: center;
	margin: 2.25rem 0 0;
	padding: 1.75rem 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.montaribaldi-premi-native__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 40px;
	padding: 0.5rem 1.1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Elementor-like grey buttons (primary path uses --grey) */
.montaribaldi-premi-native__cta--grey {
	color: #fff;
	background: #6d6d6d;
	border: 2px solid #6d6d6d;
}

.montaribaldi-premi-native__cta--grey:hover,
.montaribaldi-premi-native__cta--grey:focus {
	background: #5a5a5a;
	border-color: #5a5a5a;
	color: #fff;
}

/* Fallback legacy CTAs without modifier: bordeaux */
.montaribaldi-premi-native__cta:not(.montaribaldi-premi-native__cta--grey) {
	color: #fff;
	background: #750c2b;
	border: 2px solid #750c2b;
	border-radius: 4px;
	min-height: 44px;
	padding: 0.65rem 1.25rem;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
}

.montaribaldi-premi-native__cta:not(.montaribaldi-premi-native__cta--grey):hover,
.montaribaldi-premi-native__cta:not(.montaribaldi-premi-native__cta--grey):focus {
	background: #5a0922;
	border-color: #5a0922;
	color: #fff;
}

.montaribaldi-premi-native__fallback {
	padding-top: 0.5rem;
}

.montaribaldi-premi-native__intro {
	font-size: 1.05rem;
	line-height: 1.65;
	margin: 0 0 1.25rem;
}

.montaribaldi-premi-native__body--legacy {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.montaribaldi-premi-native__empty {
	margin: 1rem 0;
	color: #666;
	font-style: italic;
}

/* Elementor/theme may set body style="padding-top: Npx" for header offset; gap above .whole-layout
   shows html background (black strip). Hero should start at viewport top on native Premi. */
body.premi-layout-reference.single-premi {
	padding-top: 0 !important;
	background-color: #2a2a2a;
}

html:has(body.premi-layout-reference.single-premi) {
	background-color: #2a2a2a;
}

/* Full-width #mid from child header.php: white content strip (no dark side gutters) */
body.premi-layout-reference.single-premi #mid.layout-full_fixed {
	background-color: #fff;
}

/* Wider content column on single premi */
body.premi-layout-reference.single-premi #mid .content-limiter {
	max-width: min(1140px, 100%);
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------------------
   Hero title bar: tall block, grey overlay, white title (manual Elementor-like)
   -------------------------------------------------------------------------- */

/* Native Premi title bar: static background (no Rife parallax / has-effect scroll on header) */
body.premi-layout-reference.single-premi #mid > .title-bar.montaribaldi-premi-native__title-bar {
	background-attachment: scroll;
	background-position: center center;
	background-size: cover;
	min-height: clamp(280px, 58vh, 560px);
	display: flex;
	flex-direction: column;
}

body.premi-layout-reference.single-premi
	#mid
	> .title-bar.montaribaldi-premi-native__title-bar.title_bar_variant_centered.outside
	.overlay-color {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	padding: clamp(5rem, 14vh, 10rem) clamp(1.25rem, 4vw, 2.5rem) !important;
	background: linear-gradient(
		180deg,
		rgba(42, 42, 42, 0.72) 0%,
		rgba(55, 55, 55, 0.68) 50%,
		rgba(48, 48, 48, 0.75) 100%
	) !important;
}

body.premi-layout-reference.single-premi
	#mid
	> .title-bar.montaribaldi-premi-native__title-bar.title_bar_variant_centered.outside
	.overlay-color
	> .in {
	width: 100%;
	max-width: 1160px;
	margin-left: auto;
	margin-right: auto;
}

body.premi-layout-reference.single-premi #mid > .title-bar.title_bar_variant_centered.outside .page-title {
	color: #fff;
	font-weight: 600;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.85),
		0 2px 24px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   Header + fullscreen menu: float over hero (transparent bar, light logo)
   -------------------------------------------------------------------------- */

body.premi-layout-reference.single-premi .whole-layout {
	position: relative;
}

body.premi-layout-reference.single-premi #header {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 6;
	background: transparent !important;
	box-shadow: none !important;
}

body.premi-layout-reference.single-premi #header .head {
	background: transparent;
}

body.premi-layout-reference.single-premi #header .logo-container a.image-logo img,
body.premi-layout-reference.single-premi #header .logo-container .logo img {
	filter: brightness(0) invert(1);
}

body.premi-layout-reference.single-premi .animatedfsmenu.animatedfsmenu__opacity,
body.premi-layout-reference.single-premi #animatedfsmenu_css.animatedfsmenu {
	z-index: 7;
}

body.premi-layout-reference.single-premi .animatedfsmenu-navbar-toggler {
	background-color: #750c2b !important;
	border: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

body.premi-layout-reference.single-premi .animatedfsmenu-navbar-toggler .bar {
	background: #fff !important;
}

@media (max-width: 782px) {
	body.premi-layout-reference.single-premi
		#mid
		> .title-bar.montaribaldi-premi-native__title-bar.title_bar_variant_centered.outside
		.overlay-color {
		padding-top: clamp(4.5rem, 12vh, 8rem) !important;
		padding-bottom: clamp(4.5rem, 12vh, 8rem) !important;
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}
}

@media (min-width: 768px) {
	.montaribaldi-premi-native__wrap {
		padding: 2rem 1.5rem 3rem;
	}

	.montaribaldi-premi-native__body {
		font-size: 1.125rem;
	}

	.montaribaldi-premi-native__ctas {
		gap: 0.75rem 1rem;
	}
}

@media (max-width: 480px) {
	.montaribaldi-premi-native__cta {
		width: 100%;
	}
}
