/* Font */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kapakana";
  src: url("../fonts/kapakana-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kapakana";
  src: url("../fonts/kapakana-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* html {
   scroll-behavior: smooth; 
} */

body {
  font-family: "Montserrat", sans-serif;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
}

.kapakana {
  font-family: "Kapakana", sans-serif;
}

:root {
  --nav-offset-desktop: 104px;
  --nav-offset-mobile: 80px;
  --selection-bg: #e2dccf;
  --selection-text: #262626;
}

/* Keep navbar outside ScrollSmoother transforms */
.nav-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
}

.nav-fixed .logo img {
  filter: brightness(0);
}

#smooth-content {
  padding-top: var(--nav-offset-desktop);
}

@media (max-width: 1024px) {
  #smooth-content {
    padding-top: var(--nav-offset-mobile);
  }
}

:root {
  --swiper-theme-color: #c9bda8 !important; /* il tuo colore */
  --swiper-pagination-bottom: 15px !important; /* distanza dal fondo */
}

.swiper {
  padding-bottom: 50px !important;
}

.swiper-navigation-icon {
  color: #c9bda8;
  height: 32px !important;
}

::selection {
  background: #d56349;
  color: #262626;
}

#loader {
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#loader,
.loader-active {
  /* blocca lo scroll mentre il loader è visibile */
  overflow: hidden;
  touch-action: none;
}

#loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  width: 200px;
  height: 200px;
}

.loader-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #e2dccf;
  border-top-color: #c9bda8;
  animation: loader-spin 1.1s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

::-moz-selection {
  background: #d56349;
  color: #262626;
}

/* Swiper gallery nav buttons */

/* .gallery-nav:hover {
  background: #c9bda8;
  border: 1px solid #c9bda8;
} */

.swiper-pagination {
  display: none !important;
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.swiper-button-prev.gallery-nav,
.swiper-button-next.gallery-nav {
  color: #d56349;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
}

.swiper-button-prev.gallery-nav {
  left: -24px;
}

.swiper-button-next.gallery-nav {
  right: -24px;
}

.swiper-slide {
  height: 320px !important;
}

.room-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.room-gallery-modal.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.room-gallery-trigger,
.room-gallery-close {
  cursor: pointer;
}

.room-gallery-open {
  overflow: hidden;
}

.room-gallery-title {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  user-select: none;
}

.room-gallery-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.room-gallery-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #c9bda8;
}

.room-gallery-swiper {
  width: 100%;
  height: 100%;
  padding: 72px 64px 48px !important;
}

.room-gallery-swiper .swiper-wrapper {
  align-items: center;
}

.room-gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100% !important;
}

.room-gallery-swiper img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.swiper-button-prev.room-gallery-nav,
.swiper-button-next.room-gallery-nav {
  color: #fff;
}

@media (max-width: 1024px) {
  .swiper-button-prev.gallery-nav {
    left: 8px;
  }
  .swiper-button-next.gallery-nav {
    right: 8px;
  }

  .room-gallery-title {
    top: 18px;
  }

  .room-gallery-close {
    top: 10px;
    right: 10px;
  }

  .room-gallery-swiper {
    padding: 64px 16px 32px !important;
  }

  .swiper-button-prev.room-gallery-nav,
  .swiper-button-next.room-gallery-nav {
    display: none;
  }
}
