/* BlablaYoga · «il viaggio di una vita»
   Il motto del logo (A journey of a lifetime) diventa la struttura: una strada colorata con le tappe della vita,
   dalla gravidanza alla famiglia, e per ogni tappa i corsi veri. I «bla bla» del nome sono le nuvolette di
   dialogo che fanno da etichetta. Colori del logo: turchese, verde, magenta, grafite; fondo crema caldo. */
:root {
  --ink: #2f2d33;
  --ink-2: #57525c;
  --cream: #fffaf2;
  --cream-2: #fdf0e1;
  --teal: #2aa8ad;
  --teal-d: #157f84;
  --green: #79ad2c;
  --green-d: #4f7a12;
  --pink: #d8237f;
  --pink-d: #a8145f;
  --line: rgba(47, 45, 51, .12);
  --round: "Baloo 2", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g: clamp(16px, 5vw, 72px);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--text); }
h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 5vw, 58px); }
p { margin: 0; }
.demo { margin: 0; padding: 8px var(--g); background: var(--ink); color: #fffaf2; font-size: 13px; text-align: center; }

/* nuvolette «bla bla» */
.bubble { position: relative; display: inline-block; margin-bottom: 18px; padding: 6px 14px 7px; border-radius: 18px; font: 700 14px/1.2 var(--round);
  letter-spacing: .02em; color: #fff; }
.bubble::after { content: ""; position: absolute; left: 18px; bottom: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: inherit; }
.bubble-teal { background: var(--teal-d); border-top-color: var(--teal-d); }
.bubble-green { background: var(--green-d); border-top-color: var(--green-d); }
.bubble-pink { background: var(--pink-d); border-top-color: var(--pink-d); }

/* barra */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 8px var(--g);
  background: rgba(255, 250, 242, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: block; min-height: 44px; }
.brand img { height: 52px; width: auto; }
.links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 700; padding: 12px 0; }
.links a:hover { color: var(--pink-d); }
.links .links-cta { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; }
.links .links-cta:hover { background: var(--pink-d); color: #fff; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 17px/1 var(--round); text-decoration: none; transition: transform .25s, background .25s; }
.pill:hover { transform: translateY(-2px) rotate(-1deg); }
.pill-main { background: var(--pink-d); color: #fff; }
.pill-main:hover { background: var(--pink); }
.pill-wa { background: #1f7a4a; color: #fff; }
.pill-wa:hover { background: #17633b; }

/* apertura */
.apri { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 88px) var(--g); }
.apri h1 { font-size: clamp(44px, 6.4vw, 88px); }
.apri-sub { margin-top: 20px; max-width: 32em; font-size: 19px; color: var(--ink-2); }
.apri-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.apri-photo { position: relative; margin: 0; justify-self: center; width: min(100%, 460px); }
.apri-photo img { width: 100%; height: auto; border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; box-shadow: 18px 18px 0 var(--teal), -14px -14px 0 var(--green); }
.apri-bla { position: absolute; right: -6px; top: 8%; margin: 0; transform: rotate(6deg); font-size: 18px; }

/* il viaggio */
.viaggio { padding: clamp(56px, 8vw, 112px) var(--g); background: var(--cream-2); }
.sec-head { max-width: 44em; margin-bottom: 36px; }
.sec-head p:not(.bubble) { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.road { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; padding: 26px 0 8px; }
.road-line { position: absolute; left: 0; right: 0; top: 8px; width: 100%; height: 90px; pointer-events: none; }
.road-line path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .35; }
.stop { position: relative; display: grid; justify-items: center; gap: 9px; padding: 8px 2px; border: 0; background: none; cursor: pointer; color: var(--ink); text-align: center; min-height: 44px; }
.stop:nth-child(even of .stop) { margin-top: 26px; }
.stop-dot { width: 26px; height: 26px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); transition: transform .3s; }
.stop-teal .stop-dot { background: var(--teal); } .stop-green .stop-dot { background: var(--green); } .stop-pink .stop-dot, .stop-magenta .stop-dot { background: var(--pink); }
.stop-short { font: 800 20px/1 var(--round); }
.stop-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.stop:hover .stop-dot { transform: scale(1.15); }
.stop[aria-selected="true"] .stop-dot { transform: scale(1.35); box-shadow: 0 0 0 3px var(--ink); }
.stop[aria-selected="true"] .stop-label { color: var(--ink); }
.tappa { margin-top: 28px; }
.tappa-h { font: 800 24px/1.2 var(--round); margin-bottom: 14px; }
.tappa-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.corso { padding: 22px 22px 20px; border-radius: 26px; background: #fff; border: 2px solid var(--line); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.corso h3 { font-size: 26px; }
.corso-who { margin-top: 4px; font-weight: 700; color: var(--teal-d); }
.corso-when { display: inline-block; margin: 12px 0; padding: 5px 12px; border-radius: 12px; background: var(--cream-2); font-weight: 700; }
.corso p:last-of-type { color: var(--ink-2); font-size: 16px; }
.corso a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 800; color: var(--pink-d); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* settimana */
.settimana { padding: clamp(56px, 8vw, 112px) var(--g); }
.giorni { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.giorno { padding: 18px 14px; border-radius: 22px; background: #fff; border: 2px solid var(--line); }
.giorno.oggi { border-color: var(--teal-d); }
.giorno.oggi h3::after { content: " · oggi"; color: var(--teal-d); font-size: 16px; }
.giorno h3 { font-size: 22px; margin-bottom: 10px; }
.giorno ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.giorno li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 14px; background: var(--cream); font-size: 14px; line-height: 1.3; }
.giorno li.hl { background: #e6f5f5; outline: 2px solid var(--teal-d); }
.giorno time { font: 800 16px/1.1 var(--round); }
.giorno small { color: var(--ink-2); font-size: 12px; }

/* manifesto */
.manifesto { padding: clamp(64px, 9vw, 128px) var(--g); background: var(--ink); color: #fffaf2; text-align: center; }
.man-big { font: 800 clamp(38px, 6.4vw, 92px)/1 var(--round); }
.man-big span { display: block; }
.man-big em { display: block; font-style: normal; color: #f6a8cf; }
.man-text { max-width: 36em; margin: 28px auto 0; font-size: 19px; color: #e9e4dc; }

/* Nicoletta */
.nicoletta { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: center; padding: clamp(56px, 8vw, 112px) var(--g); }
.nic-photo { margin: 0; }
.nic-photo img { width: 100%; height: auto; border-radius: 30px; box-shadow: -16px 16px 0 var(--pink); }
.nic-copy h2 { margin-bottom: 20px; }
.nic-copy p + p { margin-top: 14px; }
.nic-copy p:not(.bubble):not(.nic-quote) { color: var(--ink-2); }
.nic-quote { margin-top: 20px !important; font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--round); color: var(--pink-d); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.strip figure:hover img { transform: scale(1.06); }

/* scrivimi */
.scrivimi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); padding: clamp(56px, 8vw, 112px) var(--g); background: var(--cream-2); }
.scr-copy h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.scr-copy address { margin-top: 20px; font-style: normal; line-height: 1.9; }
.scr-copy a { color: var(--ink); font-weight: 700; }
.chat { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 28px; background: #fff; border: 2px solid var(--line); }
.chat-in { justify-self: start; max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--cream-2); font-weight: 700; }
.chat-f { justify-self: end; width: min(100%, 320px); }
.chat-f select, .chat-f input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 18px 18px 4px 18px; border: 2px solid var(--teal-d); background: #e6f5f5; font-weight: 700; }
.chat-out { min-height: 1.4em; justify-self: end; color: var(--pink-d); font-weight: 700; }
.chat .pill { justify-self: end; }
.chat-hint { justify-self: end; font-size: 13px; color: var(--ink-2); }

.piede { padding: 48px var(--g) 100px; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--ink-2); font-size: 15px; }
.piede img { width: 170px; height: auto; }
.piede a { color: var(--ink); }
.piede-note { font: 700 17px/1.4 var(--round); color: var(--teal-d); }

.dock { display: none; }
[data-reveal] { transition: opacity .8s ease, transform .8s ease; }
.js [data-reveal]:not(.is-in) { transform: translateY(18px); }

@media (max-width: 1100px) { .giorni { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .road { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .road-line { display: none; }
  .stop:nth-child(even of .stop) { margin-top: 0; }
}
@media (max-width: 820px) {
  .links a:not(.links-cta) { display: none; }
  .apri, .nicoletta, .scrivimi { grid-template-columns: 1fr; }
  .apri { padding-top: 22px; gap: 20px; }
  .apri-photo { order: -1; width: min(70vw, 300px); }
  .apri-photo img { box-shadow: 10px 10px 0 var(--teal), -8px -8px 0 var(--green); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .giorni { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; gap: 8px; padding: 6px;
    border-radius: 999px; background: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: transform .35s, opacity .35s; }
  .dock.via { transform: translateY(150%); opacity: 0; pointer-events: none; }
  .dock a { flex: 1; display: grid; place-items: center; min-height: 46px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 800; }
  .dock a + a { background: #1f7a4a; }
}
@media (max-width: 560px) {
  .apri h1 { font-size: 38px; }
  .apri-photo { width: min(46vw, 190px); }
  .apri-bla { font-size: 14px; right: -18px; }
  .apri-sub { font-size: 17px; margin-top: 12px; }
  .apri-cta { margin-top: 18px; }
  .apri-cta .pill { flex: 1 1 100%; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .giorni { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
}

/* Blabla Yoga · adattamenti: 10 tappe, settimana senza venerdì, «Le prossime attività» (compare solo se ci sono attività pubblicate) */
.giorni { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.attivita { padding: clamp(56px, 8vw, 112px) var(--g); background: var(--cream-2); }
.att-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.att { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 22px; background: #fff; border: 2px solid var(--line); }
.att-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.att-body { padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; }
.att-when { margin: 0; font: 700 14px/1.3 var(--round); color: var(--teal-d); }
.att h3 { margin: 0; font: 800 26px/1.15 var(--round); color: var(--ink); }
.att-body p { margin: 0; color: var(--ink-2); }
.att-info { font-size: 15px; }
