﻿:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --text: #1a2420;
  --muted: #5d6b64;
  --line: #dde3dc;
  --green: #00843d;
  --green-d: #006b31;
  --red: #c8102e;
  --amber: #f5a524;
  --blue: #0b5cab;
  --ok-bg: #e5f5ea;
  --ok: #0a7a35;
  --bad-bg: #fde8eb;
  --bad: #b3122b;
  --warn-bg: #fff4dc;
  --shadow: 0 6px 24px rgba(20, 40, 30, .08);
  --radius: 14px;
}
:root[data-theme="dark"] {
  --bg: #0f1613;
  --surface: #17211c;
  --surface-2: #1e2b25;
  --text: #e8efea;
  --muted: #9bb0a5;
  --line: #2a3a32;
  --green: #2fbf71;
  --green-d: #25a361;
  --ok-bg: #12301f;
  --ok: #54d68c;
  --bad-bg: #3a1620;
  --bad: #ff7b8e;
  --warn-bg: #3a2c10;
  --shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1613; --surface: #17211c; --surface-2: #1e2b25; --text: #e8efea; --muted: #9bb0a5;
    --line: #2a3a32; --green: #2fbf71; --green-d: #25a361; --ok-bg: #12301f; --ok: #54d68c;
    --bad-bg: #3a1620; --bad: #ff7b8e; --warn-bg: #3a2c10; --shadow: 0 6px 24px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
a { color: var(--green); }
img, svg { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 99; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { font-weight: 500; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand strong { color: var(--green); margin-left: -6px; }
.flag { display: inline-flex; width: 26px; height: 18px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.flag i { flex: 1; } .flag i:nth-child(1) { background: #009246; } .flag i:nth-child(2) { background: #fff; } .flag i:nth-child(3) { background: #ce2b37; }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav a { padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--surface-2); color: var(--green); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 8px; }
.pill { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: .85rem; cursor: pointer; text-decoration: none; font-weight: 600; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; font-size: 1.3rem; padding: 4px 10px; margin-left: auto; }
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .tools { margin-left: 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; font-family: inherit; }
.btn:hover { background: var(--green-d); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 6px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--red); }
.btn.big { padding: 14px 28px; font-size: 1.1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Layout */
section.block { padding: 56px 0; }
.page-head { padding: 40px 0 10px; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: .3em; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; display: block; }
a.card:hover { transform: translateY(-3px); border-color: var(--green); }
.icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.green { background: var(--ok-bg); color: var(--ok); }
.tag.red { background: var(--bad-bg); color: var(--bad); }
.tag.amber { background: var(--warn-bg); color: #a46a00; }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(1000px 400px at 85% -10%, rgba(0,132,61,.16), transparent), radial-gradient(800px 360px at 0% 0%, rgba(200,16,46,.10), transparent); }
.hero .grid { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-signs .s { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; place-items: center; box-shadow: var(--shadow); }
.hero-signs .s:nth-child(2) { transform: translateY(18px); } .hero-signs .s:nth-child(5) { transform: translateY(18px); }
.hero-signs .sign-svg { width: 100%; height: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { font-size: 2rem; display: block; color: var(--green); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Alerts & forms */
.alert { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.alert.err { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.alert.warn { background: var(--warn-bg); color: #8a5a00; border-color: transparent; }
form.stack { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 40%, transparent); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { width: auto; }
.form-card { max-width: 460px; margin: 40px auto; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1; }
.row > .btn { flex: none; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Progress */
.bar-track { background: var(--surface-2); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.bar-fill.bad { background: var(--red); } .bar-fill.mid { background: var(--amber); }

/* Quiz */
.quiz-shell { max-width: 820px; margin: 30px auto 60px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.3rem; padding: 4px 14px; border-radius: 10px; background: var(--surface-2); }
.timer.low { background: var(--bad-bg); color: var(--bad); }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.q-sign { display: grid; place-items: center; margin-bottom: 14px; }
.q-sign .sign-svg { width: 130px; height: 130px; }
.q-text { font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
.q-fr { color: var(--muted); margin-top: 8px; font-style: italic; }
.q-fr[hidden] { display: none; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 8px; }
.ans { font: inherit; font-weight: 800; font-size: 1.2rem; padding: 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: all .12s; }
.ans:hover:not([disabled]) { border-color: var(--green); transform: translateY(-2px); }
.ans.correct { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.ans.wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.ans.picked { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.explain { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--green); }
.explain.bad { border-left-color: var(--red); }
.q-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.dot { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); font-size: .72rem; display: grid; place-items: center; font-weight: 700; cursor: pointer; border: 1px solid var(--line); color: var(--muted); }
.dot.cur { outline: 2px solid var(--green); }
.dot.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.dot.ko { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.dot.picked { background: color-mix(in srgb, var(--blue) 18%, var(--surface)); color: var(--blue); }
.star { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.star.on { color: var(--amber); }
.result { text-align: center; }
.result .score { font-size: 4rem; font-weight: 800; line-height: 1; margin: 8px 0; }
.result.pass .score { color: var(--ok); } .result.fail .score { color: var(--bad); }
.review { text-align: left; margin-top: 22px; display: grid; gap: 10px; }
.review .item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.review .item.ko { border-color: var(--bad); }

/* Signs */
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.sign-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.sign-card .sign-svg { width: 96px; height: 96px; }
.sign-card h4 { font-size: .95rem; margin: 10px 0 4px; }
.sign-card p { font-size: .82rem; color: var(--muted); margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 7px 15px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
@media (max-width: 600px) { .opts, .answers { grid-template-columns: 1fr; } }

/* Lessons */
.lesson li { margin-bottom: 8px; }
.lesson-list { display: grid; gap: 14px; }
.side { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .side { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 80px; display: grid; gap: 4px; }
.toc a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .93rem; }
.toc a:hover, .toc a.on { background: var(--surface-2); color: var(--green); }

/* Steps & timeline */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step .n { width: 56px; height: 56px; border-radius: 16px; background: var(--ok-bg); display: grid; place-items: center; font-size: 1.7rem; }

/* Tools */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { background: none; border: 0; font: inherit; padding: 10px 16px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.tab.on { color: var(--green); border-color: var(--green); }
.panel[hidden] { display: none; }
.big-num { font-size: 2.6rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.meter { height: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--green) 0 38%, var(--amber) 38% 62%, var(--red) 62%); position: relative; margin: 14px 0; }
.meter i { position: absolute; top: -5px; width: 4px; height: 26px; background: var(--text); border-radius: 2px; transition: left .3s; }

/* Pricing / FAQ */
.price { font-size: 2.4rem; font-weight: 800; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.card.featured { border: 2px solid var(--green); position: relative; }
.card.featured::before { content: attr(data-badge); position: absolute; top: -13px; left: 20px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 60px; background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 20px; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.site-footer a { display: block; text-decoration: none; color: var(--text); padding: 3px 0; }
.site-footer a:hover { color: var(--green); }
.legal { margin-top: 28px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* Admin */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.admin-nav a { padding: 8px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .92rem; }
.admin-nav a.on { background: var(--green); color: #fff; border-color: var(--green); }
.inline { display: inline; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge { text-align: center; padding: 14px 8px; border-radius: 12px; border: 1px dashed var(--line); opacity: .5; }
.badge.got { opacity: 1; border-style: solid; background: var(--ok-bg); }
.badge span { font-size: 1.8rem; display: block; }
.badge small { color: var(--muted); display: block; font-size: .75rem; }
@media print { .site-header, .site-footer, .btn { display: none; } }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,100,50,.3); }
.brand { font-weight: 600; letter-spacing: -.02em; font-size: 1.25rem; }
.ficon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, #14a85a, #006b31); box-shadow: 0 6px 14px rgba(0,107,49,.28); transition: transform .2s; }
a.card:hover .ficon { transform: scale(1.08) rotate(-4deg); }
.grid.cols-4 a.card:nth-child(4n+2) .ficon { background: linear-gradient(135deg, #e0314b, #a60d24); box-shadow: 0 6px 14px rgba(200,16,46,.28); }
.grid.cols-4 a.card:nth-child(4n+4) .ficon { background: linear-gradient(135deg, #1f6fc4, #0b4a8f); box-shadow: 0 6px 14px rgba(11,92,171,.28); }
.steps-grid { margin-top: 8px; }
.step-card { position: relative; padding-top: 26px; }
.step-num { position: absolute; top: 14px; right: 16px; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--surface-2); -webkit-text-stroke: 1px var(--line); }
.step-card .ficon { width: 48px; height: 48px; border-radius: 14px; }
.step-card .ficon svg { width: 26px; height: 26px; }
a.card.step-cta { background: var(--green); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: center; }
a.card.step-cta:hover { background: var(--green-d); }
.step .n { background: transparent; }
.feature-card { padding: 0; overflow: hidden; }
.feature-card .photo { display: block; aspect-ratio: 12/7; overflow: hidden; background: var(--surface-2); }
.feature-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.card.feature-card:hover .photo img { transform: scale(1.06); }
.feature-card .body { display: block; padding: 0 20px 20px; }
.feature-card .ficon { margin-top: -28px; position: relative; border: 3px solid var(--surface); width: 58px; height: 58px; }
.step-card { padding: 0; overflow: hidden; }
.step-card .photo { position: relative; aspect-ratio: 12/7; overflow: hidden; background: var(--surface-2); }
.step-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-card .body { padding: 0 20px 20px; }
.step-card .ficon { margin-top: -26px; position: relative; border: 3px solid var(--surface); }
.step-card .step-num { position: absolute; top: 10px; left: 10px; right: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 1rem; -webkit-text-stroke: 0; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
a.card.step-cta { min-height: 220px; padding: 22px; }
/* Hero photo slideshow */
.hero.has-bg { position: relative; overflow: hidden; color: #fff; padding: 84px 0 76px; background: #0d1f16; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: heroFade 24s infinite; transform: scale(1.04); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,28,16,.86) 0%, rgba(6,28,16,.55) 45%, rgba(6,28,16,.12) 100%); }
@keyframes heroFade { 0% { opacity: 0; transform: scale(1.04); } 6% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; } }
.hero.has-bg .wrap { position: relative; z-index: 1; }
.hero.has-bg h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero.has-bg h1 em { color: #5fe39a; }
.hero.has-bg p.lead, .hero.has-bg .muted { color: rgba(255,255,255,.88); }
.hero.has-bg .muted a { color: #8ff0b9; }
.hero.has-bg .tag.green { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.hero.has-bg .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.hero.has-bg .btn.ghost:hover { background: rgba(255,255,255,.2); }
@media (prefers-reduced-motion: reduce) { .hero-bg span { animation: none; } .hero-bg span:first-child { opacity: 1; } }
@media (max-width: 860px) { .hero-signs { display: none; } .hero-bg::after { background: rgba(6,28,16,.78); } }


/* ===== Italian tricolore theme ===== */
:root {
  --it-green: #009246;
  --it-white: #ffffff;
  --it-red: #ce2b37;
  --green: #009246;
  --green-d: #007a3a;
  --red: #ce2b37;
  --bg: #f8f7f3;
  --ok: #00793a;
  --bad: #ce2b37;
  --bad-bg: #fdebed;
  --tricolor: linear-gradient(90deg, #009246 0 33.33%, #ffffff 33.33% 66.66%, #ce2b37 66.66% 100%);
}
:root[data-theme="dark"] { --green: #1fb26a; --green-d: #159a58; --bg: #0f1613; --red: #ef5560; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --green: #1fb26a; --green-d: #159a58; --red: #ef5560; } }

.site-header { border-top: 0; }
.site-header::before { content: ''; display: block; height: 5px; background: var(--tricolor); box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); }
.site-footer::before { content: ''; display: block; height: 6px; background: var(--tricolor); margin: -40px 0 34px; box-shadow: inset 0 1px 0 rgba(0,0,0,.08), inset 0 -1px 0 rgba(0,0,0,.08); }
.site-footer { border-top: 0; }

h2.center::after, .page-head h1::after { content: ''; display: block; width: 84px; height: 4px; margin: 12px auto 0; border-radius: 4px; background: var(--tricolor); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.page-head h1::after { margin-left: 0; }

.nav a.active { background: color-mix(in srgb, var(--green) 12%, var(--surface)); color: var(--green); box-shadow: inset 0 -3px 0 var(--red); border-radius: 8px 8px 4px 4px; }
.btn { background: var(--green); }
.btn:hover { background: var(--green-d); }
.btn.danger, .btn.red { background: var(--red); }
a.card:hover { border-color: var(--red); }
.hero.has-bg h1 em { color: #6ff0a6; }
.hero-bg::after { background: linear-gradient(100deg, rgba(0,50,25,.88) 0%, rgba(0,50,25,.55) 45%, rgba(120,10,25,.18) 100%); }
.hero.has-bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--tricolor); z-index: 2; }

/* feature / step icon tiles cycle green · red · green-dark like the flag */
.grid.cols-4 a.card:nth-child(4n+2) .ficon, .step-card:nth-child(4n+2) .ficon { background: linear-gradient(135deg, #e0414d, #ce2b37 55%, #a5202b); box-shadow: 0 6px 14px rgba(206,43,55,.3); }
.grid.cols-4 a.card:nth-child(4n+4) .ficon, .step-card:nth-child(4n+4) .ficon { background: linear-gradient(135deg, #e0414d, #ce2b37 55%, #a5202b); box-shadow: 0 6px 14px rgba(206,43,55,.3); }
.grid.cols-4 a.card:nth-child(4n+1) .ficon, .grid.cols-4 a.card:nth-child(4n+3) .ficon, .step-card:nth-child(4n+1) .ficon, .step-card:nth-child(4n+3) .ficon { background: linear-gradient(135deg, #00b35a, #009246 55%, #007a3a); box-shadow: 0 6px 14px rgba(0,146,70,.3); }
.step-card:nth-child(even) .step-num { background: var(--red); }
a.card.step-cta { background: linear-gradient(135deg, #009246, #007a3a); }
a.card.step-cta:hover { background: linear-gradient(135deg, #007a3a, #00662f); }
.tag.amber { background: #fdebed; color: #a5202b; }
.stat b, .big-num { color: var(--green); }
.stat { border-bottom: 3px solid var(--green); }
.stat:nth-child(2n) { border-bottom-color: var(--red); }
.bar-fill { background: var(--green); } .bar-fill.mid { background: #e8a33a; } .bar-fill.bad { background: var(--red); }
.logo-mark { box-shadow: 0 2px 6px rgba(0,100,50,.3); }
.card.featured { border-color: var(--green); }
.card.featured::before { background: var(--red); }
.q-card { border-top: 5px solid; border-image: var(--tricolor) 1; }

/* ===== Colour & shapes ===== */
:root {
  --tint-green: #e6f4ec;
  --tint-red: #fdeaec;
  --tint-cream: #fff6e6;
  --tint-blue: #e8f1fb;
}
:root[data-theme="dark"] { --tint-green: #10281c; --tint-red: #2e1519; --tint-cream: #2b2312; --tint-blue: #12233a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tint-green: #10281c; --tint-red: #2e1519; --tint-cream: #2b2312; --tint-blue: #12233a; } }

body { background: var(--bg); background-image: radial-gradient(circle at 100% 0, var(--tint-green) 0, transparent 38%), radial-gradient(circle at 0 60%, var(--tint-red) 0, transparent 30%); background-attachment: fixed; }

/* Sections with soft tinted backgrounds + decorative shapes */
main > section.block { position: relative; overflow: hidden; }
main > section.block > .wrap { position: relative; z-index: 1; }
main > section.block:nth-of-type(odd)::before, main > section.block:nth-of-type(even)::before { content: ''; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
main > section.block:nth-of-type(odd)::before { width: 380px; height: 380px; right: -120px; top: -120px; background: var(--tint-green); }
main > section.block:nth-of-type(even)::before { width: 320px; height: 320px; left: -110px; bottom: -110px; background: var(--tint-red); }
main > section.block:nth-of-type(even)::after { content: ''; position: absolute; width: 140px; height: 140px; right: 6%; top: 24px; border-radius: 28px; transform: rotate(18deg); background: var(--tint-cream); z-index: 0; pointer-events: none; }

section.block[style*="background:var(--surface)"] { background: linear-gradient(180deg, var(--tint-green), var(--surface) 55%, var(--tint-red)) !important; }

/* Page headers get a coloured band */
.page-head { margin-top: 24px; padding: 30px 30px 26px; border-radius: 22px; background: linear-gradient(120deg, var(--tint-green), var(--surface) 60%, var(--tint-red)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: color-mix(in srgb, var(--green) 14%, transparent); }
.page-head::after { content: ''; position: absolute; right: 90px; bottom: -34px; width: 90px; height: 90px; border-radius: 22px; transform: rotate(20deg); background: color-mix(in srgb, var(--red) 14%, transparent); }
.page-head > * { position: relative; z-index: 1; }
.page-head.center { text-align: center; }

/* Coloured cards */
.card { border-top: 4px solid var(--green); }
.grid > .card:nth-child(3n+2), .grid > a.card:nth-child(3n+2) { border-top-color: var(--red); }
.grid > .card:nth-child(3n+3), .grid > a.card:nth-child(3n+3) { border-top-color: #e8a33a; }
.card.flat { border-top-width: 1px; }
.feature-card, .step-card { border-top-width: 1px !important; }
.stat { background: linear-gradient(160deg, var(--surface), var(--tint-green)); }
.stat:nth-child(2n) { background: linear-gradient(160deg, var(--surface), var(--tint-red)); }
.stat:nth-child(3n) { background: linear-gradient(160deg, var(--surface), var(--tint-cream)); }
.table-wrap { border-top: 4px solid var(--green); }
th { background: var(--tint-green); color: var(--green-d); }
.sign-card { background: linear-gradient(180deg, var(--surface), var(--tint-cream)); }
.sign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); transition: .2s; }
.explain { background: var(--tint-green); }
.explain.bad { background: var(--tint-red); }
.q-card { background: linear-gradient(180deg, var(--surface) 70%, var(--tint-green)); }
.ans:hover:not([disabled]) { background: var(--tint-green); }
.chip.on { background: var(--red); border-color: var(--red); }
.badge.got { background: linear-gradient(160deg, var(--tint-green), var(--tint-cream)); }
details.faq { border-left: 4px solid var(--green); }
details.faq:nth-child(even) { border-left-color: var(--red); }
.admin-nav a.on { background: var(--red); border-color: var(--red); }
.step .n { background: var(--tint-green); }
.step:nth-child(even) .n { background: var(--tint-red); }
.step { border-left: 5px solid var(--green); }
.step:nth-child(even) { border-left-color: var(--red); }
.site-footer { background: linear-gradient(180deg, var(--tint-green), var(--surface) 70%); }
.alert { border-left: 5px solid var(--green); }
.alert.err { border-left-color: var(--red); }
.alert.warn { border-left-color: #e8a33a; }
.hero-signs .s { background: var(--surface); border: 0; box-shadow: 0 10px 28px rgba(0,0,0,.25); }

/* CTA band on home */
.card[style*="background:var(--green)"] { background: linear-gradient(120deg, #009246 0, #007a3a 55%, #ce2b37 160%) !important; position: relative; overflow: hidden; border-top: 0; }
.card[style*="background:var(--green)"]::before { content: ''; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.12); }
.card[style*="background:var(--green)"]::after { content: ''; position: absolute; width: 120px; height: 120px; left: -30px; bottom: -50px; border-radius: 26px; transform: rotate(20deg); background: rgba(206,43,55,.45); }

/* Contact section */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: linear-gradient(160deg, #009246, #007a3a 70%, #ce2b37 180%); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact-info::after { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -60px; border-radius: 50%; background: rgba(255,255,255,.12); }
.contact-info h3 { color: #fff; margin-bottom: 18px; }
.contact-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
.contact-info li { display: flex; gap: 14px; align-items: center; }
.contact-info .ci { width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.2rem; }
.contact-info small { display: block; opacity: .8; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-info a { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.contact-form { margin: 0; }

/* Enrollment form */
.enroll-form { display: grid; gap: 20px; }
.enroll-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.enroll-sec h2 .n { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1rem; flex: none; }
.enroll-sec:nth-of-type(2) h2 .n { background: var(--red); }
.upload-row > label { flex: 1 1 260px; }
label.upload { border: 2px dashed var(--line); border-radius: 14px; padding: 20px; text-align: center; cursor: pointer; justify-items: center; background: var(--tint-green); transition: .15s; }
label.upload:hover, label.upload.has-file { border-color: var(--green); }
label.upload input[type=file] { font-size: .85rem; max-width: 100%; }
.ficon.red { background: linear-gradient(135deg, #e0414d, #ce2b37 55%, #a5202b); }
label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
label.check input { margin-top: 5px; }
.bank { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 14px; padding: 18px 20px; border-radius: 14px; background: var(--tint-green); border-left: 5px solid var(--green); }
.bank dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; align-self: center; }
.bank dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.enroll-ok { text-align: center; margin-top: 30px; }
.enroll-ok .ficon { display: grid; }

.fee-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; margin: 0 0 14px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #009246, #007a3a 60%, #ce2b37 200%); font-weight: 600; }
.fee-banner b { font-size: 1.9rem; letter-spacing: -.02em; }

.owner-edit { margin-top: 24px; border-top: 4px solid var(--red); background: var(--tint-red); }
.owner-edit summary { cursor: pointer; font-weight: 700; }

.example-flag { display: inline-block; margin-bottom: 10px; padding: 6px 14px; border-radius: 999px; background: #fff4dc; color: #8a5a00; border: 1px solid #e8a33a; font-weight: 700; font-size: .82rem; }

/* Bank transfer card */
.bank-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); margin: 0 0 16px; position: relative; }
.bank-card::before { content: ''; display: block; height: 5px; background: var(--tricolor); }
.bank-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: linear-gradient(120deg, #009246, #007a3a 65%, #0b5a30); color: #fff; }
.bank-head strong { display: block; font-size: 1.1rem; }
.bank-head small { opacity: .85; }
.bank-logo { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.bank-amount { margin-left: auto; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.bank-amount span { font-size: .9rem; font-weight: 600; opacity: .85; }
.bank-card .example-flag { display: block; border-radius: 0; margin: 0; padding: 8px 22px; border: 0; border-bottom: 1px solid #e8a33a; background: #fff4dc; color: #8a5a00; }
.bank-rows { margin: 0; padding: 6px 22px; }
.bank-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bank-row:last-child { border-bottom: 0; }
.bank-row dt { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.bank-row dt svg { color: var(--green); flex: none; }
.bank-row dd { margin: 0; display: flex; align-items: center; gap: 12px; justify-content: space-between; font-weight: 600; overflow-wrap: anywhere; }
.bank-row dd.mono span { font-size: 1.05rem; letter-spacing: .06em; }
.copy-btn { flex: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: .15s; }
.copy-btn:hover { border-color: var(--green); color: var(--green); }
.copy-btn.done { background: var(--green); border-color: var(--green); color: #fff; }
.bank-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 22px; background: var(--tint-green); color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.bank-note svg { color: var(--green); flex: none; margin-top: 2px; }
@media (max-width: 640px) { .bank-row { grid-template-columns: 1fr; } .bank-head { flex-wrap: wrap; } .bank-amount { margin-left: 0; width: 100%; } }

.btn.red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(206,43,55,.35); }
.btn.red:hover { background: #a5202b; }

/* Reviews */
.review-summary { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 28px; flex-wrap: wrap; color: var(--muted); }
.review-summary b { font-size: 2rem; color: var(--text); line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: #f5b301; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card { margin: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; position: relative; border-top: 4px solid var(--green); }
.review-card:nth-child(3n+2) { border-top-color: var(--red); }
.review-card:nth-child(3n+3) { border-top-color: #f5b301; }
.review-card[hidden] { display: none; }
.review-card::before { content: '“'; position: absolute; top: 6px; right: 16px; font-size: 4rem; line-height: 1; color: var(--tint-green); font-family: Georgia, serif; }
.review-card blockquote { margin: 0; font-size: .98rem; line-height: 1.6; flex: 1; position: relative; }
.review-card figcaption { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.review-card .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #00b35a, #009246); color: #fff; display: grid; place-items: center; font-weight: 700; }
.review-card:nth-child(3n+2) .av { background: linear-gradient(135deg, #e0414d, #ce2b37); }
.review-card:nth-child(3n+3) .av { background: linear-gradient(135deg, #f7c548, #e8a33a); }
