/* =========================
   PALETTE (Barone Gambadoro)
========================= */
:root{
  --primary: #5a3e26;
  --accent:  #c1a063;
  --bg:      #f5efe7;
  --sage:    #8c9a7a;
  --text: #2b241f;
  --white: #ffffff;

  --radius: 18px;
  --shadow: 0 14px 35px rgba(0,0,0,0.12);
  --container: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img{ max-width: 100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.center{ text-align:center; }

.section{ padding: 70px 0; }
.section--alt{ background: rgba(193,160,99,0.08); }

.section__title{
  margin: 0 0 14px;
  color: var(--primary);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.2px;
}

.section__text{
  margin: 0 auto 14px;
  max-width: 60ch;
}

/* HEADER */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,239,231,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(90,62,38,0.15);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
  min-height: 70px;
}

/* LOGO */
.logo{
  display:flex;
  align-items:center;
  gap: 14px;
  text-decoration:none;
  color: var(--primary);
  font-weight: 800;
}
.logo__img{
  height: 70px;
  width: auto;
  display:block;
}
.logo__payoff{
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav a{
  color: var(--primary);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
}
.nav a:hover{ opacity: 1; }

/* Burger */
.burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(90,62,38,0.18);
  background: var(--white);
  cursor:pointer;
}
.burger span{
  display:block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 5px auto;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  text-decoration:none;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform .08s ease, opacity .2s ease;
}
.btn:hover{ opacity: 0.95; }
.btn:active{ transform: translateY(1px); }

.btn--ghost{
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(90,62,38,0.35);
}
.btn--ghost:hover{
  background: var(--primary);
  color: var(--white);
}

.btn--small{
  padding: 10px 14px;
  font-size: 14px;
}

.link{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.link:hover{ color: var(--primary); }

/* HERO */
.hero{
  position: relative;
  min-height: 76vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position:center;
  transform: scale(1.03);
}
.hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(245,239,231,0.92) 0%,
    rgba(245,239,231,0.70) 45%,
    rgba(245,239,231,0.25) 100%
  );
}
.hero__content{
  position: relative;
  padding: 80px 0;
  max-width: 720px;
}
.hero__kicker{
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--sage);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
}
.hero__title{
  margin: 0 0 10px;
  color: var(--primary);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
}
.hero__subtitle{
  margin: 0 0 22px;
  font-size: 18px;
  opacity: 0.9;
}
.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* LAYOUT */
.grid-2{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

/* CARD */
.card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(90,62,38,0.10);
}
.card--highlight{ border-left: 8px solid var(--accent); }

.list{ padding-left: 18px; margin: 12px 0 0; }
.list li{ margin: 8px 0; }

/* SERVICES */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.service{
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(90,62,38,0.10);
}
.service h3{ margin: 0 0 8px; color: var(--primary); }
.service p{ margin:0; opacity:0.9; }

/* ROOMS */
.rooms{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.room{
  background: var(--white);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(90,62,38,0.10);
  cursor: pointer;
  transition: transform 180ms ease;
}
.room:hover{ transform: translateY(-2px); }
.room img{
  height: 210px;
  width: 100%;
  object-fit: cover;
}
.room__body{ padding: 16px 16px 18px; }
.room__body h3{ margin: 0 0 6px; color: var(--primary); }
.room__body p{ margin: 0 0 10px; opacity: 0.9; }
.room__hint{
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* SPA GRID */
.spa__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.spa__grid img{
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(90,62,38,0.12);
}

/* NOVEL */
.novel{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.novel__media{
  margin: 0;
  text-align: center;
  max-width: 520px;
}
.novel__media img{
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}
.novel__caption{
  margin-top: 10px;
  font-size: 14px;
  opacity: .8;
}
.novel__title{ margin: 0 0 8px; }
.novel__p{ margin: 0 0 18px; line-height: 1.6; }

.audio-list{ display: grid; gap: 14px; margin-top: 10px; }
.audio-item{ padding: 14px; border-radius: 14px; background: rgba(0,0,0,.03); }
.audio-item__head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.audio-item__meta{ font-size: 13px; opacity: .75; }
.audio-item audio{ width: 100%; }
.novel__note{ margin-top: 16px; font-size: 14px; opacity: .8; }

/* GALLERY (generale) */
.gallery{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}
.gallery img, .gallery-img{
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(90,62,38,0.12);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  display: block;
}

/* CONTACT */
.contact-box{
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(90,62,38,0.10);
  box-shadow: var(--shadow);
}
.contact-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.map-actions{ display:flex; gap: 12px; flex-wrap: wrap; }

/* FOOTER */
.footer{
  padding: 26px 0;
  border-top: 1px solid rgba(90,62,38,0.15);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* MODAL CAMERE */
.room-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.room-modal.is-open{ display: flex; }

.room-modal__content{
  width: min(980px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.25);
  position: relative;
}

.modal-close{
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
}

.modal-title{ margin: 10px 6px 12px; color: var(--primary); }

.slider{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 320px;
}
.slider__img{
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}
.slider__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(245,239,231,0.88);
  color: var(--primary);
  font-size: 26px;
  display: grid;
  place-items: center;
}
.slider__btn--prev{ left: 10px; }
.slider__btn--next{ right: 10px; }

.slider__dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 0 2px;
}
.slider__dots button{
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(90,62,38,0.25);
}
.slider__dots button.is-active{ background: var(--accent); }

/* LIGHTBOX GALLERIA */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.open{ display: flex; }

.lb-img{
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 14px;
}

.lb-close, .lb-prev, .lb-next{
  position: absolute;
  background: rgba(255,255,255,.15);
  border: 0;
  color: #fff;
  font-size: 34px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.lb-close{ top: 18px; right: 18px; font-size: 42px; }
.lb-prev{ left: 18px; }
.lb-next{ right: 18px; }

/* =========================
   FIX SEZIONE GALLERIA (specifica #galleria)
   (mantiene tutto centrato e in griglia)
========================= */
#galleria{
  width: 100%;
}
#galleria .container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
#galleria .gallery{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
#galleria .gallery-img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* =========================
   FIX SEZIONE CONTATTI / RICHIEDI INFO
   (se il tuo id è #contatti)
========================= */
#contatti{
  width: 100%;
}
#contatti .container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 920px){
  .grid-2{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .rooms{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .novel{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .burger{ display:block; }

  #galleria .gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  .logo__payoff{ display:none; }
  .logo__img{ height: 42px; }

  .nav.nav--open{
    display:flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    z-index: 9999;
  }
}

@media (max-width: 520px){
  .hero__overlay{
    background: linear-gradient(
      180deg,
      rgba(245,239,231,0.92) 0%,
      rgba(245,239,231,0.68) 60%,
      rgba(245,239,231,0.35) 100%
    );
  }

  .gallery img, .gallery-img{ height: 140px; }

  #galleria .gallery{
    grid-template-columns: 1fr;
  }
  #galleria .gallery-img{
    height: 140px;
  }
}
/* =========================
   AUDIO LIBRO – VERSIONE COMPATTA
========================= */

.audiobook{
  max-width: 700px;
  margin: 0 auto;
}


.audiobook-coming{
max-width:600px;
margin:20px auto;
text-align:center;
font-size:18px;
line-height:1.6;
color:#5a3e26;
background:#f5f1ea;
padding:25px;
border-radius:12px;
}
/* =========================
   AUDIO LIBRO – STILE ROMANZO
========================= */

/* =========================
   AUDIO LIBRO – STILE ROMANZO
========================= */

.audiobook-title{
  text-align:center;
  margin-top:20px;
}

.audiobook-box{
  max-width:650px;
  margin:25px auto;
  padding:30px;
  background:#f5f1ea;
  border-radius:14px;
  text-align:center;
  box-shadow:0 8px 25px rgba(0,0,0,0.08);
  border:1px solid rgba(90,62,38,0.12);
}

.audiobook-coming{
  font-size:18px;
  line-height:1.7;
  color:#5a3e26;
}

.audiobook-note{
  margin-top:15px;
  font-style:italic;
  color:#7a5a3a;
}
.audiobook-box{
max-width:520px;
margin:20px auto 0;
padding:24px;
background:#f5f1ea;
border-radius:14px;
text-align:center;
box-shadow:0 8px 25px rgba(0,0,0,0.08);
border:1px solid rgba(90,62,38,0.12);
backdrop-filter: blur(2px);
}