:root {
  /* Palette: bordeaux profondo + panna, con accenti oro e salvia */

  /* Bordeaux */
  --bordeaux:        #6b1a2e;
  --bordeaux-mid:    #832038;
  --bordeaux-dark:   #541526;
  --bordeaux-darker: #3a0d1c;
  --bordeaux-light:  #9c2f46;
  --bordeaux-rgb:    107, 26, 46;

  /* Accenti */
  --rose:            #a94a61;
  --rose-soft:       #c98293;
  --rose-rgb:        169, 74, 97;
  --sage:            #3f6f5b;
  --sage-soft:       #dfece5;
  --gold:            #c89448;
  --gold-soft:       #f4e2bf;
  --bronze:          #946328;

  /* Neutri panna */
  --panna:           #fff8ed;
  --panna-light:     #fffdf8;
  --panna-soft:      #f8efe3;
  --panna-line:      #ead8c7;
  --panna-rgb:       255, 248, 237;
  --panna-line-rgb:  234, 216, 199;

  /* Alias di compatibilità */
  --cream:           var(--panna);
  --cream-rgb:       var(--panna-rgb);
  --sand-rgb:        var(--panna-line-rgb);

  /* Ruoli semantici */
  --surface:         var(--panna-light);
  --surface-soft:    var(--panna-soft);
  --text:            #2a1510;
  --muted:           #7a4f3a;
  --hairline:        rgba(107, 26, 46, 0.16);
  --hairline-soft:   rgba(234, 216, 199, 0.85);

  /* Tipografia */
  --serif:           Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans:            "Segoe UI", system-ui, Roboto, Arial, sans-serif;

  /* Utility */
  --radius-lg:       18px;
  --radius-md:       12px;
  --shadow:          0 18px 44px rgba(58, 13, 28, 0.1);
  --shadow-warm:     0 10px 26px rgba(58, 13, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--panna);
  line-height: 1.6;
  position: relative;
}

/* Texture di sfondo: grana sottile */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(var(--bordeaux-rgb), 0.035) 1px,
    transparent 0
  );
  background-size: 22px 22px;
  opacity: 0.3;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Link "salta al contenuto": visibile solo quando riceve il focus da tastiera */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
  background: var(--panna-light);
  color: var(--bordeaux-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Barra di avanzamento lettura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--gold), var(--bordeaux-light));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ───────────────── EYEBROW & TITOLI ───────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bordeaux-mid);
}

/* Numerazione editoriale delle sezioni principali */
main {
  counter-reset: sec;
}

main .section-header .eyebrow::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--bronze);
}

main .section-header .eyebrow::after {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
  order: -1;
  display: none;
}

/* ───────────────── HERO ───────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(46, 8, 20, 0.97) 0%, rgba(64, 13, 28, 0.92) 46%, rgba(95, 22, 41, 0.78) 100%),
    url("assets/camere/matrimoniale/camera-matrimoniale-01.jpg");
  background-position: center;
  background-size: cover;
  color: var(--cream);
  border-bottom: 1px solid rgba(var(--panna-rgb), 0.14);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 44% at 84% 12%, rgba(255, 248, 237, 0.12) 0%, transparent 68%),
    linear-gradient(180deg, transparent 60%, rgba(20, 4, 10, 0.34) 100%);
}

/* Hairline verticali decorative */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(var(--panna-rgb), 0.06) 0 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.5;
  pointer-events: none;
}

/* ───────────────── NAVBAR ───────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  position: relative;
  z-index: 2;
}

.brand {
  text-decoration: none;
  color: var(--panna-light);
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.35rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: rgba(var(--panna-rgb), 0.88);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--panna-light);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(var(--panna-rgb), 0.34);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(0, 0, 0, 0.14);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.36rem 0.6rem;
  background: transparent;
  color: rgba(var(--panna-rgb), 0.85);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: color 0.2s ease;
}

.lang-btn.active {
  background: var(--panna-light);
  color: var(--bordeaux-dark);
}

/* Navbar fluttuante dopo lo scroll */
@media (min-width: 701px) {
  body.nav-scrolled .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    margin: 0;
    padding: 0.7rem max(4vw, calc((100vw - 1140px) / 2));
    background: rgba(42, 8, 20, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(var(--panna-rgb), 0.12);
    box-shadow: 0 12px 32px rgba(20, 4, 10, 0.35);
    animation: navDrop 0.45s ease;
  }

  body.nav-scrolled .navbar .brand {
    font-size: 1.2rem;
  }

  /* Compensa l'altezza della navbar uscita dal flusso */
  body.nav-scrolled .hero {
    padding-top: 80px;
  }
}

@keyframes navDrop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ───────────────── HERO CONTENT ───────────────── */
.hero-content {
  padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(1.8rem, 3.5vw, 2.8rem);
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: min(560px, calc(100vh - 220px));
}

.hero-copy {
  max-width: 660px;
}

/* Ingresso scenografico dell'hero al caricamento */
.navbar {
  animation: fadeIn 0.7s ease both;
}

.hero-copy .eyebrow {
  animation: riseIn 0.7s ease 0.15s both;
}

.hero h1 {
  animation: riseIn 0.85s ease 0.3s both;
}

.hero-lead {
  animation: riseIn 0.85s ease 0.45s both;
}

.hero-actions {
  animation: riseIn 0.85s ease 0.6s both;
}

.hero-highlights {
  animation: riseIn 0.9s ease 0.85s both;
}

.hero-visual::before {
  animation: fadeIn 1s ease 0.5s both;
}

.hero-photo-main {
  animation: fadeIn 1.1s ease 0.35s both;
}

.hero-photo-top {
  animation: fadeIn 1.1s ease 0.6s both;
}

.hero-photo-bottom {
  animation: fadeIn 1.1s ease 0.75s both;
}

.hero-float-card {
  animation: fadeIn 0.9s ease 1s both, floatCard 7s ease-in-out 1.9s infinite;
}

.hero-copy .eyebrow {
  color: var(--gold-soft);
}

.hero-copy .eyebrow::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(253, 235, 210, 0.88);
  margin: 0 0 1.9rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* Strip dei punti di forza */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: clamp(2.2rem, 4.5vw, 3.4rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--panna-rgb), 0.22);
}

.hero-highlights div {
  padding-left: 1rem;
  border-left: 1px solid rgba(200, 148, 72, 0.55);
}

.hero-highlights dt {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--panna-light);
}

.hero-highlights dd {
  margin: 0.25rem 0 0;
  color: rgba(255, 248, 237, 0.66);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Collage fotografico */
.hero-visual {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% 10% 8% -3%;
  border: 1px solid rgba(200, 148, 72, 0.4);
  border-radius: 2px;
  z-index: -1;
}

.hero-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 64px rgba(16, 3, 8, 0.42);
  /* Le variabili sono pilotate dal parallax al movimento del mouse */
  transform: translate3d(var(--par-x, 0px), var(--par-y, 0px), 0);
  will-change: transform;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(var(--panna-rgb), 0.4);
  border-radius: 2px;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: photoBreath 14s ease-in-out infinite alternate;
}

.hero-photo figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  max-width: calc(100% - 1.7rem);
  border-radius: 3px;
  padding: 0.4rem 0.75rem;
  color: var(--bordeaux-dark);
  background: rgba(255, 253, 248, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1;
}

.hero-photo-main {
  left: 0;
  top: 7%;
  width: 72%;
  height: 74%;
}

.hero-photo-top {
  right: 0;
  top: 0;
  width: 42%;
  height: 32%;
}

.hero-photo-bottom {
  right: 2%;
  bottom: 1%;
  width: 46%;
  height: 34%;
}

.hero-float-card {
  position: absolute;
  right: 13%;
  top: 41%;
  width: min(215px, 46%);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  padding: 0.95rem 1rem;
  color: var(--bordeaux-dark);
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 20px 44px rgba(16, 3, 8, 0.3);
  animation: floatCard 7s ease-in-out infinite;
}

.hero-float-card span,
.hero-float-card strong {
  display: block;
}

.hero-float-card span {
  color: var(--bronze);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-float-card strong {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.3;
}

/* ───────────────── BOTTONI ───────────────── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.82rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  border: 1px solid var(--bordeaux);
  background: var(--bordeaux);
  color: var(--panna-light);
  position: relative;
  overflow: hidden;
}

/* Riflesso che attraversa il bottone al passaggio del mouse */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 130%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--bordeaux-dark);
  border-color: var(--bordeaux-dark);
  box-shadow: 0 12px 26px rgba(var(--bordeaux-rgb), 0.28);
}

/* Variante su fondi scuri */
.hero .btn-primary,
.contact-panel .btn-primary,
.address-card .btn-primary,
.story-band .btn-primary {
  background: var(--panna-light);
  border-color: var(--panna-light);
  color: var(--bordeaux-dark);
}

.hero .btn-primary:hover,
.contact-panel .btn-primary:hover,
.address-card .btn-primary:hover {
  background: var(--panna);
  border-color: var(--panna);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  border: 1px solid rgba(var(--bordeaux-rgb), 0.45);
  background: transparent;
  color: var(--bordeaux-dark);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(var(--bordeaux-rgb), 0.07);
  border-color: var(--bordeaux);
}

.contact-panel .btn-secondary {
  border-color: rgba(var(--panna-rgb), 0.5);
  color: var(--panna-light);
}

.contact-panel .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--panna-rgb), 0.85);
}

.btn-ghost {
  border: 1px solid rgba(var(--panna-rgb), 0.45);
  color: var(--panna-light);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--panna-rgb), 0.8);
  background: rgba(255, 255, 255, 0.12);
}

/* Freccia decorativa */
.hero-actions .btn-primary::after,
.btn-ghost::after,
.room-cta::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.6rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.hero-actions .btn-primary:hover::after,
.btn-ghost:hover::after,
.room-cta:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* ───────────────── MARQUEE ───────────────── */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--panna-light);
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--bordeaux-mid);
}

@keyframes marqueeScroll {
  to {
    transform: translateX(calc(-50% - 1.25rem));
  }
}

/* ───────────────── SEZIONI ───────────────── */
.section {
  padding: clamp(2.8rem, 6vw, 4.6rem) 0;
  position: relative;
}

.section-shell {
  display: grid;
  gap: clamp(1.6rem, 3.5vw, 2.4rem);
}

.revealable {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.revealable.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  max-width: 720px;
  display: grid;
  gap: 0.6rem;
}

.section-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--bordeaux-dark);
  position: relative;
  padding-bottom: 0.7rem;
}

/* Filetto oro che si "disegna" quando la sezione entra in vista */
.section-header h2::after,
.story-copy h2::after,
.contact-panel h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--bordeaux-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s ease 0.35s;
}

.section-shell.is-visible .section-header h2::after,
.story-band.is-visible .story-copy h2::after,
.contact-panel.is-visible h2::after {
  transform: scaleX(1);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ───────────────── CHI SIAMO ───────────────── */
.about-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  counter-reset: feat;
}

.feature-card {
  position: relative;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.feature-card::before {
  counter-increment: feat;
  content: counter(feat, upper-roman);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--bronze);
}

.feature-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--bordeaux-dark);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ───────────────── STORY BAND (banda scura) ───────────────── */
.story-band {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(1.4rem, 3.5vw, 2.8rem);
  align-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 80% at 90% 0%, rgba(200, 148, 72, 0.14), transparent 60%),
    linear-gradient(135deg, var(--bordeaux-darker) 0%, var(--bordeaux-dark) 55%, var(--bordeaux) 100%);
  color: var(--panna);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  overflow: hidden;
}

.story-media {
  height: 380px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 48px rgba(16, 3, 8, 0.4);
}

.story-media::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(var(--panna-rgb), 0.38);
  border-radius: 3px;
  pointer-events: none;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.story-band:hover .story-media img {
  transform: scale(1.04);
}

.story-copy {
  display: grid;
  gap: 0.8rem;
}

.story-copy .eyebrow {
  margin: 0;
  color: var(--gold-soft);
}

.story-copy .eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
}

.story-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.18;
  color: var(--panna-light);
  position: relative;
  padding-bottom: 0.6rem;
}

.story-copy p {
  margin: 0;
  color: rgba(255, 248, 237, 0.78);
  line-height: 1.7;
}

.comfort-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid rgba(var(--panna-rgb), 0.2);
  list-style: none;
}

.comfort-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.5rem;
  color: rgba(255, 248, 237, 0.92);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.comfort-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(200, 148, 72, 0.22);
}

/* ───────────────── CAMERE ───────────────── */
.rooms-section {
  background: var(--panna-soft);
  border-block: 1px solid var(--hairline-soft);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.6rem);
  align-items: stretch;
}

.room-card {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  display: grid;
  grid-template-rows: 240px auto;
  min-height: 100%;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(var(--bordeaux-rgb), 0.16);
}

/* Effetto Ken Burns: la foto attiva respira lentamente */
.slider-image.active {
  animation: kenBurns 11s ease-in-out infinite alternate;
}

/* Slider */
.slider {
  position: relative;
  background: var(--surface-soft);
}

.slider-track {
  width: 100%;
  height: 100%;
  position: relative;
  touch-action: pan-y;
}

.slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.45s ease, transform 0.65s ease;
}

.slider-image.active {
  opacity: 1;
}

.slider-controls {
  position: absolute;
  inset: auto 0.7rem 0.7rem 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-btn {
  border: none;
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(42, 8, 20, 0.62);
  color: var(--panna-light);
  cursor: pointer;
  font-size: 0.95rem;
  touch-action: manipulation;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(42, 8, 20, 0.85);
}

.slider-dots {
  display: flex;
  gap: 0.34rem;
}

.slider-dot {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
  transition: background 0.2s ease;
}

.slider-dot.active {
  background: #fff;
}

/* Corpo della card camera */
.room-body {
  padding: 1.3rem 1.3rem 1.4rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.9rem;
}

.room-head {
  display: grid;
  gap: 0.3rem;
}

.room-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--bordeaux-dark);
}

.price {
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.room-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  align-content: start;
}

.meta-list li {
  padding: 0.46rem 0;
  border-bottom: 1px solid rgba(var(--panna-line-rgb), 0.75);
  font-size: 0.88rem;
  color: var(--text);
}

.meta-list li:last-child {
  border-bottom: none;
}

.room-cta {
  width: 100%;
  margin-top: 0.2rem;
}

/* ───────────────── MAPPA ───────────────── */
.map-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  align-items: stretch;
}

.map-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  min-height: 360px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-warm);
}

.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
  text-align: center;
  background: rgba(var(--cream-rgb), 0.95);
  color: var(--muted);
}

.map-consent[hidden] {
  display: none;
}

.map-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* La mappa appare in dissolvenza appena viene autorizzata */
.map-frame iframe[src] {
  opacity: 1;
}

.address-card {
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(200, 148, 72, 0.16), transparent 60%),
    linear-gradient(155deg, var(--bordeaux-dark), var(--bordeaux));
  color: var(--panna);
  padding: clamp(1.3rem, 2.6vw, 1.8rem);
  display: grid;
  align-content: start;
  gap: 0.9rem;
  box-shadow: var(--shadow);
}

.address-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--panna-light);
}

.address-card p {
  margin: 0;
  color: rgba(255, 248, 237, 0.82);
  line-height: 1.7;
}

.address-card .btn-primary {
  justify-self: start;
}

/* ───────────────── CONTATTI ───────────────── */
.contact-panel {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 90% at 95% 100%, rgba(200, 148, 72, 0.18), transparent 60%),
    linear-gradient(120deg, var(--bordeaux-darker) 0%, var(--bordeaux-dark) 50%, var(--bordeaux) 100%);
  color: var(--panna);
  padding: clamp(1.8rem, 4.5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--panna-rgb), 0.18);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.contact-copy {
  max-width: 540px;
}

.contact-copy .eyebrow {
  color: var(--gold-soft);
}

.contact-copy .eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
}

.contact-panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--panna-light);
  position: relative;
  padding-bottom: 0.55rem;
}

.contact-panel p {
  margin: 0;
  color: rgba(255, 248, 237, 0.78);
  line-height: 1.7;
}

.contact-actions {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.contact-actions .btn-primary,
.contact-actions .btn-secondary {
  white-space: nowrap;
}

/* ───────────────── INFO UTILI ───────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2rem);
  align-items: stretch;
}

.info-card {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.info-card h3 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bronze);
}

.info-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ───────────────── ATTIVITÀ ───────────────── */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.activity-card {
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  min-height: 116px;
  box-shadow: var(--shadow-warm);
  display: grid;
  gap: 0.4rem;
  align-content: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--bordeaux));
  opacity: 0.85;
  transition: width 0.25s ease;
}

.activity-card:hover::before {
  width: 7px;
}

.activity-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--bordeaux-rgb), 0.24);
  box-shadow: 0 14px 28px rgba(var(--bordeaux-rgb), 0.12);
}

.activity-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--bordeaux-dark);
}

.activity-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ───────────────── FOOTER ───────────────── */
.footer {
  /* Padding extra in basso per non far coprire i testi dal pulsante cookie fisso */
  padding: 2.6rem 0 4.4rem;
  background: var(--bordeaux-darker);
  color: rgba(255, 248, 237, 0.72);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-business {
  display: grid;
  gap: 0.3rem;
}

.footer-business p,
.footer-links {
  margin: 0;
}

.footer-business p:first-child {
  color: var(--panna-light);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.footer-links {
  max-width: 360px;
  text-align: right;
}

.footer-content a {
  color: var(--gold-soft);
  font-weight: 700;
  margin-left: 0.9rem;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* ───────────────── COOKIE BANNER ───────────────── */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  width: min(540px, calc(100vw - 2rem));
  border: 1px solid var(--hairline-soft);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-md);
  background: var(--panna-light);
  box-shadow: 0 20px 48px rgba(58, 13, 28, 0.24);
  padding: 1.1rem;
  display: grid;
  gap: 0.85rem;
  padding-right: 3rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-title {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--bordeaux-dark);
  font-weight: 700;
}

.cookie-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(var(--bordeaux-rgb), 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--bordeaux-dark);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.cookie-close:hover {
  background: rgba(var(--bordeaux-rgb), 0.08);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-banner > a {
  color: var(--bordeaux);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.cookie-banner > a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn-primary,
.cookie-actions .btn-secondary,
.cookie-modal-actions .btn-primary,
.cookie-modal-actions .btn-secondary {
  min-height: 2.55rem;
  padding: 0.6rem 1.05rem;
  font-size: 0.72rem;
}

/* ───────────────── COOKIE MODAL ───────────────── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(32, 6, 16, 0.5);
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid var(--hairline-soft);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  background: var(--panna-light);
  box-shadow: 0 28px 64px rgba(32, 6, 16, 0.36);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.cookie-modal-header {
  padding-right: 2.4rem;
}

.cookie-modal-header .eyebrow {
  margin-bottom: 0.5rem;
}

.cookie-modal-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bordeaux-dark);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cookie-modal-header p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-options {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.95rem;
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option strong {
  color: var(--bordeaux-dark);
}

.cookie-option small {
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 2.8rem;
  height: 1.55rem;
  appearance: none;
  border: 1px solid rgba(var(--bordeaux-rgb), 0.28);
  border-radius: 999px;
  background: var(--panna-soft);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-option input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.22rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(var(--bordeaux-rgb), 0.18);
  transition: transform 0.2s ease;
}

.cookie-option input[type="checkbox"]:checked {
  border-color: rgba(63, 111, 91, 0.44);
  background: var(--sage);
}

.cookie-option input[type="checkbox"]:checked::after {
  transform: translateX(1.18rem);
}

.cookie-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.cookie-preferences-button {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 21;
  border: 1px solid rgba(var(--panna-rgb), 0.3);
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--panna-light);
  box-shadow: 0 12px 28px rgba(var(--bordeaux-rgb), 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.74rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cookie-preferences-button:hover {
  background: var(--bordeaux-dark);
}

.cookie-banner-open .cookie-preferences-button {
  display: none;
}

.cookie-modal-open {
  overflow: hidden;
}

/* ───────────────── PAGINE LEGALI ───────────────── */
.legal-page {
  padding: 2rem 0 3.5rem;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.brand-link {
  display: inline-flex;
  color: var(--bordeaux);
  font-family: var(--serif);
  font-size: 1.4rem;
  text-decoration: none;
}

/* Su fondo chiaro lo switcher lingua usa i colori scuri */
.legal-topbar .language-switcher {
  border-color: rgba(var(--bordeaux-rgb), 0.28);
  background: var(--panna-light);
}

.legal-topbar .lang-btn {
  color: var(--bordeaux-mid);
}

.legal-topbar .lang-btn.active {
  background: var(--bordeaux);
  color: var(--panna-light);
}

.legal-shell {
  line-height: 1.7;
  background: var(--panna-light);
  border: 1px solid var(--hairline-soft);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-warm);
}

.legal-shell[hidden] {
  display: none !important;
}

.legal-shell h1,
.legal-shell h2 {
  color: var(--bordeaux-dark);
}

.legal-shell h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal-shell h2 {
  margin: 1.5rem 0 0.3rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.legal-shell a {
  color: var(--bordeaux);
  font-weight: 700;
}

/* ───────────────── RESPONSIVE ───────────────── */
@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-visual {
    min-height: 380px;
  }

  .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .story-band {
    grid-template-columns: 1fr;
  }

  .story-media {
    height: 300px;
  }

  .comfort-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .hero-content {
    padding: 1.5rem 0 1.6rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .hero-visual {
    min-height: auto;
    margin-top: 1.4rem;
  }

  .hero-photo-main {
    position: relative;
    inset: auto;
    width: 100%;
    height: 230px;
  }

  .hero-visual::before,
  .hero-photo-top,
  .hero-photo-bottom,
  .hero-float-card {
    display: none;
  }

  .hero-photo-main img {
    animation: none;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
  }

  .hero-highlights div {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
  }

  .navbar {
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.2rem 0 0.8rem;
  }

  .nav-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 0.8rem;
    width: 100%;
  }

  .nav-links {
    display: flex;
    overflow-x: auto;
    gap: 1.05rem;
    width: 100%;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    min-width: 0;
    flex: 0 0 auto;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 280px;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    grid-template-rows: 210px auto;
  }

  .info-grid,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .comfort-list {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    max-width: none;
    text-align: left;
  }

  .footer-content a {
    display: inline-flex;
    margin: 0.35rem 0.9rem 0 0;
  }

  .cookie-preferences-button {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-banner {
    right: 0.75rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 0.75rem;
    width: auto;
    max-height: min(70dvh, calc(100dvh - 6rem));
    overflow: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
    overscroll-behavior: contain;
  }

  .cookie-banner .cookie-close {
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 2.35rem;
    height: 2.35rem;
    margin: -0.2rem -0.15rem 0 0.35rem;
  }

  .cookie-banner > div:first-of-type {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .cookie-banner > a,
  .cookie-actions {
    grid-column: 1 / -1;
  }

  .cookie-banner p {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .cookie-banner > a {
    font-size: 0.84rem;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .cookie-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .cookie-modal {
    align-items: end;
    padding: calc(3.5rem + env(safe-area-inset-top)) 0.75rem calc(1rem + env(safe-area-inset-bottom));
  }

  /* Evita che il pulsante fisso copra i link nel footer su schermi piccoli */
  body {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }

  /* Mantiene visibile la X del modal anche con le barre del browser sui telefoni */
  .cookie-modal-panel {
    padding-top: calc(1rem + env(safe-area-inset-top));
    max-height: calc(100dvh - calc(4.5rem + env(safe-area-inset-top)) - calc(1rem + env(safe-area-inset-bottom)));
  }

  .cookie-modal .cookie-close {
    top: calc(0.6rem + env(safe-area-inset-top));
  }

  .cookie-option {
    align-items: flex-start;
  }

  .cookie-modal-actions {
    justify-content: stretch;
  }

  .cookie-modal-actions .btn-primary,
  .cookie-modal-actions .btn-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes photoBreath {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

/* ───────────────── RECENSIONI ───────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Tutte le righe alte uguali: i riquadri risultano identici a prescindere
     dalla lunghezza del testo */
  grid-auto-rows: 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.reviews-grid[hidden] {
  display: none;
}

.review-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.45rem 1.4rem;
  box-shadow: var(--shadow-warm);
  /* stelle · testo (si espande) · meta sempre in fondo → card bilanciate */
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.85rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Riflesso che attraversa la card al passaggio del mouse */
.review-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 148, 72, 0.55);
  box-shadow: 0 20px 40px rgba(var(--bordeaux-rgb), 0.16);
}

.review-card:hover::after {
  animation: reviewSheen 0.85s ease;
}

/* Virgoletta decorativa in filigrana */
.review-quote {
  position: absolute;
  top: -0.55rem;
  right: 0.55rem;
  font-family: var(--serif);
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(200, 148, 72, 0.16);
  pointer-events: none;
  transition: transform 0.4s ease, color 0.4s ease;
}

.review-card:hover .review-quote {
  transform: translateY(0.2rem) scale(1.08);
  color: rgba(200, 148, 72, 0.26);
}

.review-stars {
  position: relative;
  margin: 0;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}

.review-text {
  position: relative;
  margin: 0;
  align-self: start;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.review-meta {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline-soft);
  color: var(--muted);
  font-size: 0.85rem;
}

.review-name {
  color: var(--bordeaux-dark);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.review-date {
  justify-self: end;
  font-size: 0.8rem;
}

.review-source {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--bronze);
}

.review-source em {
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.reviews-cta {
  display: flex;
  justify-content: center;
}

/* Entrata dedicata delle recensioni: salgono e si ingrandiscono a cascata */
.review-card.revealable {
  transform: translateY(26px) scale(0.96);
}

.review-card.revealable.is-visible {
  transform: translateY(0) scale(1);
}

@keyframes reviewSheen {
  from {
    left: -120%;
  }
  to {
    left: 130%;
  }
}

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

@media (max-width: 700px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    /* su mobile il testo definisce l'altezza, niente righe forzate */
    grid-auto-rows: auto;
  }
}

/* ───────────────── TILT 3D CARD CAMERE ───────────────── */
.room-card.tilting {
  transition: transform 0.16s ease-out, box-shadow 0.25s ease;
  will-change: transform;
}

/* ───────────────── PULSANTE TORNA SU ───────────────── */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 19;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(var(--panna-rgb), 0.3);
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--panna-light);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(var(--bordeaux-rgb), 0.3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--bordeaux-dark);
}

/* Il banner cookie occupa lo stesso angolo: il torna-su si nasconde finché è aperto */
.cookie-banner-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 700px) {
  .back-to-top {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
}
