/**
 * Home — rifinitura boutique (solo front page).
 */

/* Meno CTA duplicate: niente sticky né bottone prenota nel footer (restano header, hero, fascia finale). */
@media (max-width: 767px) {
	body.home {
		padding-bottom: 0;
	}

	body.home .kadence-bb-whatsapp {
		bottom: 1.25rem;
	}
}

.home .site-footer .kb-btns_bbfootcta,
.home #colophon .kb-btns_bbfootcta {
	display: none;
}

.home .site-footer .kt-adv-heading_bbfoot4,
.home #colophon .kt-adv-heading_bbfoot4 {
	display: none;
}

/* Hero */
.home .kb-row-layout-id952_9848a4-4a .kt-inside-inner-col {
	text-align: center;
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

.home .bb-home-hero-cover .bb-home-hero-eyebrow,
.home .bb-home-hero-cover .bb-home-hero-h1,
.home .bb-home-hero-cover .bb-home-hero-lead,
.home .kb-row-layout-id952_9848a4-4a .kt-inside-inner-col .wp-block-kadence-advancedheading {
	color: #fffef9 !important;
}

.home .bb-home-hero-cover .bb-home-hero-eyebrow {
	letter-spacing: 0.14em;
	font-weight: 600;
	text-transform: uppercase;
	opacity: 0.95;
	margin-bottom: 1rem !important;
}

.home .bb-home-hero-cover .bb-home-hero-h1 {
	margin-bottom: 1rem !important;
	font-size: clamp(2rem, 4.2vw, 3.35rem) !important;
	line-height: 1.12 !important;
}

.home .bb-home-hero-cover .bb-home-hero-eyebrow {
	font-size: 0.7rem !important;
}

.home .bb-home-hero-cover .bb-home-hero-lead {
	max-width: 34rem;
	margin-left: auto !important;
	margin-right: auto !important;
	line-height: 1.6;
	opacity: 0.96;
}

.home .bb-home-hero-cover .bb-home-hero-btns {
	justify-content: center;
	margin-top: 1.75rem;
}

@media (max-width: 767px) {
	.home .bb-home-hero-cover .bb-home-hero-h1 {
		font-size: clamp(1.75rem, 7.5vw, 2.5rem) !important;
		max-width: 18ch;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.home .bb-home-hero-cover .bb-home-hero-btns {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.home .bb-home-hero-cover .bb-home-hero-btns .kb-button {
		width: 100%;
		justify-content: center;
	}
}

/* Perks (layout riga Kadence) */
.home .bb-row-perks-grid .bb-perk-kcol {
	text-align: center;
}

.home .bb-row-perks-grid .kt-svg-style-default {
	color: var(--bb-sage, #78866b);
}

.bb-perks-title {
	text-align: center;
	margin-bottom: 0.5rem;
}

.bb-perks-sub {
	text-align: center;
	color: var(--bb-charcoal-muted, #454845);
	margin: 0 auto 2.5rem;
	max-width: 28rem;
	font-size: 1.05rem;
}

.bb-perks-grid {
	display: grid;
	gap: 2rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 429px) {
	.bb-perks-grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 430px) {
	.bb-perks-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.bb-perks-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 2.5rem 2rem;
	}
}

.bb-perk-item {
	text-align: center;
	padding: 0.5rem 0.75rem;
}

.bb-perk-icon {
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0 auto 0.85rem;
	background-color: var(--bb-sage, #78866b);
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
}

.bb-perk-item:nth-child(1) .bb-perk-icon {
	mask-image: url("../icons/perk-wifi.svg");
	-webkit-mask-image: url("../icons/perk-wifi.svg");
}

.bb-perk-item:nth-child(2) .bb-perk-icon {
	mask-image: url("../icons/perk-breakfast.svg");
	-webkit-mask-image: url("../icons/perk-breakfast.svg");
}

.bb-perk-item:nth-child(3) .bb-perk-icon {
	mask-image: url("../icons/perk-ac.svg");
	-webkit-mask-image: url("../icons/perk-ac.svg");
}

.bb-perk-item:nth-child(4) .bb-perk-icon {
	mask-image: url("../icons/perk-bath.svg");
	-webkit-mask-image: url("../icons/perk-bath.svg");
}

.bb-perk-item strong {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* Story link */
.bb-story-link a {
	font-weight: 600;
	text-decoration: none;
	color: var(--bb-olive-dark, #465044);
	border-bottom: 1px solid color-mix(in srgb, var(--bb-sage) 40%, transparent);
}

.bb-story-link a:hover {
	color: var(--bb-sage);
}

/* Rooms teaser */
.bb-rooms-teaser-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.bb-rooms-teaser-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.bb-rooms-teaser-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.bb-rooms-teaser-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 20px;
	overflow: hidden;
	background: var(--bb-white, #fff);
}

.bb-rooms-teaser-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.bb-rooms-teaser-card span {
	display: block;
	padding: 0.85rem 1rem 1rem;
	font-weight: 600;
	font-size: 0.95rem;
}

/* Reviews stars */
.bb-review-stars {
	color: var(--bb-sand, #d8c6a5);
	letter-spacing: 0.08em;
	margin-bottom: 0.75rem !important;
}

/* Footer (home) */
.home .site-middle-footer-inner-wrap {
	padding-top: clamp(2.25rem, 4vw, 3.25rem) !important;
	padding-bottom: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.home .site-footer .site-footer-section img,
.home #colophon .site-footer-section img,
.home .footer-widget-area img.custom-logo {
	max-height: 56px;
	width: auto;
}

.home .site-middle-footer-inner-wrap a:not(.kb-button) {
	transition: color 0.2s ease, opacity 0.2s ease;
}

.home .site-middle-footer-inner-wrap a:not(.kb-button):hover {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Territorio — sfondo sage come prima */
.home .bb-row-territory-head,
.home .bb-row-territory-grid {
	background: color-mix(in srgb, var(--bb-sage, #78866b) 8%, var(--bb-cream, #f7f3ec)) !important;
}

/* Territorio (colonne Kadence) — card uniformi come Pompei */
.home .bb-row-territory-grid--3 > .kt-row-column-wrap,
.home .bb-row-territory-grid--2 > .kt-row-column-wrap {
	align-items: stretch;
}

.home .bb-territory-kcol .kt-inside-inner-col {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	width: 100%;
	min-height: 0;
}

.home .bb-territory-kcol .wp-block-kadence-image {
	position: absolute;
	inset: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	max-width: none !important;
}

.home .bb-territory-kcol .wp-block-kadence-image figure,
.home .bb-territory-kcol .kb-is-ratio-image {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 !important;
}

.home .bb-territory-kcol .wp-block-kadence-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(0deg, rgba(37, 39, 37, 0.75) 0%, transparent 55%);
	pointer-events: none;
}

.home .bb-territory-kcol .wp-block-kadence-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.35s ease;
}


.home .bb-territory-kcol .bb-territory-kcard-title,
.home .bb-territory-kcol .bb-territory-kcard-sub {
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	z-index: 3;
	margin: 0 !important;
	color: #fffef9 !important;
}

.home .bb-territory-kcol .bb-territory-kcard-title {
	bottom: 2.35rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.home .bb-territory-kcol .bb-territory-kcard-sub {
	bottom: 1rem;
	opacity: 0.92;
}

@media (min-width: 1024px) {
	.home .bb-row-territory-grid--2 > .kt-row-column-wrap {
		max-width: 66%;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Camere teaser — stessa dimensione per tutte le foto */
.home .bb-row-rooms-grid > .kt-row-column-wrap {
	align-items: flex-start;
}

.home .bb-room-kcol .wp-block-kadence-image {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0;
}

.home .bb-room-kcol .wp-block-kadence-image figure,
.home .bb-room-kcol .kb-advanced-image-link,
.home .bb-room-kcol .kb-is-ratio-image {
	display: block;
	width: 100%;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 20px;
}

.home .bb-room-kcol .kb-is-ratio-image {
	padding-bottom: 0 !important;
	height: auto;
}

.home .bb-room-kcol .kb-advanced-image-link img,
.home .bb-room-kcol .wp-block-kadence-image img.kb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.35s ease;
}


.home .bb-room-kcol h6 {
	margin-top: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
}

/* CTA (row background) */
.home .kb-row-layout-id952_bb_cta-a1 .kt-inside-inner-col {
	text-align: center;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.home .kb-row-layout-id952_bb_cta-a1 .kt-adv-heading952_bb_cta_p {
	max-width: 36rem;
	margin: 1rem auto 1.5rem !important;
}
