/**
 * Site aesthetic — UX/UI Mastery layer (all pages).
 * Editorial luxury hospitality: ivory hierarchy, quieter gold, clearer cards/CTAs.
 * Isolatable (rollback = dequeue this file).
 */

/* Ambient glows — gold + white, in front of page sections (clicks pass through). */
body.cbr-theme {
	--cbr-aesthetic-ivory: var(--cbr-champagne);
	--cbr-aesthetic-ivory-soft: var(--cbr-champagne-soft);
	--cbr-aesthetic-ivory-mute: var(--cbr-champagne-muted);
	--cbr-aesthetic-gold-line: rgba(201, 162, 39, 0.22);
	--cbr-aesthetic-gold-border: rgba(201, 162, 39, 0.16);
	--cbr-aesthetic-surface: var(--cbr-bg-secondary);
	--cbr-aesthetic-surface-2: var(--cbr-bg-antracite);
	--cbr-aesthetic-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--cbr-aesthetic-radius: 4px;
	background-color: #050505;
	background-image: none;
}

body.cbr-theme::before {
	content: none;
}

body.cbr-theme::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 50;
	pointer-events: none;
	mix-blend-mode: screen;
	background:
		radial-gradient(ellipse 80% 50% at 12% -8%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
		radial-gradient(ellipse 58% 42% at 96% 10%, rgba(201, 162, 39, 0.09) 0%, transparent 52%),
		radial-gradient(ellipse 42% 32% at 78% 72%, rgba(201, 162, 39, 0.045) 0%, transparent 58%),
		radial-gradient(ellipse 48% 38% at 4% 78%, rgba(255, 255, 255, 0.045) 0%, transparent 52%);
}

body.cbr-theme :is(
	.cbr-page,
	.cbr-home,
	.cbr-nol,
	.cbr-per,
	.cbr-evt,
	.cbr-chi,
	.cbr-con
) {
	position: relative;
	z-index: 1;
	background-color: transparent;
}

@media (prefers-reduced-transparency: reduce) {
	body.cbr-theme::before,
	body.cbr-theme::after {
		display: none;
	}

	body.cbr-theme {
		background-image: none;
	}
}

/* Typography → assets/css/typography.css (canonical system) */

/* ========== HERO CTA / COPY ========== */
body.cbr-theme .cbr-page--home .cbr-home-hero__text {
	font-size: clamp(1rem, 1.15vw, 1.125rem);
	max-width: min(100%, 34rem);
}

body.cbr-theme .cbr-page--home .cbr-home-hero__cta--dual {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1rem;
	width: 100%;
	max-width: min(100%, 34rem);
}

body.cbr-theme .cbr-page--home .cbr-home-hero__cta--dual .cbr-btn {
	min-width: 0;
}

@media (min-width: 1024px) {
	body.cbr-theme .cbr-page--home .cbr-home-hero__cta--dual {
		margin-top: 0.25rem;
	}

	body.cbr-theme :is(.cbr-nol, .cbr-per, .cbr-evt, .cbr-chi, .cbr-con, .cbr-home) > section + section::before {
		opacity: 0.5;
	}
}

/* ========== BUTTONS ========== */
body.cbr-theme :is(
	.cbr-btn,
	.cbr-nol-btn,
	.cbr-per-btn,
	.cbr-con-btn,
	.cbr-evt-btn,
	.cbr-chi-btn,
	.cbr-catalog-pdf-btn
) {
	font-family: var(--cbr-sans) !important;
}
/* ========== CARDS (all pages) ========== */
body.cbr-theme :is(
	.cbr-evt-card,
	.cbr-per-service,
	.cbr-con-card,
	.cbr-nol-mise,
	.cbr-staff-card,
	.cbr-value-card,
	.cbr-case-card
) {
	border: 1px solid var(--cbr-aesthetic-gold-border) !important;
	border-radius: var(--cbr-aesthetic-radius) !important;
	background: linear-gradient(165deg, rgba(22, 22, 22, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%) !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
	overflow: hidden;
	transition:
		border-color 280ms var(--cbr-aesthetic-ease),
		box-shadow 280ms var(--cbr-aesthetic-ease),
		transform 280ms var(--cbr-aesthetic-ease);
}

/* Catalog product cards — exact dark mockup */
body.cbr-theme .cbr-nol-product {
	border: 1px solid #C9A227 !important;
	border-radius: 4px !important;
	background: #111111 !important;
	background-image: none !important;
	color: #ffffff !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
	overflow: hidden;
	transition:
		border-color 280ms var(--cbr-aesthetic-ease),
		box-shadow 280ms var(--cbr-aesthetic-ease),
		transform 280ms var(--cbr-aesthetic-ease);
}

@media (hover: hover) and (pointer: fine) {
	body.cbr-theme :is(
		.cbr-evt-card,
		.cbr-per-service,
		.cbr-con-card,
		.cbr-nol-mise,
		.cbr-staff-card
	):hover {
		border-color: rgba(201, 162, 39, 0.48) !important;
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(201, 162, 39, 0.08);
		transform: translateY(-3px);
	}

	body.cbr-theme .cbr-nol-product:hover {
		border-color: #C9A227 !important;
		background: #111111 !important;
		box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
		transform: translateY(-2px);
	}
}

/* Contact cards */
body.cbr-theme .cbr-con-card {
	padding: 1.75rem 1.5rem;
}

body.cbr-theme .cbr-con-card__name {
	font-size: 1.2rem;
}

body.cbr-theme .cbr-con-card__contacts a {
	color: var(--cbr-aesthetic-ivory-soft);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 220ms ease, border-color 220ms ease;
}

body.cbr-theme .cbr-con-card__contacts a:hover,
body.cbr-theme .cbr-con-card__contacts a:focus-visible {
	color: var(--cbr-gold-light, #e5c98a);
	border-bottom-color: rgba(201, 162, 39, 0.45);
	outline: none;
}

/* Personale services */
body.cbr-theme .cbr-per-service__title {
	font-size: 1.2rem;
}

body.cbr-theme .cbr-per-service__text {
	font-size: 0.95rem;
}

/* Event cards — size only; family/weight in typography.css */
body.cbr-theme .cbr-evt-card__title {
	font-size: var(--cbr-type-card, 1.15rem);
}

body.cbr-theme .cbr-evt-card__meta {
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	color: var(--cbr-aesthetic-ivory-mute);
}

/* ========== NOLEGGIO / CATALOG ========== */
/* Catalog product names — same as staff cards (DM Serif gold) */
body.cbr-theme .cbr-nol-product__name,
body.cbr-theme .cbr-nol-product__title {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.cbr-theme .cbr-nol-product__sku {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-family: var(--cbr-sans) !important;
}

body.cbr-theme :is(
	.cbr-nol-filters,
	.cbr-catalog-explore__filters,
	.cbr-nol-catalog__sidebar,
	.cbr-catalog-explore__sidebar
) {
	border-color: rgba(201, 162, 39, 0.16);
}

body.cbr-theme :is(
	.cbr-nol-search input,
	.cbr-catalog-explore__search input,
	input[type="search"],
	.cbr-nol input[type="text"],
	.cbr-con input,
	.cbr-con select,
	.cbr-con textarea,
	.cbr-quote-modal input,
	.cbr-quote-modal textarea,
	.cbr-quote-modal select
) {
	font-family: var(--cbr-sans);
	border-color: rgba(201, 162, 39, 0.22);
	background: rgba(12, 12, 12, 0.92);
	color: var(--cbr-aesthetic-ivory);
}

body.cbr-theme :is(
	.cbr-nol input:focus,
	.cbr-con input:focus,
	.cbr-con select:focus,
	.cbr-con textarea:focus,
	.cbr-quote-modal input:focus,
	.cbr-quote-modal textarea:focus,
	.cbr-quote-modal select:focus,
	.cbr-catalog-explore__search input:focus
) {
	border-color: rgba(201, 162, 39, 0.55);
	outline: none;
	box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2);
}

/* ========== CHI SIAMO ========== */
body.cbr-theme .cbr-chi-story__title {
	font-size: var(--cbr-section-title-size);
}

body.cbr-theme .cbr-chi-story__media,
body.cbr-theme .cbr-chi-story__image {
	border-radius: 0;
}

/* ========== SECTION RHYTHM ========== */
@media (min-width: 1024px) {
	/* Section rhythm — content pages (not catalog chrome) */
	body.cbr-theme :is(.cbr-per, .cbr-evt, .cbr-chi, .cbr-con) > section:not([class*="hero"]):not([class*="catalog"]) {
		padding-block: clamp(2.75rem, 5vw, 4.5rem);
	}

	body.cbr-theme .cbr-nol > section:is(.cbr-nol-hero, .cbr-showroom, .cbr-nol-mise, [class*="showroom"]) {
		padding-block: clamp(2.5rem, 4.5vw, 4rem);
	}

	body.cbr-theme .cbr-page--home > .cbr-home-andrea,
	body.cbr-theme .cbr-page--home > .cbr-home-service--coverage,
	body.cbr-theme .cbr-page--home > .cbr-home-events-signed,
	body.cbr-theme .cbr-page--home > .cbr-home-partners,
	body.cbr-theme .cbr-page--home > .cbr-home-enrich--contact-invite {
		padding-block: 0 !important;
	}
}

/* ========== FOOTER ========== */
body.cbr-theme .cbr-site-footer {
	background: #000 !important;
}

body.cbr-theme .cbr-site-footer a {
	color: var(--cbr-aesthetic-ivory-soft);
	transition: color 220ms ease;
}

body.cbr-theme .cbr-site-footer a:hover,
body.cbr-theme .cbr-site-footer a:focus-visible {
	color: var(--cbr-gold-light, #e5c98a);
	outline: none;
}

/* ========== HOME SERVICE CARDS ========== */
body.cbr-theme .cbr-home-enrich--services-desktop {
	padding-block: clamp(2.25rem, 4.5vw, 3.75rem) !important;
	background: #000 !important;
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-boxes {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.15rem !important;
	border: 0 !important;
	padding-inline: var(--cbr-enrich-pad-x, clamp(1.25rem, 5vw, 5rem));
	width: min(100%, var(--cbr-enrich-max, 1440px));
	margin-inline: auto;
	box-sizing: border-box;
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	min-height: 100%;
	padding: 1.65rem 1.45rem 1.4rem;
	border: 1px solid var(--cbr-aesthetic-gold-border);
	border-radius: var(--cbr-aesthetic-radius);
	background: linear-gradient(165deg, rgba(22, 22, 22, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	transform: none;
	transition:
		border-color 280ms var(--cbr-aesthetic-ease),
		background-color 280ms var(--cbr-aesthetic-ease),
		box-shadow 280ms var(--cbr-aesthetic-ease),
		transform 280ms var(--cbr-aesthetic-ease);
}

body.cbr-theme .cbr-home-enrich--services-desktop a.cbr-icon-box:hover,
body.cbr-theme .cbr-home-enrich--services-desktop a.cbr-icon-box:focus-visible {
	border-color: rgba(201, 162, 39, 0.55);
	background: linear-gradient(165deg, rgba(30, 28, 22, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 39, 0.08);
	transform: translateY(-3px);
	outline: none;
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 0 0.2rem;
	border-radius: 999px;
	border: 1px solid rgba(201, 162, 39, 0.28);
	background: rgba(201, 162, 39, 0.06);
	color: var(--cbr-gold);
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box__icon svg {
	width: 1.35rem;
	height: 1.35rem;
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box__title {
	margin: 0;
	color: var(--cbr-hierarchy-subtitle);
	font-size: var(--cbr-type-display-sub);
	font-weight: 500;
	font-style: italic;
	line-height: 1.08;
	letter-spacing: -0.004em;
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box__text {
	margin: 0;
	flex: 1 1 auto;
	color: #ffffff;
	font-size: 0.92rem;
	line-height: 1.55;
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.85rem;
	padding-top: 0.95rem;
	border-top: 1px solid rgba(201, 162, 39, 0.16);
	width: 100%;
	font-family: var(--cbr-sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cbr-white, #ffffff);
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box__cta-arrow {
	display: inline-block;
	transition: transform 280ms var(--cbr-aesthetic-ease);
}

body.cbr-theme .cbr-home-enrich--services-desktop a.cbr-icon-box:hover .cbr-icon-box__cta,
body.cbr-theme .cbr-home-enrich--services-desktop a.cbr-icon-box:focus-visible .cbr-icon-box__cta {
	color: var(--cbr-gold);
}

body.cbr-theme .cbr-home-enrich--services-desktop a.cbr-icon-box:hover .cbr-icon-box__cta-arrow,
body.cbr-theme .cbr-home-enrich--services-desktop a.cbr-icon-box:focus-visible .cbr-icon-box__cta-arrow {
	transform: translateX(4px);
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box--featured {
	border-color: rgba(201, 162, 39, 0.42);
	background: linear-gradient(165deg, rgba(36, 30, 16, 0.55) 0%, rgba(10, 10, 10, 0.98) 58%);
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box--featured .cbr-icon-box__title {
	color: var(--cbr-hierarchy-subtitle);
}

body.cbr-theme .cbr-home-enrich--services-desktop .cbr-icon-box--featured .cbr-icon-box__icon {
	border-color: rgba(201, 162, 39, 0.45);
	background: rgba(201, 162, 39, 0.1);
}

body.cbr-theme .cbr-home-enrich--services-desktop a.cbr-icon-box--featured:hover,
body.cbr-theme .cbr-home-enrich--services-desktop a.cbr-icon-box--featured:focus-visible {
	border-color: rgba(201, 162, 39, 0.7);
	background: linear-gradient(165deg, rgba(48, 38, 18, 0.65) 0%, rgba(12, 12, 12, 1) 60%);
}

/* ========== HOME STATS / CONTACT ========== */
body.cbr-theme .cbr-home-enrich--stats-desktop {
	padding-block: clamp(2.25rem, 4vw, 3.5rem) !important;
}

body.cbr-theme .cbr-home-enrich--stats-desktop .cbr-stats-row {
	gap: 0;
	padding-block: 0.25rem;
	border: 0;
}

body.cbr-theme .cbr-home-enrich--stats-desktop .cbr-stat-item {
	gap: 0.4rem;
	padding: 1.5rem 1rem;
	border: 0;
}

body.cbr-theme .cbr-home-enrich--stats-desktop .cbr-stat-item__icon {
	display: none;
}

body.cbr-theme .cbr-home-enrich--stats-desktop .cbr-stat-item__value {
	font-family: var(--cbr-serif);
	font-weight: 500;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	color: var(--cbr-aesthetic-ivory);
	background: none;
	-webkit-text-fill-color: unset;
	letter-spacing: 0.02em;
}

body.cbr-theme .cbr-home-enrich--stats-desktop .cbr-stat-item__label {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
}

body.cbr-theme .cbr-home-enrich--contact-invite {
	padding-block: 0 !important;
}

body.cbr-theme .cbr-home-contact-invite {
	gap: 1.5rem;
	max-width: 36rem;
}

body.cbr-theme .cbr-home-contact-invite__title {
	font-size: clamp(1.65rem, 2.8vw, 2.35rem) !important;
	line-height: 1.22;
	color: var(--cbr-aesthetic-ivory) !important;
	text-wrap: balance;
}

/* ========== SCROLL REVEAL: less sketchy on load ========== */
@media (min-width: 1024px) {
	body.cbr-theme :is(.cbr-nol-hero, .cbr-per-hero, .cbr-evt-hero, .cbr-chi-hero, .cbr-con-hero) .cbr-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
	body.cbr-theme :is(
		.cbr-home-enrich--services-desktop .cbr-icon-box,
		.cbr-evt-card,
		.cbr-per-service,
		.cbr-con-card,
		.cbr-nol-product
	) {
		transition: none !important;
		transform: none !important;
	}
}

/* ========== SEO related services (internal links) ========== */
.cbr-seo-related {
	padding: clamp(2.5rem, 5vw, 4rem) var(--cbr-gutter, 1.25rem);
	border-top: 1px solid color-mix(in srgb, var(--cbr-gold, #c4a574) 28%, transparent);
}

.cbr-seo-related__inner {
	max-width: var(--cbr-container, 1200px);
	margin-inline: auto;
}

.cbr-seo-related__label {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--cbr-ink, #1a1a1a) 62%, transparent);
}

.cbr-seo-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.cbr-seo-related__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.cbr-seo-related__link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-height: 44px;
	padding: 1rem 1.1rem;
	text-decoration: none;
	border: 1px solid color-mix(in srgb, var(--cbr-gold, #c4a574) 35%, transparent);
	color: inherit;
	transition: border-color 200ms ease, background-color 200ms ease;
}

.cbr-seo-related__link:hover,
.cbr-seo-related__link:focus-visible {
	border-color: var(--cbr-gold, #c4a574);
	background: color-mix(in srgb, var(--cbr-gold, #c4a574) 8%, transparent);
	outline: none;
}

.cbr-seo-related__title {
	font-weight: 600;
	line-height: 1.3;
}

.cbr-seo-related__hint {
	font-size: 0.875rem;
	line-height: 1.4;
	opacity: 0.78;
}
