/* ============================================================
   GENERAZIONE BIOLOGI — STILI
   Mondo visivo: organismo vivo e contemporaneo — luce, verde
   brillante del logo GenB, navy profondo, DNA e foglie generative,
   card morbide, tipografia locale di sistema.
   ============================================================ */

/* ---------- Tokens (colori derivati dal logo GenB) ---------- */
:root {
  --c-navy: #132E4A;        /* navy del logotipo "Gen" */
  --c-navy-deep: #0E2338;   /* sezioni scure */
  --c-navy-soft: #3E5A78;   /* testo secondario su chiaro, tinto */
  --c-steel: #B9CBDD;       /* testo secondario su navy, tinto */
  --c-ice: #E3EDF6;

  --c-green: #2E8B3A;       /* verde foglia del logo */
  --c-green-bright: #6ABF3A;/* verde lime della pennellata "B" */
  --c-green-deep: #1D6B2F;
  --c-mint: #EAF5E7;        /* tinta di fondo */
  --c-teal: #2E7FA0;        /* acquerello blu-verde del logo */

  --c-bg: #FAFBF8;          /* bianco-luce di fondo */
  --c-card: #FFFFFF;
  --c-line: #DCE5DC;
  --c-ink: #16293E;

  --grad-green: linear-gradient(120deg, #2E8B3A 0%, #6ABF3A 100%);
  --grad-navy: linear-gradient(135deg, #132E4A 0%, #1C4668 60%, #24597F 100%);

  --f-display: 'Aptos Display', 'Segoe UI', system-ui, sans-serif;
  --f-sans: 'Aptos', 'Segoe UI', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 2px 6px rgba(19, 46, 74, 0.06), 0 14px 34px rgba(19, 46, 74, 0.1);
  --shadow-lift: 0 8px 16px rgba(19, 46, 74, 0.12), 0 24px 48px rgba(19, 46, 74, 0.18);
  --r-lg: 18px;
  --r-md: 12px;
  --maxw: 72rem;
  --section-pad: clamp(4rem, 9vw, 7rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--c-green) var(--c-ice);
}

body {
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  caret-color: var(--c-green);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--c-green-bright); color: var(--c-navy-deep); }

img, svg { display: block; max-width: 100%; }
.icon-sprite { display: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 2.5px solid var(--c-green); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--c-green-bright); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700; line-height: 1.08;
  text-wrap: balance; letter-spacing: -0.02em;
  color: var(--c-navy);
}
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h1 em, h2 em { font-style: normal; color: var(--c-green); }

section { scroll-margin-top: 4.5rem; }

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--c-navy); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0.75rem; }

.noscript-note {
  padding: 1rem 1.5rem; text-align: center;
  background: var(--c-green-deep); color: #fff;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--f-sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.7em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.3;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(19, 46, 74, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--lg { font-size: 1.05rem; padding: 0.85em 1.9em; }
.btn--sm { font-size: 0.85rem; padding: 0.5em 0.9em; }
.btn--block { width: 100%; }

.btn--green { background: var(--grad-green); color: #fff; }
.btn--green:hover { filter: brightness(1.06); }
.btn--navy { background: var(--c-navy); color: #fff; }
.btn--navy:hover { background: #1B3E60; }

.btn--outline { background: transparent; color: var(--c-navy); border-color: currentColor; }
.btn--outline:hover { background: rgba(19, 46, 74, 0.05); }
.section--navy .btn--outline, .site-footer .btn--outline { color: var(--c-ice); }
.section--navy .btn--outline:hover, .site-footer .btn--outline:hover { background: rgba(227, 237, 246, 0.1); }

/* ---------- Pillole e badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--c-green-deep); background: var(--c-mint);
  border: 1px solid rgba(46, 139, 58, 0.3);
  padding: 0.3em 0.9em; border-radius: 999px;
  vertical-align: middle;
}
.section--navy .pill { color: #CFEDBD; background: rgba(106, 191, 58, 0.14); border-color: rgba(106, 191, 58, 0.4); }
.pill--organ { margin-top: 1.1rem; }

/* ---------- Navigazione ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
  color: var(--c-navy);
  background: rgba(250, 251, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19, 46, 74, 0.08);
}

.nav-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.1rem;
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.nav-logo {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  object-fit: cover; object-position: center 38%;
  border: 1.5px solid rgba(46, 139, 58, 0.35);
  background: #fff;
}

.nav-links { display: flex; gap: clamp(0.9rem, 2vw, 1.6rem); margin-left: auto; }
.nav-links a {
  font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--c-navy-soft);
  padding: 0.3rem 0.1rem; border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--c-navy); border-bottom-color: var(--c-green-bright); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn--nav-share { background: var(--grad-green); color: #fff; font-size: 0.85rem; padding: 0.5em 1.1em; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.6rem; height: 2.6rem; padding: 0.6rem;
  background: transparent; border: 1.5px solid rgba(19, 46, 74, 0.25); border-radius: 10px; cursor: pointer;
}
.nav-burger span { display: block; height: 2px; background: var(--c-navy); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--c-navy-deep);
  padding: 6rem clamp(1.5rem, 8vw, 3rem) 3rem;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu a {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: #fff; text-decoration: none; padding: 0.35em 0;
  border-bottom: 1px solid rgba(227, 237, 246, 0.12);
}
.mobile-menu a:hover { color: var(--c-green-bright); }
.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem clamp(1.25rem, 5vw, 4rem) 4rem;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(106, 191, 58, 0.14) 0%, rgba(106, 191, 58, 0) 60%),
    radial-gradient(70% 60% at 5% 90%, rgba(46, 127, 160, 0.1) 0%, rgba(46, 127, 160, 0) 60%),
    var(--c-bg);
}

.hero-flora, .plate-flora { position: absolute; inset: 0; pointer-events: none; }
.hero-flora svg, .plate-flora svg { position: absolute; overflow: visible; }
.hero-flora__helix { right: 4%; top: -8%; height: 118%; opacity: 0.5; }
.hero-flora__helix-secondary { left: -4%; bottom: -30%; height: 70%; opacity: 0.16; transform: rotate(24deg); }
.hero-flora__leaf { left: 8%; top: 16%; width: 4.5rem; opacity: 0.5; }
.hero-flora__leaf-secondary { right: 38%; bottom: 8%; width: 3.2rem; opacity: 0.35; }
.candidati-flora__helix { right: -3%; top: -4%; height: 80%; opacity: 0.14; }
.candidati-flora__leaf { left: -1%; bottom: 4%; width: 6rem; opacity: 0.1; }
.footer-flora__helix { right: -4%; bottom: -30%; height: 130%; opacity: 0.1; }

.hero-grid {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55em; flex-wrap: wrap;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--c-navy-soft);
  background: #fff; border: 1px solid rgba(19, 46, 74, 0.12);
  padding: 0.45em 1em; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(19, 46, 74, 0.07);
}
.hero-badge b { color: var(--c-green-deep); }
.hero-badge__dot {
  width: 0.55em; height: 0.55em; border-radius: 50%;
  background: var(--grad-green); flex: 0 0 auto;
}

.hero-title {
  max-width: 10ch;
  font-size: clamp(3.25rem, 7vw, 5.7rem);
  font-weight: 800;
  margin-top: 1.4rem;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero-motto {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--c-green); margin-top: 0.5rem;
}
.hero-motto__leaf { width: 1.1em; height: 1.1em; color: var(--c-green-bright); }
.hero-motto__leaf svg { width: 100%; height: 100%; }

.hero-claim {
  max-width: 28ch; margin-top: 1.5rem;
  font-family: var(--f-display); font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.35; font-weight: 700; color: var(--c-navy);
}
.hero-mission {
  color: var(--c-navy-soft); margin-top: 0.7rem; max-width: 57ch;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.5; font-weight: 400;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-width: 0; isolation: isolate;
}
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; inset: 8% -6% -8% 8%;
  border-radius: 44% 56% 51% 49% / 48% 42% 58% 52%;
  background: linear-gradient(145deg, rgba(106, 191, 58, 0.24), rgba(46, 127, 160, 0.18));
  filter: blur(2px); transform: rotate(-5deg);
}
.hero-manifesto {
  position: relative; width: min(100%, 27rem); padding: 0.8rem;
  border: 1px solid rgba(19, 46, 74, 0.12); border-radius: 2rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(19, 46, 74, 0.11), 0 50px 90px rgba(19, 46, 74, 0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: rotate(1.4deg);
}
.hero-manifesto__top {
  display: flex; justify-content: center; gap: 1rem;
  padding: 0.35rem 0.6rem 0.8rem;
  color: var(--c-navy-soft); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}
.hero-logo-wrap {
  position: relative; width: 100%; aspect-ratio: 1;
  overflow: hidden; border-radius: 1.35rem; background: #fff;
  border: 1px solid rgba(46, 139, 58, 0.15);
}
.hero-logo { width: 100%; height: 100%; object-fit: contain; padding: 4%; background: #fff; }
.hero-values {
  display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 0.25rem 0.1rem;
}
.hero-values span {
  flex: 1 1 auto; text-align: center;
  padding: 0.42rem 0.65rem; border-radius: 999px;
  color: var(--c-navy); background: var(--c-mint);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-seal {
  position: absolute; z-index: 3; display: flex; flex-direction: column;
  min-width: 6.4rem; padding: 0.72rem 0.9rem; border-radius: 1rem;
  background: var(--c-navy-deep); color: var(--c-ice);
  box-shadow: 0 14px 30px rgba(14, 35, 56, 0.25);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-seal b { color: var(--c-green-bright); font: 800 1.6rem/1 var(--f-display); letter-spacing: -0.03em; }
.hero-seal--people { left: -1.6rem; top: 16%; transform: rotate(-4deg); }
.hero-seal--program { right: -1.2rem; bottom: 13%; transform: rotate(4deg); }

.hero-scrollcue { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scrollcue span {
  display: block; width: 2px; height: 3rem; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--c-green));
  animation: cue 2.4s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sintesi d'impatto ---------- */
.impact-strip { padding: 0 clamp(1.25rem, 5vw, 4rem); background: var(--c-navy-deep); color: #fff; }
.impact-strip__inner {
  max-width: var(--maxw); min-height: 8.5rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 1.5rem;
}
.impact-strip p { display: flex; align-items: center; gap: 0.85rem; line-height: 1.2; }
.impact-strip strong {
  font: 800 clamp(2.1rem, 4vw, 3rem)/1 var(--f-display); color: var(--c-green-bright);
  letter-spacing: -0.05em;
}
.impact-strip span { color: var(--c-steel); font-size: 0.82rem; font-weight: 600; }
.impact-strip a {
  display: inline-flex; align-items: center; gap: 0.55rem; justify-self: end;
  color: #fff; font-size: 0.9rem; font-weight: 700; text-decoration: none;
}
.impact-strip a .icon { color: var(--c-green-bright); transition: transform 0.25s var(--ease-out); }
.impact-strip a:hover .icon { transform: translateX(4px); }

/* ---------- Sezioni ---------- */
.section { padding: var(--section-pad) clamp(1.25rem, 5vw, 4rem); }

.section--tint {
  background:
    radial-gradient(80% 60% at 90% 0%, rgba(106, 191, 58, 0.1) 0%, rgba(106, 191, 58, 0) 55%),
    var(--c-mint);
}

.section--navy {
  position: relative; overflow: hidden;
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(36, 89, 127, 0.55) 0%, rgba(14, 35, 56, 0) 60%),
    var(--c-navy-deep);
  color: var(--c-ice);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy h2 em { color: var(--c-green-bright); }

.section-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-lede { margin-top: 1rem; color: var(--c-navy-soft); font-size: 1.05rem; max-width: 58ch; }
.section-head--onnavy .section-lede { color: var(--c-steel); }

.demo-note {
  display: inline-block; margin-top: 1rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #CFEDBD; background: rgba(106, 191, 58, 0.12);
  border: 1px dashed rgba(106, 191, 58, 0.5);
  padding: 0.35em 0.9em; border-radius: 8px;
}

/* ---------- Candidati ---------- */
.board-head { margin: clamp(2.5rem, 6vw, 4rem) 0 1.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.board-title { font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; }
.board-sub { color: var(--c-steel); font-size: 0.98rem; }

.cand-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}
.cand-grid--rev { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }

.cand-card {
  position: relative; text-align: left; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  overflow: hidden; isolation: isolate;
  background: var(--c-card);
  background: linear-gradient(155deg, #fff 65%, color-mix(in srgb, var(--card-accent, var(--c-green)) 8%, #fff));
  color: var(--c-ink);
  border: 1px solid rgba(19, 46, 74, 0.08); border-radius: var(--r-lg);
  padding: 1.3rem 1.3rem 1.15rem;
  cursor: pointer; font: inherit;
  box-shadow: 0 2px 8px rgba(6, 16, 28, 0.25);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.cand-card::before {
  content: ""; position: absolute; z-index: -1; width: 7rem; height: 7rem;
  right: -3.6rem; top: -4.2rem; border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent, var(--c-green)) 18%, transparent);
  transition: transform 0.4s var(--ease-out);
}
.cand-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--card-accent, var(--c-green)), var(--c-green-bright));
  opacity: 0.75; transition: opacity 0.35s var(--ease-out);
}
.cand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.cand-card:hover::before { transform: scale(1.18); }
.cand-card:hover::after { opacity: 1; }
.cand-card--initials { min-height: 8rem; align-items: center; justify-content: center; }
.cand-card--initials .avatar { margin: 0; }
.cand-card--initials .cand-card__name { margin-top: 0.8rem; text-align: center; }
.cand-card--empty { background: var(--card-tint, #E6EFE8); }
.cand-card__code {
  margin-top: 0.8rem; color: var(--c-navy);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em;
}

.cand-card__num {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-green-deep);
}

.avatar {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 4.6rem; height: 4.6rem; border-radius: 50%;
  margin: 0.95rem 0;
  font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; color: #fff;
  background: linear-gradient(145deg, var(--c-navy) 0%, var(--card-accent, var(--c-teal)) 120%);
  border: 3px solid transparent;
  background-clip: padding-box;
  user-select: none;
}
.avatar--photo { overflow: hidden; padding: 0; }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar--photo img[src="images/candidati/antonella-candeloro.jpg"] { object-position: center top; }
.avatar--empty { background: var(--card-tint, #E6EFE8); border-color: rgba(19, 46, 74, 0.08); }
.avatar::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2.5px solid transparent;
  background: var(--grad-green) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
}
.avatar--lg { width: 6rem; height: 6rem; font-size: 1.9rem; }

.cand-card__name { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; line-height: 1.2; color: var(--c-navy); }
.cand-card__prof { color: var(--c-navy-soft); font-size: 0.9rem; margin-top: 0.3rem; margin-bottom: 0.9rem; }
.cand-card__role {
  display: inline-flex;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-green-deep); background: var(--c-mint);
  border: 1px solid rgba(46, 139, 58, 0.3);
  padding: 0.3em 0.8em; border-radius: 999px;
  margin-bottom: 0.9rem;
}
.cand-card__more {
  display: inline-flex; align-items: center; gap: 0.4em;
  align-self: stretch; margin-top: auto; padding-top: 0.75rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.85rem; font-weight: 700; color: var(--c-green-deep);
}
.cand-card__more .icon { transition: transform 0.3s var(--ease-out); }
.cand-card:hover .cand-card__more .icon { transform: translateX(4px); }

/* ---------- Programma ---------- */
.prog-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prog-intro { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.prog-intro .section-lede { margin-top: 0; }
.prog-tagline { color: var(--c-green-deep); font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; line-height: 1.45; }
.prog-content { min-width: 0; }

@media (min-width: 62.01rem) {
  .prog-intro .section-lede { font-size: 0.94rem; line-height: 1.48; }
}

@media (min-width: 62.01rem) and (max-height: 48rem) {
  .prog-intro { top: 5rem; gap: 0.8rem; }
  .prog-intro .section-lede { font-size: 0.88rem; line-height: 1.4; }
  .prog-tagline { font-size: 1rem; line-height: 1.35; }
}

.prog-list { list-style: none; counter-reset: impegno; display: flex; flex-direction: column; gap: 1rem; }
.prog-item {
  counter-increment: impegno;
  background: var(--c-card);
  border: 1px solid rgba(19, 46, 74, 0.08); border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
}
.prog-item:not(.prog-item--preview):hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.prog-item:has(.prog-item__details[open]) { border-color: rgba(46, 139, 58, 0.35); }
.prog-item__details > summary,
.prog-item__preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding: clamp(1.2rem, 2.5vw, 1.65rem) clamp(1.3rem, 3vw, 1.8rem);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.25s ease;
}
.prog-item__preview { margin: 0; cursor: default; grid-template-columns: auto minmax(0, 1fr); }
.prog-item__details > summary::-webkit-details-marker { display: none; }
.prog-item__details > summary::marker { content: ""; }
.prog-item__details > summary:hover { background: rgba(234, 245, 231, 0.55); }
.prog-item__details > summary::before,
.prog-item__preview::before {
  content: counter(impegno, decimal-leading-zero);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem); line-height: 1;
  color: transparent;
  background: var(--grad-green);
  -webkit-background-clip: text; background-clip: text;
  min-width: 2.7rem;
}
.prog-item__details > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--c-mint);
  color: var(--c-green-deep);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}
.prog-item__details[open] > summary { background: var(--c-mint); }
.prog-item__details[open] > summary::after { content: "−"; }
.prog-item__title {
  color: var(--c-navy);
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.prog-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem clamp(1.3rem, 3vw, 1.8rem) clamp(1.5rem, 3vw, 1.9rem) clamp(5.2rem, 7vw, 6rem);
  border-top: 1px solid rgba(19, 46, 74, 0.08);
}
.prog-item p { color: var(--c-navy-soft); max-width: 56ch; }
.prog-item__subtitle { color: var(--c-navy) !important; font-weight: 700; }
.prog-item__label { margin-top: 0.15rem; color: var(--c-navy) !important; font-weight: 700; }
.prog-item__actions { display: flex; flex-direction: column; gap: 0.4rem; padding-left: 1.15rem; color: var(--c-navy-soft); }
.prog-item__actions li::marker { color: var(--c-green-deep); }
.prog-item__links { display: flex; flex-direction: column; gap: 1rem; padding-left: 1.15rem; color: var(--c-navy-soft); }
.prog-item__links li::marker { color: var(--c-green-deep); }
.prog-item__links li { min-height: 2rem; line-height: 1.7; }
.prog-item__links span { color: var(--c-navy); font-weight: 700; }
.prog-item__detail-link { appearance: none; margin-left: 0.35rem; padding: 0.1rem 0.15rem; border: 0; background: none; color: var(--c-green-deep); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.prog-item__detail-link:hover { color: var(--c-navy); }
.prog-conclusion { margin-top: 1.5rem; padding: 1.4rem clamp(1.3rem, 3vw, 1.8rem); border-left: 4px solid var(--c-green); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--c-mint); color: var(--c-navy); font-family: var(--f-display); font-size: 1.08rem; font-weight: 650; line-height: 1.6; white-space: pre-line; }

/* ---------- Come si vota (percorso a tappe) ---------- */
.vote-steps {
  display: flex; flex-direction: column; gap: 0;
  max-width: 46rem;
  counter-reset: tappa;
}
.vote-cell {
  counter-increment: tappa;
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 1.3rem;
  padding: 0 0 1.9rem 0;
}
.vote-cell::before {
  content: counter(tappa);
  grid-row: span 2;
  display: flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem;
  color: var(--c-navy-deep); background: var(--grad-green);
  box-shadow: 0 6px 16px rgba(106, 191, 58, 0.35);
}
.vote-cell::after {
  content: ""; position: absolute; left: 1.25rem; top: 2.9rem; bottom: 0.3rem;
  width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, rgba(106, 191, 58, 0.6), rgba(106, 191, 58, 0.12));
}
.vote-cell:last-child::after { display: none; }
.vote-cell dt {
  align-self: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; color: #fff;
  text-decoration: none;
}
.vote-cell dd { color: var(--c-steel); font-size: 0.98rem; max-width: 52ch; }
.vote-cell dd a { color: var(--c-green-bright); font-weight: 600; text-underline-offset: 0.18em; }
.vote-cell dd a:hover { color: #fff; }

.vote-close { margin-top: 1.6rem; max-width: 46rem; font-size: 1.12rem; color: var(--c-steel); }
.vote-close strong { color: var(--c-green-bright); }
/* ---------- Contatti ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.contact-form {
  display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start;
  background: var(--c-card);
  border: 1px solid rgba(19, 46, 74, 0.08); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  box-shadow: var(--shadow-card);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--c-navy); }
.field input, .field textarea {
  font: inherit; color: var(--c-ink);
  background: var(--c-bg); border: 1.5px solid rgba(19, 46, 74, 0.14); border-radius: var(--r-md);
  padding: 0.7em 0.95em;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-navy-soft); opacity: 0.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-green); box-shadow: 0 0 0 4px rgba(106, 191, 58, 0.18); }
.field textarea { resize: vertical; min-height: 7rem; }
.field--check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: 0.28rem; accent-color: var(--c-green-deep); }
.field--check label { font-weight: 400; line-height: 1.55; }
.field--check a, .form-privacy-note a { color: var(--c-green-deep); }
.form-privacy-note { color: var(--c-navy-soft); font-size: 0.84rem; line-height: 1.5; }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.consent-choice { width: 100%; padding: 1rem; border: 1.5px solid rgba(19, 46, 74, 0.16); border-radius: var(--r-md); background: var(--c-mint); }
.consent-choice legend { padding: 0 0.4rem; color: var(--c-navy); font-family: var(--f-display); font-weight: 700; }
.consent-choice legend span { display: inline-block; margin-left: 0.35rem; color: var(--c-green-deep); font: 700 0.7rem var(--f-sans); letter-spacing: 0.04em; text-transform: uppercase; }
.consent-choice .field--check { cursor: pointer; }
.consent-choice .field--check span { color: var(--c-ink); font-size: 0.92rem; line-height: 1.55; }

.consent-withdrawal { margin-top: 2rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.consent-withdrawal summary { color: var(--c-navy); font-family: var(--f-display); font-weight: 700; cursor: pointer; }
.withdrawal-form { display: grid; gap: 0.9rem; max-width: 42rem; padding-top: 1rem; }
.withdrawal-form > p:first-child { color: var(--c-navy-soft); font-size: 0.92rem; }
.withdrawal-form .btn { justify-self: start; }

.form-feedback { font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-feedback.ok { color: var(--c-green-deep); }
.form-feedback.err { color: #B43636; }
.modal--share .form-feedback.ok { color: var(--c-green-bright); }

.contact-direct { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-direct h3 { font-size: 1.2rem; margin-top: 0.6rem; }
.contact-direct h3:first-child { margin-top: 0; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-list li { display: flex; }
.contact-list a { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 600; color: var(--c-navy); }
.contact-list .icon { color: var(--c-green); }
.contact-list a:hover { color: var(--c-green-deep); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 90% at 15% 0%, rgba(36, 89, 127, 0.5) 0%, rgba(14, 35, 56, 0) 55%),
    var(--c-navy-deep);
  color: var(--c-ice);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) 2.5rem;
}
.site-footer h2 { color: #fff; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.footer-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.footer-share p { color: var(--c-steel); margin: 0.7rem 0 1.4rem; }

[data-share][hidden], [data-share-target][hidden] { display: none !important; }
#social-title[hidden], #social-list[hidden], #social-list li[hidden] { display: none !important; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 600 0.88rem var(--f-sans); color: var(--c-ice);
  background: rgba(227, 237, 246, 0.07);
  border: 1px solid rgba(227, 237, 246, 0.25); border-radius: 999px;
  padding: 0.55em 1.1em; cursor: pointer; text-decoration: none;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.share-btn:hover { background: rgba(227, 237, 246, 0.15); border-color: var(--c-green-bright); transform: translateY(-2px); }
.share-btn .icon { width: 1.05em; height: 1.05em; }

.footer-meta { text-align: right; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-brand { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer-brand em { font-weight: 600; color: var(--c-green-bright); }
.footer-note { color: var(--c-steel); font-size: 0.92rem; }
.footer-disclaimer { font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--c-steel); margin-top: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem 1rem; font-size: 0.86rem; color: var(--c-steel); }
.footer-legal button { appearance: none; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }

/* ---------- Consenso cookie ---------- */
.cookie-banner {
  position: fixed; z-index: 300; left: 1rem; right: 1rem; bottom: 1rem;
  width: min(68rem, calc(100% - 2rem)); margin: 0 auto;
  color: var(--c-ice); background: var(--c-navy-deep);
  border: 1px solid rgba(227, 237, 246, 0.24); border-radius: var(--r-lg);
  box-shadow: 0 22px 65px rgba(6, 16, 28, 0.45);
}
.cookie-banner[hidden], .cookie-panel[hidden] { display: none; }
.cookie-banner__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; align-items: center; padding: 1.25rem; }
.cookie-banner h2 { color: #fff; font-size: 1.2rem; margin-bottom: 0.35rem; }
.cookie-banner p { font-size: 0.9rem; line-height: 1.55; color: var(--c-steel); max-width: 72ch; }
.cookie-banner a { color: #fff; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { flex: 1 1 auto; white-space: nowrap; }
.cookie-actions .btn--outline { color: var(--c-ice); border-color: currentColor; }
.cookie-actions .btn--navy { background: #24597F; border-color: rgba(255, 255, 255, 0.35); }
.cookie-close { position: absolute; top: 0.5rem; right: 0.5rem; }

.cookie-panel { position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; padding: 1rem; }
.cookie-panel__backdrop { position: absolute; inset: 0; background: rgba(14, 35, 56, 0.72); backdrop-filter: blur(6px); }
.cookie-panel__card { position: relative; width: min(42rem, 100%); max-height: 90svh; overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: 0 25px 70px rgba(6, 16, 28, 0.5); }
.cookie-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--c-line); }
.cookie-panel__head h2 { font-size: 1.45rem; }
.cookie-panel__body { padding: 1.3rem 1.4rem; }
.cookie-panel__intro { color: var(--c-navy-soft); font-size: 0.94rem; margin-bottom: 1rem; }
.cookie-category { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; padding: 1rem 0; border-top: 1px solid var(--c-line); }
.cookie-category h3 { font-size: 1.02rem; }
.cookie-category p { color: var(--c-navy-soft); font-size: 0.88rem; line-height: 1.5; }
.cookie-category input { width: 1.25rem; height: 1.25rem; accent-color: var(--c-green-deep); }
.cookie-category__status { font-size: 0.78rem; font-weight: 700; color: var(--c-green-deep); }
.cookie-panel__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1rem 1.4rem 1.4rem; border-top: 1px solid var(--c-line); }

/* ---------- Pagine legali ---------- */
.legal-page { min-height: 100svh; }
.legal-header { background: var(--c-navy-deep); color: #fff; padding: 1rem clamp(1.2rem, 5vw, 4rem); }
.legal-header a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; }
.legal-main { width: min(52rem, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 0; }
.legal-main h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 0.5rem; }
.legal-main h2 { font-size: 1.45rem; margin: 2.2rem 0 0.65rem; }
.legal-main h3 { font-size: 1.08rem; margin: 1.25rem 0 0.4rem; }
.legal-main p, .legal-main li { max-width: 75ch; }
.legal-main ul { padding-left: 1.3rem; }
.legal-main li + li { margin-top: 0.35rem; }
.legal-updated { color: var(--c-navy-soft); margin-bottom: 2rem; }
.legal-warning { padding: 1rem 1.1rem; margin: 1.5rem 0; background: #FFF4D6; color: #6A4A00; border: 1px solid #E5BD52; border-radius: var(--r-md); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.92rem; }
.legal-table th, .legal-table td { padding: 0.75rem; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--c-mint); }
.legal-footer { background: var(--c-navy-deep); color: var(--c-steel); padding: 2rem 1.25rem; text-align: center; }
.legal-footer nav { justify-content: center; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 35, 56, 0.7);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.modal-card {
  position: relative; z-index: 2;
  width: min(40rem, 100%); max-height: min(86svh, 46rem);
  display: flex; flex-direction: column;
  background: var(--c-card); color: var(--c-ink);
  border: 1px solid rgba(19, 46, 74, 0.1); border-radius: var(--r-lg);
  box-shadow: 0 30px 70px rgba(6, 16, 28, 0.45);
  animation: modal-in 0.45s var(--ease-out);
}
.modal-card--share { width: min(26rem, 100%); background: var(--c-navy-deep); color: #fff; border-color: rgba(227, 237, 246, 0.18); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--c-line);
}
.modal-card--share .modal-top { border-bottom-color: rgba(227, 237, 246, 0.14); }
.modal-ref { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-green-deep); }
.modal-card--share .modal-ref { color: var(--c-green-bright); }

.modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: transparent; border: 1.5px solid rgba(19, 46, 74, 0.2); color: inherit; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.modal-close:hover { background: rgba(19, 46, 74, 0.06); border-color: var(--c-navy-soft); }
.modal-card--share .modal-close { border-color: rgba(227, 237, 246, 0.35); }
.modal-card--share .modal-close:hover { background: rgba(227, 237, 246, 0.1); }

.modal-body { padding: 1.6rem 1.5rem; overflow-y: auto; }
.modal-id { display: flex; align-items: center; gap: 1.3rem; }
.modal-id h3 { font-size: clamp(1.5rem, 4vw, 1.9rem); }
.modal-prof { color: var(--c-navy-soft); margin-top: 0.2rem; }
.modal-bio { margin-top: 1.2rem; font-size: 1.02rem; line-height: 1.75; max-width: 62ch; }
.modal-bio p + p { margin-top: 0.8em; }
.modal-program-list { display: flex; flex-direction: column; gap: 0.8rem; padding-left: 1.25rem; }
.modal-program-list li::marker { color: var(--c-green-deep); }

.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.5rem; border-top: 1px solid var(--c-line);
}
.modal-nav { display: flex; gap: 0.5rem; }
.modal-nav .btn { padding: 0.5em 0.7em; border-radius: 50%; }

.modal--share .share-buttons { flex-direction: column; align-items: stretch; padding: 1.2rem 1.5rem; }
.modal--share .share-btn { justify-content: flex-start; font-size: 0.95rem; padding: 0.7em 1.1em; }
.modal--share .form-feedback { padding: 0 1.5rem 1rem; }

/* ---------- Animazioni di rivelazione ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }

.js-reveal .cand-card { opacity: 0; transform: translateY(18px); }
.js-reveal .cand-card.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}
.js-reveal .cand-card.in:hover { transform: translateY(-5px); }

/* momento firmato: l'elica di DNA si disegna al caricamento */
.helix-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: helix-in 2.6s var(--ease-out) forwards; }
.helix-draw circle { opacity: 0; animation: helix-dot 0.8s var(--ease-out) forwards; animation-delay: 1.6s; }
@keyframes helix-in { to { stroke-dashoffset: 0; } }
@keyframes helix-dot { to { opacity: 1; } }
.flora-drift { animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: rotate(-0.7deg) translateY(0); }
  to { transform: rotate(0.7deg) translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal, .js-reveal .cand-card { opacity: 1; transform: none; transition: none; }
  .helix-draw path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .helix-draw circle { animation: none; opacity: 1; }
  .flora-drift, .hero-scrollcue span { animation: none; }
  .btn:hover, .cand-card:hover, .share-btn:hover, .prog-item:hover { transform: none; }
  .modal-card { animation: none; }
}

/* Modalità screenshot (solo cattura automatica, mai attiva per i visitatori) */
.shot .hero { min-height: 52rem; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-content: flex-start; width: min(100%, 31rem); margin: 1.5rem 0 2rem; }
  .hero { padding-top: 6.5rem; }
  .impact-strip__inner { grid-template-columns: repeat(3, 1fr); padding: 1.4rem 0; }
  .impact-strip a { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 62rem) {
  .prog-layout, .contact-layout, .footer-inner { grid-template-columns: 1fr; }
  .prog-intro { position: static; }
  .footer-meta { text-align: left; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 56rem) {
  .nav-links, .btn--nav-share { display: none; }
  .nav-burger { display: flex; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 47rem) {
  .hero { padding-top: 5.5rem; }
  .hero-title { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-flora { opacity: 0.5; }

  .prog-item__details > summary, .prog-item__preview { gap: 0.75rem; padding: 1rem; }
  .prog-item__details > summary::before, .prog-item__preview::before { min-width: 2.25rem; }
  .prog-item__body { padding: 1rem 1.1rem 1.35rem; }

  .hero-manifesto { width: calc(100% - 1rem); transform: none; }
  .hero-seal--people { left: -0.35rem; top: 15%; }
  .hero-seal--program { right: -0.25rem; bottom: 10%; }

  .impact-strip__inner { grid-template-columns: 1fr; gap: 1rem; padding: 1.7rem 0; }
  .impact-strip p { padding-bottom: 1rem; border-bottom: 1px solid rgba(227, 237, 246, 0.12); }
  .impact-strip a { grid-column: auto; }

  .cand-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .cand-card { padding: 1rem 0.95rem; }
  .avatar { width: 3.8rem; height: 3.8rem; font-size: 1.2rem; }

  .modal { padding: 0.75rem; align-items: flex-end; }
  .modal-card { max-height: 88svh; }
  .modal-foot { flex-wrap: wrap; }
  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; width: calc(100% - 1rem); }
  .cookie-banner__inner { grid-template-columns: 1fr; padding: 1.15rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { width: 100%; }
  .cookie-panel { align-items: end; padding: 0.5rem; }
  .cookie-panel__card { max-height: 92svh; }
  .legal-table { display: block; overflow-x: auto; }
}

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .cand-grid--rev { grid-template-columns: 1fr; }
  .vote-cell { grid-template-columns: 1fr; }
  .vote-cell::before { margin-bottom: 0.4rem; }
  .vote-cell::after { display: none; }
  .hero-seal { min-width: 5.5rem; padding: 0.58rem 0.7rem; }
  .hero-seal b { font-size: 1.35rem; }
}
