@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("fonts/PlusJakartaSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/PlusJakartaSans-Bold.ttf") format("truetype"); }

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/bodoni-moda-latin-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/bodoni-moda-latin-italic.woff2") format("woff2"); }

:root {
  --bg: #FAF8F4;
  --bg-warm: #F1E9E2;
  --ink: #2E372E;
  --muted: #5A635A;
  --cream: #F4EDE6;
  --brand: #B14B2C;
  --brand-text: #9A4128;
  --brand-soft: #E8A088;
  --line: #D9CDBA;
  --ok: #1E7B34;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Playfair Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.serif { font-family: var(--serif); font-weight: 400; }
.display, .h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4vw, 3rem); }
.display em, .h2 em { color: var(--brand); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 18px; }
.eyebrow.light { color: var(--brand-soft); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-top: 24px; }
.lead.sm { font-size: 1.08rem; }
.note { font-size: 0.92rem; color: var(--muted); max-width: 16em; line-height: 1.45; }

.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 12px; padding: 16px 26px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #1f261f; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-sm { padding: 10px 20px; border-radius: 999px; font-size: 0.95rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(250, 248, 244, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-bar { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: 0.95rem; }
.nav > a:not(.btn) { position: relative; padding: 6px 0; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav > a:not(.btn):hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav > a.active { color: var(--brand-text); }
.lang { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.lang button { font-weight: 600; font-size: 0.9rem; color: var(--muted); padding: 2px 2px; }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--brand); }
.menu-btn { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { padding: 56px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.cta-row { display: flex; align-items: center; gap: 22px; margin-top: 36px; flex-wrap: wrap; }

/* phone mockups */
.phone { width: 270px; aspect-ratio: 9 / 18.6; background: #1b1f1c; border-radius: 46px; padding: 9px; box-shadow: 0 40px 70px -28px rgba(46, 55, 46, 0.45), 0 12px 26px -12px rgba(46, 55, 46, 0.25); flex: none; }
.screen { position: relative; height: 100%; border-radius: 38px; background: var(--bg); overflow: hidden; padding: 16px 16px 0; font-size: 11.5px; line-height: 1.35; color: var(--ink); }
.statusbar { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 12px; padding: 0 6px; margin-bottom: 12px; height: 26px; }
.island { width: 84px; height: 24px; background: #121513; border-radius: 99px; }
.statusbar .island { margin-right: 30px; }
.screen-title { font-size: 1.5rem; font-weight: 700; margin: 4px 0 10px; }
.label { display: block; font-size: 9px; letter-spacing: 0.12em; color: var(--muted); margin: 10px 0 4px; }
.ok { color: var(--ok); font-weight: 600; }

.hero-phones { position: relative; height: 560px; }
.phone-back { position: absolute; left: 0; top: 70px; transform: rotate(-5deg); }
.phone-front { position: absolute; right: 0; top: 0; transform: rotate(3deg); }
.screen.scan { background: var(--ink); padding: 0; display: flex; flex-direction: column; align-items: center; }
.screen.scan .island { margin-top: 14px; }
.viewfinder { margin: 22px 26px 0; width: calc(100% - 52px); height: 190px; border: 2px solid rgba(244, 237, 230, 0.8); border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.paper { width: 62%; height: 120%; margin-top: 16%; background: repeating-linear-gradient(#EFE6D8 0 7px, #E1D6C4 7px 8px); transform: rotate(2deg); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 22px 22px 0 0; padding: 16px 14px 18px; display: grid; gap: 7px; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.sheet-head .ok { font-size: 10px; }
.field { display: flex; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.field span { color: var(--muted); }
.field b { font-weight: 600; text-align: right; }
.totalcard { background: var(--ink); color: var(--cream); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.totalcard small { font-size: 8.5px; letter-spacing: 0.14em; opacity: 0.75; }
.totalcard strong { font-size: 27px; line-height: 1.15; }
.totalcard em { font-style: normal; font-size: 9.5px; opacity: 0.85; }
.chips { display: flex; gap: 6px; margin-top: 10px; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-weight: 600; font-size: 11px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.rows { background: #fff; border-radius: 14px; padding: 4px 10px; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #efe9df; }
.rows li:last-child { border: 0; }
.rows i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 11px; background: #F1E3DB; color: var(--brand-text); flex: none; }
.rows i.g { background: #E8E5DA; color: var(--ink); }
.rows b { display: block; font-size: 12px; }
.rows span { color: var(--muted); font-size: 10px; }

/* dark section */
.dark { background: var(--ink); color: var(--cream); padding: 104px 0; }
.dark .h2 { color: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.steps li { border-top: 1px solid rgba(244, 237, 230, 0.22); padding-top: 28px; }
.num { display: block; font-size: 2.6rem; color: var(--brand-soft); line-height: 1; margin-bottom: 26px; }
.steps h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.steps p { color: rgba(244, 237, 230, 0.78); }

/* report */
.report { padding: 120px 0; overflow: hidden; }
.report-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.report-phones { position: relative; height: 540px; }
.report-phones .phone { position: absolute; left: 0; top: 0; }
.report-phones .phone-pdf { left: 190px; top: 70px; }
.seg { display: flex; background: #EEE9DF; border-radius: 10px; padding: 3px; margin-bottom: 4px; }
.seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; color: var(--muted); font-weight: 600; }
.seg .on { background: #fff; color: var(--ink); }
.big { display: block; font-size: 27px; line-height: 1.15; margin-bottom: 8px; }
.card { background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.split { display: flex; justify-content: space-between; }
.bar { height: 4px; background: #E7E2D7; border-radius: 4px; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.card small { color: var(--muted); font-size: 9.5px; }
.cats { background: #fff; border-radius: 12px; padding: 4px 12px; }
.cats li { display: grid; grid-template-columns: 1fr auto; padding: 8px 0 0; font-size: 11px; position: relative; }
.cats li b { font-weight: 700; }
.cats li i { grid-column: 1 / -1; height: 3px; background: var(--brand); border-radius: 3px; margin: 5px 0 6px; }
.genpdf { position: absolute; left: 16px; right: 16px; bottom: 18px; background: var(--ink); color: var(--cream); border-radius: 99px; text-align: center; padding: 11px; font-weight: 700; font-size: 12px; }
.screen:has(.pdfbar) { background: #E4DED3; }
.pdfbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 11px; margin-bottom: 8px; }
.pdfbar span { color: var(--brand-text); font-weight: 600; }
.pdfbar span:last-child { text-align: right; }
.page { background: #fff; padding: 12px; min-height: 340px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); display: grid; gap: 7px; align-content: start; font-size: 8px; }
.pg-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.pg-head img { width: auto; }
.pg-head small { font-size: 6px; text-align: right; color: var(--muted); letter-spacing: 0.05em; line-height: 1.3; }
.pg-kicker { font-size: 6px; color: var(--brand-text); letter-spacing: 0.12em; font-weight: 700; }
.pg-title { font-size: 17px; }
.pg-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 5px; }
.pg-meta small { display: block; font-size: 5.5px; color: var(--muted); letter-spacing: 0.1em; }
.pg-meta b { font-size: 7px; }
.pg-total { background: var(--ink); color: var(--cream); padding: 7px 8px; }
.pg-total small { display: block; font-size: 5.5px; letter-spacing: 0.1em; opacity: 0.7; }
.pg-total b { font-size: 16px; font-weight: 400; }
.pg-sub { font-size: 10px; margin-top: 4px; }
.pg-line { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; font-size: 7px; padding: 3px 0; border-bottom: 1px solid #eee; }
.pg-line i { height: 2px; background: var(--brand); }
.checks { margin-top: 32px; border-top: 1px solid var(--line); max-width: 34em; }
.checks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: translateY(-70%) rotate(-45deg); }

/* features */
.features { padding: 24px 0 120px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 32px; margin-top: 56px; }
.feat-grid article { border-top: 2px solid var(--ink); padding-top: 18px; }
.feat-grid h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.feat-grid p { color: var(--muted); font-size: 0.97rem; }

/* price */
.price { background: var(--bg-warm); padding: 112px 0; }
.price-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: start; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan { background: #fff; border-radius: 18px; padding: 30px 24px; }
.plan h3 { font-size: 1.05rem; font-weight: 700; }
.plan .amount { font-size: 2.6rem; line-height: 1.2; margin: 14px 0 6px; }
.plan .once { font-size: 0.85rem; color: var(--muted); }
.plan ul { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.95rem; }
.plan.pro { background: var(--ink); color: var(--cream); }
.plan.pro .once { color: rgba(244, 237, 230, 0.75); }
.plan.pro ul { border-top-color: rgba(244, 237, 230, 0.22); }
.plan .alt { font-size: 0.92rem; margin-top: 10px; }

/* faq */
.faq { padding: 112px 0 72px; }
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list p { color: var(--muted); padding: 0 0 22px; max-width: 34em; }

/* final band + footer */
.final { padding: 0 0 96px; }
.band { background: var(--brand); color: var(--cream); border-radius: 22px; padding: 56px 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; line-height: 1.15; max-width: 16em; }
.band .soon { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(244, 237, 230, 0.55); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 0.92rem; color: var(--muted); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { border-radius: 6px; }
.site-footer nav { display: flex; gap: 26px; }
.site-footer a:hover { color: var(--ink); }

/* scroll reveal: contenuti visibili anche senza JS */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav > a::after, .faq-list summary::after { transition: none; }
}

/* responsive */
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: 1fr; gap: 36px; }
  .plans { max-width: 760px; }
}
@media (max-width: 960px) {
  .hero-grid, .report-grid, .price-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-phones { height: 520px; max-width: 520px; margin-inline: auto; width: 100%; }
  .report-phones { order: 2; max-width: 480px; margin-inline: auto; width: 100%; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 44px; }
  .band { padding: 40px 32px; }
}
@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .lang { padding: 14px 0; }
  .nav .btn { margin-top: 12px; padding: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 32px 0 64px; }
  .hero-phones { height: 500px; }
  .phone-back { display: none; }
  .phone-front { position: relative; margin-inline: auto; transform: none; }
  .report-phones { height: 500px; }
  .report-phones .phone-pdf { display: none; }
  .feat-grid, .plans { grid-template-columns: 1fr; }
  .dark, .price { padding: 72px 0; }
  .report { padding: 72px 0; }
  .faq { padding: 72px 0 48px; }
}

/* documenti legali */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc .meta { color: var(--muted); font-size: 0.92rem; margin: 18px 0 32px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.2; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin-bottom: 14px; }
.doc ul { list-style: disc; padding-left: 1.3em; margin-bottom: 14px; display: grid; gap: 8px; }
.doc a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.summary { background: var(--bg-warm); border-radius: 16px; padding: 24px 28px; }
.summary h2 { margin: 0 0 10px; font-size: 1.4rem; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: #fff; }
.doc tr:last-child td { border-bottom: 0; }
html[lang="en"] .lang-it, html:not([lang="en"]) .lang-en { display: none; }
