/* ==========================================================================
   Villa del Sole — foglio di stile condiviso da tutte le pagine
   Design system + componenti. Bootstrap 5 fornisce solo griglia e utility;
   tutto l'aspetto visivo è definito qui.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --c-ivory:      #f6f1e8;
  --c-paper:      #fbf8f2;
  --c-sand:       #ede4d5;
  --c-sand-deep:  #e2d6c3;
  --c-line:       #dccfbb;
  --c-ink:        #24211c;
  --c-ink-soft:   #5a5148;
  --c-muted:      #7a6f63;
  --c-terracotta: #a2482a;
  --c-terracotta-dark: #86391f;
  --c-olive:      #4d5638;
  --c-olive-dark: #2c2e24;
  --c-night:      #1e1e19;
  --c-gold:       #d9a648;
  --c-gold-soft:  #e8c582;
  --c-white:      #ffffff;

  /* Tipografia */
  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-h3:   clamp(1.6rem, 1.3rem + 0.9vw, 2rem);
  --fs-h2:   clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);
  --fs-h1:   clamp(3rem, 1.6rem + 5.6vw, 6.75rem);
  --tracking-caps: 0.22em;

  /* Spaziature */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --section-y: clamp(5rem, 3rem + 7vw, 9.5rem);
  --gutter-x: clamp(1.25rem, 0.5rem + 3vw, 3rem);

  /* Forme ed effetti */
  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(36, 33, 28, .06);
  --shadow:    0 18px 40px -24px rgba(60, 40, 20, .35);
  --shadow-lg: 0 30px 60px -30px rgba(40, 28, 16, .45);
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --header-h:  76px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); }

body {
  background: var(--c-ivory);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Gutter coerente su tutti i container */
.container-xl {
  --bs-gutter-x: calc(var(--gutter-x) * 2);
  max-width: 1320px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-terracotta); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--c-terracotta-dark); }
::selection { background: var(--c-gold-soft); color: var(--c-ink); }

:focus-visible {
  outline: 2px solid var(--c-terracotta);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--f-serif); font-weight: 500; color: inherit; letter-spacing: -0.01em; }
/* Cormorant usa numeri old-style: per cifre e telefoni servono quelli allineati */
.stats__num, .quote-steps__num, .mobile-menu__phone { font-variant-numeric: lining-nums; }
em { font-style: italic; font-weight: 400; }

.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 2000;
  background: var(--c-ink); color: var(--c-white);
  padding: .75rem 1.25rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--c-white); }

/* --------------------------------------------------------------------------
   3. Tipografia di sezione
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  margin: 0 0 1.25rem;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--c-terracotta);
}
.eyebrow::before {
  content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .7;
}
.text-center .eyebrow { justify-content: center; }
.eyebrow--light { color: var(--c-gold-soft); }
.eyebrow--gold  { color: var(--c-gold); }

.section-title {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.02;
  text-wrap: balance;
}
.section-title em { color: var(--c-terracotta); }
.section-title--xl { font-size: clamp(3rem, 2rem + 4.5vw, 5.5rem); }

.section-intro {
  margin: 0;
  max-width: 34rem;
  font-size: var(--fs-md);
  color: var(--c-ink-soft);
  text-wrap: pretty;
}

.prose { margin-top: var(--space-4); max-width: 32rem; color: var(--c-ink-soft); font-size: var(--fs-md); line-height: 1.8; }
.prose p { margin: 0 0 1.1rem; }

.note { margin: var(--space-4) 0 0; font-size: var(--fs-sm); color: var(--c-muted); }

/* --------------------------------------------------------------------------
   4. Bottoni e link
   -------------------------------------------------------------------------- */
.btn-vds {
  --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem;
  padding: .9rem 1.75rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  font-family: var(--f-sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-vds:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn-vds:active { transform: translateY(0); }
.btn-vds .icon { width: 1.25rem; height: 1.25rem; }

.btn-vds--primary { --btn-bg: var(--c-terracotta); --btn-fg: var(--c-white); }
.btn-vds--primary:hover { --btn-bg: var(--c-terracotta-dark); box-shadow: 0 14px 28px -16px rgba(134, 57, 31, .8); }

.btn-vds--ghost { --btn-bg: rgba(255,255,255,.08); --btn-fg: var(--c-white); --btn-bd: rgba(255,255,255,.65); backdrop-filter: blur(6px); }
.btn-vds--ghost:hover { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); }

.btn-vds--outline { --btn-fg: var(--c-ink); --btn-bd: var(--c-ink); }
.btn-vds--outline:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-ivory); }


.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid currentColor;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-ink);
}
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--c-terracotta); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--c-ivory); }
.link-arrow--light:hover { color: var(--c-gold-soft); }

.round-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--c-ink); border-radius: 50%;
  background: transparent; color: var(--c-ink);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.round-btn:hover { background: var(--c-ink); color: var(--c-ivory); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  padding: 0; border: 0; background: transparent; color: inherit;
}
.icon-btn .icon { width: 1.35rem; height: 1.35rem; }
.icon-btn:hover { color: inherit; opacity: .75; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1030;
  color: var(--c-white);
  padding: 1.25rem 0;
  transition: background-color .45s var(--ease), padding .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.site-header::before {
  /* velo per leggibilità sopra la hero */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 16, 12, .45), rgba(20, 16, 12, 0));
  transition: opacity .45s var(--ease);
}
.site-header.is-solid {
  padding: .6rem 0;
  background: rgba(246, 241, 232, .94);
  color: var(--c-ink);
  box-shadow: 0 1px 0 rgba(36, 33, 28, .08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header.is-solid::before { opacity: 0; }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; }
.brand:hover { color: inherit; }
.brand__icon {
  width: 1.75rem; height: 1.75rem;
  fill: none; stroke: var(--c-gold); stroke-width: 1.4; stroke-linecap: round;
  transition: transform 1.2s var(--ease);
}
.brand:hover .brand__icon { transform: rotate(45deg); }
.brand__name { font-family: var(--f-serif); font-size: 1.7rem; font-weight: 500; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.brand--dark { color: var(--c-ink); }
.brand--light { color: var(--c-ivory); }

.main-nav ul { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative; padding: .4rem 0; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .02em;
  color: inherit;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: 600; color: inherit; white-space: nowrap; }
.header-phone:hover { color: inherit; opacity: .75; }

.lang-switch {
  align-items: center;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  overflow: hidden; opacity: .9;
}
.lang-switch__item { padding: .3rem .6rem; color: inherit; transition: background-color .3s var(--ease), color .3s var(--ease); }
.lang-switch__item:hover { color: inherit; background: rgba(255, 255, 255, .18); }
.lang-switch__item.is-active,
.lang-switch__item.is-active:hover { color: var(--c-ink); background: var(--c-white); }
.is-solid .lang-switch__item:hover,
.lang-switch--dark .lang-switch__item:hover { background: rgba(36, 33, 28, .08); }
.is-solid .lang-switch__item.is-active,
.lang-switch--dark .lang-switch__item.is-active { color: var(--c-ivory); background: var(--c-ink); }
.lang-switch--dark { display: inline-flex; align-self: flex-start; color: var(--c-ink); }

.btn-vds--header { min-height: 2.75rem; padding: .7rem 1.25rem; white-space: nowrap; --btn-bg: var(--c-white); --btn-fg: var(--c-ink); }
.btn-vds--header:hover { --btn-bg: var(--c-gold-soft); }
.is-solid .btn-vds--header { --btn-bg: var(--c-terracotta); --btn-fg: var(--c-white); }
.is-solid .btn-vds--header:hover { --btn-bg: var(--c-terracotta-dark); }

.burger { flex-direction: column; gap: 6px; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: width .3s var(--ease); }
.burger span:last-child { width: 16px; margin-left: 8px; }
.burger:hover span:last-child { width: 24px; margin-left: 0; }

/* Menu mobile (offcanvas Bootstrap) */
.mobile-menu.offcanvas {
  --bs-offcanvas-width: min(100vw, 420px);
  --bs-offcanvas-bg: var(--c-ivory);
  --bs-offcanvas-color: var(--c-ink);
  --bs-offcanvas-padding-x: var(--gutter-x);
  border-left: 0;
}
.mobile-menu .offcanvas-header { justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.mobile-menu .offcanvas-body { display: flex; flex-direction: column; }
.mobile-menu__list { list-style: none; margin: var(--space-4) 0; padding: 0; }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-serif); font-size: 2.25rem; line-height: 1.15; color: var(--c-ink);
}
.mobile-menu__list a span { font-family: var(--f-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; color: var(--c-terracotta); }
.mobile-menu__list a:hover { color: var(--c-terracotta); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu__phone { font-size: 1.25rem; font-weight: 600; color: var(--c-ink); }
.mobile-menu__mail { margin-top: -.5rem; font-size: var(--fs-md); color: var(--c-ink-soft); overflow-wrap: anywhere; }
.offcanvas-backdrop.show { opacity: .4; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--c-olive-dark);
  color: var(--c-white);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; animation: hero-zoom 2.8s var(--ease) both; }
.hero__img {
  width: 100%; height: 115%;
  object-fit: cover; object-position: 50% 60%;
  will-change: transform;
}
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 10, .3) 0%, rgba(18, 14, 10, 0) 25%, rgba(18, 14, 10, .05) 55%, rgba(18, 14, 10, .7) 100%),
    linear-gradient(90deg, rgba(18, 14, 10, .5) 0%, rgba(18, 14, 10, .12) 50%, rgba(18, 14, 10, 0) 70%);
}

.hero__content { position: relative; z-index: 2; padding-top: 9rem; }
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero__title {
  margin: 0; max-width: 14ch;
  font-size: var(--fs-h1); line-height: .98;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .2);
}
.hero__title em { color: var(--c-gold-soft); }
.hero__lead {
  margin: 1.75rem 0 0; max-width: 36rem; text-wrap: pretty;
  font-size: clamp(1rem, .9rem + .4vw, 1.1875rem); line-height: 1.7;
  color: rgba(255, 255, 255, .92);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

.hero__facts-wrap { position: relative; z-index: 2; }
.hero__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem;
  margin: clamp(2.5rem, 7vh, 5rem) 0 0; padding: 1.4rem 0 1.75rem;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .02em;
}
.hero__facts li { display: flex; align-items: center; gap: .7rem; }
.hero__facts .icon { width: 1.6rem; height: 1.6rem; color: var(--c-gold-soft); stroke-width: 1.3; }

/* Animazione d'ingresso degli elementi della hero */
[data-hero] { opacity: 0; transform: translateY(24px); animation: hero-in 1.1s var(--ease) forwards; }
.hero__eyebrow[data-hero] { animation-delay: .25s; }
.hero__title[data-hero]   { animation-delay: .4s; }
.hero__lead[data-hero]    { animation-delay: .6s; }
.hero__ctas[data-hero]    { animation-delay: .75s; }
.hero__facts[data-hero]   { animation-delay: .95s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   7. Sezioni generiche
   -------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section--sand  { background: var(--c-sand); }
.section--paper { background: var(--c-paper); }
.section--dark  { background: var(--c-olive-dark); color: var(--c-ivory); }
.section--dark .section-title em { color: var(--c-gold-soft); }
.section--dark .section-intro { color: rgba(246, 241, 232, .78); }

.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head .section-intro { margin-top: 1.5rem; }
.section-head.text-center .section-intro { margin-inline: auto; }
.section-head--split { display: grid; gap: 1.5rem 4rem; align-items: end; }
.section-head--split .section-intro { margin-top: 0; }

/* --------------------------------------------------------------------------
   8. La villa
   -------------------------------------------------------------------------- */
.signature {
  margin: var(--space-4) 0 0;
  font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--c-ink-soft);
}
.signature span { color: var(--c-terracotta); }

.collage { position: relative; aspect-ratio: 1 / .92; }
.collage figure { position: absolute; margin: 0; overflow: hidden; background: var(--c-sand-deep); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.collage figure:hover img { transform: scale(1.04); }
.collage__main   { left: 0; top: 0; width: 70%; height: 74%; }
.collage__side   { right: 0; top: 10%; width: 27%; height: 40%; }
.collage__accent { right: 0; bottom: 0; width: 52%; height: 44%; box-shadow: 0 0 0 10px var(--c-ivory); }
.collage__caption {
  position: absolute; left: 0; bottom: 0; width: 42%; margin: 0;
  font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--c-muted);
}

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem;
  margin: var(--section-y) 0 0; padding: 2.5rem 0 0;
  list-style: none; border-top: 1px solid var(--c-line);
}
.stats__item { display: flex; flex-direction: column; gap: .5rem; }
.stats__num { font-family: var(--f-serif); font-size: clamp(3rem, 2.2rem + 2.5vw, 4.25rem); line-height: .9; color: var(--c-terracotta); }
.stats__label { font-size: var(--fs-sm); font-weight: 500; letter-spacing: .04em; color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   9. Dotazioni
   -------------------------------------------------------------------------- */
.amenity-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line);
}
.amenity {
  position: relative;
  padding: clamp(1.25rem, .8rem + 1.5vw, 2.25rem);
  border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  transition: background-color .5s var(--ease);
}
.amenity:hover { background: var(--c-paper); }
.amenity__icon {
  width: 2.25rem; height: 2.25rem; margin-bottom: 1.25rem;
  fill: none; stroke: var(--c-olive); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease), stroke .4s;
}
.amenity:hover .amenity__icon { transform: translateY(-3px); stroke: var(--c-terracotta); }
.amenity h3 { margin: 0 0 .4rem; font-size: 1.45rem; line-height: 1.15; }
.amenity p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   10. Camere, spazi e prezzi
   -------------------------------------------------------------------------- */
.room-card {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--c-paper);
  transition: box-shadow .6s var(--ease), transform .6s var(--ease);
}
.room-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.room-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-sand-deep); }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.room-card:hover .room-card__media img { transform: scale(1.05); }
.room-card__body { padding: 1.75rem 1.75rem 2rem; }
.room-card__meta {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-olive);
}
.room-card__meta .icon { width: 1.1rem; height: 1.1rem; }
.room-card__title { margin: 0 0 .75rem; font-size: var(--fs-h3); line-height: 1.05; }
.room-card__title a { color: inherit; }
.room-card:hover .room-card__title a { color: var(--c-terracotta); }
.room-card__body p:last-child { margin: 0; font-size: .9375rem; color: var(--c-ink-soft); }

.spaces { margin-top: clamp(3.5rem, 2rem + 4vw, 6rem); }
.spaces__title { margin: 0 0 1.5rem; font-size: var(--fs-h3); }
.space { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-sand-deep); }
.space img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.space:hover img { transform: scale(1.06); }
.space::after {
  content: ""; position: absolute; inset: 45% 0 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0), rgba(20, 16, 12, .7));
}
.space figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1;
  font-family: var(--f-serif); font-size: clamp(1.1rem, .95rem + .5vw, 1.4rem); line-height: 1.15; color: var(--c-white);
}

.pricing {
  display: grid; gap: 2rem;
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  background: var(--c-olive-dark); color: var(--c-ivory);
}
.pricing .eyebrow { color: var(--c-gold); }
.pricing__title { margin: 0 0 1rem; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1.05; text-wrap: balance; }
.pricing__title em { color: var(--c-gold-soft); }
.pricing__intro { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.pricing__intro p { margin: 0; max-width: 26rem; font-size: .9375rem; color: rgba(246, 241, 232, .78); }
/* Cosa indicare per il preventivo (nessun prezzo fisso) */
.quote-steps__lead { margin: 0 0 1rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 241, 232, .6); }
.quote-steps { margin: 0; padding: 0; list-style: none; }
.quote-steps li {
  display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(246, 241, 232, .16);
}
.quote-steps li:first-child { border-top: 1px solid rgba(246, 241, 232, .16); }
.quote-steps__num { grid-row: span 2; font-family: var(--f-serif); font-size: 1.9rem; line-height: 1; color: var(--c-gold-soft); }
.quote-steps__title { font-weight: 600; font-size: .9375rem; }
.quote-steps__text { font-size: .9375rem; color: rgba(246, 241, 232, .75); }
.pricing__cta { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   11. Interludio fotografico
   -------------------------------------------------------------------------- */
.interlude {
  position: relative;
  min-height: clamp(26rem, 70vh, 44rem);
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--c-white);
  background: #2f6f73;
}
.interlude__media { position: absolute; inset: 0; }
.interlude__media img {
  position: absolute; left: 0; top: -15%;
  width: 100%; height: 130%; object-fit: cover; object-position: 50% 70%;
  will-change: transform;
}
.interlude::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 22, 24, .45), rgba(14, 22, 24, .15) 55%, rgba(14, 22, 24, .35));
}
.interlude__content { position: relative; z-index: 1; text-align: center; }
.interlude__quote {
  margin: 0 auto; max-width: 20ch;
  font-family: var(--f-serif); font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem); line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   12. Galleria + lightbox
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 9.5rem;
  grid-auto-flow: dense;
  gap: .625rem;
  margin: 0; padding: 0; list-style: none;
}
.gallery-grid .g-big { grid-column: span 2; grid-row: span 2; }

.gallery-item {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; overflow: hidden;
  background: var(--c-sand-deep); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(20, 16, 12, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 2rem no-repeat;
  opacity: 0; transition: opacity .5s var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:focus-visible { outline-offset: -3px; outline-color: var(--c-white); }


.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(3.5rem, 6vw, 5rem) clamp(.75rem, 6vw, 6rem);
  background: rgba(20, 18, 14, .96);
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; width: 100%; max-width: 1200px; display: flex; flex-direction: column; gap: 1rem; }
.lightbox__img {
  width: 100%; max-height: calc(100vh - 11rem); object-fit: contain;
  transition: opacity .3s var(--ease);
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: rgba(246, 241, 232, .85); }
.lightbox__text { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; line-height: 1.3; }
.lightbox__count { font-size: var(--fs-xs); letter-spacing: .14em; white-space: nowrap; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  background: rgba(20, 18, 14, .4); color: var(--c-white);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__close { top: 1rem; right: 1rem; width: 3rem; height: 3rem; }
.lightbox__nav { top: 50%; width: 3.25rem; height: 3.25rem; margin-top: -1.625rem; }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 2rem); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .15); border-color: var(--c-white); }
.lightbox .icon { width: 1.35rem; height: 1.35rem; }
body.has-overlay { overflow: hidden; }

/* --------------------------------------------------------------------------
   13. Dintorni: navigazione per categorie ed elenchi
   -------------------------------------------------------------------------- */
html:has(.chip-nav) { scroll-padding-top: 8.5rem; }

.chip-nav {
  position: sticky; top: 63px; z-index: 20;
  background: rgba(251, 248, 242, .95);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip-nav__list {
  position: relative;
  display: flex; gap: .5rem;
  margin: 0; padding: .85rem 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.chip-nav__list::-webkit-scrollbar { display: none; }
.chip-nav a, .filter-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem;
  border: 1px solid var(--c-line); border-radius: 999px;
  background: transparent;
  font-family: var(--f-sans); font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  color: var(--c-ink-soft); white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip-nav a:hover, .filter-btn:hover { border-color: var(--c-ink); color: var(--c-ink); }
.chip-nav a.is-active, .filter-btn[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-ivory); }

.category { padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0; }
.category + .category { border-top: 1px solid var(--c-line); }
.category__head { margin-bottom: 2rem; }
.category__icon {
  width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem;
  fill: none; stroke: var(--c-olive); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.category__title { margin: 0 0 1rem; font-size: clamp(2.25rem, 1.7rem + 2vw, 3.5rem); line-height: 1.02; }
.category__lead { margin: 0; max-width: 26rem; font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--c-ink-soft); }

.places {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  margin: 0; padding: 0; list-style: none;
  background: var(--c-line); border: 1px solid var(--c-line);
}
.place {
  display: flex; flex-direction: column;
  padding: 1.6rem 1.5rem;
  background: var(--c-paper);
  transition: background-color .4s var(--ease);
}
.place:hover { background: var(--c-white); }
.place h3 { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.place p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--c-ink-soft); }
.place .place__where {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
  margin-top: auto; padding-top: 1rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-olive);
}
.place__where .icon { width: 1rem; height: 1rem; }
.place__where span {
  margin-left: auto;
  padding: .15rem .6rem; border-radius: 999px;
  background: var(--c-sand); color: var(--c-ink-soft);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; white-space: nowrap;
}

/* Schede argomento (anteprima dintorni in homepage) */
.topic-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.topic-card {
  height: 100%;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--c-paper); border: 1px solid var(--c-line);
  color: var(--c-ink);
  transition: background-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.topic-card:hover { background: var(--c-white); color: var(--c-ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.topic-card__icon {
  width: 2.25rem; height: 2.25rem; margin-bottom: 1.25rem;
  fill: none; stroke: var(--c-olive); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .4s;
}
.topic-card:hover .topic-card__icon { stroke: var(--c-terracotta); }
.topic-card h3 { margin: 0 0 .5rem; font-size: 1.6rem; line-height: 1.1; }
.topic-card p { margin: 0; font-size: .9375rem; color: var(--c-ink-soft); }
.topic-card__more {
  display: flex; align-items: center; gap: .5rem;
  margin-top: auto; padding-top: 1.5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-terracotta);
}
.topic-card__more .icon { transition: transform .35s var(--ease); }
.topic-card:hover .topic-card__more .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   14. Eventi
   -------------------------------------------------------------------------- */
.event-list {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(246, 241, 232, .18);
}
.event {
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(246, 241, 232, .18);
}
.event__season {
  display: inline-block; margin-bottom: 1.25rem;
  padding: .35rem .75rem; border: 1px solid rgba(232, 197, 130, .5); border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-soft);
}
.event__title { margin: 0 0 .35rem; font-size: 1.85rem; line-height: 1.1; }
.event__place { margin: 0 0 .9rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .06em; color: var(--c-gold); }
.event p:last-child { margin: 0; font-size: .9375rem; color: rgba(246, 241, 232, .75); }
.events__cta { margin-top: var(--space-5); }

/* --------------------------------------------------------------------------
   15. Contatti: telefono ed email
   -------------------------------------------------------------------------- */
.contact-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 60rem; margin: 0 auto; padding: 0; list-style: none; }
.contact-tile {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background: var(--c-paper); border: 1px solid var(--c-line);
  color: var(--c-ink);
  transition: background-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.contact-tile:hover { background: var(--c-white); color: var(--c-ink); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.contact-tile__icon {
  width: 2.5rem; height: 2.5rem; margin-bottom: 1.75rem;
  fill: none; stroke: var(--c-terracotta); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-tile__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.contact-tile__value {
  margin-top: .5rem;
  font-family: var(--f-serif); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 500; line-height: 1.1;
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}
.contact-tile__value--sm { font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem); }
.contact-tile__action {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: auto; padding-top: 1.75rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-terracotta);
}
.contact-tile__action .icon { transition: transform .35s var(--ease); }
.contact-tile:hover .contact-tile__action .icon { transform: translateX(4px); }
.contact-note { margin: 2rem 0 0; font-size: var(--fs-sm); color: var(--c-muted); }
.text-center .contact-note { margin-inline: auto; max-width: 36rem; }

/* Mappa e distanze (pagina La villa) */
.map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-sand-deep); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.55) sepia(.2) contrast(.95); }
.address { margin: 0 0 2rem; font-style: normal; font-size: var(--fs-lg); line-height: 1.6; }
.distance-list { margin: 0 0 2rem; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.distance-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--c-line); font-size: .9375rem; }
.distance-list span:last-child { font-weight: 600; color: var(--c-olive); white-space: nowrap; }

/* --------------------------------------------------------------------------
   16. Pagine interne
   -------------------------------------------------------------------------- */
/* Testata con foto */
.page-hero {
  position: relative;
  min-height: clamp(26rem, 68vh, 42rem);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--c-olive-dark); color: var(--c-white);
}
.page-hero__media { position: absolute; inset: 0; overflow: hidden; animation: hero-zoom 2.8s var(--ease) both; }
.page-hero__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.page-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 10, .45) 0%, rgba(18, 14, 10, .05) 35%, rgba(18, 14, 10, .2) 60%, rgba(18, 14, 10, .78) 100%),
    linear-gradient(90deg, rgba(18, 14, 10, .4) 0%, rgba(18, 14, 10, 0) 70%);
}
.page-hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.page-hero__title { margin: 0; max-width: 16ch; font-size: clamp(3rem, 2rem + 4.5vw, 6rem); line-height: .98; text-shadow: 0 2px 30px rgba(0, 0, 0, .2); text-wrap: balance; }
.page-hero__title em { color: var(--c-gold-soft); }
.page-hero__lead { margin: 1.25rem 0 0; max-width: 36rem; font-size: clamp(1rem, .92rem + .35vw, 1.15rem); line-height: 1.7; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.page-hero__content > [data-hero]:nth-child(1) { animation-delay: .2s; }
.page-hero__content > [data-hero]:nth-child(2) { animation-delay: .35s; }
.page-hero__content > [data-hero]:nth-child(3) { animation-delay: .5s; }

/* Testata senza foto (privacy) */
.page-head { padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid var(--c-line); }
.page-head .page-hero__title { color: var(--c-ink); text-shadow: none; }
.page-head .page-hero__title em { color: var(--c-terracotta); }

/* Briciole di pane */
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 1.25rem; padding: 0; list-style: none;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--c-gold-soft); }
.page-head .crumbs ol { color: var(--c-muted); }
.page-head .crumbs a:hover { color: var(--c-terracotta); }

/* Frase d'apertura */
.lead-statement {
  margin: 0;
  font-family: var(--f-serif); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.3;
  text-wrap: balance;
}
.lead-statement em { color: var(--c-terracotta); }

/* Righe foto + testo */
.feature { display: grid; gap: 2rem; align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 2.5rem + 5vw, 7.5rem); }
.feature__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-sand-deep); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature__media:hover img { transform: scale(1.04); }
.feature__title { margin: 0 0 1.25rem; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1.05; text-wrap: balance; }
.feature__title em { color: var(--c-terracotta); }
.feature__body p { margin: 0 0 1rem; max-width: 32rem; font-size: var(--fs-md); line-height: 1.8; color: var(--c-ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.tags li {
  padding: .35rem .75rem; border: 1px solid var(--c-line); border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-olive);
}
.checklist { display: grid; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: .75rem; font-size: .9375rem; line-height: 1.5; }
.checklist li::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2482a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Informazioni utili */
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3rem; margin: 0; }
.info-grid div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--c-line); }
.info-grid dt { font-weight: 600; }
.info-grid dd { margin: 0; text-align: right; color: var(--c-ink-soft); }

/* Galleria completa */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 2rem; }
.filters__status { margin-left: auto; font-size: var(--fs-sm); color: var(--c-muted); }
/* 2 colonne, poi 4: 16 foto (8 esterni, 8 interni) riempiono sempre righe intere */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; margin: 0; padding: 0; list-style: none; }
.photo-grid li[hidden] { display: none; }
.photo-grid .gallery-item { height: auto; aspect-ratio: 4 / 3; }

/* Testi legali */
.legal { max-width: 46rem; }
.legal h2 { margin: 2.75rem 0 .75rem; font-size: clamp(1.6rem, 1.4rem + .8vw, 2.1rem); line-height: 1.15; }
.legal p, .legal li { font-size: var(--fs-md); line-height: 1.75; color: var(--c-ink-soft); }
.legal ul { padding-left: 1.25rem; }
.legal-note { margin: 0 0 2rem; padding: 1rem 1.25rem; background: var(--c-sand); border-left: 3px solid var(--c-terracotta); font-size: var(--fs-sm); color: var(--c-ink-soft); }

.section-cta { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0 2rem; background: var(--c-night); color: rgba(246, 241, 232, .85); }
.site-footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid rgba(246, 241, 232, .12);
}
.site-footer__claim { margin: 0; font-family: var(--f-serif); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1.05; color: var(--c-ivory); }
.site-footer__claim em { color: var(--c-gold-soft); }
.site-footer__text { margin: 1rem 0 0; max-width: 20rem; font-size: var(--fs-sm); color: rgba(246, 241, 232, .65); }
.site-footer__heading { margin: 0 0 1rem; font-family: var(--f-sans); font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 241, 232, .55); }
.site-footer__links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.site-footer a { color: rgba(246, 241, 232, .85); }
.site-footer a:hover { color: var(--c-gold-soft); }
.site-footer a[aria-current="page"] { color: var(--c-gold-soft); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 232, .12);
  font-size: var(--fs-xs); color: rgba(246, 241, 232, .55);
}
.site-footer__bottom a { color: inherit; }

/* --------------------------------------------------------------------------
   18. Barra contatti fissa (mobile e tablet)
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(246, 241, 232, .96);
  border-top: 1px solid var(--c-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform .45s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.1rem; border-radius: var(--radius-sm);
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-white);
}
.mobile-cta__call { background: var(--c-olive); }
.mobile-cta__mail { background: var(--c-terracotta); }
.mobile-cta .icon { width: 1.2rem; height: 1.2rem; }

/* --------------------------------------------------------------------------
   19. Animazioni allo scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. Responsive (mobile-first)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
  .gallery-grid { grid-auto-rows: 12rem; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* con un numero dispari di luoghi l'ultimo occupa tutta la riga */
  .place:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .amenity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 16vw, 15rem); }
  .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .contact-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collage__caption { font-size: 1.3rem; }
  /* la carta camera a tutta larghezza su tablet: immagine a sinistra */
  .rooms .col-md-12 .room-card { flex-direction: row; }
  .rooms .col-md-12 .room-card__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 18rem; }
  .rooms .col-md-12 .room-card__body { align-self: center; }
}

@media (min-width: 992px) {
  :root { --header-h: 84px; }
  .section-head--split { grid-template-columns: 1.15fr 1fr; }
  .rooms .col-md-12 .room-card { flex-direction: column; }
  .rooms .col-md-12 .room-card__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .rooms .col-md-12 .room-card__body { align-self: auto; }
  .pricing { grid-template-columns: 1fr 1.2fr; column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .pricing__cta { margin-top: auto; }
  .pricing__intro p { margin-bottom: 2.5rem; }
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .event-list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; border-top: 0; }
  .event { padding: 0 2rem 0 0; border-bottom: 0; }
  .event + .event { padding-left: 2rem; border-left: 1px solid rgba(246, 241, 232, .18); }
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 5vw, 5.5rem); }
  .feature--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature--reverse .feature__media { order: 2; }
  .category__head { position: sticky; top: 9.5rem; margin-bottom: 0; }
  .mobile-cta { display: none; }
}

@media (max-width: 991.98px) {
  /* spazio per la barra contatti fissa */
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 575.98px) {
  .btn-vds { padding-inline: 1.35rem; }
  .hero__ctas .btn-vds { flex: 1 1 100%; }
  .hero__content { padding-top: 7.5rem; }
  .hero__img { object-position: 42% 60%; }
  .hero__shade,
  .page-hero__shade { background: linear-gradient(180deg, rgba(18, 14, 10, .35) 0%, rgba(18, 14, 10, .5) 30%, rgba(18, 14, 10, .45) 60%, rgba(18, 14, 10, .8) 100%); }
  .collage { aspect-ratio: 1 / 1.05; }
  .collage__main { width: 78%; height: 66%; }
  .collage__side { width: 30%; height: 34%; top: 8%; }
  .collage__accent { width: 62%; height: 40%; box-shadow: 0 0 0 6px var(--c-ivory); }
  .collage__caption { width: 34%; font-size: 1rem; }
  .brand__name { font-size: 1.5rem; }
  .space figcaption { left: .75rem; right: .75rem; bottom: .7rem; }
  .amenity h3 { font-size: 1.25rem; }
  .interlude { min-height: 26rem; }
  .filters__status { flex-basis: 100%; margin: .25rem 0 0; }
  .info-grid div { flex-direction: column; gap: .15rem; }
  .info-grid dd { text-align: left; }
}

/* --------------------------------------------------------------------------
   21. Riduzione del movimento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  [data-hero], .js [data-reveal] { opacity: 1; transform: none; }
}
