/* ============================================================
   IL SITO DI HUPLA — Trova una data sul telefono (sotto i 640px)

   Una griglia di 8px: margini 16, fra le sezioni 24, dentro 12.
   Bersagli da 44px. I tre passi diventano una fila di tre numeri; il
   pulsante va nella barra scura fissa in basso, che su questa pagina
   prende il posto di quella del sito; l'anteprima si apre in un foglio.
   ============================================================ */
@media (max-width:640px){
  body:has(.tud-dock:not(.off)) .abar{display:none}
  .tud-hero{padding-block:4px 112px;gap:20px}
  .tud-hero-top{gap:20px}
  .tud-kicker{font-size:12.5px}
  .tud-hero h1{font-size:36px;line-height:1;letter-spacing:-1.3px;margin:14px 0 10px}
  .tud-lead{font-size:15.5px;line-height:1.5}

  .tud-tl{padding:14px 12px 12px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
  .tud-tl-track{top:30px}
  .tud-st-card{display:none}
  .tud-st{gap:6px}
  .tud-st-n{width:32px;height:32px;font-size:13px}
  .tud-st-sub{font-size:13px;color:var(--ink2);font-weight:650}
  .tud-st.on .tud-st-sub{color:var(--ink)}

  .tud-work{gap:0}
  .tud-composer{padding:0;box-shadow:var(--shadow-s)}
  .tud-q{padding:20px 16px 22px}
  .tud-qh{margin-bottom:14px}
  .tud-qh h2{font-size:17px}
  .tud-n{width:28px;height:28px}
  .tud-ans{display:none}
  .tud-titolo{font-size:24px;padding:2px 0 10px}
  .tud-spunti{margin:14px -16px 0;padding:2px 16px 4px;gap:8px}
  .tud-spunti button{min-height:38px;padding:0 14px;font-size:13.5px}

  .tud-caltop{margin-bottom:10px}
  .tud-caltop .m{font-size:15px}
  .tud-ibtn{width:44px;height:44px}
  .tud-cal{gap:6px}
  .tud-dw{font-size:11px;padding-bottom:4px}
  .tud-day{height:46px;font-size:16px}
  .tud-day small{display:none}
  .tud-day.oggi small{display:block;font-size:9.5px}
  .tud-hint{font-size:13px;margin-top:12px}

  .tud-fasce{margin-bottom:6px}
  .tud-fascia{padding:10px 2px 9px;gap:4px}
  .tud-fascia .i{width:20px;height:20px}
  .tud-fascia b{font-size:12.5px}
  .tud-range{padding:40px 16px 28px}
  .tud-knob{width:32px;height:32px;margin-left:-16px;margin-top:-16px}
  .tud-knob::before{inset:-8px}
  .tud-tacche{left:16px;right:16px}

  .tud-dur{padding:14px;gap:12px;border-radius:18px;margin-top:4px}
  .tud-dur .l{min-width:100%;font-size:15px}
  .tud-stepper{width:100%;justify-content:space-between;padding:5px;border-radius:16px}
  .tud-stepper > button{width:48px;height:48px;border-radius:12px}
  .tud-dv input{font-size:28px}
  .tud-warn{font-size:13.5px;padding:11px 12px}

  .tud-go,.tud-foot,.tud-preview{display:none}

  .tud-dock{display:flex;position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:30;background:var(--band);color:var(--band-ink);border-radius:22px;padding:8px;gap:8px;align-items:center;box-shadow:var(--shadow)}
  .tud-dock.off{display:none}
  .tud-pvbtn{border:0;background:color-mix(in srgb,var(--band-ink) 10%,transparent);color:var(--band-ink);border-radius:15px;height:52px;padding:0 12px 0 10px;display:inline-flex;gap:10px;align-items:center;font:700 14px var(--font);flex:1;min-width:0;text-align:left;cursor:pointer}
  .tud-pvbtn .bdg{width:32px;height:32px;border-radius:10px;background:var(--coral);color:var(--on-coral);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex-shrink:0}
  .tud-pvbtn .bdg.z{background:color-mix(in srgb,var(--band-ink) 14%,transparent);color:var(--band-ink)}
  .tud-pvbtn .bdg .i{width:17px;height:17px}
  .tud-pvbtn .tx{display:flex;flex-direction:column;line-height:1.25;min-width:0}
  .tud-pvbtn small{color:var(--band-dim);font-weight:500;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tud-dock .tud-cta{min-height:52px;padding:0 18px;font-size:15.5px;flex-shrink:0;box-shadow:none;border-radius:15px}
  .tud-dock .tud-cta.wait{background:color-mix(in srgb,var(--band-ink) 16%,transparent);color:var(--band-dim);font-size:14px;padding:0 14px}

  .tud-veil{position:fixed;inset:0;background:color-mix(in srgb,var(--band) 55%,transparent);z-index:80}
  .tud-veil.on{display:block}
  .tud-sheet{position:fixed;left:0;right:0;bottom:0;z-index:81;background:var(--surface);border-radius:26px 26px 0 0;max-height:90%;flex-direction:column;overflow:hidden;box-shadow:var(--shadow)}
  .tud-sheet.on{display:flex}
  .tud-grab{width:40px;height:5px;border-radius:9px;background:var(--line2);margin:8px auto 4px;flex-shrink:0}
  .tud-sh-head{display:flex;align-items:center;gap:12px;padding:8px 16px 12px}
  .tud-sh-head .g{flex:1;min-width:0;line-height:1.25}
  .tud-sh-head b{display:block;font-family:var(--display);font-size:21px;letter-spacing:-.4px}
  .tud-sh-head small{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tud-sh-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;background:var(--sand);border-radius:13px;padding:3px;margin:0 16px 12px}
  .tud-sh-seg button{min-height:38px;padding:0 4px}
  .tud-sh-body{flex:1;min-height:0;overflow-y:auto;padding:4px 16px 12px;overscroll-behavior:contain}
  .tud-sh-body .tud-gscroll{max-height:none;overflow:visible}
  .tud-sh-body .tud-corner,.tud-sh-body .tud-dh{background:var(--surface)}
  .tud-sh-foot{display:flex;align-items:center;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface)}
  .tud-sh-foot .c{flex:1;min-width:0;font-size:13.5px;color:var(--ink2);line-height:1.3}
  .tud-sh-foot .c b{display:block;color:var(--ink);font-size:15px}
  .tud-sh-foot .tud-cta{min-height:48px;padding:0 22px}
  .tud-ga{column-gap:5px}
  .tud-bk{height:40px;border-radius:11px}
  .tud-dh b{font-size:19px}
  .tud-best{border-radius:16px;padding:12px 14px}

  .tud-step2{padding:22px 16px}
  .tud-step2 h2{font-size:27px}
  .tud-step2 > p{font-size:15px;margin-bottom:18px}
  .tud-recap{padding:12px 14px}
  .tud-link{flex-direction:column;align-items:stretch;gap:12px;padding:16px;border-radius:18px}
  .tud-link code{font-size:21px;text-align:center;white-space:normal;overflow-wrap:anywhere}
  .tud-link .tud-cta{width:100%}
  .tud-share a,.tud-share button{min-height:72px;border-radius:16px}
  .tud-done-acts{flex-direction:column}
  .tud-done-acts > *{flex:none;width:100%}
}
