:root {
  --bg: #F9F6F0;
  --card: #FFFFFF;
  --text: #0d1526;
  --muted: #6b738a;
  --brand: #002060;
  --brand-2: #D6C29A;
  --border: #DDD6CB;
  --border-light: #EDE8E0;
  --input-bg: #F3EFE9;
  --shadow: 0 4px 20px rgba(0,32,96,.08);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: #F9F6F0;
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1100px, 92%); margin: 0 auto; }
.header {
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 0; position: sticky; top:0;
  background: rgba(249,246,240,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.logo { font-weight: 800; letter-spacing:.3px; text-decoration: none; color: var(--text); }
.nav a { color: var(--text); text-decoration: none; margin-left:18px; opacity:.85; }
.nav a:hover { opacity: 1; }
.nav a.btn { color: #ffffff; }
.nav a.btn:hover { color: #ffffff; opacity: 1; }
.nav .btn { margin-left: 10px; }

.hero { padding: 64px 0 24px; text-align: left; }
.hero h1 { font-size: clamp(28px, 5vw, 52px); line-height:1.1; margin:0 0 12px; }
.lead { color: var(--muted); max-width: 680px; }
.actions { margin: 18px 0 28px; display:flex; gap:12px; flex-wrap: wrap; }

.btn {
  background: linear-gradient(135deg, var(--brand), #1a4080);
  color: #ffffff; padding:12px 16px; border-radius: 12px; text-decoration:none; font-weight:700; display:inline-block;
  border: none; cursor:pointer; box-shadow: var(--shadow);
}
.btn.ghost { background: transparent; color: var(--text); border:1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--input-bg); }
.btn.small { padding:8px 12px; font-size: 14px; }

/* ---- Hero card ---- */
.hero-card {
  margin-top: 24px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 540px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-card-label {
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand), #1a4080);
  color: #ffffff;
}
.hero-card-rows { padding: 6px 0; }
.hero-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-light);
}
.hero-row:last-child { border-bottom: none; }
.hero-row-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}
.hero-row-val { font-size: 14px; color: var(--text); }
.hero-row-output .hero-row-val { font-weight: 600; color: var(--brand); }

/* ---- Examples table ---- */
.examples-section { margin: 48px auto; }
.examples-table {
  display: grid;
  grid-template-columns: 140px repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.examples-label {
  padding: 18px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--brand), #1a4080);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
}
.examples-label-output { color: var(--brand-2); border-bottom: none; }
.examples-cell {
  padding: 18px 16px;
  font-size: 14px;
  color: var(--text);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}
.examples-output-full {
  grid-column: span 3;
  justify-content: center;
  text-align: center;
  border-bottom: none;
}
.examples-cell-output { font-weight: 700; color: var(--brand); }
@media (max-width: 680px) {
  .examples-table { grid-template-columns: 100px repeat(3, 1fr); }
  .examples-output-full { grid-column: span 3; }
}

/* ---- Steps section ---- */
.steps-section { margin: 48px auto; }
.section-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--text);
}
.step-card { position: relative; padding-top: 22px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #1a4080);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 16px; }
.step-card p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---- Benefit cards ---- */
.benefit-card {
  border-top: 3px solid var(--brand-2);
  padding-top: 20px;
}
.benefit-icon {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--brand);
  line-height: 1;
  display: block;
}
.benefit-card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.benefit-card p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
@media (max-width: 860px){ .grid-3 { grid-template-columns:1fr; } }

.card {
  background: var(--card); border:1px solid var(--border); border-radius:16px; padding:18px; box-shadow: var(--shadow);
}
.band { background: rgba(214,194,154,.1); padding: 30px 0; margin: 30px 0; }

.pricing h2, .cta h2 { margin-top: 0; }
.price { font-size: 28px; font-weight:800; margin: 8px 0 0; }
.highlight { outline: 2px solid var(--brand); }

.cta { padding: 30px 0 50px; }
#early-form { display:flex; gap:10px; flex-wrap: wrap; }
#early-form input {
  flex:1 1 260px; padding:12px 14px; border-radius:12px; border:1px solid var(--border); background: var(--input-bg); color: var(--text);
}
#early-form button { flex: 0 0 auto; }
.form-note { color: var(--muted); }

.footer {
  display:flex; justify-content: space-between; align-items:center; padding: 26px 0 40px; color: var(--muted);
  border-top: 1px solid var(--border-light);
}
.tiny { font-size: 12px; color: var(--muted); }
a { color: var(--brand); }
.badge-card {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--brand-2);
  background: rgba(214, 194, 154, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--brand-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--brand);
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.badge-body {
  font-size: 14px;
  color: var(--muted);
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: Baskerville, "Baskerville Old Face", "Libre Baskerville", Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
  font-size: 24px;
}
.logo-p  { color: #002060; }
.logo-nl { color: #D6C29A; }

/* ---- Lingue ---- */
.lang-it { display: inline; }
.lang-en { display: none; }

html[data-lang="en"] .lang-it { display: none; }
html[data-lang="en"] .lang-en { display: inline; }

/* Block-level variants for elements that need display:block */
.lang-it.block { display: block; }
.lang-en.block { display: none; }
html[data-lang="en"] .lang-it.block { display: none; }
html[data-lang="en"] .lang-en.block { display: block; }

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  font-size: 13px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  cursor: pointer;
  opacity: 0.75;
  color: var(--text);
  transition: all .15s;
}
.lang-btn:hover { opacity: 1; }

.lang-btn.active {
  border-color: var(--brand);
  background: rgba(0, 32, 96, 0.07);
  opacity: 1;
  color: var(--brand);
  font-weight: 700;
}

/* Fixed floating lang-switch widget (auto-injected by lang-switch.js) */
.lang-switch-fixed {
  position: fixed;
  bottom: 22px;
  right: 20px;
  z-index: 9999;
  background: rgba(249, 246, 240, .95);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,32,96,.12);
}
