/* ============================================================
   Arkedra Italia — style.css
   Brand: blu / ciano (dal logo)
   ============================================================ */

:root {
  --cyan:        #29b6e8;   /* ciano logo — colore brand / interazione */
  --cyan-light:  #4fc6ef;
  --blue-deep:   #1c7fa3;   /* blu scuro logo */
  --warm:        #e08a3c;   /* accento caldo (ambra/terracotta) */
  --warm-deep:   #c4702a;

  /* Oro/ocra — accento editoriale premium (ispirazione riferimento) */
  --gold:        #c79a3e;
  --gold-soft:   #d8b65e;
  --gold-deep:   #a87f2c;
  --gold-tint:   #f6eed7;   /* sfondo tenue per chip/icone */

  /* Verde smeraldo — numeri positivi / guadagni */
  --green:       #0e9f6e;
  --green-deep:  #0a7d56;
  --green-tint:  #e7f6ef;

  --ink:         #1a1410;   /* testo scuro caldo / sfondi dark */
  --ink-soft:    #2a221b;
  --bg:          #fffdfb;   /* bianco caldo */
  --bg-alt:      #f7efe6;   /* crema calda */
  --text:        #2a2520;
  --text-soft:   #6b6259;
  --line:        #ece1d4;
  --white:       #ffffff;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -24px rgba(80, 60, 30, 0.20);
  --shadow-sm: 0 6px 20px -12px rgba(80, 60, 30, 0.22);
  --shadow-gold: 0 14px 36px -16px rgba(199, 154, 62, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Tipografia condivisa ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.section-body {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-soft);
  max-width: 60ch;
  margin-bottom: 1rem;
}
.section-body strong { color: var(--text); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(41, 182, 232, 0.6);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-video {
  height: 90px;
  width: auto;
  display: block;
  border-radius: 14px;
  mix-blend-mode: multiply;
}
@media (max-width: 480px) { .nav-video { height: 64px; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  background: var(--cyan);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--blue-deep); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8.5rem 1.5rem 4.5rem;
  background: radial-gradient(120% 120% at 80% 0%, #fbf0e3 0%, #fffdfb 55%);
}
.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-head { max-width: 760px; margin-bottom: 2.2rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.3rem;
}
.hero-brandline {
  display: block;
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  margin-top: 0.55rem;
}

.hero-positioning {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 auto 1.6rem;
}
.hero-positioning strong { color: var(--ink); font-weight: 700; }

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.hero-chips li {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* Calcolatore dentro la hero */
.hero-calc {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.calc-head { text-align: center; margin-bottom: 1.4rem; }
.calc-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.calc-intro { font-size: 1rem; color: var(--text-soft); max-width: 48ch; margin: 0 auto; }
.hero-calc .calc-card { max-width: 680px; margin: 0 auto; text-align: left; }

.scroll-indicator {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}
.scroll-indicator span {
  width: 4px; height: 8px;
  margin-top: 7px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrolldot 1.5s infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   SEZIONI GENERICHE
   ============================================================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
.section-inner, .section-head { max-width: 820px; }
.section-head { margin-bottom: 2.2rem; }

/* ---------- Validazione: card citazioni ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}
.quote-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.quote-card p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.35;
}
.quote-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quote-card a {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}
.quote-card a:hover { color: var(--blue-deep); }
.disclaimer-line {
  font-size: 0.82rem;
  color: var(--text-soft);
  max-width: 70ch;
  font-style: italic;
}

/* ---------- Metodo: steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 40px -28px rgba(28,127,163,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.55;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.step p { color: var(--text-soft); font-size: 1rem; }

/* ---------- Statistiche (dark) ---------- */
.section-stats {
  max-width: none;
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue-deep) 130%);
  color: var(--white);
  padding: 4.5rem 1.5rem;
}
.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--cyan-light);
}
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--cyan-light);
  margin-top: 0.2rem;
}
.stat-label {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 22ch;
}
.stats-note {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* ---------- Calcolatore ---------- */
.calc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 640px;
}
.calc-form { display: flex; flex-direction: column; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.field input, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41,182,232,0.15);
}

/* Toggle proprietario / investitore */
.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem;
}
.toggle-opt { position: relative; cursor: pointer; }
.toggle-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle-opt span {
  display: block;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s;
}
.toggle-opt input:checked + span {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 6px 16px -6px rgba(41,182,232,0.6);
}
.toggle-group.toggle-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) {
  .toggle-group.toggle-3 { grid-template-columns: 1fr; }
}
.consent.consent-inline { align-items: center; font-size: 0.92rem; }
.consent.consent-inline input { margin-top: 0; }
.field-opt {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--gold-deep);
  background: var(--gold-tint); border-radius: 999px;
  padding: 0.1rem 0.5rem; margin-left: 0.4rem;
}
#costi-rendita-field[hidden] { display: none; }

/* Risultato */
.calc-result {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px dashed var(--line);
  animation: fadein 0.5s ease;
}
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.result-headline {
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 54ch;
  margin: 0 auto 1.5rem;
}
.result-headline strong { font-weight: 800; }
#r-est-value { color: var(--gold-deep); }
#r-units { color: var(--cyan); }

/* Confronto Oggi → Frazionato */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.compare-col {
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compare-now { background: var(--bg-alt); border: 1px solid var(--line); }
.compare-fraz {
  background: linear-gradient(160deg, #eafaff 0%, #d6f1fb 100%);
  border: 1.5px solid var(--cyan);
}
.compare-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.compare-fraz .compare-tag { color: var(--blue-deep); }
.compare-metric { display: flex; flex-direction: column; gap: 0.15rem; }
.compare-label { font-size: 0.82rem; color: var(--text-soft); }
.compare-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.2;
}
.compare-fraz .compare-value { color: var(--blue-deep); }
.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--cyan);
  font-weight: 700;
}

/* Delta evidenziati */
.deltas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.delta {
  text-align: center;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 0.8rem;
}
.delta-plus {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #34d399;   /* verde smeraldo chiaro su sfondo scuro */
  line-height: 1.1;
}
.delta-cap {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.3rem;
}

.result-rationale {
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}
.result-disclaimer {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-style: italic;
  margin: 0.5rem 0 1.3rem;
}

/* ---------- Contatti / lead form ---------- */
.contatti-inner { max-width: 720px; }
.lead-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.consent input { margin-top: 0.25rem; accent-color: var(--cyan); }
.consent a { color: var(--cyan); text-decoration: underline; }
.lead-feedback {
  text-align: center;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-info p { font-size: 0.9rem; line-height: 1.5; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--cyan-light); }
.footer-links a:hover { color: var(--white); }
.footer-copy {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ---------- Trend di mercato (in validazione) ---------- */
.market-trend {
  max-width: var(--maxw);
  margin: 3.5rem auto 0;
}
.market-trend-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--ink);
}
.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.trend-stat {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
}
.trend-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--cyan);
}
.trend-suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cyan);
}
.trend-label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.35;
}
.trend-quote {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  text-align: center;
}
.trend-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.trend-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--blue-deep);
}
.trend-quote a {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--cyan);
}
.trend-quote a:hover { color: var(--blue-deep); }
.market-trend-thesis {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.02rem;
  color: var(--text-soft);
}

/* ---------- Riga trend nel risultato calcolatore ---------- */
.result-trend {
  font-size: 0.92rem;
  color: var(--blue-deep);
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}
.result-trend:empty { display: none; }

/* ---------- Casi studio ---------- */
.cases-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.case-head { margin-bottom: 1rem; }
.case-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.case-tag {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
}
.case-intro {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}
.case-metrics {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  border-top: 1px solid var(--line);
}
.case-metrics li {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.case-metrics li > span:first-child { color: var(--text-soft); }
.case-from { color: #8a8177; text-decoration: line-through; }
.case-arrow { color: var(--cyan); }
.case-to { font-weight: 700; color: var(--ink); }
.case-deltas {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
}
.case-delta {
  background: var(--ink);
  color: #34d399;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  text-align: center;
}
.case-delta small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.2rem;
}
.cases-note {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-soft);
}

/* ---------- Campo: hint + messaggio non frazionabile ---------- */
.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.calc-nofraz {
  margin-top: 1.5rem;
  background: #fdf3ec;
  border: 1px solid var(--warm);
  border-left: 4px solid var(--warm);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.calc-nofraz a { color: var(--warm-deep); font-weight: 600; text-decoration: underline; }

/* ---------- Blocco investimento / ritorno ristrutturazione ---------- */
.reno {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  margin-bottom: 1rem;
}
.reno-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.reno-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.reno-item { display: flex; flex-direction: column; }
.reno-label { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 0.25rem; }
.reno-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.1;
}
.reno-pos { color: var(--green-deep); }
.reno-sub { font-size: 0.72rem; color: var(--text-soft); margin-top: 0.15rem; }
.reno-note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-soft);
  margin: 0;
}
.reno-investor { border-left: 3px solid var(--gold); }

/* Riepilogo costi lavori + detrazione */
.reno-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.reno-top .reno-title { margin-bottom: 0; }
.reno-livello { font-size: 0.85rem; color: var(--text-soft); white-space: nowrap; }
.reno-livello strong { color: var(--ink); font-weight: 700; }
.reno-costs {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.reno-costs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.reno-costs li:last-child { border-bottom: none; }
.rc-label { font-size: 0.9rem; color: var(--text-soft); }
.rc-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.reno-costs .rc-detr { background: #eef9f3; }
.rc-detr .rc-label { color: var(--green-deep); font-weight: 600; }
.rc-minus { color: var(--green-deep); }
.reno-costs .rc-net { background: var(--bg-alt); }
.rc-net .rc-label { color: var(--ink); font-weight: 700; }
.rc-net .rc-val { font-size: 1.25rem; }
.reno-detr-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
}
.reno-detr-note strong { color: var(--ink); }
.reno-detr-note .reno-pos { color: var(--green-deep); }

/* ---------- Zone in crescita (immobiliare.it) ---------- */
.trend-zones {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.trend-zones strong { color: var(--warm-deep); white-space: nowrap; }

/* ============================================================
   REVEAL (animazioni GSAP — stato iniziale gestito da JS)
   ============================================================ */
.reveal { will-change: transform, opacity; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding-top: 5.5rem; }
}

@media (max-width: 760px) {
  .nav-links { gap: 0.9rem; }
  .nav-links li:not(:last-child) { display: none; }
  .section { padding: 4.5rem 1.2rem; }
  .field-row { grid-template-columns: 1fr; }
  .calc-card, .lead-form { padding: 1.6rem; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); padding: 0.2rem 0; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { align-items: center; }
  .cases-grid { grid-template-columns: 1fr; }
  .trend-grid { grid-template-columns: 1fr; }
  .reno-grid { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* ============================================================
   NUOVI COMPONENTI (ispirazione layout "app" — toni chiari)
   ============================================================ */

/* ---------- Stat band (metriche credibilità) ---------- */
.metric-band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.metric-top { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.55rem; }
.metric-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.metric-dot.gold { background: var(--gold); }
.metric-eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-soft);
}
.metric-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--ink);
  line-height: 1;
}
.metric-num .metric-suffix { font-size: 0.95rem; font-weight: 700; color: var(--gold-deep); margin-left: 0.1rem; }
.metric-label { margin-top: 0.45rem; font-size: 0.82rem; color: var(--text-soft); }
.metric-note {
  max-width: var(--maxw);
  margin: 0.6rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.78rem; font-style: italic; color: var(--text-soft);
}

/* ---------- Strumenti (tool cards) ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.tool-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-tint);
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.tool-sub { font-size: 0.9rem; color: var(--text-soft); }
.tool-go { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--cyan); }
.tool-card:hover .tool-go { color: var(--blue-deep); }

/* ---------- Switch strumenti (calcolatori) ---------- */
.tool-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem;
  margin: 0 auto 1.6rem;
  max-width: 640px;
}
.tool-switch button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 0.6rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tool-switch button.active {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 6px 16px -6px rgba(41, 182, 232, 0.55);
}
.tool-panel[hidden] { display: none; }

/* ---------- Calcolatore Costi: risultato ---------- */
.costi-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.costi-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.costi-list li > span:first-child { color: var(--text-soft); }
.costi-list li > span:last-child { font-weight: 600; color: var(--ink); }
.costi-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.2rem;
  padding: 1.1rem 1.3rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}
.costi-total span:first-child { font-weight: 600; letter-spacing: 0.02em; }
.costi-total-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold-soft);
}
.costi-disclaimer {
  font-size: 0.78rem; font-style: italic; color: var(--text-soft);
  margin: 1rem 0 1.2rem;
}

/* ---------- Casi: badge stile progetto ---------- */
.case-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.9rem;
}
.case-loc {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}

/* ---------- Consulente (domande suggerite) ---------- */
.consulente-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.consulente-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.4rem; }
.consulente-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-deep);
}
.consulente-icon svg { width: 24px; height: 24px; }
.consulente-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.consulente-head p { font-size: 0.9rem; color: var(--text-soft); }
.suggested-q { display: flex; flex-direction: column; gap: 0.7rem; }
.suggested-q a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.suggested-q a:hover { border-color: var(--gold-soft); transform: translateX(3px); background: var(--gold-tint); }
.suggested-q a::before {
  content: "›";
  color: var(--gold-deep);
  font-weight: 800;
  font-size: 1.1rem;
}
.consulente-cta { margin-top: 1.5rem; }

/* ---------- Selettore unità (frazionamento) ---------- */
.unit-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 1.5rem;
}
.unit-select-label {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}
.unit-select button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.unit-select button:hover { border-color: var(--gold-soft); color: var(--ink); }
.unit-select button.active {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 6px 16px -6px rgba(41, 182, 232, 0.5);
}

/* ---------- Ripartizione per unità ---------- */
.units-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.4rem 0 1rem; }
.units-list-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft);
}
.unit-row {
  display: grid;
  grid-template-columns: auto auto 1fr 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
}
.unit-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
}
.unit-size { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.unit-cell { display: flex; flex-direction: column; line-height: 1.2; }
.unit-cell small { font-size: 0.68rem; color: var(--text-soft); }
.unit-cell { font-weight: 600; color: var(--ink); }
.unit-note {
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}

/* ---------- Mobile: nuovi componenti ---------- */
@media (max-width: 900px) {
  .metric-band { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .unit-row { grid-template-columns: auto 1fr; }
  .unit-row .unit-size { text-align: right; }
  .unit-row .unit-cell { grid-column: span 1; }
}
@media (max-width: 760px) {
  .metric-band { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; padding: 0 1.2rem 1rem; }
  .tool-switch { max-width: none; }
  .consulente-card { padding: 1.5rem; }
  .costi-total { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
}

/* ============================================================
   GRAFICO — ritorno dell'investimento nel tempo
   ============================================================ */
.roi-block {
  margin: 0.4rem 0 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.4rem 1.3rem;
}
.roi-head { margin-bottom: 1rem; }
.roi-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.roi-sub { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

.roi-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; margin-bottom: 0.7rem; }
.roi-legend span { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--text-soft); }
.roi-legend i { width: 18px; height: 0; flex: none; }
.roi-legend .lg-rent { border-top: 3px solid var(--cyan); }
.roi-legend .lg-invest { border-top: 3px dashed var(--gold-deep); }
.roi-legend .lg-break { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }

.roi-chart { width: 100%; }
.roi-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.roi-grid { stroke: var(--line); stroke-width: 1; }
.roi-area { stroke: none; }
.roi-line { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.roi-invest-line { stroke: var(--gold-deep); stroke-width: 2; stroke-dasharray: 6 5; }
.roi-guide { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.65; }
.roi-dot { fill: var(--green); stroke: var(--white); stroke-width: 3; }
.roi-axis { fill: var(--text-soft); font-family: var(--font-body); font-size: 12px; }
.roi-invest-label { fill: var(--gold-deep); font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.roi-break-label { fill: var(--green-deep); font-family: var(--font-display); font-size: 12px; font-weight: 700; }

.roi-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.3rem;
}
.roi-stat {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-align: center;
}
.roi-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
}
.roi-stat-num.roi-pos { color: var(--green-deep); }
.roi-stat-cap { display: block; font-size: 0.78rem; color: var(--text-soft); margin-top: 0.3rem; }

.roi-aside {
  margin: 1.1rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-deep);
}
@media (max-width: 460px) {
  .roi-readout { grid-template-columns: 1fr; }
}

/* ============================================================
   POP-UP REPORT (email gate) — sfondo sfocato e oscurato
   ============================================================ */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.report-modal[hidden] { display: none; }
.report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: report-fade 0.4s ease both;
}
.report-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(26, 20, 16, 0.6);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  animation: report-pop 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes report-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes report-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.report-close {
  position: absolute;
  top: 0.7rem; right: 0.95rem;
  background: none; border: none;
  font-size: 1.7rem; line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s;
}
.report-close:hover { color: var(--ink); }
.report-eyebrow {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}
.report-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.55rem;
}
.report-sub { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.report-form { display: flex; flex-direction: column; gap: 0.7rem; }
.report-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  text-align: center;
}
.report-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41, 182, 232, 0.15);
}
.report-feedback {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-tint);
  border-radius: 12px;
  padding: 0.85rem;
}
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .report-backdrop, .report-card { animation: none; }
}

/* ============================================================
   RISULTATO A DUE SCENARI (Rivendi / Affitti)
   ============================================================ */
.scenario-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.1rem;
}
.scenario-sell { border-top: 4px solid var(--gold); }
.scenario-rent { border-top: 4px solid var(--cyan); }
.scenario-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.scenario-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px; display: grid; place-items: center;
}
.scenario-icon svg { width: 24px; height: 24px; }
.scenario-sell .scenario-icon { background: var(--gold-tint); color: var(--gold-deep); }
.scenario-rent .scenario-icon { background: #e6f7fd; color: var(--blue-deep); }
.scenario-eyebrow {
  display: block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-soft);
}
.scenario-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.scenario-price { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1rem; }
.scenario-price strong { color: var(--ink); font-weight: 700; }
.scenario-price small { font-size: 0.78rem; }

.scenario-bars { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.1rem; }
.sbar { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.8rem; align-items: center; }
.sbar-label { font-size: 0.8rem; color: var(--text-soft); }
.sbar-val { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-align: right; }
.sbar-track { grid-column: 1 / -1; position: relative; height: 12px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.sbar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; transition: width 0.7s cubic-bezier(0.2,0.8,0.3,1); }
.sbar-now { background: #cbb9a6; }
.sbar-fraz-gold { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.sbar-fraz-cyan { background: linear-gradient(90deg, var(--cyan-light), var(--cyan)); }

.scenario-delta {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.9rem 1.1rem; border-radius: var(--radius);
  background: var(--ink); margin-bottom: 0.9rem;
}
.scenario-delta .delta-plus { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.scenario-delta .delta-cap { font-size: 0.82rem; color: rgba(255,255,255,0.78); }
.delta-gold { color: var(--gold-soft); }
.delta-cyan { color: var(--cyan-light); }

.scenario-inv {
  display: grid; gap: 0.5rem;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.9rem;
}
.scenario-inv[hidden] { display: none; }
.inv-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.inv-row > span:first-child { color: var(--text-soft); }
.inv-row > span:last-child { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.inv-row .reno-pos { color: var(--green-deep); }

.scenario-aside {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 0.95rem; color: var(--gold-deep); margin: 0;
}
.scenario-yield {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  background: var(--green-tint); border-radius: 12px;
  padding: 0.8rem 1.1rem; margin-bottom: 1.1rem;
}
.yield-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--green-deep); line-height: 1; }
.yield-cap { font-size: 0.82rem; color: var(--green-deep); }

/* ---------- Card NETTO bloccato (gancio sopralluogo) ---------- */
.netto-lock {
  position: relative; overflow: hidden;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gold-soft);
  background: linear-gradient(160deg, #fffdf7 0%, var(--gold-tint) 100%);
  padding: 1.8rem 1.5rem;
  margin: 1.4rem 0 1.2rem;
}
.netto-lock-eyebrow {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.netto-lock-title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); margin-bottom: 0.8rem; }
.netto-lock-title em { font-style: italic; color: var(--gold-deep); }
.netto-lock-figure { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.netto-blur {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--ink);
  filter: blur(7px); user-select: none;
}
.netto-lock-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--white);
  border: 1px solid var(--gold-soft); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.netto-lock-badge svg { width: 14px; height: 14px; }
.netto-lock-body { font-size: 0.95rem; color: var(--text-soft); max-width: 52ch; margin: 0 auto 1.3rem; }
.netto-lock-body strong { color: var(--ink); }
.netto-lock .btn { max-width: 520px; margin: 0 auto; }

/* ---------- Recap calcolo + rassicurazione prenotazione ---------- */
.calc-recap {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--blue-deep);
  background: #e6f7fd; border: 1px solid #bfe9f7;
  border-radius: 12px; padding: 0.7rem 1rem; margin: 0;
}
.calc-recap[hidden] { display: none; }
.calc-recap::before { content: "\21B3"; font-weight: 800; color: var(--cyan); }

.booking-reassure {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1.6rem 0 0; padding: 0;
}
.booking-reassure li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45rem 0.95rem; box-shadow: var(--shadow-sm);
}
.booking-reassure li::before { content: "\2713"; color: var(--green); font-weight: 800; }

/* ---------- Honeypot anti-spam ---------- */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* ---------- Feedback form ok / err ---------- */
.lead-feedback.ok, .report-feedback.ok { color: var(--green-deep); background: var(--green-tint); }
.lead-feedback.err, .report-feedback.err { color: var(--warm-deep); background: #fdf3ec; }
.lead-feedback.err a, .report-feedback.err a { color: var(--warm-deep); text-decoration: underline; }

@media (max-width: 460px) {
  .netto-blur { font-size: 1.6rem; }
  .scenario-delta .delta-plus { font-size: 1.3rem; }
}

/* ---------- Affitti brevi (tab: tabella di mercato + mini-form) ---------- */
.shortlet-intro { margin-bottom: 1.3rem; }
.shortlet-lead {
  font-size: 1rem; color: var(--text-soft);
  max-width: 56ch; margin: 0 auto 1.2rem; text-align: center;
}
.shortlet-lead strong { color: var(--ink); }
.shortlet-headline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.sh-stat {
  text-align: center; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 0.6rem;
}
.sh-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; color: var(--cyan); line-height: 1.1;
}
.sh-cap { display: block; font-size: 0.74rem; color: var(--text-soft); margin-top: 0.25rem; }

.shortlet-table-wrap { overflow-x: auto; margin-bottom: 0.6rem; }
.shortlet-table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.shortlet-table thead th {
  text-align: left; font-family: var(--font-display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text-soft); background: var(--bg-alt);
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line);
}
.shortlet-table tbody td {
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink);
}
.shortlet-table tbody tr:last-child td { border-bottom: none; }
.shortlet-table tbody td:first-child { font-weight: 600; }
.shortlet-table .sh-rev { font-weight: 800; color: var(--green-deep); white-space: nowrap; }
.shortlet-disclaimer {
  font-size: 0.8rem; font-style: italic; color: var(--text-soft); margin: 0 0 1.6rem;
}

.shortlet-form-block { border-top: 1px dashed var(--line); padding-top: 1.5rem; }
.shortlet-form-title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--ink); margin-bottom: 0.4rem; text-align: center;
}
.shortlet-form-sub {
  font-size: 0.92rem; color: var(--text-soft);
  max-width: 48ch; margin: 0 auto 1.3rem; text-align: center;
}
@media (max-width: 520px) {
  .shortlet-headline { gap: 0.5rem; }
  .sh-num { font-size: 1.1rem; }
  .sh-cap { font-size: 0.68rem; }
  .shortlet-table { font-size: 0.85rem; }
  .shortlet-table thead th, .shortlet-table tbody td { padding: 0.55rem 0.6rem; }
  .reno-top { flex-direction: column; gap: 0.2rem; }
}

/* ============================================================
   RESTYLE PREMIUM — "Racconto light + Strumento dark"
   ============================================================ */

/* ---------- HERO H1 dinamica (reveal + rotator slot-machine) ---------- */
.hero-title { overflow: visible; }
.ht-static { display: block; }
.ht-rotate {
  display: inline-block;
  height: 1.12em;
  overflow: hidden;
  vertical-align: bottom;
  margin-top: 0.12em;
}
.ht-rotate-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.ht-rotate b {
  height: 1.12em;
  line-height: 1.12em;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(92deg, var(--gold-deep), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal a parole della prima riga (stato gestito da JS .is-armed) */
.hero-title .word {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-title.is-armed .word {
  opacity: 0;
  transform: translateY(0.5em);
}
.hero-title.is-revealed .word {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .ht-rotate-track { transition: none; }
  .hero-title.is-armed .word { opacity: 1; transform: none; }
}

/* ---------- CONSOLE DARK — lo strumento (token override scoped) ---------- */
.console {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  background:
    radial-gradient(130% 120% at 50% -10%, #1a140d 0%, #100c08 55%, #0c0906 100%);
  border: 1px solid rgba(199, 154, 62, 0.28);
  border-radius: 30px;
  padding: 1.7rem 1.4rem 2rem;
  box-shadow:
    0 50px 120px -50px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(216, 182, 94, 0.45), rgba(216, 182, 94, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Token ridefiniti dentro la console: i componenti si ri-tematizzano da soli */
.console.is-dark {
  --white: #1b1611;
  --bg-alt: #131009;
  --bg: #100c08;
  --ink: #f5efe5;
  --text: #f5efe5;
  --text-soft: #a89e8e;
  --line: rgba(245, 239, 229, 0.12);
  --blue-deep: #5cc8ef;
  --gold-deep: #d8b65e;
  --green: #34d399;
  --green-deep: #34d399;
  --green-tint: rgba(52, 211, 153, 0.13);
  --gold-tint: rgba(199, 154, 62, 0.14);
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 12px 30px -20px rgba(0, 0, 0, 0.7);
  color: var(--text);
}
/* La console È la card: il calc-card interno diventa trasparente */
.console .calc-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: none;
}
.console .calc-head { margin-bottom: 1.2rem; }
.console .section-label { color: var(--gold-soft); }
.console .calc-heading { color: var(--ink); }
.console .calc-intro { color: var(--text-soft); }

/* Elementi che usavano --ink come SFONDO scuro: vanno ridisegnati su dark */
.console .scenario-delta {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(216, 182, 94, 0.25);
}
.console .scenario-yield { background: var(--green-tint); border: 1px solid rgba(52, 211, 153, 0.25); }
.console .netto-lock {
  background: linear-gradient(160deg, rgba(216, 182, 94, 0.12) 0%, rgba(199, 154, 62, 0.05) 100%);
  border-color: rgba(216, 182, 94, 0.35);
}
.console .netto-lock-badge { background: rgba(0, 0, 0, 0.4); }
.console .calc-nofraz { background: rgba(224, 138, 60, 0.12); border-color: rgba(224, 138, 60, 0.4); color: var(--ink); }
.console .field input,
.console .field select {
  color: var(--ink);
  background: #0d0a06;
}
.console .field select option { color: #16120e; background: #fff; }
.console .toggle-opt input:checked + span,
.console .tool-switch button.active,
.console .unit-select button.active {
  background: linear-gradient(92deg, var(--gold), var(--gold-soft));
  color: #16120e;
  box-shadow: 0 8px 22px -10px rgba(199, 154, 62, 0.7);
}
.console .field input:focus,
.console .field select:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(216, 182, 94, 0.22);
}
.console .btn-primary {
  background: linear-gradient(92deg, var(--gold), var(--gold-soft));
  color: #16120e;
  box-shadow: 0 14px 34px -12px rgba(199, 154, 62, 0.6);
}
.console .btn-primary:hover { filter: brightness(1.06); background: linear-gradient(92deg, var(--gold), var(--gold-soft)); }
.console .roi-block,
.console .reno-costs { background: rgba(0, 0, 0, 0.25); }
.console .reno-costs .rc-detr { background: rgba(52, 211, 153, 0.1); }
.console .reno-costs .rc-net { background: rgba(216, 182, 94, 0.08); }
.console .scenario-rent .scenario-icon { background: rgba(41, 182, 232, 0.16); color: var(--cyan-light); }
.console .result-disclaimer a { color: var(--cyan-light); }

/* ---------- DASHBOARD KPI (in cima al risultato) ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 239, 229, 0.1);
  border-radius: 16px;
  padding: 0.95rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.kpi-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.kpi-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi-gold .kpi-num { color: var(--gold-soft); }
.kpi-cyan .kpi-num { color: var(--cyan-light); }
.kpi-green .kpi-num { color: #34d399; }
.kpi-sub { font-size: 0.68rem; color: var(--text-soft); }
@media (max-width: 620px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- MARQUEE citazioni (scorre destra → sinistra) ---------- */
.quotes-marquee {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.quotes-marquee-head {
  max-width: var(--maxw);
  margin: 0 auto 0.4rem;
  padding: 0 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
}
.mq-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: mq-scroll 46s linear infinite;
}
.quotes-marquee:hover .mq-track,
.quotes-marquee:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mq-quote {
  flex: 0 0 auto;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.mq-quote .mq-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
}
.mq-quote .mq-cite {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.mq-quote .mq-cite::before { content: "— "; }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .quotes-marquee { -webkit-mask-image: none; mask-image: none; }
  .quotes-marquee .mq-track > .mq-quote:nth-child(n+5) { display: none; }
}

/* ---------- CTA finale: report per indirizzo (sfondo blur) ---------- */
.section-report {
  position: relative;
  overflow: hidden;
  max-width: none;
  background: radial-gradient(120% 120% at 50% 0%, #fbf3e6 0%, var(--bg) 60%);
}
.report-cta {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Anteprima report sfocata dietro la card */
.report-blur-bg {
  position: absolute;
  inset: -6% -2%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  filter: blur(12px) saturate(1.05);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.report-blur-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.report-blur-cell b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--gold-deep);
}
.report-blur-cell span { display: block; height: 8px; border-radius: 4px; background: var(--line); margin-top: 0.6rem; }
.report-blur-cell span.short { width: 60%; }
.report-frost {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -40px rgba(26, 20, 16, 0.4);
  padding: 2.6rem 2rem;
  text-align: center;
}
.report-frost .section-label { color: var(--gold-deep); }
.report-frost .section-heading { margin-bottom: 0.8rem; }
.report-frost .section-body { margin-left: auto; margin-right: auto; }
.report-frost .booking-reassure { justify-content: center; }
.report-frost .lead-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 1.4rem;
  text-align: left;
}
.report-address {
  display: flex;
  gap: 0.6rem;
  max-width: 520px;
  margin: 1.6rem auto 0.9rem;
}
.report-address input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.report-address input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41, 182, 232, 0.15);
}
.report-address .btn { white-space: nowrap; flex: 0 0 auto; }
.report-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
  margin: 0.6rem 0 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}
.report-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.report-trust li::before { content: "\2713"; color: var(--green); font-weight: 800; }
@media (max-width: 560px) {
  .report-address { flex-direction: column; }
  .report-address .btn { width: 100%; }
  .report-blur-bg { grid-template-columns: repeat(2, 1fr); }
  .report-frost { padding: 1.8rem 1.3rem; }
}

/* ---------- Guardie anti-overflow orizzontale ---------- */
.hero-inner { width: 100%; }
.hero-head { width: 100%; max-width: 760px; }
.hero-calc { max-width: min(720px, 100%); }
.console { max-width: min(700px, 100%); }
.hero-title { max-width: 100%; overflow-wrap: break-word; }
.ht-rotate { max-width: 100%; }

/* ---------- Console: mobile ---------- */
@media (max-width: 560px) {
  .console { padding: 1.2rem 1rem 1.5rem; border-radius: 24px; }
}

/* ============================================================
   CIFRE BLOCCATE (lead gate) — solo i numeri "appetitosi" in chiaro,
   il resto sfocato finché non si richiede l'analisi gratuita.
   ============================================================ */
.fig-lock {
  filter: blur(7px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  cursor: default;
  opacity: 0.92;
  transition: filter 0.25s ease;
}
/* fallback se il numero è dentro un blocco con peso/colore proprio */
.kpi-num.fig-lock { letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) {
  .fig-lock { transition: none; }
}

/* ============================================================
   FAQ — domanda/risposta a fisarmonica (accordion nativo)
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.6rem 0 0.4rem;
}
.faq-item {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  position: relative;
  font-family: var(--font-display, var(--font-body));
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "\2212"; /* − */
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}
@media (max-width: 560px) {
  .faq-item summary { font-size: 0.96rem; padding: 0.95rem 2.6rem 0.95rem 1rem; }
  .faq-item p { font-size: 0.92rem; padding: 0 1rem 1rem; }
}

/* ---------- Validazione indirizzo (OpenStreetMap) ---------- */
.addr-status {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: 1em;
}
.addr-status.ok { color: var(--green); }
.addr-status.err { color: #e5484d; }
.field input.is-valid,
.console .field input.is-valid { border-color: var(--green); }
.field input.is-invalid,
.console .field input.is-invalid { border-color: #e5484d; }

/* Il campo indirizzo fa da àncora per il dropdown dei suggerimenti */
.field:has(.osm-suggest) { position: relative; }

/* Dropdown suggerimenti OSM (Photon): sopra console dark e modale */
.osm-suggest {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 100000;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}
.osm-item {
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #0f172a;
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
}
.osm-item:first-child { border-top: none; }
.osm-item:hover,
.osm-item.is-active { background: #eef2f7; }

/* Mappa Leaflet col puntino (compare dopo la scelta) */
.addr-map {
  height: 200px;
  margin-top: 0.7rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.addr-map .leaflet-container { font-family: var(--font-body, inherit); font-size: 0.8rem; }
.console.is-dark .addr-map { border-color: rgba(255, 255, 255, 0.14); }

/* Zona di mercato rilevata dall'indirizzo (sola lettura) */
.zona-detected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-soft);
}
.zona-detected strong { color: var(--ink); font-weight: 700; }
.zona-detected-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* L'attributo hidden deve vincere su display:flex/inline-flex dei box sopra */
[hidden] { display: none !important; }

/* Indirizzo fuori dalle città coperte → stima non disponibile */
.zona-unavailable {
  margin: 0.75rem 0 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(199, 154, 62, 0.45);
  border-left: 3px solid var(--gold-deep, #c79a3e);
  border-radius: 12px;
  background: rgba(199, 154, 62, 0.08);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
}
.zona-unavailable a { color: var(--cyan); font-weight: 600; text-decoration: underline; }
.console.is-dark .zona-unavailable { background: rgba(199, 154, 62, 0.12); }

@media (max-width: 480px) {
  .addr-map { height: 170px; }
  .osm-item { padding: 0.6rem 0.8rem; }
}

/* ---------- Nuovi campi form: mobile ---------- */
@media (max-width: 560px) {
  .lead-form .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   RIPROVA SOCIALE LIVE — "persone online" / "ultima analisi"
   Tono premium e sobrio: pill discreta, un pallino verde pulsante.
   ============================================================ */
.live-presence,
.live-lastreq {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text-soft);
}
.live-presence strong,
.live-lastreq strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* pill presenza centrata nella testata del calcolatore */
.calc-head .live-presence { margin: 0.95rem auto 0; }

.live-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: livePulse 2.2s ease-out infinite;
}
.live-dot-gold {
  background: var(--gold-deep, #c79a3e);
  animation-name: livePulseGold;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(14, 159, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); }
}
@keyframes livePulseGold {
  0% { box-shadow: 0 0 0 0 rgba(199, 154, 62, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(199, 154, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 154, 62, 0); }
}

/* netto-lock: riga "ultima analisi" sopra il bottone */
.netto-lock .live-lastreq { margin: 0 auto 0.9rem; }

/* sezione report (#contatti): striscia con le due pill */
.live-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.8rem;
  margin: 1.3rem 0 0.2rem;
}

/* variante chiara dentro la console scura: lo sfondo pill più tenue */
.console.is-dark .live-presence,
.console.is-dark .live-lastreq { background: rgba(255, 255, 255, 0.06); }

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
@media (max-width: 480px) {
  .live-presence, .live-lastreq { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
  .live-strip { flex-direction: column; align-items: center; }
}

/* ============================================================
   REVOLUT-STYLE — layer visivo/dinamico (solo estetica)
   Tipografia più grande, blob gradiente animati, hover-lift,
   micro-motion. Nessun impatto su calcoli, dati o console dark.
   ============================================================ */

/* Tipografia più imponente (firma Revolut) */
.hero-title { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.04em; line-height: 1.02; }
.section-heading { font-size: clamp(1.9rem, 4.4vw, 3.1rem); letter-spacing: -0.03em; }

/* Blob/gradienti animati dietro hero e sezioni */
.hero, .section-validazione, .section-report { position: relative; }
.hero-inner, .section-validazione > *, .section-report > * { position: relative; z-index: 1; }
.fx-layer {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.fx-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.2; will-change: transform;
  animation: fxFloat var(--fx-dur, 16s) ease-in-out infinite;
}
.fx-orb-a { background: radial-gradient(circle at 50% 50%, var(--cyan), transparent 68%); }
.fx-orb-b { background: radial-gradient(circle at 50% 50%, var(--gold-soft), transparent 68%); }
.fx-orb-c { background: radial-gradient(circle at 50% 50%, var(--green), transparent 68%); }
@keyframes fxFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(var(--fx-dx, 24px), var(--fx-dy, -28px), 0) scale(1.1); }
}
.section-report .fx-orb { opacity: 0.3; }

/* Card più arrotondate + hover-lift (Revolut) */
.tool-card, .case-card, .metric-card, .step, .consulente-card, .market-trend {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease;
  will-change: transform;
}
.tool-card:hover, .case-card:hover, .metric-card:hover, .step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(26, 20, 16, 0.13);
}
.tool-card, .case-card { border-radius: 22px; }

/* Bottoni: micro-motion */
.btn-primary { transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease; }
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 16px 34px rgba(41, 182, 232, 0.32); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

@media (prefers-reduced-motion: reduce) {
  .fx-orb { animation: none; }
  .tool-card, .case-card, .metric-card, .step { transition: none; }
}
@media (max-width: 560px) {
  .fx-orb { filter: blur(48px); opacity: 0.4; }
}

/* Fix rotatore hero al nuovo formato grande: riga propria, niente sovrapposizioni */
.hero-title { line-height: 1.06; }
.ht-rotate {
  display: block;
  height: 1.16em;
  margin-top: 0.18em;
  overflow: hidden;
}
.ht-rotate b { height: 1.16em; line-height: 1.16em; }

/* ============================================================
   REVOLUT MAX — palette vivace + tipografia grande ovunque
   + bottoni gradiente + console "fintech". Solo estetica.
   ============================================================ */
:root {
  --violet:      #7b5cff;
  --violet-deep: #5b3ff0;
  --magenta:     #ff5a8a;
  --electric:    #2ea6ff;
  --grad-primary: linear-gradient(115deg, var(--cyan) 0%, var(--violet) 100%);
  --grad-vivid:   linear-gradient(115deg, var(--electric) 0%, var(--violet) 55%, var(--magenta) 100%);
}

/* Sfondo hero fresco ma tenue: il testo resta sempre su base quasi bianca */
.hero {
  background:
    radial-gradient(120% 120% at 82% -5%, #f0f4ff 0%, #ffffff 46%),
    radial-gradient(90% 90% at 8% 15%, rgba(123, 92, 255, 0.05), transparent 60%),
    radial-gradient(80% 80% at 95% 80%, rgba(255, 90, 138, 0.04), transparent 60%);
}

/* Tipografia grande e grassa in TUTTO il sito (firma Revolut) */
.section-heading {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.calc-heading { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.market-trend-title { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }

/* Eyebrow / section-label: colore pieno, leggibile su chiaro */
.section-label {
  color: var(--violet-deep);
  font-weight: 700;
}

/* Parola rotante hero: ciano → viola (era oro) */
.ht-rotate b {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Bottoni e CTA a gradiente */
.btn-primary, .nav-cta {
  background: var(--grad-primary) !important;
  border: none;
  box-shadow: 0 10px 26px rgba(91, 63, 240, 0.28);
}
.btn-primary:hover, .nav-cta:hover {
  filter: brightness(1.06) saturate(1.05);
  box-shadow: 0 16px 36px rgba(91, 63, 240, 0.38);
}

/* Blob: solo aloni tenui (mai dietro i testi) */
.fx-orb-d { background: radial-gradient(circle at 50% 50%, var(--violet), transparent 68%); }
.fx-orb-e { background: radial-gradient(circle at 50% 50%, var(--magenta), transparent 68%); }
@media (max-width: 560px) { .fx-orb { filter: blur(60px); opacity: 0.16; } }

/* CALCOLATORE "fintech Revolut": glow a gradiente attorno alla console */
.hero-calc.console.is-dark {
  box-shadow:
    0 0 0 1px rgba(123, 92, 255, 0.28),
    0 26px 70px rgba(46, 102, 255, 0.28),
    0 8px 34px rgba(123, 92, 255, 0.22);
}
/* alone gradiente animato dietro la console */
.hero-calc.console.is-dark::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad-vivid);
  filter: blur(22px);
  opacity: 0.45;
  animation: fxGlow 8s ease-in-out infinite;
}
@keyframes fxGlow { 0%,100% { opacity: 0.3; } 50% { opacity: 0.55; } }

/* Tab attiva del calcolatore a gradiente */
.tool-switch button.active { background: var(--grad-primary); color: #fff; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .hero-calc.console.is-dark::before { animation: none; }
}

/* Qualsiasi sezione può ospitare i blob (contenuto sopra, layer dietro) */
.section { position: relative; }
.section > *:not(.fx-layer) { position: relative; z-index: 1; }

/* Console "totalmente Revolut": controlli attivi + accenti a gradiente vivace */
.console .toggle-opt input:checked + span,
.console .tool-switch button.active,
.console .unit-select button.active {
  background: var(--grad-primary);
  color: #fff;
}
.console .section-label { color: var(--violet-deep); }
.sbar-fraz-gold { background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.kpi-gold .kpi-num { color: var(--violet-deep); }

/* ============================================================
   PAGINA CHIARA INTEGRATA — niente box/bordi, tutto sullo sfondo.
   Console chiara e trasparente (stessi colori della pagina).
   ============================================================ */

/* Console: nessuna cornice, trasparente, integrata */
.hero-calc.console {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem 0 1rem;
  max-width: 760px;
}
.hero-calc.console::before { display: none; }

/* Input/select: stile "underline" integrato, niente riquadro */
.field input, .field select,
.console .field input, .console .field select {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  padding-left: 0.1rem; padding-right: 0.1rem;
  color: var(--text);
}
.field input:focus, .field select:focus,
.console .field input:focus, .console .field select:focus {
  border-color: var(--cyan);
  box-shadow: none;
}
.console .field select option { color: #16120e; background: #fff; }

/* Controlli segmentati senza track/box (resta solo la pill attiva a gradiente) */
.toggle-group, .tool-switch { background: transparent; border: none; padding: 0.15rem 0; }

/* Box del risultato → trasparenti/senza bordo */
.kpi,
.console .roi-block, .console .reno-costs, .console .scenario-delta,
.console .scenario-yield, .console .netto-lock, .console .calc-nofraz,
.scenario-card, .reno {
  background: transparent !important;
  border: none !important;
  box-shadow: none;
}

/* Card: si fondono, ombra morbida solo all'hover */
.tool-card, .case-card, .metric-card, .step, .consulente-card, .market-trend {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Chip e liste: solo testo, niente pill/riquadro */
.hero-chips li, .booking-reassure li, .report-trust li {
  background: transparent; border: none; box-shadow: none; padding: 0.2rem 0.1rem;
}
.live-presence, .live-lastreq, .zona-detected {
  background: transparent; border: none; padding: 0.2rem 0;
}
.zona-unavailable {
  background: transparent; border: none;
  border-left: 3px solid var(--gold-deep); border-radius: 0; padding: 0.2rem 0 0.2rem 0.8rem;
}

/* FAQ: accordion a divisori, niente riquadri */
.faq-item { background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.faq-item[open] { box-shadow: none; }

/* Report: via il bordo netto, resta il frost */
.report-frost { border: none; }

/* Residui box del risultato → integrati (righe unità, box ROI, recap) */
.unit-row { background: transparent !important; border: none !important; border-bottom: 1px solid var(--line); border-radius: 0; }
.roi-readout, .roi-stat { background: transparent !important; border: none !important; box-shadow: none; }
.calc-recap { background: transparent !important; border: none !important; }
.report-blur-cell { border: none !important; }

/* ============================================================
   FIX LEGGIBILITÀ (2026-07-02) — contrasti corretti sul chiaro
   ============================================================ */

/* Underline dei campi più visibile; placeholder leggibili */
.field input, .field select,
.console .field input, .console .field select {
  border-bottom-color: #cdc2b3;
}
.field input::placeholder,
.console .field input::placeholder { color: #978d82; opacity: 1; }

/* Logo nel footer scuro: chip bianco intenzionale, non box rotto */
.footer-logo { background: #fff; border-radius: 10px; padding: 5px; }

/* ============================================================
   PASSATA MOBILE 2026-07-07 — tabella affitti brevi intera
   senza scroll orizzontale sugli schermi stretti.
   ============================================================ */
@media (max-width: 460px) {
  .shortlet-table { font-size: 0.78rem; }
  .shortlet-table thead th { font-size: 0.66rem; letter-spacing: 0.02em; }
  .shortlet-table thead th,
  .shortlet-table tbody td { padding: 0.5rem 0.45rem; }
}

/* ============================================================
   CONVERSIONE 2026-07-07 — dati veri nei form, WhatsApp
   flottante, recap nel pop-up report.
   ============================================================ */

/* Errori inline dei campi (nome/email/telefono non validi) */
.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c0392b;
}

/* Recap del calcolo nel pop-up report */
.report-recap {
  margin: 0.2rem 0 0.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: rgba(46, 166, 255, 0.08);
  font-size: 0.9rem;
  color: var(--ink);
}

/* Bottone WhatsApp flottante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55); }
@media (max-width: 560px) {
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float:hover { transition: none; transform: none; }
}
