/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-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: 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono-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: 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono-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;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-2: #121214;
  --bg-3: #1a1a1d;
  --line: #2a2a2e;
  --text: #f3f1ee;
  --muted: #a3a09b;
  --red: #e2252c;
  --red-deep: #8f1418;
  --paper: #f4f2ee;
  --ink: #141416;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --stripes: repeating-linear-gradient(-45deg, var(--red) 0 12px, transparent 12px 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap > *, .project-grid > *, .fairs-grid > *, .goals-grid > *, .results-grid > *, .footer-grid > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.section-lead { color: var(--muted); font-size: 1.125rem; max-width: 56ch; margin: 0; }
.stripes { height: 14px; background: var(--stripes); }

/* Placeholder still waiting for the final text: visible on purpose */
.todo {
  background: rgba(250, 204, 21, .14);
  outline: 1px dashed #facc15;
  color: #fde68a;
  padding: 0 .3em;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--text); border-color: var(--red); }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(closest-side, rgba(226, 37, 44, .22), transparent);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(226, 37, 44, .45);
  background: rgba(226, 37, 44, .08);
  color: #ff8a8e;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7.6vw, 6.25rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
/* "INTERNATIONAL" is one long word: narrow the face on phones so it never overflows */
@media (max-width: 560px) { .hero h1 { font-stretch: 100%; font-size: 9.4vw; } }
.hero h1 .accent { color: var(--red); display: block; }
.hero-sub {
  margin: 28px 0 0;
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  font-weight: 500;
}
.hero-text { margin: 16px 0 0; max-width: 60ch; color: var(--muted); font-size: 1.0625rem; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.meta li { display: flex; gap: 8px; align-items: baseline; }
.meta strong { color: var(--text); font-weight: 500; }

.hero-figure { position: relative; margin: clamp(48px, 7vw, 80px) 0 0; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.hero-figure .stripes { position: absolute; left: 0; right: 0; bottom: -7px; }

/* ---------- Institutional strip ---------- */
.institutional { background: var(--paper); color: var(--ink); padding: 28px 0 24px; }
.institutional img { width: 100%; max-width: 980px; margin: 0 auto; }
.institutional p {
  margin: 16px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }

/* Progetto */
.project-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.project-grid p { font-size: 1.1875rem; margin: 0 0 18px; }
.grant {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
}
.grant::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.grant p { font-size: 1.0625rem; margin: 0; color: #d6d3ce; }
.grant strong { color: var(--text); }
.cup {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.cup b { color: var(--text); font-weight: 500; font-size: 15px; letter-spacing: .06em; }
@media (max-width: 880px) { .project-grid { grid-template-columns: 1fr; } }

/* Fiere */
.fairs { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fairs-head { margin-bottom: 48px; }
.fairs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fair {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.fair > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.fair::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 8, 9, .97) 0%, rgba(8, 8, 9, .86) 38%, rgba(8, 8, 9, .15) 75%, rgba(8, 8, 9, .05) 100%);
}
.fair:hover > img { transform: scale(1.04); }
.fair-body { padding: 32px; }
.fair-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: .1em;
}
.fair h3 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 900;
  font-stretch: 115%;
  line-height: 1;
  text-transform: uppercase;
}
.fair-facts { margin: 0 0 16px; padding: 0; list-style: none; font-family: var(--mono); font-size: 13.5px; color: #d6d3ce; }
.fair-facts li { padding: 3px 0; display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: baseline; }
.fair-facts li > span:first-child { color: var(--muted); }
.fair-facts .todo { justify-self: start; }
.fair p { margin: 0; color: #cfccc7; max-width: 46ch; }
.fair .stripes { position: absolute; top: 0; left: 0; width: 120px; height: 10px; }
@media (max-width: 880px) { .fairs-grid { grid-template-columns: 1fr; } .fair { min-height: 520px; } }

/* Obiettivi */
.goals-head { margin-bottom: 56px; }
.goals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: goal; }
.goal { border-top: 2px solid var(--line); padding-top: 24px; position: relative; }
.goal::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--red);
}
.goal-num {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  font-stretch: 120%;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #4a4a50;
  margin-bottom: 18px;
}
.goal h3 { margin: 0 0 10px; font-size: 1.375rem; font-weight: 800; font-stretch: 108%; line-height: 1.2; }
.goal p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .goals-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Risultati */
.results { background: linear-gradient(180deg, var(--bg) 0%, #140a0b 100%); border-top: 1px solid var(--line); }
.results-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.results figure { margin: 0; position: relative; }
.results figure img { width: 100%; border: 1px solid var(--line); }
.results figure .stripes { position: absolute; right: -10px; top: -10px; width: 110px; height: 110px; z-index: -1; }
.results figure { isolation: isolate; }
.results figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.results-text p { font-size: 1.1875rem; margin: 0 0 24px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  background: var(--red);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
@media (max-width: 880px) { .results-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #050506; border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--muted); }
.footer-logos { background: var(--paper); padding: 16px 20px; border-radius: var(--radius); }
.footer-logos img { width: 100%; max-width: 760px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 40px; }
.footer-grid p { margin: 0 0 8px; }
.footer-grid .eu, .footer-grid .company { color: var(--text); font-weight: 600; }
.footer-grid a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }
.footer-grid a:hover { color: #ff8a8e; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot::after { animation: none; }
  .fair > img { transition: none; }
}
