/* =========================================================
   TPM System: "Imprese multiservizi" landing page (/multiservizi/, 12 Nov 2026, client brief "Landing Page - Multiservice").
   Loaded after style.css and pulizie.css. Since 25 Nov 2026 /pulizie/ loads it too, for the same photo hero (ms-hero-visual). The page reuses the pz- parts of /pulizie/ (problems,
   answers, night band, simulation, report, rows, included, objection, FAQ, booking) and adds these ms- ones:
   the hero with a photo of the people the page is for, the "Stai bene?" step in the simulation, and small layout changes
   for three answers and three objection points.
   ========================================================= */

/* ---------- Hero: two labels, the promise, and a photo of the operators (the brief asks for no dashboard up here) ---------- */
.ms-kickers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ms-care-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--green-50); border: 1px solid #b7e4d0; box-shadow: var(--shadow-sm);
  color: var(--green-ink); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.25; }
.ms-care-badge .ic { flex: none; width: 17px; height: 17px; }
.ms-hero-visual { position: relative; padding: 22px 0 26px; } /* room above and below the photo: the chip and the card sit on its edges, clear of the faces */
.ms-photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 26px; background: #dfe7f5; box-shadow: var(--shadow-lg); }
.ms-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ms-chip-a { left: 14px; top: 6px; z-index: 3; }
/* the three records of the service in the photo, each on its own small card, as the app saves them: check-in, start,
   end (13 Nov 2026; first a "Stai bene?" card, which did not match two people walking, then the end alone).
   The cards share the width of the widest one, so they stack as a neat column. */
.ms-recs { position: absolute; z-index: 3; right: 10px; bottom: 0; display: grid; gap: 8px; width: max-content; }
.ms-recs li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px 6px 6px; border-radius: 16px;
  background: rgb(255 255 255 / .97); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ms-rec-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.ms-rec-ico .ic { width: 15px; height: 15px; }
.ms-recs strong { font-size: .875rem; font-weight: 800; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.ms-recs b { padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ms-recs .is-end .ms-rec-ico { background: var(--green); color: #fff; }
.ms-recs .is-end b { background: var(--green-50); color: var(--green-ink); }

/* ---------- Simulation, step 3: after the photo the phone asks "Stai bene?" (the real app's alarm) ---------- */
.ms .pz-sim-device { container-type: inline-size; }
.ms-sim-alarm { position: absolute; z-index: 3; left: 3.6%; top: 1.6%; width: 92.8%; height: 96.8%; display: grid; place-items: center; padding: 0 7%; border-radius: 12% / 5.4%; background: rgb(15 23 42 / .72);
  opacity: 0; transition: opacity .45s ease; }
.ms-sa-card { display: grid; justify-items: center; gap: 3.5cqw; width: 100%; padding: 8cqw 6cqw 7cqw; border-radius: 6cqw; background: #fff; text-align: center; transform: scale(.88); transition: transform .5s var(--ease-back); }
.ms-sa-ico { width: 20cqw; height: 20cqw; border-radius: 50%; display: grid; place-items: center; background: #d9534f; color: #fff; }
.ms-sa-ico .ic { width: 10cqw; height: 10cqw; }
.ms-sa-card strong { font-size: 9cqw; font-weight: 800; line-height: 1.1; color: var(--ink); }
.ms-sa-card small { font-size: 4.6cqw; line-height: 1.35; color: var(--muted); }
.ms-sa-card b { display: inline-flex; align-items: center; justify-content: center; gap: 2.5cqw; width: 100%; margin-top: 2cqw; padding: 4cqw 0; border-radius: 3.5cqw; background: #5cc677; color: #fff; font-size: 5.4cqw; font-weight: 800; text-transform: uppercase; }
.ms-sa-card b .ic { width: 6cqw; height: 6cqw; color: #fff; }
.ms-toast--care { top: 30%; }
.pz-sim[data-scene="3"][data-phase="c"] .ms-sim-alarm { opacity: 1; }
.pz-sim[data-scene="3"][data-phase="c"] .ms-sa-card { transform: none; }
.pz-sim[data-scene="3"][data-phase="c"] .ms-toast--care { opacity: 1; transform: none; transition-delay: .5s; }

/* ---------- Three answers (the fourth problem has its own band) ---------- */
.ms-mini--match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.ms-mini--match span { display: grid; gap: 1px; }
.ms-mini--match strong { font-size: 1.125rem; letter-spacing: -.01em; }
.ms-mini--match b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-ink); font-weight: 800; }
.ms-mini--match span:last-child { text-align: right; }

/* "Non segue" underlined, as in the brief */
.ms-ul { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: #4ade80; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .ms-photo { aspect-ratio: 4 / 3; }
  .ms-chip-a { left: 20px; }
  .ms-recs { right: 16px; }
}
@media (min-width: 640px) {
  .ms-obj-points li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ms-answers > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .ms-hero-visual { padding: 22px 0 30px 28px; }
  .ms-photo { aspect-ratio: 1; }
  .ms-chip-a { left: 0; top: 6px; }
  .ms-recs { right: -14px; bottom: 64px; }
  .ms-answers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .ms-hero-visual { padding-left: 44px; }
  .ms-recs { right: -28px; }
}

/* ---------- Motion (nothing runs with reduced motion) ---------- */
.motion .ms-care-badge { animation: m-up .7s var(--ease) .14s both; }
.motion .ms-photo { animation: m-up .9s var(--ease) .2s both; }
.motion .ms-photo img { animation: ms-zoom 1.6s var(--ease) .2s both; }
.motion .ms-chip-a { animation: m-pop .6s var(--ease-back) 1.1s both; }
/* the three record cards pop in one after another, stay together, and the sequence starts again (only while the photo
   is on screen; with reduced motion they simply stand there) */
.motion-js .ms-hero-visual.is-playing .ms-recs li { animation: ms-rec-1 9s var(--ease-back) .8s infinite both; }
.motion-js .ms-hero-visual.is-playing .ms-recs li:nth-child(2) { animation-name: ms-rec-2; }
.motion-js .ms-hero-visual.is-playing .ms-recs li:nth-child(3) { animation-name: ms-rec-3; }
.motion-js .ms-hero-visual.is-playing .ms-recs .is-end .ms-rec-ico { animation: ms-rec-done 9s var(--ease-back) .8s infinite both; }
@keyframes ms-rec-1 { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 5%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ms-rec-2 { 0%, 13% { opacity: 0; transform: translateY(10px) scale(.9); } 18%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ms-rec-3 { 0%, 26% { opacity: 0; transform: translateY(10px) scale(.9); } 31%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ms-rec-done { 0%, 29% { transform: scale(.4); } 35%, 100% { transform: none; } }
@keyframes ms-zoom { from { transform: scale(1.08); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ms-sim-alarm, .ms-sa-card { transition: none; }
}
