.bhwd-overly,
.bhwd_popup_content {
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
}

/* =======================================================================
   Static square-grid city cards (no slider). Cards are plain flex/grid
   children of .bhwdNestedCarousel now - showroom.js no longer calls
   slick() and no longer adds any slick-* classes, so all layout here is
   driven by this file alone.
   ======================================================================= */
.bhwdNestedCarousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bhwdNestedCarousel.bhwd-static-grid {
  opacity: 1;
}
.bhwdNestedCarousel .bhwd-carousel-nested-item {
  position: relative;
  width: calc(25% - 15px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.bhwdNestedCarousel .bhwd-carousel-nested-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.bhwdDotsBar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.bhwdDotsBar .dot.bhwd-dot-item {
  width: 120px;
  height: 90px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bhwdDotsBar .dot.bhwd-dot-item .mainItemTitle {
  position: absolute;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0;
  text-transform: uppercase;
}
.bhwdDotsBar .dot.bhwd-dot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.5;
}
.bhwd-mobile-overly,
.bhwd_hide {
  display: none;
}
.bhwdNestedCarousel .bhwd-carousel-nested-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 20%;
}
.bhwd_popup_content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 999;
  opacity: 1;
  visibility: visible;
  transition: 0.4s;
}
/* The whole info block (title + Info + Scopri) used to be hidden until
   hover. Now only the two action buttons hide/reveal - the city title
   stays visible all the time. */
.bhwd_information_button {
  opacity: 1;
  visibility: visible;
}
.bhwd_information_button .bhwd_pp_content_btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}
.bhwd-overly-puse {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}
.bhwd_popup_content h1,
.bhwd_popup_content h2,
.bhwd_popup_content h3,
.bhwd_popup_content h4,
.bhwd_popup_content h5 {
  color: #fff;
  font-family: Roboto, system-ui;
  font-weight: 500;
}
.bhwd-overly {
  position: absolute;
}
.bhwd-overly-puse {
  pointer-events: none;
}
.bhwd-carousel-nested-item:hover .bhwd_information_button .bhwd_pp_content_btn,
.bhwd-pp-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.bhwd-popup-container {
  height: 60vh;
  width: 50vw;
  padding: 20px 0 00px;
  border-radius: 10px;
  background: #000000d9;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  color: #fff;
  z-index: 9;
}
.bhwd_content {
  width: 100%;
  height: 90%;
}
.bhwd_content .bhwdPostContentContainer {
  overflow-y: auto;
  height: 86%;
  width: 70%;
  margin: 0 auto;
}
.bhwd_content .bhwdPostContentContainer::-webkit-scrollbar {
  width: 3px;
  border-radius: 5px;
}
.bhwd_content .bhwdPostContentContainer::-webkit-scrollbar-track {
  background: #f1f1f100;
}
.bhwd_content .bhwdPostContentContainer::-webkit-scrollbar-thumb {
  background: #888;
}
.bhwd_content .bhwdPostContentContainer::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.bhwd_close {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  z-index: 999;
  height: 10%;
  background: #000;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.989233193277311) 8%,
    rgba(255, 255, 255, 0) 63%
  );
  border-radius: 0 0 10px 10px;
}
.bhwd-close-button {
  background: #00000000;
  border-radius: 5px;
  padding: 10px;
  font-size: 40px;
  width: 70px;
  color: #fff;
  border: none;
}
.bhwd-close-button:hover {
  background: 0 0;
}
.bhwd_information_button {
  position: absolute;
  top: 37%;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.bhwd_button_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.bhwd_button_container button {
  width: 120px;
  background: #0000009a;
  border: 1.5px solid #fff;
  padding: 5px;
  border-radius: 30px;
  margin-top: 10px;
  font-weight: 400;
  color: #fff;
  font-family: Roboto, serif;
}
.bhwd-pp-active {
  position: fixed;
}
.bhwd_MainCarousel .mainItemList,
.nested-carousel-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.nested-carousel-indicators .indicator {
  margin: 0 5px;
}
.bhwd_MainCarousel .mainItemList li {
  margin: 0 5px;
  width: 60px;
  height: 60px;
  border-radius: 15%;
  overflow: hidden;
  cursor: pointer;
}
.bhwd_MainCarousel .mainItemList li img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.bhwd_MainCarousel .bhwd-nested-item-one {
  display: flex;
  justify-content: center;
  align-items: center;
}
.bhwd_MainCarousel .bhwd-nested-item-one .bhwd-single-child-page-content {
  width: 33.33%;
}
.item-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}
.item-dots .item-dot {
  text-transform: uppercase;
}
.item-dots .item-dot:after {
  display: block;
  content: "";
  border-bottom: 2px solid #dc3545;
  transition: transform 0.7s ease-in-out;
  transform-origin: 0 50%;
  transform: scaleX(1);
}

.bhwd_lazy_lopading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 75vh;
  flex-wrap: wrap;
  gap: 0;
}
.bhwd_lazy_lopading .bhwd_lazy_grid,
.bhwd_lazy_title {
  width: 20%;
  height: 300px;
  margin: 10px;
  background: #f0f0f0;
  border-radius: 10px;
  animation: bhwdLazyLoadingAnimation 1.5s infinite ease-in-out;
}
.bhwd_lazy_lopading .bhwd_lazy_grid.middle {
  width: 30%;
  height: 400px;
  animation-delay: 0.3s;
}
.bhwd_lazy_lopading .bhwd_lazy_title_block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0px;
}
.bhwd_lazy_title {
  width: 30%;
  height: 50px;
  background: #f0f0f0;
  border-radius: 10px;
  animation-delay: 0.6s;
  margin-bottom: 5px;
}
@keyframes bhwdLazyLoadingAnimation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.bhwd_sm_title {
  text-align: center;
}

@media (max-width: 1024px) {
  .bhwdNestedCarousel .bhwd-carousel-nested-item {
    width: calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  .bhwd_MainCarousel .bhwd-carousel-item {
    overflow: hidden;
  }
  .bhwd_MainCarousel {
    margin-bottom: -30px;
  }
  .bhwdNestedCarousel {
    gap: 12px;
  }
  .bhwdNestedCarousel .bhwd-carousel-nested-item {
    width: calc(50% - 6px);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }
  .bhwd-mobile-overly {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    background: #000;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.989233193277311) 0,
      rgba(255, 255, 255, 0) 54%
    );
    z-index: 1;
  }
  .bhwd_content {
    height: 90%;
  }
  .bhwdDotsBar {
    bottom: 110px;
    position: relative;
  }
  .item-dots {
    margin: 0;
  }
  /* No hover on touch devices - keep Info/Scopri visible on mobile too,
     same as the always-visible city title. */
  .bhwd_information_button .bhwd_pp_content_btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .bhwdDotsBar .dot.bhwd-dot-item {
    width: 80px !important;
    height: 60px !important;
    margin: 0 3px;
  }
  .bhwdDotsBar .dot.bhwd-dot-item .mainItemTitle {
    font-size: 10px;
  }
  .bhwdNestedCarousel .bhwd-carousel-nested-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .bhwd_popup_content {
    position: absolute;
    height: 380px;
    width: 100%;
  }
  .bhwd-popup-container {
    height: 100%;
    width: 100%;
    padding: 10px 10px 0;
    border-radius: 50px 50px 0 0;
    overflow: hidden;
  }
  .bhwd-overly {
    height: auto;
    width: auto;
    position: absolute;
  }
  .bhwd-close-button {
    padding: 0;
    width: 70px;
  }
  .bhwd-nsted-indicator-container {
    bottom: 70px;
  }
  .bhwd-nsted-indicator-container .bhwd-nested-item-indicator p {
    font-size: 11px;
  }
  .bhwd_button_container button {
    padding: 2px;
    font-size: 16px;
  }
  .bhwd_content .bhwdPostContentContainer {
    height: 80%;
  }

  /**/

  .bhwd_lazy_lopading {
    display: block;
    height: auto;
  }
  .bhwd_lazy_lopading .bhwd_lazy_grid,
  .bhwd_lazy_title {
    width: 100%;
    height: 200px;
  }
  .bhwd_lazy_lopading .bhwd_lazy_grid.middle {
    width: 100%;
    height: 200px;
    animation-delay: 0.3s;
  }

  .bhwd_lazy_title {
    width: 70%;
    height: 30px;
  }
}

/* Diego: bigger, clearer city title + info/scopri buttons on mobile */
@media (max-width: 768px) {
  .bhwd-carousel-nested-item .bhwd-title {
    font-size: clamp(18px, 5.5vw, 26px) !important;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }
  .bhwd_information_button {
    top: 16% !important;
  }
  .bhwd_pp_content_btn {
    font-size: 13px !important;
    padding: 8px 14px !important;
  }
  .bhwd_button_container button {
    width: 110px !important;
  }
}

/* =======================================================================
   MODERN visual polish + animations for the static square-grid cards.
   Purely additive/cosmetic - safe to keep even though the slider itself
   is gone (there is no more slick-track/slick-slide/arrows/dots).
   ======================================================================= */

/* Always-on soft gradient at the bottom of every card, so the city title
   reads cleanly over any photo. */
.bhwdNestedCarousel .bhwd-carousel-nested-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.bhwdNestedCarousel .bhwd-carousel-nested-item .bhwd_information_button {
  z-index: 2;
}

/* Gentle image zoom on hover for a modern, alive feel */
.bhwdNestedCarousel .bhwd-carousel-nested-item img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bhwdNestedCarousel .bhwd-carousel-nested-item:hover img {
  transform: scale(1.08);
}

/* Title: modern weight/spacing, sits above the gradient */
.bhwd-carousel-nested-item .bhwd-title {
  letter-spacing: 0.02em;
}

/* Buttons: rounded pill with a quick hover lift instead of a static block */
.bhwd_button_container button,
.bhwd_pp_content_btn {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, box-shadow 0.25s ease;
}
.bhwd_button_container button:hover,
.bhwd_pp_content_btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* Removed the load-time scale()/translateY() entrance animation - on a
   border-radius + overflow:hidden card, animating a transform on the card
   (while the image inside also transforms on hover) left Chrome/Firefox
   rendering the clipped photo on a soft, non-pixel-aligned compositing
   layer - which read as "all the images look blurry". The cards just
   fade in via the .bhwd-static-grid opacity rule above now - crisp, no
   transform involved. */

/* Section title: small red accent underline */
.bhwd_sm_title {
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.02em;
}
.bhwd_sm_title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: #dc3545;
  border-radius: 3px;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .bhwdNestedCarousel .bhwd-carousel-nested-item::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }
  .bhwdNestedCarousel .bhwd-carousel-nested-item:hover img {
    transform: none; /* no hover-zoom on touch devices */
  }
}

/* Loading state: keep the spinner visible until the grid is actually
   populated and marked ready via .bhwd-static-grid (added by JS right
   after the cards are built - no slick dependency any more). */
.bhwd_MainCarousel {
  position: relative;
  min-height: 320px;
}
.bhwd_MainCarousel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: #dc3545;
  border-radius: 50%;
  animation: bhwd-carousel-spin 0.8s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.bhwd_MainCarousel:has(.bhwdNestedCarousel.bhwd-static-grid)::after {
  display: none;
}
@keyframes bhwd-carousel-spin {
  to {
    transform: rotate(360deg);
  }
}
