/* ─── THE QUIET MILL — shared.css ────────────────────────────
   Componenti e impaginazione clonati dal sito Lilium (liliumhotel.it), come gli altri siti del gruppo: intestazione con Civis a sinistra e marchio al centro, menu a tutta
   pagina, hero, barra di prenotazione, sezioni editoriali, FAQ, piede di gruppo.
   Nessuno stile inline nelle pagine (CSP style-src 'self'): tutto è qui.
   I token di colore e tipografia sono in civis-theme.css.
──────────────────────────────────────────────────────────────── */

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 80px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.menu-open { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 400; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.arrow { display: inline-block; transition: transform .2s var(--ease); }
a:hover .arrow { transform: translateX(3px); }

/* ─── SEZIONI ────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--page-content-max); margin: 0 auto; padding-inline: var(--page-gutter); }
.container--narrow { max-width: calc(960px + 2 * var(--page-gutter)); }
.section { padding-block: clamp(4rem, 6vw, 7rem); }
.section--bg-mid { background: var(--bg-mid); }

/* ─── INTESTAZIONE: Civis a sinistra, marchio al centro, azioni a destra ── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  padding-inline: max(var(--page-gutter), calc((100% - var(--page-content-max)) / 2 + var(--page-gutter)));
  color: oklch(97% 0 0);
  transition: background .4s var(--ease), color .3s;
}
.nav--scrolled, html.menu-open .nav {
  background: var(--bg);
  color: var(--ivory);
  border-bottom: 1px solid var(--border);
}
.nav__group {
  display: inline-flex; align-items: center; justify-self: start;
  min-width: 60px; min-height: 44px; color: inherit; transition: opacity .2s;
}
.nav__group:hover { opacity: .75; }
.nav__group-logo {
  display: block; height: 32px; aspect-ratio: 65.5 / 35.77; background: currentColor;
  -webkit-mask: url('/img/civis-logo.svg') no-repeat center / contain;
          mask: url('/img/civis-logo.svg') no-repeat center / contain;
}
.nav__logo {
  justify-self: center;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__right { justify-self: end; display: flex; align-items: center; gap: 1.5rem; }
.nav__lang, .nav__theme, .nav__menu {
  font-size: var(--text-sm);
  letter-spacing: var(--track-label);
  color: inherit;
  opacity: .82;
  transition: opacity .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__lang:hover, .nav__theme:hover, .nav__menu:hover { opacity: 1; }
.nav__theme { justify-content: center; min-width: 44px; }
.theme-icon { display: block; }
.theme-icon--moon { display: none; }
html[data-theme="dark"] .theme-icon--sun { display: none; }
html[data-theme="dark"] .theme-icon--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--sun { display: none; }
  :root:not([data-theme="light"]) .theme-icon--moon { display: block; }
}

/* Selettore di lingua: <details> nativo, funziona anche senza JavaScript */
.nav__lang-switch { position: relative; }
.nav__lang { gap: .35em; cursor: pointer; list-style: none; padding-inline: 4px; }
.nav__lang::-webkit-details-marker { display: none; }
.lang-chevron { opacity: .6; transition: transform .2s; }
.nav__lang-switch[open] .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: -8px; z-index: 300;
  display: flex; flex-direction: column; min-width: 4.5rem; padding: .35rem 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.18);
}
.nav:not(.nav--scrolled) .lang-dropdown { background: oklch(11% 0 0); border-color: oklch(28% 0 0); }
html.menu-open .nav .lang-dropdown { background: var(--bg); border-color: var(--border); }
.lang-dropdown__link {
  display: flex; align-items: center; min-height: 40px; padding: 0 1.1rem;
  font-size: var(--text-xs); letter-spacing: .12em; color: inherit; opacity: .75;
}
.lang-dropdown__link:hover, .lang-dropdown__link--active { opacity: 1; color: var(--accent-pale); }
.nav:not(.nav--scrolled) .lang-dropdown__link:hover, .nav:not(.nav--scrolled) .lang-dropdown__link--active { color: oklch(84% 0.08 160); }

/* Pulsante del menu: due tratti che diventano una X */
.nav__menu { gap: .55rem; }
.nav__menu-icon { display: flex; flex-direction: column; gap: 4px; }
.nav__menu-icon span { display: block; width: 18px; height: 1px; background: currentColor; transition: width .2s, transform .35s var(--ease); }
.nav__menu-icon span:last-child { width: 12px; }
.nav__menu:hover .nav__menu-icon span:last-child { width: 18px; }
html.menu-open .nav__menu-icon span:first-child { transform: translateY(2.5px) rotate(45deg); }
html.menu-open .nav__menu-icon span:last-child { width: 18px; transform: translateY(-2.5px) rotate(-45deg); }
.nav__menu-closelbl { display: none; }
html.menu-open .nav__menu-open { display: none; }
html.menu-open .nav__menu-closelbl { display: inline; }

/* ─── MENU A TUTTA PAGINA (come il menu Civis) ────────────── */
.nav-menu {
  position: fixed; inset: 0; z-index: 190;
  display: flex; flex-direction: column; gap: 2rem;
  background: var(--bg); color: var(--ink);
  padding: calc(var(--nav-h) + clamp(1.5rem, 4vh, 3rem)) max(var(--page-gutter), calc((100% - var(--page-content-max)) / 2 + var(--page-gutter))) clamp(2rem, 5vh, 3rem);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s .55s;
}
.nav-menu.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s 0s; }
@media (prefers-reduced-motion: reduce) { .nav-menu, .nav-menu.is-open { transition: none; } }
.nav-menu__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.nav-menu__nav { display: flex; flex-direction: column; }
.nav-menu__label {
  font: 500 var(--text-xs)/1.2 var(--sans); letter-spacing: var(--track-label); color: var(--ivory-faint);
  padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
}
.nav-menu__link {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2px;
  padding: 12px 0; min-height: 44px; border-bottom: 1px solid var(--border);
  color: var(--ink); transition: color .2s;
}
.nav-menu__link:hover, .nav-menu__link:focus-visible, .nav-menu__link[aria-current="page"] { color: var(--accent); }
.nav-menu__t { display: block; font: 400 var(--text-xl)/1.2 var(--sans); }
.nav-menu__s { display: block; font: 400 var(--text-xs)/1.4 var(--sans); color: var(--ivory-faint); }
.nav-menu__preview { display: none; }
.nav-menu__bottom { display: flex; flex-direction: column; gap: .5rem; }
.nav-menu__addr { color: var(--ivory-dim); font-size: var(--text-sm); }
.nav-menu__langs { display: flex; flex-wrap: wrap; gap: .25rem; }
.nav-menu__lang {
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ivory-dim); font-size: var(--text-sm); letter-spacing: .12em;
}
.nav-menu__langs .nav-menu__lang:first-child { justify-content: flex-start; }
.nav-menu__lang--active, .nav-menu__lang:hover { color: var(--accent); }
/* Telefono e tablet: miniatura a sinistra, scaricata solo a menu aperto */
@media (max-width: 1000px) {
  .nav-menu__link { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .nav-menu__link::before {
    content: ''; grid-row: 1 / span 2; width: 48px; height: 36px; border-radius: 6px;
    background: var(--bg-light) center / cover no-repeat;
  }
  .nav-menu__t, .nav-menu__s { grid-column: 2; }
  .nav-menu__t { font-size: var(--text-lg); }
  .nav-menu.is-open .nav-menu__link--rooms::before    { background-image: url('/img/menu-camere-480.webp'); }
  .nav-menu.is-open .nav-menu__link--services::before { background-image: url('/img/menu-servizi-480.webp'); }
  .nav-menu.is-open .nav-menu__link--contacts::before { background-image: url('/img/menu-contatti-800.webp'); }
  .nav-menu.is-open .nav-menu__link--book::before     { background-image: url('/img/menu-prenota-480.webp'); }
  /* strutture del gruppo: niente foto di altre strutture, solo il segno Civis */
  .nav-menu__link--group::before {
    background: var(--ivory-faint);
    -webkit-mask: url('/img/civis-logo.svg') no-repeat center / 60% auto;
            mask: url('/img/civis-logo.svg') no-repeat center / 60% auto;
  }
}
/* Desktop: due gruppi e la foto di anteprima che segue la voce */
@media (min-width: 1001px) {
  .nav-menu__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
    column-gap: clamp(2rem, 4vw, 4rem); align-items: start;
  }
  .nav-menu__preview {
    display: block; position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-light); height: min(calc(100vh - var(--nav-h) - 9rem), 640px); min-height: 320px;
  }
  .nav-menu__preview-img { width: 100%; height: 100%; object-fit: cover; }
  .nav-menu__preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0% 0 0 / .55), transparent 45%); }
  .nav-menu__preview-cap { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.25rem; z-index: 1; color: oklch(97% 0 0); }
  .nav-menu__preview-cap b { display: block; font-style: italic; font-size: var(--text-2xl); line-height: 1.15; }
  .nav-menu__preview-cap span { display: block; font: 400 var(--text-sm)/1.4 var(--sans); opacity: .85; }
  .nav-menu__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ─── HERO DELLA HOME (video) ────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: oklch(16% 0.01 160); color: var(--ivory);
}
.hero__bg { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 25%, oklch(5% 0 0 / 0.55) 100%),
    linear-gradient(to bottom, oklch(5% 0 0 / 0.5) 0%, transparent 25%, transparent 40%, oklch(5% 0 0 / 0.85) 100%);
}
.hero__content {
  position: relative; z-index: 1; width: 100%; max-width: var(--page-content-max); margin: 0 auto;
  padding: 0 var(--page-gutter) clamp(2.5rem, 6vh, 5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.hero__eyebrow { color: var(--accent-pale); margin-bottom: 1rem; text-shadow: 0 1px 10px oklch(5% 0 0 / .8); }
.hero__title { color: var(--ivory); text-shadow: 0 2px 24px oklch(5% 0 0 / .45); }
.hero__meta { text-align: right; flex-shrink: 0; }
.hero__address { font-size: var(--text-xs); color: var(--ivory-dim); line-height: 1.6; letter-spacing: var(--track-label); }
.hero__scroll { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; font-size: var(--text-2xs); color: var(--ivory-dim); }
.hero__scroll-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-pale); animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll-dot { animation: none; } }

/* ─── HERO DELLE PAGINE INTERNE (foto) ───────────────────── */
.page-hero {
  position: relative; min-height: clamp(380px, 62vh, 620px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: oklch(16% 0.01 160); color: var(--ivory);
}
.page-hero--short { min-height: clamp(300px, 42vh, 420px); }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, oklch(0% 0 0 / 0.62) 0%, oklch(0% 0 0 / 0.36) 35%, oklch(0% 0 0 / 0.34) 60%, oklch(0% 0 0 / 0.8) 100%);
}
.page-hero__content {
  position: relative; z-index: 1; width: 100%; max-width: var(--page-content-max); margin-inline: auto;
  padding: calc(var(--nav-h) + 2rem) var(--page-gutter) clamp(2rem, 5vh, 3.5rem);
}
.page-hero__eyebrow { color: var(--accent-pale); margin-bottom: .9rem; }
.page-hero__title { color: var(--ivory); }
.page-hero__sub { margin-top: 1rem; max-width: 52ch; font-size: var(--text-md); color: var(--ivory-dim); }

/* ─── BARRA DI PRENOTAZIONE ──────────────────────────────── */
/* Barra condivisa del gruppo (civis-bookbar.js/.css, identici su tutti i siti Civis). Lo spazio sotto
   l'hero è riservato prima che lo script la disegni, così la pagina non salta; poi lo slot diventa .cvi-slot. */
html.js .bookbar-slot { min-height: 62px; }
@media (max-width: 820px) { html.js .bookbar-slot { min-height: 125px; } }

/* ─── OCCHIELLO ──────────────────────────────────────────── */
.kicker { display: flex; align-items: center; gap: 1rem; color: var(--accent); margin-bottom: 1.25rem; }
.kicker__line { display: block; width: 36px; height: 1px; background: var(--accent); flex-shrink: 0; }
.kicker--center { justify-content: center; }

/* ─── EDITORIALE (testo + foto) ──────────────────────────── */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 6rem); align-items: center; }
.editorial--reverse .editorial__text { order: 2; }
.editorial__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.editorial__text > .kicker { margin-bottom: 0; }
.editorial__heading { color: var(--ivory); }
.section > .editorial__heading, .container > .editorial__heading { margin-bottom: 1.5rem; }
.editorial__lead { font-size: var(--text-md); line-height: 1.6; color: var(--ivory); max-width: 48ch; }
.editorial__body { font-size: var(--text-sm); line-height: 1.8; color: var(--ivory-dim); max-width: 52ch; }
.editorial__body--wide { max-width: 64ch; margin-bottom: 1.5rem; }
.editorial__link {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-size: var(--text-sm); font-weight: 500; color: var(--accent); letter-spacing: var(--track-label);
}
.editorial__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--accent);
  transform: scaleX(.4); transform-origin: left; transition: transform .3s var(--ease);
}
.editorial__link:hover::after { transform: scaleX(1); }

/* Foto con cornice Civis */
.ph { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-light); }
.ph--3-4 { aspect-ratio: 3 / 4; }
.ph--4-3 { aspect-ratio: 4 / 3; }
.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ph:hover .ph__img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .ph__img { transition: none; } .ph:hover .ph__img { transform: none; } }
.ph__caption {
  position: absolute; bottom: 1.25rem; left: 1.5rem; z-index: 1; max-width: calc(100% - 3rem);
  color: oklch(97% 0 0); background: oklch(0% 0 0 / 0.5); padding: 4px 10px; border-radius: 6px;
}

/* ─── STRISCIA DELLE SEZIONI ─────────────────────────────── */
.cat-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cat-strip__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 0; }
.cat-item {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  padding: 3rem clamp(1.5rem, 3vw, 3rem) 3.5rem; border-right: 1px solid var(--border); transition: background .3s var(--ease);
}
.cat-item:last-child { border-right: 0; }
.cat-item:hover { background: var(--bg-mid); box-shadow: inset 0 2px 0 var(--accent); }
.cat-item__label { color: var(--accent); }
.cat-item__title { color: var(--ivory); }
.cat-item__desc { font-size: var(--text-xs); color: var(--ivory-dim); line-height: 1.65; max-width: 34ch; }
.cat-item__arrow { position: absolute; right: 2rem; bottom: 1.5rem; color: var(--ivory-dim); transition: color .2s, transform .2s var(--ease); }
.cat-item:hover .cat-item__arrow { color: var(--accent); transform: translateX(4px); }

/* ─── GLI SPAZI ──────────────────────────────────────────── */
.gallery__title { margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.gallery__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.gallery__fig { margin: 0; min-width: 0; }
.gallery__fig--wide { grid-column: span 6; }
.gallery__fig--half { grid-column: span 3; }
.gallery__fig--third { grid-column: span 2; }
.gallery__frame { overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-light); }
.gallery__fig--wide .gallery__frame { aspect-ratio: 16 / 9; }
.gallery__fig--half .gallery__frame { aspect-ratio: 4 / 3; }
.gallery__fig--third .gallery__frame { aspect-ratio: 3 / 4; }
.gallery__media { width: 100%; height: 100%; object-fit: cover; }
.gallery__cap { padding-top: 8px; font-size: var(--text-xs); line-height: 1.45; color: var(--ivory-dim); }

/* ─── SERVIZI INCLUSI ────────────────────────────────────── */
.services-grid {
  margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.svc { display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.75rem; background: var(--bg-mid); }
.svc__ico { color: var(--accent); flex-shrink: 0; }
.svc__name { font-weight: 600; font-size: var(--text-sm); line-height: 1.4; color: var(--ivory); }
.services-note { margin: 1.75rem 0 .5rem; max-width: 72ch; font-size: var(--text-sm); color: var(--ivory-dim); }
.services-note strong { color: var(--ivory); font-weight: 600; }

/* ─── DOVE SIAMO ─────────────────────────────────────────── */
.location__header { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.location__heading { margin-bottom: 1rem; }
.location__text { max-width: 62ch; font-size: var(--text-sm); line-height: 1.8; color: var(--ivory-dim); }
.location__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 6rem); align-items: start; }
.loc-item { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.loc-item:first-child { border-top: 1px solid var(--border); }
.loc-item__dist { font-family: var(--serif); font-style: italic; font-size: var(--text-lg); color: var(--accent); text-align: right; white-space: nowrap; }
.loc-item__unit { font-size: .6em; font-style: normal; margin-left: .2em; }
.loc-item__name { font-size: var(--text-sm); color: var(--ivory); }
.location__side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.location__side .ph { width: 100%; }
.location__address { display: flex; flex-direction: column; font-size: var(--text-xs); line-height: 1.8; color: var(--ivory-dim); letter-spacing: var(--track-label); }
.location__address a { min-height: 32px; display: inline-flex; align-items: center; }

/* ─── GRUPPO CIVIS ───────────────────────────────────────── */
.sister__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sister__title { margin-bottom: 1rem; }
.sister__body { max-width: 60ch; font-size: var(--text-sm); line-height: 1.8; color: var(--ivory-dim); margin-bottom: 2rem; }
.sister__list { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sister__link {
  display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 44px; padding: 1rem 1.25rem; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .2s;
}
.sister__link:hover { border-color: var(--ink); }
.sister__name { font-weight: 500; font-size: var(--text-sm); color: var(--ivory); }
.sister__sub { font-size: var(--text-xs); color: var(--ivory-dim); }

/* ─── PRENOTAZIONE (sezione di richiamo) ─────────────────── */
.cta-section {
  position: relative; padding-block: clamp(4rem, 7vw, 6.5rem);
  background:
    linear-gradient(color-mix(in oklch, var(--bg) 86%, transparent), color-mix(in oklch, var(--bg) 86%, transparent)),
    url('/img/hero-prenota-960.webp') center / cover no-repeat;
}
.cta-section--plain { background: var(--bg-mid); }
.cta-section__inner { max-width: 680px; margin: 0 auto; padding-inline: var(--page-gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-section__title { max-width: 24ch; margin-bottom: 1rem; }
.cta-section__text { max-width: 52ch; font-size: var(--text-sm); line-height: 1.8; color: var(--ivory-dim); margin-bottom: 1.75rem; }
.cta-section__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ─── FAQ (details nativo, contenuto sempre nel DOM) ─────── */
.faq__heading { max-width: 760px; margin: 0 auto 1.5rem; }
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-of-type { border-top: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; list-style: none; cursor: pointer;
  padding: 1.4rem 0; min-height: 44px; font-weight: 500; font-size: var(--text-lg); line-height: 1.35; color: var(--ivory);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ''; flex-shrink: 0; width: 11px; height: 11px; margin-top: -4px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); margin-top: 4px; }
.faq__item[open] .faq__q { color: var(--accent); }
.faq__a { padding: 0 0 1.5rem; max-width: 62ch; color: var(--ivory-dim); }

/* ─── CAMERE ─────────────────────────────────────────────── */
.room-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.room-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.room-card .ph { border-radius: 0; }
.room-card__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.room-card__text { font-size: var(--text-sm); color: var(--ivory-dim); line-height: 1.7; }

/* Elenco di fatti (dt | dd) */
.facts { border-top: 1px solid var(--border); }
.facts__row { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.facts dt { font-weight: 600; font-size: var(--text-sm); color: var(--ivory); }
.facts dd { font-size: var(--text-sm); color: var(--ivory-dim); line-height: 1.7; }

/* ─── SERVIZI ────────────────────────────────────────────── */
.svc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.svc-split__text { margin-top: 1.25rem; font-size: var(--text-md); line-height: 1.7; color: var(--ivory-dim); max-width: 40ch; }
.svc-list { border-top: 1px solid var(--border); }
.svc-list__item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.svc-list__name { font-weight: 500; font-size: var(--text-md); line-height: 1.45; color: var(--ivory); }
.svc-list .svc__ico { margin-top: 1px; }

/* ─── CONTATTI ───────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__list { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-label { color: var(--ivory-dim); margin-bottom: .35rem; }
.contact-value { font-size: var(--text-md); color: var(--ivory); line-height: 1.6; }
.contact-value a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact__side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.contact__side .ph { width: 100%; }

/* ─── PRENOTA ────────────────────────────────────────────── */
.book__card { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.book__note { margin: .75rem 0 1.75rem; color: var(--ivory-dim); font-size: var(--text-sm); max-width: 62ch; }
.book-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 1rem; align-items: end; }
.book-form__field { display: flex; flex-direction: column; gap: .4rem; font-size: var(--text-sm); font-weight: 500; color: var(--ivory); min-width: 0; }
.book-form input, .book-form select {
  width: 100%; min-height: 48px; padding: 0 .9rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: 400 16px/1.2 var(--sans);
}
.book-form input:focus-visible, .book-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.book-form__submit { min-height: 48px; }
.book__error { grid-column: 1 / -1; color: var(--error); font-size: var(--text-sm); font-weight: 500; }
.book__error:empty { display: none; }
.book__privacy { margin-top: 1.5rem; }

/* ─── PRIVACY ────────────────────────────────────────────── */
.privacy-body h2 { margin: 2.25rem 0 .75rem; color: var(--ivory); }
.privacy-body p { max-width: 70ch; color: var(--ivory-dim); line-height: 1.8; }
.privacy-body__updated { font-size: var(--text-xs); color: var(--ivory-faint); }

/* ─── 404 (sempre scura) ─────────────────────────────────── */
.error-page { min-height: 100svh; display: flex; align-items: center; background: oklch(11% 0 0); color: var(--ivory); padding: calc(var(--nav-h) + 3rem) 0 4rem; }
.error-page__inner { width: 100%; max-width: var(--page-content-max); margin: 0 auto; padding-inline: var(--page-gutter); }
.error-page__eyebrow { color: var(--accent-pale); margin-bottom: 1rem; }
.error-page__title { max-width: 18ch; margin-bottom: 1.25rem; }
.error-page__text { max-width: 52ch; color: var(--ivory-dim); margin-bottom: 2rem; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ─── PIEDE DI GRUPPO ────────────────────────────────────── */
.footer { background: var(--bg-mid); padding-block: clamp(4rem, 6vw, 6rem) 2rem; color: var(--ivory); }
.footer__main {
  max-width: var(--page-content-max); margin: 0 auto 2rem; padding-inline: var(--page-gutter);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem); border-bottom: 1px solid var(--border);
}
.footer__brand-name { margin-bottom: 4px; }
.footer__brand-sub { color: var(--accent); margin-bottom: 1.25rem; }
.footer__tagline { font-size: var(--text-sm); color: var(--ivory-dim); line-height: 1.7; max-width: 36ch; }
.footer__col-title { color: var(--accent); margin-bottom: 1.1rem; }
.footer__links { display: flex; flex-direction: column; gap: .2rem; }
.footer__links li { font-size: var(--text-sm); color: var(--ivory-dim); }
.footer__links--plain li { min-height: 32px; display: flex; align-items: center; }
.footer__link { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--text-sm); color: var(--ivory-dim); transition: color .2s; overflow-wrap: anywhere; }
.footer__link:hover { color: var(--ivory); }
.footer__assoc { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 2rem; }
.footer__assoc-l { color: var(--ivory); }
.footer__assoc-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory-dim); transition: color .2s; }
.footer__assoc-link:hover { color: var(--ivory); }
.footer__assoc-logo {
  display: block; height: 28px; aspect-ratio: 65.5 / 35.77; background: currentColor;
  -webkit-mask: url('/img/civis-logo.svg') no-repeat left center / contain;
          mask: url('/img/civis-logo.svg') no-repeat left center / contain;
}
.footer__bottom {
  max-width: var(--page-content-max); margin: 0 auto; padding-inline: var(--page-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
}
.footer__copy { font-size: var(--text-2xs); color: var(--ivory-dim); letter-spacing: var(--track-label); }
.footer__langs { display: flex; gap: .25rem; }
.footer__lang {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-2xs); letter-spacing: .14em; color: var(--ivory-dim);
}
.footer__lang:hover, .footer__lang--active { color: var(--accent); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sister__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-form__submit { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 1024px) {
  .footer__main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 820px) {
  .nav__lang-switch { display: none; }
  .nav__right { gap: 0; }
  .nav__menu { font-size: 0; gap: 0; min-width: 44px; justify-content: center; }
  .nav__group { min-width: 44px; width: 44px; }
  .nav__group-logo { width: 44px; height: auto; }
  .editorial, .location__cols, .svc-split, .contact { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__text { order: 0; }
  .cat-strip__inner { grid-template-columns: 1fr; }
  .cat-item { border-right: 0; border-bottom: 1px solid var(--border); padding: 2rem var(--page-gutter) 2.25rem; }
  .cat-item:last-child { border-bottom: 0; }
  .room-cards { grid-template-columns: 1fr; }
  .gallery__fig--half, .gallery__fig--third { grid-column: span 3; }
  .gallery__fig--third:last-of-type { grid-column: span 6; }
  .hero__content { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero__meta { text-align: left; }
  .hero__scroll { justify-content: flex-start; margin-top: .75rem; }
}
@media (max-width: 640px) {
  :root { --page-gutter: 1.5rem; }
  .section { padding-block: clamp(2.75rem, 8vw, 4rem); }
  .services-grid { grid-template-columns: 1fr; }
  .sister__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__fig--wide, .gallery__fig--half, .gallery__fig--third, .gallery__fig--third:last-of-type { grid-column: auto; }
  .gallery__fig--third .gallery__frame { aspect-ratio: 4 / 3; }
  .facts__row { grid-template-columns: 1fr; gap: .25rem; }
  .book-form { grid-template-columns: 1fr; }
  .cta-section__actions { flex-direction: column; width: 100%; }
  .cta-section__actions .btn-cta, .cta-section__actions .btn-cta-ghost { width: 100%; }
  .footer { padding-block: 2.75rem 1.5rem; }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 1.75rem; padding-bottom: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__main > div:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__langs { margin-left: -12px; }
}
@media (max-width: 400px) {
  :root { --page-gutter: 1rem; }
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav__logo { font-size: 1.0625rem; }
  .loc-item { grid-template-columns: 4.5rem 1fr; gap: 1rem; }
}
