/* Check&Love — stili delle sezioni speciali delle pagine interne (scrollytelling, eventi, fiducia, storia). */

  /* ---------- etichetta di capitolo del laboratorio ---------- */
  .lab-label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6A3DE8; }
  .lab-label::before { content: ""; width: 28px; height: 2px; background: currentColor; }
  .section-head[style*='start'] .lead { margin-inline: 0; }
  .lab-intro { padding-block: 56px 24px; }
  .lab-intro p { max-width: 46em; color: var(--text-muted); margin-top: 14px; }

  /* ---------- A · Come funziona: scrollytelling ---------- */
  .story { display: grid; gap: 32px; }
  @media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 64px; } }
  .story-steps { display: grid; gap: 0; position: relative; padding-left: 36px; }
  .story-progress { position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--sand-3); }
  .story-progress i { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 3px; background: var(--brand); transition: height .6s var(--ease-out); }
  .story-step { min-height: min(72vh, 620px); display: grid; align-content: center; gap: 14px; opacity: .3; transition: opacity .5s; }
  .story-step.on { opacity: 1; }
  .story-step .num { font-family: var(--font-display); font-size: 72px; line-height: 1; color: var(--brand); }
  .story-step p { color: var(--text-muted); max-width: 26em; }
  .story-phone { position: sticky; top: 14vh; height: min(72vh, 640px); display: grid; place-items: center; order: -1; z-index: 2; }
  @media (min-width: 900px) { .story-phone { order: 0; } }
  @media (max-width: 899px) { .story-phone { top: 76px; height: min(46vh, 400px); background: linear-gradient(var(--white) 80%, transparent); } .story-step { min-height: min(60vh, 520px); } }
  .story-phone .phone { position: relative; height: 100%; width: auto; }
  .story-screen { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .story-screen.on { opacity: 1; transform: none; }
  .story-screen img { width: 100%; height: 100%; object-fit: cover; }
  .toast { position: absolute; left: 8%; right: 8%; bottom: 14%; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); transform: translateY(30px); opacity: 0; transition: all .6s .3s var(--ease-spring); }
  .story-screen.on .toast { transform: none; opacity: 1; }
  .toast .ico { color: var(--brand); font-size: 18px; }
  .check-mark { position: absolute; left: 12.5%; top: 23.5%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 10px; border: 2px solid #fff; transform: scale(0); transition: transform .5s .2s var(--ease-spring); }
  .story-screen.on .check-mark { transform: scale(1); }

  /* ---------- B · Eventi: iscrizione → partecipazione ---------- */
  .join { position: relative; border-radius: var(--radius); background: var(--brand-soft); padding: 28px; display: grid; gap: 20px; overflow: hidden; }
  .join-track { position: relative; height: 210px; }
  .join-zone { position: absolute; display: grid; place-items: center; text-align: center; gap: 4px; font-size: 14px; }
  .join-zone b { display: block; font-size: 17px; color: var(--text); }
  .join-list { left: 0; top: 50%; translate: 0 -50%; width: 34%; padding: 18px; border-radius: 20px; background: var(--white); }
  .join-list .ico { font-size: 22px; color: var(--brand-dark); }
  .join-net { right: 0; top: 0; bottom: 0; width: 42%; }
  .join-net .rings { position: absolute; inset: 0; display: grid; place-items: center; }
  .join-net .rings i { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 2px solid var(--brand); animation: ring 2.6s ease-out infinite; }
  .join-net .rings i:nth-child(2) { animation-delay: .9s; } .join-net .rings i:nth-child(3) { animation-delay: 1.8s; }
  .join-net .beacon { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 22px; z-index: 1; }
  .join-net .label { position: absolute; bottom: -4px; left: 0; right: 0; }
  .walker { position: absolute; top: 50%; left: 17%; width: 46px; height: 82px; margin: -41px -23px; border-radius: 12px; border: 4px solid var(--ink); background: var(--white); display: grid; place-items: end center; padding-bottom: 8px; z-index: 2; transition: left 1.6s var(--ease-out); }
  .walker span { font-size: 9px; font-weight: 700; padding: 3px 6px; border-radius: 999px; background: var(--sand-3); color: var(--text-muted); transition: background .3s, color .3s; }
  .join.arrived .walker { left: 79%; }
  .join.joined .walker span { background: var(--brand); color: var(--white); }
  .join.joined .walker { box-shadow: 0 0 0 6px rgba(255,110,129,.25); }
  .join-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
  .join-foot p { font-weight: 700; color: var(--text); }
  .join-status { font-size: 14px; color: var(--text-muted); }
  .join.joined .join-status { color: var(--brand-dark); font-weight: 700; }
  .ghost { border: 1px solid var(--text); background: none; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; }
  @media (max-width: 620px) { .join-list { width: 44%; padding: 12px; } .join-net { width: 46%; } .join-net .rings i { width: 140px; height: 140px; } }

  /* serata: gli eventi Check&Love */
  .night { background: var(--nav-bg); color: var(--on-ink-muted); border-radius: 40px; margin-inline: max(8px, env(safe-area-inset-left, 0px)); overflow: hidden; position: relative; }
  .night h2 { color: var(--white); }
  .night .tag { justify-self: start; display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(231, 184, 75, .15); color: var(--moment); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .night-grid { display: grid; gap: 48px; align-items: center; }
  @media (min-width: 960px) { .night-grid { grid-template-columns: 1fr 1fr; } }
  .night-copy { display: grid; gap: 22px; }
  .night-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
  .night-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 14px; border-radius: 18px; background: rgba(243, 237, 231, .05); counter-increment: s; }
  .night-steps li::before { content: "0" counter(s); grid-row: span 2; font-family: var(--font-display); font-size: 26px; color: var(--moment); }
  .night-steps b { color: var(--white); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(231, 184, 75, .4); color: var(--moment); font-size: 14px; font-weight: 600; }
  .beacon-big { margin-bottom: 70px !important; position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
  .beacon-big i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--moment); animation: ring 3.6s ease-out infinite; }
  .beacon-big i:nth-child(2) { animation-delay: 1.2s; } .beacon-big i:nth-child(3) { animation-delay: 2.4s; }
  .beacon-big .core { position: relative; width: 34%; aspect-ratio: 1; border-radius: 32%; background: linear-gradient(145deg, #3A2F26, #1C1714); box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); display: grid; place-items: center; color: var(--moment); font-size: 44px; }
  .beacon-big figcaption { position: absolute; top: 100%; margin-top: 18px; left: 8%; right: 8%; text-align: center; font-size: 14px; }
  .live-strip { margin-top: 56px; display: grid; gap: 16px; }
  @media (min-width: 760px) { .live-strip { grid-template-columns: 1fr 1fr; } }
  .ev { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 22px; background: rgba(243, 237, 231, .06); text-decoration: none; }
  .ev img { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; }
  .ev b { color: var(--white); font-size: 18px; display: block; }
  .ev small { font-size: 14px; }
  .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
  .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: blink 1.2s ease-in-out infinite; }
  .soon { color: var(--moment); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  @keyframes blink { 50% { opacity: .2; } }

  /* ---------- C · Fiducia ---------- */
  .privacy { background: var(--brand-soft); border-radius: 40px; margin-inline: max(8px, env(safe-area-inset-left, 0px)); }
  .pbox-grid { display: grid; gap: 20px; }
  @media (min-width: 900px) { .pbox-grid { grid-template-columns: 1fr 1fr; } }
  .pbox { background: var(--white); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; align-content: start; }
  .pbox ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
  .pbox li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
  .pbox li .ico { color: var(--success); margin-top: 4px; }
  .pviz { height: 190px; border-radius: 20px; background: var(--sand); position: relative; overflow: hidden; }
  /* rubrica che resta sul telefono */
  .vault { position: absolute; left: 14%; top: 50%; translate: 0 -50%; width: 74px; height: 130px; border-radius: 16px; border: 5px solid var(--ink); background: var(--white); display: grid; place-items: center; }
  .vault .ico { font-size: 28px; color: var(--brand-dark); }
  .vault .lk { position: absolute; bottom: -12px; right: -12px; width: 34px; height: 34px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 14px; }
  .server { position: absolute; right: 14%; top: 50%; translate: 0 -50%; width: 90px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-muted); }
  .server .cloud { width: 90px; height: 56px; border-radius: 30px; background: var(--sand-3); position: relative; margin-bottom: 8px; }
  .server .cloud::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--brand-dark); }
  .packet { position: absolute; left: 30%; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--brand); animation: bounce-back 2.6s var(--ease-out) infinite; }
  @keyframes bounce-back { 0% { left: 30%; opacity: 0; } 15% { opacity: 1; } 50% { left: 58%; } 60% { left: 58%; transform: scale(1.4); } 100% { left: 30%; opacity: 0; } }
  .dash { position: absolute; left: 30%; right: 30%; top: 50%; border-top: 2px dashed var(--sand-3); }
  /* chiave della rete che cambia */
  .keybox { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font: 600 13px/1 "Courier Prime", ui-monospace, monospace; white-space: nowrap; }
  .keybox .ico { color: var(--moment); font-family: var(--font); }
  #net-key.tick { animation: tick .5s var(--ease-out); }
  @keyframes tick { from { opacity: 0; filter: blur(4px); } }

  /* ---------- D · La nostra storia ---------- */
  .gen { display: grid; border-radius: 40px; overflow: hidden; margin-inline: max(8px, env(safe-area-inset-left, 0px)); }
  @media (min-width: 900px) { .gen { grid-template-columns: 1fr 1fr; } }
  .gen > div { padding: clamp(32px, 6vw, 72px); display: grid; gap: 18px; align-content: center; min-height: 420px; }
  .analog { background: #EADFCB; color: #4A3F33;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  .analog h3 { font: 400 15px/1.3 "Courier Prime", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #8A5A3B; }
  .analog p { font: 400 19px/1.6 "Courier Prime", ui-monospace, monospace; }
  .digital { background: var(--ink); color: var(--on-ink-muted); }
  .digital h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
  .digital p { font-size: 19px; }
  .typed { border-right: 2px solid #4A3F33; white-space: nowrap; overflow: hidden; width: 0; animation: type 2.6s steps(34) .4s forwards, caret .8s step-end infinite; max-width: max-content; }
  .fx-off .typed, .typed.done { width: auto; border-right: 0; }
  @keyframes type { to { width: 34ch; } }
  @keyframes caret { 50% { border-color: transparent; } }
  .quote-big { text-align: center; display: grid; gap: 28px; justify-items: center; }
  .quote-big blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 5vw, 60px); line-height: 1.02; color: var(--text); max-width: 16em; text-wrap: balance; }
  .sign { font: 600 clamp(40px, 5vw, 56px)/1 "Caveat", cursive; color: var(--brand-dark); clip-path: inset(0 100% 0 0); }
  .sign-row { display: grid; justify-items: center; gap: 4px; font-size: 15px; color: var(--text-muted); }
  @supports (animation-timeline: view()) {
    .sign { animation: write linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
    @keyframes write { to { clip-path: inset(0 0 0 0); } }
  }
  @supports not (animation-timeline: view()) { .sign { clip-path: none; } }
  .fx-off .sign { clip-path: none; }
