/* =====================================================================
   Assisi AD Apartments — style.css
   Palette: crema pietra (dominante) · bordeaux del logo (identità) · oro antico (azioni)
   Font self-hosted: Cormorant Garamond (display) + Inter (body)
   ===================================================================== */

/* ---------- Font self-hosted (nessuna richiesta a terzi) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-var.woff2') format('woff2-variations'),
       url('../fonts/cormorant-garamond-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2-variations'),
       url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design system ---------- */
:root {
  /* brand */
  --brand: #6B2E33;
  --brand-dark: #4A1F23;
  --brand-soft: #F4E9E7;
  /* accento oro antico — azioni e rifiniture */
  --accent: #B08A4F;
  --accent-dark: #7A5C2E;
  --accent-soft: #F3EADB;
  /* neutri */
  --ink: #241A18;
  --text: #4C403C;
  --muted: #7B6E68;
  --bg: #FBF7F1;
  --bg-alt: #F3EDE4;
  --line: #E5DACD;
  --white: #ffffff;
  /* tipografia */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(36, 26, 24, .06);
  --shadow-md: 0 10px 30px rgba(36, 26, 24, .09);
  --shadow-lg: 0 24px 60px rgba(36, 26, 24, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0125rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent-dark); }
ul { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-soft { background: var(--brand-soft); }
.section-dark { background: var(--brand-dark); color: rgba(255, 255, 255, .84); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.7; }
.section-dark .lead { color: rgba(255, 255, 255, .78); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.section-head.center .eyebrow { justify-content: center; }
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: var(--accent-soft); color: var(--brand-dark); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--brand-dark); border-color: var(--white); }
.btn-lg { padding: 1.1rem 2.3rem; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .93rem;
  color: var(--accent-dark);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Topbar informativa: si ritrae allo scroll */
.topbar {
  position: relative;
  z-index: 2;
  height: 42px;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: .8rem;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  transition: height .45s var(--ease), opacity .3s var(--ease), border-color .35s var(--ease);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.topbar-list { list-style: none; display: flex; align-items: center; gap: 1.6rem; }
.topbar a, .topbar span, .topbar li { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: var(--accent); }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-item svg { opacity: .8; flex: none; }
.topbar-flag { color: var(--accent); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.site-header.scrolled .topbar { height: 0; opacity: 0; border-bottom-color: transparent; }
.site-header.is-solid .topbar { border-bottom-color: var(--line); }
.site-header.is-solid .topbar a,
.site-header.is-solid .topbar span,
.site-header.is-solid .topbar li { color: var(--muted); }
.site-header.is-solid .topbar-flag { color: var(--accent-dark); }
.site-header.is-solid .topbar a:hover { color: var(--brand); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23, 14, 13, .55), rgba(23, 14, 13, 0));
  opacity: 1;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-header.is-solid, .site-header.scrolled {
  background: rgba(251, 247, 241, .96);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header.is-solid::before, .site-header.scrolled::before { opacity: 0; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  min-height: var(--nav-h);
  transition: min-height .35s var(--ease);
}
.site-header.scrolled .nav-inner { min-height: 68px; }

.nav-brand { position: relative; display: block; line-height: 0; flex: none; }
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity .4s var(--ease), height .35s var(--ease);
}
.brand-logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.is-solid .brand-logo--light,
.site-header.scrolled .brand-logo--light { opacity: 0; }
.site-header.is-solid .brand-logo--dark,
.site-header.scrolled .brand-logo--dark { opacity: 1; }
.site-header.scrolled .brand-logo { height: 42px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  position: relative;
  transition: color .3s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a[aria-current="page"]:not(.nav-cta)::after { width: 100%; }
.nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--white); }
.site-header.is-solid .nav-links a, .site-header.scrolled .nav-links a { color: var(--text); }
.site-header.is-solid .nav-links a:hover, .site-header.scrolled .nav-links a:hover,
.site-header.is-solid .nav-links a[aria-current="page"], .site-header.scrolled .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .nav-cta { padding: .7rem 1.5rem; font-size: .88rem; color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease), background .35s var(--ease);
}
.site-header.is-solid .nav-toggle span, .site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.is-open span { background: var(--ink); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Hero home ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  color: var(--white);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(23, 12, 12, .82) 0%, rgba(29, 15, 14, .62) 45%, rgba(29, 15, 14, .3) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { color: rgba(255, 255, 255, .88); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.hero-badge { display: flex; flex-direction: column; gap: .15rem; }
.hero-badge strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.hero-badge span { font-size: .82rem; letter-spacing: .06em; color: rgba(255, 255, 255, .74); }
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  z-index: 2;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .6), transparent);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- Hero pagine interne ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 0 3.5rem;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .82);
  isolation: isolate;
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(24, 12, 12, .88), rgba(24, 12, 12, .6));
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 16ch; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 620px; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero .eyebrow::before { background: var(--accent); }

.breadcrumb { font-size: .82rem; color: rgba(255, 255, 255, .62); margin-bottom: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .78); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Grid generiche ---------- */
.grid { display: grid; gap: clamp(1.4rem, 2.6vw, 2.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); }

/* ---------- Feature card ---------- */
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 1.3rem;
  color: var(--brand);
}
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Split immagine + testo ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; max-height: 620px; }
.split-media .stamp {
  position: absolute;
  right: -18px; bottom: -18px;
  background: var(--brand);
  color: var(--white);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 220px;
}
.split-media .stamp strong { font-family: var(--font-display); font-size: 1.5rem; display: block; color: var(--accent); }
.split-media .stamp span { font-size: .78rem; line-height: 1.4; display: block; color: rgba(255, 255, 255, .85); }

/* ---------- Card appartamento ---------- */
.apt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.apt-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.apt-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.apt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.apt-card:hover .apt-card-media img { transform: scale(1.06); }
.apt-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(251, 247, 241, .94);
  color: var(--brand);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border-radius: 999px;
}
.apt-card-body { padding: 2rem 1.9rem 2.2rem; display: flex; flex-direction: column; flex: 1; }
.apt-card-body h3 { margin-bottom: .3rem; }
.apt-meta {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none;
  margin: 0 0 1.1rem;
  font-size: .82rem;
  color: var(--muted);
}
.apt-meta li {
  background: var(--bg-alt);
  border-radius: 999px;
  padding: .3rem .85rem;
}
.apt-card-body p { color: var(--muted); font-size: .97rem; }
.apt-card-actions { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ---------- Amenities ---------- */
.amenities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .85rem 1.8rem;
}
.amenities li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  color: var(--text);
}
.amenities li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: .28rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B2E33' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.amenity-group { margin-bottom: 2.6rem; }
.amenity-group:last-child { margin-bottom: 0; }
.amenity-group h3 {
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: var(--bg-alt);
  display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item.is-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item.is-tall { grid-row: span 2; aspect-ratio: auto; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 11, 10, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: 8px; object-fit: contain; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background .25s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-nav.prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .85rem; letter-spacing: .1em; }

/* ---------- Numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat span { font-size: .85rem; letter-spacing: .08em; color: rgba(255, 255, 255, .75); }

/* ---------- Recensioni / reputazione ---------- */
.rating-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.rating-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.rating-source {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.rating-score {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  margin: 0;
}
.rating-score small { font-size: .38em; color: var(--muted); font-weight: 500; margin-left: .15em; }
.rating-stars { color: var(--accent); letter-spacing: .12em; font-size: .95rem; margin: .5rem 0 .35rem; }
.rating-count { font-size: .88rem; color: var(--muted); margin: 0; }
.rating-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin: .9rem 0 0; }
.rating-badge {
  display: inline-block;
  margin-top: .9rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: .35rem .85rem;
}
.rating-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 2rem; }

/* Striscia compatta nelle schede appartamento */
.rating-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow-sm);
}
.rating-strip-item { display: flex; align-items: baseline; gap: .55rem; }
.rating-strip-item strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
}
.rating-strip-item span { font-size: .87rem; color: var(--muted); }
.rating-strip .rating-badge { margin-top: 0; }

/* ---------- Quote ---------- */
.quote {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.42;
  color: var(--ink);
  font-style: italic;
}
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }

/* ---------- Blog card ---------- */
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.7rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .7rem; }
.post-card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.post-card p { font-size: .94rem; color: var(--muted); }
.post-card .link-arrow { margin-top: auto; padding-top: 1.2rem; }

/* ---------- Articolo ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.4rem; }
.article h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.article ul, .article ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.article li { margin-bottom: .5rem; }
.article img { border-radius: var(--radius); margin: 2rem 0; }
.article-answer {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  font-size: 1.06rem;
  color: var(--ink);
}
.article-note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-size: .95rem;
}

/* ---------- Accordion FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.35rem 2.5rem 1.35rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: .4rem; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding-bottom: 1.4rem; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: .5rem; }
.cta-banner p { color: rgba(255, 255, 255, .82); max-width: 600px; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.cta-reassure { margin-top: 1.2rem; font-size: .84rem; color: rgba(255, 255, 255, .66); }

/* ---------- Form ---------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 138, 79, .18);
}
.field-hint { font-size: .78rem; color: var(--muted); }
.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--muted);
  grid-column: 1 / -1;
}
.check input { width: 18px; height: 18px; margin-top: .18rem; accent-color: var(--brand); flex: none; }
.form-status { margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--brand); min-height: 1.4rem; }

/* ---------- Info contatti ---------- */
.info-list { list-style: none; display: grid; gap: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
}
.info-item h4 { margin-bottom: .15rem; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.info-item p, .info-item a { font-size: .95rem; color: var(--muted); margin: 0; }
.info-item a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: clamp(3.5rem, 6vw, 5rem) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.2rem);
  padding-bottom: 3rem;
}
.footer-col h4 { color: var(--white); font-size: .78rem; letter-spacing: .18em; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: rgba(255, 255, 255, .68); font-size: .93rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: .93rem; margin-bottom: .8rem; }
.footer-brand { margin-bottom: 1.4rem; line-height: 0; }
.footer-brand img { height: 54px; width: auto; }
.footer-cin {
  display: inline-block;
  margin-top: .4rem;
  font-size: .76rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  padding: .35rem .7rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.5rem 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: rgba(255, 255, 255, .62); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Barra azioni mobile (non copre mai i contenuti) ---------- */
.mobile-bar { display: none; }
.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-height: 50px;
  padding: .4rem .3rem;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  transition: background .2s var(--ease);
}
.mobile-bar-btn.is-wa { color: #128C4B; }
.mobile-bar-btn.is-primary { background: var(--brand); color: var(--white); }
.mobile-bar-btn:active { background: var(--bg-alt); }
.mobile-bar-btn.is-primary:active { background: var(--brand-dark); color: var(--white); }

/* ---------- Numerazione di sezione ---------- */
.eyebrow[data-num] { gap: .85rem; }
.eyebrow[data-num]::before {
  content: attr(data-num);
  width: auto; height: auto;
  background: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  padding-right: .85rem;
  border-right: 1px solid var(--line);
  line-height: 1;
}
.section-dark .eyebrow[data-num]::before,
.page-hero .eyebrow[data-num]::before,
.hero .eyebrow[data-num]::before { border-right-color: rgba(255, 255, 255, .28); }

/* ---------- Ornamento divisorio ---------- */
.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  color: var(--accent);
  margin: 0 auto 1.6rem;
  max-width: 260px;
}
.orn::before, .orn::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}
.orn svg { flex: none; opacity: .85; }

/* ---------- Steps numerati ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem); position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 30px; left: 12%; right: 12%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; }
.step-num {
  counter-increment: step;
  width: 60px; height: 60px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--brand);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step:hover .step-num { background: var(--brand); color: var(--white); transform: translateY(-4px); }
.step h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.section-alt .step-num { background: var(--bg-alt); }

/* ---------- Tabella comparativa ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.compare th, .compare td { padding: 1.05rem 1.4rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.compare thead th:first-child { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--text); width: 32%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: var(--brand-soft); }
.compare td { color: var(--muted); }
.compare .yes { color: var(--brand); font-weight: 600; }

/* ---------- Sub-nav schede appartamento ---------- */
.subnav {
  position: sticky;
  top: calc(var(--nav-h) - 8px);
  z-index: 50;
  background: rgba(251, 247, 241, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav ul { list-style: none; display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; padding: 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  padding: 1.1rem 0;
  font-size: .87rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--brand); border-bottom-color: var(--accent); }

/* ---------- Barra di lettura articoli ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(to right, var(--brand), var(--accent));
  z-index: 120;
}

/* ---------- Chip valutazione nell'hero ---------- */
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 1.1rem .5rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  font-size: .84rem;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 1.4rem;
}
.hero-rating strong { color: var(--accent); font-weight: 600; }
.hero-rating .hero-rating-stars { color: var(--accent); letter-spacing: .06em; }

/* ---------- Parallax e reveal immagini ---------- */
/* niente will-change: promuove l'immagine su un layer che alcuni motori
   dipingono sotto la sezione, facendo sparire l'hero (bug gia' visto). */
.parallax-media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }
/* La tendina si apre solo quando l'immagine e' DAVVERO caricata (is-loaded):
   con loading="lazy" altrimenti si anima un riquadro ancora vuoto. */
.img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
.img-reveal.is-visible.is-loaded { clip-path: inset(0 0 0 0); }

/* ---------- Riflesso sui bottoni ---------- */
.btn-primary, .btn-light { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after {
  content: "";
  position: absolute;
  top: 0; left: -140%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transition: left .75s var(--ease);
}
.btn-primary:hover::after, .btn-light:hover::after { left: 160%; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--brand); color: var(--white);
  padding: .7rem 1.2rem; border-radius: 0 0 8px 8px;
  z-index: 300; transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media img { max-height: 420px; }
  .split-media .stamp { right: 12px; bottom: -14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1rem; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .subnav { top: calc(var(--nav-h) - 14px); }
  .subnav a { font-size: .82rem; padding: .9rem 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 340px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 5rem 2rem 2rem;
    transform: translateX(105%);
    transition: transform .4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a, .site-header .nav-links a { color: var(--ink); font-size: 1.15rem; }
  /* area di tocco >= 44px sulle voci del menu mobile */
  .nav-links a:not(.nav-cta) { display: block; padding: .65rem 0; }
  .nav-links { gap: .8rem; }
  .site-header .nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--brand); }
  .nav-links .nav-cta { margin-top: .6rem; }
  /* Tabella comparativa: da tabella a blocchi leggibili */
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th {
    width: auto;
    padding: 0 0 .55rem;
    border: 0;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-dark);
  }
  .compare td {
    padding: .2rem 0;
    border: 0;
    display: flex;
    gap: .6rem;
    align-items: baseline;
    font-size: .92rem;
  }
  .compare td::before {
    content: attr(data-col);
    flex: none;
    min-width: 96px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
  }
  .compare tbody tr:hover td, .compare tbody tr:hover th { background: transparent; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .grid-4 .feature-card { padding: 1.5rem 1.1rem; }
  .grid-4 .feature-card h3 { font-size: 1.2rem; }
  .grid-4 .feature-card p { font-size: .86rem; }
  .subnav .container { position: relative; }
  .subnav .container::after {
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 42px;
    background: linear-gradient(to right, rgba(251, 247, 241, 0), rgba(251, 247, 241, .96));
    pointer-events: none;
  }
  .form-grid { grid-template-columns: 1fr; }
  /* 16px: sotto questa soglia iOS Safari zooma la pagina al focus */
  .field input, .field select, .field textarea { font-size: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.is-tall, .gallery-item.is-wide { grid-row: span 1; aspect-ratio: 4 / 3; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: .4rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    padding: .45rem .7rem;
    padding-bottom: calc(.45rem + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 247, 241, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(36, 26, 24, .08);
  }
  body { padding-bottom: 72px; }
  .hero { min-height: 92svh; }
  .footer-bottom { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 1.2rem 2rem; }
  .amenities { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* schermi molto stretti: le card non devono imporre una larghezza minima */
  .grid > *, .grid-4 > * { min-width: 0; }
  .rating-card { padding: 1.4rem .85rem; }
  .rating-card h3 { font-size: .98rem; }
  .rating-count { font-size: .8rem; }
  .rating-badge { font-size: .7rem; padding: .3rem .6rem; }
  .hide-sm { display: none; }
  .hero-rating { font-size: .8rem; }
  .brand-logo { height: 36px; }
  .site-header.scrolled .brand-logo { height: 32px; }
  .footer-brand img { height: 46px; }
  .btn { width: 100%; }
  .hero-cta, .cta-actions { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.is-wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .img-reveal { clip-path: none; }
  .parallax-media img { transform: none; }
  .read-progress { display: none; }
}

@media print {
  .site-header, .float-actions, .cta-banner, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
