/* =========================================================================
   Chiesa di Pandino — Pagina "Scopri l'Oratorio"
   Stili specifici di pagina. Riusa i token :root definiti in style.css.
   La palette dell'Oratorio è più calda/vivace del design system condiviso:
   arancio #E8743B, teal #2BA39A, giallo #F2A93B. Definiamo qui questi
   token locali senza toccare style.css.
   ========================================================================= */
.ora {
  --ora-orange: #E8743B;
  --ora-orange-dark: #c25527;
  --ora-teal: #2BA39A;
  --ora-teal-dark: #1f4f4a;
  --ora-yellow: #F2A93B;
  --ora-yellow-dark: #7a5212;
  --ora-blue: #2f5d86;
  --ora-blue-dark: #1f3a52;
  --ora-ink: #3a2b20;
  --ora-ink-soft: #7a5f48;
  --ora-bg: #FFF7EF;

  background: var(--ora-bg);
  color: var(--ora-ink);
}

/* Animazioni del design (disattivate da prefers-reduced-motion in style.css) */
@keyframes ora-floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes ora-floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes ora-wiggle { 0%,100% { transform: rotate(6deg); } 50% { transform: rotate(11deg) translateY(-3px); } }
@keyframes ora-floatCard1 { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-12px); } }
@keyframes ora-floatCard2 { 0%,100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-14px); } }
@keyframes ora-drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,-12px); } }

/* Eyebrow pill comune */
.ora-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* =========================================================================
   HERO
   ========================================================================= */
.ora-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #FCEAD9 0%, #FFF7EF 70%);
}
.ora-hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ora-hero__blob--a {
  top: -40px; right: -30px;
  width: 240px; height: 240px;
  background: rgba(242,169,59,.25);
  animation: ora-floatA 7s ease-in-out infinite;
}
.ora-hero__blob--b {
  bottom: -60px; left: 30%;
  width: 160px; height: 160px;
  background: rgba(43,163,154,.18);
  animation: ora-floatB 9s ease-in-out infinite;
}
.ora-hero__inner {
  position: relative;
  padding-top: 64px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.ora-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ora-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  transform: rotate(-2deg);
}
.ora-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ora-ink);
}
.ora-hero h1 .accent { color: var(--ora-orange); }
.ora-hero__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ora-ink-soft);
  margin: 0 0 28px;
  max-width: 470px;
}
.ora-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Pulsanti specifici Oratorio */
.ora-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ora-btn:hover { transform: translateY(-2px); }
.ora-btn--orange { background: var(--ora-orange); color: #fff; }
.ora-btn--orange:hover { box-shadow: 0 12px 26px rgba(232,116,59,.32); }
.ora-btn--ghost {
  background: #fff;
  color: var(--ora-ink);
  border-color: rgba(58,43,32,.12);
}
.ora-btn--white { background: #fff; color: var(--ora-orange-dark); }
.ora-btn--glass {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* Stack di foto fluttuanti nell'hero */
.ora-hero__media {
  position: relative;
  height: 380px;
}
.ora-photo-card {
  position: absolute;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 11px;
  box-shadow: 0 14px 36px rgba(58,43,32,.14);
}
.ora-photo-card--1 {
  top: 10px; left: 0;
  width: 64%; height: 62%;
  color: #9a7a55;
  background: repeating-linear-gradient(45deg, rgba(58,43,32,.05) 0 12px, rgba(58,43,32,.09) 12px 24px), #f0d9bd;
  animation: ora-floatCard1 6s ease-in-out infinite;
}
.ora-photo-card--2 {
  bottom: 0; right: 6px;
  width: 58%; height: 60%;
  color: #3a857d;
  background: repeating-linear-gradient(45deg, rgba(43,163,154,.08) 0 12px, rgba(43,163,154,.14) 12px 24px), #d6ece9;
  animation: ora-floatCard2 7s ease-in-out infinite .5s;
}
.ora-hero__sticker {
  position: absolute;
  top: -6px; right: 40px;
  background: var(--ora-yellow);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 14px;
  transform: rotate(8deg);
  box-shadow: 0 8px 20px rgba(242,169,59,.4);
  animation: ora-wiggle 2.6s ease-in-out infinite;
}

/* =========================================================================
   "Non solo gioco" — crescita
   ========================================================================= */
.ora-growth {
  background: #DCF0EE;
  border-radius: 24px;
  padding: 46px;
  border: 2px solid rgba(43,163,154,.18);
}
.ora-growth__intro { max-width: 680px; }
.ora-growth .ora-pill-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--ora-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ora-growth h2 {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--ora-teal-dark);
  letter-spacing: -0.02em;
}
.ora-growth__lead {
  font-size: 17px;
  line-height: 1.65;
  color: #3a6f69;
  margin: 0;
}
.ora-growth__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.ora-mini {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
}
.ora-mini__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.ora-mini h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}
.ora-mini p {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   "Cosa facciamo" — attività
   ========================================================================= */
.ora-center {
  text-align: center;
  margin-bottom: 34px;
}
.ora-center .ora-eyebrow { color: var(--ora-orange); margin-bottom: 10px; }
.ora-center h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 38px);
  font-weight: 800;
  margin: 0;
  color: var(--ora-ink);
  letter-spacing: -0.02em;
}
.ora-acts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ora-act {
  border-radius: 22px;
  padding: 30px;
  border: 2px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ora-act:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(58,43,32,.13);
}
.ora-act__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ora-act__icon svg { width: 28px; height: 28px; }
.ora-act h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}
.ora-act p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
/* Varianti colore card attività */
.ora-act--orange { background: #FCEAD9; border-color: rgba(232,116,59,.18); }
.ora-act--orange h3 { color: var(--ora-ink); }
.ora-act--orange p { color: var(--ora-ink-soft); }
.ora-act--orange .ora-act__icon { background: var(--ora-orange); }

.ora-act--teal { background: #DCF0EE; border-color: rgba(43,163,154,.2); }
.ora-act--teal h3 { color: var(--ora-teal-dark); }
.ora-act--teal p { color: #3a6f69; }
.ora-act--teal .ora-act__icon { background: var(--ora-teal); }

.ora-act--yellow { background: #FCEFD6; border-color: rgba(242,169,59,.25); }
.ora-act--yellow h3 { color: var(--ora-yellow-dark); }
.ora-act--yellow p { color: #9a7330; }
.ora-act--yellow .ora-act__icon { background: var(--ora-yellow); }

.ora-act--blue { background: #eef3f8; border-color: rgba(47,93,134,.18); }
.ora-act--blue h3 { color: var(--ora-blue-dark); }
.ora-act--blue p { color: #456282; }
.ora-act--blue .ora-act__icon { background: var(--ora-blue); }

/* rotazioni icone come nel design (esposte anche come custom property
   per combinarle con fluttuazione e tilt) */
.ora-act__icon--rot-n4 { --icon-rot: -4deg; transform: rotate(-4deg); }
.ora-act__icon--rot-p4 { --icon-rot: 4deg; transform: rotate(4deg); }
.ora-act__icon--rot-n3 { --icon-rot: -3deg; transform: rotate(-3deg); }
.ora-act__icon--rot-p3 { --icon-rot: 3deg; transform: rotate(3deg); }

/* Le icone delle sottocard fluttuano dolcemente (sempre) e si "tiltano"
   al passaggio del mouse sulla card. Disattivato automaticamente da
   prefers-reduced-motion (regola globale in style.css). */
.ora-act__icon,
.ora-mini__icon {
  animation: ora-icon-float 3.6s ease-in-out infinite;
  transition: transform 0.25s ease;
  will-change: transform;
}
/* Sfasa le card così le icone non "ballano" tutte a tempo. */
.ora-act:nth-child(2n) .ora-act__icon,
.ora-mini:nth-child(2n) .ora-mini__icon { animation-delay: -1.8s; }
.ora-act:nth-child(3n) .ora-act__icon { animation-delay: -0.9s; }

@keyframes ora-icon-float {
  0%, 100% { transform: translateY(0) rotate(var(--icon-rot, 0deg)); }
  50%      { transform: translateY(-6px) rotate(var(--icon-rot, 0deg)); }
}

.ora-act:hover .ora-act__icon,
.ora-mini:hover .ora-mini__icon {
  animation: none;
  transform: translateY(-4px) rotate(calc(var(--icon-rot, 0deg) + 10deg)) scale(1.08);
}

/* =========================================================================
   Galleria foto
   ========================================================================= */
.ora-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.ora-gallery-head .ora-eyebrow { color: var(--ora-teal); margin-bottom: 8px; }
.ora-gallery-head h2 {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  margin: 0;
  color: var(--ora-ink);
}
.ora-gallery-head a {
  text-decoration: none;
  font-weight: 800;
  color: var(--ora-orange);
  font-size: 15px;
  white-space: nowrap;
}
.ora-gallery-head a:hover { text-decoration: underline; }
.ora-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 170px 170px;
  gap: 12px;
}
.ora-gframe {
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 11px;
}
.ora-gframe--tall { grid-row: span 2; }
.ora-gframe--orange {
  color: #9a7a55;
  background: repeating-linear-gradient(45deg, rgba(232,116,59,.08) 0 12px, rgba(232,116,59,.14) 12px 24px), #f3d8bd;
}
.ora-gframe--teal {
  color: #3a857d;
  background: repeating-linear-gradient(45deg, rgba(43,163,154,.08) 0 10px, rgba(43,163,154,.14) 10px 20px), #d6ece9;
}
.ora-gframe--yellow {
  color: #9a7330;
  background: repeating-linear-gradient(45deg, rgba(242,169,59,.1) 0 10px, rgba(242,169,59,.16) 10px 20px), #f7e6c5;
}
.ora-gframe--orange-sm {
  color: #9a7a55;
  background: repeating-linear-gradient(45deg, rgba(232,116,59,.08) 0 10px, rgba(232,116,59,.14) 10px 20px), #f3d8bd;
}
.ora-gframe--more {
  background: var(--ora-orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
}
.ora-gframe--more:hover { background: var(--ora-orange-dark); }

/* =========================================================================
   La nostra storia
   ========================================================================= */
.ora-story {
  background: #fff;
  border-radius: 24px;
  padding: 44px 46px;
  border: 2px solid rgba(58,43,32,.07);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.ora-story .ora-eyebrow { color: var(--ora-orange); }
.ora-story h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ora-ink);
  letter-spacing: -0.02em;
}
.ora-story p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ora-ink-soft);
  margin: 0 0 16px;
}
.ora-story p:last-of-type { margin-bottom: 0; }
.ora-stats {
  display: flex;
  gap: 26px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.ora-stat__num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
}
.ora-stat__num--orange { color: var(--ora-orange); }
.ora-stat__num--teal { color: var(--ora-teal); }
.ora-stat__num--yellow { color: var(--ora-yellow); }
.ora-stat__label {
  font-size: 13px;
  color: #9a7a55;
  font-weight: 600;
}
.ora-story__media { position: relative; height: 300px; }
.ora-story__photo {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  transform: rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(58,43,32,.05) 0 12px, rgba(58,43,32,.09) 12px 24px), #f0d9bd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 11px;
  color: #9a7a55;
}

/* =========================================================================
   Calendario eventi
   ========================================================================= */
.ora-cal-eyebrow { color: var(--ora-orange); }
.ora-cal h2 {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--ora-ink);
}
.ora-events {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ora-event {
  background: #fff;
  border-radius: 18px;
  border: 2px solid rgba(58,43,32,.07);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ora-event:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 28px rgba(58,43,32,.1);
}
.ora-date {
  width: 72px;
  flex-shrink: 0;
  color: #fff;
  border-radius: 16px;
  padding: 10px 0;
  text-align: center;
}
.ora-date--orange { background: var(--ora-orange); }
.ora-date--teal { background: var(--ora-teal); }
.ora-date--yellow { background: var(--ora-yellow); }
.ora-date__day {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.ora-date__mon {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.ora-event__body { flex: 1; }
.ora-event__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--ora-ink);
}
.ora-event__desc {
  font-size: 14px;
  color: var(--ora-ink-soft);
  margin-top: 3px;
}
.ora-evtag {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.ora-evtag--grest { background: #FCEAD9; color: var(--ora-orange-dark); }
.ora-evtag--sport { background: #DCF0EE; color: #1f7a72; }
.ora-evtag--gita { background: #FCEFD6; color: #a9741b; }
.ora-evtag--festa { background: #FCEAD9; color: var(--ora-orange-dark); }

/* =========================================================================
   CTA finale
   ========================================================================= */
.ora-cta {
  position: relative;
  overflow: hidden;
  background: var(--ora-orange);
  border-radius: 24px;
  padding: 50px 46px;
  color: #fff;
  text-align: center;
}
.ora-cta__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ora-cta__blob--a {
  top: -30px; left: -20px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.12);
  animation: ora-drift 8s ease-in-out infinite;
}
.ora-cta__blob--b {
  bottom: -40px; right: -10px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.1);
  animation: ora-floatA 10s ease-in-out infinite;
}
.ora-cta__inner { position: relative; }
.ora-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: #fff;
}
.ora-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  margin: 0 auto 26px;
  max-width: 540px;
}
.ora-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1023px) {
  .ora-growth__grid { grid-template-columns: 1fr 1fr; }
  .ora-acts { grid-template-columns: 1fr 1fr; }
  .ora-growth { padding: 36px; }
  .ora-story { padding: 36px; gap: 32px; }
}

@media (max-width: 760px) {
  .ora-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .ora-hero__media { height: 320px; }
  .ora-story { grid-template-columns: 1fr; }
  .ora-story__media { height: 240px; order: -1; }
  .ora-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px 150px;
  }
  .ora-gframe--tall { grid-row: span 1; }
}

@media (max-width: 620px) {
  .ora-growth__grid { grid-template-columns: 1fr; }
  .ora-acts { grid-template-columns: 1fr; }
  .ora-growth, .ora-story, .ora-cta { padding: 26px 22px; }
  .ora-hero__inner { padding-top: 44px; padding-bottom: 44px; }
  .ora-hero__media { height: 280px; }
  .ora-stats { gap: 20px; }
  .ora-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 130px);
  }
  .ora-event {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 20px;
  }
  .ora-event__body { flex: 1 1 60%; }
  .ora-evtag { order: 3; }
  .ora-gallery-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
