/* Matrace Interactive Header — front-end */
@import url("/wp-content/uploads/dms-fonts/plus-jakarta.css");

/* Zero gap fix between Woodmart navbar and interactive hero */
.home .main-page-wrapper,
.home .site-content,
.home .entry-content,
.home .elementor-section-wrap,
.home div.site-content,
.home div.main-page-wrapper,
.home .elementor > .elementor-element:first-child,
.home .elementor-section:first-child,
.home .elementor-container:first-child {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.home .whb-header,
.home .whb-sticky-header,
.home .whb-header-bottom,
.home .whb-main-header {
	margin-bottom: 0 !important;
	border-bottom: none !important;
}

.mih-header {
	--mih-accent: #b88a44;
	position: relative; 
	width: 100%; 
	box-sizing: border-box; 
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	margin-top: 0 !important;
	padding-top: 0 !important;
}
.mih-header *, .mih-header *::before, .mih-header *::after { box-sizing: border-box; }
.mih-full-bleed { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* The stage uses exact 16:9 aspect ratio matching the admin canvas and image coordinates */
.mih-stage { 
	position: relative; 
	width: 100%; 
	aspect-ratio: 16 / 9;
	overflow: hidden; 
	background: #e8e3dc; 
}
.mih-media { position: absolute; inset: 0; overflow: hidden; }
.mih-media-el { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.mih-media-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: repeating-linear-gradient(45deg,#efe9e1,#efe9e1 18px,#e7ded2 18px,#e7ded2 36px); color: #8a7b66; font-size: 15px; text-align: center; padding: 24px; }

/* Lateral gradient overlay for text readability */
.mih-overlay { 
	position: absolute; 
	inset: 0; 
	pointer-events: none;
	background: linear-gradient(
		90deg, 
		rgba(255, 255, 255, 0.94) 0%, 
		rgba(255, 255, 255, 0.82) 34%, 
		rgba(255, 255, 255, 0.20) 58%, 
		rgba(255, 255, 255, 0.0) 80%
	); 
}

/* Content block */
.mih-content { position: absolute; inset: 0; display: flex; padding: clamp(24px, 5vw, 72px); z-index: 3; pointer-events: none; }
.mih-content-inner { max-width: 520px; pointer-events: auto; align-self: center; }
.mih-align-center .mih-content { justify-content: center; text-align: center; }
.mih-align-center .mih-content-inner { margin: 0 auto; }

.mih-text-dark .mih-content-inner { color: #1c1b19; }
.mih-eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: #b88a44; }
.mih-title { 
	margin: 0 0 16px; 
	font-size: clamp(30px, 4.0vw, 52px); 
	line-height: 1.1; 
	font-weight: 800; 
	letter-spacing: -.02em; 
	color: #1c1b19; 
}
.mih-subtitle { margin: 0 0 26px; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.6; color: #4a453e; max-width: 46ch; }
.mih-cta { 
	display: inline-flex; 
	align-items: center; 
	gap: 10px; 
	padding: 14px 34px; 
	border-radius: 999px;
	background: #b88a44; 
	color: #ffffff !important; 
	font-weight: 700; 
	font-size: 15px; 
	text-decoration: none !important;
	box-shadow: 0 8px 24px rgba(184, 138, 68, 0.35); 
	transition: all .25s ease; 
}
.mih-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(184, 138, 68, 0.45); background: #9c7333; }

/* Hotspots layer */
.mih-hotspots { position: absolute; inset: 0; z-index: 4; }
.mih-hotspot { position: absolute; transform: translate(-50%, -50%); }
.mih-pin { position: relative; width: 34px; height: 34px; padding: 0; border: 0; cursor: pointer; background: transparent; display: block; outline: none; }
.mih-pin-core { 
	position: absolute; 
	inset: 0; 
	margin: auto; 
	width: 22px; 
	height: 22px; 
	border-radius: 50%;
	background: var(--mih-accent, #b88a44); 
	border: 3px solid #ffffff; 
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); 
	transition: transform .25s ease, background .25s ease; 
}
.mih-pin-pulse { 
	position: absolute; 
	inset: 0; 
	margin: auto; 
	width: 22px; 
	height: 22px; 
	border-radius: 50%;
	background: var(--mih-accent, #b88a44); 
	opacity: .6; 
	animation: mih-pulse 2.2s ease-out infinite; 
}
@keyframes mih-pulse { 0% { transform: scale(1); opacity: .6; } 70% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }
.mih-pin:hover .mih-pin-core, .mih-hotspot.is-open .mih-pin-core { transform: scale(1.25); background: #1c1b19; }

/* Shapes */
.mih-shape-plus .mih-pin-core {
	border-radius: 50%;
	background: var(--mih-accent, #b88a44);
}
.mih-shape-plus .mih-pin-core::before,
.mih-shape-plus .mih-pin-core::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	background: #ffffff;
}
.mih-shape-plus .mih-pin-core::before {
	width: 10px;
	height: 2.5px;
	border-radius: 1px;
}
.mih-shape-plus .mih-pin-core::after {
	width: 2.5px;
	height: 10px;
	border-radius: 1px;
}

.mih-shape-ring .mih-pin-core {
	background: transparent;
	border: 3px solid var(--mih-accent, #b88a44);
	box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 0 0 2px #ffffff;
}

/* Tooltip card */
.mih-card { 
	position: absolute; 
	bottom: calc(100% + 14px); 
	left: 50%; 
	transform: translateX(-50%) translateY(8px);
	width: 280px; 
	max-width: 82vw; 
	background: rgba(255, 255, 255, 0.96); 
	backdrop-filter: blur(16px);
	border-radius: 16px; 
	overflow: hidden;
	box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05); 
	opacity: 0; 
	visibility: hidden; 
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease, visibility .25s; 
	z-index: 25; 
	text-align: left; 
}
.mih-card::after { 
	content: ""; 
	position: absolute; 
	top: 100%; 
	left: 50%; 
	transform: translateX(-50%);
	border: 8px solid transparent; 
	border-top-color: #ffffff; 
}
/* Ponte invisibile sui 14px fra il pin e la scheda: senza, attraversando quel
   varco il mouse non è su nessuno dei due, :hover cade e la scheda sparisce
   prima che la si possa raggiungere. */
.mih-card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 18px;
}
.mih-hotspot.mih-flip-down .mih-card::before { top: auto; bottom: 100%; }
.mih-hotspot.is-open .mih-card, .mih-trigger-hover .mih-hotspot:hover .mih-card { 
	opacity: 1; 
	visibility: visible; 
	transform: translateX(-50%) translateY(0); 
	pointer-events: auto; 
}

/* Edge flipping */
.mih-hotspot.mih-flip-left .mih-card { left: 0; transform: translateX(0) translateY(8px); }
.mih-hotspot.mih-flip-left.is-open .mih-card, .mih-trigger-hover .mih-hotspot.mih-flip-left:hover .mih-card { transform: translateX(0) translateY(0); }
.mih-hotspot.mih-flip-left .mih-card::after { left: 22px; }
.mih-hotspot.mih-flip-right .mih-card { left: auto; right: 0; transform: translateX(0) translateY(8px); }
.mih-hotspot.mih-flip-right.is-open .mih-card, .mih-trigger-hover .mih-hotspot.mih-flip-right:hover .mih-card { transform: translateX(0) translateY(0); }
.mih-hotspot.mih-flip-right .mih-card::after { left: auto; right: 22px; }
.mih-hotspot.mih-flip-down .mih-card { bottom: auto; top: calc(100% + 14px); }
.mih-hotspot.mih-flip-down .mih-card::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #ffffff; }

.mih-card-media { width: 100%; aspect-ratio: 16/10; background: #f7f5f2; overflow: hidden; }
.mih-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.mih-card:hover .mih-card-media img { transform: scale(1.05); }

.mih-card-body { padding: 14px 16px 16px; }
.mih-card-title { margin: 0 0 4px; font-size: 15px; line-height: 1.25; font-weight: 800; color: #1c1b19; }
.mih-card-text { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: #6b6357; }
.mih-card-price { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #b88a44; }
.mih-card-price del { opacity: .5; font-weight: 400; margin-right: 6px; color: #888; }
.mih-card-link { 
	display: inline-flex; 
	align-items: center; 
	gap: 6px; 
	font-size: 12px; 
	font-weight: 800; 
	letter-spacing: .04em;
	color: #ffffff !important; 
	background: #1c1b19;
	padding: 8px 16px;
	border-radius: 50px;
	text-decoration: none !important; 
	text-transform: uppercase; 
	transition: background .2s ease;
}
.mih-card-link:hover { background: #b88a44; color: #ffffff !important; }
.mih-card-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.mih-card-link:hover svg { transform: translateX(3px); }

/* Mobile */
@media (max-width: 781px) {
	.mih-stage { aspect-ratio: 16 / 9; }
	.mih-title { font-size: clamp(24px, 6vw, 32px); }
	.mih-card { width: 230px; }
}
