/* Elisuperficie website. System fonts only: no external requests (GDPR). */
:root {
  --brand: #28a745;
  --brand-strong: #1e8a39;
  --brand-soft: #e8f6ec;
  --ink: #0f1a14;
  --ink-2: #4a5650;
  --ink-3: #75817b;
  --bg: #ffffff;
  --bg-2: #f6f8f7;
  --card: #ffffff;
  --line: #e3e8e5;
  --todo-bg: #fff3c4;
  --todo-ink: #7a5b00;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 26, 20, .06), 0 12px 32px -12px rgba(15, 26, 20, .18);
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3ec45e;
    --brand-strong: #5bd678;
    --brand-soft: #14281b;
    --ink: #eef3f0;
    --ink-2: #b4beb8;
    --ink-3: #87918c;
    --bg: #0b0f0d;
    --bg-2: #121815;
    --card: #161d19;
    --line: #26302b;
    --todo-bg: #3d3210;
    --todo-ink: #ffd866;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-strong); }
img { max-width: 100%; display: block; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.1rem; }
.brand img { width: 44px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2375817b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 28px 6px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}
.site-header .lang-select { margin-left: 8px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .site-header .lang-select { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary[aria-disabled="true"] { opacity: .85; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-strong); font-weight: 650; font-size: .85rem; margin-bottom: 18px;
}
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.disclaimer { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Phone mockup (drawn in HTML, sample data only) */
.phone {
  width: min(320px, 82vw); margin: 0 auto; aspect-ratio: 9 / 19.5;
  border-radius: 48px; padding: 12px; background: #111; box-shadow: var(--shadow), 0 0 0 2px #2a2a2a inset;
}
.screen {
  height: 100%; border-radius: 38px; overflow: hidden; background: #000; color: #fff;
  font-size: 12px; padding: 44px 14px 14px; position: relative;
}
.screen .island { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #111; }
.screen .plus { position: absolute; top: 46px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: #1c1c1e; color: #3ec45e; display: grid; place-items: center; font-size: 20px; }
.screen .title { font-size: 26px; font-weight: 800; margin: 30px 0 10px; letter-spacing: -.02em; }
.screen .search { background: #1c1c1e; color: #8e8e93; border-radius: 12px; padding: 8px 10px; margin-bottom: 14px; }
.screen .section { color: #8e8e93; font-weight: 600; margin: 8px 4px 6px; }
.screen .group { background: #1c1c1e; border-radius: 14px; padding: 2px 12px; }
.screen .row { padding: 10px 0; border-bottom: 1px solid #2c2c2e; }
.screen .row:last-child { border-bottom: 0; }
.screen .row b { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.screen .row span { color: #8e8e93; }
.pill { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pill.ok { background: #12351d; color: #3ec45e; }
.pill.wait { background: #3a2a10; color: #ff9f0a; }
.pill.off { background: #2c2c2e; color: #aeaeb2; }
.screen .tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; justify-content: space-around;
  background: #1c1c1e; border-radius: 24px; padding: 8px 4px; font-size: 9px; color: #aeaeb2;
}
.screen .tabbar .on { color: #3ec45e; font-weight: 600; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } section { padding: 56px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--ink-2); margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; left: 26px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 750; display: grid; place-items: center;
}

.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 550; }
.checks li::before { content: "✓"; color: var(--brand-strong); font-weight: 800; }
@media (max-width: 800px) { .privacy-band { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 0; }
.plan .per { color: var(--ink-3); font-weight: 500; font-size: 1rem; letter-spacing: 0; }
.plan .alt-price { color: var(--ink-2); font-size: .95rem; min-height: 1.5em; margin: 4px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--brand-strong); font-weight: 800; }
.pricing-note { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--ink-3); font-size: .9rem; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .card { padding: 48px 24px; background: linear-gradient(135deg, var(--brand-soft), var(--card)); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-3); font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Legal and support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; letter-spacing: -.01em; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .35em 0; }
.doc .updated { color: var(--ink-3); font-size: .9rem; }
.doc .box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 1.4em 0; }
.doc .box p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 650; }
@media (max-width: 600px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { border: 0; padding: 4px 0; } .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; } .doc td:first-child { color: var(--ink); font-weight: 650; } }

/* Multilingual articles: Italian is shown until site.js picks a language. */
[data-lang-block]:not([lang="it"]) { display: none; }
html[data-lang] [data-lang-block] { display: none; }
html[data-lang="it"] [data-lang-block][lang="it"],
html[data-lang="en"] [data-lang-block][lang="en"],
html[data-lang="de"] [data-lang-block][lang="de"],
html[data-lang="fr"] [data-lang-block][lang="fr"],
html[data-lang="es"] [data-lang-block][lang="es"] { display: block; }
