/* =========================================================
   DIMORA DEI COLLI — Boutique B&B nei Colli Berici
   Demo commerciale Studio Digital Italia
   Foglio di stile unico. Nessun build, nessuna dipendenza.
   ---------------------------------------------------------
   Indice
   01. Variabili e reset
   02. Tipografia
   03. Layout e utility
   04. Header e navigazione
   05. Booking bar
   06. Hero
   07. Sezioni e componenti
   08. Card camere / esperienze / offerte
   09. Recensioni, FAQ, accordion
   10. Form
   11. Booking engine (prenota.html)
   12. Footer
   13. Microinterazioni e reveal
   14. Responsive
   ========================================================= */

/* ---------- 01. Variabili e reset ---------- */
:root {
  --olive-dark: #26382d;
  --olive: #536b56;
  --sage: #9aa88f;
  --cream: #f6f1e8;
  --stone: #d8cdbd;
  --terracotta: #a8684b;
  --charcoal: #242421;
  --white: #ffffff;

  --bg: var(--cream);
  --text: var(--charcoal);
  --muted: #5d5b53;
  --line: rgba(36, 36, 33, 0.14);
  --line-soft: rgba(36, 36, 33, 0.08);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;

  --shadow-s: 0 1px 2px rgba(36, 36, 33, 0.06), 0 4px 14px rgba(36, 36, 33, 0.05);
  --shadow-m: 0 2px 6px rgba(36, 36, 33, 0.07), 0 18px 40px rgba(36, 36, 33, 0.09);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--sage); color: var(--olive-dark); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--olive-dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 02. Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--olive-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1.1rem;
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 62ch;
}

.section-intro { max-width: 66ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }

.note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.demo-note {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(154, 168, 143, 0.18);
  border-left: 3px solid var(--sage);
  padding: 0.7rem 0.95rem;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin-top: 1.4rem;
}

/* ---------- 03. Layout e utility ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--stone { background: var(--stone); }
.section--olive {
  background: var(--olive-dark);
  color: rgba(246, 241, 232, 0.86);
}
.section--olive h2, .section--olive h3, .section--olive .eyebrow { color: var(--cream); }
.section--olive .lead { color: rgba(246, 241, 232, 0.78); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.stack > * + * { margin-top: 1rem; }

.divider { height: 1px; background: var(--line-soft); border: 0; margin-block: clamp(2rem, 5vw, 3.5rem); }

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--olive-dark); color: var(--cream); }
.btn--primary:hover { background: var(--olive); }

.btn--terracotta { background: var(--terracotta); color: var(--white); }
.btn--terracotta:hover { background: #925739; }

.btn--outline { background: transparent; color: var(--olive-dark); border-color: var(--olive-dark); }
.btn--outline:hover { background: var(--olive-dark); color: var(--cream); }

.btn--light { background: var(--cream); color: var(--olive-dark); }
.btn--light:hover { background: var(--white); }

.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(246, 241, 232, 0.5); }
.btn--ghost-light:hover { background: rgba(246, 241, 232, 0.12); }

.btn--sm { min-height: 42px; padding: 0.6rem 1.1rem; font-size: 0.78rem; }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--olive-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.85rem; color: var(--terracotta); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  padding-block: 1.25rem 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 0.4rem; color: var(--sage); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--olive); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Media / figure */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, var(--stone), var(--sage));
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

figure { margin: 0; }
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- 04. Header e navigazione ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 16px rgba(36, 36, 33, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 62px; }

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--olive-dark);
}
.brand__tag {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; align-items: center; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
  padding-block: 0.4rem;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--olive-dark); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--olive-dark); font-weight: 600; }

.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 40px; padding: 2px; }
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem; border-radius: 40px; color: var(--muted);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  min-height: 30px;
}
.lang-switch button[aria-pressed="true"] { background: var(--olive-dark); color: var(--cream); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius-s); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 2px; background: var(--olive-dark); display: block; transition: background-color 0.2s var(--ease); }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--olive-dark);
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* CTA mobile sticky */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(38, 56, 45, 0.97);
  backdrop-filter: blur(8px);
}

/* ---------- 05. Booking bar ---------- */
.booking-bar {
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 1.1rem;
}
.booking-bar__form {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr 0.8fr auto;
  gap: 0.8rem;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.7rem 0.8rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover { border-color: var(--sage); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(83, 107, 86, 0.16);
  outline: none;
}
.field--error input, .field--error select, .field--error textarea { border-color: #9c3a2a; }
.field__error { font-size: 0.78rem; color: #9c3a2a; min-height: 1.1em; }
.field__hint { font-size: 0.78rem; color: var(--muted); }

.form-status {
  font-size: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-s);
  margin-top: 1rem;
}
.form-status:empty { display: none; }
.form-status--ok { background: rgba(83, 107, 86, 0.14); border-left: 3px solid var(--olive); color: var(--olive-dark); }
.form-status--err { background: rgba(156, 58, 42, 0.1); border-left: 3px solid #9c3a2a; color: #7d2e21; }

/* ---------- 06. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--olive-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36, 56, 45, 0.5) 0%, rgba(36, 56, 45, 0.25) 40%, rgba(24, 34, 28, 0.82) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.hero__place {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(246, 241, 232, 0.85);
  margin-bottom: 1.2rem;
}
.hero__place::before { content: ""; width: 26px; height: 1px; background: var(--sage); }
.hero h1 { color: var(--cream); max-width: 16ch; margin-bottom: 0.4em; }
.hero__sub { font-size: clamp(1.02rem, 1.8vw, 1.24rem); color: rgba(246, 241, 232, 0.9); max-width: 52ch; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__direct {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  color: rgba(246, 241, 232, 0.82);
  border-left: 2px solid var(--terracotta);
  padding-left: 0.9rem;
  max-width: 46ch;
}
.hero__booking { position: relative; z-index: 3; margin-top: clamp(2rem, 5vw, 3.2rem); }

/* ---------- 07. Sezioni e componenti ---------- */
.trust-bar { background: var(--white); border-block: 1px solid var(--line-soft); }
.trust-bar__list {
  list-style: none; margin: 0; padding: 1.4rem 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
  text-align: center;
}
.trust-bar__item { display: flex; flex-direction: column; gap: 0.2rem; }
.trust-bar__value { font-family: var(--font-display); font-size: 1.5rem; color: var(--olive-dark); line-height: 1; }
.trust-bar__label { font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); }

.stat-strip { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
.stat { min-width: 120px; }
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--olive-dark); line-height: 1; }
.stat__label { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.96rem;
}
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border: 1px solid var(--terracotta);
  transform: rotate(45deg);
}
.section--olive .feature-list li::before { border-color: var(--sage); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 600; color: var(--olive-dark); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 08. Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--stone), var(--sage)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; gap: 0.7rem; }
.card__title { margin: 0; font-size: 1.5rem; }
.card__text { font-size: 0.92rem; color: var(--muted); margin: 0; }
.card__meta {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem;
  font-size: 0.79rem; color: var(--olive);
  letter-spacing: 0.03em;
}
.card__meta li { position: relative; padding-left: 0.85rem; }
.card__meta li::before { content: "·"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.card__price {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--muted);
}
.card__price strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--olive-dark); font-weight: 600; }
.card__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }

.card--flat { background: transparent; border: 0; }
.card--outline { background: var(--white); border: 1px solid var(--line); }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid currentColor;
  border-radius: 40px;
  padding: 0.25rem 0.7rem;
}
.badge--olive { color: var(--olive); }
.badge--demo { color: var(--muted); border-style: dashed; }

/* Pacchetti */
.package {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 1.8rem;
  gap: 1rem;
}
.package--featured { border-color: var(--terracotta); box-shadow: var(--shadow-s); }
.package__price { font-family: var(--font-display); font-size: 2rem; color: var(--olive-dark); line-height: 1; }
.package__price span { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); display: block; margin-top: 0.35rem; letter-spacing: 0.04em; }

/* Territorio */
.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.place-list li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.place-list li span:last-child { color: var(--olive); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 09. Recensioni, FAQ ---------- */
.review {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.review__stars { color: var(--terracotta); letter-spacing: 0.18em; font-size: 0.9rem; }
.review__text { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.5; color: var(--olive-dark); margin: 0; }
.review__meta { font-size: 0.8rem; color: var(--muted); margin-top: auto; }
.review__source { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }

.accordion { border-top: 1px solid var(--line-soft); }
.accordion__item { border-bottom: 1px solid var(--line-soft); }
.accordion__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: none; border: 0; cursor: pointer;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--olive-dark);
  min-height: 56px;
}
.accordion__icon { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; background: var(--terracotta);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.accordion__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.accordion__icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.accordion__btn[aria-expanded="true"] .accordion__icon::after { transform: rotate(90deg); opacity: 0; }
.accordion__panel { display: none; padding: 0 0 1.4rem; max-width: 72ch; color: var(--muted); }
.accordion__panel.is-open { display: block; }

/* Gallery camera */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 0.8rem; }
.gallery__main { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; gap: 0.8rem; grid-template-rows: repeat(3, 1fr); }
.gallery__thumb {
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius-m); background: var(--stone);
  aspect-ratio: 4 / 3;
  outline-offset: 2px;
  transition: opacity 0.25s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--terracotta); }
.gallery__thumb:hover { opacity: 0.85; }

/* Hosts */
.host {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.6rem; align-items: center;
}
.host__photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--stone); }
.host__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 11. Booking engine ---------- */
.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.steps { list-style: none; margin: 0 0 2.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.steps li {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-soft); border-radius: 40px;
}
.steps li[aria-current="step"] { color: var(--cream); background: var(--olive-dark); border-color: var(--olive-dark); }
.steps li.is-done { color: var(--olive); border-color: var(--sage); }
.steps__num { font-weight: 700; }

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fadeUp 0.4s var(--ease); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.room-option {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.3rem;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius-m); overflow: hidden; margin-bottom: 1.1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.room-option.is-selected { border-color: var(--terracotta); box-shadow: 0 0 0 1px var(--terracotta); }
.room-option.is-unavailable { opacity: 0.55; }
.room-option__media { background: var(--stone); }
.room-option__media img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.room-option__body { padding: 1.2rem 1.4rem 1.4rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.room-option__price { font-family: var(--font-display); font-size: 1.6rem; color: var(--olive-dark); }
.room-option__price small { font-family: var(--font-body); font-size: 0.78rem; color: var(--muted); }

.extras { display: grid; gap: 0.8rem; }
.extra {
  display: flex; align-items: flex-start; gap: 0.9rem;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius-m); padding: 1rem 1.15rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.extra:hover { border-color: var(--sage); }
.extra input { margin-top: 0.35rem; width: 20px; height: 20px; accent-color: var(--olive); flex-shrink: 0; }
.extra__name { font-weight: 600; color: var(--olive-dark); }
.extra__desc { font-size: 0.85rem; color: var(--muted); }
.extra__price { margin-left: auto; font-family: var(--font-display); font-size: 1.15rem; color: var(--olive-dark); white-space: nowrap; }

.summary {
  position: sticky; top: calc(var(--header-h) + 1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem;
}
.summary h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.summary__list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.summary__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); }
.summary__list li span:first-child { color: var(--muted); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 2px solid var(--olive-dark); }
.summary__total strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--olive-dark); font-weight: 600; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--olive-dark); color: rgba(246, 241, 232, 0.72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.9rem; }
.site-footer h2, .site-footer h3 { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer__brand { font-family: var(--font-display); font-size: 1.7rem; color: var(--cream); display: block; margin-bottom: 0.6rem; }
.footer h3 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-list a { color: rgba(246, 241, 232, 0.78); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-list a:hover { color: var(--cream); text-decoration: underline; }
.footer-legal {
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 232, 0.16);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  font-size: 0.78rem; color: rgba(246, 241, 232, 0.6);
}
.footer-demo-banner {
  background: var(--charcoal);
  color: var(--stone);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.85rem var(--gutter);
}
.footer-demo-banner strong { color: var(--cream); }

/* ---------- 13. Microinterazioni ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1100px) {
  .booking-bar__form { grid-template-columns: 1fr 1fr 1fr; }
  .booking-bar__form .field--submit { grid-column: 1 / -1; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .trust-bar__list { grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1rem; }
}

@media (max-width: 980px) {
  .nav__list, .nav .lang-switch { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav .btn--header { display: none; }

  .nav--open .nav__list {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--cream);
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    z-index: 99;
  }
  .nav--open .nav__list li { border-bottom: 1px solid var(--line-soft); }
  .nav--open .nav__link { display: block; font-size: 1.15rem; padding: 1rem 0; }
  .nav--open .lang-switch { display: flex; position: fixed; left: var(--gutter); bottom: 5.5rem; z-index: 100; }
  .nav--open .btn--header { display: inline-flex; position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1.5rem; z-index: 100; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}

@media (max-width: 720px) {
  .booking-bar__form { grid-template-columns: 1fr 1fr; }
  .booking-bar__form .field--guests,
  .booking-bar__form .field--rooms { grid-column: span 1; }
  .room-option { grid-template-columns: 1fr; }
  .room-option__body { padding: 0 1.2rem 1.3rem; }
  .host { grid-template-columns: 1fr; text-align: left; }
  .host__photo { width: 140px; }
  .trust-bar__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .booking-bar__form { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 2rem; }
  .btn { width: 100%; }
  .btn-row .btn, .hero__actions .btn { width: 100%; }
  .steps li { flex: 1 1 100%; }
  .place-list li { flex-direction: column; gap: 0.2rem; }
}

/* Stampa */
@media print {
  .site-header, .sticky-cta, .site-footer, .booking-bar { display: none !important; }
  body { background: #fff; color: #000; }
}
