:root {
  --rosso: #F9423A;
  --giallo: #FFCC3D;
  --bianco: #FEFFDD;
  --testo: #202020;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  background: var(--bianco);
  color: var(--testo);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,255,221,.96);
  border-bottom: 4px solid var(--giallo);
  backdrop-filter: blur(8px);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 1;
}
.brand img {
  width: 215px;
  height: 118px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 800;
  font-size: 1rem;
}
.nav-links a {
  padding: 8px 2px;
  border-bottom: 3px solid transparent;
  transition: .2s ease;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--rosso);
  border-color: var(--rosso);
}

.hero {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 80px 24px 60px;
  background:
    radial-gradient(circle at 10% 15%, rgba(255,204,61,.42), transparent 26%),
    radial-gradient(circle at 90% 90%, rgba(249,66,58,.15), transparent 28%),
    var(--bianco);
}
.hero-inner {
  max-width: 980px;
  text-align: center;
}
.hero-logo {
  width: min(760px, 92vw);
  margin: 0 auto 34px;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(0,0,0,.10);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  line-height: 1;
  color: var(--rosso);
}
.hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.section {
  padding: 90px 24px;
}
.section:nth-of-type(even) { background: #fffdf0; }
.section-inner {
  max-width: 980px;
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--rosso);
}
.section h3 {
  color: var(--rosso);
  font-size: 1.6rem;
  margin-top: 32px;
}
.section p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 0 0 18px;
}
.section strong { color: var(--rosso); }
.highlight { color: #4c6d1f; font-weight: 800; }

.text-block {
  background: rgba(255,255,255,.62);
  border-left: 8px solid var(--rosso);
  padding: 30px 34px;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.objective {
  background: var(--rosso);
  color: var(--rosso);
}
.objective h2 { color: var(--rosso); }
.objective .text-block {
  background: rgba(254,255,221,.08);
  border-left-color: var(--rosso);
  box-shadow: none;
}
.objective strong,
.objective .highlight { color: var(--rosso); }

.people-grid {
  display: grid;
  gap: 36px;
  margin-top: 42px;
}
.person-row {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: 34px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.58);
  border: 2px solid rgba(249,66,58,.16);
}
.person-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--giallo), var(--rosso));
  color: var(--bianco);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-align: center;
  padding: 20px;
}
.person-text h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}
.person-text p { margin: 0; }

.site-footer {
  padding: 44px 24px;
  background: #222;
  color: var(--bianco);
  border-top: 8px solid var(--giallo);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-inner strong { color: var(--giallo); }

@media (max-width: 780px) {
  .navbar { flex-wrap: wrap; gap: 12px; }
  .brand { width: 100%; justify-content: center; }
  .brand img { width: 215px; height: 118px; }
  .nav-links { width: 100%; justify-content: center; gap: 13px; font-size: .91rem; flex-wrap: wrap; }
  .hero { min-height: auto; padding-top: 48px; }
  .section { padding: 68px 18px; }
  .text-block { padding: 24px 22px; }
  .person-row { grid-template-columns: 1fr; }
}
/* Come puoi contribuire */
.nav-links a.active {
  color: var(--rosso);
  border-color: var(--rosso);
}
.contribution-hero {
  min-height: 52vh;
}
.contribution-section {
  background: #fffdf0;
}
.contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.contribution-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contribution-card {
  position: relative;
  padding: 32px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  border: 2px solid rgba(249,66,58,.16);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}
.contribution-card h3 {
  margin: 8px 0 14px;
  color: var(--rosso);
  font-size: 1.7rem;
}
.contribution-card p {
  font-size: 1.08rem;
}
.contribution-card.compact h3 { margin-top: 0; }
.contribution-number {
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: #6b6b55;
}
.iban-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--giallo);
  color: #222;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .08em;
  word-break: break-word;
}
.cta-button {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--rosso);
  color: var(--bianco);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249,66,58,.24);
}
.text-link {
  color: var(--rosso);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contribution-callout {
  background: var(--rosso) !important;
  color: var(--bianco);
}
.support-callout {
  text-align: center;
  padding: 28px 0;
}
.support-callout h2 {
  color: var(--bianco);
  margin-bottom: 18px;
}
.support-callout p {
  max-width: 720px;
  margin: 0 auto 18px;
}
.cta-button.light {
  background: var(--giallo);
  color: #222;
}

@media (max-width: 780px) {
  .contribution-grid,
  .contribution-grid.three { grid-template-columns: 1fr; }
  .contribution-card { padding: 26px 22px; }
}


/* Instagram nella navbar */
.nav-links .instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-bottom: 3px solid transparent;
  border-radius: 50%;
}
.nav-links .instagram-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.nav-links .instagram-link:hover,
.nav-links .instagram-link:focus {
  color: var(--rosso);
  border-color: transparent;
  background: rgba(249,66,58,.08);
}
.person-text p + p { margin-top: 14px; }


/* Enfasi Home: contenuti Neurodivergenza */
.neuro-key {
  font-weight: 900;
}
.neuro-key.underlined {
  text-decoration: underline;
  text-decoration-thickness: .11em;
  text-underline-offset: .12em;
}
.hero h1 .neuro-key,
.red-emphasis,
.objective .neuro-key,
.person-key {
  color: var(--rosso);
}
.hero-subtitle {
  font-size: clamp(1.18rem, 2.5vw, 1.55rem) !important;
}
.person-key {
  font-size: 1.12em;
  font-weight: 900;
}
.future-goal {
  margin-top: 28px !important;
}

/* Obiettivo: fondo chiaro e accenti rossi coerenti con il logo */
.objective {
  background: #fffdf0;
  color: var(--testo);
}
.objective h2 { color: var(--rosso); }
.objective .text-block {
  background: rgba(255,255,255,.62);
  border-left-color: var(--rosso);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}
.objective strong { color: var(--testo); }
.objective .neuro-key,
.objective .person-key { color: var(--rosso); }


/* Invito finale Home: supporto e occupazione */
.support-contact {
  background: #fffdf0;
}
.support-contact-box {
  text-align: center;
  border-left-color: var(--rosso);
}
.support-contact-box h2 {
  color: var(--rosso);
  margin-top: 0;
}
.support-contact-box .cta-button {
  display: inline-block;
  margin-top: 8px;
}
