/* =========================================================
   Fondazione Santa Rita – Landing Natale 2026 / Agenda 2027
   Design: Figma "Santa Rita 2026 - Landing 1"
   Breakpoint di riferimento: 1440 · 1280 · 1024 · 744/700 · 430/360
   ========================================================= */

:root {
  --yellow: #fbb900;
  --yellow-title: #fcb709;
  --yellow-form: #fbb914;
  --cream: #f4e7d3;
  --beige: #ebd49f;
  --ink: #000;
  --ink-soft: #1d1d1b;
  --grey: #4d4d4c;
  --white: #fff;

  --gutter: 60px;
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-ui: "Roboto", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
figure { margin: 0; }
strong, b { font-weight: 700; }

.wrap {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Decorazioni natalizie (solo grafiche) */
.decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.wrap { z-index: 1; }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  width: 311px;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 14px;
  box-shadow: 0 6px 0 var(--yellow);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta b { font-weight: 900; }
.cta:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--yellow); }
.cta:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 4px; }

/* ---------- Titoli ricorrenti ---------- */
.section-title {
  margin: 0;
  color: var(--yellow-title);
  font-weight: 600;
  font-size: 30px;
  line-height: 33px;
  text-transform: uppercase;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--white), var(--cream) 35%);
}
.decor--hero { top: 0; left: 25.85%; width: 74.13%; }

.hero__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 60px;
  padding-bottom: 20px;
}
.hero__text {
  flex: 0 0 460px;
  max-width: 576px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}
.logo { width: 180px; height: auto; }
.hero__copy { max-width: 340px; display: flex; flex-direction: column; gap: 28px; }
.hero__title {
  margin: 0 0 8px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 36px;
  line-height: 33px;
  text-transform: uppercase;
}
.hero__lead { font-size: 21px; line-height: 28px; }
.hero__media { flex: 1 1 0; min-width: 0; display: flex; justify-content: flex-end; }
.hero__media img { width: 800px; }

/* =========================================================
   PROGETTI
   ========================================================= */
.project { position: relative; overflow: hidden; background: var(--white); }
.decor--p1 { top: 0; right: 0; width: 18.54%; }

.project__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.project--first .project__inner { padding-top: 30px; }
.project--second .project__inner { padding-bottom: 30px; }

.project__media, .project__text { flex: 1 1 0; min-width: 0; }
.project__media img { width: 100%; aspect-ratio: 625 / 407; object-fit: contain; }
.project__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding-block: 15px;
}
.project__text p { max-width: 520px; font-size: 19px; line-height: 28px; }

/* =========================================================
   AGENDA
   ========================================================= */
.agenda { position: relative; overflow: hidden; background: var(--cream); }
.decor--agenda { top: 0; right: 0; width: 22.04%; }

.agenda__inner { display: flex; align-items: stretch; gap: 40px; }
.agenda__media, .agenda__text { flex: 1 1 0; min-width: 0; }
.agenda__media { display: flex; flex-direction: column; padding-top: 45px; }
.agenda__title {
  margin: 0;
  font-weight: 600;
  font-size: 30px;
  line-height: 33px;
}
.agenda__media img { width: 100%; margin-top: auto; padding-top: 20px; }
.agenda__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding-block: 60px;
  font-size: 19px;
  line-height: 24px;
}
.agenda__text .cta { margin-top: 16px; }

/* =========================================================
   ASK
   ========================================================= */
.ask { background: var(--white); }
.ask__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  padding-block: 45px;
}
.ask-card { display: flex; flex-direction: column; align-items: flex-start; }
.ask-card__img {
  width: 100%;
  aspect-ratio: 365 / 322;
  object-fit: cover;
  border-radius: 8px;
}
.price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 87px;
  height: 71px;
  padding: 12px 0 0 5px;
  margin-top: -1px;
  background: url("assets/price-blob.png") 0 -29px / 100% auto no-repeat;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
}
.ask-card__text {
  flex: 1 1 auto;
  padding: 0 6px 25px;
  font-size: 20px;
  line-height: 28px;
}

/* =========================================================
   FORM DONAZIONE
   ========================================================= */
.donate { position: relative; overflow: hidden; background: var(--yellow-form); }
.decor--form-top { top: 0; left: 31.87%; width: 67.98%; }
.decor--form-bottom { bottom: 0; left: 0; width: 100%; }

.donate__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 80px;
}
.donate__text {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 630px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-block: 15px;
}
.donate__intro { display: flex; align-items: center; }
.donate__book { flex: 0 0 237px; width: 237px; }
.donate__intro > div { display: flex; flex-direction: column; gap: 20px; }
.donate__title { margin: 0; font-weight: 700; font-size: 28px; line-height: 32px; }
.donate__text p { font-size: 20px; line-height: 26px; }
.donate__body { max-width: 630px; display: flex; flex-direction: column; gap: 26px; }
.donate__body .donate__note {
  margin-top: 14px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 20px;
}

/* Form di donazione in iframe */
.donate-form-slot {
  flex: 1 0 475px;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  border-radius: 15px;
}
.donate-form-iframe {
  display: block;
  width: 100%;
  height: 593px;
  border: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--white); border-bottom: 1px solid #d9d9d9; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-block: 30px;
  font-family: var(--font-ui);
}
.footer__col { flex: 0 1 300px; min-width: 0; }
.footer__contacts { flex-basis: 350px; }
.footer__logo img { width: 200px; }
.footer__address {
  font-style: normal;
  color: var(--grey);
  font-size: 22px;
  line-height: 28px;
}
.footer__contacts { display: flex; flex-direction: column; }
.footer__contacts a {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 40px;
  color: var(--ink);
  font-weight: 500;
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}
.footer__contacts img { flex: 0 0 auto; }
.footer__legal { display: flex; flex-direction: column; gap: 14px; color: var(--grey); }
.footer__legal p { font-size: 22px; line-height: 28px; }
.footer__legal a { color: var(--grey); font-size: 16px; text-decoration: none; }
.footer__legal a:hover, .footer__contacts a:hover { text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* 1280 */
@media (max-width: 1360px) {
  :root { --gutter: 45px; }
  .footer__inner { justify-content: space-between; }
}

/* 1024 */
@media (max-width: 1180px) {
  :root { --gutter: 30px; }

  .hero__text { flex-basis: 400px; }
  .hero__media img { width: 100%; }

  .project__inner { padding-block: 15px; }
  .project__text { padding-block: 0; }

  .ask__grid { gap: 20px; padding-block: 30px; }
  .ask-card__text { font-size: 18px; line-height: 25px; padding-inline: 0; }

  .donate__inner { flex-direction: column; align-items: stretch; padding-block: 60px; }
  .donate__text { max-width: none; }
  .donate__body { max-width: none; }
  .donate-form-slot { flex: 0 0 auto; width: 100%; }

  .footer__inner { flex-wrap: wrap; gap: 20px 60px; }
  .footer__logo { flex: 1 0 100%; display: flex; justify-content: center; }
  .footer__col:not(.footer__logo) { flex: 0 1 auto; }
  .footer__address,
  .footer__legal p { font-size: 15px; line-height: 21px; }
  .footer__contacts a { font-size: 15px; gap: 10px; min-height: 38px; }
  .footer__contacts img { width: 20px; height: auto; }
  .footer__legal a { font-size: 12px; }
}

/* 744 / 700 — tutto in colonna */
@media (max-width: 860px) {
  .hero__inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero__text { flex-basis: auto; max-width: none; gap: 40px; }
  .hero__copy { max-width: 560px; }
  .hero__media { justify-content: center; }
  .decor--hero { left: 0; width: 100%; }

  .project__inner { flex-direction: column; align-items: stretch; gap: 40px; padding-block: 15px; }
  .project--second .project__media { order: -1; }
  .project__text p { max-width: none; }
  .decor--p1 { width: 35%; }

  .agenda__inner { flex-direction: column; gap: 30px; }
  .agenda__media img { padding-top: 30px; }
  .agenda__text { padding-block: 0 50px; }
  .decor--agenda { width: 40%; }

  .ask__grid { grid-template-columns: 1fr; gap: 60px; }
  .ask-card__text { font-size: 20px; line-height: 28px; }

  .donate__intro { flex-direction: column; align-items: flex-start; gap: 30px; }
  .donate__book { flex-basis: auto; width: min(300px, 70%); align-self: center; }

  .footer__logo { flex: 0 1 auto; }
  .footer__inner { justify-content: center; }
}

/* 430 / 360 — smartphone */
@media (max-width: 480px) {
  :root { --gutter: 30px; }

  .hero__title { font-size: 34px; line-height: 34px; }
  .hero__lead { font-size: 19px; line-height: 26px; }
  .logo { width: 160px; }

  .section-title,
  .agenda__title { font-size: 26px; line-height: 30px; }
  .project__text p,
  .agenda__text { font-size: 17px; line-height: 24px; }

  .ask-card__text { font-size: 18px; line-height: 26px; }

  .donate__title { font-size: 24px; line-height: 28px; }
  .donate__text p { font-size: 17px; line-height: 24px; }


  .cta { font-size: 17px; width: 100%; }

  .footer__inner { flex-direction: column; text-align: center; gap: 30px; }
  .footer__logo { justify-content: center; }
  .footer__address,
  .footer__legal p { font-size: 18px; line-height: 26px; }
  .footer__contacts a { font-size: 18px; }
  .footer__legal { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}
