@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/dmsans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --green: #00723e;
  --green-2: #00a651;
  --green-3: #00923f;
  --yellow: #f9b000;
  --red: #d43a1b;
  --orange: #f7941e;
  --lime: #8cc63f;
  --teal: #007a92;
  --blue: #0396c2;
  --grey-blue: #88aab8;
  --navy: #05173d;
  --ink: #2b323d;
  --text: #5b5755;
  --line: #d0d7de;
  --soft: #f2fcfe;
  --radius: 12px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-variation-settings: "opsz" 14; margin: 0; font-weight: 500; color: var(--navy); line-height: 1.12; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[id] { scroll-margin-top: 24px; }

/* the five-colour bar on top of every page */
.rainbow {
  position: sticky; top: 0; z-index: 50; height: 12px;
  background: linear-gradient(90deg, #e52d27 0 20%, #f7931e 20% 40%, #ffe600 40% 60%, #7ac943 60% 80%, #009245 80% 100%);
}

.kicker {
  display: block;
  font-size: 20px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--grey-blue); margin-bottom: 14px;
}
.hl { color: #fff; padding: 0 .12em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-red { background: var(--red); } .hl-yellow { background: var(--yellow); } .hl-green { background: var(--green-2); }
.hl-lime { background: var(--lime); } .hl-teal { background: var(--teal); } .hl-orange { background: var(--orange); }
.hl-green3 { background: var(--green-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px; border: 0; border-radius: 6px;
  font: 500 17px/1.2 "Inter", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(3,150,194,.25); }
.btn-grey { background: var(--grey-blue); color: #fff; font-size: 15px; min-height: 40px; border-radius: 2px; }
.btn-outline-red { background: #fff; color: var(--red); border: 2px solid var(--red); font-size: 15px; min-height: 42px; }
.btn-green { background: var(--green-2); color: #fff; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 45% 55%; background: var(--green); border-radius: 0 0 60px 60px; overflow: hidden; }
.hero-img { position: relative; min-height: 640px; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-body { padding: 56px 64px 56px 32px; color: #fff; }
.nav { display: flex; justify-content: flex-end; gap: 40px; list-style: none; margin: 0 0 40px; padding: 0; }
.nav a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.hero h1 { font-family: "DM Sans", sans-serif; font-weight: 300; font-size: clamp(44px, 5.2vw, 70px); line-height: 1.02; color: #fff; margin-bottom: 36px; }
.hero .kicker { color: #fff; letter-spacing: .2em; }
.hero p { max-width: 540px; color: #fff; line-height: 1.55; }
.hero p strong { font-weight: 600; }
.hero .btn { margin-top: 36px; min-width: 300px; min-height: 70px; font-size: 18px; }

/* ---------- chi siamo ---------- */
.about { text-align: center; padding: 80px 0 64px; }
.about .logo { width: 360px; margin: 6px auto 56px; }
.about h2 { font-size: clamp(30px, 3.2vw, 42px); color: var(--green); margin-bottom: 36px; }
.about h2 .c-red { color: var(--red); } .about h2 .c-yellow { color: var(--yellow); }
.about p { max-width: 490px; margin: 0 auto; font-weight: 300; line-height: 1.5; }

.counters { position: relative; background: var(--soft); padding: 64px 0; }
.counters::before, .counters::after {
  content: ""; position: absolute; left: 50%; width: 46px; height: 46px; background: var(--soft);
  transform: translateX(-50%) rotate(45deg);
}
.counters::before { top: -23px; } .counters::after { bottom: -23px; background: #fff; }
.counters ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 auto; padding: 0; }
.counters li { text-align: center; border-right: 1px solid #c9d6dc; padding: 0 16px; }
.counters li:last-child { border-right: 0; }
.counters b { display: block; font: 300 64px/1.1 "DM Sans", sans-serif; color: var(--blue); }
.counters span { color: var(--navy); font-size: 18px; }

/* ---------- obiettivi ---------- */
.goals { padding: 90px 0 40px; }
.goals .kicker { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 36px 32px; }
.card h3 { font: 600 clamp(32px, 3.3vw, 44px)/1.18 "DM Sans", sans-serif; color: var(--ink); margin-bottom: 40px; }
.card p { font-weight: 300; font-size: 15px; line-height: 1.6; max-width: 280px; }
.card a { margin-top: auto; padding-top: 12px; color: var(--navy); text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: 16px; }
.card a:hover { text-decoration: underline; }

/* ---------- storia ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0 90px; }
.story-text { padding-left: max(20px, calc((100vw - var(--wrap)) / 2)); }
.story h2 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 22px; }
.story p { font-weight: 300; max-width: 460px; }
.story hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0 40px; max-width: 460px; }
.story ul { list-style: square; padding-left: 26px; margin: 0; color: var(--navy); }
.story li { font: 400 clamp(22px, 2vw, 28px)/1.3 "DM Sans", sans-serif; color: var(--green-2); margin-bottom: 14px; padding-left: 4px; }
.story li::marker { color: var(--navy); font-size: 16px; }
.story-img img { width: 100%; height: 100%; max-height: 760px; object-fit: cover; border-radius: 14px 0 0 14px; }

/* ---------- partecipa ---------- */
.join { padding: 80px 0 40px; }
.join > .wrap > h2 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 64px; }
.join > .wrap > h2 u { text-underline-offset: 6px; text-decoration-thickness: 2px; }
.step { display: grid; grid-template-columns: 110px 1fr; gap: 28px; margin-bottom: 96px; }
.step-num {
  width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid #c9ced6; border-radius: 6px;
  font: 400 28px "Inter", sans-serif; color: var(--navy); box-shadow: 0 4px 10px rgba(0,0,0,.08);
  border-bottom: 8px solid var(--c); background: #fff;
}
.step h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; margin-bottom: 18px; }
.step-intro { font-weight: 300; }
.faq-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 40px 0 28px; padding-left: 20px; }
.faq-head h4 { display: flex; align-items: center; gap: 10px; font: 500 32px "DM Sans", sans-serif; }
.faq-head h4 svg { width: 48px; height: 48px; flex: none; }
.faq-head .btn { min-width: min(100%, 446px); }
.faq details { border-top: 1px solid #bec5d6; }
.faq details:last-child { border-bottom: 1px solid #bec5d6; }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative;
  font-size: 19px; color: #414141;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 18px; font: 600 30px/1 "Inter"; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 26px; font-weight: 300; color: #6a6a6a; max-width: 900px; }
.faq-note { margin-top: 40px; color: var(--red); font-weight: 700; }
.faq-note a { color: #c2185b; }

/* ---------- contatti ---------- */
.help { background: var(--soft); text-align: center; padding: 76px 0; }
.help h2 { font-size: clamp(30px, 3.8vw, 52px); max-width: 860px; margin: 0 auto 40px; }
.help p { max-width: 740px; margin: 0 auto 48px; font-weight: 300; }
.help .btns { display: grid; justify-items: center; gap: 36px; }
.help .btn-blue { min-width: min(100%, 416px); min-height: 66px; }
.help .btn-grey { min-width: min(100%, 418px); }
.contact { padding: 40px 0 64px; }
.contact h2 { text-align: center; color: var(--green); font-size: clamp(36px, 3.8vw, 52px); margin-bottom: 18px; }
.contact form { max-width: 667px; margin: 0 auto; }

/* ---------- loghi e piede ---------- */
.logos { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 60px 120px 30px; flex-wrap: wrap; }
.logos img:nth-child(1) { width: 160px; } .logos img:nth-child(2) { width: 150px; } .logos img:nth-child(3) { width: 130px; }
.eu { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; padding: 30px 120px; }
.eu p, .site-foot p { font-size: 12px; font-weight: 300; color: #595853; margin: 0; }
.site-foot { display: grid; grid-template-columns: 2.2fr 1fr .6fr; gap: 30px; align-items: center; padding: 30px 120px; }
.site-foot .copy { color: var(--green); font-weight: 500; }
.legal { display: flex; justify-content: center; gap: 6px; align-items: center; padding: 30px 0 50px; }
.legal a, .legal button {
  font-size: 11px; font-weight: 700; color: #444; text-decoration: none; padding: 4px 8px;
  border: 1px solid #ccc; border-radius: 3px; background: #fff; font-family: inherit; cursor: pointer;
}

/* ---------- privacy page ---------- */
.page-head { background: var(--green); color: #fff; padding: 50px 0 60px; border-radius: 0 0 60px 60px; }
.page-head a { color: #fff; text-decoration: none; font-weight: 500; text-transform: uppercase; font-size: 14px; }
.page-head h1 { color: #fff; font: 300 clamp(40px, 5vw, 60px) "DM Sans", sans-serif; margin-top: 28px; }
.prose { max-width: 820px; padding: 56px 0 80px; color: #414141; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose ul { padding-left: 22px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid #d5dde1; padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: #f2f6f8; }

/* ---------- mobile ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; border-radius: 0; }
  .hero-body { order: -1; padding: 40px 30px 56px; }
  .hero-img { min-height: 280px; }
  .hero .btn { min-width: 0; min-height: 52px; font-size: 16px; display: flex; width: max-content; margin-inline: auto; }
  .nav-wrap { position: relative; }
  .menu-toggle {
    display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; padding: 0;
    background: transparent; border: 3px solid var(--yellow); border-radius: 6px; color: var(--yellow); cursor: pointer;
  }
  .nav { display: none; position: absolute; right: 0; top: 56px; z-index: 40; flex-direction: column; gap: 0;
    background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 8px 0; min-width: 240px; }
  .nav.open { display: flex; }
  .nav a { color: var(--navy); display: block; padding: 14px 22px; }
  .hero h1 { margin-top: 30px; }
  .counters ul { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .counters li:nth-child(2n) { border-right: 0; }
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .card { padding: 30px 26px; }
  .card h3 { margin-bottom: 24px; }
  .card p { max-width: none; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .story-text { padding: 0 20px; }
  .story-img img { border-radius: 14px; width: calc(100% - 40px); margin: 0 auto; max-height: 420px; }
  .step { grid-template-columns: 1fr; gap: 16px; margin-bottom: 64px; }
  .step-num { width: 60px; height: 60px; font-size: 22px; }
  .faq-head { padding-left: 0; }
  .faq-head h4 { font-size: 26px; }
  .faq summary { font-size: 17px; padding: 20px 36px 20px 0; }
  .faq summary::after { top: 14px; }
  .logos { flex-direction: column; padding: 40px 20px; gap: 60px; }
  .eu, .site-foot { grid-template-columns: 1fr; padding: 20px; gap: 24px; text-align: center; }
  .eu img { margin: 0 auto; width: 240px; }
  .eu p, .site-foot p { text-align: justify; }
  .site-foot p.credit, .site-foot p.copy { text-align: center; }
}
@media (max-width: 560px) {
  .kicker { font-size: 16px; }
  .about { padding-top: 56px; }
  .about .logo { width: 240px; margin-bottom: 36px; }
  .counters b { font-size: 48px; }
  .counters span { font-size: 15px; }
  .join > .wrap > h2 { margin-bottom: 40px; }
}
