/* ============================================================
   VETRINA IMMOBILIARE ZEN — foglio di stile
   ------------------------------------------------------------
   PALETTE: cambia SOLO i valori qui sotto per allineare
   il sito ai colori del tuo logo. Tutto il resto si adatta.
   ============================================================ */

:root {
  /* --- colori --- */
  --ink:        #0C1F1B;   /* verde-nero: fondali scuri, titoli */
  --ink-soft:   #17332D;   /* verde profondo: superfici scure secondarie */
  --paper:      #F2F3F1;   /* fondo chiaro principale */
  --paper-2:    #E7EAE7;   /* fondo chiaro alternato */
  --line:       #C9D0CC;   /* filetti e bordi */
  --brand:      #2E6A59;   /* colore primario (bottoni, link) */
  --brand-hi:   #3C8873;   /* hover del primario */
  --accent:     #B98A2E;   /* accento caldo, usato con parsimonia */
  --text:       #1B2422;   /* testo corrente */
  --text-soft:  #5C6764;   /* testo secondario */
  --on-dark:    #EDF1EE;   /* testo su fondo scuro */
  --on-dark-soft:#9FB0AA;

  /* --- tipografia --- */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* --- misure --- */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --sect: clamp(72px, 10vw, 140px);
}

/* ---------- reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- tipografia ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-soft); max-width: 56ch; }

/* etichetta monospazio: firma grafica ricorrente */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}

/* ---------- struttura ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .lead { color: var(--on-dark-soft); }
.section--dark .eyebrow { color: var(--accent); }

.grid-2 { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

.head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hi); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost { border-color: rgba(237,241,238,.35); color: var(--on-dark); }
.section--dark .btn--ghost:hover { border-color: var(--on-dark); }
.btn .arw { transition: transform .25s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- navigazione ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(242,243,241,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.05rem; }
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.brand__name { font-family: var(--display); font-size: 1.32rem; color: var(--ink); letter-spacing: -.01em; }
.brand__tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.nav__links { display: none; gap: 2rem; }
@media (min-width: 940px) { .nav__links { display: flex; } }
.nav__links a {
  text-decoration: none; font-size: .9rem; color: var(--text-soft);
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.nav .btn { padding: .7rem 1.15rem; font-size: .88rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(44px, 6vw, 68px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { margin-bottom: 1.4rem; }

/* barra dati sotto l'hero */
.facts { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 1.7rem 1.4rem 1.7rem 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
@media (max-width: 799px) { .fact:nth-child(2n) { border-right: 0; padding-right: 0; } .fact { padding-left: 0; } }
.fact__n { font-family: var(--display); font-size: 1.9rem; color: var(--ink); display: block; line-height: 1.1; }
.fact__l { font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-soft); }

/* ---------- mockup hero (costruito in CSS) ---------- */
.mock { position: relative; }
.mock__win {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 26px 60px -30px rgba(12,31,27,.45);
  overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock__url { font-family: var(--mono); font-size: .62rem; color: var(--text-soft); margin-left: .6rem; }
.mock__hero { height: 168px; background: linear-gradient(160deg, var(--ink-soft), var(--brand)); position: relative; }
.mock__hero::after {
  content: "In vendita · Marina di Grosseto";
  position: absolute; left: 18px; bottom: 16px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.mock__card { aspect-ratio: 4/3.4; background: var(--paper-2); border-radius: 2px; position: relative; }
.mock__card::after {
  content: ""; position: absolute; left: 8px; right: 30%; bottom: 8px; height: 4px; background: var(--line); border-radius: 2px;
}
/* pannello "record" sovrapposto */
.mock__panel {
  position: absolute; right: -8px; bottom: -30px; width: min(290px, 78%);
  background: var(--ink); color: var(--on-dark); border-radius: 4px; padding: 1.1rem 1.2rem;
  box-shadow: 0 24px 50px -22px rgba(12,31,27,.6);
}
@media (max-width: 999px) { .mock__panel { right: 0; bottom: -22px; } }
.mock__panel h4 { margin: 0 0 .8rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.mock__row { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .68rem; padding: .38rem 0; border-bottom: 1px dashed rgba(237,241,238,.16); }
.mock__row:last-child { border-bottom: 0; }
.mock__row span:first-child { color: var(--on-dark-soft); }

/* ---------- flusso "una volta / ovunque" ---------- */
.flow { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow__item {
  border: 1px solid rgba(237,241,238,.18); border-radius: 3px; padding: 1.3rem 1.2rem 1.5rem;
}
.flow__item--src { background: var(--brand); border-color: var(--brand); }
.flow__k { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .7rem; }
.flow__item--src .flow__k { color: rgba(255,255,255,.85); }
.flow__t { font-family: var(--display); font-size: 1.22rem; color: var(--on-dark); display: block; margin-bottom: .35rem; }
.flow__d { font-size: .88rem; color: var(--on-dark-soft); margin: 0; }
.flow__item--src .flow__d { color: rgba(255,255,255,.85); }

/* ---------- elenco funzioni ---------- */
.feats { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { padding: 2rem 1.6rem 2.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .feat { border-right: 1px solid var(--line); padding-left: 1.6rem; } .feat:nth-child(2n) { border-right: 0; } }
@media (min-width: 1060px) { .feat:nth-child(2n) { border-right: 1px solid var(--line); } .feat:nth-child(3n) { border-right: 0; } }
.feat__k { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--brand); display: block; margin-bottom: 1rem; }
.feat h3 { margin-bottom: .5rem; }
.feat p { font-size: .93rem; color: var(--text-soft); margin: 0; }

/* ---------- LA SCHEDA (elemento firma) ---------- */
.sheet {
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(12,31,27,.4);
}
.sheet__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem clamp(18px,3vw,32px); border-bottom: 1px solid var(--ink); }
.sheet__title { font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
.sheet__ref { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--text-soft); text-transform: uppercase; }
.sheet__body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .sheet__body { grid-template-columns: 1fr 1fr; } }
.grp { padding: 1.5rem clamp(18px,3vw,32px) 1.7rem; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .grp:nth-child(2n+1) { border-right: 1px solid var(--line); } }
.grp__h { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.grp__l { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.4rem; }
.grp__l li { font-size: .85rem; color: var(--text-soft); padding: .18rem 0; break-inside: avoid; }
.sheet__foot { padding: 1.3rem clamp(18px,3vw,32px); display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.chip {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid var(--line); padding: .42rem .7rem; color: var(--text-soft); border-radius: 2px;
}
.chip--on { border-color: var(--brand); color: var(--brand); }

/* ---------- passi ---------- */
.steps { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 2.2rem 1.5rem 2.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .step { border-right: 1px solid var(--line); padding-left: 1.5rem; } .step:last-child { border-right: 0; } }
.step__n { font-family: var(--display); font-size: 2.6rem; color: var(--line); line-height: 1; display: block; margin-bottom: .8rem; }
.step p { font-size: .93rem; color: var(--text-soft); margin: .5rem 0 0; }

/* ---------- CTA finale ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lead { margin-inline: auto; margin-top: 1.2rem; }
.cta .btn-row { justify-content: center; }

/* ---------- form ---------- */
.form { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .6rem 0; transition: border-color .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--brand); }
.field textarea { resize: vertical; min-height: 110px; }
.consent { grid-column: 1/-1; display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--text-soft); }
.consent input { margin-top: .25rem; accent-color: var(--brand); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-soft); padding-block: clamp(48px, 6vw, 76px) 2rem; font-size: .88rem; }
.footer a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(237,241,238,.25); }
.footer a:hover { border-bottom-color: var(--accent); }
.footer__grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: .22rem 0; }
.footer__bar { border-top: 1px solid rgba(237,241,238,.14); padding-top: 1.4rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: rgba(159,176,170,.7); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* ---------- animazioni di ingresso ---------- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   AGGIUNTA — icone a tratto sottile nei blocchi funzione
   ============================================================ */
.feat__icon { display: block; color: var(--brand); margin-bottom: .95rem; }
.feat__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.feat__icon + .feat__k { margin-bottom: .65rem; }

/* ============================================================
   AGGIUNTA — sezione screenshot ("Guardala da dentro")
   ============================================================ */
.shots { border-top: 1px solid var(--line); }
.shot {
  display: grid; gap: clamp(28px, 4vw, 60px);
  grid-template-columns: 1fr; align-items: center;
  padding-block: clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .shot { grid-template-columns: 1.1fr .9fr; }
  .shot__media { order: 1; }
  .shot__text  { order: 2; }
  .shot--flip .shot__media { order: 2; }
  .shot--flip .shot__text  { order: 1; }
}
.shot__text h3 { margin-bottom: .7rem; }
.shot__text p { font-size: .95rem; color: var(--text-soft); margin: 0; }
.shot__k {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); display: block; margin-bottom: .9rem;
}
.shot__frame {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; box-shadow: 0 26px 64px -36px rgba(12,31,27,.45);
}
.shot__frame img { width: 100%; height: auto; display: block; }
/* segnaposto: si toglie quando inserisci lo screenshot vero */
.shot__ph {
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--paper-2) 0 10px, var(--paper) 10px 20px);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-soft); padding: 1.5rem;
}