/* Galleria generica — design home camere, proporzioni landscape */

.bh-gallery {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	background: #fff;
}

.bh-gallery__slider {
	--bh-gal-gap: 0.4rem;
	/* Meno slide visibili = ogni foto resta orizzontale */
	--bh-gal-visible: 1.85;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bh-gal-gap);
	padding: 0.7rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	color: #fff;
	background-color: #1f2a37;
	overflow: hidden;
}

.bh-gallery__intro {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.25rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	/* Fascia bassa come lo stage */
	height: clamp(14rem, 28vw, 22rem);
	padding: 1.75rem 1.25rem;
	text-align: center;
	border-radius: 16px;
	background-color: #1c2632;
	background-image:
		radial-gradient(circle at 50% 42%, rgba(196, 166, 118, 0.16), transparent 46%),
		repeating-radial-gradient(circle at 50% 42%, transparent 0 22px, rgba(196, 166, 118, 0.08) 22px 23px);
	box-shadow: inset 0 0 0 1px rgba(196, 166, 118, 0.12);
}

.bh-gallery__dots-top {
	position: absolute;
	top: 1rem;
	left: 50%;
	display: flex;
	gap: 0.55rem;
	translate: -50% 0;
}

.bh-gallery__dots-top i {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--bh-color-gold);
	opacity: 0.9;
}

.bh-gallery__intro-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.bh-gallery__line {
	display: block;
	width: 2.4rem;
	height: 1px;
	margin: 0 auto 0.85rem;
	background: var(--bh-color-gold);
}

.bh-gallery__eyebrow {
	margin: 0 0 0.7rem;
	font-family: var(--bh-font-serif);
	font-style: italic;
	font-size: 1.05rem;
	color: var(--bh-color-gold);
}

.bh-gallery__title {
	margin: 0;
	max-width: 11ch;
	font-family: var(--bh-font-serif);
	font-size: clamp(1.55rem, 2.4vw, 2.1rem);
	font-weight: 500;
	line-height: 1.15;
	color: #fff;
}

.bh-gallery__ornament {
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: 0.95rem;
	background: var(--bh-color-gold);
	transform: rotate(45deg);
}

.bh-gallery__stage {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: clamp(14rem, 28vw, 22rem);
	overflow: hidden;
}

.bh-gallery__track {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: stretch;
	gap: var(--bh-gal-gap);
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-behavior: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.bh-gallery__track::-webkit-scrollbar {
	display: none;
}

.bh-gallery__slide {
	box-sizing: border-box;
	flex: 0 0 auto;
	width: calc((100% - var(--bh-gal-gap)) / var(--bh-gal-visible));
	max-width: calc((100% - var(--bh-gal-gap)) / var(--bh-gal-visible));
	height: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #2a3340;
}

.bh-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bh-gallery__controls {
	position: absolute;
	right: 1rem;
	top: 50%;
	z-index: 4;
	display: flex;
	gap: 0.45rem;
	translate: 0 -50%;
}

.bh-gallery__arrow {
	width: 2.35rem;
	height: 2.35rem;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 24, 30, 0.92);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
	transition: background 0.2s ease, color 0.2s ease;
}

.bh-gallery__arrow:hover,
.bh-gallery__arrow:focus-visible {
	background: var(--bh-color-gold);
	color: #1c1916;
}

.bh-gallery__pager {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: rgba(31, 42, 55, 0.92);
	translate: -50% 0;
}

.bh-gallery__pager:empty {
	display: none;
}

.bh-gallery__pager-dot {
	width: 0.4rem;
	height: 0.4rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.bh-gallery__pager-dot.is-active {
	background: var(--bh-color-gold);
	box-shadow: 0 0 0 3px rgba(31, 42, 55, 0.92), 0 0 0 4.5px var(--bh-color-gold);
	margin-inline: 0.12rem;
}

@media (min-width: 900px) {
	.bh-gallery__slider {
		/* Intro più stretta + stage largo (foto landscape) */
		grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 2.8fr);
		align-items: stretch;
	}
}

@media (max-width: 899px) {
	.bh-gallery__slider {
		gap: 0.85rem;
		padding: 1rem 0.85rem 2rem;
	}

	.bh-gallery__intro {
		height: auto;
		min-height: 11rem;
		padding: 2rem 1.25rem 1.5rem;
	}

	.bh-gallery__stage {
		display: flex;
		flex-direction: column;
		height: auto;
		overflow: hidden;
	}

	.bh-gallery__track {
		position: relative;
		inset: auto;
		order: 1;
		height: auto;
		padding-left: 0.85rem;
		box-sizing: border-box;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 0.85rem;
	}

	.bh-gallery__slide {
		width: calc(100% - 2.35rem);
		max-width: calc(100% - 2.35rem);
		aspect-ratio: 16 / 10;
		height: auto;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.bh-gallery__controls {
		position: static;
		order: 2;
		translate: none;
		justify-content: center;
		gap: 0.75rem;
		margin-top: 1rem;
	}

	.bh-gallery__arrow {
		background: transparent;
		border: 1px solid rgba(196, 166, 118, 0.55);
		color: var(--bh-color-gold);
		box-shadow: none;
	}

	.bh-gallery__arrow:hover,
	.bh-gallery__arrow:focus-visible {
		background: var(--bh-color-gold);
		border-color: var(--bh-color-gold);
		color: #1c1916;
	}

	.bh-gallery__pager {
		position: static;
		order: 3;
		translate: none;
		justify-content: center;
		margin: 0.85rem auto 0;
	}
}
