:root {
  --navy: #071b35;
  --navy-2: #0b2c54;
  --blue: #0b4f8a;
  --gold: #d1a437;
  --gold-2: #f1c14e;
  --red: #c8262e;
  --ink: #142235;
  --muted: #637083;
  --line: #dfe6ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(7, 27, 53, 0.14);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  line-height: 1.6;
}

body.is-nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3,
.brand strong {
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--navy);
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
  color: var(--navy);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(7, 27, 53, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

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

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--navy);
}

.brand small {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.72rem;
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--white);
  background: var(--navy);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  min-height: calc(100svh - 76px);
  overflow: hidden;
  padding: clamp(2.75rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem) 0;
  background: var(--navy);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(7, 27, 53, 0.98) 0%, rgba(7, 27, 53, 0.92) 46%, rgba(11, 79, 138, 0.62) 100%),
    url("../img/hero-fisicaro.jpg") center 22% / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(7, 27, 53, 0.95), rgba(7, 27, 53, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.hero h1 {
  max-width: 10ch;
  margin-bottom: 0.8rem;
  font-size: 4rem;
  line-height: 1;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 1rem;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  margin-right: 0.75rem;
  background: currentColor;
}

.hero-kicker {
  margin-bottom: 0.85rem;
  color: var(--gold-2);
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  font-weight: 600;
}

.hero-actions,
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section-actions {
  display: flex;
  justify-content: center;
  width: min(100%, var(--container));
  margin: 2rem auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.05rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  color: var(--navy);
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--white);
  border-color: var(--white);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--white);
  color: var(--navy);
}

.hero-meta {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  max-width: 100%;
  min-height: 38px;
  margin-top: 1.35rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 900;
}

.hero-meta span,
.hero-meta strong {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1.1;
}

.hero-meta strong {
  color: var(--gold-2);
}

.hero-portrait {
  align-self: end;
  justify-self: end;
  width: min(34vw, 470px);
  min-width: 320px;
  margin-right: clamp(-2rem, -2vw, -0.5rem);
}

.hero-portrait img {
  width: 100%;
  filter: drop-shadow(0 22px 60px rgba(0, 0, 0, 0.38));
}

.section {
  padding: 5rem clamp(1rem, 5vw, 5rem);
}

.section-grid,
.section-heading,
.coalition-grid,
.program-grid,
.candidates-grid,
.candidate-tools,
.vote-content,
.manifesto,
.social-links,
.data-panels,
.legal-text {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.section-copy p:not(.section-label),
.section-heading p,
.vote-content p,
.manifesto p,
.page-hero p,
.legal-text p {
  color: var(--muted);
  font-size: 1.04rem;
}

.portrait-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.vote-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 2rem;
  align-items: center;
  padding: 4rem clamp(1rem, 5vw, 5rem);
  background: var(--navy);
}

.vote-content h2,
.vote-content p {
  color: var(--white);
}

.vote-content p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.date-panel {
  display: grid;
  justify-items: center;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.date-panel strong {
  color: var(--gold-2);
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-size: 4rem;
  line-height: 0.9;
}

.date-panel span {
  margin-bottom: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading .section-label {
  justify-content: center;
}

.coalition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.list-card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  min-height: 210px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--list-color, var(--gold));
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(7, 27, 53, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.list-card:hover,
.list-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
  outline: none;
}

.list-logo {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 0.55rem;
  border-radius: var(--radius);
  background: var(--soft);
}

.list-logo img {
  max-height: 112px;
  width: 100%;
  object-fit: contain;
}

.list-card h3 {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.list-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.program-section {
  background: var(--soft);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.program-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-height: 132px;
  padding: 1rem;
  border: 1px solid rgba(7, 27, 53, 0.08);
  border-radius: var(--radius);
  background: var(--white);
}

.program-item span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold-2);
  font-weight: 900;
}

.program-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 4rem clamp(1.25rem, 5vw, 4rem);
  border-left: 8px solid var(--gold);
  background: var(--navy);
  color: var(--white);
}

.manifesto h2,
.manifesto p {
  color: var(--white);
}

.manifesto p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  font-weight: 700;
}

.candidates-preview {
  text-align: center;
}

.candidates-preview .section-heading {
  margin-bottom: 1.2rem;
}

.candidates-preview .preview-actions {
  justify-content: center;
}

.candidates-preview .btn-secondary {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--white);
}

.candidates-preview .btn-secondary:hover {
  color: var(--white);
  background: var(--navy);
}

.social-section {
  padding: 5rem clamp(1rem, 5vw, 5rem);
  background: var(--soft);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-card {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(7, 27, 53, 0.08);
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 36px rgba(7, 27, 53, 0.12);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-4px);
  background: var(--blue);
  outline: none;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

.social-icon svg,
.footer-social svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.page-hero {
  padding: 4.5rem clamp(1rem, 5vw, 5rem);
  background: var(--navy);
  color: var(--white);
}

.page-hero.compact {
  padding-block: 3.2rem;
}

.page-hero h1 {
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: 0.8rem;
}

.page-hero .eyebrow,
.page-hero p {
  width: min(100%, var(--container));
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  max-width: var(--container);
  color: rgba(255, 255, 255, 0.84);
}

.page-hero a {
  color: var(--gold-2);
  font-weight: 900;
}

.program-hero {
  background:
    linear-gradient(110deg, rgba(7, 27, 53, 0.98), rgba(11, 44, 84, 0.9)),
    url("../img/hero-fisicaro.jpg") center 18% / cover no-repeat;
}

.program-intro {
  background: var(--white);
}

.program-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: min(100%, var(--container));
  margin-inline: auto;
}

.program-intro-grid p:not(.section-label) {
  color: var(--muted);
  font-size: 1.04rem;
}

.program-summary {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}

.program-summary strong {
  color: var(--gold-2);
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-size: 1.4rem;
}

.program-summary span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.program-detail-section {
  background: var(--soft);
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.2rem;
  width: min(100%, var(--container));
  margin-inline: auto;
  align-items: start;
}

.program-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(7, 27, 53, 0.08);
}

.program-toc h2 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.program-toc a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.2;
}

.program-toc a:hover,
.program-toc a:focus-visible {
  color: var(--white);
  background: var(--navy);
  outline: none;
}

.program-detail {
  display: grid;
  gap: 1rem;
}

.program-article {
  scroll-margin-top: 98px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(7, 27, 53, 0.07);
}

.program-article h2 {
  font-size: 1.7rem;
}

.program-article p {
  color: var(--muted);
}

.program-article ul {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.program-article li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--ink);
  font-weight: 700;
}

.program-article li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.candidate-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-list button {
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.filter-list button:hover,
.filter-list button:focus-visible,
.filter-list button.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  outline: none;
}

.search-field {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-weight: 900;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

.search-field input:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(209, 164, 55, 0.22);
}

.result-count {
  width: min(100%, var(--container));
  margin: 0 auto 1.2rem;
  color: var(--muted);
  font-weight: 800;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.candidate-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(7, 27, 53, 0.08);
}

.candidate-card--name {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 116px;
  padding: 1rem;
  border-top: 4px solid var(--list-color, var(--gold));
}

.candidate-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(209, 164, 55, 0.24);
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-weight: 900;
}

.candidate-photo {
  position: relative;
  background: var(--soft);
}

.candidate-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
}

.candidate-body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.candidate-card:not(.candidate-card--name) .candidate-body {
  padding: 1rem;
}

.candidate-list {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 0 0.7rem;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(209, 164, 55, 0.2);
  font-size: 0.78rem;
  font-weight: 900;
}

.candidate-card--name h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.28;
}

.candidate-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.candidate-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.5rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.doc-btn:hover,
.doc-btn:focus-visible {
  color: var(--white);
  background: var(--navy);
  outline: none;
}

.doc-btn.is-disabled {
  color: var(--muted);
  border-color: var(--line);
  background: var(--soft);
  cursor: not-allowed;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 36px;
  padding: 0 0.6rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.doc-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.doc-link--cv {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.doc-link--cv:hover,
.doc-link--cv:focus-visible {
  background: #2e7d32;
  color: #fff;
  outline: none;
}

.doc-link--casellario {
  background: #e3f0fb;
  color: var(--navy);
  border: 1px solid #90caf9;
}

.doc-link--casellario:hover,
.doc-link--casellario:focus-visible {
  background: var(--navy);
  color: #fff;
  outline: none;
}

.doc-link--trasparenza {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

.doc-link--trasparenza:hover,
.doc-link--trasparenza:focus-visible {
  background: #e65100;
  color: #fff;
  outline: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.8fr 0.9fr;
  gap: 2rem;
  padding: 3.5rem clamp(1rem, 5vw, 5rem);
  color: rgba(255, 255, 255, 0.82);
  background: #041225;
}

.site-footer img {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.site-footer h2 {
  margin-bottom: 0.7rem;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.84);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold-2);
  outline: none;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-weight: 900;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.data-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.data-panel {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(7, 27, 53, 0.08);
}

.data-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-text {
  max-width: 860px;
}

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .coalition-grid,
  .program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .candidates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.is-simple {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    justify-content: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section-grid,
  .program-intro-grid,
  .program-layout,
  .vote-band,
  .manifesto,
  .candidate-tools,
  .site-footer,
  .data-panels {
    grid-template-columns: 1fr;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading .section-label {
    justify-content: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }

  .program-toc {
    position: static;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(245px, 340px);
    min-height: auto;
    gap: 1.5rem;
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-kicker {
    font-size: 1.18rem;
  }

  .hero-copy {
    max-width: 560px;
    font-size: 0.98rem;
  }

  .hero-portrait {
    width: min(34vw, 340px);
    min-width: 245px;
    margin-right: -1rem;
  }
}

@media (max-width: 920px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    display: block;
    min-height: auto;
    padding: 2.35rem 1rem 0;
    background: var(--navy);
  }

  .hero-bg {
    display: block;
  }

  .hero-content {
    max-width: none;
    padding-right: 0;
    padding-bottom: clamp(7.5rem, 34vw, 9.8rem);
  }

  .hero h1 {
    max-width: 9ch;
    margin-bottom: 0.65rem;
    font-size: 2.08rem;
  }

  .hero .eyebrow {
    min-height: 24px;
    margin-bottom: 0.7rem;
    font-size: 0.68rem;
  }

  .hero .eyebrow::before {
    width: 24px;
    margin-right: 0.55rem;
  }

  .hero-kicker {
    margin-bottom: 0.65rem;
    font-size: 0.98rem;
  }

  .hero-copy {
    margin-bottom: 1rem;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .hero-meta {
    max-width: calc(100vw - 2rem);
    margin-top: 1rem;
    padding: 0.38rem 0.62rem;
    gap: 0.25rem 0.42rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .hero-portrait {
    position: absolute;
    right: -0.35rem;
    top: auto;
    bottom: 0;
    z-index: 0;
    width: min(50vw, 190px);
    min-width: 150px;
    margin: 0;
    transform: none;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .site-header {
    min-height: 70px;
    padding-inline: 0.9rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .main-nav {
    inset: 70px 0 auto 0;
  }

  .hero {
    padding-inline: 1rem;
  }

  .hero h1 {
    font-size: 2.02rem;
  }

  .hero-kicker {
    font-size: 0.92rem;
  }

  .hero-actions,
  .preview-actions {
    display: grid;
  }

  .hero-actions .btn,
  .preview-actions .btn {
    width: 100%;
  }

  .coalition-grid,
  .program-grid,
  .candidates-grid {
    grid-template-columns: 1fr;
  }

  .candidate-card--name {
    min-height: 96px;
  }

  .social-links {
    justify-content: center;
  }

  .social-card {
    width: 64px;
    height: 64px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }

  .section,
  .social-section {
    padding-block: 3.5rem;
  }

  .candidate-docs {
    grid-template-columns: 1fr;
  }
}

/* ==================== Cookie Banner ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  border-top: 2px solid var(--gold-2);
  color: var(--white);
  padding: 1.1rem clamp(1rem, 5vw, 5rem);
  box-shadow: 0 -6px 32px rgba(7, 27, 53, 0.32);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner p strong {
  color: var(--white);
}

.cookie-banner p a {
  color: var(--gold-2);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media (max-width: 580px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* ==================== Legal / Privacy ==================== */
.legal-text h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.legal-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--ink);
}

.legal-text ul,
.legal-text ol {
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.legal-text ul li,
.legal-text ol li {
  margin-bottom: 0.35rem;
}

.legal-text a {
  color: var(--blue);
  text-decoration: underline;
  word-break: break-all;
}

.legal-meta {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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