:root {
  --ink: #0f3f6d;
  --ink-soft: #1b537f;
  --paper: #f4f7fa;
  --surface: #ffffff;
  --line: #d5dee6;
  --muted: #5d6d7c;
  --gold: #765528;
  --gold-light: #ccbb9b;
  --gold-pale: #f3eee5;
  --success: #39715a;
  --max: 1240px;
  --header: 78px;
  --radius: 6px;
  --shadow: 0 20px 60px rgba(15, 63, 109, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: rgba(15, 63, 109, 0.98);
  border-bottom: 1px solid rgba(204, 187, 155, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 235px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(204, 187, 155, 0.55);
  background: #174e7b;
}

.brand-mark img { width: 29px; height: 29px; object-fit: contain; }

.brand-text { display: grid; line-height: 1.12; }
.brand-text strong { font-size: 13px; text-transform: uppercase; }
.brand-text em { margin-top: 4px; color: var(--gold-light); font-family: Georgia, serif; font-size: 12px; }

.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 25px; }
.site-nav a {
  position: relative;
  color: #e3ebf2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--gold);
}

.header-contact {
  padding: 10px 15px;
  color: var(--ink) !important;
  background: var(--gold-light);
  border: 1px solid var(--gold-light);
  border-radius: 2px;
}
.header-contact::after { display: none !important; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(204, 187, 155, 0.65);
  border-radius: 3px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--ink);
  background: var(--gold-light);
  border: 1px solid var(--gold-light);
  border-radius: 3px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); background: #d9c9ad; }
.button.dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.button.danger { color: #9d2d2d; background: #fff; border-color: #c97979; }
.button.danger:hover { color: #fff; background: #9d2d2d; border-color: #9d2d2d; }
.button.ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.button.light { color: var(--ink); background: #fff; border-color: #fff; }
.text-link { color: var(--ink); font-weight: 750; text-decoration-color: var(--gold); text-underline-offset: 5px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dark .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-light); }

h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: 72px; font-weight: 720; }
h2 { font-size: 52px; font-weight: 680; }
h3 { font-size: 22px; font-weight: 720; }
p { margin: 0 0 1em; }

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - var(--header)));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.43;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 63, 109, 0.5);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

.hero-grid::before, .hero-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.hero-grid::before { left: 33.333%; }
.hero-grid::after { right: 33.333%; }

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 38px;
}

.hero h1 { max-width: 610px; font-size: 76px; }
.hero-lead { max-width: 570px; margin: 20px 0 0; color: #edf3f8; font-size: 20px; }
.hero-actions { display: flex; max-width: 570px; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: #d6e2ec;
  font-size: 12px;
  text-transform: uppercase;
}
.hero-status span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; background: var(--gold-light); }

/* Home hero: cinematic layered composition. */
.hero-cinematic {
  min-height: min(820px, calc(100svh - var(--header)));
  display: block;
  isolation: isolate;
  background: var(--ink);
}

.hero-cinematic > img {
  z-index: -3;
  opacity: 1;
  animation: hero-focus 12s ease-out both;
}

.hero-cinematic::after { display: none; }

.hero-band {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48%;
  background: rgba(15, 63, 109, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-year {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 20px;
  color: var(--ink);
  background: var(--gold-light);
}

.hero-year small {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-year strong {
  font-size: 43px;
  line-height: 1;
}

.hero-cinematic .hero-content {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 7%;
  left: max(24px, calc((100vw - var(--max)) / 2));
  width: auto;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 78px;
  align-items: end;
  margin: 0;
  padding: 0;
}

.hero-cinematic .eyebrow { color: var(--gold-light); }

.hero-cinematic h1 {
  max-width: none;
  font-size: 74px;
  line-height: 0.92;
}

.hero-cinematic h1 span { color: var(--gold-light); }

.hero-copy { padding-bottom: 4px; }

.hero-cinematic .hero-lead {
  max-width: 620px;
  margin: 0;
  color: #e3ebf2;
  font-size: 18px;
  line-height: 1.62;
}

.hero-cinematic .hero-actions {
  max-width: none;
  gap: 22px;
  margin-top: 28px;
}

.hero-cinematic .hero-actions .button:first-child { gap: 30px; }

.hero-cinematic .hero-actions .ghost {
  padding-right: 0;
  padding-left: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

@keyframes hero-focus {
  from { transform: scale(1.025); }
  to { transform: scale(1); }
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #fff;
  background: var(--ink);
  border-top: 1px solid #3b668c;
}
.signal-strip div { padding: 24px max(24px, calc((100vw - var(--max)) / 2 / 3)); border-right: 1px solid #3b668c; }
.signal-strip strong { display: block; color: var(--gold-light); font-size: 14px; text-transform: uppercase; }
.signal-strip span { color: #cbd9e5; font-size: 13px; }

.section { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); }
.section.compact { padding-top: 70px; padding-bottom: 70px; }
.section.white { background: var(--surface); }
.section.dark { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); }
.section.dark::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -160px;
  width: 480px;
  height: 480px;
  background: url("assets/stemma.png") center / contain no-repeat;
  opacity: 0.035;
  filter: brightness(0) invert(1);
  transform: rotate(-8deg);
}
.section.gold-pale { background: var(--gold-pale); }

.home-digital h2 { margin: 0; font-size: 42px; }
.home-digital p { max-width: 760px; color: var(--muted); font-size: 17px; }
.home-digital .aside-title { margin: 0; color: var(--ink); font-size: 22px; font-weight: 720; line-height: 1.15; }
.home-digital .button { margin-top: 12px; }

.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 55px; }
.section-heading > div { position: relative; padding-top: 18px; }
.section-heading > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 3px;
  background: var(--gold);
  box-shadow: 10px -5px 0 var(--gold), 20px -10px 0 var(--gold);
  transform: skewX(-28deg);
}
.section-heading p:last-child { max-width: 540px; margin: 0; color: var(--muted); font-size: 18px; }
.dark .section-heading p:last-child { color: #d0dce7; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid.four { grid-template-columns: repeat(2, 1fr); }
.service-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--line);
  background: #fff;
}
.feature-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.service-card .index { color: var(--gold); font-family: Consolas, monospace; font-size: 13px; }
.service-card h3 { margin-top: 18px; font-size: 27px; }
.service-card p { margin-top: 18px; color: var(--muted); }
.service-card a { margin-top: auto; }

.method-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 80px; align-items: start; }
.method-intro { position: sticky; top: 120px; }
.method-intro p:last-child { max-width: 480px; margin-top: 24px; color: #d4dfe8; font-size: 18px; }
.method-steps { border-top: 1px solid #47739a; }
.method-step { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid #47739a; }
.method-step span { color: var(--gold-light); font-family: Consolas, monospace; }
.method-step p { margin: 10px 0 0; color: #d0dce7; }

.evidence-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: stretch; }
.evidence-image { min-height: 540px; width: 100%; object-fit: cover; }
.evidence-panel { display: flex; flex-direction: column; padding: 44px; background: var(--surface); border: 1px solid var(--line); }
.metric { display: grid; grid-template-columns: 105px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.metric strong { color: var(--gold); font-size: 34px; line-height: 1; }
.metric p { margin: 0; color: var(--muted); }
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: auto; padding-top: 34px; }
.partner { min-width: 0; margin: 0; padding: 14px 10px; text-align: center; border: 1px solid var(--line); background: #fff; }
.partner img { width: 100%; height: 58px; object-fit: contain; filter: grayscale(1); opacity: 0.78; }
.partner figcaption { margin-top: 9px; color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.25; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card.ccnl img { object-fit: cover; background: #f7f8f7; }
.news-card-body { padding: 25px; }
.news-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.news-card h3 { margin-top: 26px; }
.news-card p { margin-top: 14px; color: var(--muted); }
.news-card .text-link { display: inline-block; margin-top: 12px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card { padding: 30px; color: #fff; background: var(--ink-soft); border: 1px solid #47739a; border-radius: var(--radius); }
.tool-card .tool-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink); background: var(--gold-light); }
.tool-card .tool-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tool-card h3 { margin-top: 55px; }
.tool-card p { color: #d3dfe9; }
.tool-card a { color: var(--gold-light); }

.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 68px max(24px, calc((100vw - var(--max)) / 2)); color: #fff; background: var(--gold); }
.cta-band::after { content: ""; position: absolute; top: 0; right: 17%; bottom: 0; width: 1px; background: rgba(255,255,255,.32); transform: skewX(-18deg); pointer-events: none; }
.cta-band h2 { max-width: 800px; font-size: 50px; }
.cta-band p { max-width: 680px; margin: 15px 0 0; color: #fff8e9; }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 80px max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid #47739a;
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -105px;
  right: max(20px, calc((100vw - var(--max)) / 2));
  width: 430px;
  height: 430px;
  background: url("assets/stemma.png") center / contain no-repeat;
  opacity: 0.055;
  filter: brightness(0) invert(1);
  transform: rotate(-9deg);
}
.page-hero::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255,255,255,.12); }
.page-hero-inner { position: relative; z-index: 1; width: 100%; }
.page-hero-inner::after { content: ""; position: absolute; right: 0; bottom: -80px; width: 86px; height: 3px; background: var(--gold-light); box-shadow: 24px -12px 0 rgba(204,187,155,.75), 48px -24px 0 rgba(204,187,155,.5); transform: skewX(-28deg); }
.page-hero h1 { max-width: 930px; font-size: 68px; }
.page-hero p:last-child { max-width: 720px; margin-top: 22px; color: #d8e3ec; font-size: 19px; }

.content-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 80px; }
.content-grid > aside { color: var(--muted); }
.prose { max-width: 800px; }
.prose h2 { margin: 70px 0 24px; font-size: 38px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 35px 0 12px; }
.prose p, .prose li { color: #39484d; }
.prose ul { padding-left: 20px; }

.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.profile { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 30px; background: #fff; border: 1px solid var(--line); }
.profile img { width: 150px; aspect-ratio: 1; object-fit: cover; }
.profile p { color: var(--muted); font-size: 14px; }

.timeline { border-left: 1px solid var(--gold); }
.timeline-item { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 30px; padding: 0 0 45px 35px; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--gold); }
.timeline-item strong { color: var(--gold); font-family: Consolas, monospace; font-size: 19px; }
.timeline-item p { margin: 8px 0 0; color: var(--muted); }

.story-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card { display: flex; min-width: 0; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.story-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 3px solid var(--gold-light); }
.story-card > div { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px; }
.story-card .eyebrow { margin-bottom: 12px; }
.story-card h3 { font-size: 25px; }
.story-card p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.story-card .text-link { margin-top: auto; }
.section-action { margin: 30px 0 0; }

.story-index-section { padding-bottom: 80px; }
.story-index { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.story-index a { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; font-size: 16px; font-weight: 750; line-height: 1.35; }
.story-index a:hover { background: var(--gold-pale); }
.story-index span { color: var(--gold); font-family: Consolas, monospace; font-size: 12px; }
.story-row { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); border-top: 1px solid var(--line); scroll-margin-top: var(--header); }
.story-row.reverse .story-visual { order: 2; }
.story-visual { position: relative; min-height: 680px; overflow: hidden; }
.story-visual::before { content: ""; position: absolute; z-index: 2; inset: 24px; border: 1px solid rgba(255,255,255,.62); pointer-events: none; }
.story-visual::after { content: ""; position: absolute; z-index: 3; top: 24px; left: 24px; width: 30px; height: 4px; background: var(--gold-light); box-shadow: 35px 0 0 rgba(204,187,155,.8), 70px 0 0 rgba(204,187,155,.55); pointer-events: none; }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.story-body { align-self: center; max-width: 700px; padding: 80px clamp(40px, 7vw, 110px); }
.story-body h2 { margin-bottom: 30px; font-size: 48px; }
.story-body h3 { margin: 30px 0 8px; color: var(--gold); font-size: 12px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.story-body p:not(.eyebrow) { color: #39484d; }

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.detail-card { position: relative; padding: 30px; background: #fff; border: 1px solid var(--line); }
.detail-card::after { content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 3px; background: var(--gold); }
.detail-card .index { color: var(--gold); font-family: Consolas, monospace; }
.detail-card h3 { margin: 24px 0 16px; font-size: 27px; }
.detail-card p { color: var(--muted); }

.digital-service { background: var(--gold-pale); }
#servizi-digitali { scroll-margin-top: var(--header); }
.digital-service-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: stretch; }
.digital-service-visual { min-height: 680px; overflow: hidden; }
.digital-service-visual img { width: 100%; height: 100%; object-fit: cover; }
.digital-service-copy { padding: 18px 0; }
.digital-service-copy h2 { max-width: 650px; margin: 12px 0 24px; font-size: 48px; line-height: 1.08; }
.digital-service-intro { max-width: 720px; color: var(--muted); font-size: 18px; }
.digital-service-points { margin: 36px 0 30px; border-top: 1px solid var(--line); }
.digital-service-points article { display: grid; grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr); gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.digital-service-points h3 { margin: 0; font-size: 20px; }
.digital-service-points p { margin: 0; color: var(--muted); }
.service-tag, .access-tag { display: block; width: max-content; margin-top: 8px; color: var(--gold); font-size: 10px; font-weight: 850; line-height: 1.3; text-transform: uppercase; }
.service-tag.optional, .access-tag.optional { color: var(--ink-soft); }
.digital-service-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter { padding: 9px 15px; color: var(--ink); background: transparent; border: 1px solid #b9c2bf; border-radius: 2px; cursor: pointer; }
.filter.active, .filter:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

.article-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 75px; }
.article-content { max-width: 820px; }
.article-content h2 { margin: 36px 0 11px; color: var(--ink); font-size: 24px; line-height: 1.25; font-weight: 700; }
.article-content h2:first-child { margin-top: 8px; }
.article-content p { color: #35464a; }
.wage-table-section { margin-top: 46px; }
.wage-table-section figure { margin: 18px 0 0; }
.wage-table-section a { display: block; border: 1px solid var(--line); background: #fff; }
.wage-table-section img { display: block; width: 100%; height: auto; }
.wage-table-section figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.article-aside { position: sticky; top: 110px; align-self: start; padding: 24px; border-top: 3px solid var(--gold); background: #fff; }
.article-aside strong { display: block; margin-bottom: 12px; }
.article-aside p { color: var(--muted); font-size: 14px; }
.article-aside > div { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-aside > div:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.news-loading { grid-column: 1 / -1; padding: 34px 0; color: var(--muted); }

.editor-page { min-height: 100vh; background: #edf1ef; }
.editor-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid rgba(204, 187, 155, 0.45);
}
.editor-header-actions { display: flex; align-items: center; gap: 12px; }
.editor-site-link { color: #e3ebf2; font-size: 13px; font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid #6f8da8;
  border-radius: 3px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.icon-button.gold { color: var(--ink); background: var(--gold-light); border-color: var(--gold-light); }
.login-shell { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 20px; }
.login-panel { width: min(460px, 100%); padding: 42px; background: #fff; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.login-panel h1 { font-size: 44px; }
.login-form { margin-top: 34px; }
.editor-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.editor-sidebar { padding: 28px 0; background: #f8faf8; border-right: 1px solid var(--line); }
.editor-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px 22px; }
.editor-sidebar h1 { font-size: 34px; }
.editor-tabs { display: flex; gap: 4px; padding: 0 12px 18px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.editor-tabs button { padding: 7px 9px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.editor-tabs button.active { color: var(--ink); border-color: var(--gold); }
.article-list { display: grid; }
.article-list-item { display: grid; gap: 7px; padding: 18px 22px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.article-list-item:hover, .article-list-item.active { background: #fff; }
.article-list-item.active { box-shadow: inset 3px 0 var(--gold); }
.article-list-item strong { color: var(--ink); line-height: 1.3; }
.article-list-meta { color: var(--muted); font-size: 11px; }
.status-badge { width: max-content; padding: 3px 7px; color: #59666a; background: #e4e8e6; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-badge.review { color: #745514; background: #f4e5bf; }
.status-badge.published { color: #285842; background: #d9eade; }
.status-badge.archived { color: #fff; background: #687579; }
.editor-empty { padding: 28px 22px; color: var(--muted); font-size: 13px; }
.editor-workspace { min-width: 0; padding: 34px; }
.editor-form { display: grid; gap: 19px; }
.editor-form label { display: grid; gap: 7px; color: #455459; font-size: 12px; font-weight: 800; }
.editor-form input, .editor-form textarea, .editor-form select {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7d0cd;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 450;
}
.editor-form textarea { resize: vertical; line-height: 1.55; }
.editor-form input:focus, .editor-form textarea:focus, .editor-form select:focus { border-color: var(--gold); outline: 2px solid rgba(184, 138, 54, 0.2); }
.editor-form button:disabled { opacity: 0.55; cursor: wait; }
.form-message { min-height: 24px; margin: 0; color: #9b3f37; font-size: 13px; }
.editor-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.editor-titlebar h2 { max-width: 780px; font-size: 34px; overflow-wrap: anywhere; }
.editor-title-actions { display: flex; align-items: center; gap: 14px; }
.save-state { color: var(--muted); font-size: 12px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.editor-main-fields { display: grid; gap: 19px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.editor-settings { display: grid; gap: 14px; }
.settings-section { display: grid; gap: 15px; padding: 22px; background: #fff; border: 1px solid var(--line); }
.settings-section h3 { padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 15px; }
.field-row { display: grid; gap: 16px; }
.field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-prefill { display: grid; gap: 17px; padding: 22px; background: #f4f7f6; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.ai-prefill-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ai-prefill-head h3 { margin-top: 3px; font-size: 21px; }
.ai-review-badge { padding: 6px 9px; color: #745514; background: #f4e5bf; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.ai-prefill-actions { display: flex; align-items: center; gap: 15px; }
.ai-prefill-status { color: var(--muted); font-size: 12px; }
.ai-prefill-warnings { padding: 14px 16px; color: #6c511b; background: #fff8e7; border-left: 3px solid var(--gold); font-size: 12px; line-height: 1.5; }
.ai-prefill-warnings ul { margin: 7px 0 0; padding-left: 18px; }
.integration-button { min-height: 42px; justify-content: center; padding: 9px 14px; background: #f4f7f6; border-color: var(--line); font-size: 12px; }
.integration-status { min-height: 18px; margin: -5px 0 0; color: #285842; font-size: 11px; line-height: 1.45; }
.integration-status.error { color: #9b3f37; }
.integration-note { margin: 0; padding: 12px 14px; color: var(--muted); background: #f4f7f6; border-left: 3px solid var(--gold); font-size: 11px; line-height: 1.55; }
.buffer-channels { display: grid; gap: 9px; min-width: 0; margin: 0; padding: 13px 14px; border: 1px solid var(--line); }
.buffer-channels[hidden] { display: none; }
.buffer-channels legend { padding: 0 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
#buffer-channel-options { display: grid; gap: 9px; }
.buffer-channel-option { display: grid !important; grid-template-columns: 17px minmax(0, 1fr); align-items: center; gap: 9px !important; color: var(--ink); font-size: 11px !important; font-weight: 650 !important; line-height: 1.35; text-transform: none !important; }
.buffer-channel-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }

.access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.access-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; text-decoration: none; background: #fff; border: 1px solid var(--line); }
.access-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.access-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.access-card span { color: var(--gold); font-size: 22px; }
.access-card .access-tag { margin: 0 0 8px; font-size: 10px; }
.access-card .access-tag.optional { color: var(--ink-soft); }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; }
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.contact-panel { padding: 34px; color: #fff; background: var(--ink); }
.contact-panel p { color: #b9c4c1; }

.site-footer { padding: 65px max(24px, calc((100vw - var(--max)) / 2)) 30px; color: #d0dce7; background: #0b355a; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; }
.footer-logo { width: 190px; filter: brightness(0) invert(1); }
.site-footer h3 { margin-bottom: 18px; color: #fff; font-size: 14px; text-transform: uppercase; }
.site-footer a { color: #eef3f7; }
.site-footer address { font-style: normal; }
.footer-links { display: grid; gap: 8px; }
.footer-legal { max-width: 1050px; margin: 42px 0 0; color: #b7cad9; font-size: 11px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 55px; padding-top: 25px; border-top: 1px solid #4d7293; color: #b7cad9; font-size: 12px; }

.reveal { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
  .hero-cinematic > img { animation: none; }
}

@media (max-width: 1200px) {
  .hero h1 { font-size: 62px; }
  .hero-cinematic .hero-content { gap: 42px; }
  .hero-cinematic h1 { font-size: 62px; }
  .page-hero h1 { font-size: 58px; }
  .cta-band h2 { font-size: 44px; }
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    max-height: 0;
    display: grid;
    width: 100%;
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    background: var(--ink);
    transition: max-height 220ms ease;
  }
  .site-nav.open { max-height: calc(100vh - var(--header)); border-bottom: 1px solid #557b9d; }
  .site-nav.open { overflow-y: auto; overscroll-behavior: contain; }
  .site-nav a { display: block; padding: 16px 24px; border-top: 1px solid #3d668a; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .header-contact { margin: 10px 24px 20px; text-align: center; }
  .section-heading, .method-grid, .evidence-layout, .content-grid, .contact-grid, .digital-service-layout { grid-template-columns: 1fr; gap: 42px; }
  .digital-service-visual { min-height: 440px; }
  .method-intro { position: static; }
  .profile { grid-template-columns: 110px 1fr; }
  .profile img { width: 110px; }
  .editor-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .editor-workspace { padding: 25px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-settings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-index { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  :root { --header: 68px; }
  .site-header { padding: 0 16px; }
  .brand { min-width: 0; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-mark img { width: 25px; height: 25px; }
  .brand-text strong { font-size: 11px; }
  .brand-text em { font-size: 10px; }
  .hero { min-height: calc(100vh - var(--header)); }
  .hero-content { width: calc(100% - 32px); padding: 80px 0 45px; }
  h1, .hero h1, .page-hero h1 { font-size: 44px; }
  h2, .cta-band h2 { font-size: 36px; }
  .home-digital h2 { font-size: 36px; }
  .hero-lead { font-size: 18px; }
  .hero-grid { width: calc(100% - 32px); }
  .hero-grid::before { left: 50%; }
  .hero-grid::after { display: none; }
  .hero-status { gap: 12px; }
  .hero-cinematic {
    min-height: max(680px, calc(100svh - var(--header)));
  }
  .hero-cinematic > img { object-position: 44% center; }
  .hero-band { height: 64%; }
  .hero-year {
    top: 14%;
    right: 16px;
    padding: 12px 15px;
  }
  .hero-year strong { font-size: 34px; }
  .hero-cinematic .hero-content {
    right: 20px;
    bottom: 5%;
    left: 20px;
    width: auto;
    display: block;
    padding: 0;
  }
  .hero-cinematic h1 { font-size: 52px; }
  .hero-copy { margin-top: 30px; }
  .hero-cinematic .hero-lead { font-size: 16px; }
  .hero-cinematic .hero-actions { gap: 14px 20px; margin-top: 22px; }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip div { padding: 18px 20px; border-right: 0; border-bottom: 1px solid #3b668c; }
  .section { padding: 75px 20px; }
  .section-heading { margin-bottom: 36px; }
  .service-grid, .service-grid.four, .news-grid, .tool-grid, .profile-grid, .detail-grid, .access-grid, .story-card-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .service-card h3 { margin-top: 40px; }
  .evidence-image { min-height: 360px; }
  .evidence-panel { padding: 28px; }
  .digital-service-copy h2 { font-size: 38px; }
  .digital-service-visual { min-height: 320px; }
  .digital-service-points article { grid-template-columns: 1fr; gap: 8px; }
  .metric { grid-template-columns: 82px 1fr; }
  .metric strong { font-size: 27px; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; padding: 55px 20px; }
  .page-hero { min-height: 360px; padding: 55px 20px; }
  .article-layout { grid-template-columns: 1fr; gap: 35px; }
  .article-aside { position: static; }
  .profile { grid-template-columns: 1fr; }
  .profile img { width: 130px; }
  .timeline-item { grid-template-columns: 70px 1fr; gap: 15px; padding-left: 22px; }
  .story-index { grid-template-columns: 1fr; }
  .story-index a { min-height: 92px; }
  .story-row { min-height: 0; grid-template-columns: 1fr; }
  .story-row.reverse .story-visual { order: 0; }
  .story-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .story-body { max-width: none; padding: 60px 20px 70px; }
  .story-body h2 { font-size: 36px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
  .editor-header { height: 68px; padding: 0 14px; }
  .editor-header .brand-text { display: none; }
  .editor-site-link { display: none; }
  .editor-shell { min-height: calc(100vh - 68px); grid-template-columns: 1fr; }
  .editor-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .article-list { max-height: 340px; overflow-y: auto; }
  .editor-workspace { padding: 22px 16px 50px; }
  .editor-titlebar { align-items: flex-start; }
  .editor-titlebar h2 { font-size: 27px; }
  .editor-title-actions { align-items: flex-end; flex-direction: column-reverse; }
  .editor-main-fields { padding: 20px; }
  .ai-prefill { padding: 20px; }
  .ai-prefill-head, .ai-prefill-actions { align-items: flex-start; flex-direction: column; }
  .editor-settings { grid-template-columns: 1fr; }
  .field-row.two { grid-template-columns: 1fr; }
  .login-panel { padding: 30px 24px; }
}
