:root {
  --green: #00843D;
  --green-2: #00b04f;
  --green-3: #023b2d;
  --green-dark: #00533a;
  --red: #CE2B37;
  --red-2: #e30613;
  --white: #ffffff;
  --dark: #10201a;
  --muted: #5f6f68;
  --line: #dde7e2;
  --soft: #f3f8f5;
  --shadow: 0 22px 70px rgba(0, 83, 58, 0.14);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 860px; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 99;
}
.skip-link:focus { left: 12px; }

/* Fascia tricolore istituzionale */
.tricolor-strip {
  display: flex;
  height: 6px;
  width: 100%;
}
.tricolor-strip span { flex: 1; }
.tricolor-strip span:nth-child(1) { background: var(--green); }
.tricolor-strip span:nth-child(2) { background: #ffffff; }
.tricolor-strip span:nth-child(3) { background: var(--red); }

/* Sottolineatura tricolore per gli eyebrow, in stile flyer ufficiale */
.eyebrow {
  position: relative;
  margin: 0 0 16px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  padding-bottom: 10px;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0 33%, #ffffff 33% 66%, var(--red) 66% 100%);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.cta-box .eyebrow::after,
.document-box .eyebrow::after { box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }

.topbar {
  background: linear-gradient(90deg, var(--green-dark), var(--green-3));
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.topbar-inner {
  min-height: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.topbar-sede {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.topbar-sede::before { content: "📍"; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 250px; border-radius: 14px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: var(--green-dark);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--red); }
.nav-button {
  background: var(--green-dark);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 83, 58, 0.18);
}
.nav-button:hover { background: var(--red); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 132, 61, 0.14), transparent 32%),
    radial-gradient(circle at 90% 5%, rgba(206, 43, 55, 0.12), transparent 26%),
    linear-gradient(135deg, #fff 0%, var(--soft) 100%);
  padding: 70px 0 64px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -160px auto;
  width: 360px;
  height: 360px;
  border: 42px solid rgba(0, 132, 61, 0.08);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}
.sede-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0, 83, 58, 0.18);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(16, 32, 26, 0.06);
}
.sede-badge::before { content: "📍"; }
h1, h2, h3 { line-height: 1.08; margin: 0; color: var(--green-dark); }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); text-transform: uppercase; letter-spacing: -0.06em; }
h1 span { color: var(--red); }
h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); letter-spacing: -0.04em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 18px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: #33443e; max-width: 760px; }

.tagline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 22px;
  font-weight: 800;
  color: var(--green-dark);
  font-size: 0.95rem;
}
.tagline-row span { display: inline-flex; align-items: center; gap: 8px; }
.tagline-row span:not(:last-child)::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-left: 10px;
  display: inline-block;
}
.tagline-row span:nth-child(1)::before { content: "🔎"; }
.tagline-row span:nth-child(2)::before { content: "📋"; }
.tagline-row span:nth-child(3)::before { content: "🛡️"; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--red); color: #fff; box-shadow: 0 18px 35px rgba(206, 43, 55, 0.22); }
.button.primary:hover { background: #b8232d; }
.button.secondary { border: 2px solid var(--green-dark); color: var(--green-dark); background: #fff; }
.button.light { background: #fff; color: var(--green-dark); box-shadow: none; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points span {
  border: 1px solid rgba(0, 132, 61, 0.25);
  background: #fff;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
}
.hero-points span:nth-child(odd) { border-color: rgba(206, 43, 55, 0.22); }
.hero-logo-card {
  background: #fff;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 83, 58, 0.08);
  position: relative;
}
.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  padding: 3px;
  background: linear-gradient(135deg, var(--green) 0%, #ffffff 50%, var(--red) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.hero-logo-card img { margin: 0 auto; max-height: 620px; object-fit: contain; }

.notice { background: linear-gradient(90deg, var(--green-dark), var(--green-3)); color: #fff; }
.notice-inner { min-height: 72px; display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; }
.notice strong { color: #fff; }
.notice strong::before { content: "🛡️ "; }

.section { padding: 82px 0; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow) { font-size: 1.1rem; color: var(--muted); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 40px rgba(16, 32, 26, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(16, 32, 26, 0.1); }
.service-card .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-2), var(--green-dark));
  margin-bottom: 18px;
  font-size: 1.6rem;
  box-shadow: 0 10px 22px rgba(0, 83, 58, 0.28), inset 0 0 0 4px rgba(255,255,255,0.18);
}
.service-card .icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card:nth-child(even) .icon {
  background: linear-gradient(145deg, #e8505a, var(--red));
  box-shadow: 0 10px 22px rgba(206, 43, 55, 0.28), inset 0 0 0 4px rgba(255,255,255,0.18);
}
.service-card p { color: var(--muted); margin-bottom: 0; }

.split-section { background: var(--soft); }
.split-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  display: grid;
  gap: 5px;
  background: #fff;
  border-left: 6px solid var(--red);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(16, 32, 26, 0.06);
}
.steps li:nth-child(even) { border-left-color: var(--green); }
.steps strong { color: var(--green-dark); font-size: 1.07rem; }
.steps span { color: var(--muted); }

.document-section { background: #fff; }
.document-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
  background: linear-gradient(135deg, var(--green-dark), var(--green-3));
  color: #fff;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.document-box::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green) 0 33%, #fff 33% 66%, var(--red) 66% 100%);
}
.document-box h2, .document-box .eyebrow { color: #fff; }
.document-box .eyebrow { opacity: 0.95; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 12px 14px 12px 42px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  font-weight: 900;
  color: #fff;
}

.association-section { background: var(--soft); }
.association-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: center; }
.association-logo {
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--green);
  border-bottom: 5px solid var(--red);
}
.association-grid p { color: #33443e; }

.cta-section { padding: 62px 0; background: var(--white); }
.cta-box {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--red), #9c1c24);
  color: #fff;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green) 0 33%, #fff 33% 66%, var(--red) 66% 100%);
}
.cta-box h2, .cta-box .eyebrow { color: #fff; }
.cta-box p { max-width: 780px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-qr {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}
.cta-qr img { width: 110px; height: 110px; image-rendering: pixelated; }
.cta-qr-caption { font-size: 0.78rem; text-align: center; color: #fff; opacity: 0.9; max-width: 140px; }

.contact-section { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: start; }
.contact-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
}
dl { margin: 0; display: grid; gap: 18px; }
dl div { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
dl div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--green-dark); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
dd { margin: 0; font-size: 1.08rem; color: #26362f; }
dd a { color: var(--red); font-weight: 800; text-decoration: none; }

.site-footer { background: #071b14; color: #d8e7e0; padding: 0 0 54px; position: relative; }
.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--green) 0 33%, #fff 33% 66%, var(--red) 66% 100%);
}
.site-footer .container.footer-grid { padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.6fr 1fr; gap: 34px; align-items: start; }
.footer-logo { max-width: 260px; background: #fff; border-radius: 16px; margin-bottom: 18px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { display: block; color: #d8e7e0; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 8px; }
.compact-footer { padding: 24px 0 24px; }
.compact-footer .container { padding-top: 10px; }

.legal-page { padding: 62px 0 86px; }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 16px; }
.legal-page section {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.legal-page h2 { font-size: 1.45rem; margin-bottom: 12px; }
.simple-nav { position: static; }

@media (max-width: 980px) {
  .nav-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .hero-grid, .split-grid, .document-box, .association-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 46px; }
  .hero-logo-card img { max-height: 480px; }
  .cta-box { align-items: flex-start; flex-direction: column; }
  .cta-actions { align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, var(--container)); }
  .topbar-inner { justify-content: center; gap: 8px 14px; text-align: center; padding: 7px 0; }
  .brand img { width: 210px; }
  .nav-links { gap: 14px; font-size: 0.92rem; }
  .section { padding: 58px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .service-card { padding: 22px; }
  .notice-inner { padding: 12px 0; }
  .hero-logo-card { border-radius: 24px; }
  .document-box, .cta-box { border-radius: 24px; }
  .cta-actions { align-items: center; }
}
