/* =================================================================
   Il Sestante — educazione finanziaria (Italia)
   Design: portale quotidiano italiano (stile La Repubblica).
   Fondo bianco, titoli serif Bodoni, rosso forte, accento tricolore.
   Type: Bodoni Moda (display serif) / Mulish (testo + etichette).
   ================================================================= */

:root {
  --paper:    #FFFFFF;
  --paper-2:  #F5F3EE;
  --paper-3:  #ECE8DF;
  --ink:      #16120E;
  --ink-soft: #322E28;
  --muted:    #6C685F;
  --faint:    #9A958B;

  --red:      #E2001A;
  --red-deep: #B30015;
  --red-wash: #FBE7E9;
  --red-line: rgba(226,0,26,0.28);
  --green:    #008C45;
  --green-wash: #E5F1E9;

  --line:     rgba(22,18,14,0.16);
  --line-2:   rgba(22,18,14,0.32);
  --hair:     rgba(22,18,14,0.11);
  --dark:     #1A1612;

  --shadow-sm: 0 1px 2px rgba(22,18,14,0.06);
  --shadow-md: 0 16px 40px -24px rgba(22,18,14,0.32);
  --shadow-lg: 0 34px 64px -28px rgba(22,18,14,0.40);

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 7px;
  --r-lg: 12px;

  --maxw: 1240px;
  --pad: clamp(1rem, 3.5vw, 2.6rem);

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-body); letter-spacing: -0.01em; }
p { color: var(--ink-soft); }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

.kicker, .eyebrow {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.kicker::before, .eyebrow::before { content: ""; width: 16px; height: 3px; background: var(--red); display: inline-block; }
.sec-num { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.lead, .standfirst { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.standfirst { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--ink-soft); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3rem, 6.5vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.5rem); }
.section--alt { background: var(--paper-2); }
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 720px; }
.maxw-mid { max-width: 880px; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.82rem 1.5rem; background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em;
  text-transform: uppercase; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { --bg: var(--red); --fg: #fff; }
.btn--primary:hover { --bg: var(--red-deep); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); border-color: #fff; }
.btn--light:hover { --bg: var(--paper-2); }
.btn--lg { padding: 0.98rem 1.85rem; font-size: 0.95rem; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body);
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red); transition: gap 0.2s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { gap: 0.65rem; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Tricolore + utility ---------- */
.tricolore { display: flex; height: 4px; }
.tricolore i:nth-child(1) { flex: 1; background: var(--green); }
.tricolore i:nth-child(2) { flex: 1; background: #fff; }
.tricolore i:nth-child(3) { flex: 1; background: var(--red); }

.utility { background: var(--ink); color: #CFC9BE; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 1rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; }
.utility a { color: #EDE8DE; }
.utility a:hover { color: #fff; }
@media (max-width: 680px) { .utility__right { display: none; } }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(0.9rem, 2vw, 1.5rem); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 0.9; letter-spacing: -0.01em; }
.brand__name b { color: var(--red); font-weight: 700; }
.brand__name small { display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.masthead__meta { text-align: right; font-size: 0.78rem; color: var(--muted); font-weight: 600; line-height: 1.5; }
.masthead__meta b { color: var(--ink); display: block; }
@media (max-width: 620px) { .masthead__meta { display: none; } }

/* ---------- Section nav (sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 2px solid var(--ink); transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav__brand-mini { display: none; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.nav__brand-mini b { color: var(--red); }
.site-header.is-scrolled .nav__brand-mini { display: inline-flex; }
.nav__links { display: flex; align-items: center; gap: 0; }
.nav__links a {
  font-family: var(--font-body); padding: 0.5rem 0.85rem; font-size: 0.84rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); position: relative; transition: color 0.2s;
}
.nav__links a::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.22s var(--ease); }
.nav__links a:hover { color: var(--red); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--red); }
.nav__cta { margin-left: 0.6rem; }
.nav .nav__cta a.btn { color: var(--fg); }
.nav .nav__cta a.btn::after { display: none; }

.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
body.menu-open .nav__toggle .icon-open { display: none; }
body.menu-open .nav__toggle .icon-close { display: block; }

@media (max-width: 1020px) {
  .nav__toggle { display: inline-flex; }
  .nav__brand-mini { display: inline-flex !important; }
  .nav__links {
    position: fixed; inset: 56px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 0.4rem var(--pad) 1.4rem; border-bottom: 2px solid var(--ink);
    box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  body.menu-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.9rem 0.3rem; font-size: 0.95rem; border-bottom: 1px solid var(--hair); }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 0.9rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero (lead + aside) ---------- */
.hero { padding-block: clamp(1.6rem, 3vw, 2.6rem); }
.hero__grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.lead-story { display: grid; gap: 1.1rem; }
.lead-story__img { position: relative; overflow: hidden; border-radius: var(--r-md); }
.lead-story__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lead-story h1 { margin-top: 0.4rem; }
.lead-story h1 a:hover { color: var(--red); }
.lead-story__sf { max-width: 60ch; }
.lead-story__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.lead-story__meta time, .lead-story__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.lead-story .btn { margin-top: 0.4rem; justify-self: start; }

.hero__aside { display: grid; gap: 1.6rem; align-content: start; }
.headline-list { display: grid; }
.headline-list > a { padding: 0.95rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; transition: color 0.2s; }
.headline-list > a:first-child { border-top: 0; padding-top: 0; }
.headline-list > a:hover h3 { color: var(--red); }
.headline-list h3 { font-size: 1.18rem; font-weight: 600; line-height: 1.18; }
.headline-list .lbl { font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }

.mostread { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.3rem; }
.mostread h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.mostread h2::before { content: ""; width: 16px; height: 3px; background: var(--red); }
.mostread ol { list-style: none; counter-reset: m; display: grid; }
.mostread li { counter-increment: m; display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--line); align-items: start; }
.mostread li:first-child { border-top: 0; }
.mostread li::before { content: counter(m); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--red); line-height: 1; }
.mostread a { font-weight: 600; font-size: 0.96rem; line-height: 1.25; }
.mostread a:hover { color: var(--red); }

/* ---------- Section rule header ---------- */
.sec-rule { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 3px solid var(--ink); padding-bottom: 0.55rem; margin-bottom: clamp(1.4rem, 2.5vw, 2rem); flex-wrap: wrap; }
.sec-rule h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.sec-rule__label { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.sec-rule__label::before { content: ""; width: 22px; height: 4px; background: var(--red); }
.sec-rule .link-arrow { font-size: 0.74rem; }

/* ---------- Article cards ---------- */
.acard { display: grid; gap: 0.7rem; }
.acard__media { overflow: hidden; border-radius: var(--r-sm); background: var(--paper-2); }
.acard__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.6s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.05); }
.acard__lbl { font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.acard h3 { font-size: 1.25rem; line-height: 1.16; }
.acard:hover h3 { color: var(--red); }
.acard p { font-size: 0.95rem; color: var(--muted); }
.acard__meta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--faint); }
.acard--divider { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2vw, 1.6rem); }

.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); } .acard--divider { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Cards (interior) ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: clamp(1.4rem, 2.5vw, 2rem); height: 100%; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--red-wash); color: var(--red); }
.card__icon svg { width: 24px; height: 24px; }
.card--green .card__icon { background: var(--green-wash); color: var(--green); }
.card h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.card p { font-size: 0.97rem; color: var(--muted); }
.card__foot { margin-top: 1.1rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.split img { width: 100%; object-fit: cover; aspect-ratio: 4/3; border-radius: var(--r-sm); }
.split__media { position: relative; }
.split__tag { position: absolute; left: 0; bottom: 0; background: var(--red); color: #fff; font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45rem 0.9rem; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.checklist { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1rem; color: var(--ink-soft); }
.checklist svg { width: 21px; height: 21px; flex: none; color: var(--red); margin-top: 2px; }

/* ---------- Dark band ---------- */
.band-dark { background: var(--dark); color: #E7E1D6; position: relative; overflow: hidden; border-radius: var(--r-md); }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark p { color: #B8B1A4; }
.band-dark .kicker, .band-dark .eyebrow { color: #FF6A60; }
.band-dark .kicker::before, .band-dark .eyebrow::before { background: var(--red); }
.band-dark::after { content: ""; position: absolute; top: -35%; right: -8%; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(226,0,26,0.22), transparent 65%); pointer-events: none; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid rgba(255,255,255,0.16); align-items: start; }
.step:first-child { border-top: 0; }
.step__n { counter-increment: s; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: #FF6A60; line-height: 1; }
.step__n::before { content: counter(s, decimal-leading-zero); }
.step h4 { margin-bottom: 0.3rem; color: #fff; }
.step p { font-size: 0.97rem; }

/* ---------- Tricolore stat band ---------- */
.statband { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.statband__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.statband__grid > div { padding: clamp(1.6rem, 3vw, 2.3rem); border-right: 1px solid var(--line); position: relative; }
.statband__grid > div::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.statband__grid > div:nth-child(1)::before { background: var(--green); }
.statband__grid > div:nth-child(2)::before { background: var(--ink); }
.statband__grid > div:nth-child(3)::before { background: var(--red); }
.statband__grid > div:last-child { border-right: 0; }
.statband__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); line-height: 1; }
.statband__lbl { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }
@media (max-width: 640px) { .statband__grid { grid-template-columns: 1fr; } .statband__grid > div { border-right: 0; border-bottom: 1px solid var(--line); } .statband__grid > div:last-child { border-bottom: 0; } }

/* ---------- Facts (interior) ---------- */
.facts { display: grid; grid-template-columns: repeat(3,1fr); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.facts > div { padding: 1.7rem 1.5rem 1.7rem 0; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; padding-right: 0; }
.facts .fact__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; color: var(--red); margin-bottom: 0.4rem; }
.facts .fact__lbl { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts > div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; } .facts > div:last-child { border-bottom: 0; } }

/* ---------- Prose ---------- */
.prose { max-width: 740px; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.prose h3 { margin-top: 2rem; font-size: clamp(1.35rem, 2vw, 1.6rem); }
.prose p, .prose li { color: var(--ink-soft); }
.prose > p:first-of-type::first-letter, .prose .dropcap::first-letter { font-family: var(--font-display); font-size: 3.4em; font-weight: 700; float: left; line-height: 0.8; padding: 0.06em 0.12em 0 0; color: var(--red); }
.prose ul { list-style: none; padding-left: 0; display: grid; gap: 0.5rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 3px; background: var(--red); }
.prose ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.prose ol li::marker { color: var(--red); font-weight: 700; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--red); padding: 0.3rem 0 0.3rem 1.3rem; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 0.6rem; }
.prose table th, .prose table td { text-align: left; padding: 0.72rem 0.9rem; border: 1px solid var(--line); vertical-align: top; }
.prose table th { background: var(--paper-2); color: var(--ink); font-family: var(--font-body); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(2.4rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.2rem); border-bottom: 3px solid var(--ink); }
.page-hero h1 { margin: 1rem 0 1rem; max-width: 18ch; }
.page-hero .lead, .page-hero .standfirst { max-width: 60ch; }
.breadcrumb { font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Blog / post cards ---------- */
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tag { font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.post-card h3 { margin: 0.5rem 0 0.5rem; font-size: 1.4rem; line-height: 1.12; }
.post-card:hover h3 { color: var(--red); }
.post-card p { font-size: 0.96rem; color: var(--muted); flex: 1; }
.post-card .link-arrow { margin-top: 1rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.82rem 0.95rem; background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-family: var(--font-body); font-size: 0.99rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 144px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C685F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.field__error { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; color: var(--red); display: none; }
.field.invalid .field__error { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check label { font-size: 0.92rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.check.invalid label { color: var(--red); }
.check a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-size: 0.78rem; color: var(--faint); }
.form-success { display: none; align-items: flex-start; gap: 0.8rem; background: var(--red-wash); border: 1px solid var(--red-line); border-left-width: 3px; border-radius: var(--r-sm); padding: 1.1rem 1.2rem; }
.form-success.show { display: flex; }
.form-success svg { width: 24px; height: 24px; flex: none; color: var(--red); margin-top: 2px; }
.form-success b { color: var(--ink); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.form-success span { color: var(--ink-soft); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r-sm); padding: clamp(1.4rem, 3vw, 2.3rem); box-shadow: var(--shadow-sm); }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1.15rem 1.3rem; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--red); margin-top: 2px; }
.callout p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }
.callout b { color: var(--ink); }
.callout--info { border-left-color: var(--green); }
.callout--info svg { color: var(--green); }
.callout--risk { background: var(--red-wash); border-left-color: var(--red); }

/* ---------- Contact list ---------- */
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.7rem; }
.contact-list li { display: flex; gap: 0.95rem; align-items: flex-start; }
.contact-list__ic { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--red-wash); color: var(--red); display: grid; place-items: center; }
.contact-list__ic svg { width: 20px; height: 20px; }
.contact-list__txt { padding-top: 1px; }
.contact-list b { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list__txt a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.contact-list__txt > span { font-size: 0.99rem; color: var(--ink-soft); }

/* ---------- TOC / pill ---------- */
.toc { background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r-sm); padding: 1.3rem 1.5rem; }
.toc h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.toc ul { display: grid; gap: 0.5rem; }
.toc a { font-size: 0.98rem; color: var(--ink-soft); }
.toc a:hover { color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); background: var(--red-wash); border: 1px solid var(--red-line); padding: 0.35rem 0.75rem; border-radius: 100px; }

/* ---------- CTA panel ---------- */
.cta-panel { padding: clamp(2.4rem, 5vw, 4rem); text-align: center; }
.cta-panel .btn { margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B4AEA2; padding-block: clamp(3rem, 6vw, 4.2rem) 2rem; border-top: 4px solid var(--red); }
.site-footer a { color: #D2CCC0; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name small { color: #8C8576; }
.footer__brand p { color: #8C8576; font-size: 0.93rem; margin-top: 1.1rem; max-width: 36ch; }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { font-size: 0.93rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-size: 0.78rem; color: #7C7567; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer__disclaimer { font-size: 0.86rem; color: #8C8576; line-height: 1.6; margin-top: 1.6rem; max-width: 90ch; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 50%; bottom: clamp(0.8rem, 2vw, 1.4rem); transform: translateX(-50%) translateY(160%); z-index: 80; width: min(680px, calc(100% - 1.6rem)); background: var(--paper); border: 1px solid var(--ink); border-top: 4px solid var(--red); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem; transition: transform 0.45s var(--ease); }
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie__head { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.55rem; }
.cookie__head svg { width: 22px; height: 22px; color: var(--red); }
.cookie__head h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.cookie p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.cookie p a { color: var(--red); text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie__actions .btn { padding: 0.7rem 1.1rem; font-size: 0.76rem; }
.cookie__actions .btn--ghost { flex: 1; min-width: 150px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.show { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(22,18,14,0.55); backdrop-filter: blur(3px); }
.modal__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px, calc(100% - 1.6rem)); max-height: 90vh; overflow-y: auto; background: var(--paper); border: 1px solid var(--ink); border-top: 4px solid var(--red); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 1.7rem; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.modal__head h3 { font-weight: 700; }
.modal__close { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper-2); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; }
.modal__sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); align-items: center; }
.pref h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.pref p { grid-column: 1 / -1; font-size: 0.88rem; color: var(--muted); margin: 0; }
.pref__locked { font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; color: var(--red); letter-spacing: 0.05em; text-transform: uppercase; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #CFC9BE; border-radius: 100px; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.2s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(20px); }
.modal__actions { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; min-width: 140px; }

/* ---------- Toast ---------- */
.kw-toast { position: fixed; left: 50%; bottom: clamp(0.8rem,2vw,1.4rem); transform: translateX(-50%) translateY(170%); z-index: 95; display: flex; align-items: center; gap: 0.6rem; background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 0.8rem 1.2rem; box-shadow: var(--shadow-lg); font-size: 0.86rem; font-weight: 600; max-width: calc(100% - 1.6rem); transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); opacity: 0; }
.kw-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.kw-toast svg { width: 20px; height: 20px; color: #FF6A60; flex: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:0.6rem}.mt-2{margin-top:1.2rem}.mt-3{margin-top:2rem}.mt-4{margin-top:3rem}
.mb-2{margin-bottom:1.2rem}
.text-muted{color:var(--muted)}
.divider{height:1px;background:var(--line);border:0;margin-block:clamp(2rem,5vw,3.5rem)}
.skip-link{position:absolute;left:-999px;top:0;background:var(--red);color:#fff;padding:0.6rem 1rem;border-radius:0 0 4px 0;z-index:200;font-weight:800}
.skip-link:focus{left:0}
:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:2px}
