/* ---------------------------------------------------------------------- */
/*	Theme
/* ---------------------------------------------------------------------- */

:root {
  --bg:        #FCFBF8;
  --surface:   #F4F2EC;
  --surface-2: #EAE6DC;
  --sand:      #DCD3C0;
  --line:      #ECE7DC;
  --line-2:    #D9D2C2;
  --ink:       #161512;
  --ink-2:     #2E2B26;
  --mute:      #6B6759;
  --mute-2:    #8B8678;
  --accent:    #5F6C57;
  --accent-2:  #4A5444;
  --accent-tint: #E5E8DE;
  --accent-soft: #DEE3D5;
  --ok:        #5F6C57;
  --bronze:    #998871;

  --ivory: var(--bg);
  --paper: var(--surface);
  --stone: var(--mute);
  --terracotta: var(--accent);

  --sans:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --serif:   "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw:   1320px;
  --gutter: clamp(24px, 5vw, 56px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(20,18,15,0.04), 0 2px 8px rgba(20,18,15,0.03);
  --shadow-md: 0 2px 6px rgba(20,18,15,0.04), 0 10px 28px rgba(20,18,15,0.05);
  --shadow-lg: 0 6px 16px rgba(20,18,15,0.05), 0 24px 60px rgba(20,18,15,0.07);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- base reset (Bootstrap compat) ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  width: auto;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  text-transform: none;
  background: var(--accent-tint);
  padding: 7px 13px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}
.eyebrow::before { display: none; }
.eyebrow.no-rule::before { display: none; }
.eyebrow.dark { background: rgba(255,255,255,0.08); color: #F5C9AC; }

/* heading classes — reset Bootstrap Reboot margin */
.h-display {
  font-family: var(--display);
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.h-display .it { font-style: normal; color: var(--accent); font-weight: 600; }

.h-1 {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.h-2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 600;
  margin: 0;
}
.h-3 {
  font-family: var(--sans);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 600;
  margin: 0;
}
.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  margin: 0;
}
.body-lg { font-size: 17px; line-height: 1.65; color: var(--ink-2); font-weight: 400; margin: 0; }
.body-md { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.label-xs {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- layout ---------- */
/* .container Bootstrap esteso: usa il gutter fluido custom invece dei 12px fissi di Bootstrap */
.container {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(64px, 7.5vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-compact { padding: clamp(32px, 4vw, 56px) 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,251,248,0.80);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(252,251,248,0.96);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-mark::before {
  content: "";
  width: 60px; height: 60px;
  display: inline-block;
  background-image: url("/site/theme/img/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
}
.brand-mark .it { font-style: normal; color: var(--mute); font-weight: 500; }

@media (max-width: 600px) {
.brand-mark {
  font-size: 12px;
}
}

.nav { display: flex; gap: 6px; align-items: center; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  /* transition: all rimossa — animava font-size/padding/transform al resize
     mobile→desktop. Solo color e background-color devono transitare (hover). */
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link.active { color: var(--ink); background: var(--surface); }
.header-cta-group { display: flex; gap: 10px; align-items: center; }

.nav-toggle { display: none; }
.nav-mobile-cta,
.nav-mobile-meta { display: none; }

@media (max-width: 1300px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(252,251,248,0.96); }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 102;
    transition: background .25s var(--ease), border-color .25s var(--ease);
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    display: block; width: 18px; height: 1.5px; background: var(--ink);
    transition: transform .35s var(--ease), top .25s var(--ease), background .25s var(--ease), opacity .2s var(--ease);
    border-radius: 2px;
  }
  .nav-toggle span { position: relative; background: transparent; }
  .nav-toggle span::before, .nav-toggle span::after {
    content:""; position: absolute; left: 0;
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after  { top:  6px; }
  body.nav-open .nav-toggle { background: #fff; border-color: var(--ink); }
  body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  body.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 0;
    display: flex; flex-direction: column;
    justify-content: flex-start; align-items: stretch;
    gap: 0;
    padding: 96px var(--gutter) 32px;
    background: var(--bg);
    background-image:
      radial-gradient(120% 60% at 100% 0%, var(--accent-tint), transparent 60%),
      radial-gradient(80%  50% at 0% 100%, var(--surface-2), transparent 60%);
    z-index: 100;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    /* NESSUNA transition di default: evita il flicker al resize.
       Le transizioni vengono abilitate solo dopo il primo clic utente
       tramite la classe .nav-will-animate (aggiunta via JS in setOpen). */
  }
  .nav.nav-will-animate {
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
  }
  .nav.nav-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav.nav-will-animate.nav-open {
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear 0s;
  }
  .nav-link {
    font-family: var(--display);
    font-size: clamp(28px, 7vw, 40px);
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--ink);
    padding: 18px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    display: flex; align-items: center; justify-content: space-between;
    opacity: 0;
    transform: translateY(14px);
    transition: color .2s var(--ease);
  }
  .nav-link::after {
    content: "→";
    font-family: var(--sans);
    font-size: 18px; font-weight: 500;
    color: var(--mute);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
  }
  .nav-link:hover, .nav-link.active { color: var(--accent-2); background: transparent; }
  .nav-link:hover::after, .nav-link.active::after { opacity: 1; transform: translateX(0); color: var(--accent-2); }
  .nav.nav-open .nav-link {
    opacity: 1; transform: translateY(0);
  }
  .nav.nav-will-animate.nav-open .nav-link {
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s var(--ease);
    transition-delay: calc(80ms + var(--i, 0) * 55ms);
  }
  .nav-mobile-cta {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 32px;
    opacity: 0;
    transform: translateY(14px);
  }
  .nav.nav-open .nav-mobile-cta { opacity: 1; transform: translateY(0); }
  .nav.nav-will-animate.nav-open .nav-mobile-cta {
    transition: opacity .5s var(--ease) .55s, transform .5s var(--ease) .55s;
  }
  .nav-mobile-cta .btn { justify-content: center; padding: 16px 24px; font-size: 15px; }
  .nav-mobile-meta {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: auto; padding-top: 32px;
    font-family: var(--sans); font-size: 13px; color: var(--mute);
    opacity: 0;
    transform: translateY(14px);
  }
  .nav.nav-open .nav-mobile-meta { opacity: 1; transform: translateY(0); }
  .nav.nav-will-animate.nav-open .nav-mobile-meta {
    transition: opacity .5s var(--ease) .65s, transform .5s var(--ease) .65s;
  }
  .nav-mobile-meta a { color: var(--ink); font-weight: 500; }
  .nav-mobile-meta .label-xs { color: var(--mute-2); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 990px) {
  .header-cta-group .btn-link-sm,
  .header-cta-group > .btn { display: none !important; }
}

/* ---------- Bootstrap btn override (brand palette) ---------- */
.btn {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 13px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  border-radius: 999px !important;
  transition: all .22s var(--ease) !important;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md) !important;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-2) !important;
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--surface) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}
.btn-sm { padding: 9px 16px !important; font-size: 13px !important; }
.btn-lg { padding: 16px 28px !important; font-size: 15px !important; }
.btn-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
}
.btn-link:hover { color: var(--accent) !important; border-color: var(--accent); }
.btn .arrow { transition: transform .25s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-light {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: rgba(255,255,255,0.4) !important;
}
.btn-light:hover {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline-light {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: #fff !important;
  color: var(--ink) !important;
}

/* ---------- photo placeholders ---------- */
.plate {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(140% 90% at 25% 15%, rgba(245,238,222,0.45), transparent 55%),
    linear-gradient(180deg, #b8ad97 0%, #8a8170 55%, #4f4a3f 100%);
}
.plate::after {
  content:""; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 60%, rgba(255,255,255,0.16) 0, transparent 50%),
    radial-gradient(2px 2px at 75% 30%, rgba(255,255,255,0.10) 0, transparent 50%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay; pointer-events: none;
}
.plate.tone-stone {
  background:
    radial-gradient(140% 90% at 25% 15%, rgba(245,238,222,0.4), transparent 55%),
    linear-gradient(180deg, #c4baa6 0%, #948b77 60%, #5b5448 100%);
}
.plate.tone-olive {
  background:
    radial-gradient(140% 90% at 25% 15%, rgba(225,228,205,0.4), transparent 55%),
    linear-gradient(180deg, #9aa089 0%, #6b7160 60%, #3b3f33 100%);
}
.plate.tone-terra {
  background:
    radial-gradient(140% 90% at 25% 15%, rgba(235,225,210,0.45), transparent 55%),
    linear-gradient(180deg, #b59c87 0%, #87705c 60%, #4f3f33 100%);
}
.plate.tone-paper {
  background:
    radial-gradient(140% 90% at 25% 15%, rgba(250,245,232,0.55), transparent 55%),
    linear-gradient(180deg, #ddd3bf 0%, #b5a98e 60%, #7a6f58 100%);
}
.plate.tone-sky {
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(245,240,225,0.5), transparent 60%),
    linear-gradient(180deg, #d4d3c1 0%, #aaa48f 55%, #6b6452 100%);
}
.plate-cap {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: rgba(255,245,225,0.85); z-index: 2;
}
.plate-cap.tr { left: auto; top: 14px; bottom: auto; right: 16px; }

/* ---------- hero (full-bleed, Swiper slider) ---------- */
.hero { position: relative; padding: 0; }

.hero-swiper {
  position: relative; width: 100%;
  height: clamp(600px, calc(100vh - 72px), 860px);
  overflow: hidden;
}
.hero-swiper.page-header {
  position: relative; width: 100%;
  height: clamp(300px, calc(100vh - 72px), 430px);
  overflow: hidden;
}
.hero-swiper .swiper-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.28) 50%, rgba(0,0,0,0.60) 100%);
}

/* Wrapper di posizionamento verticale: centra il testo nella slide */
.hero-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  z-index: 2;
}

/* Blocco testo: larghezza controllata, colore bianco */
.hero-text {
  max-width: 600px;
  color: #fff;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 600; margin: 0 0 20px;
  color: #fff;
}
.hero-title .it { color: var(--accent-tint); font-style: normal; }

.hero-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0 0 32px;
}

/* Paginazione: pillole bianche, quella attiva si allarga */
.hero-pagination.swiper-pagination {
  bottom: 28px !important;
  display: flex; justify-content: center; gap: 5px;
  z-index: 3;
}
.hero-pagination .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.45);
  opacity: 1; border-radius: 3px;
  margin: 0 !important;
  transition: background .3s ease, width .3s ease;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: #fff; width: 24px;
}

/* ---------- contacts strip (Bootstrap grid in HTML) ---------- */
/* .contact-strip è ora solo un wrapper semantico, grid gestita da Bootstrap */
.contact-strip { margin-top: 0; }
.contact-cell {
  padding: 32px 28px; border-radius: var(--r-md);
  background: #fff; display: flex; flex-direction: column; gap: 8px;
  transition: all .25s var(--ease); border: 1px solid var(--line);
  height: 100%;
}
.contact-cell:hover {
  background: #fff; border-color: var(--line-2);
  box-shadow: var(--shadow-sm); transform: translateY(-2px);
}
.contact-cell .v {
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em;
}

/* ---------- intro split (Bootstrap grid in HTML) ---------- */
.split-intro .col-left .eyebrow { margin-bottom: 24px; }
.split-intro .col-left h2 { margin: 0 0 24px; }

/* ---------- apartment cards (Bootstrap grid in HTML) ---------- */
.apt-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.apt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.apt-card .apt-img {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; margin: 0;
}
.apt-card .apt-img .plate { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.apt-card:hover .apt-img .plate { transform: scale(1.05); }
.apt-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  color: var(--ink); padding: 6px 11px; border-radius: 999px; z-index: 2;
}
.apt-tag.olive { color: var(--ok); }
.apt-card > .apt-meta-top { padding: 28px 28px 0; margin-bottom: 10px; }
.apt-card > .apt-name     { padding: 0 28px; }
.apt-card > .apt-desc     { padding: 0 28px; }
.apt-card > .apt-actions  { padding: 20px 28px 26px; margin-top: auto; }
.apt-meta-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--mute); margin-bottom: 8px; gap: 12px;
}
.apt-meta-top span:last-child { color: var(--ink); font-weight: 600; }
.apt-name {
  font-family: var(--display); font-size: 22px; line-height: 1.2;
  letter-spacing: -0.018em; font-weight: 600; margin: 0 0 8px; color: var(--ink);
}
.apt-desc { color: var(--mute); font-size: 14px; line-height: 1.55; margin: 0 0 20px; flex: 1; }
.apt-actions {
  display: flex; gap: 8px; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.apt-actions .btn { padding: 10px 14px !important; font-size: 13px !important; }
.apt-actions .btn-ghost { flex: 1; justify-content: center; }
.apt-actions .btn-primary { flex: 1; justify-content: center; }

/* ---------- services (Bootstrap grid in HTML) ---------- */
.svc {
  padding: 36px 32px 40px; background: #fff;
  border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px;
  transition: all .3s var(--ease); border: 1px solid var(--line);
  height: 100%;
}
.svc:hover {
  background: #fff; border-color: var(--line-2);
  box-shadow: var(--shadow-sm); transform: translateY(-2px);
}
.svc-num {
  display: inline-block; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em; color: var(--mute);
  background: transparent; font-weight: 500;
}
.svc-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-2); margin-bottom: 4px;
  border-radius: 12px; background: var(--accent-tint);
}
.svc-icon svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-2); width: 20px; height: 20px;
}
.ico svg {
  width: 100%; height: 100%; stroke: currentColor; fill: none;
  stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.contact-cell .ico { margin-bottom: 8px; color: var(--accent); }
.svc-title {
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  letter-spacing: -0.005em; margin: 4px 0 0; line-height: 1.3; color: var(--ink);
}
.svc-desc { color: var(--mute); font-size: 14px; line-height: 1.55; margin: 0; }

/* ---------- apartment teaser full-width ---------- */

.apt-teaser {
  display: block; position: relative; overflow: hidden;
  min-height: clamp(440px, 56vh, 600px); color: #fff; isolation: isolate;
}
.apt-teaser-full { border-radius: 0; }
.apt-teaser .container {
  position: relative; z-index: 1; height: 100%;
  min-height: inherit; display: flex; align-items: center;
}
.apt-teaser-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.apt-teaser-bg .plate { transition: transform 1.2s var(--ease); }
.apt-teaser:hover .apt-teaser-bg .plate { transform: scale(1.03); }
.apt-teaser-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(20,18,15,0.78) 0%, rgba(20,18,15,0.55) 55%, rgba(20,18,15,0.30) 100%);
}
.apt-teaser-content {
  padding: clamp(56px, 8vw, 112px) 0;
  max-width: 760px; display: flex; flex-direction: column;
}

/* ---------- map widget ---------- */
.map-wrap {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--surface); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line);
}
.map-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(107,119,98,0.05), transparent 70%),
    repeating-linear-gradient( 90deg, rgba(31,27,22,0.04) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(  0deg, rgba(31,27,22,0.04) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, #F4EFE5, #E0D5BD);
}
.map-wall {
  position: absolute; left: 50%; top: 50%;
  width: 36%; aspect-ratio: 1.2/1;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 1.5px dashed rgba(31,27,22,0.28);
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
}
.map-road {
  position: absolute; left: 5%; right: 5%; top: 50%;
  height: 1px; background: rgba(31,27,22,0.18);
}
.pin { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); cursor: pointer; }
.pin::before {
  content:""; position: absolute; inset: 0;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(107,119,98,0.18), 0 0 0 12px rgba(107,119,98,0.06);
}
.pin.olive::before {
  background: var(--bronze);
  box-shadow: 0 0 0 6px rgba(153,136,113,0.18), 0 0 0 12px rgba(153,136,113,0.06);
}
.pin-label {
  position: absolute; font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  background: #fff; color: var(--ink); padding: 5px 9px;
  border-radius: 6px; white-space: nowrap;
  transform: translate(-50%, -160%);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

/* ---------- chi siamo (Bootstrap grid in HTML) ---------- */
/* nessuna regola grid necessaria */

/* ---------- footer (Bootstrap grid in HTML) ---------- */
.site-footer {
  background: var(--ink); color: #fff;
  padding: 72px 0 28px; margin-top: 0;
}
.footer-top {
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .h-2 { color: #fff; margin: 0 0 16px; font-size: 24px; }
.footer-brand p { color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 18px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.85);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-family: var(--sans); font-size: 12px;
  color: rgba(255,255,255,0.5); flex-wrap: wrap;
}

/* ---------- listing page ---------- */
.page-head { padding-top: 56px; padding-bottom: 64px; }
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 20px; max-width: 18ch; }
.page-head .lede { max-width: 56ch; }

/* listing filters */
.listing-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 16px; margin-bottom: 48px;
  background: var(--surface); border-radius: var(--r-lg);
}
.chip {
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid transparent;
  background: transparent; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { background: rgba(255,255,255,0.6); }
.chip.active { background: var(--ink); color: #fff; }
.chip .count { font-size: 11px; margin-left: 8px; opacity: 0.6; font-weight: 600; }

/* ---------- detail page ---------- */
.detail-hero {
  display: grid; grid-template-columns: 8fr 4fr;
  gap: 8px; height: clamp(440px, 64vh, 640px);
}
.detail-hero .main,
.detail-hero .side { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.detail-hero .side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.detail-hero .side > div { position: relative; border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 820px) {
  .detail-hero { grid-template-columns: 1fr; height: auto; }
  .detail-hero .main { aspect-ratio: 4/3; }
  .detail-hero .side {
    display: grid; grid-template-rows: none;
    grid-template-columns: 1fr 1fr; height: 160px;
  }
}

/* detail meta — padding rimane, grid sostituita da Bootstrap in HTML */
.detail-meta { padding: 56px 0; }

/* specs sticky sidebar */
.detail-meta .specs {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface);
}
@media (max-width: 900px) {
  .detail-meta .specs { position: static; }
}

.spec-row {
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.spec-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.spec-row .l { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--mute); }
.spec-row .v { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }

.feat-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
}
.feat-list li {
  font-size: 14px; color: var(--ink-2);
  padding-left: 22px; position: relative; line-height: 1.45;
}
.feat-list li::before {
  content:""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px;
  background: var(--accent-tint); border-radius: 4px;
}

/* gallery */
.gallery-item {
  display: block; position: relative;
  cursor: zoom-in; overflow: hidden; border-radius: var(--r-lg);
}
.gallery-item .plate { transition: transform .8s var(--ease); }
.gallery-item:hover .plate { transform: scale(1.04); }
.gallery-zoom-hint {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; padding: 10px 16px;
  background: rgba(20,18,15,0.55); backdrop-filter: blur(8px);
  border-radius: 999px; opacity: 0;
  transition: opacity .25s var(--ease);
}
.gallery-item:hover .gallery-zoom-hint { opacity: 1; }
/* gallery-thumbs: Bootstrap row/col in HTML, solo override aspect-ratio */
.gallery-thumbs .gallery-item { aspect-ratio: 4 / 3; border-radius: var(--r-md); }

/* ---------- forms (Bootstrap grid in HTML, override brand) ---------- */
.form {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--line); padding: 32px;
}
/* Bootstrap form-control brand override */
.form-control,
.form-select {
  background-color: var(--surface) !important;
  border: 1px solid transparent !important;
  padding: 12px 14px !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  border-radius: var(--r-sm) !important;
  line-height: 1.5;
  transition: all .18s var(--ease) !important;
}
.form-control:focus,
.form-select:focus {
  background-color: #fff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(107,119,98,0.14) !important;
  color: var(--ink) !important;
}
.form-label {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ink-2) !important;
  margin-bottom: 8px !important;
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* legacy .field class still works for contact form topic area */
.field { display: flex; flex-direction: column; gap: 8px; }

/* ---------- page sections: benefit grid (Bootstrap grid in HTML) ---------- */
.benefit {
  padding: 40px 36px; background: var(--surface);
  border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 16px;
  transition: all .3s var(--ease); border: 1px solid transparent;
  height: 100%;
}
.benefit:hover {
  background: #fff; border-color: var(--line);
  box-shadow: var(--shadow-sm); transform: translateY(-2px);
}
.benefit-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-2); border-radius: 14px; background: var(--accent-tint);
  margin-bottom: 4px;
}
.benefit-icon svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.benefit-title {
  font-family: var(--sans); font-size: 19px; font-weight: 600;
  margin: 4px 0 0; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink);
}
.benefit-desc { font-size: 14px; color: var(--mute); margin: 0; line-height: 1.55; }

/* ---------- testimonial (blockquote singola) ---------- */
.testimonial {
  text-align: center; max-width: 880px;
  margin: 0 auto; padding: 80px 24px;
}
.testimonial blockquote {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25; font-style: normal;
  font-weight: 500; margin: 0 0 28px; letter-spacing: -0.022em;
}
.testimonial cite {
  font-family: var(--sans); font-size: 13px;
  font-weight: 600; font-style: normal; color: var(--mute);
}

/* ---------- testimonials swiper ---------- */
.testi-swiper { overflow: hidden; padding: 8px 4px 80px; }
.testi-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px 32px; margin: 0;
  height: 100%; display: flex; flex-direction: column; gap: 28px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.testi-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.testi-quote {
  font-family: var(--display); font-size: 19px; line-height: 1.5;
  letter-spacing: -0.01em; color: var(--ink); margin: 0; text-wrap: pretty;
}
.testi-meta { display: flex; flex-direction: column; gap: 4px; }
.testi-meta strong {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em;
}
.testi-meta span {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--mute); letter-spacing: 0.02em;
}
.testi-nav { display: flex; gap: 10px; }
.testi-arrow {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 18px; color: var(--ink); cursor: pointer;
  transition: all .25s var(--ease);
}
.testi-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.testi-pagination.swiper-pagination-bullets {
  bottom: 0; text-align: center; padding: 32px 0 0; position: relative;
}
.testi-pagination .swiper-pagination-bullet {
  background: var(--line-2); opacity: 1; width: 8px; height: 8px;
  transition: background .25s var(--ease), width .25s var(--ease);
}
.testi-pagination .swiper-pagination-bullet-active {
  background: var(--accent); width: 28px; border-radius: 4px;
}
.swiper-slide { height: auto; }

/* ---------- misc utilities ---------- */
.row-between {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.row-end { display: flex; justify-content: flex-end; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-64 { margin-bottom: 64px; }
.text-center { text-align: center; }
.btn-link-sm {
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
  padding: 8px 6px; text-decoration: none; transition: color .2s var(--ease);
}
.btn-link-sm:hover { color: var(--accent-2); }
@media (max-width: 820px) { .btn-link-sm { display: none; } }

/* legacy color alias */
.ivory { background: var(--bg); }

/* ---------- motion system (entrance animations disabled) ---------- */
.reveal { opacity: 1; transform: none; }
.reveal-group > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; }
}





main ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px 28px;

}

main ul li {
  font-size: 14px; color: var(--ink-2);
  padding-left: 22px; position: relative; line-height: 1.45;
}
main ul li::before {
  content:""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px;
  background: var(--accent-tint); border-radius: 4px;
}