:root {
  --brand: #0062a8;
  --brand-dark: #003470;
  --brand-soft: #e8f2fb;
  --accent: #2a9d4f;
  --ink: #14202e;
  --muted: #5a6877;
  --line: #dbe4ec;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --radius: 18px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #58aef0;
    --brand-dark: #0b2a4a;
    --brand-soft: #12263b;
    --ink: #e8eef4;
    --muted: #9fb0c0;
    --line: #26384a;
    --bg: #0d1822;
    --bg-alt: #111f2c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

/* hero */
.hero { background: linear-gradient(160deg, #0062a8 0%, #003470 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 56px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.15rem; color: #d6e9fa; margin: 0 0 26px; max-width: 34em; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badges img { height: 48px; width: auto; }
.hero .note { margin-top: 14px; font-size: .9rem; color: #b8d6f0; }
.hero-shot { justify-self: center; width: min(320px, 78%); margin-bottom: -60px; }
.hero-shot img { border-radius: 36px 36px 0 0; border: 10px solid #101216; border-bottom: 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 36px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--bg); }
.card h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.4rem; }

.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shots img { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 20, 50, .12); }

/* plans */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; max-width: 760px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg); }
.plan.pro { border: 2px solid var(--brand); }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .price { font-size: 1.8rem; font-weight: 700; margin: 6px 0 14px; }
.plan .price small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 16px; max-width: 760px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* document pages */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 6px; letter-spacing: -.01em; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 1.35rem; margin: 36px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.doc th { background: var(--bg-alt); }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 14px 16px; border-radius: 8px; margin: 18px 0; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 12px; text-decoration: none; font-weight: 600; }
@media (prefers-color-scheme: dark) { .btn { color: #06182a; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); margin-right: 14px; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero-shot { width: min(260px, 70%); margin-bottom: -40px; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}

@media (max-width: 700px) {
  .site-header .wrap { min-height: 56px; }
  .nav { gap: 12px; font-size: .86rem; flex-wrap: nowrap; }
  .nav a.opt { display: none; }
  .brand { font-size: 1.05rem; }
}

@media (max-width: 520px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .nav a[href*="terms"] { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* form eliminazione account */
.form { display: grid; gap: 6px; margin: 16px 0 24px; max-width: 520px; }
.form label { font-weight: 600; margin-top: 10px; }
.form input[type="email"], .form select, .form textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 14px; }
.form label.check input { margin-top: 5px; }
.form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; margin-top: 14px; justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form .status { min-height: 1.5em; color: var(--muted); margin: 8px 0 0; }
