/* DuoSeek Casa — sito di vendita. Stessa famiglia visiva delle guide (crema, oliva, terracotta;
   Cormorant Garamond + Inter), caratteri ospitati qui: nessuna richiesta a Google. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/site/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/site/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/site/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/site/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/site/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/site/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/site/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #FEFAF1; --surface: #FFFFFF; --sand: #F3EADB; --sand-2: #EADFCB;
  --ink: #221811; --muted: #6B6155; --line: #E8DFCF;
  --olive: #49522F; --olive-ink: #3A4125; --on-olive: #FEFAF1; --olive-soft: #E7E9D6;
  --terra: #A9502F; --terra-soft: #F6E3D9;
  --ok: #3D6B35; --warn-soft: #FFF3D1; --warn: #8A5F0E;
  --f-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px; --shadow: 0 1px 2px rgba(34,24,17,.05), 0 12px 32px -12px rgba(34,24,17,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16140F; --surface: #1F1C16; --sand: #2A251C; --sand-2: #332D22; --ink: #F1ECE2; --muted: #ABA192; --line: #352F25;
    --olive: #B9C48F; --olive-ink: #CFD8AA; --on-olive: #16140F; --olive-soft: #2A2F1E; --terra: #EE9576; --terra-soft: #3B241B;
    --ok: #9CCB8F; --warn-soft: #3A2E14; --warn: #E7B85A; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16140F; --surface: #1F1C16; --sand: #2A251C; --sand-2: #332D22; --ink: #F1ECE2; --muted: #ABA192; --line: #352F25;
  --olive: #B9C48F; --olive-ink: #CFD8AA; --on-olive: #16140F; --olive-soft: #2A2F1E; --terra: #EE9576; --terra-soft: #3B241B;
  --ok: #9CCB8F; --warn-soft: #3A2E14; --warn: #E7B85A; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 8.5vw, 84px); }
h2 { font-size: clamp(34px, 5.6vw, 54px); }
h3 { font-size: 26px; font-weight: 600; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.narrow { max-width: 760px; }

/* Barra */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 25px; font-weight: 600; letter-spacing: .005em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--olive); color: var(--on-olive); display: grid; place-items: center; font-size: 19px; font-weight: 600; }
.logo small { font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: none; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .login { display: none; font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 10px; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-cta .login { display: inline-block; } }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--olive); color: var(--on-olive); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--olive) 70%, transparent); }
.btn-primary:hover { background: var(--olive-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--terra); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); line-height: 1.55; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding-block: clamp(64px, 10vw, 120px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* Copertina */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.08fr .92fr; gap: 40px; } }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 em { font-style: italic; color: var(--olive); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs span { font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: var(--olive-soft); color: var(--olive-ink); }

/* Telefono */
.phone-stage { position: relative; display: grid; place-items: center; padding: 8px 0 24px; }
.phone-stage::before { content: ""; position: absolute; inset: 6% 2% 0; border-radius: 40px; background: radial-gradient(60% 60% at 50% 40%, var(--sand-2), transparent 70%); z-index: -1; }
.phone { position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 19; border-radius: 46px; background: #1b1712; padding: 11px; box-shadow: 0 30px 60px -20px rgba(34,24,17,.45), inset 0 0 0 2px #3a332a; }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #FEFAF1; color: #221811; isolation: isolate; }
.phone-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #FEFAF1; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #1b1712; border-radius: 999px; z-index: 3; }
.mock { height: 100%; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; font-size: 12px; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 42px 16px 8px; }
.mock-brand { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.mock-lang { border: 1px solid #E8DFCF; border-radius: 999px; padding: 3px 9px; font-weight: 700; font-size: 11px; background: #fff; }
.mock-hero { margin: 0 12px; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 4 / 4.2; }
.mock-hero svg { width: 100%; height: 100%; }
.mock-hero-txt { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; color: #FEFAF1; background: linear-gradient(180deg, transparent, rgba(24,18,10,.72)); }
.mock-hero-txt small { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.mock-hero-txt b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 34px; line-height: .95; }
.mock-hero-txt i { font-family: var(--f-display); font-size: 15px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; align-content: start; }
.mock-tile { background: #fff; border: 1px solid #E8DFCF; border-radius: 14px; padding: 10px; display: grid; gap: 4px; }
.mock-tile .ic { width: 26px; height: 26px; border-radius: 8px; background: #E7E9D6; color: #49522F; display: grid; place-items: center; }
.mock-tile .ic svg { width: 15px; height: 15px; }
.mock-tile b { font-size: 12px; }
.mock-tile span { font-size: 10px; color: #6B6155; line-height: 1.3; }
.mock-tile.lock { background: #F6E3D9; border-color: #EFD3C4; }
.mock-tile.lock .ic { background: #A9502F; color: #fff; }
.phone-play { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 4; }
.float-card { position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 13px; display: none; gap: 2px; max-width: 210px; }
.float-card b { font-size: 14px; }
.float-card.a { left: -4%; top: 22%; }
.float-card.b { right: -2%; top: 60%; }
@media (min-width: 1100px) { .float-card { display: grid; } }

/* Fascia di fiducia */
.strip { border-block: 1px solid var(--line); background: var(--surface); padding-block: 22px; }
.strip .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
@media (min-width: 820px) { .strip .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strip div { display: grid; gap: 2px; }
.strip b { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1; }
.strip span { font-size: 14px; color: var(--muted); line-height: 1.35; }

/* Problema / soluzione */
.duo { display: grid; gap: 16px; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 24px; } }
.panel { border-radius: var(--radius); padding: clamp(22px, 3.4vw, 34px); display: grid; gap: 14px; align-content: start; }
.panel.before { background: var(--sand); }
.panel.after { background: var(--olive); color: var(--on-olive); }
.panel.after .muted { color: color-mix(in srgb, var(--on-olive) 78%, transparent); }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.panel li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.panel li svg { width: 20px; height: 20px; margin-top: 3px; }

/* Funzioni */
.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--olive-soft); color: var(--olive-ink); display: grid; place-items: center; }
.feature .ic svg { width: 22px; height: 22px; }
.feature.accent .ic { background: var(--terra-soft); color: var(--terra); }
.feature h3 { font-size: 24px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Passi */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--sand); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--f-display); font-size: 56px; line-height: .8; color: var(--terra); font-weight: 600; }
.step p { color: var(--muted); }

/* Agenzie */
.band { background: var(--olive); color: var(--on-olive); }
.band .lead, .band .muted { color: color-mix(in srgb, var(--on-olive) 80%, transparent); }
.band .eyebrow { color: color-mix(in srgb, var(--on-olive) 85%, transparent); }
.band .btn-primary { background: var(--on-olive); color: var(--olive-ink); }
.band .btn-ghost { background: transparent; color: var(--on-olive); border-color: color-mix(in srgb, var(--on-olive) 40%, transparent); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; }
.checks b { display: block; }

/* Prezzi */
.price-wrap { display: grid; gap: 20px; }
@media (min-width: 940px) { .price-wrap { grid-template-columns: 1.1fr .9fr; align-items: stretch; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.tiers { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tiers th, .tiers td { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.tiers th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tiers td:last-child, .tiers th:last-child { text-align: right; }
.tiers td b { font-family: var(--f-display); font-size: 30px; font-weight: 600; }
.tiers tr:last-child td { border-bottom: 0; }
.calc { display: grid; gap: 18px; align-content: start; }
.calc label { font-weight: 600; }
.calc-row { display: flex; align-items: center; gap: 14px; }
.calc input[type="range"] { flex: 1; accent-color: var(--olive); height: 32px; }
.calc output.count { min-width: 3.2ch; text-align: right; font-family: var(--f-display); font-size: 38px; font-weight: 600; font-variant-numeric: tabular-nums; }
.toggle { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle button { border: 0; background: none; border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.toggle .save { color: var(--ok); font-size: 12px; }
.total { display: grid; gap: 2px; padding: 18px; border-radius: 16px; background: var(--olive-soft); }
.total strong { font-family: var(--f-display); font-size: 52px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--olive-ink); }
.total span { font-size: 14px; color: var(--muted); }
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.included li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.included svg { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.example { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); display: grid; gap: 4px; }
.example b { font-family: var(--f-display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.example span { font-size: 14px; color: var(--muted); }

/* Domande */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 18px; color: var(--muted); display: grid; gap: 10px; }

/* Chiamata finale */
.cta-box { border-radius: 28px; background: var(--sand); padding: clamp(32px, 6vw, 72px); display: grid; gap: 20px; justify-items: center; text-align: center; position: relative; overflow: hidden; }
.cta-box h2 { max-width: 16em; }

/* Piede */
footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: grid; gap: 28px; }
@media (min-width: 820px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; line-height: 1.5; }

/* Pagine di testo (legali) */
.doc { padding-block: 40px 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.doc h2 { font-size: 32px; margin: 44px 0 12px; }
.doc h3 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; margin: 12px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.doc .table-scroll { overflow-x: auto; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 24px 0; }
.doc .toc ol { margin: 6px 0 0; }
.todo { background: var(--warn-soft); color: var(--warn); font-weight: 700; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.notice { background: var(--warn-soft); border-radius: 14px; padding: 14px 18px; font-size: 15px; margin: 18px 0; }

/* Cifre allineate nei prezzi: le cifre «antiche» di Cormorant si leggono male negli importi */
.tiers td b, .total strong, .example b, .calc output.count, .strip b, .step::before { font-variant-numeric: lining-nums proportional-nums; }
