/* ============================================================
   Isinnova — Homepage
   Stile: Stripe/Anthropic minimal, Linear/Vercel hint
   Palette: off-white tecnico + accent verde Isinnova
============================================================ */

/* ============================================================
   Self-hosted fonts (GDPR — no Google Fonts CDN)
   Variable woff2, latin + latin-ext subsets
============================================================ */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Light palette — warm off-white */
  --bg:        #F7F5F0;
  --bg-elev:  #FFFFFF;
  --bg-alt:   #EFECE4;
  --ink:      #131312;
  --ink-2:    #3D3D38;
  --ink-3:    #6E6E66;
  --ink-4:    #9C9B92;
  --line:     #E1DDD2;
  --line-2:   #D2CDBE;

  /* Accent (Isinnova logo green — exact) */
  --accent:        #50C878;
  --accent-2:      #2FA055;
  --accent-soft:   #D4EFDF;
  --accent-glow:   rgba(80, 200, 120, 0.22);

  /* Category accents (portfolio macrotemi) */
  --cat-medical:  #6FB8E0;
  --cat-medical-soft: #DCEEF8;
  --cat-build:    #E89BB5;
  --cat-build-soft: #F8E0E7;
  --cat-waste:    #D9A94F;
  --cat-waste-soft: #F4E7C8;
  --cat-business: #7AAEA8;
  --cat-business-soft: #DCEDEA;

  /* Type */
  --font-display: "Space Grotesk", -apple-system, system-ui, sans-serif;
  --font-body:    "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --max:    1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-sm: 8px;
}

[data-density="compact"] {
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
}

/* ---------- Typography ---------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.022em;
  line-height: 1.02;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(48px, 7.4vw, 112px);
  letter-spacing: -0.035em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: -0.028em;
  line-height: 1.02;
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.018em;
  line-height: 1.15;
  font-weight: 500;
}

p { margin: 0; color: var(--ink-2); }
p strong { color: var(--ink); font-weight: 500; }
p em { font-style: italic; color: var(--accent-2); font-weight: 500; }

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
  letter-spacing: -0.005em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ---------- Top notice bar ---------- */
.notice {
  background: var(--ink);
  color: #E7E6E0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.notice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 200% at 50% 100%, rgba(80,200,120,0.22), transparent 70%);
  pointer-events: none;
}
.notice .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 42px;
  position: relative;
}
.notice .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(68,178,107,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(68,178,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(68,178,107,0); }
}
.notice a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #062B14;
  padding: 5px 13px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.notice a:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.notice .arrow { display: inline-block; transition: transform .2s; }
.notice a:hover .arrow { transform: translateX(3px); }

@media (max-width: 720px) {
  .notice { font-size: 11px; }
  .notice .wrap {
    height: auto;
    padding-top: 9px;
    padding-bottom: 9px;
    gap: 10px;
    justify-content: space-between;
    text-align: left;
  }
  .notice .wrap > span:not(.pulse) { flex: 1; min-width: 0; }
  .notice a { white-space: nowrap; padding: 6px 12px; flex-shrink: 0; }
}

/* ---------- Nav ---------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(247, 245, 240, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
nav.top.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 240, 0.92);
}
nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 19px;
}
nav .brand img { height: 40px; width: auto; }

nav .links {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav .links a {
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .15s, background .15s;
}
nav .links a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  nav.top .wrap > .btn { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  nav.top.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.top.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.top.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  nav .links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: #F7F5F0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(19, 19, 18, 0.25);
  }
  nav.top.menu-open .links { display: flex; }
  nav .links a { padding: 13px 14px; font-size: 16px; }

  /* no-JS fallback: links always visible, toggle hidden */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) nav .links {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: none;
    padding: 0;
    background: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--ink);
  color: #fff;
  transition: transform .15s, background .15s, box-shadow .15s;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn.ghost:hover { background: rgba(0,0,0,0.04); }

.btn.accent {
  background: var(--accent);
  color: #062B14;
}
.btn.accent:hover { background: var(--accent-2); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -240px;
  top: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 60px solid var(--accent);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 720px) {
  .hero::after { width: 360px; height: 360px; border-width: 40px; right: -180px; top: -80px; }
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 0%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 0%, #000 40%, transparent 80%);
}
[data-hero="grid"] .hero-grid-bg { opacity: 1; }

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}
.hero-head .meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-head .meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-head .meta .tick {
  width: 5px; height: 5px;
  background: var(--ink-4);
  border-radius: 50%;
}

.hero h1 {
  position: relative;
}
.hero h1 .accent {
  color: var(--accent-2);
  font-style: italic;
  font-weight: 400;
  font-family: "Space Grotesk", serif;
}
.hero h1 .dash {
  display: inline-block;
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
  margin-right: 0.18em;
  transform: translateY(-0.04em);
}

.hero .sub {
  margin-top: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.hero-body {
  margin-top: clamp(28px, 3vw, 44px);
  max-width: 980px;
}
.hero-body .lede {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 64ch;
  letter-spacing: -0.005em;
}
.hero-body .cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- KPI banner ---------- */
.kpi-section {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: baseline;
  margin-bottom: clamp(28px, 3vw, 40px);
}
@media (max-width: 720px) {
  .kpi-head { grid-template-columns: 1fr; gap: 12px; }
}
.kpi-lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 50ch;
  font-weight: 500;
}
.kpi-lede em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }

.kpi-cell {
  background: var(--bg-elev);
  padding: 28px 24px 24px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 140px;
  transition: background .2s;
}
.kpi-cell:hover { background: var(--bg); }
.kpi-cell.highlight { background: var(--ink); color: #F2F1EC; }
.kpi-cell.highlight:hover { background: #1f1f1d; }
.kpi-cell.highlight .k-num { color: #fff; }
.kpi-cell.highlight .k-num .unit { color: var(--accent); }
.kpi-cell.highlight .k-label { color: rgba(255,255,255,0.68); }

.k-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.k-num .unit {
  font-size: 0.45em;
  color: var(--accent-2);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.k-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
  max-width: 32ch;
}

@media (max-width: 720px) {
  .hero .sub { grid-template-columns: 1fr; }
}

.hero .lede { color: var(--ink-2); }

.hero .cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-stack {
  border-left: 1px solid var(--line-2);
  padding-left: 24px;
  display: grid;
  gap: 16px;
}
.hero-stack .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hero-stack .row:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stack .row strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-stack .row span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  max-width: 14ch;
}

/* Hero variant: product image */
.hero-image-wrap {
  display: none;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
[data-hero="image"] .hero-image-wrap { display: block; }
[data-hero="image"] .hero-stack { display: none; }
[data-hero="image"] .hero .sub { grid-template-columns: 1.2fr 1fr; }

.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-image-wrap .tag {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(19,19,18,0.84);
  color: #fff;
  padding: 7px 11px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(36px, 4vw, 56px);
  align-items: end;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}
.section-head .num::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink-4);
}
.section-head h2 .mute { color: var(--ink-4); }
.section-head .right { display: grid; gap: 16px; }
.section-head .right p { max-width: 56ch; font-size: clamp(17px, 1.4vw, 20px); }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Pillars (what we do) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 220px;
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--accent);
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  text-transform: uppercase;
}
.pillar h3 { font-size: 22px; }
.pillar p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ---------- Charlotte feature card ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  z-index: 2;
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.feature .media {
  background: #1a1a18;
  position: relative;
  min-height: 420px;
}
.feature .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.feature .media .badge {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247,245,240,0.94);
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.feature .media .badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4);
}
.feature .body {
  padding: clamp(28px, 3.5vw, 48px);
  display: grid;
  gap: 22px;
  align-content: center;
}
.feature .body h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.feature .body .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.feature .stats .stat strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.025em;
  display: block;
  line-height: 1;
}
.feature .stats .stat span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.feature .body .quote {
  font-style: italic;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

/* ---------- Charlotte hero-stat & awards ---------- */
.hero-stat {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: var(--radius);
  padding: 24px 26px 22px;
  color: #fff;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 24px solid rgba(255,255,255,0.18);
  pointer-events: none;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.hero-stat-num .plus {
  font-size: 0.5em;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transform: translateY(0.15em);
}
.hero-stat-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
  max-width: 38ch;
  font-family: var(--font-body);
}

.charlotte-stats {
  padding-top: 22px !important;
  border-top: 1px solid var(--line) !important;
}

.awards-strip {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 12px;
}
.awards-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.awards-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 540px) { .awards-list { grid-template-columns: 1fr; } }
.award {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}
.award strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.award span {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
}

/* ---------- Portfolio grid ---------- */
.portfolio-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 18px;
  align-items: center;
}
.portfolio-filters .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 12px;
}

/* Category legend */
.cat-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
}
.cat-legend .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.cat-legend .item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
}
.cat-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.cat-icon svg { width: 14px; height: 14px; }
.cat-icon.medical  { background: var(--cat-medical-soft);  color: var(--cat-medical); }
.cat-icon.build    { background: var(--cat-build-soft);    color: var(--cat-build); }
.cat-icon.waste    { background: var(--cat-waste-soft);    color: var(--cat-waste); }
.cat-icon.business { background: var(--cat-business-soft); color: var(--cat-business); }

/* legacy .swatch (kept for safety) */
.cat-legend .swatch {
  width: 14px; height: 14px;
  border-radius: 4px;
}
.cat-legend .swatch.medical  { background: var(--cat-medical); }
.cat-legend .swatch.build    { background: var(--cat-build); }
.cat-legend .swatch.waste    { background: var(--cat-waste); }
.cat-legend .swatch.business { background: var(--cat-business); }

/* Cat-tag inside project cards */
.proj .cat-tag .cat-icon {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,0.6);
}
.proj .cat-tag .cat-icon svg { width: 11px; height: 11px; }
.filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: all .15s;
  font-family: var(--font-body);
}
.filter-btn:hover { background: rgba(0,0,0,0.04); }
.filter-btn.active {
  background: var(--ink);
  color: #fff;
}
.filter-btn .count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-left: 6px;
  opacity: 0.6;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio { grid-template-columns: 1fr; } }

.proj {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: grid;
  gap: 14px;
  align-content: start;
  transition: transform .25s, border-color .2s, box-shadow .25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 280px;
}
.proj::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cat-accent, var(--accent));
  z-index: 1;
}
.proj::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, var(--cat-glow, var(--accent-glow)), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.proj:hover {
  transform: translateY(-3px);
  border-color: var(--cat-accent, var(--line-2));
  box-shadow: 0 12px 32px -16px rgba(20,30,15,0.12);
}
.proj:hover::after { opacity: 1; }

/* Category palettes */
.proj[data-cat="medical"]  { --cat-accent: var(--cat-medical);  --cat-soft: var(--cat-medical-soft);  --cat-glow: rgba(111,184,224,0.20); }
.proj[data-cat="build"]    { --cat-accent: var(--cat-build);    --cat-soft: var(--cat-build-soft);    --cat-glow: rgba(232,155,181,0.20); }
.proj[data-cat="waste"]    { --cat-accent: var(--cat-waste);    --cat-soft: var(--cat-waste-soft);    --cat-glow: rgba(217,169,79,0.20); }
.proj[data-cat="business"] { --cat-accent: var(--cat-business); --cat-soft: var(--cat-business-soft); --cat-glow: rgba(122,174,168,0.20); }

.proj .cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--cat-soft);
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 500;
  align-self: flex-start;
  width: max-content;
}
.proj .cat-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cat-accent);
}

/* bullets recolor per category */
.proj .bullets li::before { background: var(--cat-accent, var(--accent)); }

.proj .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.proj .code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.status .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.status.fundraising { background: rgba(68, 178, 107, 0.12); color: var(--accent-2); }
.status.fundraising .dot { background: var(--accent-2); }
.status.selling     { background: rgba(50, 100, 200, 0.10); color: #2b5fb8; }
.status.selling .dot { background: #2b5fb8; }
.status.coming      { background: rgba(140, 130, 100, 0.14); color: #8a7a3e; }
.status.coming .dot { background: #b89c4c; }
.status.legacy      { background: rgba(40, 40, 40, 0.08); color: var(--ink-2); }
.status.legacy .dot { background: var(--ink-3); }

.proj h3 {
  font-size: 26px;
  letter-spacing: -0.022em;
}
.proj .tagline {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.45;
}

.proj .bullets {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.proj .bullets li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.proj .bullets li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.proj .cta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.proj .cta .arrow { transition: transform .2s; }
.proj:hover .cta .arrow { transform: translateX(4px); }

/* hide cards that don't match filter */
.proj.is-hidden { display: none; }

/* ---------- Founder spotlight ---------- */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

.founder .portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
}
.founder .portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.founder .portrait .caption {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(6px);
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.founder .portrait .caption strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.founder .portrait .caption span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.founder-body { display: grid; gap: 24px; }
.founder-body h2 { font-size: clamp(34px, 3.6vw, 52px); }
.founder-body h2 em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}
.founder-body p { font-size: 17px; line-height: 1.6; max-width: 56ch; }

.recognitions {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.recognitions .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.rec-list {
  display: grid;
  gap: 10px;
}
.rec-list .rec {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.rec-list .rec:last-child { border-bottom: none; }
.rec .year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.rec .name {
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.rec .where {
  font-size: 12px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- Impact bar ---------- */
.impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 720px) { .impact { grid-template-columns: repeat(2, 1fr); } }
.impact .cell {
  padding: 0 24px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  align-content: center;
}
.impact .cell:last-child { border-right: none; }
.impact .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.impact .num .unit { color: var(--accent-2); }
.impact .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Contact ---------- */
.cc-kpi {
  margin-top: auto;
  padding: 10px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.cc:hover .cc-kpi { background: var(--bg-alt); }
.cc-kpi strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.cc-kpi span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  max-width: 18ch;
  line-height: 1.3;
}

.bando-finanziamento {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-left: 3px solid var(--accent);
}
.bando-finanziamento strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Contact (legacy) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

.cc {
  background: var(--bg);
  padding: 28px 24px 26px;
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 230px;
  transition: background .2s;
  cursor: pointer;
}
.cc:hover { background: var(--bg-elev); }
.cc .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent-2);
}
.cc:hover .ic { background: var(--accent); color: #062B14; border-color: var(--accent); }
.cc h3 { font-size: 18px; }
.cc p { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.cc .go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Big CTA strip ---------- */
.bigcta {
  margin-top: clamp(60px, 8vw, 100px);
  padding: clamp(60px, 8vw, 100px) clamp(28px, 4vw, 56px);
  background: var(--ink);
  color: #F2F1EC;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.bigcta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 90% 100%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 90% 100%, #000 0%, transparent 70%);
  pointer-events: none;
}
.bigcta .inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
}
@media (max-width: 720px) { .bigcta .inner { grid-template-columns: 1fr; } }
.bigcta h2 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 64px);
}
.bigcta h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.bigcta p { color: rgba(255,255,255,0.65); max-width: 50ch; margin-top: 18px; font-size: 16px; }

.bigcta .btn { background: var(--accent); color: #062B14; padding: 14px 22px; font-size: 15px; }
.bigcta .btn:hover { background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
footer.site {
  margin-top: clamp(80px, 10vw, 120px);
  padding-top: 48px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
footer .col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 500;
}
footer .col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-2);
  transition: color .15s;
}
footer .col a:hover { color: var(--ink); }
footer .brand-col p {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 36ch;
  margin-top: 12px;
}
footer .brand-col img { height: 26px; }
footer .meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
footer .meta-bottom .status-live {
  display: inline-flex; gap: 8px; align-items: center;
}
footer .meta-bottom .status-live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---------- Bandi e finanziamenti ---------- */
.bandi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 860px) { .bandi-grid { grid-template-columns: 1fr; } }

.bando {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.bando::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #003399 0%, #003399 50%, var(--accent) 50%, var(--accent) 100%);
}

.bando-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.bando-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-alt);
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 500;
}
.bando-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.bando-year { color: var(--ink-4); font-size: 11px; }

.bando h3 {
  font-size: 26px;
  letter-spacing: -0.022em;
  line-height: 1.08;
}
.bando h3 .sub {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.bando p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.bando p strong { color: var(--ink); font-weight: 500; }
.bando p em { font-style: normal; color: var(--accent-2); font-weight: 500; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--bg);
}

.bando-partners {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.partner-list span {
  display: inline-flex;
  align-items: center;
}
.partner-list span:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: var(--ink-4);
}

.bando-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.bando-funders { display: grid; gap: 10px; }
.funder-label {
  color: var(--ink-3);
  font-size: 10px;
}

.funder-plaque {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.funder-plaque img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

.bando-logo {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 4px;
}
.bando-logo img {
  max-height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.funder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .funder-row { grid-template-columns: 1fr; } }

.funder-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.funder-chip strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.funder-chip em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.flag {
  width: 32px; height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
/* EU flag — blue with 12 stars circle hint */
.flag.eu {
  background: #003399;
  position: relative;
}
.flag.eu::before {
  content: "★★★\A★ ★\A★ ★\A★★★";
  white-space: pre;
  font-size: 6px;
  line-height: 5px;
  color: #FFCC00;
  text-align: center;
  letter-spacing: 0.5px;
  transform: scale(0.95);
}
/* Regione Lombardia flag */
.flag.rl {
  background: linear-gradient(180deg, #009A44 0%, #009A44 50%, #ffffff 50%, #ffffff 100%);
  color: #009A44;
  border: 1px solid var(--line);
  font-size: 8.5px;
  font-weight: 700;
  text-shadow: 0 0 1px rgba(0,0,0,0.05);
}

.bando-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  align-self: start;
  width: max-content;
  transition: background .15s;
}
.bando-link:hover { background: var(--bg-alt); }
.bando-link .arrow { transition: transform .2s; }
.bando-link:hover .arrow { transform: translate(2px, -2px); }

.bandi-disclosure {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font-body);
  font-style: italic;
  border-left: 2px solid var(--accent);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Fallback robustezza (Polaris) — aggiunto in produzione
   Senza JS o con prefers-reduced-motion il contenuto è SEMPRE
   visibile. L'animazione reveal resta solo come progressive
   enhancement quando <html> ha la classe .js.
   ============================================================ */
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}
