/* Stone highlights (Instagram-style) on top of /materiali/. Markup is built by abk-stories.js. */
.bh-hl {
  --bh-gold: #e6cca5;
  --bh-gold-2: #b8925a;
  --bh-ink: #1b1b1b;
  --bh-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --bh-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  background: var(--bh-ink);
  padding: 44px 16px 8px;
}
.bh-hl__row {
  display: flex; justify-content: safe center; gap: clamp(16px, 2.4vw, 36px);
  list-style: none; margin: 0 auto; padding: 4px 16px 6px; max-width: 1280px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bh-hl__row::-webkit-scrollbar { display: none; }
.bh-hl__row > li { flex: 0 0 auto; scroll-snap-align: start; }
.bh-hl__item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer; color: #fff;
  -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(10px);
  animation: bh-in 700ms var(--bh-ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes bh-in { to { opacity: 1; transform: none; } }
.bh-hl__ring {
  position: relative; width: 96px; height: 96px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #f6e6c8, var(--bh-gold-2), #8a6a3c, var(--bh-gold), #fff3dc, var(--bh-gold-2), #f6e6c8);
  transition: transform 160ms ease-out;
}
.bh-hl__item.is-seen .bh-hl__ring { background: #6e624f; }
.bh-hl__ring img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--bh-ink); box-sizing: border-box;
  transition: transform 500ms var(--bh-ease);
}
.bh-hl__item:active .bh-hl__ring { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .bh-hl__item:hover .bh-hl__ring img { transform: scale(1.06); }
}
.bh-hl__item:focus-visible { outline: none; }
.bh-hl__item:focus-visible .bh-hl__ring { box-shadow: 0 0 0 2px var(--bh-ink), 0 0 0 4px var(--bh-gold); }
.bh-hl__name {
  font-family: "CopperPlate Font", Poppins, sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bh-gold);
}
/* the gallery heading sits right under the highlights */
.bh-hl + .elementor > #materiali > .e-con-inner { padding-top: 36px !important; }
@media (max-width: 480px) {
  .bh-hl { padding-top: 32px; }
  .bh-hl { padding-left: 0; padding-right: 0; }
  .bh-hl__row { gap: 10px; justify-content: flex-start; padding: 4px 16px 6px; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .bh-hl__row > li { width: 72px; display: flex; justify-content: center; }
  .bh-hl__ring { width: 70px; height: 70px; padding: 2.5px; }
  .bh-hl__ring img { border-width: 2.5px; }
  .bh-hl__name { font-size: 11px; letter-spacing: 0.03em; }
}

/* ---------- viewer ---------- */
html.bh-lock, html.bh-lock body { overflow: hidden !important; }
html.bh-lock #trp-floater-ls { visibility: hidden; }
/* the theme styles every <button>; reset ours */
.bh-sv button, .bh-hl button { font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; }
.bh-sv .bh-sv__close, .bh-sv .bh-sv__close:hover, .bh-sv .bh-sv__close:focus { background: transparent; color: #fff; border: 0; padding: 0; }
.bh-hl .bh-hl__item, .bh-hl .bh-hl__item:hover, .bh-hl .bh-hl__item:focus { background: none; border: 0; color: #fff; padding: 0; }
.bh-sv {
  --bh-gold: #e6cca5; --bh-ease: cubic-bezier(0.23, 1, 0.32, 1); --bh-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --h: min(92svh, 880px); --cw: calc(var(--h) * 0.5625);
  position: fixed; inset: 0; z-index: 10000001; display: none;
  background: rgba(14, 13, 12, 0.94);
  font-family: Poppins, sans-serif; color: #fff;
  opacity: 0; transition: opacity 260ms ease-out;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
@supports (backdrop-filter: blur(1px)) { .bh-sv { background: rgba(14, 13, 12, 0.82); backdrop-filter: blur(18px) saturate(120%); } }
.bh-sv.is-open { display: block; }
.bh-sv.is-shown { opacity: 1; }
.bh-sv__close {
  position: absolute; top: 18px; right: 22px; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: transform 160ms ease-out, background-color 200ms ease;
}
.bh-sv .bh-sv__close:hover { background: rgba(255,255,255,0.1); }
.bh-sv__close:active { transform: scale(0.94); }
.bh-sv__track { position: absolute; inset: 0; }

/* a story card; desktop shows neighbours small at the sides */
.bh-st {
  position: absolute; left: 50%; top: 50%; height: var(--h); aspect-ratio: 9 / 16; width: auto;
  border-radius: 14px; overflow: hidden; background: #24221f;
  transform: translate(-50%, -50%) translateX(calc(var(--off) * (var(--h) * 0.56 * 0.72 + 64px))) scale(var(--s, 1));
  transition: transform 520ms var(--bh-drawer), opacity 400ms ease, filter 400ms ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.bh-st:not(.is-active) { --s: 0.42; filter: brightness(0.5); cursor: pointer; }
.bh-st[data-far] { opacity: 0; pointer-events: none; }
.bh-st:not(.is-active) .bh-st__ui, .bh-st:not(.is-active) .bh-sl__body, .bh-st:not(.is-active) .bh-sl--uses > * { opacity: 0; }
.bh-st:not(.is-active) .bh-st__peek { background: linear-gradient(transparent, rgba(0,0,0,0.35)); }
.bh-st__peek {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; transition: opacity 300ms ease; pointer-events: none;
}
.bh-st:not(.is-active) .bh-st__peek { opacity: 1; }
.bh-st__peek img { width: 34%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 6px solid var(--bh-gold); }
.bh-st__peek b { font-family: "CopperPlate Font", Poppins, sans-serif; font-size: 46px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; font-weight: 600; }

.bh-st__ui { position: absolute; inset: 0; transition: opacity 300ms ease; }
.bh-st__bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 4px; }
.bh-st__bar { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,0.32); overflow: hidden; }
.bh-st__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.bh-st__head {
  position: absolute; top: 22px; left: 14px; right: 14px; z-index: 4;
  display: flex; align-items: center; gap: 10px; pointer-events: none;
}
.bh-st__head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--bh-gold); }
.bh-st__head b { font-family: "CopperPlate Font", Poppins, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.bh-st__head span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); }
.bh-st__shade { position: absolute; inset: 0 0 auto; height: 120px; z-index: 3; pointer-events: none; background: linear-gradient(rgba(0,0,0,0.5), transparent); }

.bh-st__slides { position: absolute; inset: 0; }
.bh-sl { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 360ms ease, visibility 0s 360ms; }
.bh-sl.is-on { opacity: 1; visibility: visible; transition: opacity 360ms ease; }

/* slide 1: what is it */
.bh-sl--what .bh-sl__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.bh-sl--what.is-on .bh-sl__bg { animation: bh-kb 11s linear forwards; }
@keyframes bh-kb { to { transform: scale(1.14) translateY(-1.5%); } }
.bh-sl--what::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,14,12,0) 22%, rgba(16,14,12,0.72) 52%, rgba(16,14,12,0.96) 80%);
}
.bh-sl__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 clamp(20px, 7%, 34px) clamp(26px, 6%, 40px); }
.bh-sl__title {
  margin: 0 0 14px; font-family: "CopperPlate Font", Poppins, sans-serif; font-weight: 600; color: var(--bh-gold);
  font-size: clamp(26px, calc(var(--h) * 0.045), 40px); line-height: 1.08; letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance;
}
.bh-sl__text { margin: 0 0 10px; font-size: clamp(13px, calc(var(--h) * 0.0185), 15.5px); line-height: 1.55; font-weight: 500; color: rgba(255,255,255,0.88); text-wrap: pretty; }
.bh-sl__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; border-radius: 10px; overflow: hidden; background: rgba(230,204,165,0.22); }
.bh-sl__facts div { background: rgba(26,24,22,0.86); padding: 10px 10px 11px; }
.bh-sl__facts dt { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bh-gold); margin: 0 0 4px; font-weight: 500; }
.bh-sl__facts dd { margin: 0; font-size: 12.5px; line-height: 1.35; font-weight: 500; color: #fff; text-wrap: balance; }
.bh-sl.is-on .bh-rise { animation: bh-rise 700ms var(--bh-ease) both; animation-delay: calc(var(--d, 0) * 80ms + 120ms); }
@keyframes bh-rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* slide 2: common uses */
.bh-sl--uses { background: radial-gradient(120% 70% at 50% 0%, #34302b 0%, #1f1d1a 60%, #191816 100%); display: flex; flex-direction: column; padding: 74px clamp(12px, 4.5%, 20px) clamp(14px, 4%, 22px); box-sizing: border-box; }
.bh-sl--uses .bh-sl__title { text-align: center; font-size: clamp(20px, calc(var(--h) * 0.033), 30px); margin-bottom: 4px; }
.bh-sl__rule { width: 56px; height: 1px; background: var(--bh-gold); opacity: 0.6; margin: 10px auto 14px; }
.bh-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2.2%, 12px) clamp(6px, 2%, 10px); }
.bh-grid figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.bh-grid img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 6px; display: block; background: #2c2925; }
.bh-grid figcaption { font-style: normal; padding-top: 6px; min-height: 2.5em; font-size: clamp(10px, calc(var(--h) * 0.0142), 12.5px); line-height: 1.25; font-weight: 500; text-align: center; color: rgba(255,255,255,0.9); text-wrap: balance; }
.bh-sl.is-on .bh-grid figure { animation: bh-rise 600ms var(--bh-ease) both; animation-delay: calc(var(--d) * 45ms + 120ms); }

.bh-st.is-held .bh-st__head, .bh-st.is-held .bh-st__bars { opacity: 0; transition: opacity 200ms ease; }

/* desktop arrows */
.bh-sv__nav {
  position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.9); color: #1b1b1b; display: grid; place-items: center; transition: transform 160ms ease-out, opacity 200ms ease;
}
.bh-sv__nav:active { transform: scale(0.94); }
.bh-sv__nav[disabled] { opacity: 0; pointer-events: none; }
.bh-sv__nav--prev { left: calc(50% - var(--cw) / 2 - 58px); }
.bh-sv__nav--next { left: calc(50% + var(--cw) / 2 + 18px); }

@media (max-width: 700px) {
  .bh-sv { --h: 100svh; }
  .bh-sl--uses { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .bh-feat { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .bh-sl__body { padding-bottom: max(26px, calc(env(safe-area-inset-bottom) + 12px)); }
  .bh-st { height: 100svh; width: 100vw; aspect-ratio: auto; border-radius: 0; box-shadow: none;
    transform: translate(-50%, -50%) translateX(calc(var(--off) * 100vw)); }
  .bh-st:not(.is-active) { --s: 1; filter: none; }
  .bh-st__peek { display: none; }
  .bh-st:not(.is-active) .bh-st__ui { opacity: 1; }
  .bh-sv__nav { display: none; }
  .bh-sv__close { top: 14px; right: 6px; }
  .bh-st__head { right: 56px; }
  .bh-sv { background: #111; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bh-hl__item { animation: none; opacity: 1; transform: none; }
  .bh-st { transition: opacity 300ms ease, filter 300ms ease; }
  .bh-sl--what.is-on .bh-sl__bg, .bh-sl.is-on .bh-rise, .bh-sl.is-on .bh-grid figure { animation: none; }
}
.bh-sv .bh-sv__nav, .bh-sv .bh-sv__nav:hover, .bh-sv .bh-sv__nav:focus { background: rgba(255,255,255,0.92); color: #1b1b1b; padding: 0; border: 0; }
/* homepage: between the hero and the MADE WITH EXCELLENCE strip */
.bh-hl--home { padding: 40px 0 44px; background: linear-gradient(#111, #161616); }
@media (max-width: 480px) { .bh-hl--home { padding: 30px 0 32px; } }

/* slide 3: key features */
.bh-sl--feat { background: #151412; overflow: hidden; }
.bh-sl__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.bh-sl--feat.is-on .bh-sl__photo { animation: bh-kb 11s linear forwards; }
.bh-sl--feat::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(14,12,10,0.62) 0%, rgba(14,12,10,0.38) 30%, rgba(14,12,10,0.5) 70%, rgba(14,12,10,0.78) 100%); }
.bh-feat { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; box-sizing: border-box;
  padding: 74px clamp(14px, 5%, 24px) clamp(16px, 4%, 24px); }
.bh-feat .bh-sl__title { text-shadow: 0 2px 14px rgba(0,0,0,0.6); text-align: center; font-size: clamp(20px, calc(var(--h) * 0.033), 30px); margin-bottom: 4px; }
.bh-feat__grid { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2.2%, 12px); }
.bh-feat__grid li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(5px, 1.1vh, 9px);
  text-align: center; padding: 10px 8px; border-radius: 12px; border: 1px solid rgba(230,204,165,0.2);
  background: rgba(20,18,16,0.36); -webkit-backdrop-filter: blur(6px) saturate(115%); backdrop-filter: blur(6px) saturate(115%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 30px rgba(0,0,0,0.28); }
.bh-feat__ic { width: clamp(46px, calc(var(--h) * 0.074), 62px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(230,204,165,0.5); box-shadow: 0 0 0 4px rgba(230,204,165,0.06), inset 0 0 18px rgba(230,204,165,0.08);
  background: radial-gradient(circle at 35% 30%, rgba(246,230,200,0.14), transparent 70%); }
.bh-feat__ic svg { width: 54%; height: 54%; fill: var(--bh-gold); filter: drop-shadow(0 0 6px rgba(230,204,165,0.25)); }
.bh-feat__name { font-size: clamp(9.5px, calc(var(--h) * 0.0128), 11px); font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(230,204,165,0.92); line-height: 1.3; text-wrap: balance; }
.bh-feat__line { width: 22px; height: 1px; background: rgba(230,204,165,0.45); }
.bh-feat__val { font-family: "CopperPlate Font", Poppins, sans-serif; font-weight: 600; font-size: clamp(12.5px, calc(var(--h) * 0.018), 15px);
  letter-spacing: 0.04em; line-height: 1.25; color: #fff; text-transform: uppercase; text-wrap: balance; }
.bh-sl.is-on .bh-feat__grid li { animation: bh-rise 650ms var(--bh-ease) both; animation-delay: calc(var(--d) * 60ms + 140ms); }
@media (prefers-reduced-motion: reduce) { .bh-sl.is-on .bh-feat__grid li { animation: none; } }
