/* Pagine pubbliche: landing e pagine legali */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --violet: #9333ea;
  --dark: #111827;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(17 24 39 / 0.06);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--surface); line-height: 1.6; }
a { color: var(--primary); }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
code { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 0.9em; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---- header / footer ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: conic-gradient(from 45deg, var(--primary), var(--violet), var(--primary)); flex: none; }
.brand-sm { font-size: 1rem; }
.brand-sm .brand-mark { width: 22px; height: 22px; }
.site-nav, .site-nav [data-guest] { display: flex; align-items: center; gap: 18px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 28px 0; font-size: 0.88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner p { margin: 6px 0 0; }
.footer-inner .by a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-inner .by a:hover { color: var(--text); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; }
.footer-inner nav a:hover { color: var(--text); text-decoration: underline; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: #cbd5e1; background: #f9fafb; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: #374151; border-color: #374151; }
.btn-green { background: #0f766e; border-color: #0f766e; color: #fff; }
.btn-green:hover { background: #115e59; border-color: #115e59; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---- sezioni ---- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.2; margin: 0 0 40px; letter-spacing: -0.01em; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lead { font-size: 1.12rem; color: #4b5563; margin: 0 0 28px; }

/* ---- hero ---- */
.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgb(147 51 234 / 0.10), transparent 70%),
    radial-gradient(700px 380px at 10% 0%, rgb(79 70 229 / 0.10), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 20px; }
.grad { background: linear-gradient(90deg, var(--primary), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.92rem; }
.ticks li { display: flex; align-items: center; gap: 7px; }
.ticks li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.9' fill='none' stroke='%234f46e5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ticks.list { flex-direction: column; gap: 12px; margin: 0 0 28px; color: var(--text); font-size: 1rem; }

.hero-visual { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.qr-card { background: var(--surface); border-radius: 24px; padding: 22px; box-shadow: 0 20px 60px rgb(79 70 229 / 0.18), 0 2px 6px rgb(0 0 0 / 0.05); transform: rotate(-3deg); }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px 14px; font-size: 0.85rem;
}
.float-card.stat { right: -24px; top: 18%; display: flex; flex-direction: column; line-height: 1.25; }
.float-card.stat strong { font-size: 1.35rem; color: var(--primary); }
.float-card.stat span { color: var(--muted); }
.float-card.link { left: -28px; bottom: 12%; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgb(16 185 129 / 0.18); }

/* ---- funzioni ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }

/* ---- passi ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; font-weight: 700; }
.steps h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- tabelle ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--bg); font-weight: 600; }
.compare { min-width: 560px; }
.compare td:not(:first-child), .compare th:not(:first-child) { width: 28%; }
.compare th:last-child { color: var(--primary); }

/* ---- prezzi ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 16px 40px rgb(79 70 229 / 0.12); }
.price-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.price-card .ticks.list { flex: 1; }
.price-tag { position: absolute; top: -12px; left: 24px; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.pricing-note { margin-top: 24px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.price strong { font-size: 2.8rem; line-height: 1; }
.price span { color: var(--muted); }
.price-card .small { margin: 14px 0 0; }

/* ---- promo Hybrid Reviews ---- */
.promo {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  border-radius: 22px; padding: 48px; background: linear-gradient(135deg, #ecfdf5, #f0fdfa 50%, #eff6ff);
  border: 1px solid #d1fae5;
}
.promo .eyebrow { color: #047857; }
.promo h2 { margin: 0 0 14px; }
.promo p { color: #374151; }
.promo-tip { display: flex; gap: 12px; align-items: flex-start; background: rgb(255 255 255 / 0.7); border-radius: 12px; padding: 14px; margin: 18px 0 24px; font-size: 0.95rem; }
.promo-tip .icon { flex: none; width: 34px; height: 34px; padding: 7px; background: #d1fae5; color: #047857; }
.review-widget { background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: 0 16px 40px rgb(4 120 87 / 0.14); font-size: 0.88rem; }
.promo-caption { margin: 0 0 8px; text-align: center; font-size: 0.78rem; color: #047857 !important; }
.rw-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rw-head strong { font-size: 1.3rem; }
.rw-head small { display: block; color: var(--muted); }
.rw-g { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); font-weight: 800; color: #4285f4; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.rw-item { padding-top: 12px; }
.rw-item p { margin: 2px 0; color: var(--text); }
.rw-item small { color: var(--muted); }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #4b5563; }

.final-cta h2 { margin-bottom: 10px; }
.final-cta .lead { margin-bottom: 24px; }
.final-cta .small { margin-top: 20px; }

/* ---- pagine legali ---- */
.doc { padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 4px; letter-spacing: -0.01em; }
.doc > .muted { margin: 0 0 32px; }
.doc h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.doc p, .doc li { color: #374151; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .table-wrap { margin: 20px 0; }

/* ---- schermi piccoli ---- */
@media (max-width: 900px) {
  .hero-inner, .promo { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; margin-top: 8px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .promo { padding: 32px 24px; }
  .promo-visual { max-width: 380px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .site-nav, .site-nav [data-guest] { gap: 12px; }
  .site-nav .btn { padding: 7px 12px; }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 60px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .float-card.stat { right: -8px; }
  .float-card.link { left: -8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
