:root {
  --bg: #f0f7ef;
  --bg-alt: #ffffff;
  --accent: #c58c6a;
  --accent-strong: #915943;
  --text: #26221f;
  --text-soft: rgb(87, 87, 87);
  --border-soft: rgba(51, 41, 33, 0.12);
  --pill-bg: rgba(255, 255, 255, 0.8);
  --radius-xl: 26px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.32s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: #e7e9e3;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  overflow: hidden;
}

section {
  padding: 4.5rem 0;
  scroll-margin-top: 80px; /* per sticky header */
}

@media (min-width: 1024px) {
  section {
    padding: 5.5rem 0;
  }
}

.shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ELEMENTI BASE */

.tag-pill {
  display: inline-flex;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 2.6vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.muted {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.muted.small {
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  background: #26221f;
  color: #f7f4ef;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(38, 34, 31, 0.2);
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* HEADER / NAV MINIMAL – SEMPRE VISIBILE */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #F6F2EC;   /* sabbia chiarissima */
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
}

.header-logo {
  height: 46px;
  width: auto;
  display: block;
}
@media(max-width: 900px) {
  .header-logo {
    height: 34px;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text-main {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5E554E;
  transition: color .25s;
}

.nav-center a:hover {
  color: #26221F;
}

.nav-link {
  position: relative;
  color: var(--text-soft);
  padding-bottom: 0.15rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: rgb(54, 54, 54);
  transition: width var(--transition-med);
}

.nav-link:hover {
  color: #26221f;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.btn-book {
  background: #26221F;
  color: #F6F2EC;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .25s, transform .25s;
}
.btn-book:hover {
  background: #3A342F;
  transform: translateY(-1px);
}

/* NAV MOBILE */

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.7px;
  border-radius: 999px;
  background: #26221f;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -5px;
}

.nav-toggle span::after {
  position: absolute;
  top: 5px;
}

.nav-toggle.active span {
  background: transparent;
}

.nav-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.7rem 1.5rem 1.3rem;
  background: rgba(247, 244, 239, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-mobile a {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.nav-mobile .btn {
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .nav-center,
  .nav-right {
    display: none;
  }

  /* Center logo in the topbar on mobile (keep hamburger on the right) */
  .nav {
    position: relative;
  }

  .nav-left {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-toggle {
    margin-left: auto;
    display: inline-flex;
  }

  .nav-mobile {
    display: none;
  }
}

/* HERO */

.hero {
  padding-top: 4.2rem;
}

/* SIMPLE LEGAL / CONFIRMATION PAGES */

.legal-page {
  padding: 4.2rem 0 5rem;
}

.legal-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.legal-card h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

.legal-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin: 1.6rem 0 0.6rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 1.1rem;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-left h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3.3vw, 3.2rem);
  line-height: 1.12;
  margin: 1.2rem 0 0.8rem;
}

.accent {
  color: #234c34;
}

.hero-subtitle {
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 32rem;
  margin-bottom: 1.6rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* HERO FIGURE */

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-figure {
  width: 100%;
  max-width: 460px;
}

.hero-photo {
  border-radius: 32px;
  overflow: hidden;
  background: url("images/hero.jpg") center/cover no-repeat;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* CHI SIAMO */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-text p {
  margin-bottom: 0.8rem;
}

/* ============================
   VIDEO "CHI SIAMO"
   ============================ */

.about-video-card {
  border-radius: 28px;
  overflow: hidden;
  background: #f0ebe4;
  padding: 0.7rem;
}

.about-video {
  border-radius: 22px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
}

/* CAMERE */

#camere {
  background: #f4f0ea;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

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

@media (max-width: 720px) {
  .rooms-grid {
    grid-template-columns: 1fr;
  }
}

.room-card {
  border-radius: 24px;
  background: #fbf8f3;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.room-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.room-img.canistedda {
  background-image: url("images/camera-canistedda.jpg");
}

.room-img.shardana {
  background-image: url("images/camera-shardana.jpg");
}

.room-img.pintadera {
  background-image: url("images/camera-pintadera.jpg");
}

.room-img.tumbarinos {
  background-image: url("images/camera-tumbarinos.jpg");
}

.room-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.room-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.room-text {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.room-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.rooms-note {
  margin-top: 1.8rem;
}

/* GALLERY */

#gallery {
  background: #f7f4ef;
}

.gallery-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

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

@media (max-width: 650px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  border-radius: 22px;
  overflow: hidden;
  background: #fbf8f3;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item figcaption {
  padding: 0.6rem 0.9rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* TESTO LISTE */

.text-list {
  list-style: none;
  margin: 1.1rem 0 1rem;
  padding-left: 0;
  font-size: 0.95rem;
}

.text-list li {
  margin-bottom: 0.5rem;
  color: var(--text-soft);
}

.text-list li::before {
  content: "• ";
  color: var(--accent-strong);
}

/* CARD QUIETA */

.quiet-card {
  border-radius: 26px;
  background: #fbf8f3;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.8rem 1.7rem;
}

.quiet-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.quiet-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}

/* SAPORI – IMMAGINI */

.sapori-images {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 1024px) {
  .sapori-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sapori-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .sapori-images {
    grid-template-columns: 1fr;
  }
}

.sapori-item {
  border-radius: 20px;
  overflow: hidden;
  background: #fbf8f3;
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
}

.sapori-item img {
  width: 100%;
  height: auto;
  display: block;
}

.sapori-item figcaption {
  padding: 0.45rem 0.7rem 0.6rem;
  color: var(--text-soft);
}

/* CONTATTI / LOCATION */

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.map-placeholder {
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #efe8df;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 0rem;
}

.map-placeholder::after {
  max-width: 17rem;
}


.map-placeholder iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

@media (max-width: 650px) {
  .map-placeholder iframe {
    height: 320px;
  }
}
.contact-card {
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fbf8f3;
  padding: 1.7rem 1.8rem;
}

.contact-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 0.9rem;
  font-size: 0.9rem;
}

@media (max-width: 650px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-item .label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.contact-item .value {
  font-weight: 500;
}

.contact-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* WIDGET SMOOBU */

.booking-widget {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-widget h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.booking-tabs {
  margin-top: 1rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #f3ece3;
}

.booking-tab {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  background: transparent;
  color: var(--text-soft);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.booking-tab.active {
  background: #fbf8f3;
  color: #26221f;
  transform: translateY(-1px);
}

.booking-frames {
  margin-top: 1.1rem;
}

.booking-frame {
  display: none;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f3ece3;
  padding: 0.4rem;
}

/* mostra solo il frame attivo */
.booking-frame.active {
  display: block;
}

/* gli iframe Smoobu dentro */
.booking-frame iframe {
  width: 100%;
  min-height: 420px;   /* puoi alzare/abbassare se serve */
  border: none;
}


/* FOOTER */

footer {
  padding: 2.2rem 1.5rem 2.3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #f7f4ef;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.logo-mark-small {
  width: 26px;
  height: 26px;
}

.footer-logo-main {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
}

.footer-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

/* REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* === LANGUAGE SWITCHER === */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.4rem;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  color: var(--text-soft);
}

.lang-btn.active {
  background: #26221F;
  color: #F6F2EC;
  border-color: #26221F;
}

.nav-mobile-lang {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.nav-mobile-lang .lang-btn {
  flex: 1;
  justify-content: center;
}


/* === LIGHTBOX GALLERY === */

#gallery .gallery-item img {
  cursor: default;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}

.lightbox-caption {
  padding: 0.6rem 1rem 0.8rem;
  font-size: 0.85rem;
  color: #f5f5f5;
}

.lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #f5f5f5;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.room-gallery-btn {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  padding-inline: 1rem;
}


.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #f5f5f5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lightbox-prev {
  left: 0.6rem;
}

.lightbox-next {
  right: 0.6rem;
}