/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/*bY M.C. - Add Lines */

/* ========================================================
   BASE / RESET
   ======================================================== */

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background-color: #fff;
  padding-top: 0 !important;
}

font-cinzel {
  font-family: Cinzel, serif;
}

.section-padding {
  padding: 80px 0;
}

/* ========================================================
   NAVBAR
   ======================================================== */

.custom-navbar {
  background-color: transparent;
  border-bottom: 1px solid transparent !important;
  padding: 20px 0;
  z-index: 1050;
  transition: background-color .4s ease, backdrop-filter .4s ease,
              border-color .4s ease, padding .4s ease;
}

.custom-navbar.scrolled {
  background-color: rgba(26, 26, 26, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 185, 154, 0.2) !important;
  padding: 12px 0;
}

.custom-navbar .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FAF7F2 !important;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: #C9B99A !important;
}

/* Brand */
.brand-h1 {
  display: contents; /* l'h1 non genera un proprio box: nessun margine, nessun cambio di font */
  margin: 0;
  padding: 0;
}

.brand-sub,
.brand-main {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  color: #C9B99A;
  line-height: 1;
}

.brand-sub {
  font-size: 14px;
  letter-spacing: .35em;
}

.brand-main {
  font-size: 18px;
  letter-spacing: .15em;
  line-height: 1.2;
}

/* Button booking */
.btn-booking {
  border: 1px solid #C9B99A;
  color: #C9B99A;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: .3s ease;
}

.btn-booking:hover {
  background-color: #C9B99A;
  color: #1a1a1a;
}

/* Hamburger */
.custom-toggler {

  border: 0px;
  /*border-color: rgba(201, 185, 154, 0.5) !important;*/
  padding: 8px 10px;
  position: relative;
}

.custom-toggler .toggler-icon {
  width: 24px;
  height: 2px;
  background-color: #C9B99A;
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

.custom-toggler .toggler-icon::before,
.custom-toggler .toggler-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #C9B99A;
  left: 0;
  transition: all 0.3s ease;
}

.custom-toggler .toggler-icon::before {
  top: -8px;
}

.custom-toggler .toggler-icon::after {
  top: 8px;
}

.navbar-toggler:not(.collapsed) .toggler-icon {
  background-color: transparent;
}

.navbar-toggler:not(.collapsed) .toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler:not(.collapsed) .toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}



.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201, 185, 154, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (min-width: 992px) {
  .navbar-collapse {
    height: auto !important;
    clear: both !important;
  }

  .custom-navbar {
    max-height: 80px !important;
  }
}

/* ========================================================
   HERO / CAROUSEL
   ======================================================== */

#heroCarousel {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #FAF7F2 !important;
  margin-top: 0;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  height: 100%;
  width: 100%;
}

/* Fade effect */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity .8s;
}

.carousel-fade .active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  z-index: 1;
}

/* Background slider */

/* ORIGINALE
.slider-bg-wrapper {
  position: absolute;
  inset: 0;

  height: 120vh; da commentare
  height: 100%;
  z-index: 1;

  transform: translateZ(0);
  perspective: 1000;
  backface-visibility: hidden;

  will-change: transform, opacity;
}

.slider-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
*/

.slider-bg-wrapper {
  position: absolute;
  /*top: 0;*/
  top: -10%;
  left: 0;
  width: 100%;
  /**/
  height: 120% !important; /* Cambiato da 120vh a 100% per bloccare il buco in cima */
  z-index: 1;
}

.slider-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Mantiene l'inquadratura della foto sempre centrata */
}

.slider-bg-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
}

/* Caption */
.carousel-caption-custom-left {
  position: absolute;
  left: 0;
  bottom: 18%;
  width: 100%;
  color: #FAF7F2;
  z-index: 10;
}

.slider-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
}

.slider-title,
.slider-title-gold {
  font-size: calc(2.2rem + 2.5vw);
  line-height: 1.1;
}

.slider-title {
  color: #FAF7F2;
}

.slider-title-gold {
  color: #C9B99A;
}

.slider-divider-container-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .slider-divider-container-left {
    margin: 1rem 0 !important;
  }
}

.slider-line {
  width: 3rem;
  height: 1px;
  background-color: #C9B99A;
}

.slider-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 0px;
}

/* Button large */
.btn-booking-lg {
  border: 1px solid #C9B99A;
  color: #C9B99A;
  padding: 12px 30px;
  font-size: 13px;
  border-radius: 4px;
  background: transparent;
  transition: .3s ease;
}

.btn-booking-lg:hover {
  background-color: #C9B99A;
  color: #1a1a1a;
}

/* Scroll icon */
.scroller-domus {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroller-domus img {
  width: 32px;
}

/* ========================================================
   TYPO / ELEMENTI
   ======================================================== */

.text-gold {
  color: #8b7355;
}

.lead-text {
  font-size: 1.1rem;
  line-height: 1.6;
}

.custom-blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #8b7355;
  border-left: 3px solid #8b7355 !important;
}

/* Hover / effects */
.image-scale-container img {
  transition: transform .5s ease;
}

.image-scale-container:hover img {
  transform: scale(1.05);
}

.hover-image-container .bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: .3s ease;
}

.hover-image-container:hover .bg-overlay {
  opacity: 1;
}

.bg-overlay-content {
  text-align: center;
  color: #fff;
}

.text-shadow {
  text-shadow: 3px 3px 18px rgba(0,0,0,.8);
}

/* Comfort section */
.comfort-icon {
  width: 3.5rem;
  color: #8b7355;
  margin-bottom: 15px;
}

.comfort-title {
  font-size: 1.2rem;
  color: #8b7355;
}

.comfort-item {
  height: 100%;
}

#comfort .col {
  display: flex;
}

/* ========================================================
   IMMAGINI
   ======================================================== */

.image-content,
.image-host {
  width: 100%;
  overflow: hidden;
}

.image-content {
  height: 450px;
}

.image-host {
  height: 600px;
}

.image-content img,
.image-host img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */

@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }

  #whoami .image-scale-container,
  #content .image-scale-container {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    margin: auto;
  }

  #content .hover-image-container {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    margin: auto;
  }
}

/* ========================================================
   FIX VARI
   ======================================================== */

.hover-image-container .canvas-overlay-fix {
  opacity: 0;
  transition: .3s ease;
}

.hover-image-container:hover .canvas-overlay-fix {
  opacity: 1 !important;
}

/* ========================================================
   FIX RESPONSIVE LAYOUT (992px e sotto)
   blocca il comportamento fluido delle colonne
   ======================================================== */

@media (max-width: 991px) {
  #whoami .row,
  #content .row {
    flex-direction: column !important;
  }

  #whoami .col-lg-5,
  #whoami .col-lg-7,
  #content .col-lg-5,
  #content .col-lg-7 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* ========================================================
   FIX IMMAGINI RESPONSIVE
   ======================================================== */

#whoami img,
#content img {
  max-width: 100%;
  height: auto;
}






/* ========================================================
   LUXURY CAROUSEL - FIX PROPORZIONI ORIGINARIE
   ======================================================== */

.luxury-carousel-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 15px 0;
}

.luxury-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.luxury-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  align-items: flex-start; /* Allinea le foto in alto se hanno altezze originarie leggermente diverse */
}

/* SMARTPHONE: Mantiene il tuo padding a 35px */
.luxury-carousel-item {
  flex: 0 0 100%; 
  padding: 0 35px; 
  box-sizing: border-box;
  scroll-snap-align: center; 
}

/* ELIMINATO L'ASPECT-RATIO: Ora il contenitore segue la vera forma della foto */
.luxury-carousel-item .hover-image-container {
  width: 100% !important;
  height: auto !important; 
  aspect-ratio: auto !important; /* Annulla tassativamente la forma quadrata (1/1) */
}

/* L'immagine ora si ridimensiona proporzionalmente senza subire tagli (object-fit) */
.luxury-carousel-item img {
  width: 100% !important;
  height: auto !important; /* Permette alla foto di seguire la sua altezza nativa */
  object-fit: contain !important; /* Cambiato da cover a contain per mostrare tutta la foto intera senza tagliarla */
  display: block;
}

/* Frecce Laterali (Invariate come da tuo codice) */
.luxury-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(26, 26, 26, 0.8);
  color: #C9B99A;
  border: 1px solid rgba(201, 185, 154, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow-left { left: 5px; }
.arrow-right { right: 5px; }

/* ========================================================
   BREAKPOINTS RESPONSIVE (Senza forzature geometriche)
   ======================================================== */

@media (max-width: 991px) {
  .luxury-carousel-wrapper {
    scroll-snap-type: x mandatory;
  }
}

/* TABLET (Sopra i 576px) */
@media (min-width: 576px) {
  .luxury-carousel-item {
    flex: 0 0 50%;
    padding: 0 12px; 
    scroll-snap-align: start;
  }
  
  .arrow-left { left: 15px; }
  .arrow-right { right: 15px; }
}

/* DESKTOP (3 Foto affiancate) */
@media (min-width: 992px) {
  .luxury-carousel-wrapper {
    scroll-snap-type: none;
  }

  .luxury-carousel-item {
    flex: 0 0 33.3333%;
    padding: 0 12px;
  }
  
  /* Rimosso l'aspect-ratio 3/4 anche da qui per preservare l'originale su PC */
  .luxury-carousel-item .hover-image-container {
    height: auto;
  }
}





/* ========================================================
   SEZIONE DIVIDER PARALLAX (STILE CANVAS CON ID + DOPPIO GRADIENTE)
   ======================================================== */

#our-position {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 450px;
  z-index: 1;
  --parallax-y: 50%;
  background-image:
    linear-gradient(to top, rgba(13, 11, 9, 0.9), rgba(13, 11, 9, 0.5), rgba(13, 11, 9, 0.2)),
    linear-gradient(to right, rgba(13, 11, 9, 0.55), rgba(0, 0, 0, 0)),
    url('/images/DM-Footer.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center center, center center, center var(--parallax-y);
  background-color: #0d0b09;
}


/* Sovrapposizione di due gradienti: uno dall'alto e uno dal basso per massima eleganza */
#our-position .parallax-divider-content {
  position: relative;
  z-index: 2;
  height: 100%;
}

#our-position .font-medium {
  font-family: Cinzel, serif;
  color: #FAF7F2;
  font-size: 1.9rem;
  line-height: 2rem;
  letter-spacing: .025rem;
  margin: 0px;
}

#our-position .font-small {
  font-family: Montserrat, sans-serif;
  color: #C9B99A;
  font-size: 10px;
  line-height: 2rem;
  letter-spacing: .175rem;
  text-transform: uppercase;
}






















/* ========================================================
   DROPDOWN LINGUE (STILE)
   ======================================================== */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: transparent !important;
  border: none !important;
  color: #FAF7F2 !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: none !important;
}

.lang-btn::after {
  color: #C9B99A;
  vertical-align: middle;
}

.lang-menu {
  background-color: rgba(26, 26, 26, 0.98) !important;
  border: 1px solid rgba(201, 185, 154, 0.2) !important;
  border-radius: 4px;
  padding: 5px 0;
  min-width: 130px;
}

.lang-menu .dropdown-item {
  color: #FAF7F2 !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: .3s ease;
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item.active {
  background-color: rgba(201, 185, 154, 0.15) !important;
  color: #C9B99A !important;
}

.flag-icon {
  font-size: 16px;
}

/* Allineamento e proporzioni delle bandiere SVG */
.flag-icon {
  width: 20px;          /* Larghezza della bandierina */
  height: 14px;         /* Altezza proporzionata */
  object-fit: cover;
  border-radius: 2px;   /* Un leggero arrotondamento luxury sugli angoli */
  box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Una leggera ombra per staccare dallo sfondo */
  display: inline-block;
  flex-shrink: 0;       /* Impedisce alla bandiera di rimpicciolirsi se il testo è lungo */
}

/* Sistema l'allineamento del testo nel bottone principale e nelle voci */
.lang-btn, 
.lang-menu .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;  /* Spazio perfetto tra la bandiera e la scritta */
}






#map-section .map-container {
  width: 100%;
  height: 300px;
  border-radius: 0;
}

#map-section .map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 991px) {
  #map-section .map-container {
    height: 250px;
  }
}





#contactus {
  background-color: #1a1a1a;
  border-top: 1px solid rgba(201, 185, 154, 0.2);
}

.footer-text-gold {
  color: #C9B99A;
}

.footer-text-cream {
  color: #FAF7F2;
}

/* ========================================================
   INSTAGRAM LINK
   ======================================================== */
.instagram-link {
    color: #8b7355;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
}

.instagram-link:hover {
    color: #C9B99A;
    transform: translateX(4px);
}

.instagram-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.footer-top-row {
    border-bottom: 1px solid rgba(201, 185, 154, 0.15);
}

.footer-col-title {
    font-family: 'Cinzel', serif;
    color: #C9B99A;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.footer-col-text {
    font-family: 'Montserrat', sans-serif;
    color: rgba(250, 247, 242, 0.6);
    font-size: 0.8rem;
    line-height: 1.7;
    margin: 0;
}

/* ========================================================
   FOOTER - LISTA CONTATTI
   ======================================================== */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: top;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 0.6rem;
    font-family: 'Montserrat', sans-serif;
    color: rgba(250, 247, 242, 0.6);
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-contact-list svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #C9B99A;
    order: -1;
}

.footer-contact-link {
    color: rgba(250, 247, 242, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: #C9B99A;
}

#contactus .footer-col-text-nav a,
#contactus .col-12.col-md-4 a {
  text-decoration: none;
  transition: color 0.3s ease;
}

#contactus .col-12.col-md-4 a:hover {
  color: #C9B99A !important;
}

@media (max-width: 767px) {
    .footer-contact-list li {
        justify-content: center;
    }
}