/* ========== VARIABILI GLOBALI ========== */

/* Open Sans Regular */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/OpenSans.woff2') format('woff2');
}

/* Julius Sans One Regular */
@font-face {
    font-family: 'Julius Sans One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Julius.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/NotoSerifDisplay.woff2') format('woff2');
}
.bookbutton {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
    background-color: #fff;
    padding: 10px;
	  box-sizing: border-box;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
	  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08); /* ombra leggera grigia sopra */

}

.dark a { color:#fff !important;  }
.light a { color:#000 !important;  }

/* linea centrale */
.bookbutton .divider {
    width: 1px;
    height: 30px;          /* altezza visibile, regolala in base ai bottoni */
    background-color: #ccc; /* colore linea */
    margin: 0 15px;         /* spazio orizzontale tra i bottoni */
}

#slogan .titolo,
#slogan .sottotitolo {
  position: relative;
  z-index: 2;
	color: var(--bianco);
}

.color3 { color: var(--bianco);}

h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1em; }
h6 { font-size: 0.875em; }
a[href*="menualacarte"] { pointer-events: auto !important; }
/* ========== BASE ========== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--nero60);
  background-color: var(--bianco);
}
.icon { width:16px; height:16px; }
.icon2 { width:18px; height:18px; margin-top: 2px; } 
/* ========== CONTENUTO ========== */

.main-content {
  padding-left: 0;
}

.site-footer { 
  box-sizing: border-box;
  padding-left: 140px;
  padding-bottom: 80px; /* spazio per la barra fissa mobile */
}

@media (max-width: 1024px) {
  .main-content {
    padding-left: 0;
  }

  .site-footer {
    padding-left: 0;
    padding-bottom: 120px; /* alza lo spazio su mobile per non coprire l'ultima sezione */
  }
}

.titolo {
  font-family: var(--font-titolo);
  font-size: var(--font-size-xxxl);
  font-weight: var(--font-weight-s);
  margin-bottom: var(--spazio-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nero-60);
}

.testo {
  font-size: var(--font-size-sm);
  line-height: 1.8;
  font-family: var(--font-titolo);  
}
.testo2 {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  font-family: var(--font-titolo);  
}
.sottotitolo {
  font-family: var(--font-titolo);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-s);
  color: var(--grigio-500);
  margin: 0px;
  line-height: 1.4;

}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bottone { padding: 20px; border: 1px solid #ccc; }

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding-top: 60px;
  }

  .hero-wrapper {
    width: 100vw;
    height: 80vh;
    margin-left: 0;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	}
.sottotitolo {
  font-family: var(--font-titolo);
  font-size: var(--font-size-1rem);
  font-weight: var(--font-weight-s);
  text-transform: none;
  color: var(--color3);
  margin-top: var(--spazio-sm);
}	  
	  

}
.btn-leggi {
  margin-top: var(--spazio-sm);
  background-color: transparent;
  color: var(--colore-primario);
  font-size: var(--font-size-sm);
  font-family: var(--font-testo);
  border: none;
  cursor: pointer;
  text-decoration: underline; 
}

.servicelist ul {
  margin: var(--spazio-sm) 0 0;
  padding: 0;
  list-style: disc inside;
  column-count: 3;
  column-gap: var(--spazio-md);
}

.servicelist li {
  break-inside: avoid;
  margin-bottom: 8px;
   text-align: left !important;
}
 
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spazio-sm);
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 0;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}


.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spazio-sm);
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-media {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 10px;
}

.lightbox-media img {
  max-width: 100%;
  max-height: calc(90vh - 20px);
  opacity: 0;
  transition: opacity 0.4s ease;
  box-shadow: none;
}


.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.75);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.35);
}

.lightbox-nav {
  position: relative;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.75);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.35);
}

.lightbox-prev {
  order: -1;
}

.lightbox-media img.is-visible {
  opacity: 1;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spazio-xs);
  }
}

@media (max-width: 1024px) {
  .servicelist ul {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .servicelist ul {
    column-count: 1;
    column-gap: 0;
  }
}

/* Rooms section */
#rooms .room-card {
  position: relative; 
  overflow: hidden;
}

#rooms .room-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease;
}

#rooms .room-card:hover .overlay,
#rooms .room-card:focus-within .overlay {
  background: rgba(0, 0, 0, 0.55);
}

#rooms .room-card .room-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

#rooms .room-card .titolo {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.--colore-bianco {
  color: var(--colore-bianco, #ffffff) !important;
}
