/* M-Immo.pro – stile "Mimmo ti accompagna" */
:root {
  --ink: #1b2a38; --navy: #234561; --navy-2: #2f5a7d;
  --sand: #c9a46c; --sand-2: #e9dcc3; --sand-3: #f3ebdd; --brown: #87622f;
  --cream: #f8f4ee; --paper: #fffdf9; --line: #e6dccd; --muted: #5a6470;
  --ok: #2e7d5b; --bad: #c4493a;
  --font: "Onest", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sand-3); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
/* niente trattini: le parole vanno a capo intere; solo una parola più larga della riga si spezza, per non uscire dallo schermo */
h1, h2, h3, .msg { hyphens: none; overflow-wrap: break-word; }
.said .msg { min-width: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 760; }
h3 { font-size: 1.25rem; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--brown); }
p { margin: 0 0 1em; }
/* giustificato solo nei testi legali (condizioni generali, privacy, note legali; il contratto PDF lo è già); il resto del sito
   a sinistra. Mai trattini: le parole vanno a capo intere */
.legal p, .legal li { text-align: justify; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.lead { font-size: 1.18rem; color: var(--muted); }
.muted { color: var(--muted); }
/* parole col trattino (Check-In, M-Immo): non si spezzano, vanno a capo intere. È solo testo: nessuna regola sugli span
   (vignette, pulsanti, etichette) deve trasformarlo in un blocco, un'etichetta o nasconderlo */
.nw { white-space: nowrap; display: inline !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; font-size: inherit !important; }
.center { text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); display: inline-block; margin-bottom: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(35, 69, 97, .28); }
.btn-sand { background: var(--sand); color: var(--ink); box-shadow: 0 8px 22px rgba(201, 164, 108, .35); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btns { justify-content: center; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(243, 235, 221, .9); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.top.scrolled { box-shadow: 0 6px 20px rgba(27, 42, 56, .08); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 84px; }
.brand img { height: 62px; width: auto; filter: drop-shadow(0 2px 3px rgba(27, 42, 56, .18)); }
.menu { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; white-space: nowrap; }
.menu a[aria-current] { color: var(--brown); }
.menu a.login { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 16px; }
/* "Accedi": due accessi separati, area clienti (acquisti) e BackOffice (gestione dello stabile) */
.login-menu { position: relative; }
.login-menu summary { list-style: none; cursor: pointer; white-space: nowrap; font-weight: 550; font-size: .95rem; border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 16px; }
.login-menu summary::-webkit-details-marker { display: none; }
.login-menu summary::after { content: " ▾"; font-size: .8em; }
.login-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 280px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 20px 40px -12px rgba(27, 42, 56, .35); z-index: 60; }
.menu .login-pop a { display: block; padding: 10px 12px; border-radius: 10px; }
.menu .login-pop a:hover { background: var(--sand-3); }
.login-pop b { display: block; }
.login-pop small { display: block; color: var(--muted); font-weight: 400; }
/* lingua: tendina con la sola lingua attuale */
.langs.lang-menu { position: relative; display: block; }
.lang-menu summary { list-style: none; cursor: pointer; font-size: .85rem; font-weight: 800; white-space: nowrap; padding: 6px 4px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; font-size: .8em; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 16px 30px -10px rgba(27, 42, 56, .35); z-index: 60; display: grid; min-width: 64px; }
.lang-pop a { padding: 7px 12px; border-radius: 8px; text-align: center; }
.menu .lang-pop a { border: 0; padding: 7px 12px; font-size: .85rem; }
.lang-pop a:hover { background: var(--sand-3); }
.langs { display: flex; gap: 6px; } .langs a { font-size: .8rem; font-weight: 700; } .langs a[aria-current] { color: var(--brown); }
.nav-cta { padding: 11px 20px; font-size: .92rem; white-space: nowrap; }
/* «Richiedi una demo» sempre in alto, accanto a «Configura»; sul telefono solo «Demo» */
.nav-demo { padding: 10px 18px; font-size: .92rem; white-space: nowrap; margin-right: -10px; }
.nav-demo .nd-short { display: none; }
.nav-demo[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }   /* sulla pagina della demo */
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; margin-left: auto; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Mimmo che parla */
.msg { background: #fff; border-radius: 22px 22px 22px 6px; padding: 14px 20px; box-shadow: 0 8px 24px rgba(27, 42, 56, .08); max-width: 600px; font-size: 1.08rem; }
.said { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 36px; }
.said > img { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: 0 6px 16px rgba(27, 42, 56, .15); }
.said h2, .said h1 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.said h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.said .msg p { margin: 8px 0 0; color: var(--muted); }
.said.center-said { justify-content: center; }

/* hero home */
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; padding: 28px 0 64px; }
.hero .video { margin-top: 6px; }
.msg.title .caret { display: inline-block; width: 3px; height: .9em; background: var(--brown); margin-left: 4px; vertical-align: -.08em; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.replies.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 560px; }
.replies.people a { padding: 0; border-radius: 18px; overflow: hidden; background: #fff; color: var(--ink); display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(27, 42, 56, .1); }
.replies.people img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; }
/* le tre persone compaiono una alla volta */
.replies.people { opacity: 1; }
.replies.people a { opacity: 0; transform: translateY(18px) scale(.5); transition: opacity .35s, transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.replies.people.show a { opacity: 1; transform: none; }
.replies.people.show a:nth-child(2) { transition-delay: .8s; }
.replies.people.show a:nth-child(3) { transition-delay: 1.6s; }
.replies.people span { padding: 10px 12px 12px; font-size: .9rem; line-height: 1.25; text-align: center; }
.chat { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.chat .msg { opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .45s, transform .45s; }
.chat .msg.show { opacity: 1; transform: none; }
.msg.title { font-size: clamp(1.9rem, 3.5vw, 2.9rem); max-width: 100%; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; padding: 20px 26px; margin: 0; }
.msg.title em { font-style: normal; color: var(--brown); }
/* il titolo italiano sta su una riga; nelle altre lingue è più lungo e va a capo dentro la nuvoletta */
:lang(it) .msg.title { white-space: nowrap; }
.typing { display: inline-flex; gap: 5px; background: #fff; border-radius: 18px; padding: 14px 18px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-5px); opacity: .5; } }
.replies { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; opacity: 0; transition: opacity .5s; }
.replies.show { opacity: 1; }
.replies a { background: var(--navy); color: #fff; text-decoration: none; font-weight: 650; padding: 12px 18px; border-radius: 999px; transition: transform .15s; }
.replies a:hover { transform: translateY(-2px); }
.replies a.alt { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.video { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(27, 42, 56, .25); background: var(--ink); aspect-ratio: 16 / 9; }
.video video, .video > img { width: 100%; height: 100%; }
.video > img { object-fit: cover; display: block; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(27, 42, 56, 0) 40%, rgba(27, 42, 56, .55)); border: 0; cursor: pointer; font: inherit; color: #fff; }
.video .play > span { display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); background: var(--sand); color: var(--ink); font-weight: 800; line-height: 1.25; text-align: left; padding: 12px 22px 12px 12px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .15s; }
.video .play b { font-weight: inherit; hyphens: none; }
.video .play:hover > span { transform: scale(1.05); }
.video .play i {flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-style: normal; color: #fff; font-size: .9rem; }
@media (max-width: 600px) {
  .video .play { background: rgba(27, 42, 56, .12); }
  .video .play > span { padding: 0; background: none; box-shadow: none; }
  .video .play b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .video .play i { width: 64px; height: 64px; font-size: 1.4rem; padding-left: 4px; background: var(--sand); color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 255, 255, .45), 0 10px 30px rgba(0, 0, 0, .35); }
}

/* sezioni */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.white { background: var(--paper); }
.page-head { padding: 64px 0 24px; }

/* senza / con */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vs article { border-radius: 26px; overflow: hidden; background: #fff; }
.vs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vs .bad img { filter: grayscale(.6) brightness(.92); }
.vs .txt { padding: 22px 26px 26px; }
.vs .tagline { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.vs .bad .tagline { background: var(--bad); } .vs .good .tagline { background: var(--ok); }
.vs ul { margin: 0; padding-left: 1.1em; color: var(--muted); } .vs li { margin-bottom: 4px; }

/* storia di Leo nel telefono */
.leo { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center; }
.phone { background: var(--ink); border-radius: 44px; padding: 14px; box-shadow: 0 30px 60px rgba(27, 42, 56, .3); }
.screen { background: #efe7da; border-radius: 32px; height: 600px; overflow: hidden; display: flex; flex-direction: column; }
.screen-head { background: var(--navy); color: #fff; padding: 18px 18px 14px; display: flex; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.3; }
.screen-head img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.thread { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.b { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: .86rem; line-height: 1.35; background: #fff; opacity: 0; transform: translateY(10px); transition: .4s; }
.b.me { align-self: flex-end; background: #d9f2d0; }
.b.sys { align-self: center; background: rgba(27, 42, 56, .08); font-size: .75rem; font-weight: 600; color: var(--muted); }
.b.show { opacity: 1; transform: none; }
.b small { display: block; color: var(--muted); font-size: .7rem; margin-top: 2px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { padding: 16px 0 16px 56px; position: relative; border-bottom: 1px solid var(--line); color: var(--muted); counter-increment: s; }
.steps li b { color: var(--ink); display: block; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 40px; height: 40px; border-radius: 12px; background: var(--sand-2); display: grid; place-items: center; font-weight: 800; color: var(--brown); }

/* storia passo-passo in piccolo */
.mini-story { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: m; }
.mini-story li { background: #fff; border-radius: 20px; overflow: hidden; position: relative; counter-increment: m; padding-bottom: 14px; box-shadow: 0 6px 18px rgba(27, 42, 56, .06); }
.white .mini-story li { background: var(--sand-3); }
.mini-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 10px; }
/* numero e prodotto in basso nella foto, dove non ci sono visi */
.mini-story .pic { position: relative; display: block; margin-bottom: 10px; }
.mini-story .pic img { margin-bottom: 0; }
.mini-story .pic::after { content: counter(m); position: absolute; left: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.mini-story i { position: absolute; left: 46px; bottom: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); background: var(--sand); color: var(--ink); font-style: normal; font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 999px; }
.mini-story a { display: block; color: inherit; text-decoration: none; }
.mini-story li { transition: transform .15s, box-shadow .15s; }
.mini-story li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27, 42, 56, .14); }
.mini-story li:hover b { color: var(--navy); text-decoration: underline; }
.btn-big { font-size: 1.12rem; padding: 18px 32px; }
/* titolo e testo della vignetta: solo i figli diretti del link (non gli span dentro il testo) */
.mini-story a > b, .mini-story a > span:not(.pic) { display: block; padding: 0 14px; }
.mini-story b { line-height: 1.25; }
.mini-story a > span:not(.pic) { color: var(--muted); font-size: .9rem; line-height: 1.35; margin-top: 2px; }

/* manutenzioni programmate: calendario + punti */
.maint { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.cal { background: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 24px 50px -24px rgba(27, 42, 56, .35); border: 1px solid var(--line); }
.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cal-head b { font-size: 1.1rem; } .cal-head span { color: var(--muted); font-size: .9rem; }
.cal-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.cal-date { text-align: center; background: var(--sand-3); border-radius: 12px; padding: 6px 4px; font-size: .78rem; color: var(--muted); line-height: 1.2; }
.cal-date b { display: block; font-size: 1.05rem; color: var(--ink); }
.cal-task b { display: block; } .cal-task small { color: var(--muted); font-size: .85rem; }
.st { font-size: .8rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.st.ok { background: #e6f3ec; color: var(--ok); } .st.ko { background: #fdecea; color: var(--bad); } .st.prog { background: var(--sand-3); color: var(--brown); }
.cal-alert { margin: 8px 6px; background: #fdecea; color: var(--bad); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: .92rem; }
.maint-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.maint-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.maint-points li > span { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 6px 16px rgba(27, 42, 56, .08); }
.maint-points b { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: 2px; }

/* per chi */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who article { background: #fff; border-radius: 26px; overflow: hidden; scroll-margin-top: 100px; border: 2px solid transparent; transition: border-color .3s; }
.white .who article { background: var(--sand-3); }
.who-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 12%; background: #e9e9e7; }
.who-txt { padding: 22px 26px 26px; }
.who-txt .eyebrow { margin-bottom: 4px; }
.who article:target { border-color: var(--sand); }
.who .emoji { font-size: 2.2rem; }
.who ul { padding-left: 1.1em; color: var(--muted); margin: 0; }
.who li { margin-bottom: 6px; }
.quote { background: var(--sand-3); border-radius: 14px; padding: 12px 14px; font-style: italic; margin: 14px 0; }

/* attrezzi */
.tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tool { background: #fff; border-radius: 22px; padding: 0 0 18px; overflow: hidden; text-align: center; position: relative; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 18px rgba(27, 42, 56, .06); }
.tool:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27, 42, 56, .12); }
.tool-img { display: grid; place-items: center; aspect-ratio: 1; background: var(--sand-2); margin-bottom: 14px; overflow: hidden; }
.tool-img.light { background: var(--paper); }
.tool-img > img { width: 100%; height: 100%; object-fit: cover; }
.tool-img.light > img { padding: 14px; }
.tool h3, .tool p, .tool .price { padding: 0 14px; }
.tag-mock { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px 8px; box-shadow: 0 6px 16px rgba(27, 42, 56, .15); width: 58%; }
.tag-mock img { width: 100%; }
.tag-mock img:first-child { width: 90%; }
.tag-mock small { font-weight: 800; font-size: .7rem; letter-spacing: .04em; }
.tool h3 { font-size: 1rem; margin-bottom: 6px; }
.tool p { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.price { font-weight: 750; color: var(--navy); font-size: .9rem; }
.new { position: absolute; top: 12px; right: 12px; background: var(--bad); color: #fff; font-size: .66rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }

/* storia per immagini (come funziona) */
.story { display: grid; gap: 26px; }
.chapter { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: #fff; border-radius: 28px; padding: 18px; }
.chapter:nth-child(even) { grid-template-columns: .9fr 1.1fr; }
.chapter:nth-child(even) img { order: 2; }
.chapter img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.chapter .txt { padding: 10px 18px; }
.chapter .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sand-2); color: var(--brown); font-weight: 800; margin-bottom: 10px; }
.chapter .prod { display: inline-block; background: var(--sand); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-left: 8px; text-decoration: none; }
.chapter p { color: var(--muted); margin: 0; }

/* prodotti */
.prod-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prod-nav a { background: #fff; color: var(--ink); text-decoration: none; font-weight: 650; padding: 6px 16px 6px 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; }
.prod-nav img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--sand-2); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product.flip .media { order: 2; }
.product .media { border-radius: 26px; overflow: hidden; background: #fff; }
.product .media img { width: 100%; height: 420px; object-fit: cover; }
.product .media.contain img { object-fit: contain; padding: 24px; background: var(--paper); }
.product .media.browser { padding-top: 30px; position: relative; background: #e9e4dc; }
.product .media.browser::before { content: "● ● ●"; position: absolute; left: 16px; top: 6px; color: #b9b0a3; font-size: .8rem; letter-spacing: 2px; }
.product .media.browser img { height: auto; }
.product .media.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: transparent; }
.product .media.duo figure { margin: 0; background: #fff; border-radius: 22px; overflow: hidden; }
/* riquadri quadrati come le due foto del Check-In, così si vedono intere */
.product .media.duo img { height: auto; aspect-ratio: 1; }
.product .media.duo figcaption { padding: 10px 14px 14px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.product .media.illu { height: 420px; display: grid; place-items: center; background: var(--sand-2); }
.product .media.illu .tag-mock { width: 200px; }
.product h2 { margin-bottom: .3em; }
.product .sub { font-size: 1.15rem; color: var(--brown); font-weight: 650; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 9px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
/* cartellino del prezzo: sempre uguale (importo sopra, unità sotto), stessa larghezza e altezza ovunque */
.price-tag { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; box-sizing: border-box; width: 260px; max-width: 100%; min-height: 90px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; margin-right: 10px; margin-bottom: 10px; vertical-align: top; }
.price-tag b { font-size: 1.4rem; line-height: 1.15; color: var(--navy); } .price-tag small { color: var(--muted); line-height: 1.3; }
/* più cartellini insieme (confezioni dei badge): griglia di caselle uguali */
.price-tags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.price-tags .price-tag { width: auto; margin: 0; padding: 10px 12px; }
.price-tags .price-tag b { font-size: 1.15rem; }
@media (max-width: 900px) { .price-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* M-Immo Open: Controller e Relé uno a fianco dell'altro */
.open-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 14px; }
.open-part { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; }
.open-part img { width: 100%; height: 110px; object-fit: cover; object-position: 80% 50%; border-radius: 12px; margin-bottom: 10px; }
.open-part h3 { font-size: 1.1rem; line-height: 1.2; margin: 0 0 6px; }
.open-part p { font-size: .92rem; color: var(--muted); margin: 0 0 12px; flex: 1; }
.open-part .price-tag { width: auto; align-self: stretch; margin: 0; }
@media (max-width: 560px) { .open-parts { grid-template-columns: 1fr; } }

/* configuratore */
/* a sinistra le scelte, a destra una colonna blu alta quanto il calcolatore:
   ogni totale sta all'altezza del fondo del suo riquadro */
.calc { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 20px 50px rgba(27, 42, 56, .1); display: grid; grid-template-columns: 1fr 340px; gap: 0; }
.calc > .calc-row.flats, .calc > .calc-panel { margin: 0 24px 18px 0; }
.calc > .calc-panel { margin-top: 0; }
.side { display: none; }
.calc > .side { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: var(--navy); color: #fff; padding: 0 22px 18px; }
.calc > .side-head { justify-content: flex-start; border-radius: 22px 22px 0 0; padding-top: 22px; }
.side-head b { font-size: 1.15rem; } .side-head small { color: rgba(255, 255, 255, .7); font-size: .86rem; }
.calc > .side-foot { border-radius: 0 0 22px 22px; padding-bottom: 22px; justify-content: flex-start; }
.side-foot small { color: rgba(255, 255, 255, .7); font-size: .82rem; text-align: center; }
.side .big { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 4px 0; }
.side .big em { font-style: normal; font-size: 1rem; font-weight: 600; opacity: .8; margin-left: 6px; }
.side .mid { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.side .tot-block small { display: block; color: rgba(255, 255, 255, .78); font-size: .86rem; }
.tag-illu { width: 100%; height: 100%; object-fit: cover; }
.product .media.illu .tag-illu { width: 240px; height: 240px; border-radius: 30px; }
.white .calc { background: #fff; }
.calc-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); margin-bottom: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.calc-row:hover, .calc-row:focus-within { border-color: var(--sand); box-shadow: 0 6px 16px rgba(201, 164, 108, .18); }
.calc-row.flats { background: var(--sand-3); border-color: var(--sand-2); }
.calc-row .thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--sand-2); display: grid; place-items: center; font-size: 1.9rem; }
.calc-row .thumb.contain { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }
/* immagini piccole (shop, prezzi): col mouse sopra si ingrandiscono */
@media (hover: hover) {
  .prod-nav img { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
  .prod-nav img:hover { transform: scale(4); z-index: 30; border-radius: 10px; box-shadow: 0 18px 40px rgba(27, 42, 56, .35); }
  .calc-row .thumb, .plan-img { position: relative; transform-origin: left center; transition: transform .25s ease, box-shadow .25s ease; }
  .calc-row .thumb:hover, .plan-img:hover { z-index: 30; box-shadow: 0 18px 40px rgba(27, 42, 56, .35); }
  .calc-row .thumb:hover { transform: scale(4); }
  .plan-img:hover { transform: scale(2.2); }
  /* schede "Questi sono i miei strumenti": la foto esce dalla scheda e si ingrandisce */
  .tool-img > img { position: relative; border-radius: 22px 22px 0 0; transition: transform .25s ease, box-shadow .25s ease, border-radius .25s; }
  .tool:hover { z-index: 5; overflow: visible; }
  .tool:hover .tool-img { overflow: visible; }
  .tool-img:hover > img { transform: scale(1.8); z-index: 30; border-radius: 16px; box-shadow: 0 18px 40px rgba(27, 42, 56, .35); }
}
.calc-row b { display: inline; }
.calc-row small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; margin-top: 2px; }
.new-inline { background: var(--bad); color: #fff; font-size: .62rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .04em; }
.calc-panel { border-radius: 20px; padding: 14px 14px 4px; margin-top: 18px; border: 2px solid; }
.calc-panel.sub { border-color: var(--navy); background: #eef3f8; }
.calc-panel.once { border-color: var(--sand); background: #faf3e6; }
.panel-head { display: flex; align-items: center; gap: 12px; margin: 2px 4px 12px; }
.panel-head b { font-size: 1.15rem; display: block; line-height: 1.2; }
.panel-head small { color: var(--muted); font-size: .88rem; }
.panel-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.sub .panel-ico { background: var(--navy); } .once .panel-ico { background: var(--sand); }
.panel-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 6px 12px; border-top: 1.5px dashed rgba(27, 42, 56, .2); margin-top: 2px; font-size: .95rem; }
.panel-sum b { font-size: 1.1rem; }
.sub .panel-sum b { color: var(--navy); } .once .panel-sum b { color: var(--brown); }
.tot-plus { text-align: center; font-size: 1.4rem; font-weight: 800; line-height: .4; color: var(--sand); }
.calc-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; overflow-wrap: break-word; font-size: .9rem; font-weight: 500; color: var(--muted); margin: 22px 0 10px; letter-spacing: 0; }
.calc-group span { background: var(--navy); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.calc-group.once span { background: var(--sand); color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--sand-3); border-radius: 999px; padding: 4px; }
.flats .stepper { background: #fff; }
/* riga senza quantità (BackOffice): al posto di + e − */
.calc-row .incl { background: #e6f3ec; color: var(--ok); font-weight: 800; font-size: .85rem; padding: 9px 16px; border-radius: 999px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: #fff; transition: transform .1s, background .15s; }
.stepper button[data-step="-1"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper button:hover { transform: scale(1.08); }
.stepper button:active { transform: scale(.94); }
.stepper input { width: 48px; text-align: center; font: inherit; font-size: 1.1rem; font-weight: 800; border: 0; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.kbd { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .9rem; line-height: 1; vertical-align: 1px; }
.tot-block { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 16px; border-left: 5px solid #9fb4c8; }
.tot-block.once { background: rgba(201, 164, 108, .18); border-left-color: var(--sand); }
.calc-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* listino */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plans.two { grid-template-columns: repeat(2, 1fr); }
/* tre schede una tantum (Info, Tag, Object): tre colonne, immagine più piccola */
.plans.two:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.plans.two:has(> :nth-child(3)) .plan { grid-template-columns: 96px 1fr; gap: 16px; }
.plans.two:has(> :nth-child(3)) .plan-img { width: 96px; height: 96px; }
.plans.two:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }   /* 4 schede: due per riga */
.plan { background: #fff; border-radius: 22px; padding: 24px; position: relative; }
.plans.two .plan { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.plan-img { width: 150px; height: 150px; border-radius: 16px; object-fit: cover; background: var(--sand-2); }
.plan-img.contain { object-fit: contain; background: var(--paper); padding: 8px; }
.plan-img.tag-box { display: grid; place-items: center; background: var(--paper); }
.plan-img .tag-mock { width: 70%; }
.plan.main { outline: 2px solid var(--sand); }
.plan .amount { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 10px 0 2px; }
.plan .unit { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.plan ul { padding-left: 1.1em; color: var(--muted); font-size: .92rem; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.facts div { background: var(--sand-3); border-radius: 18px; padding: 18px; font-size: .95rem; min-width: 0; overflow-wrap: break-word; hyphens: none; }
.facts b { display: block; margin-bottom: 4px; }

/* modulo */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: 0 20px 50px rgba(27, 42, 56, .08); }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; padding: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 10px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { display: block; background: #e6f3ec; color: var(--ok); }
.form-msg.err { display: block; background: #fdecea; color: var(--bad); }
.order { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.order > *, .contact > *, .grid2 > *, .calc > * { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; }
.summary { position: sticky; top: 100px; background: var(--navy); color: #fff; border-radius: 24px; padding: 26px; }
.summary h3 { margin-bottom: 14px; }
.summary table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.summary td { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; }
.summary .tot td { font-weight: 800; font-size: 1.1rem; border: 0; padding: 10px 0 4px; }
.summary .grp td { border: 0; padding-top: 18px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); }
.summary small { color: rgba(255, 255, 255, .72); display: block; margin-top: 12px; }
.summary .edit { color: var(--sand); }

/* configuratore a passi (Home, Prezzi, Ordine) */
.wiz { max-width: 860px; margin: 0 auto; }
/* configurazione di uno stabile: la scheda a sinistra, il riepilogo blu a destra (sotto, sui telefoni) */
.wiz:has(.wiz-two) { max-width: 1180px; }
.wiz-two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.wiz-live { padding: 22px; }
.wiz-live h3 { font-size: 1.1rem; }
.lv-b { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.lv-b > b { display: block; font-size: .95rem; }
.lv-b em { font-style: normal; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--sand); color: var(--navy); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.lv-b.now { background: rgba(255, 255, 255, .08); margin: 0 -12px; padding: 10px 12px; border-radius: 12px; border-bottom-color: transparent; }
.lv-b.todo { color: rgba(255, 255, 255, .55); }
.lv-b.todo span { display: block; font-size: .82rem; font-style: italic; }
.wiz-live dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 6px 0 0; font-size: .85rem; }
.wiz-live dt { color: rgba(255, 255, 255, .75); }
.wiz-live dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* riga bloccata: tutto sbiadito tranne la «i», che spiega anche perché è bloccata */
.wiz-row.off > img, .wiz-row.off > .stepper, .wiz-row.off > .seg, .wiz-row.off small { opacity: .4; }
.wiz-row.off b { color: rgb(27 42 56 / .4); }
.wiz-row.off .stepper button, .wiz-row.off .stepper input { cursor: not-allowed; }
.wiz-need { background: #fdf3e6; border-left: 4px solid var(--sand); border-radius: 10px; padding: 10px 14px; font-size: .9rem; font-weight: 700; margin: 0 0 12px; }
.wiz-need.bad { background: #fdf1ef; border-color: var(--bad); color: var(--bad); }
@media (max-width: 900px) { .wiz-two { grid-template-columns: minmax(0, 1fr); } .wiz-live { position: static; } }
/* la striscia "come si fa un ordine": 4 passi numerati, poi una riga sul tempo */
.wiz-guide { margin: 0 0 18px; }
.wiz-guide ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; counter-reset: g; }
.wiz-guide li { counter-increment: g; position: relative; padding: 12px 14px 12px 50px; background: var(--sand-3); border-radius: 14px; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.wiz-guide li::before { content: counter(g); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: .9rem; }
.wiz-guide li:last-child::before { background: var(--brown); }
.wiz-guide li b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.wiz-guide li span b { display: inline; font-size: inherit; margin: 0; }
.wiz-guide p { margin: 8px 0 0; font-size: .85rem; font-style: italic; color: var(--muted); text-align: center; }
.wiz-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; counter-reset: s; }
.wiz-steps li > * { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); background: #fff; border: 1.5px solid var(--line); }
.wiz-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-3); font-size: .75rem; }
.wiz-steps .now > * { color: #fff; background: var(--navy); border-color: var(--navy); }
.wiz-steps .now i { background: rgba(255, 255, 255, .2); }
.wiz-steps .done button { cursor: pointer; color: var(--ink); }
.wiz-steps .done i { background: var(--ok); color: #fff; }
.wiz-card { background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 20px 50px -24px rgba(27, 42, 56, .35); border: 1px solid var(--line); }
.wiz-card h3 { margin: 0 0 6px; }
.wiz-card > p.muted { margin: 0 0 14px; }
.wiz-kick { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); margin: 0 0 8px; }
.wiz-name { width: 100%; font: inherit; font-size: 1.1rem; font-weight: 700; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); }
.wiz-name:focus { outline: none; border-color: var(--sand); }
.wiz-err { color: var(--bad); font-weight: 700; font-size: .9rem; margin: 6px 0 0; }
.wiz-group { margin: 26px 0 10px; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.wiz-group small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.wiz-group::before { content: "📅"; }
.wiz-group.once::before { content: "🛒"; }
.wiz-row small { font-size: .84rem; }
.wiz-langs label { flex: 1 1 140px; }
.seg.wiz-langs span { display: block; text-align: center; padding: 14px 16px; font-size: 1rem; }
/* badge NFC: le confezioni sotto il testo, su tutta la larghezza */
.wiz-badge { grid-template-columns: 64px 1fr; }
.wiz-badge .seg { grid-column: 1 / -1; margin: 2px 0 0; gap: 6px; }
.wiz-badge .seg label { flex: 1 1 110px; }
.wiz-badge .seg span { display: block; text-align: center; padding: 8px 10px; font-size: .86rem; white-space: nowrap; }
.wiz-row.off .seg label { cursor: not-allowed; }
.wiz-tags { margin: -2px 0 12px 12px; font-weight: 700; color: var(--ok); font-size: .92rem; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brown); text-decoration: underline; cursor: pointer; }
.wiz-clause { background: #fdf3e6; border-left: 4px solid var(--sand); border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin: 0 0 12px; }
.wiz-sub { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: .92rem; background: var(--sand-3); border-radius: 14px; overflow: hidden; }
.wiz-sub caption { text-align: left; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); padding: 0 0 6px; }
.wiz-sub td { padding: 8px 14px; }
.wiz-sub td:last-child { text-align: right; white-space: nowrap; }
.wiz-sub .tot td { font-weight: 800; border-top: 1px solid var(--sand-2); }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.wiz-reset { color: var(--muted); font-weight: 600; font-size: .9rem; }
.wiz-reset::before { content: "✕ "; }
.wiz-total { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 10px 0; }
.wiz-total th { text-align: right; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 0 6px 12px; }
.wiz-total td { padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wiz-total td:first-child { padding-left: 0; }
.wiz-total td + td { text-align: right; white-space: nowrap; }
.wiz-total small { display: block; color: var(--muted); font-size: .82rem; }
.wiz-total tfoot td { font-weight: 800; border: 0; padding-top: 14px; }
.wiz-total tfoot .sub td { font-weight: 400; padding-top: 2px; }
.small { font-size: .85rem; }
.wiz-dlg { border: 0; border-radius: 24px; padding: 26px; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(27, 42, 56, .45); }
.wiz-dlg::backdrop { background: rgba(27, 42, 56, .55); }
.wiz-dlg img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; float: right; margin: 0 0 8px 12px; }
.wiz-dlg h3 { margin: 0 0 10px; }
.wiz-dlg p { color: var(--muted); }
.wiz .wiz-card .calc-row:hover { border-color: var(--line); box-shadow: none; }
.order[data-order-form] { margin-top: 28px; }
.summary.summary-light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 50px -24px rgba(27, 42, 56, .35); }
.wiz-sec { margin: 20px 0 8px; font-size: .98rem; }
.wiz-i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font: italic 800 .85rem Georgia, serif; cursor: pointer; }
/* la «i» blu accanto a ogni campo; la spiegazione si apre passandoci sopra o toccandola */
.help-i { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; padding: 0; border-radius: 50%; border: 0; background: #2b6cb0; color: #fff; font: italic 800 .78rem/1 Georgia, serif; cursor: help; vertical-align: 2px; flex: none; }
.help-i:hover, .help-i:focus-visible { background: var(--navy); outline: 2px solid #9cc3ea; outline-offset: 1px; }
.help-pop { position: fixed; z-index: 70; width: min(360px, calc(100vw - 16px)); background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 40px -12px rgba(27, 42, 56, .45); border: 1px solid var(--line); border-left: 4px solid #2b6cb0; font-size: .86rem; font-weight: 400; line-height: 1.45; font-style: normal; pointer-events: none; }
.help-pop[hidden] { display: none; }
.wiz-cond { background: #eef3f8; border-radius: 14px; padding: 14px 18px; margin: 0 0 12px; font-size: .9rem; }
.wiz-cond ul { margin: 6px 0 0; padding-left: 18px; }
.wiz-cond li { margin: 3px 0; }
.wiz-sub.month { background: #eef3f8; }
.wiz-sub.month caption { color: var(--navy); }
.wiz-sub small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
/* il conto: a sinistra il nome dello stabile; colonne "una sola volta" (sabbia) e "ogni mese" (blu) con gli articoli dentro */
.wiz-total th, .wiz-total td { padding-right: 12px; }
.wiz-total td + td { font-variant-numeric: tabular-nums; }
.wiz-total thead th:first-child { text-align: left; vertical-align: bottom; }
.wiz-total th { white-space: normal; vertical-align: bottom; }
.wiz-total .c-once { background: #fbf2e4; color: var(--brown); }
.wiz-total .c-month { background: #e9f0f7; color: var(--navy); }
.wiz-total th.c-once, .wiz-total th.c-month { text-align: right; border-radius: 12px 12px 0 0; padding: 10px 12px; width: 37%; }
.wiz-total tbody td:first-child .link { display: block; margin-top: 4px; font-size: .88rem; }
.wiz-total tbody td.c-once, .wiz-total tbody td.c-month { border-bottom-color: rgba(35, 69, 97, .12); padding-left: 14px; }
.wiz-total small { font-weight: 400; }
.wt-it { display: flex; justify-content: space-between; gap: 10px; font-size: .88em; line-height: 1.6; }
.wt-it > span:first-child { white-space: normal; text-align: left; display: flex; align-items: center; gap: 6px; }
.wt-it { cursor: help; border-radius: 6px; }
.wt-it:hover, .wt-it:focus { outline: none; background: rgba(255, 255, 255, .6); }
.wt-ic { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; flex: none; }
/* la scheda dell'articolo: immagine, nome e a cosa serve */
.wt-pop { position: fixed; z-index: 60; width: 260px; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px; box-shadow: 0 18px 40px -12px rgba(27, 42, 56, .45); border: 1px solid var(--line); pointer-events: none; }
.wt-pop[hidden] { display: none; }
.wt-pop img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 8px; background: var(--sand-3); }
.wt-pop b { display: block; font-size: .95rem; }
.wt-pop p { margin: 4px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
/* il totale di ogni stabile è la cifra che conta: grande, con "CHF" davanti (niente somma di tutti) */
.wt-sum { display: block; margin-top: 6px; padding-top: 6px; border-top: 2px solid currentColor; font-weight: 900; font-size: 1.3em; text-align: right; }
.wt-sum::before { content: "CHF "; font-size: .65em; font-weight: 700; opacity: .8; }
.wiz-total tfoot .own td { padding: 12px 4px 0; font-size: .9rem; font-style: italic; color: var(--muted); text-align: right; }
.lv-own { margin: 14px 0 0; padding-top: 10px; border-top: 2px solid var(--sand); font-size: .82rem; font-style: italic; color: rgba(255, 255, 255, .8); }
.wiz-total th .th-sub { display: block; margin-top: 2px; font-size: .8rem; font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .85; color: inherit; }
.summary .wiz-total th .th-sub { font-size: .7rem; }
.wt-flat { display: block; margin-top: 4px; font-size: .8em; font-weight: 500; opacity: .85; white-space: normal; }
.summary .wiz-total { font-size: .8rem; }
.summary .wiz-total th.c-once, .summary .wiz-total th.c-month { padding: 8px 6px; font-size: .62rem; }
.summary .wiz-total th, .summary .wiz-total td { padding-left: 6px; padding-right: 6px; }
.form.tried input:invalid, .form.tried select:invalid, .form.tried textarea:invalid { border-color: var(--bad); background: #fdf1ef; }
.form.tried .check:has(input:invalid) span { color: var(--bad); }
.form.tried .field:has(:invalid) > label { color: var(--bad); }
.wiz-name:has(+ .wiz-err:not([hidden])), .wiz-name.bad { border-color: var(--bad); background: #fdf1ef; }
.wiz-note { font-size: .88rem; color: var(--ink); margin: 8px 0 0; }
.addr { display: grid; grid-template-columns: 3fr minmax(70px, 1fr) minmax(108px, 1fr) 3fr; gap: 0 14px; }
/* l'etichetta con la «i» su una riga sola, così le caselle restano allineate */
.addr .field label { white-space: nowrap; }
.addr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.addr-rename { font: inherit; font-weight: 700; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--sand); }
.pen { font-size: .88rem; }
.addr-dlv { background: var(--sand-3); border-radius: 14px; padding: 12px 14px 2px; margin: 6px 0 10px; }
.cap { background: var(--sand-3); border-radius: 16px; padding: 16px 18px; margin: 14px 0; }
.cap small { display: block; color: var(--muted); }
.cap-tiles { display: flex; gap: 10px; margin-top: 12px; }
.cap-tiles button { width: 56px; height: 56px; border-radius: 14px; border: 0; background: #fff; font: inherit; font-size: 1.4rem; font-weight: 900; color: var(--navy); box-shadow: 0 6px 14px -8px rgba(27, 42, 56, .5); cursor: pointer; }
.cap-tiles button.ok { background: var(--ok); color: #fff; }
.cap.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cap-ok { color: var(--ok); font-weight: 800; margin: 10px 0 0; }
.cap.solved .cap-tiles { opacity: .6; }
.addr-bld { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.addr-bld > b { display: block; margin-bottom: 8px; }
.site-h { margin-top: 10px; }
.field[hidden] { display: none; }
/* «Copia da…»: la domanda con le fonti, poi le caselle dei campi da copiare */
.cp { position: relative; margin: 4px 0 12px; }
.cp.ask, .cp.pick { background: #eef3f7; border: 1.5px solid #cfdde8; border-radius: 14px; padding: 12px 40px 12px 14px; }
.cp.pick { padding-right: 14px; }
.cp p { margin: 0 0 8px; font-weight: 600; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cp .chip { font: inherit; font-weight: 700; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.cp .chip:hover { background: var(--navy); color: #fff; }
.cp .chip.chip-new { position: static; border-style: dashed; }
.cp select { font: inherit; font-size: .9rem; padding: 7px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; flex: 1 1 220px; width: 100%; min-width: 0; text-overflow: ellipsis; }
[data-order-form] fieldset { min-width: 0; }
.cp-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.cp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; }
.cp-list .check { margin: 4px 0; }
.cp-list b { font-weight: 700; overflow-wrap: break-word; }
.cp-btns { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.cp.mini { margin: -2px 0 8px; font-size: .9rem; }
.field.cp-chk input { border-color: var(--sand); background: #fff6e3; }
.addr:has(.cp-chk)::after { content: attr(data-hint); grid-column: 1 / -1; font-size: .85rem; font-weight: 700; color: var(--brown); margin: -6px 0 8px; }
/* già cliente: la striscia per entrare in cima al modulo d'ordine */
.ord-login { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--sand-3); border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; }
.ord-login > p { margin: 0; flex: 1 1 260px; }
.ord-login-f { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.ord-login-f input { flex: 1 1 180px; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.ord-login .wiz-err { flex: 1 1 100%; margin: 0; }
.ord-login a { font-size: .88rem; }
/* sotto il campo e-mail: questa e-mail ha già un accesso → entra */
.wiz-known { margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: #fff6e5; border-left: 4px solid var(--sand); font-size: .9rem; }
.wiz-known p { margin: 0 0 8px; }
.wiz-known .btn { padding: 8px 16px; font-size: .9rem; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .92rem; background: #fff; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.seg-col { flex-direction: column; }
.seg-col span { display: block; }
.hint { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.form fieldset > p.hint { margin: -6px 0 12px; }
.bld-label, .lbl { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
@media (max-width: 600px) {
  .wiz-card { padding: 18px 14px; border-radius: 20px; }
  .wiz-steps li > * { font-size: .78rem; }
  .wiz-total th:first-child, .wiz-total td:first-child { width: 30%; }
  .wiz-total { font-size: .8rem; }
  .wiz-total th, .wiz-total td { padding-left: 6px; padding-right: 6px; }
  .wiz-total th.c-once, .wiz-total th.c-month { padding: 8px 6px; font-size: .64rem; }
  .summary.summary-light { padding: 18px 12px; }
  .addr { grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
  .addr .a-street, .addr .a-city { grid-column: span 2; }
}
/* telefoni stretti: la tabella diventa a righe, nome sopra e i due importi affiancati sotto */
@media (max-width: 480px) {
  /* niente trattini: le parole lunghe (soprattutto tedesche) vanno a capo intere; i titoli un po' più piccoli,
     così anche «Geschäftsbedingungen» sta su una riga */
  body { hyphens: none; overflow-wrap: break-word; }
  /* sul telefono, senza trattini, il giustificato allargherebbe troppo gli spazi: anche i testi legali a sinistra */
  .legal p, .legal li { text-align: left; }
  h1 { font-size: clamp(1.6rem, 8.2vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 6.6vw, 1.7rem); }
  .plan, li, li > div, .grid2 > *, .grid3 > * { min-width: 0; }
  .maint-points { grid-template-columns: minmax(0, 1fr); }
  .cap-tiles { gap: 8px; }
  .cap-tiles button { width: 50px; height: 50px; }
}
/* il conto in poco spazio (telefono o riepilogo laterale dell'ordine): a righe, nome sopra e i due importi affiancati sotto */
.wiz-card, .summary { container-type: inline-size; }
@container (max-width: 460px) {
  .wiz-total, .wiz-total thead, .wiz-total tbody, .wiz-total tfoot { display: block; }
  .wiz-total tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz-total th:first-child, .wiz-total td:first-child { width: auto; grid-column: 1 / -1; padding: 10px 0 6px; border: 0; }
  .wiz-total thead th:first-child { display: none; }
  .wiz-total td, .wiz-total th { min-width: 0; overflow-wrap: break-word; hyphens: none; }
  .wiz-total tbody td.c-once, .wiz-total tbody td.c-month { padding: 8px 10px; }
  .wiz-total th.c-once, .wiz-total th.c-month { width: auto; }
  .wiz-total tbody td:empty { display: none; }
  .wiz-total tfoot td:first-child { padding-top: 14px; }
  /* indietro e avanti sulla stessa riga, "cancella tutto" sotto al centro */
  .wiz-nav .wiz-reset { order: 3; flex-basis: 100%; text-align: center; }
}

.thanks { display: none; text-align: center; padding: 40px 0; }
.thanks.show { display: block; }
.thanks img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; }

/* FAQ */
.faq h2 { margin: 48px 0 16px; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.faq h2:first-child { margin-top: 0; }
.faq details { background: #fff; border-radius: 18px; margin-bottom: 12px; border: 1.5px solid var(--line); box-shadow: 0 6px 16px rgba(27, 42, 56, .06); transition: border-color .2s; }
.white .faq details { background: var(--paper); }
.faq details:hover, .faq details[open] { border-color: var(--sand); }
.faq summary { cursor: pointer; padding: 20px 70px 20px 24px; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; }
.faq details[open] summary::after { content: "−"; background: var(--sand); color: var(--ink); }
.faq details > div { padding: 0 24px 20px; color: var(--muted); font-size: 1.02rem; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.faq-nav a { background: #fff; color: var(--ink); text-decoration: none; font-weight: 650; padding: 10px 16px; border-radius: 999px; }

/* contatti */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.card { background: #fff; border-radius: 24px; padding: 26px; margin-bottom: 18px; }
.card a { font-weight: 650; }

/* testi legali */
.legal { background: #fff; border-radius: 28px; padding: 40px; }
.legal h2 { font-size: 1.3rem; margin-top: 30px; }
.draft { background: #fff4d6; border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 24px; }

/* chiusura */
.final { background: var(--sand-3); padding: 40px 0 0; overflow: hidden; }
.final-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: end; }
.final-mimmo { width: 100%; max-width: 380px; justify-self: center; }
.final-in > div { padding-bottom: 80px; }
.final-logo { height: 96px; width: auto; margin-bottom: 22px; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 14px; }
.final-sub { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--brown); font-weight: 800; margin-bottom: 26px; }
.final-small { text-align: center; padding: 70px 24px 110px; }
.final-small img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 18px; }

/* footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand img { height: 46px; width: auto; background: var(--sand-3); border-radius: 12px; padding: 6px 10px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* comparsa allo scorrimento */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; } .reveal.d4 { transition-delay: .48s; }

/* testata: il logo non si stringe; con meno spazio il tasto della demo dice solo «Demo», poi il menu va nell'hamburger */
.brand { flex: none; }
@media (max-width: 1320px) {
  .nav-demo .nd-long { display: none; }
  .nav-demo .nd-short { display: inline; }
}
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .nav-demo { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .menu { position: fixed; inset: 84px 0 auto 0; background: var(--sand-3); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; box-shadow: 0 20px 30px rgba(27, 42, 56, .12); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu a.login { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
  .login-menu summary { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; font-size: 1.05rem; }
  .login-pop { position: static; width: auto; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
  .menu .login-pop a { padding: 10px 0; border-radius: 0; }
  .langs { padding-top: 14px; }
  .lang-pop { position: static; box-shadow: none; background: transparent; display: flex; gap: 4px; padding: 6px 0 0; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 760px) { .nav-cta { display: none; } }
@media (max-width: 1060px) {
  .tools { grid-template-columns: repeat(3, 1fr); }
  .mini-story { grid-template-columns: repeat(2, 1fr); }
  .plans, .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .who, .vs, .maint { grid-template-columns: minmax(0, 1fr); }
  .leo, .order, .contact { grid-template-columns: 1fr; }
  .phone { max-width: 340px; margin: 0 auto; }
  .summary { position: static; }
  .calc { grid-template-columns: 1fr; padding: 18px; }
  .calc > .calc-row.flats, .calc > .calc-panel { margin: 0 0 10px; }
  .calc > .side-head, .calc > .calc-spacer { display: none; }
  .calc > .side { border-radius: 18px; padding: 16px; margin-bottom: 18px; }
  .calc > .side-foot { margin-bottom: 0; }
  .plans.two, .plans.two:has(> :nth-child(3)), .faq-cols { grid-template-columns: 1fr; }
  .final-in { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .final-in > div { padding-bottom: 40px; order: -1; }
  .final-logo { margin: 0 auto 18px; height: 72px; }
  .final .btns { justify-content: center; }
  .final-mimmo { max-width: 240px; }
  .product, .chapter, .chapter:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .product.flip .media, .chapter:nth-child(even) img { order: 0; }
  .product .media img { height: 300px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding-top: 24px; }
  .msg.title, :lang(it) .msg.title { font-size: 1.8rem; white-space: normal; }
  .screen { height: 520px; }
  .calc { grid-template-columns: 1fr; padding: 22px; }
  .section { padding: 64px 0; }
  .grid2 { grid-template-columns: 1fr; }
  .form, .legal { padding: 22px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }

  .brand img { height: 48px; }
  .plans.two .plan, .plans.two:has(> :nth-child(3)) .plan { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .plan .eyebrow, .plan h3 { overflow-wrap: break-word; hyphens: none; }
  .plan-img { width: 96px; height: 96px; }
  .calc-row { grid-template-columns: 48px 1fr; gap: 10px 12px; }
  .calc-row .thumb { width: 48px; height: 48px; font-size: 1.4rem; }
  .calc-row .stepper, .calc-row .incl { grid-column: 1 / -1; justify-self: end; }
  .replies.people span { font-size: .74rem; padding: 8px 6px; }   /* «amministratore» intero */
  .tool h3 { font-size: .92rem; }   /* «M-Immo BackOffice» intero nelle tessere a due colonne */
  .mini-story { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-story a > span:not(.pic) { display: none; }
  .mini-story b { font-size: .9rem; padding: 0 10px; }
  .mini-story i { font-size: .62rem; padding: 3px 7px; left: 40px; bottom: 9px; }
  /* calendario della Home: colonne più strette, il testo del lavoro va a capo invece di spingere fuori l'etichetta */
  .cal { padding: 14px; }
  .cal-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px 2px; }
  .cal-task b { overflow-wrap: break-word; hyphens: none; }
  .st { font-size: .74rem; padding: 4px 8px; }
  .nav-cta { display: none; }
  .nav-demo { padding: 8px 14px; font-size: .85rem; margin-right: -12px; }
  .nav-demo .nd-long { display: none; }
  .nav-demo .nd-short { display: inline; }
  .plans, .facts, .footer-grid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tool p { font-size: .8rem; }
  .said > img { width: 48px; height: 48px; }
}
/* telefoni piccoli (320–360 px): logo e immagini delle schede un po' più piccoli */
@media (max-width: 360px) {
  .brand img { height: 40px; }
  .faq h2 { display: block; }   /* il titolo può andare a capo (in riga flessibile non poteva) */
  .plans.two .plan, .plans.two:has(> :nth-child(3)) .plan { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .plans.two .plan .plan-img, .plans.two:has(> :nth-child(3)) .plan-img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .chat .msg, .b, .replies, .replies.people a { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}
.hw { white-space: nowrap; }

/* Mimmo risponde: tasto in basso a destra e finestra della chat */
.mchat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 700 .92rem/1 inherit; font-family: inherit; box-shadow: 0 12px 28px -8px rgba(27, 42, 56, .55); cursor: pointer; transition: transform .15s; }
.mchat-fab:hover { transform: translateY(-2px); }
.mchat-fab img { width: 44px; height: 44px; border-radius: 50%; background: var(--sand-3); object-fit: cover; }
body.mchat-open .mchat-fab { display: none; }
.mchat { position: fixed; right: 18px; bottom: 18px; z-index: 56; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 100px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: 0 24px 60px -16px rgba(27, 42, 56, .55); border: 1px solid var(--line); overflow: hidden; }
.mchat[hidden] { display: none; }
.mchat header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--navy); color: #fff; }
.mchat header img { width: 40px; height: 40px; border-radius: 50%; background: var(--sand-3); }
.mchat header div { flex: 1; min-width: 0; line-height: 1.2; }
.mchat header small { display: block; font-size: .75rem; opacity: .8; }
.mchat header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.mchat header button:hover { background: rgba(255, 255, 255, .25); }
.mchat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--sand-3); }
.mchat-b { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.45; white-space: pre-line; overflow-wrap: break-word; }
.mchat-b.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.mchat-b.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.mchat-b a { color: inherit; font-weight: 600; }
.mchat-b.typing { display: inline-flex; padding: 12px 14px; }
.mchat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.mchat-form textarea { flex: 1; resize: none; font: inherit; font-size: .92rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; max-height: 120px; }
.mchat-form textarea:focus { outline: none; border-color: var(--navy); }
.mchat-form button { flex: none; width: 44px; border: 0; border-radius: 14px; background: var(--navy); color: #fff; font-size: 1.05rem; cursor: pointer; }
.mchat-note { margin: 0; padding: 0 12px 10px; font-size: .7rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 600px) {
  .mchat-fab { right: 12px; bottom: 12px; padding-right: 6px; }
  .mchat-fab span { display: none; }
  .mchat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media print { .mchat-fab, .mchat { display: none !important; } }