:root {
  --navy: #1f3a5f;
  --navy-dark: #142841;
  --blue-soft: #eaf0f6;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #18202a;
  --muted: #5e6875;
  --line: #d9dee5;
  --gold: #b89352;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(20, 40, 65, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Libre Franklin", Arial, sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; }
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 999;
  background: var(--navy); color: white; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(217,222,229,.8);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: white; background: var(--navy); font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700; letter-spacing: -.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.08rem; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-size: .93rem; font-weight: 600; }
.main-nav a:hover { color: var(--navy); }
.nav-cta { padding: 10px 16px; color: white !important; background: var(--navy); border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(184,147,82,.15), transparent 23%),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 60%, #f7f5f0 100%);
  padding: 110px 0 100px;
}
.hero::after {
  content: ""; position: absolute; right: -160px; bottom: -230px;
  width: 520px; height: 520px; border: 1px solid rgba(31,58,95,.12); border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 76px; }
.eyebrow { margin: 0 0 16px; color: var(--navy); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.hero h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; line-height: 1.12; }
.hero h1 { margin: 0; font-size: clamp(3.1rem, 6.3vw, 5.8rem); letter-spacing: -.055em; color: var(--navy-dark); }
.hero-lead { max-width: 700px; margin: 28px 0 34px; font-size: 1.18rem; color: #44505e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 22px; border: 1px solid transparent;
  border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer;
}
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: var(--navy-dark); }
.button-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: "•"; margin-right: 8px; color: var(--gold); }
.hero-panel {
  position: relative; z-index: 1; background: var(--navy); color: white;
  padding: 46px; border-radius: 30px 30px 80px 30px; box-shadow: var(--shadow);
}
.hero-emblem {
  width: 96px; height: 96px; display: grid; place-items: center;
  margin-bottom: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  font-family: "Source Serif 4", Georgia, serif; font-size: 2rem; font-weight: 700;
}
.hero-panel blockquote { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: 1.55rem; line-height: 1.4; }
.signature { margin: 28px 0 0; color: rgba(255,255,255,.72); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
h2 { margin: 0 0 24px; font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -.04em; color: var(--navy-dark); }
.rich-text { font-size: 1.08rem; color: #45515f; }
.rich-text p:first-child { margin-top: 0; }
.text-link { color: var(--navy); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.section-tinted { background: var(--paper); }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading p:last-child { color: var(--muted); font-size: 1.05rem; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.priority-card {
  min-height: 260px; padding: 30px; background: white; border: 1px solid #e1e4e8;
  border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease;
}
.priority-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,40,65,.08); }
.card-number { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.priority-card h3 { margin: 40px 0 12px; color: var(--navy-dark); font-size: 1.45rem; }
.priority-card p { margin: 0; color: var(--muted); }

.territory-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.territory-visual { min-height: 530px; display: grid; place-items: center; background: var(--blue-soft); border-radius: 34px; overflow: hidden; }
.map-shape {
  position: relative; width: 65%; aspect-ratio: 1/1.1;
  display: grid; place-items: center; color: white; background: var(--navy);
  clip-path: polygon(45% 2%, 76% 12%, 94% 36%, 88% 60%, 68% 71%, 58% 96%, 30% 88%, 15% 68%, 4% 43%, 18% 21%);
}
.map-shape::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.45); clip-path: inherit; }
.map-shape span { position: relative; z-index: 1; font-family: "Source Serif 4", Georgia, serif; font-size: 2rem; }
.territory p { color: var(--muted); }
.territory-list { margin-top: 32px; border-top: 1px solid var(--line); }
.territory-list div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.territory-list strong { color: var(--navy); }
.territory-list span { color: var(--muted); }

.news { background: #fbfcfd; }
.row-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.news-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 20px; }
.news-card {
  display: flex; flex-direction: column; min-height: 320px; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: white;
}
.news-card.featured { color: white; background: var(--navy); border-color: var(--navy); }
.news-tag { width: max-content; padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.featured .news-tag { background: rgba(255,255,255,.12); color: white; }
.news-card h3 { margin: 34px 0 12px; font-size: 1.6rem; }
.news-card p { margin: 0 0 26px; color: var(--muted); }
.featured p { color: rgba(255,255,255,.74); }
.news-card a { margin-top: auto; text-decoration: none; font-weight: 700; }

.participate { background: var(--navy-dark); color: white; }
.participate-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.participate h2 { color: white; }
.participate p { color: rgba(255,255,255,.76); font-size: 1.06rem; }
.eyebrow.light { color: #d6c096; }
.idea-form { padding: 32px; background: white; color: var(--ink); border-radius: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.idea-form label { display: block; margin-bottom: 16px; font-size: .88rem; font-weight: 700; }
.idea-form input, .idea-form textarea, .idea-form select {
  width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff;
}
.idea-form textarea { resize: vertical; }
.privacy-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: var(--muted); }
.privacy-check input { width: auto; margin-top: 5px; }
.button-light { background: var(--navy); color: white; border: 0; }
.form-status { min-height: 24px; margin: 12px 0 0 !important; color: var(--navy) !important; font-size: .9rem !important; }

.site-footer { padding: 68px 0 24px; color: #eaf0f6; background: #0d1d30; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 60px; }
.footer-brand .brand-mark { background: white; color: var(--navy); }
.footer-brand .brand-text small { color: #9eb0c5; }
.site-footer p { max-width: 430px; color: #9eb0c5; }
.site-footer h3 { margin: 0 0 16px; font-size: 1rem; color: white; }
.site-footer a, .site-footer span { display: block; margin: 7px 0; color: #b8c5d4; text-decoration: none; }
.socials { display: flex; gap: 14px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8fa2b7; }
.footer-bottom span, .footer-bottom a { display: inline; }

@media (max-width: 900px) {
  .section { padding: 78px 0; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 78px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 22px;
    background: white; border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .nav-cta { margin-top: 8px; padding: 12px 16px !important; text-align: center; }
  .hero-grid, .split, .territory-grid, .participate-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero { padding: 82px 0 70px; }
  .hero-panel { max-width: 650px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: 1 / -1; }
  .territory-visual { min-height: 430px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header .brand-text small { display: none; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-lead { font-size: 1.04rem; }
  .hero-panel { padding: 30px; border-radius: 24px 24px 58px 24px; }
  .hero-panel blockquote { font-size: 1.28rem; }
  .cards-grid, .news-grid, .form-row { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }
  .row-heading { align-items: flex-start; flex-direction: column; }
  .territory-visual { min-height: 340px; }
  .territory-list div { grid-template-columns: 1fr; gap: 4px; }
  .idea-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}


/* Nuova testata grafica Progetto Foligno */
.hero-banner {
  padding: 34px 0 46px;
  background: linear-gradient(180deg, #eef3f8 0%, #ffffff 100%);
}
.project-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(20, 40, 65, 0.13);
}
.banner-actions {
  justify-content: center;
  margin-top: 24px;
}
@media (max-width: 620px) {
  .hero-banner { padding: 20px 0 32px; }
  .project-banner { border-radius: 14px; }
  .banner-actions { align-items: stretch; flex-direction: column; }
  .banner-actions .button { width: 100%; }
}
