/* Erima Servizi · landing fideiussione per l'affitto
   Direzione 3 (app, sul modello Wise) scelta il 25/09/2026.
   Font serviti in locale (font.css): nessuna chiamata a server esterni prima del consenso. */
@import url("font.css");

:root {
  --navy: #1a4360;
  --sky: #5384a6;
  --accent: #265d84;
  --gold: #caa052;
  --gold-hover: #d6b572;
  --ink: #12304a;
  --paper: #fcfdfd;
  --canvas: #f4f7f9;
  --canvas-soft: #e7eef3;
  --gold-pale: #f5eedf;
  --body: #3d5467;
  --mute: #6f8494;
  --line: rgba(18, 48, 74, 0.12);
  --error: #b3423a;

  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px; --s-xl: 24px; --s-2xl: 32px; --s-3xl: 48px; --s-4xl: 72px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 9999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Poppins", system-ui, sans-serif;
  --text: "Geist", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--canvas); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-xl); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.salta { position: absolute; left: var(--s-lg); top: -60px; z-index: 50; background: var(--navy); color: var(--paper); padding: var(--s-sm) var(--s-lg); border-radius: var(--r-md); text-decoration: none; font-weight: 600; }
.salta:focus { top: var(--s-lg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 247, 249, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-md); padding-bottom: var(--s-md); }
.nav img { height: 40px; width: auto; }
.nav-call {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  padding: var(--s-sm) var(--s-lg); border-radius: var(--r-pill);
  border: 1px solid var(--ink); color: var(--ink); background: var(--paper);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.nav-call:hover { background: var(--canvas-soft); }
.nav-call:active { transform: scale(0.98); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  font-family: var(--text); font-size: 16px; line-height: 24px; font-weight: 600;
  padding: var(--s-md) var(--s-xl); min-height: 48px;
  border-radius: var(--r-xl); border: 0; cursor: pointer; text-decoration: none;
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary { background: rgba(252, 253, 253, 0.72); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(18, 48, 74, 0.14); }
.btn-secondary:hover { background: var(--paper); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }
.btn-ghost-light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(252, 253, 253, 0.35); }
.btn-ghost-light:hover { background: rgba(252, 253, 253, 0.08); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn:focus-visible, .nav-call:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 420px at 88% 12%, rgba(83, 132, 166, 0.30), transparent 70%),
    radial-gradient(420px 360px at 58% 100%, rgba(202, 160, 82, 0.20), transparent 70%),
    var(--canvas-soft);
  padding: var(--s-3xl) 0 var(--s-4xl);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas: "copy form" "ctas form" "stats form";
  grid-template-rows: auto auto 1fr;
  column-gap: var(--s-3xl); row-gap: var(--s-xl); align-items: start;
}
.hero-copy { grid-area: copy; }
.hero-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: var(--s-md); }
.hero-stats { grid-area: stats; }
.quote-card { grid-area: form; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  margin: 0 0 var(--s-xl); padding: var(--s-xs) var(--s-md);
  border-radius: var(--r-pill); background: rgba(252, 253, 253, 0.7);
  box-shadow: inset 0 0 0 1px rgba(18, 48, 74, 0.10);
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: 64px; line-height: 64px; letter-spacing: -0.035em;
  margin: 0 0 var(--s-xl); color: var(--navy); max-width: 11ch;
}
.lead { font-size: 20px; line-height: 30px; color: var(--body); margin: 0; max-width: 34ch; }

.hero-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-md); margin: var(--s-lg) 0 0; padding: 0; list-style: none; }
.stat {
  border-radius: var(--r-xl); padding: var(--s-xl);
  background: rgba(252, 253, 253, 0.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(252, 253, 253, 0.9), inset 0 0 0 1px rgba(18, 48, 74, 0.07);
}
.stat-cap { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mute); }
.stat-num { display: block; margin-top: var(--s-xs); font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 52px; letter-spacing: -0.04em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 22px; letter-spacing: -0.01em; color: var(--accent); font-weight: 600; }
.stat--wide { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-lg); background: var(--navy); box-shadow: inset 0 1px 0 rgba(252, 253, 253, 0.08); padding: var(--s-lg) var(--s-xl); }
.stat--wide .ico { flex: none; width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.stat--wide .ico svg { width: 22px; height: 22px; }
.stat--wide p { margin: 0; color: var(--canvas); }
.stat--wide strong { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--gold); margin-right: var(--s-xs); }

/* ---------- Modulo ---------- */
.quote-card {
  position: relative; scroll-margin-top: 88px;
  border-radius: var(--r-xl); padding: var(--s-xl);
  background: rgba(252, 253, 253, 0.84);
  -webkit-backdrop-filter: saturate(150%) blur(20px); backdrop-filter: saturate(150%) blur(20px);
  border: 1px solid var(--ink);
  box-shadow: inset 0 1px 0 rgba(252, 253, 253, 0.95), 0 24px 48px -28px rgba(26, 67, 96, 0.35);
}
.quote-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); margin-bottom: var(--s-xl); }
.quote-head h2 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 31px; letter-spacing: -0.02em; margin: 0; }
.live { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); opacity: .5; animation: breathe 2.4s var(--ease) infinite; }
@keyframes breathe { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }

.modulo { display: grid; gap: var(--s-lg); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: grid; gap: var(--s-sm); }
.lbl, legend { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); padding: 0; }
legend { margin-bottom: var(--s-sm); }
.req { color: var(--accent); margin-left: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xs); padding: var(--s-xs); border-radius: var(--r-lg); background: var(--canvas-soft); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: var(--s-sm) var(--s-md); border-radius: var(--r-md); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--body); transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.seg label:hover span { color: var(--ink); background: rgba(252, 253, 253, 0.6); }
.seg input:checked + span { background: var(--navy); color: var(--paper); box-shadow: 0 6px 14px -8px rgba(26, 67, 96, 0.6); }
.seg label:active span { transform: scale(0.98); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.amount { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--ink); border-radius: var(--r-md); background: var(--paper); padding: var(--s-sm) var(--s-sm) var(--s-sm) var(--s-lg); transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.amount:focus-within { box-shadow: 0 0 0 3px rgba(83, 132, 166, 0.28); }
.amount input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 40px; letter-spacing: -0.02em; color: var(--navy); padding: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.amount input::placeholder { color: #b9c6cf; }
.amount input::-webkit-outer-spin-button, .amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cur { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--canvas-soft); color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 18px; }
.input { width: 100%; font-family: var(--text); font-size: 16px; line-height: 24px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r-md); padding: var(--s-md) var(--s-lg); min-height: 48px; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.input:focus { outline: 0; box-shadow: 0 0 0 3px rgba(83, 132, 166, 0.28); }
.field.errore .input, .field.errore .amount { border-color: var(--error); box-shadow: 0 0 0 3px rgba(179, 66, 58, 0.14); }
.msg-errore { display: none; margin: 0; font-size: 13px; line-height: 18px; color: var(--error); font-weight: 500; }
.field.errore .msg-errore { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; margin-top: var(--s-xs); }
.fine { margin: 0; font-size: 12px; line-height: 16px; color: var(--mute); }
.fine a { color: var(--accent); font-weight: 600; text-underline-offset: 2px; }
.avviso { margin: 0; padding: var(--s-md) var(--s-lg); border-radius: var(--r-md); font-size: 14px; line-height: 20px; }
.avviso--errore { background: rgba(179, 66, 58, 0.08); color: #7d2b25; }
.avviso a { font-weight: 600; }
.esito { display: grid; gap: var(--s-lg); text-align: left; }
.esito .spunta { width: 56px; height: 56px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.esito .spunta svg { width: 28px; height: 28px; }
.esito h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 30px; margin: 0; }
.esito p { margin: 0; color: var(--body); }

/* ---------- Sezioni ---------- */
.band { background: var(--paper); padding: var(--s-4xl) 0; }
.band--soft { background: var(--canvas); }
.band-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-xl); align-items: end; margin-bottom: var(--s-2xl); }
.band-head p { margin: 0; color: var(--body); max-width: 40ch; }
.band h2 { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -0.03em; margin: 0; color: var(--navy); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-lg); }
.card { border-radius: var(--r-xl); padding: var(--s-xl); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 31px; letter-spacing: -0.02em; margin: var(--s-xl) 0 var(--s-sm); color: var(--ink); }
.card p { margin: 0; color: var(--body); max-width: 52ch; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); }
.circ { width: 48px; height: 48px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--paper); color: var(--navy); }
.circ svg { width: 24px; height: 24px; }
.tag { font-size: 14px; line-height: 20px; font-weight: 600; padding: var(--s-xs) var(--s-md); border-radius: var(--r-pill); background: rgba(252, 253, 253, 0.75); color: var(--accent); }
.card--tenant { grid-column: 1 / span 6; background: var(--canvas-soft); }
.card--owner { grid-column: 7 / span 6; background: var(--gold-pale); }
.card--owner .tag { color: #7a5a1c; }
.case { grid-column: 1 / span 7; margin: 0; background: var(--navy); color: var(--canvas); display: grid; align-content: space-between; gap: var(--s-2xl); padding: var(--s-2xl); position: relative; overflow: hidden; }
.case::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; border: 1px solid rgba(202, 160, 82, 0.35); }
.case-label { display: inline-flex; align-items: center; gap: var(--s-sm); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--gold); }
.case-label svg { width: 20px; height: 20px; }
.case blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 34px; letter-spacing: -0.015em; color: var(--canvas); max-width: 30ch; }
.case blockquote em { font-style: normal; color: var(--gold); }
.photo { grid-column: 8 / span 5; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--canvas-soft); min-height: 280px; }
.photo picture { display: block; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

/* Tipi di affitto: due blocchi asimmetrici */
.tipi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-lg); }
.tipo { border-radius: var(--r-xl); padding: var(--s-2xl); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--s-lg); align-content: start; }
.tipo--scuro { background: var(--navy); color: var(--canvas); box-shadow: none; }
.tipo h3 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -0.02em; margin: 0; }
.tipo p { margin: 0; color: var(--body); }
.tipo--scuro p { color: rgba(244, 247, 249, 0.82); }
.durata { display: flex; align-items: baseline; gap: var(--s-sm); }
.durata b { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 44px; letter-spacing: -0.04em; color: var(--navy); }
.tipo--scuro .durata b { color: var(--gold); }
.durata span { font-size: 14px; font-weight: 600; color: var(--mute); }
.tipo--scuro .durata span { color: rgba(244, 247, 249, 0.7); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; line-height: 20px; font-weight: 500; padding: var(--s-xs) var(--s-md); border-radius: var(--r-pill); background: var(--canvas-soft); color: var(--ink); }
.tipo--scuro .chips li { background: rgba(252, 253, 253, 0.1); color: var(--canvas); }

/* Come funziona: linea di passi */
.passi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: passo; border-top: 1px solid var(--line); }
.passi li { counter-increment: passo; padding: var(--s-xl) var(--s-xl) 0 0; position: relative; }
.passi li::before { content: counter(passo, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 56px; letter-spacing: -0.05em; color: var(--canvas-soft); -webkit-text-stroke: 1px rgba(26, 67, 96, 0.35); margin-bottom: var(--s-lg); }
.passi li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.passi h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 28px; margin: 0 0 var(--s-sm); }
.passi p { margin: 0; color: var(--body); max-width: 34ch; }

/* Documenti */
.docs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-lg); }
.doc-col { border-radius: var(--r-xl); padding: var(--s-2xl); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.doc-col h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 28px; margin: 0 0 var(--s-lg); }
.doc-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-md); }
.doc-col li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-md); color: var(--body); }
.doc-col li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* FAQ */
.faq { display: grid; gap: var(--s-sm); max-width: 820px; }
.faq details { border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: var(--s-lg); padding: var(--s-lg) var(--s-xl); font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .piu { width: 32px; height: 32px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--canvas-soft); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.faq summary .piu svg { width: 16px; height: 16px; }
.faq details[open] summary .piu { transform: rotate(45deg); background: var(--gold-pale); }
.faq .risp { padding: 0 var(--s-xl) var(--s-xl); color: var(--body); max-width: 64ch; }
.faq .risp p { margin: 0; }

/* Agenzie */
.agenzie { padding: var(--s-3xl) 0; border-top: 1px solid var(--line); }
.agenzie-riga { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2xl); align-items: center; }
.agenzie h2 { font-size: 30px; line-height: 36px; }
.agenzie p { margin: var(--s-sm) 0 0; color: var(--body); max-width: 56ch; }
.agenzie .azioni { display: flex; flex-wrap: wrap; gap: var(--s-md); }

/* Chiusura */
.chiusura { background: var(--navy); color: var(--canvas); padding: var(--s-4xl) 0; position: relative; overflow: hidden; }
.chiusura::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -300px; border-radius: 50%; border: 1px solid rgba(202, 160, 82, 0.3); }
.chiusura .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2xl); align-items: center; position: relative; }
.chiusura h2 { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -0.03em; margin: 0 0 var(--s-sm); color: var(--paper); }
.chiusura p { margin: 0; color: rgba(244, 247, 249, 0.8); max-width: 44ch; }
.chiusura .azioni { display: flex; flex-wrap: wrap; gap: var(--s-md); }

/* ---------- Piede ---------- */
.piede { background: var(--ink); color: var(--canvas-soft); padding: var(--s-3xl) 0 var(--s-2xl); font-size: 14px; line-height: 21px; }
.piede-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--s-2xl); }
.piede img { height: 40px; width: auto; margin-bottom: var(--s-lg); }
.piede p { margin: 0 0 var(--s-sm); color: rgba(231, 238, 243, 0.78); }
.piede h2 { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s-md); }
.piede a { color: var(--canvas-soft); text-underline-offset: 3px; }
.piede ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-sm); }
.piede .link-btn { background: none; border: 0; padding: 0; color: var(--canvas-soft); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.piede-basso { margin-top: var(--s-2xl); padding-top: var(--s-lg); border-top: 1px solid rgba(231, 238, 243, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-md); color: rgba(231, 238, 243, 0.6); font-size: 13px; }

/* ---------- Barra mobile ---------- */
.barra { display: none; }

/* ---------- Banner cookie ---------- */
.consenso {
  position: fixed; z-index: 60; left: var(--s-lg); right: var(--s-lg); bottom: var(--s-lg);
  max-width: 560px; margin-left: auto;
  border-radius: var(--r-xl); padding: var(--s-xl);
  background: rgba(252, 253, 253, 0.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--ink);
  box-shadow: 0 30px 60px -30px rgba(18, 48, 74, 0.45);
  transform: translateY(12px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.consenso.aperto { transform: none; opacity: 1; }
.consenso[hidden] { display: none; }
.consenso h2 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 26px; margin: 0 0 var(--s-sm); padding-right: 40px; }
.consenso p { margin: 0 0 var(--s-lg); font-size: 14px; line-height: 21px; color: var(--body); }
.consenso p a { color: var(--accent); font-weight: 600; }
.consenso .chiudi { position: absolute; top: var(--s-md); right: var(--s-md); width: 36px; height: 36px; border-radius: var(--r-pill); border: 0; background: var(--canvas-soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.consenso .chiudi svg { width: 16px; height: 16px; }
.consenso .scelte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-sm); }
.consenso .scelte .btn { min-height: 44px; padding: var(--s-sm) var(--s-md); font-size: 15px; }
.consenso .pannello { display: grid; gap: var(--s-sm); margin: 0 0 var(--s-lg); }
.consenso .pannello[hidden] { display: none; }
.opz { display: grid; grid-template-columns: 1fr auto; gap: var(--s-md); align-items: center; padding: var(--s-md) var(--s-lg); border-radius: var(--r-md); background: var(--canvas); }
.opz strong { display: block; font-size: 15px; }
.opz small { display: block; font-size: 13px; line-height: 18px; color: var(--mute); }
.interr { position: relative; width: 48px; height: 28px; flex: none; }
.interr input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.interr span { position: absolute; inset: 0; border-radius: var(--r-pill); background: #c7d3dc; transition: background-color .3s var(--ease); pointer-events: none; }
.interr span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: transform .3s var(--ease); }
.interr input:checked + span { background: var(--navy); }
.interr input:checked + span::after { transform: translateX(20px); }
.interr input:disabled + span { background: var(--sky); opacity: .6; }
.interr input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Pagine legali ---------- */
.legale { background: var(--paper); padding: var(--s-3xl) 0 var(--s-4xl); }
.legale .wrap { max-width: 820px; }
.legale h1 { font-size: 44px; line-height: 48px; max-width: none; }
.legale h2 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 28px; margin: var(--s-2xl) 0 var(--s-sm); color: var(--navy); }
.legale p, .legale li { color: var(--body); }
.legale ul { padding-left: 1.2em; }
.legale table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; margin: var(--s-md) 0; }
.legale th, .legale td { text-align: left; vertical-align: top; padding: var(--s-sm) var(--s-md); border-bottom: 1px solid var(--line); }
.legale th { font-weight: 600; color: var(--ink); background: var(--canvas); }
.legale .agg { color: var(--mute); font-size: 14px; }
.dc { background: #fff1c9; color: #6b4d0f; padding: 0 .25em; border-radius: 4px; font-weight: 600; }
.bozza { padding: var(--s-lg) var(--s-xl); border-radius: var(--r-lg); background: #fff7e0; box-shadow: inset 0 0 0 1px #e9cf87; color: #5d4410; font-size: 14px; margin-bottom: var(--s-2xl); }

/* ---------- Entrata ---------- */
.rise { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  .live::after { animation: none; }
  html { scroll-behavior: auto; }
  .consenso { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .wrap { padding: 0 var(--s-lg); }
  .nav img { height: 36px; }
  .nav-call { padding: var(--s-sm) var(--s-md); }
  .hero { padding: var(--s-xl) 0 var(--s-2xl); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "ctas" "form" "stats"; grid-template-rows: auto; row-gap: var(--s-lg); }
  .eyebrow { margin-bottom: var(--s-lg); font-size: 13px; border-radius: var(--r-md); align-items: baseline; padding: var(--s-sm) var(--s-md); }
  h1 { font-size: 40px; line-height: 42px; margin-bottom: var(--s-md); }
  .lead { font-size: 17px; line-height: 25px; }
  .hero-ctas { display: grid; grid-template-columns: 1fr; gap: var(--s-sm); }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { margin-top: 0; }
  .stat { padding: var(--s-lg); }
  .stat-num { font-size: 34px; line-height: 40px; }
  .stat-num small { font-size: 17px; }
  .stat--wide strong { display: block; }
  .quote-card { padding: var(--s-lg); scroll-margin-top: 72px; }
  .quote-head { margin-bottom: var(--s-lg); }
  .quote-head h2 { font-size: 22px; line-height: 28px; }
  .amount input { font-size: 28px; line-height: 36px; }

  .band { padding: var(--s-3xl) 0; }
  .band-head { grid-template-columns: 1fr; margin-bottom: var(--s-xl); gap: var(--s-md); }
  .band h2, .chiusura h2 { font-size: 30px; line-height: 36px; }
  .bento, .tipi, .docs { grid-template-columns: 1fr; gap: var(--s-md); }
  .card--tenant, .card--owner, .case, .photo { grid-column: 1 / -1; }
  .case { padding: var(--s-xl); gap: var(--s-xl); }
  .case blockquote { font-size: 20px; line-height: 29px; }
  .photo { min-height: 0; aspect-ratio: 4 / 3; }
  .tipo, .doc-col { padding: var(--s-xl); }
  .passi { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); margin-left: 4px; }
  .passi li { padding: 0 0 var(--s-xl) var(--s-xl); }
  .passi li::after { top: 6px; left: -5px; }
  .passi li::before { font-size: 40px; line-height: 40px; margin-bottom: var(--s-sm); }
  .faq summary { padding: var(--s-lg); font-size: 17px; line-height: 24px; }
  .faq .risp { padding: 0 var(--s-lg) var(--s-lg); }
  .chiusura { padding: var(--s-3xl) 0 calc(var(--s-3xl) + 64px); }
  .chiusura .wrap { grid-template-columns: 1fr; }
  .chiusura .azioni { display: grid; grid-template-columns: 1fr; }
  .agenzie-riga { grid-template-columns: 1fr; gap: var(--s-lg); }
  .agenzie h2 { font-size: 24px; line-height: 30px; }
  .agenzie .azioni { display: grid; grid-template-columns: 1fr; }
  .piede { padding-bottom: calc(var(--s-2xl) + 72px); }
  .piede-grid { grid-template-columns: 1fr; gap: var(--s-xl); }

  .barra {
    display: grid; grid-template-columns: 1fr auto; gap: var(--s-sm);
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: var(--s-sm) var(--s-lg) calc(var(--s-sm) + env(safe-area-inset-bottom));
    background: rgba(244, 247, 249, 0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .barra.visibile { transform: none; }
  .barra .btn { min-height: 48px; }
  .barra .btn-tel { width: 52px; padding: 0; border-radius: var(--r-xl); }
  .consenso { left: var(--s-sm); right: var(--s-sm); bottom: var(--s-sm); padding: var(--s-lg); }
  .consenso .scelte { grid-template-columns: 1fr 1fr; }
  .consenso .scelte .personalizza { grid-column: 1 / -1; order: 1; }
  .legale h1 { font-size: 32px; line-height: 38px; }
}
@media (max-width: 380px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 340px) { .nav-call .num { display: none; } }
