/* Landing laboratori genitoriali — Centro Evolutivo Olly Med.
   Palette e font presi da ollymed.it/centro-evolutivo (tema Uncode):
   navy #17597d (titoli), mint #6cdba5 (pulsanti/accenti), arancio #f39235, teal #17879c,
   corallo #dd5944, grigio chiaro #f8f8f8. Font: Open Sans. Tutto vive dentro .olly-lab.
   Le foto sono riquadri grigi (.ol-photo): per metterle basta sostituire il <div class="ol-photo …">
   con <img class="ol-photo …" src alt> — stesse classi, object-fit: cover fa il resto. */

.olly-lab {
  --navy: #17597d;
  --navy-deep: #0f4a6a;   /* testo sui pulsanti mint: contrasto ≥ 4.5 */
  --teal: #17879c;
  --mint: #6cdba5;
  --mint-soft: #e8f8f0;
  --orange: #f39235;
  --orange-soft: #fdf0e3;
  --coral: #dd5944;
  --coral-soft: #fbe9e6;
  --mist: #f8f8f8;
  --text: #3d5563;
  --white: #fff;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(64px, 9vw, 120px);
  --radius: clamp(18px, 2.4vw, 28px);

  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* reset a specificità zero (:where), così non batte le classi ol-* */
:where(.olly-lab) *, :where(.olly-lab) *::before, :where(.olly-lab) *::after { box-sizing: border-box; }
:where(.olly-lab) :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
:where(.olly-lab) :where(ul, ol) { list-style: none; }
:where(.olly-lab) img { max-width: 100%; height: auto; display: block; }
body { margin: 0; background: #fff; }
html { scroll-behavior: smooth; }

.ol-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.ol-center { text-align: center; }

/* ---------- tipografia condivisa ---------- */
.ol-h2 {
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--navy);
  max-width: 22ch;
}
.ol-lead { font-size: clamp(17px, 1.4vw, 19px); max-width: 58ch; }
.ol-h2 + .ol-lead { margin-top: 20px; }
.ol-lead + .ol-btn { margin-top: 32px; }
.ol-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}

/* ---------- foto (riquadri grigi finché non arrivano le immagini) ---------- */
.ol-photo {
  display: grid; place-items: center;
  width: 100%; object-fit: cover;
  background: #d3d8db; border-radius: var(--radius);
}
.ol-photo__cam { width: 44px; height: 44px; fill: none; stroke: #a7b0b5; stroke-width: 1.5; stroke-linejoin: round; }

/* ---------- pulsante ---------- */
.ol-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 32px;
  border: 0; border-radius: 999px;
  background: var(--mint); color: var(--navy-deep);
  font: 700 17px/1.2 'Open Sans', sans-serif; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.ol-btn:hover { background: #5ccf97; box-shadow: 0 0 0 6px rgba(108, 219, 165, .25); }
.ol-btn:focus-visible, .olly-lab a:focus-visible, .olly-lab input:focus-visible, .olly-lab select:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px;
}

/* ---------- testata ---------- */
.ol-top { padding: 16px 0; background: var(--white); }
.ol-top .ol-logo { width: 150px; }

/* ---------- 1. hero: foto a tutta pagina ---------- */
.ol-hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 70px);
  display: flex; align-items: center;
  padding: clamp(64px, 9vw, 120px) 0;
  color: var(--white);
}
.ol-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  height: 100%; border-radius: 0; background: #8d979c;
}
.ol-hero__bg .ol-photo__cam { stroke: #b4bcc0; width: 64px; height: 64px; transform: translateX(22vw); }
/* velo per la leggibilità del testo bianco, più denso a sinistra dove sta il testo */
.ol-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 42, 60, .78) 0%, rgba(10, 42, 60, .5) 45%, rgba(10, 42, 60, .08) 80%);
}
.ol-hero__in { position: relative; }
.ol-date {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 15px; font-weight: 700;
}
.ol-date svg { width: 20px; height: 20px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ol-hero__title {
  margin: 24px 0 20px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 17ch;
  text-wrap: balance;
}
.ol-hero__sub { font-size: clamp(17px, 1.5vw, 20px); max-width: 50ch; margin-bottom: 32px; color: rgba(255, 255, 255, .92); }
.ol-limited { color: var(--white); font-weight: 700; white-space: nowrap; }
.ol-limited::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 4px; border-radius: 50%; background: var(--mint); }

/* un'unica sequenza d'ingresso al caricamento */
@media (prefers-reduced-motion: no-preference) {
  .ol-hero__in > * { animation: ol-rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .ol-hero__in > :nth-child(2) { animation-delay: .08s; }
  .ol-hero__in > :nth-child(3) { animation-delay: .16s; }
  .ol-hero__in > :nth-child(4) { animation-delay: .24s; }
}
@keyframes ol-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 2. la sfida: foto + testo ---------- */
.ol-split { padding: var(--sec) 0; }
.ol-split__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ol-split__photo { aspect-ratio: 4 / 5; }

/* ---------- 3. il laboratorio: fascia navy ---------- */
.ol-band { background: var(--navy); color: #e3eef4; padding: var(--sec) 0; }
.ol-band__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ol-band .ol-h2 { color: var(--white); font-weight: 300; }
.ol-band__photo { aspect-ratio: 4 / 3; background: #3d7591; }
.ol-band__photo .ol-photo__cam { stroke: #6d9ab0; }

/* ---------- 4. strillo + icone ---------- */
.ol-tools { background: var(--mist); padding: var(--sec) 0; }
.ol-strillo {
  margin: 0 auto clamp(40px, 5vw, 64px); max-width: 32ch; text-align: center;
  font-size: clamp(23px, 2.7vw, 34px); line-height: 1.3; font-weight: 300; color: var(--navy);
  text-wrap: balance;
}
.ol-points { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-bottom: 48px; }
.ol-point {
  grid-column: span 2;
  background: var(--white); border-radius: 22px; padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.ol-point:nth-child(4) { grid-column: 2 / span 2; }
.ol-point p { font-size: 16px; line-height: 1.55; color: var(--navy); font-weight: 500; }
.ol-point__ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ol-point__ico svg { width: 34px; height: 34px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ol-point--mint .ol-point__ico { background: var(--mint-soft); } .ol-point--mint svg { stroke: #2fa774; }
.ol-point--orange .ol-point__ico { background: var(--orange-soft); } .ol-point--orange svg { stroke: var(--orange); }
.ol-point--coral .ol-point__ico { background: var(--coral-soft); } .ol-point--coral svg { stroke: var(--coral); }
.ol-point--teal .ol-point__ico { background: #e3f2f5; } .ol-point--teal svg { stroke: var(--teal); }
.ol-point--navy .ol-point__ico { background: #e4edf3; } .ol-point--navy svg { stroke: var(--navy); }

/* ---------- 5. costi: specchietto a listino ---------- */
.ol-costs { padding: var(--sec) 0 calc(var(--sec) * .5); }
.ol-costs__in { max-width: calc(820px + 2 * var(--pad)); }
.ol-costs .ol-kicker { text-align: center; }
.ol-prices { border-top: 2px solid var(--navy); }
.ol-price { display: flex; align-items: baseline; gap: 16px; padding: 20px 4px; border-bottom: 1px solid #d8e3ea; }
.ol-price dt { color: var(--navy); font-size: clamp(16px, 1.6vw, 19px); }
.ol-price::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted #b9cbd6; transform: translateY(-6px); min-width: 24px; }
.ol-price dd { order: 2; color: var(--navy); font-weight: 700; font-size: clamp(19px, 2vw, 26px); white-space: nowrap; letter-spacing: -0.01em; }

/* ---------- 6. programma: due tappe in sequenza ---------- */
.ol-program { padding: calc(var(--sec) * .9) 0 var(--sec); }
.ol-steps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin: clamp(40px, 5vw, 64px) 0 48px; }
.ol-step { position: relative; }
.ol-step__photo { aspect-ratio: 16 / 10; }
.ol-step__n {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: 24px; font-weight: 700;
  margin: -30px 0 18px 24px; position: relative;
  box-shadow: 0 0 0 6px var(--white);
}
.ol-step:nth-child(2) .ol-step__n { background: var(--orange); color: var(--navy-deep); }
.ol-step__when { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.ol-step__title { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.22; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 14px; max-width: 24ch; }
.ol-step p:last-child { max-width: 48ch; }

/* ---------- 7. professioniste: foto + testo ---------- */
.ol-team { position: relative; overflow: hidden; background: var(--mint-soft); padding: var(--sec) 0; }
.ol-team__icons {
  position: absolute; inset: 0 0 0 50%; opacity: .35;
  background: url(img/sfondo-1.webp) no-repeat right center / auto 112%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%);
}
.ol-team__in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ol-team__photo { aspect-ratio: 5 / 4; background: #c9d3d0; }
.ol-team .ol-lead { color: var(--navy); max-width: 44ch; }

/* ---------- 8. modulo ---------- */
.ol-form { background: var(--navy); padding: var(--sec) 0; }
.ol-form__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.ol-form .ol-h2 { color: var(--white); font-weight: 300; }
.ol-seats { display: inline-block; margin-top: 20px; padding: 8px 18px; border-radius: 999px; background: var(--coral); color: var(--white); font-weight: 700; font-size: 16px; }
.ol-fields { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); display: grid; gap: 16px; }
.ol-field { display: grid; gap: 6px; }
.ol-field > span { font-size: 15px; font-weight: 600; color: var(--navy); }
.ol-field input, .ol-field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid #cfdde6; border-radius: 14px; background: var(--mist);
  font: 400 16px/1.3 'Open Sans', sans-serif; color: var(--navy); /* 16px: niente zoom automatico su iOS */
  appearance: none; -webkit-appearance: none;
}
.ol-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317597d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px;
  text-overflow: ellipsis;
}
.ol-field input:focus, .ol-field select:focus { border-color: var(--mint); background-color: var(--white); }
.ol-field.is-bad input, .ol-field.is-bad select { border-color: var(--coral); }
.ol-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.ol-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.ol-check a { color: var(--teal); }
.ol-check.is-bad span { color: var(--coral); }
.ol-btn--full { width: 100%; margin-top: 4px; }
.ol-msg { font-size: 15px; font-weight: 600; }
.ol-msg:empty { display: none; }
.ol-msg.is-bad { color: var(--coral); }
.ol-msg.is-ok { color: #1f8a5c; }

/* ---------- piede ---------- */
.ol-foot { padding: 32px 0; }
.ol-foot .ol-logo { width: 140px; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .ol-points { grid-template-columns: 1fr 1fr; }
  .ol-point, .ol-point:nth-child(4) { grid-column: auto; }
  .ol-point:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .ol-split__in, .ol-band__in, .ol-team__in, .ol-form__in { grid-template-columns: 1fr; }
  .ol-split__photo, .ol-team__photo { aspect-ratio: 4 / 3; }
  .ol-team__icons { inset: 40% -30% 0 10%; opacity: .35; }
}

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .olly-lab { font-size: 16px; line-height: 1.6; --sec: 60px; --pad: 20px; }
  .ol-top { padding: 12px 0; }
  .ol-top .ol-logo { width: 124px; }

  /* hero: testo in basso, foto che respira sopra; velo dal basso */
  .ol-hero { min-height: calc(100svh - 58px); align-items: flex-end; padding: 96px 0 36px; }
  .ol-hero::before { background: linear-gradient(0deg, rgba(10, 42, 60, .88) 0%, rgba(10, 42, 60, .6) 50%, rgba(10, 42, 60, .1) 85%); }
  .ol-hero__bg .ol-photo__cam { transform: translateY(-22vh); }
  .ol-date { font-size: 13px; padding: 7px 12px 7px 10px; gap: 8px; }
  .ol-date svg { width: 17px; height: 17px; }
  .ol-hero__title { font-size: 30px; margin: 16px 0 14px; }
  .ol-hero__sub { font-size: 16px; margin-bottom: 24px; }

  .ol-btn { width: 100%; min-height: 54px; padding: 14px 20px; font-size: 16px; }
  .ol-lead + .ol-btn { margin-top: 26px; }
  .ol-h2 { font-size: 26px; }
  .ol-lead { font-size: 16px; }
  .ol-h2 + .ol-lead { margin-top: 14px; }

  /* foto a filo schermo nelle sezioni a due colonne: più impatto, meno margini sprecati */
  .ol-split__photo, .ol-band__photo, .ol-team__photo { width: calc(100% + 2 * var(--pad)); margin-left: calc(-1 * var(--pad)); border-radius: 0; }
  .ol-split__in, .ol-band__in, .ol-team__in, .ol-form__in { gap: 28px; }
  .ol-split { padding-top: 0; }
  .ol-band__in { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .ol-band { padding-top: 0; }
  .ol-team { padding-top: 0; }

  .ol-strillo { font-size: 21px; text-align: left; margin-bottom: 28px; }
  .ol-points { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; }
  .ol-point, .ol-point:last-child { grid-column: auto; flex-direction: row; align-items: center; padding: 16px 18px; gap: 14px; border-radius: 16px; }
  .ol-point__ico { width: 48px; height: 48px; }
  .ol-point__ico svg { width: 28px; height: 28px; }
  .ol-point p { font-size: 15px; }

  .ol-price { flex-wrap: wrap; gap: 2px 12px; padding: 16px 2px; }
  .ol-price::after { display: none; }
  .ol-price dt { flex: 1 1 100%; font-size: 15px; }
  .ol-price dd { font-size: 20px; }

  .ol-steps { grid-template-columns: 1fr; gap: 36px; margin: 32px 0 36px; }
  .ol-step__n { width: 52px; height: 52px; font-size: 21px; margin: -26px 0 14px 18px; }
  .ol-step__title { font-size: 21px; }

  .ol-seats { font-size: 14px; margin-top: 14px; }
  .ol-fields { padding: 22px 18px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ol-btn { transition: none; }
}
