/* =============================================================
   Fato Immobiliare — foglio di stile
   Boutique real estate, Molinella · Bologna
   Palette: carta calda, inchiostro, pietra, terracotta (accento)
   Type: Fraunces (display) + Instrument Sans (testo/UI)
   ============================================================= */

/* ---------- Font self-hosted ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrumentsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrumentsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Token ---------- */
:root {
  --paper:        #f3efe6;
  --paper-2:      #ece6da;
  --paper-3:      #e4ddce;
  --ink:          #211f1a;
  --ink-2:        #2c2a23;
  --stone:        #7d766a;
  --stone-2:      #9c9488;
  --line:         rgba(33, 31, 26, 0.14);
  --line-soft:    rgba(33, 31, 26, 0.08);
  --terracotta:   #9c4a2b;
  --terracotta-2: #b45c39;
  --olive:        #6a6a4c;

  --dark:         #201e19;
  --dark-2:       #2a271f;
  --on-dark:      #ece6d9;
  --on-dark-mut:  #9d9484;
  --line-dark:    rgba(236, 230, 217, 0.16);

  --serif: 'Fraunces', 'Iowan Old Style', Palatino, 'Palatino Linotype', Georgia, serif;
  --sans:  'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap:      1280px;
  --wrap-wide: 1500px;
  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --section:   clamp(4.5rem, 9vw, 9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset di base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--terracotta); color: #fff; }

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

/* ---------- Elementi tipografici ---------- */
.serif { font-family: var(--serif); }

.display {
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--stone);
}
.eyebrow--accent { color: var(--terracotta); }

.index-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--terracotta);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--wrap-wide); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Intestazione di sezione editoriale */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.sec-head__label { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.1rem; }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.sec-head p { color: var(--stone); max-width: 42ch; }

/* Suggerimento di scorrimento (solo mobile, gallerie a swipe) */
.rail-hint {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.rail-hint span { color: var(--terracotta); }

/* ---------- Pulsanti / link ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.6em;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--bg);
  border-radius: 2px;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { --bg: var(--terracotta); border-color: var(--terracotta); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { --bg: transparent; --fg: var(--terracotta); border-color: var(--terracotta); }
.btn--on-dark { --bg: var(--on-dark); --fg: var(--dark); }
.btn--on-dark:hover { --bg: var(--terracotta-2); --fg: #fff; border-color: var(--terracotta-2); }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* link con freccia / sottolineato */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
  transition: color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--terracotta); border-color: var(--terracotta); }
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(243, 239, 230, 0.86);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 88px;
  transition: height .5s var(--ease);
}
.is-scrolled .header-inner { height: 70px; }

/* Marchio */
.brand { display: flex; align-items: center; gap: 0.7rem; line-height: 1; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  border-radius: 2px;
}
.brand__name { display: flex; flex-direction: column; gap: 2px; }
.brand__name b {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}
.brand__name small {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}

/* Navigazione */
.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.6rem); }
.nav a {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  padding: 0.4em 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0.05em;
  width: 100%; height: 1px;
  background: var(--terracotta);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 1.25rem; }
.header-cta .btn { padding: 0.7em 1.15em; }

/* Hamburger */
.burger {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 17px; height: 1.4px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.burger::before { transform: translate(-50%, -6px); }
.burger::after  { transform: translate(-50%, 6px); }
.burger span { width: 17px; }
body.menu-open .burger span { opacity: 0; }
body.menu-open .burger::before { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .burger::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: 104px var(--gutter) 2.5rem;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: 1.4rem; font-weight: 380; padding: 0.62rem 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 1.6rem; align-self: flex-start; font-size: 0.8rem; }
.mobile-menu__foot { margin-top: auto; color: var(--stone); font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; }

/* =============================================================
   HERO
   ============================================================= */
.hero { padding-top: 88px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__copy { max-width: 34rem; }
.hero__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1.75rem; }
.hero__eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); flex: none; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.026em;
}
.hero h1 em { font-style: italic; color: var(--terracotta); font-weight: 340; }
.hero__lead {
  margin-top: 1.6rem;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  color: var(--ink-2);
  max-width: 40ch;
  line-height: 1.6;
}
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* immagine hero */
.hero__media { position: relative; }
.hero__media figure { position: relative; margin: 0; overflow: hidden; border-radius: 3px; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}
.hero.is-ready .hero__media img { transform: scale(1); }
.hero__caption {
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  background: rgba(23, 21, 17, 0.55);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  padding: 0.55rem 0.9rem;
  border-radius: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__caption .pin { width: 4px; height: 4px; border-radius: 50%; background: var(--terracotta-2); }
.hero__ref {
  position: absolute; top: 1.1rem; right: 1.1rem;
  writing-mode: vertical-rl;
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--on-dark); opacity: 0.85;
}

/* Modulo intenzione */
.intent {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.intent__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.intent__q { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.intent__opts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.intent__opt {
  background: none; border: 0;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--stone);
  position: relative;
  letter-spacing: 0.01em;
  transition: color .3s var(--ease);
}
.intent__opt::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 100%; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.intent__opt:hover { color: var(--ink); }
.intent__opt.is-active { color: var(--ink); }
.intent__opt.is-active::after { transform: scaleX(1); background: var(--terracotta); }
.intent__go {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500; white-space: nowrap;
}
.intent__go span { transition: transform .35s var(--ease); }
.intent__go:hover span { transform: translateX(4px); }

/* =============================================================
   IMMOBILI SELEZIONATI
   ============================================================= */
.properties { background: var(--paper); }

/* riga in evidenza: immagine grande + dettagli */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.feature__media { position: relative; overflow: hidden; border-radius: 3px; }
.feature__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.035); }
.feature__body { max-width: 30rem; }
.feature__loc { display: flex; align-items: center; gap: 0.6rem; color: var(--stone); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.feature__body h3 { font-family: var(--serif); font-weight: 350; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.08; letter-spacing: -0.015em; }
.feature__desc { margin-top: 1.1rem; color: var(--ink-2); max-width: 40ch; }
.feature__meta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.feature__meta div { display: flex; flex-direction: column; gap: 0.25rem; }
.feature__meta dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.feature__meta dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.feature__foot { margin-top: 1.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.feature__price { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -0.01em; }
.feature__price small { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); margin-top: 0.2rem; }

/* etichetta stato */
.tag {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  padding: 0.42em 0.72em;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  background: rgba(255,255,255,0.35);
}
.tag--accent { color: var(--terracotta); border-color: rgba(156,74,43,0.4); }
.tag .tag__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* griglia carte (asimmetrica, non uniforme) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
}
.card { grid-column: span 4; display: flex; flex-direction: column; }
.card--wide { grid-column: span 6; }
.card--tall .card__media img { aspect-ratio: 3 / 4; }
.card__media { position: relative; overflow: hidden; border-radius: 3px; margin-bottom: 1.1rem; }
.card__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__tag { position: absolute; top: 0.85rem; left: 0.85rem; }
.card__loc { display: flex; align-items: center; gap: 0.55rem; color: var(--stone); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.55rem; }
.card h3 { font-family: var(--serif); font-weight: 360; font-size: 1.4rem; line-height: 1.12; letter-spacing: -0.01em; }
.card__facts { margin-top: 0.7rem; color: var(--stone); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.card__facts span { display: inline-flex; align-items: center; gap: 0.45rem; }
.card__facts span + span::before { content: ""; }
.card__price { margin-top: 0.95rem; padding-top: 0.85rem; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.card__price b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.card__price em { font-style: normal; color: var(--stone); font-size: 0.8rem; letter-spacing: 0.04em; }
.card a.card__overlay { position: absolute; inset: 0; z-index: 2; }

/* =============================================================
   VALUTAZIONE / VENDERE
   ============================================================= */
.valuation { background: var(--paper-2); }
.valuation__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.valuation__copy h2 {
  font-family: var(--serif); font-weight: 330;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.3rem);
  line-height: 1.06; letter-spacing: -0.02em;
  max-width: 16ch;
  margin-top: 1.4rem;
}
.valuation__copy > p { margin-top: 1.5rem; color: var(--ink-2); max-width: 44ch; }
.valuation__list { margin-top: 2rem; display: grid; gap: 0; }
.valuation__list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.valuation__list li:last-child { border-bottom: 1px solid var(--line); }
.valuation__list .n { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 0.95rem; }
.valuation__list .t b { font-weight: 500; display: block; margin-bottom: 0.15rem; }
.valuation__list .t span { color: var(--stone); font-size: 0.92rem; }

/* scheda / modulo valutazione */
.valuation__panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  position: relative;
}
.valuation__panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 4px;
  box-shadow: 0 30px 60px -40px rgba(33,31,26,0.5);
  pointer-events: none;
}
.valuation__panel h3 { font-family: var(--serif); font-weight: 360; font-size: 1.4rem; }
.valuation__panel .muted { color: var(--stone); font-size: 0.9rem; margin-top: 0.4rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.25rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.valuation__panel .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }
.valuation__panel .fineprint { margin-top: 1rem; font-size: 0.78rem; color: var(--stone); line-height: 1.5; }

/* =============================================================
   PERCHÉ FATO — dichiarazioni numerate
   ============================================================= */
.principles { background: var(--paper); }
.principles__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.principles__intro { position: sticky; top: 110px; align-self: start; }
.principles__intro h2 {
  font-family: var(--serif); font-weight: 330;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.07; letter-spacing: -0.02em; margin-top: 1.2rem;
}
.principles__intro p { margin-top: 1.3rem; color: var(--stone); max-width: 32ch; }
.principles__list { display: grid; }
.principles__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
}
.principles__list li:last-child { border-bottom: 1px solid var(--line); }
.principles__list .num { font-family: var(--serif); font-size: 1.05rem; color: var(--terracotta); font-style: italic; padding-top: 0.35rem; }
.principles__list h3 { font-family: var(--serif); font-weight: 360; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem); line-height: 1.12; }
.principles__list p { margin-top: 0.7rem; color: var(--ink-2); max-width: 48ch; }

/* =============================================================
   TERRITORIO / COMPETENZA LOCALE
   ============================================================= */
.territory { background: var(--dark); color: var(--on-dark); }
.territory__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.territory__media { position: relative; overflow: hidden; border-radius: 3px; }
.territory__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.territory__media figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--on-dark); background: rgba(20,18,14,0.5); backdrop-filter: blur(5px);
  padding: 0.45rem 0.75rem; border-radius: 2px;
}
.territory .eyebrow { color: var(--on-dark-mut); }
.territory h2 {
  font-family: var(--serif); font-weight: 330;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em; margin-top: 1.3rem;
  color: var(--on-dark);
}
.territory h2 em { font-style: italic; color: var(--terracotta-2); }
.territory__copy > p { margin-top: 1.4rem; color: var(--on-dark-mut); max-width: 46ch; }
.stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stats div { border-top: 1px solid var(--line-dark); padding-top: 1rem; }
.stats b { font-family: var(--serif); font-weight: 380; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); display: block; line-height: 1; letter-spacing: -0.02em; }
.stats span { display: block; margin-top: 0.55rem; font-size: 0.8rem; color: var(--on-dark-mut); letter-spacing: 0.02em; line-height: 1.4; }

/* =============================================================
   BOUTIQUE / POSIZIONAMENTO
   ============================================================= */
.boutique { position: relative; background: var(--dark-2); color: var(--on-dark); overflow: hidden; }
.boutique__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.boutique__statement {
  font-family: var(--serif); font-weight: 320;
  font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.2rem);
  line-height: 1.16; letter-spacing: -0.018em;
  color: var(--on-dark);
  max-width: 20ch;
}
.boutique__statement em { font-style: italic; color: var(--terracotta-2); }
.boutique__aside { border-left: 1px solid var(--line-dark); padding-left: clamp(1.5rem, 3vw, 2.25rem); }
.boutique__aside p { color: var(--on-dark-mut); }
.boutique__aside p + p { margin-top: 1.1rem; }
.boutique__img { margin-top: 2rem; overflow: hidden; border-radius: 3px; }
.boutique__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; opacity: 0.92; }

/* =============================================================
   PROCESSO
   ============================================================= */
.process { background: var(--paper-2); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.step { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--ink); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--terracotta); position: absolute; top: 1.75rem; }
.step h3 { font-family: var(--serif); font-weight: 360; font-size: 1.3rem; margin-top: 2.4rem; line-height: 1.1; }
.step p { margin-top: 0.8rem; color: var(--ink-2); font-size: 0.95rem; max-width: 26ch; }

/* =============================================================
   CHI SIAMO
   ============================================================= */
.about { background: var(--paper); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
.about__badge {
  position: absolute; right: -12px; bottom: 28px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 3px; padding: 0.9rem 1.1rem;
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  box-shadow: 0 24px 40px -30px rgba(33,31,26,0.6);
}
.about__copy h2 {
  font-family: var(--serif); font-weight: 330;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em; margin-top: 1.3rem; max-width: 18ch;
}
.about__copy > p { margin-top: 1.5rem; color: var(--ink-2); max-width: 46ch; }
.about__copy > p + p { margin-top: 1.1rem; }
.about__sign { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.about__sign .name { font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.about__sign .role { font-size: 0.8rem; color: var(--stone); letter-spacing: 0.06em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 1rem; }

/* =============================================================
   CTA FINALE
   ============================================================= */
.cta-final { background: var(--terracotta); color: #fdf6ef; }
.cta-final .wrap { text-align: center; padding-block: clamp(4rem, 8vw, 7rem); }
.cta-final .eyebrow { color: rgba(253,246,239,0.7); }
.cta-final h2 {
  font-family: var(--serif); font-weight: 330;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.8rem);
  line-height: 1.05; letter-spacing: -0.02em; margin-top: 1.4rem; max-width: 22ch; margin-inline: auto;
}
.cta-final h2 em { font-style: italic; }
.cta-final p { margin-top: 1.5rem; color: rgba(253,246,239,0.85); max-width: 46ch; margin-inline: auto; }
.cta-final .btn { margin-top: 2.4rem; --bg: #fdf6ef; --fg: var(--terracotta); border-color: #fdf6ef; }
.cta-final .btn:hover { --bg: var(--dark); --fg: #fdf6ef; border-color: var(--dark); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--dark); color: var(--on-dark-mut); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.75rem, 3vw, 3rem); }
.footer__brand .brand { color: var(--on-dark); }
.footer__brand .brand__name small { color: var(--on-dark-mut); }
.footer__brand p { margin-top: 1.3rem; max-width: 32ch; font-size: 0.92rem; line-height: 1.6; }
.footer__col h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 1.1rem; }
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a, .footer__col address { color: var(--on-dark); font-style: normal; font-size: 0.95rem; line-height: 1.55; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--terracotta-2); }
.footer__col address span { display: block; color: var(--on-dark-mut); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; }
.footer__bottom .credit { color: var(--on-dark-mut); }
.footer__bottom .credit a { color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }

/* =============================================================
   RIVELAZIONE AL SCROLL
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__media img { transform: none !important; transition: none; }
  * { animation: none !important; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .header-cta { display: none; }
  .burger { display: block; }

  .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16/12; }
  .hero__copy { max-width: none; }

  .intent__grid { grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
  .intent__go { justify-self: start; }

  .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .valuation__grid, .principles__grid, .territory__grid, .boutique__grid, .about__grid {
    grid-template-columns: 1fr;
  }
  .principles__intro { position: static; }
  .boutique__aside { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; padding-top: 1.5rem; }
  .process__grid { grid-template-columns: 1fr 1fr; row-gap: 2.25rem; }
  .about__media { max-width: 26rem; }

  /* carte: due colonne fluide (tablet) */
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card--wide { grid-column: auto; }
}

/* =============================================================
   TELEFONO — meno scroll, più gesto. Le collezioni si sfogliano
   in orizzontale; gli elenchi diventano compatti, non ripetuti.
   ============================================================= */
@media (max-width: 640px) {
  :root { --section: clamp(2.75rem, 9vw, 4.5rem); }

  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 0.85rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .about__badge { right: 12px; }
  .about__media { max-width: none; }
  .feature__meta { gap: 1.1rem 1.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__eyebrow.eyebrow { font-size: 0.64rem; letter-spacing: 0.16em; }

  /* ---- Galleria a swipe, riutilizzabile (immobili + processo) ---- */
  .grid-cards,
  .process__grid {
    display: flex;
    grid-template-columns: none;
    gap: 0.9rem;
    margin-top: 1.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.4rem;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .grid-cards::-webkit-scrollbar,
  .process__grid::-webkit-scrollbar { display: none; }

  /* elementi della galleria sempre visibili (niente reveal orizzontale bloccato) */
  .grid-cards > [data-reveal],
  .process__grid > [data-reveal] { opacity: 1; transform: none; }

  .card, .card--wide {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .card__media img,
  .card--tall .card__media img { aspect-ratio: 4 / 4.7; }

  .step {
    flex: 0 0 68%;
    scroll-snap-align: start;
    padding-top: 1.4rem;
  }
  .step h3 { margin-top: 2rem; }
  .step p { max-width: none; }

  .rail-hint { display: flex; }

  /* pulsante "vedi tutti" allineato alla galleria */
  .properties .wrap > div:last-child { justify-content: flex-start !important; margin-top: 1.75rem !important; }

  /* ---- Metodo: elenco compatto, non quattro blocchi ripetuti ---- */
  .principles__intro h2 { font-size: clamp(1.65rem, 6vw, 2.1rem); margin-top: 0.9rem; }
  .principles__intro p { margin-top: 0.85rem; }
  .principles__list { margin-top: 1.6rem; }
  .principles__list li { gap: 0.9rem; padding: 1rem 0; align-items: baseline; }
  .principles__list .num { padding-top: 0; font-size: 0.9rem; }
  .principles__list h3 { font-size: 1.18rem; }
  .principles__list p { margin-top: 0.35rem; font-size: 0.9rem; }

  /* ---- Valutazione: elenco compatto ---- */
  .valuation__list { margin-top: 1.5rem; }
  .valuation__list li { gap: 0.8rem; padding: 0.8rem 0; }
  .valuation__list .t span { font-size: 0.86rem; }

  /* ---- Territorio: statistiche in tre colonne compatte ---- */
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin-top: 2rem; }
  .stats div { padding-top: 0.75rem; }
  .stats b { font-size: clamp(1.35rem, 6vw, 1.9rem); }
  .stats span { font-size: 0.66rem; margin-top: 0.35rem; line-height: 1.35; }
}
