/* ==========================================================================
   SU-ETIC — modern redesign
   Palette derived from the original site (navy #192041, amber #F3B600, crimson #A22531)
   ========================================================================== */

:root {
  --navy-950: #0f1430;
  --navy-900: #151b40;
  --navy-800: #1c2452;
  --navy-700: #283270;
  --navy-100: #e6e9f6;
  --amber: #f3b600;
  --amber-600: #d99f00;
  --amber-100: #fff4cf;
  --crimson: #b02a3c;
  --crimson-100: #fbe4e7;
  --teal: #12897c;
  --teal-100: #d9f2ee;
  --sky: #2f6fd0;
  --sky-100: #e0ebfb;
  --violet: #6a4bc4;
  --violet-100: #ebe5fa;

  --ink: #171b31;
  --ink-2: #3c4260;
  --muted: #646a85;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --line: #e7e3d8;
  --line-2: #d9d4c6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(21, 27, 64, .06), 0 2px 8px rgba(21, 27, 64, .05);
  --shadow: 0 2px 4px rgba(21, 27, 64, .05), 0 12px 32px rgba(21, 27, 64, .09);
  --shadow-lg: 0 24px 60px rgba(15, 20, 48, .18);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Language switching (no-JS default: Romanian) ---------- */
html:not([data-lang="en"]) body [lang="en"],
html[data-lang="en"] body [lang="ro"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-variation-settings: "opsz" 36; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 700; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.flag { border-radius: 2px; flex: none; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .d { fill: currentColor; stroke: none; opacity: .18; }
.icon .f { fill: currentColor; stroke: none; }

/* ---------- EU funding strip (scrolls away) ---------- */
.eu-bar { background: #fff; border-bottom: 1px solid var(--line); }
.eu-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.eu-bar img { height: 48px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.eu-bar .eu-note { font-size: .78rem; color: var(--muted); text-align: right; line-height: 1.35; max-width: 340px; }
@media (max-width: 720px) { .eu-bar .eu-note { display: none; } .eu-bar img { height: 40px; } .eu-bar .container { min-height: 56px; } }

/* ---------- Sticky navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 27, 64, .97);
  color: #fff;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .site-nav { background: rgba(21, 27, 64, .9); backdrop-filter: saturate(1.4) blur(14px); } }
.site-nav.is-stuck { box-shadow: 0 10px 30px rgba(10, 14, 36, .28); }
.site-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--amber) 0 25%, var(--crimson) 25% 50%, var(--teal) 50% 75%, var(--sky) 75%); opacity: .95; }
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 92px; transition: min-height .3s var(--ease); }
.site-nav.is-stuck .nav-inner { min-height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 50px; height: 50px; transition: width .3s var(--ease), height .3s var(--ease); filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.site-nav.is-stuck .brand-mark { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .01em; font-weight: 700; }
.brand-text small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 3px; }

.menu { margin-left: auto; }
.menu > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; }
.menu a, .menu .sub-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 10px; min-width: 78px; border-radius: 12px;
  color: rgba(255,255,255,.86); text-decoration: none; font-size: .86rem; font-weight: 600; line-height: 1.15;
  background: none; border: 0; font-family: inherit; cursor: pointer; position: relative;
  transition: background .2s, color .2s, padding .3s var(--ease);
}
.menu a .icon, .menu .sub-toggle > .icon:first-child { width: 24px; height: 24px; transition: width .3s var(--ease), height .3s var(--ease), opacity .3s, margin .3s var(--ease); }
.site-nav.is-stuck .menu a .icon, .site-nav.is-stuck .menu .sub-toggle > .icon:first-child { width: 0; height: 0; opacity: 0; margin-bottom: -4px; }
.menu a:hover, .menu .sub-toggle:hover, .menu .has-sub:focus-within > .sub-toggle { background: rgba(255,255,255,.08); color: #fff; }
.menu a[aria-current="page"], .menu .has-sub.is-current > .sub-toggle { color: var(--amber); }
.menu a[aria-current="page"]::after, .menu .has-sub.is-current > .sub-toggle::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 2px; height: 3px; border-radius: 3px; background: var(--amber); }
.sub-toggle .chev { width: 12px; height: 12px; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); opacity: .6; }
.site-nav:not(.is-stuck) .sub-toggle .chev { top: auto; bottom: 10px; transform: none; }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 50%; min-width: 220px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub::before { content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 6px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { flex-direction: row; justify-content: flex-start; gap: 10px; color: var(--ink); font-size: .92rem; padding: 10px 12px; min-width: 0; }
.sub a .icon { width: 22px !important; height: 22px !important; opacity: 1 !important; margin: 0 !important; color: var(--navy-700); }
.sub a:hover { background: var(--bg); color: var(--navy-900); }
.sub a[aria-current="page"] { color: var(--crimson); }
.sub a[aria-current="page"]::after { display: none; }

.nav-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.lang-switch button { font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.75); background: none; border: 0; padding: 6px 11px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lang-switch button[aria-pressed="true"] { background: var(--amber); color: var(--navy-950); }
.lang-switch .flag { width: 16px; height: 11px; border-radius: 2px; overflow: hidden; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; align-items: center; justify-content: center; }

.nav-backdrop { position: fixed; inset: 0; background: rgba(10, 14, 36, .55); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: none; }

@media (max-width: 1140px) {
  /* backdrop-filter would make the nav the containing block of the fixed drawer */
  .site-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-900); }
  .burger { display: inline-flex; }
  .nav-inner, .site-nav.is-stuck .nav-inner { min-height: 72px; }
  .brand-mark, .site-nav.is-stuck .brand-mark { width: 42px; height: 42px; }
  .menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(360px, 88vw);
    background: var(--surface); color: var(--ink); padding: 16px 16px 32px; overflow-y: auto;
    /* closed state stays inside the viewport (an off-screen translate would widen the mobile layout viewport) */
    clip-path: inset(0 0 0 100%); opacity: 0; visibility: hidden; pointer-events: none; box-shadow: var(--shadow-lg);
    transition: clip-path .35s var(--ease), opacity .25s, visibility 0s linear .35s;
    margin: 0;
  }
  body.nav-open .menu { clip-path: inset(0 0 0 0); opacity: 1; visibility: visible; pointer-events: auto; transition: clip-path .35s var(--ease), opacity .2s, visibility 0s; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .drawer-head strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-900); }
  .drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .menu > ul { flex-direction: column; gap: 2px; }
  .menu a, .menu .sub-toggle { flex-direction: row; justify-content: flex-start; gap: 14px; color: var(--ink); font-size: 1rem; padding: 12px 14px; min-width: 0; width: 100%; text-align: left; }
  .menu a .icon, .menu .sub-toggle > .icon:first-child,
  .site-nav.is-stuck .menu a .icon, .site-nav.is-stuck .menu .sub-toggle > .icon:first-child { width: 24px; height: 24px; opacity: 1; margin: 0; color: var(--navy-700); }
  .menu a:hover, .menu .sub-toggle:hover, .menu .has-sub:focus-within > .sub-toggle { background: var(--bg); color: var(--navy-900); }
  .menu a[aria-current="page"], .menu .has-sub.is-current > .sub-toggle { color: var(--crimson); background: var(--crimson-100); }
  .menu a[aria-current="page"] .icon { color: var(--crimson); }
  .menu a[aria-current="page"]::after, .menu .has-sub.is-current > .sub-toggle::after { display: none; }
  .sub-toggle .chev, .site-nav:not(.is-stuck) .sub-toggle .chev { position: static; transform: none; margin-left: auto; width: 16px; height: 16px; transition: transform .25s; }
  .has-sub.open .sub-toggle .chev { transform: rotate(180deg); }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0 0 0 26px; display: none; min-width: 0; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { transform: none; }
  .has-sub.open > .sub { display: block; transform: none; }
  .sub a { font-size: .95rem; }
}
@media (max-width: 420px) { .brand-text small { display: none; } .lang-switch .flag { display: none; } }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--navy-950); box-shadow: 0 8px 22px rgba(243, 182, 0, .35); }
.btn-primary:hover { color: var(--navy-950); background: #ffc61a; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-700); }
.btn-outline { border-color: var(--line-2); color: var(--navy-900); background: var(--surface); }
.btn-outline:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-danger { background: var(--crimson); color: #fff; box-shadow: 0 8px 22px rgba(176, 42, 60, .3); }
.btn-danger:hover { color: #fff; background: #c4344a; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--navy-100); color: var(--navy-800); }
.chip .icon { width: 15px; height: 15px; }
.chip-amber { background: var(--amber-100); color: #7a5a00; }
.chip-crimson { background: var(--crimson-100); color: var(--crimson); }
.chip-teal { background: var(--teal-100); color: #0b5f56; }
.chip-sky { background: var(--sky-100); color: #1f4f9c; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(47, 111, 208, .45), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(176, 42, 60, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: clamp(48px, 8vw, 96px) clamp(96px, 12vw, 140px); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 40em; }
.hero .eyebrow { color: var(--amber); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.hero-meta .chip { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .float { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-art .float.d2 { animation-delay: -2s; }
.hero-art .float.d3 { animation-delay: -4s; }
.hero-art .spin { animation: spin 80s linear infinite; transform-origin: 240px 200px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .float, .hero-art .spin { animation: none; } }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 16px; padding-top: 40px; }
  .hero-art { max-width: 300px; width: 80%; margin: 0 auto; }
}

/* Stats overlapping the hero */
.stats { position: relative; z-index: 2; margin-top: calc(-1 * clamp(56px, 8vw, 84px)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; border: 1px solid rgba(255,255,255,.6); }
.stat-value { white-space: nowrap; }
.stat-value small { font-size: .55em; font-weight: 600; color: var(--muted); }
@media (max-width: 520px) { .stat { flex-direction: row; } }
.stat .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.stat .ico .icon { width: 28px; height: 28px; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 700; color: var(--navy-900); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .88rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } .stat { padding: 18px; } }

.tint-amber { background: var(--amber-100); color: #a47800; }
.tint-crimson { background: var(--crimson-100); color: var(--crimson); }
.tint-teal { background: var(--teal-100); color: var(--teal); }
.tint-sky { background: var(--sky-100); color: var(--sky); }
.tint-violet { background: var(--violet-100); color: var(--violet); }
.tint-navy { background: var(--navy-100); color: var(--navy-700); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-sm { padding-block: clamp(40px, 6vw, 64px); }
.section-white { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); max-width: 40em; margin: 10px 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--navy-800); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(800px 300px at 90% 0%, rgba(47, 111, 208, .45), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.page-hero .container { position: relative; display: flex; gap: 28px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero p { margin: 0; color: rgba(255,255,255,.8); max-width: 46em; font-size: 1.08rem; }
.page-hero .ph-icon { width: 92px; height: 92px; flex: none; border-radius: 26px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: var(--amber); transform: rotate(-6deg); }
.page-hero .ph-icon .icon { width: 50px; height: 50px; stroke-width: 1.5; }
.page-hero .ph-icon .icon .d { opacity: .25; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs .icon { width: 14px; height: 14px; }
@media (max-width: 640px) { .page-hero .ph-icon { display: none; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: relative; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.card .ico .icon { width: 30px; height: 30px; }
.card-muted { color: var(--muted); font-size: .96rem; }

/* Quick-links tiles */
.tile { display: flex; gap: 16px; align-items: center; padding: 20px; }
.tile .ico { margin: 0; flex: none; }
.tile h3 { font-size: 1.1rem; margin: 0 0 2px; }
.tile p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.tile .go { margin-left: auto; color: var(--line-2); transition: color .2s, transform .2s var(--ease); }
a.tile:hover .go { color: var(--navy-800); transform: translateX(4px); }

/* About split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose { color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--crimson); }

.facts { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.facts-head { padding: 20px 24px; background: var(--navy-900); color: #fff; display: flex; gap: 12px; align-items: center; }
.facts-head h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.facts-head .icon { color: var(--amber); }
.facts dl { margin: 0; padding: 8px 24px 16px; }
.facts dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; word-break: break-word; }
@media (max-width: 480px) { .facts dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Budget bar */
.budget { margin-top: 28px; }
.budget-row { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; margin-bottom: 6px; }
.budget-row strong { font-variant-numeric: tabular-nums; color: var(--navy-900); }
.bar { height: 12px; border-radius: 999px; background: var(--navy-100); overflow: hidden; display: flex; margin-bottom: 18px; }
.bar span { display: block; height: 100%; }

/* Partners */
.partner { display: flex; gap: 16px; align-items: flex-start; }
.partner .ico { margin: 0; flex: none; }
.partner .role { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--crimson); margin-bottom: 4px; }
.partner h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; margin: 0; line-height: 1.35; }
.partner.highlight { border: 2px solid var(--amber); background: linear-gradient(180deg, #fffdf5, #fff); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; height: 100%; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.meta .icon { width: 16px; height: 16px; }
.meta .date { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.news-card h3 { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card .more { margin-top: auto; padding-top: 6px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter { font: inherit; font-size: .9rem; font-weight: 700; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 9px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background .2s, color .2s, border-color .2s; }
.filter .icon { width: 18px; height: 18px; }
.filter .count { font-size: .75rem; background: var(--bg); padding: 1px 8px; border-radius: 999px; color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter[aria-pressed="true"] .count { background: rgba(255,255,255,.15); color: #fff; }

.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--line-2), var(--line)); }
.post { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; scroll-margin-top: calc(var(--nav-h) + 20px); }
.post-dot { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.post-dot .icon { width: 28px; height: 28px; }
.post .card { padding: 26px 28px; }
.post .card:target, .post:target .card { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(243, 182, 0, .25), var(--shadow); }
.post h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 10px 0 12px; line-height: 1.3; }
.post .prose { font-size: 1rem; }
.post.is-hidden { display: none; }
@media (max-width: 640px) {
  .timeline::before { display: none; }
  .post { grid-template-columns: 1fr; gap: 0; }
  .post-dot { display: none; }
  .post .card { padding: 20px; }
}
.deadline { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--crimson-100); color: var(--crimson); font-weight: 700; margin: 14px 0; font-size: .95rem; }
.deadline .icon { flex: none; }
details.more-text { margin-top: 6px; }
details.more-text summary { cursor: pointer; font-weight: 700; color: var(--navy-800); list-style: none; display: inline-flex; gap: 8px; align-items: center; padding: 6px 0; }
details.more-text summary::-webkit-details-marker { display: none; }
details.more-text summary .icon { width: 18px; height: 18px; transition: transform .25s; }
details.more-text[open] summary .icon { transform: rotate(180deg); }
details.more-text[open] summary .when-closed, details.more-text:not([open]) summary .when-open { display: none; }

/* ---------- Documents ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.doc:hover { border-color: var(--navy-700); box-shadow: var(--shadow-sm); color: var(--ink); transform: translateX(3px); }
.doc .doc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--crimson-100); color: var(--crimson); }
.doc .doc-ico.zip { background: var(--violet-100); color: var(--violet); }
.doc .doc-ico.ext { background: var(--sky-100); color: var(--sky); }
.doc .doc-body { min-width: 0; flex: 1; }
.doc .doc-title { font-weight: 650; font-weight: 600; line-height: 1.4; display: block; }
.doc .doc-meta { font-size: .8rem; color: var(--muted); display: block; margin-top: 2px; }
.doc .doc-dl { color: var(--muted); flex: none; transition: color .2s; }
.doc:hover .doc-dl { color: var(--navy-800); }
.doc-list.compact .doc { padding: 10px 12px; }
.doc-list.compact .doc .doc-ico { width: 36px; height: 36px; border-radius: 10px; }
.doc-list.compact .doc .doc-ico .icon { width: 20px; height: 20px; }

.search { position: relative; max-width: 460px; margin-bottom: 24px; }
.search input { width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px 14px 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(40, 50, 112, .12); }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.empty-state { display: none; text-align: center; color: var(--muted); padding: 32px; border: 2px dashed var(--line-2); border-radius: var(--radius); }
.empty-state.show { display: block; }

/* ---------- Objectives ---------- */
.goal-main { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--teal), #0c6b61); color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.goal-main::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); }
.goal-main .ico { width: 84px; height: 84px; border-radius: 24px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.goal-main .ico .icon { width: 46px; height: 46px; color: #fff; }
.goal-main h2 { color: #fff; font-size: 1rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; opacity: .85; }
.goal-main p { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4; margin: 0; font-weight: 500; }
@media (max-width: 640px) { .goal-main { grid-template-columns: 1fr; } }

.os-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.os-card .ico { margin: 0; }
.os-num { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.os-card h3 { margin: 2px 0 8px; }

/* ---------- Big numbers (target group) ---------- */
.headline-number { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.headline-number .big { font-family: var(--font-display); font-size: clamp(3.4rem, 9vw, 6.5rem); font-weight: 700; line-height: .95; color: var(--crimson); letter-spacing: -.03em; }
.headline-number p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink-2); margin: 0; max-width: 30em; }
@media (max-width: 640px) { .headline-number { grid-template-columns: 1fr; gap: 10px; } }
.number-card { display: flex; flex-direction: column; gap: 6px; }
.number-card .num { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--navy-900); line-height: 1; font-variant-numeric: tabular-nums; }
.number-card h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin: 6px 0 2px; }
.number-card p { color: var(--muted); font-size: .94rem; line-height: 1.5; margin: 0; }
.number-card .ico { margin-bottom: 10px; }
.number-card .share { height: 6px; border-radius: 6px; background: var(--bg); margin-top: 14px; overflow: hidden; }
.number-card .share span { display: block; height: 100%; border-radius: 6px; background: currentColor; }

.callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.callout .c-body { display: flex; gap: 16px; align-items: center; }
.callout h3 { margin: 0 0 4px; }
.callout p { margin: 0; color: var(--muted); }
.callout .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.callout .ico .icon { width: 30px; height: 30px; }

.counties { display: flex; flex-wrap: wrap; gap: 8px; }
.counties li { list-style: none; }
.counties span { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.counties .home span { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.counties { padding: 0; margin: 0; }

/* ---------- Activities (stepper) ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; }
.step-badge { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; position: relative; }
.step-badge .icon { width: 36px; height: 36px; }
.step-badge b { position: absolute; bottom: -8px; right: -8px; background: var(--navy-900); color: #fff; font-size: .78rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; border: 3px solid var(--bg); }
.step .card { padding: 22px 26px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); }
.step .facts-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 12px; } .step-badge { width: 60px; height: 60px; border-radius: 18px; } .step-badge .icon { width: 30px; height: 30px; } }

/* ---------- Results ---------- */
.result { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.result .ico { width: 50px; height: 50px; border-radius: 14px; margin: 0; flex: none; }
.result .ico .icon { width: 26px; height: 26px; }
.result .num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy-900); line-height: 1.1; display: block; margin-bottom: 4px; }
.result p { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
.intro-quote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--navy-900); max-width: 34em; margin: 0 0 40px; font-weight: 500; padding-left: 24px; border-left: 4px solid var(--amber); }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--navy-100); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 10, 26, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; place-items: center; gap: 12px; max-width: 92vw; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.75); font-size: .9rem; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lb-prev { transform: rotate(180deg); } }

/* ---------- Training (formare) ---------- */
.book { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.book-cover { width: 96px; height: 128px; border-radius: 6px 12px 12px 6px; display: grid; place-items: center; color: #fff; position: relative; box-shadow: inset 6px 0 0 rgba(0,0,0,.18), var(--shadow-sm); }
.book-cover .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.book-cover small { position: absolute; bottom: 8px; left: 12px; right: 8px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.book h3 { font-size: 1.08rem; margin-bottom: 6px; }
.book .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-sm { padding: 8px 14px; font-size: .86rem; gap: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.soon { text-align: center; padding: clamp(32px, 5vw, 56px); border: 2px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--surface-2); }
.soon .ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 16px; }
.soon .ico .icon { width: 38px; height: 38px; }
.soon p { color: var(--muted); max-width: 32em; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: column; gap: 14px; }
.contact-card .ico { margin-bottom: 4px; }
.contact-card .role { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--crimson); }
.contact-card h3 { margin: 0; }
.contact-line { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-weight: 600; text-decoration: none; word-break: break-all; }
.contact-line .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
a.contact-line:hover { color: var(--sky); }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); display: block; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--navy-100); min-height: 320px; }

/* ---------- Footer ---------- */
.partners-strip { background: #fff; border-top: 1px solid var(--line); padding: 28px 0; }
.partners-strip img { margin: 0 auto; width: 100%; max-width: 1100px; height: auto; }
.partners-strip .ps-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .partners-strip .ps-scroll img { width: 720px; max-width: none; } }
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: clamp(28px, 5vw, 56px); padding-block: 56px 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li a, .site-footer li span { display: inline-flex; gap: 10px; align-items: center; }
.site-footer li .icon { width: 18px; height: 18px; color: var(--amber); }
.footer-links { grid-template-columns: 1fr 1fr; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.55); }
.disclaimer { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.55; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--amber); color: var(--navy-950); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Cookie policy / long text ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; display: flex; gap: 12px; align-items: baseline; }
.legal h2 .n { font-size: .9rem; color: var(--crimson); font-family: var(--font-sans); font-weight: 800; }
.legal h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; margin-top: 1.4em; }
.toc { position: sticky; top: calc(var(--nav-h) + 20px); }
.toc ol { padding-left: 1.2em; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--sky); }
.legal-layout { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; order: -1; } }

@media print {
  .eu-bar, .site-nav, .to-top, .nav-backdrop, .filters, .search { display: none !important; }
  body { background: #fff; }
  .page-hero, .hero { background: #fff !important; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
}
