/* =========================================================
   Meeting Hall — Gruppo Solutio
   Stylesheet principale — identità "Bergamotto"
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Piazzolla:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --color-dark: #23261f;
  --color-dark-soft: #3c4a34;
  --color-gold: #8f8a3e;
  --color-gold-light: #c7c067;
  --color-cream: #ede6d3;
  --color-text-body: #6e6c58;
  --color-text-dark: #23261f;
  --color-white: #fbf8ef;
  --font-display: 'Piazzolla', serif;
  --font-body: 'Karla', sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: page-in .7s var(--ease) forwards;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { opacity: 1; animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-copy > * { opacity: 1 !important; animation: none !important; }
}

/* ---------- Scroll progress indicator ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  z-index: 200;
  transition: width .1s linear;
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-group > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: .16s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: .27s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: .38s; }

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

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text-dark);
  margin: 0;
}

h2 { font-size: 48px; }

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--color-gold);
}

.accent { color: var(--color-gold); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
  transition: transform .45s var(--ease);
}
.btn:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(143,138,62,.3);
}
.btn:hover::before { transform: scaleX(1); }

.btn-light {
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-light::before { background: var(--color-white); }
.btn-light:hover {
  color: var(--color-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 28px 0;
  /* Velo scuro permanente: garantisce contrasto per logo/menu chiari
     indipendentemente da quanto è chiara la foto sottostante. */
  background: linear-gradient(180deg, rgba(18,20,15,.6) 0%, rgba(18,20,15,.28) 65%, rgba(18,20,15,0) 100%);
  transition: background .3s ease, padding .3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-white);
}
.logo-mark {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.logo-mark img {
  height: 64px;
  width: auto;
  display: block;
  transform-origin: left center;
  transition: height .3s ease, transform .6s var(--ease), filter .6s var(--ease);
}
@media (hover: hover) {
  .logo-mark:hover img {
    transform: scale(1.32);
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.4));
  }
}
.site-header.is-scrolled .logo-mark img { height: 46px; }
.main-nav ul { display: flex; gap: 40px; }
.main-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color .3s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header.is-scrolled {
  background: rgba(35,38,31,.96);
  padding: 16px 0;
  transition: background .3s ease, padding .3s ease;
}
.site-header.is-light.is-scrolled { background: rgba(251,248,239,.96); }
.site-header.is-light.is-scrolled .nav-inner { color: var(--color-text-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(35,38,31,.95) 38%, rgba(35,38,31,.32) 75%);
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--color-dark-soft));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 40px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-copy > * {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in .9s var(--ease) forwards;
}
.hero-copy .eyebrow { color: var(--color-gold-light); animation-delay: .1s; }
.hero-copy h1 { animation-delay: .25s; }
.hero-copy p { animation-delay: .4s; }
.hero-copy .btn { animation-delay: .55s; }
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy h1 {
  color: var(--color-white);
  font-size: 56px;
  line-height: 1.15;
  margin: 18px 0 26px;
}
.hero-copy p {
  color: #d6d4c4;
  max-width: 440px;
  margin-bottom: 34px;
}

/* Riquadro logo, lato destro dell'hero: un piccolo "sigillo" elegante che
   si dissolve ai bordi nella foto di sfondo invece di tagliarla di netto. */
.hero-logo-panel {
  position: relative;
  justify-self: end;
  align-self: center;
  width: min(320px, 100%);
  padding: 38px;
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 1s var(--ease) forwards;
  animation-delay: .7s;
}
.hero-logo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(35,38,31,.84) 0%, rgba(35,38,31,.72) 58%, rgba(35,38,31,.32) 84%, rgba(35,38,31,0) 100%);
}
.hero-logo-panel-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(199,192,103,.5);
  padding: 20px;
}
.hero-logo-panel-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(199,192,103,.22);
  pointer-events: none;
}
.hero-logo-panel img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.5));
}
@media (max-width: 980px) {
  .hero-logo-panel { display: none; }
}

/* ---------- Section transition dividers ---------- */
.divider {
  position: relative;
  height: 46px;
  overflow: hidden;
}
.divider--dark-to-white {
  background: linear-gradient(180deg, var(--color-dark-soft) 0%, rgba(143,138,62,.16) 52%, var(--color-white) 100%);
}
.divider--cream-to-dark {
  background: linear-gradient(180deg, var(--color-cream) 0%, rgba(143,138,62,.16) 48%, var(--color-dark) 100%);
}
.divider--dark-to-white-tall {
  height: 58px;
  background: linear-gradient(180deg, rgba(35,38,31,.62) 0%, rgba(143,138,62,.14) 55%, var(--color-white) 100%);
}
/* Small sprig-leaf ornament marking the seam */
.divider::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(143,138,62,.65), transparent);
}
.divider::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 8px;
  transform: translate(-50%, -50%) rotate(-40deg);
  background: var(--color-gold-light);
  border-radius: 0 100% 0 100%;
  box-shadow: 0 0 10px rgba(199,192,103,.5);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--color-dark-soft);
  padding: 76px 0;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-block {
  position: relative;
  padding: 6px 12px 10px;
  transition: transform .4s var(--ease);
}
.stat-block:hover { transform: translateY(-4px); }
.stat-block + .stat-block::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1px;
  height: 56%;
  background: rgba(251,248,239,.18);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform .9s .35s var(--ease);
}
.reveal-group.is-visible .stat-block + .stat-block::before { transform: translateY(-50%) scaleY(1); }

.stat-num {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 46px;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}
.stat-num.is-counted { animation: stat-pop .5s var(--ease); }
@keyframes stat-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); text-shadow: 0 0 18px rgba(199,192,103,.55); }
  100% { transform: scale(1); text-shadow: none; }
}
.stat-num::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background: var(--color-gold);
  transform: translateX(-50%) scaleX(0);
  transition: transform .5s .5s var(--ease);
}
.reveal-group.is-visible .stat-num::after { transform: translateX(-50%) scaleX(1); }

.stat-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b7b49f;
  margin-top: 18px;
  opacity: 0;
  transition: opacity .6s .6s ease;
}
.reveal-group.is-visible .stat-label { opacity: 1; }

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head p { margin-top: 18px; }

.section { padding: 110px 0; }
.section-alt { background: var(--color-cream); }

/* ---------- Mappa ---------- */
.map-section.section { padding-top: 40px; }
.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 34px 70px -26px rgba(35,38,31,.4);
}
.map-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 160% at 50% 28%, transparent 52%, rgba(35,38,31,.24) 100%),
    linear-gradient(180deg, rgba(143,138,62,.14), rgba(35,38,31,.1));
  mix-blend-mode: multiply;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: grayscale(.5) sepia(.22) saturate(1.05) contrast(.95) brightness(1.04);
}

/* ---------- Room cards (carosello) ---------- */
.rooms-carousel { position: relative; }
.rooms-grid {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
/* Mentre il mouse guida lo scorrimento, niente "aggancio": il movimento
   resta continuo e morbido; l'aggancio torna appena il mouse esce. */
.rooms-grid.is-hover-scrolling { scroll-snap-type: none; }
@media (hover: hover) {
  .rooms-grid { cursor: ew-resize; }
}
.rooms-grid::-webkit-scrollbar { display: none; }
.room-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  flex: 0 0 calc(25% - 21px);
  min-width: 260px;
  scroll-snap-align: start;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

/* Frecce di navigazione */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(35,38,31,.28);
  z-index: 5;
  color: var(--color-text-dark);
  padding: 0;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.carousel-arrow:hover { background: var(--color-gold); color: var(--color-white); box-shadow: 0 14px 32px rgba(35,38,31,.38); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-arrow--prev { left: -6px; }
.carousel-arrow--next { right: -6px; }
.carousel-arrow[disabled] { opacity: .3; cursor: default; pointer-events: none; box-shadow: none; }
.carousel-arrow[hidden] { display: none; }
@media (max-width: 640px) {
  .carousel-arrow { display: none; }
}
.room-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .8s var(--ease);
}
.room-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(35,38,31,.92) 15%, rgba(35,38,31,.1) 62%);
  transition: background .4s ease;
}
.room-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  z-index: 3;
  width: 100%;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(35,38,31,.32);
}
.room-card:hover .room-card-bg { transform: scale(1.1); }
.room-card:hover::before { background: linear-gradient(0deg, rgba(35,38,31,.96) 20%, rgba(35,38,31,.18) 68%); }
.room-card:hover::after { transform: scaleX(1); }
.room-card-body {
  position: relative;
  z-index: 2;
  padding: 26px 22px;
}
.room-card-body h3 {
  color: var(--color-white);
  font-style: italic;
  font-size: 24px;
  margin-bottom: 14px;
  transition: transform .4s var(--ease);
}
.room-card:hover .room-card-body h3 { transform: translateY(-4px); }
.room-card-body .btn { padding: 10px 22px; font-size: 11px; }

/* ---------- Arch frame (palazzo-window motif for standalone photos) ---------- */
.arch-frame {
  overflow: hidden;
  border-radius: 44% 44% 0 0 / 25% 25% 0 0;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Building / about split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }

/* Foto rotanti: due immagini sovrapposte che si scambiano con una
   dissolvenza incrociata morbida e lenta, non uno sparire-e-riapparire. */
.split-img .photo-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.split-img .photo-rotator-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.2s ease-in-out, transform .7s var(--ease);
}
.photo-rotator-layer.is-active { opacity: 1; }
.split-img:hover img { transform: scale(1.05); }
.split-copy .eyebrow { display: block; margin-bottom: 16px; }
.split-copy h2 { margin-bottom: 22px; }
.split-copy p { margin-bottom: 18px; }
.feature-list { margin-top: 30px; }
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid #ddd6c1;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--color-text-dark);
  transition: padding-left .3s var(--ease), border-color .3s ease;
}
.feature-list li:hover {
  padding-left: 10px;
  border-color: var(--color-gold-light);
}
.feature-list li span:last-child { color: var(--color-gold); }

/* ---------- Contact ---------- */
.contact-section {
  background: var(--color-dark);
  color: #d6d4c4;
  padding: 110px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}
.contact-info h2 { color: var(--color-white); margin-bottom: 24px; }
.contact-info p { margin-bottom: 34px; }
.contact-item { margin-bottom: 22px; }
.contact-item .eyebrow { display: block; margin-bottom: 6px; }
.contact-item a, .contact-item span { color: var(--color-white); font-size: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #b7b49f;
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(251,248,239,.25);
  padding: 10px 2px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .3s ease;
}
.field input:focus, .field textarea:focus { outline: none; }
.field::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold-light);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field textarea { resize: vertical; min-height: 90px; }
.char-count { text-align: right; font-size: 11px; color: #8a886f; margin-top: 4px; }

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 26px;
  cursor: pointer;
}
.consent-field input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--color-gold);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-field span { font-size: 12.5px; color: #b7b49f; line-height: 1.5; }
.consent-field a { color: var(--color-gold-light); text-decoration: underline; }
.consent-field a:hover { color: var(--color-white); }
.form-note { font-size: 12px; color: #a9a68d; margin-top: 18px; }
.form-note--error { color: #c98a6a; }

.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(251,248,239,.1);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8a886f;
  font-size: 13px;
}
.footer-inner a { color: #b7b49f; }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a:hover { color: var(--color-gold-light); }

/* ---------- Interior hero (room detail pages) ---------- */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: hero-zoom 18s ease-out forwards;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(35,38,31,.6) 0%, rgba(35,38,31,.18) 60%);
}
.breadcrumb {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in .8s .2s var(--ease) forwards;
}
.breadcrumb a { transition: color .3s ease; }
.breadcrumb a:hover { color: var(--color-gold-light); }
.breadcrumb .accent { color: var(--color-gold-light); }

.room-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: flex-start;
}
.room-detail h1 { font-size: 42px; font-style: italic; margin-bottom: 24px; line-height: 1.2; }
.room-detail-img img { width: 100%; transition: transform .7s var(--ease); }
.room-detail-img:hover img { transform: scale(1.05); }

.detail-feature { margin-bottom: 28px; }
.detail-feature .eyebrow { display: block; margin-bottom: 8px; }
.detail-feature p { margin: 0; color: var(--color-text-body); }

.equip-block {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #ddd6c1;
}
.equip-block h3 { margin-bottom: 10px; }
.equip-block > p { max-width: 520px; margin-bottom: 26px; }
.equip-list { display: flex; flex-wrap: wrap; gap: 14px; }
.equip-list li {
  border: 1px solid #d8d2bd;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--color-text-dark);
  transition: border-color .3s ease, transform .3s var(--ease), color .3s ease;
}
.equip-list li:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px);
}

.gallery-block {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #ddd6c1;
}
.gallery-block h3 { margin-bottom: 22px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(35,38,31,0);
  transition: background .35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { background: rgba(35,38,31,.18); }
.gallery-item-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(251,248,239,.8);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s ease, transform .35s var(--ease);
  pointer-events: none;
}
.gallery-item-zoom svg { width: 18px; height: 18px; }
.gallery-item:hover .gallery-item-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Lightbox galleria ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility 0s linear 0s;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18,20,15,.94);
}
.lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.lightbox.is-open .lightbox-stage { opacity: 1; transform: scale(1); }
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-counter {
  margin: 16px 0 0;
  color: #d6d4c4;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .5px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(251,248,239,.35);
  background: rgba(35,38,31,.5);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, border-color .3s ease;
}
.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--color-gold); border-color: var(--color-gold); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 26px; }
.lightbox-next { right: 26px; }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-img { max-height: 64vh; }
}

/* ---------- Le Sale listing page ---------- */
.sale-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  scroll-margin-top: 110px;
}
.sale-row.is-reversed .sale-row-img { order: 2; }
.sale-row-img {
  height: 460px;
  background-size: cover;
  background-position: center;
  transition: background-size .8s var(--ease);
}
.sale-row-img:hover { background-size: 112%; }
.sale-row-copy { padding: 60px 80px; }
.sale-row-copy h2 { font-size: 40px; font-style: italic; margin-bottom: 26px; }

/* ---------- Barra di collegamento rapido alle sale ---------- */
.sale-jumplinks {
  background: var(--color-white);
  border-bottom: 1px solid #e2ddcd;
  padding: 22px 0;
  position: sticky;
  top: 78px;
  z-index: 10;
}
.sale-jumplinks ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
}
.sale-jumplinks a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-dark);
  transition: color .3s ease;
}
.sale-jumplinks a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.sale-jumplinks a:hover { color: var(--color-gold); }
.sale-jumplinks a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 640px) {
  .sale-jumplinks { position: static; }
  .sale-jumplinks ul { gap: 10px 22px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 4px; }
  .sale-jumplinks a { white-space: nowrap; font-size: 14px; }
}

/* ---------- Mobile menu / responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: none; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .logo-mark img { height: 44px; }
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .stat-block + .stat-block { padding-top: 28px; }
  .stat-block + .stat-block::before {
    left: 50%; top: 0;
    width: 56%; height: 1px;
    transform: translateX(-50%) scaleX(0);
  }
  .reveal-group.is-visible .stat-block + .stat-block::before { transform: translateX(-50%) scaleX(1); }
  .room-card { flex-basis: calc(50% - 14px); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .room-detail { grid-template-columns: 1fr; }
  .sale-row, .sale-row:nth-child(even) { grid-template-columns: 1fr; }
  .sale-row:nth-child(even) .sale-row-img { order: 0; }
  .sale-row-copy { padding: 50px 32px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 640px) {
  h2 { font-size: 34px; }
  .hero-copy h1 { font-size: 38px; }
  .logo-mark img { height: 38px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: -280px;
    width: 260px; height: 100vh;
    background: var(--color-dark);
    padding: 100px 30px;
    transition: right .35s ease;
  }
  .main-nav.is-open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .main-nav a { color: var(--color-white); }
  .room-card { flex-basis: 84%; min-width: 0; }
  .rooms-grid { -webkit-mask-image: none; mask-image: none; padding-left: 0; padding-right: 0; }
  .section { padding: 70px 0; }
  .container { padding: 0 20px; }
}

/* ---------- WhatsApp float button ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 100;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 26px rgba(0,0,0,.32);
  animation-play-state: paused;
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.45); }
  50% { box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------- Privacy / cookie notice ---------- */
.privacy-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: 620px;
  margin: 0 auto;
  background: var(--color-dark);
  color: #d6d4c4;
  border: 1px solid rgba(251,248,239,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.privacy-banner.is-visible { opacity: 1; transform: translateY(0); }
.privacy-banner p { margin: 0; font-size: 13px; line-height: 1.6; }
.privacy-banner a { color: var(--color-gold-light); text-decoration: underline; }
.privacy-banner a:hover { color: var(--color-white); }
.privacy-banner-actions { flex-shrink: 0; }
.privacy-banner .btn { padding: 10px 22px; font-size: 11px; white-space: nowrap; }

@media (max-width: 640px) {
  .privacy-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .privacy-banner-actions { align-self: stretch; }
  .privacy-banner .btn { width: 100%; text-align: center; }
}
