/* Demo interattiva del gestionale (23/11/2026).
   Fuori: lo stile di bewpot.com (notte, viola, arancio, titoli Georgia).
   Dentro (.dm-app): i colori del gestionale vero (grigio caldo, arancio rame, menu grafite),
   così chi prova vede quello che avrà. Regola: si capisce a 90 anni. Testi grandi, pulsanti alti. */

.dm-body { --app-bg: #e6e3df; --app-card: #f7f6f3; --app-accent: #b9591b; --app-soft: #f6e6da; --app-side: #1f1e1d; --app-ink: #24211f; --app-muted: #6b645e; }

/* 1. Apertura */
.dm-hero { min-height: auto; padding-bottom: 5rem !important; }
.dm-hero .gx-wrap { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
.dm-hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.dm-hero-points li { position: relative; padding-left: 1.9rem; color: #e9ebfb; font-size: 1.05rem; line-height: 1.5; }
.dm-hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gx-aqua); font-weight: 900; }

.dm-setup { background: #fff; color: var(--gx-ink); border-radius: 30px; padding: 2.2rem; box-shadow: 0 30px 70px rgba(5, 6, 30, .35); display: grid; gap: 1rem; font-family: Inter, sans-serif; }
.dm-setup h2 { font-size: 1.8rem; margin: 0; }
.dm-setup h2 small { font-family: Inter, sans-serif; font-size: 1rem; font-weight: 600; color: var(--gx-muted); }
.dm-setup p { margin: 0; color: var(--gx-muted); line-height: 1.5; }
.dm-setup label, .dm-setup legend { display: grid; gap: .4rem; font-weight: 800; font-size: 1.02rem; }
.dm-setup label small, .dm-setup fieldset > small { font-weight: 500; color: var(--gx-muted); font-size: .9rem; }
.dm-setup fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.dm-setup input { min-width: 0; width: 100%; box-sizing: border-box; min-height: 52px; border: 2px solid #dcdff0; border-radius: 14px; padding: 0 1rem; font: inherit; font-size: 1.05rem; color: var(--gx-ink); background: #fbfbff; }
.dm-setup input:focus { outline: 3px solid rgba(124, 58, 237, .25); border-color: var(--gx-violet); }
.dm-setup-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.dm-setup .gx-btn { margin-top: .4rem; }

/* 2. La prova */
.dm-stage { background: linear-gradient(160deg, #f7f5ff 0%, #eef9f8 60%, #fff6ea 100%); color: var(--gx-ink); padding: 5rem 3% 6rem !important; font-family: Inter, sans-serif; }
.dm-stage-head { max-width: 1400px; margin: 0 auto 1.4rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.dm-stage-head h2 { margin: 0; }
.dm-stage .gx-kicker { color: var(--gx-violet); }
.dm-link { background: none; border: 2px solid rgba(16, 20, 58, .15); border-radius: 999px; padding: .7rem 1.2rem; font: inherit; font-weight: 700; color: var(--gx-ink); cursor: pointer; }
.dm-link:hover { border-color: var(--gx-violet); }

.dm-missions { max-width: 1400px; margin: 0 auto 1rem; }
.dm-miss { background: #fff; border-radius: 20px; box-shadow: 0 10px 28px rgba(16, 20, 58, .06); padding: 0 1.4rem; }
.dm-miss summary { cursor: pointer; padding: 1rem 0; font-size: 1.1rem; display: flex; gap: .8rem; align-items: center; list-style: none; }
.dm-miss summary::-webkit-details-marker { display: none; }
.dm-miss summary span { color: var(--gx-muted); font-weight: 600; }
.dm-miss summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--gx-violet); }
.dm-miss[open] summary::after { content: "–"; }
.dm-miss ol { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.dm-miss li { display: flex; align-items: center; gap: .7rem; font-size: 1rem; line-height: 1.35; color: var(--gx-muted); }
.dm-miss li span { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 2px solid #d6d9ee; display: grid; place-items: center; font-weight: 900; color: #fff; }
.dm-miss li.is-done { color: var(--gx-ink); }
.dm-miss li.is-done span { background: #19a974; border-color: #19a974; }

.dm-timebar { max-width: 1400px; margin: 0 auto 1rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding: 1rem 1.2rem 1rem 1.6rem; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #11163e 0%, #2a1f6e 60%, #4d27ad 100%); box-shadow: 0 18px 40px rgba(16, 20, 58, .18); }
.dm-clock { display: flex; align-items: baseline; gap: .9rem; }
.dm-clock-day { font-family: Georgia, serif; font-size: 1.35rem; text-transform: capitalize; }
.dm-clock-hour { font-family: Georgia, serif; font-size: 2.3rem; font-weight: 700; color: var(--gx-aqua); }
.dm-next { flex: 1 1 260px; color: #d5d9f2; font-size: 1.02rem; line-height: 1.4; }
.dm-next small { color: var(--gx-sun); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.dm-go { min-height: 60px; font-size: 1.12rem; }

.dm-layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.4rem; align-items: start; }

/* Il gestionale (colori di quello vero) */
.dm-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 720px; background: var(--app-bg); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(16, 20, 58, .16); color: var(--app-ink); }
.dm-side { background: var(--app-side); padding: 1.2rem .8rem; display: flex; flex-direction: column; gap: .25rem; }
.dm-side-brand { color: #fff; font-weight: 800; font-size: 1.05rem; padding: .3rem .8rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: .6rem; }
.dm-side button { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: 0 .8rem; border: 0; border-radius: 12px; background: none; color: #d8d3cd; font: inherit; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; }
.dm-side button span { width: 1.4rem; text-align: center; }
.dm-side button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dm-side button.is-on { background: var(--app-accent); color: #fff; }
.dm-page { padding: 1.8rem 2rem 2.2rem; min-width: 0; outline: none; }
.dm-ph h3 { font-family: Inter, sans-serif; font-size: 1.75rem; letter-spacing: -.02em; margin: 0 0 .3rem; }
.dm-ph p { margin: 0 0 1.3rem; color: var(--app-muted); font-size: 1.05rem; line-height: 1.5; max-width: 760px; }
.dm-sub { font-size: 1.2rem; margin: 1.8rem 0 .8rem; }
.dm-hint { color: var(--app-muted); font-size: .98rem; line-height: 1.5; margin: .8rem 0 0; }
.dm-empty { color: var(--app-muted); margin: .4rem 0; }
.dm-big { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin: 0 0 .6rem; }
.dm-big small { font-size: 1.05rem; color: var(--app-muted); font-weight: 600; }
.dm-big2 { font-size: 1.15rem; line-height: 1.5; margin: .6rem 0 1rem; }
.dm-warn { background: #fdecea; color: #9b2c1f; border-radius: 12px; padding: .7rem .9rem; margin: .5rem 0; font-weight: 600; }
.dm-ok { color: #19794f; font-weight: 800; }

.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 52px; padding: 0 1.2rem; margin: .3rem .4rem .3rem 0; border-radius: 14px; border: 2px solid #d7d1ca; background: var(--app-card); color: var(--app-ink); font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer; text-align: center; }
.dm-btn:hover { border-color: var(--app-accent); }
.dm-btn--main { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
.dm-btn--main:hover { background: #a24c15; }
.dm-btn--sm { min-height: 42px; font-size: .95rem; padding: 0 .9rem; }
.dm-btn--wide { display: flex; width: 100%; margin: .5rem 0; min-height: 60px; font-size: 1.1rem; }
.dm-btn.is-on { background: var(--app-soft); border-color: var(--app-accent); }
.dm-link2 { background: none; border: 0; color: var(--app-accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: .7rem .2rem; font-size: 1rem; }

/* Home */
.dm-hero-card { display: flex; gap: 1.4rem; align-items: center; background: var(--app-card); border-radius: 22px; padding: 1.6rem; box-shadow: 0 8px 22px rgba(36, 33, 31, .06); }
.dm-ill { font-size: 3.4rem; width: 92px; height: 92px; flex: 0 0 92px; border-radius: 24px; background: var(--app-soft); display: grid; place-items: center; }
.dm-hero-card p { margin: 0 0 .6rem; font-size: 1.05rem; line-height: 1.5; }
.dm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1rem; }
.dm-kpi { background: var(--app-card); border-radius: 18px; padding: 1.1rem 1.2rem; }
.dm-kpi small { display: block; color: var(--app-muted); font-size: .95rem; margin-bottom: .3rem; }
.dm-kpi b { font-size: 1.6rem; }
.dm-try { margin-top: 1.2rem; background: #fff; border: 2px dashed #d6c4b6; border-radius: 22px; padding: 1.4rem; }
.dm-try h4 { margin: 0 0 .6rem; font-size: 1.2rem; }

/* Calendario: nero come quello vero, verde libera, rosso prenotata, × chiusa */
.dm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: .8rem; font-weight: 600; }
.dm-legend span::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: .4rem; vertical-align: -2px; }
.lg-free::before { background: #1f8a4c; }
.lg-booked::before { background: #d64541; }
.lg-mine::before { background: #2f6fd6; }
.lg-closed::before { background: repeating-linear-gradient(45deg, #333 0 4px, #555 4px 8px); }
.dm-legend .dm-btn { margin-left: auto; }
.dm-gridwrap { overflow-x: auto; border-radius: 18px; background: #111; padding: .6rem; -webkit-overflow-scrolling: touch; }
.dm-grid { display: grid; gap: 4px; min-width: calc(120px + var(--days) * 58px); }
.dm-gr { display: grid; grid-template-columns: 120px repeat(var(--days), minmax(54px, 1fr)); gap: 4px; }
.dm-rn { position: sticky; left: 0; z-index: 3; background: #111; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 0 .5rem; }
.dm-rn b { font-size: 1.02rem; }
.dm-rn small { color: #9b958f; font-size: .78rem; }
.dm-gh { color: #cfc9c3; text-align: center; padding: .3rem 0; border-radius: 8px; line-height: 1.1; }
.dm-gh small { display: block; font-size: .75rem; text-transform: uppercase; }
.dm-gh b { font-size: 1.1rem; }
.dm-gh.is-we { color: #fff; }
.dm-gh.is-today { background: #6b3410; color: #fff; }
.dm-c { position: relative; height: 58px; border: 0; border-radius: 8px; font: inherit; cursor: pointer; color: #fff; padding: 0; overflow: visible; }
.dm-c:hover { outline: 3px solid #ffd84d; z-index: 4; }
.dm-c.is-free { background: #1f8a4c; }
.dm-c.is-booked { background: #d64541; border-radius: 0; }
.dm-c.is-booked.is-start { border-radius: 10px 0 0 10px; }
.dm-c.is-booked.is-end { border-radius: 0 10px 10px 0; }
.dm-c.is-booked.is-start.is-end { border-radius: 10px; }
.dm-c.is-mine { background: #2f6fd6; }
.dm-c.is-closed { background: repeating-linear-gradient(45deg, #2a2a2a 0 6px, #3a3a3a 6px 12px); color: #ff6b5e; font-size: 1.6rem; font-weight: 800; }
.dm-c.is-past { opacity: .45; }
.dm-c.is-sel { outline: 4px solid #ffd84d; outline-offset: -4px; z-index: 4; }
.dm-price { font-weight: 800; font-size: 1rem; }
.dm-price i { font-style: normal; font-size: .75rem; margin-left: 1px; }
.dm-bar { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-weight: 800; font-size: .92rem; z-index: 2; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.dm-selbar { position: sticky; bottom: 1rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .8rem; padding: .7rem 1rem; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); font-weight: 800; }
.dm-selbar span { margin-right: .6rem; }
.dm-autoprice { margin-top: 1.4rem; background: var(--app-card); border-radius: 22px; padding: 1.4rem 1.5rem; }
.dm-autoprice h4 { margin: 0 0 .5rem; font-size: 1.25rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.dm-rules { margin: .4rem 0 1rem; padding-left: 1.2rem; line-height: 1.8; font-size: 1.04rem; }
.dm-state { display: inline-block; font-size: .92rem; font-weight: 900; letter-spacing: .03em; }
.dm-state.on { color: #19794f; }
.dm-state.off { color: #7d7671; }

/* Arrivi e partenze */
.dm-arr { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.dm-arr-card { background: var(--app-card); border-radius: 20px; padding: 1.2rem; }
.dm-arr-card h4 { margin: 0 0 .7rem; font-size: 1.2rem; display: flex; gap: .5rem; align-items: center; }
.dm-arr-card h4 b { margin-left: auto; background: var(--app-soft); color: var(--app-accent); border-radius: 999px; min-width: 2rem; text-align: center; padding: .1rem .5rem; }
.dm-arr-row { display: grid; gap: .15rem; width: 100%; text-align: left; background: #fff; border: 2px solid transparent; border-radius: 14px; padding: .8rem .9rem; margin-bottom: .5rem; font: inherit; cursor: pointer; color: var(--app-ink); }
.dm-arr-row:hover { border-color: var(--app-accent); }
.dm-arr-row b { font-size: 1.08rem; }
.dm-arr-row span, .dm-arr-row small { color: var(--app-muted); }
.dm-board { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.dm-board li { display: grid; grid-template-columns: 130px 1fr 1fr; gap: .8rem; background: var(--app-card); border-radius: 12px; padding: .7rem 1rem; font-size: 1rem; }
.dm-board b { text-transform: capitalize; }

/* Prenotazioni */
.dm-tablewrap { overflow-x: auto; background: var(--app-card); border-radius: 18px; }
.dm-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.dm-table th { text-align: left; padding: .8rem .9rem; color: var(--app-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid #e2dcd5; white-space: nowrap; }
.dm-table td { padding: .75rem .9rem; border-bottom: 1px solid #ebe6e0; vertical-align: middle; white-space: nowrap; }
.dm-table td small { display: block; color: var(--app-muted); }
.dm-table td b + small { margin-top: .1rem; }
.dm-table--sm { margin-top: 1rem; background: #fff; border-radius: 12px; }
.dm-ch { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 800; color: #fff; }
.ch-booking { background: #003580; }
.ch-airbnb { background: #e0484f; }
.ch-expedia { background: #1f3b8f; }
.ch-sito { background: var(--app-accent); }
.ch-tu { background: #2f6fd6; }

/* Automazioni */
.dm-autos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.dm-auto { background: var(--app-card); border-radius: 20px; padding: 1.2rem 1.3rem; border: 2px solid transparent; display: flex; flex-direction: column; }
.dm-auto.is-on { border-color: rgba(25, 121, 79, .25); }
.dm-auto h4 { margin: .4rem 0 .4rem; font-size: 1.15rem; }
.dm-auto p { margin: 0 0 .8rem; color: var(--app-muted); line-height: 1.5; font-size: 1rem; flex: 1; }
.dm-auto-actions { display: flex; align-items: center; flex-wrap: wrap; }
.dm-edit { display: grid; gap: .6rem; margin-top: .8rem; }
.dm-edit label { display: grid; gap: .4rem; font-weight: 700; }
.dm-edit small { font-weight: 500; color: var(--app-muted); }
.dm-page textarea, .dm-page input, .dm-page select, .dm-modal input { width: 100%; box-sizing: border-box; border: 2px solid #d7d1ca; border-radius: 12px; padding: .75rem .9rem; font: inherit; font-size: 1.02rem; background: #fff; color: var(--app-ink); }
.dm-page input, .dm-page select, .dm-modal input { min-height: 52px; }
.dm-page textarea:focus, .dm-page input:focus, .dm-page select:focus, .dm-modal input:focus { outline: 3px solid rgba(185, 89, 27, .25); border-color: var(--app-accent); }
.dm-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.2rem; padding: 1rem 1.2rem; background: var(--app-card); border-radius: 16px; }

/* Pulizie, spese, recensioni, social */
.dm-two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.dm-box { background: var(--app-card); border-radius: 20px; padding: 1.3rem 1.4rem; min-width: 0; }
.dm-box h4 { margin: 0 0 .8rem; font-size: 1.2rem; }
.dm-box h4 small { font-weight: 600; color: var(--app-muted); font-size: .95rem; }
.dm-plan, .dm-people, .dm-exps, .dm-checks { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; }
.dm-plan li { background: #fff; border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .2rem; }
.dm-plan b { text-transform: capitalize; }
.dm-people li { background: #fff; border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .15rem; }
.dm-people span { color: var(--app-muted); }
.dm-preview { background: #fff; border-left: 4px solid var(--app-accent); border-radius: 12px; padding: .8rem 1rem; margin: .8rem 0; }
.dm-preview p { margin: .3rem 0 .6rem; line-height: 1.5; }
.dm-expform { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dm-expform input { flex: 1 1 200px; width: auto !important; }
.dm-expform .dm-btn { margin: 0; }
.dm-exps li { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; background: #fff; border-radius: 12px; padding: .6rem .9rem; }
.dm-cat { font-size: .85rem; font-weight: 700; background: var(--app-soft); color: var(--app-accent); padding: .15rem .55rem; border-radius: 999px; }
.dm-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: 1.08rem; }
.dm-sum li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid #e6e0d9; }
.dm-sum .dm-left { border: 0; font-size: 1.5rem; padding-top: .7rem; }
.dm-sum .dm-left b { color: #19794f; }
.dm-revs { display: grid; gap: .9rem; }
.dm-rev { background: var(--app-card); border-radius: 20px; padding: 1.2rem 1.4rem; display: grid; gap: .6rem; }
.dm-rev header { display: flex; gap: .7rem; align-items: center; }
.dm-score { margin-left: auto; font-weight: 900; font-size: 1.1rem; }
.dm-quote { font-family: Georgia, serif; font-size: 1.15rem; margin: 0; line-height: 1.45; }
.dm-rev label { display: grid; gap: .4rem; font-weight: 700; }
.dm-checks li { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; background: var(--app-card); border-radius: 12px; padding: .7rem 1rem; }
.dm-checks span { color: var(--app-muted); }
.dm-post { background: var(--app-card); border-radius: 20px; padding: 1rem 1rem 1.3rem; display: grid; gap: .5rem; align-content: start; }
.dm-post small { font-weight: 800; color: var(--app-accent); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.dm-post p { margin: 0 0 .4rem; line-height: 1.5; font-size: 1.04rem; }
.dm-post-img { height: 170px; border-radius: 14px; }
.dm-post-img--room { background: radial-gradient(circle at 30% 35%, #ffe3a3 0 18%, transparent 19%), radial-gradient(circle at 62% 60%, #c9733b 0 14%, transparent 15%), linear-gradient(135deg, #f4d9b8, #e7b98c 60%, #c98b5a); }
.dm-post-img--town { background: radial-gradient(circle at 20% 25%, #fff6 0 3%, transparent 4%), radial-gradient(circle at 70% 18%, #fff6 0 2%, transparent 3%), linear-gradient(180deg, #1c2557 0%, #3a2f7a 55%, #c45d3a 100%); }

/* Il tuo sito: colori diversi, è la pagina che vede l'ospite */
.dm-site { max-width: 560px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(36, 33, 31, .1); }
.dm-site-top { background: linear-gradient(135deg, #2f5d50, #4f8a73); color: #fff; padding: 1.3rem 1.5rem; display: grid; gap: .2rem; }
.dm-site-top b { font-family: Georgia, serif; font-size: 1.5rem; }
.dm-site-form { padding: 1.3rem 1.5rem 1.6rem; display: grid; gap: .8rem; }
.dm-site-form label { display: grid; gap: .35rem; font-weight: 700; }
.dm-site-form .gx-btn { width: 100%; }
.dm-total { font-size: 1.2rem; margin: .2rem 0; }

/* Contatore − / + */
.dm-stepper { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin: .4rem 0; }
.dm-stepper span { flex: 1; }
.dm-stepper button { width: 56px; height: 56px; border-radius: 14px; border: 2px solid #d7d1ca; background: #fff; font-size: 1.6rem; font-weight: 800; cursor: pointer; color: var(--app-ink); }
.dm-stepper b { min-width: 2.2rem; text-align: center; font-size: 1.4rem; }

/* Telefoni */
.dm-phones { position: sticky; top: 100px; display: grid; gap: .7rem; }
.dm-phones-head { display: none; }
.dm-ptabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.dm-ptabs button { position: relative; min-height: 54px; border-radius: 14px; border: 2px solid rgba(16, 20, 58, .1); background: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--gx-ink); display: flex; align-items: center; justify-content: center; gap: .35rem; }
.dm-ptabs button.is-on { background: var(--gx-night); color: #fff; border-color: var(--gx-night); }
.dm-ptabs i, .dm-mb-phones i { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--gx-orange); color: #fff; font-style: normal; font-size: .78rem; display: grid; place-items: center; padding: 0 5px; }
.dm-phone { width: 100%; box-sizing: border-box; }
.dm-phone .gx-phone-screen { height: 600px; display: flex; flex-direction: column; }
.dm-phone .gx-phone-top { flex: 0 0 auto; }
.dm-chat { flex: 1; overflow-y: auto; }
.dm-via { display: block; font-style: normal; font-size: .72rem; font-weight: 800; color: #8a6d00; margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .04em; }
.dm-back { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 .3rem 0 0; }
.dm-threads { flex: 1; overflow-y: auto; background: #fff; }
.dm-thread { display: grid; grid-template-columns: 38px 1fr auto; gap: .7rem; align-items: center; width: 100%; border: 0; border-bottom: 1px solid #eef0f2; background: #fff; padding: .8rem .9rem; text-align: left; font: inherit; cursor: pointer; color: #111b21; }
.dm-thread:hover { background: #f5f6f6; }
.dm-thread b { display: block; font-size: .98rem; }
.dm-thread small { display: block; color: #667781; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.dm-thread time { font-size: .72rem; color: #667781; white-space: nowrap; align-self: start; padding-top: .2rem; }
.dm-thread .gx-avatar, .dm-phone .gx-avatar { color: #fff; flex: 0 0 38px; }
.dm-chips { flex: 0 0 auto; background: #f0f2f5; padding: .6rem; display: grid; gap: .4rem; }
.dm-chips small { color: #54656f; font-weight: 700; }
.dm-chips button { min-height: 46px; border-radius: 12px; border: 2px solid #c9d3d8; background: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-align: left; padding: 0 .8rem; color: #111b21; }
.dm-chips button:hover { border-color: #25a244; }
.dm-tg-top { background: #2a7ab0 !important; }
.dm-tg-chat { background: #cfe0ea; }
.dm-tg { background: #fff; max-width: 94%; }

/* Scheda del giorno */
.dm-modal { position: fixed; inset: 0; z-index: 2200; background: rgba(10, 10, 20, .6); display: grid; place-items: center; padding: 1rem; font-family: Inter, sans-serif; }
.dm-modal[hidden] { display: none; }
.dm-modal-box { width: min(520px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--app-card); color: var(--app-ink); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.dm-sheet-head { padding: 1.4rem 1.5rem 1rem; border-bottom: 1px solid #e2dcd5; }
.dm-sheet-head h3 { margin: 0 0 .5rem; font-family: Inter, sans-serif; font-size: 1.4rem; text-transform: none; }
.dm-status { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.dm-sheet-body { padding: 1rem 1.5rem 1.5rem; display: grid; gap: .5rem; }
.dm-sheet-body label { display: grid; gap: .35rem; font-weight: 700; }
.dm-sheet-body label small { font-weight: 500; color: var(--app-muted); }
.dm-done { font-size: 2rem; font-weight: 900; color: #19794f; margin: .3rem 0 0; }
.dm-modal-box { overscroll-behavior: contain; }

/* Avviso */
.dm-toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 2300; width: min(620px, calc(100% - 2rem)); box-sizing: border-box; background: var(--gx-night); color: #fff; border-radius: 18px; padding: 1rem 3rem 1rem 1.2rem; box-shadow: 0 20px 50px rgba(5, 6, 30, .45); font-family: Inter, sans-serif; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.dm-toast[hidden] { display: none; }
.dm-toast p { margin: 0; flex: 1 1 260px; font-size: 1.02rem; line-height: 1.45; }
.dm-toast .dm-btn { margin: 0; background: var(--gx-orange); border-color: var(--gx-orange); color: #fff; }
.dm-toast-x { position: absolute; top: .5rem; right: .5rem; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 1.2rem; cursor: pointer; }

.dm-mobilebar { display: none; }

/* Dopo la prova */
.dm-after .gx-wrap { align-items: center; }

/* Tablet e telefono */
@media (max-width: 1180px) {
  .dm-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .dm-app { grid-template-columns: 1fr; }
  .dm-side { flex-direction: row; overflow-x: auto; padding: .6rem; gap: .3rem; }
  .dm-side-brand { display: none; }
  .dm-side button { flex: 0 0 auto; white-space: nowrap; }
  .dm-miss ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .dm-body { padding-bottom: 84px; }
  .dm-hero .gx-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .dm-layout { grid-template-columns: 1fr; }
  .dm-go { display: none; }
  .dm-timebar { position: static; }
  .dm-phones { position: fixed; inset: 0; z-index: 2050; background: rgba(10, 12, 30, .96); padding: 1rem; overflow-y: auto; display: none; align-content: start; }
  .dm-phones-open .dm-phones { display: grid; padding-bottom: 96px; }
  .dm-phones-open { overflow: hidden; }
  .dm-phones-head { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 1.2rem; }
  .dm-phones-close { width: 52px; height: 52px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.3rem; cursor: pointer; }
  .dm-phone { padding: 8px; border-radius: 30px; max-width: 460px; margin: 0 auto; }
  .dm-phone .gx-phone-screen { height: calc(100vh - 200px); border-radius: 24px; }
  .dm-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2100; gap: .5rem; align-items: center; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--gx-night); color: #fff; font-family: Inter, sans-serif; box-shadow: 0 -8px 24px rgba(0, 0, 0, .25); }
  .dm-mb-time { flex: 1; font-size: 1rem; line-height: 1.2; }
  .dm-mb-time b { display: block; text-transform: capitalize; }
  .dm-mb-phones, .dm-mb-go { position: relative; min-height: 56px; border-radius: 14px; border: 0; font: inherit; font-weight: 800; font-size: 1.02rem; padding: 0 1rem; cursor: pointer; }
  .dm-mb-phones { background: rgba(255, 255, 255, .14); color: #fff; }
  .dm-mb-go { background: var(--gx-orange); color: #fff; }
  .dm-toast { bottom: 96px; }
}
@media (max-width: 760px) {
  .dm-stage { padding: 3.5rem 3% 4rem !important; }
  .dm-setup { padding: 1.5rem; border-radius: 24px; }
  .dm-setup-rooms { grid-template-columns: 1fr; }
  .dm-app { border-radius: 20px; min-height: 0; }
  .dm-page { padding: 1.2rem 1rem 1.6rem; }
  .dm-ph h3 { font-size: 1.5rem; }
  .dm-kpis, .dm-arr, .dm-two { grid-template-columns: 1fr; }
  .dm-hero-card { flex-direction: column; align-items: flex-start; }
  .dm-big { font-size: 1.4rem; }
  .dm-board li { grid-template-columns: 1fr; gap: .2rem; }
  .dm-miss ol { grid-template-columns: 1fr; }
  .dm-legend .dm-btn { margin-left: 0; }
  .dm-gr { grid-template-columns: 96px repeat(var(--days), 56px); }
  .dm-grid { min-width: calc(96px + var(--days) * 60px); }
  .dm-modal { place-items: end center; padding: 0; }
  .dm-modal-box { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .dm-clock-hour { font-size: 1.9rem; }
}

/* Stampa: solo il report */
@media print {
  body * { visibility: hidden; }
  #dm-report, #dm-report * { visibility: visible; }
  #dm-report { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
  #dm-report .dm-btn { display: none; }
}

/* ===== Versione 2 (23/11): guida passo passo, più snella ===== */
.dm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dm-setup h2 { font-size: 1.6rem; }
.dm-setup-more summary { cursor: pointer; color: var(--gx-violet); font-weight: 700; padding: .3rem 0; }
.dm-setup-more .dm-setup-rooms { margin-top: .6rem; }
.dm-setup-note { font-size: .95rem; }

.dm-stage { padding-top: 4rem !important; }
.dm-layout { grid-template-columns: minmax(0, 1fr) 400px; }
.dm-right { position: sticky; top: 88px; display: grid; gap: .8rem; max-height: calc(100vh - 100px); overflow-y: auto; padding: 0 .3rem .5rem 0; }
.dm-phones { position: static; gap: .5rem; }
.dm-phones-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.dm-phones-close { display: none; }
.dm-phones-note { display: none; }
.dm-pcap { margin: 0; color: var(--gx-muted); font-size: .95rem; line-height: 1.4; }
.dm-phone .gx-phone-screen { height: 440px; }
.dm-phone { padding: 10px; border-radius: 34px; }
.dm-phone .gx-phone-screen { border-radius: 26px; }

/* La guida */
.dm-coach-card { background: #fff; border-radius: 22px; padding: 1.2rem 1.3rem 1.3rem; box-shadow: 0 14px 34px rgba(16, 20, 58, .12); border: 3px solid var(--gx-orange); }
.dm-coach-top { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.dm-coach-n { font-weight: 800; color: var(--gx-orange); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.dm-dots { display: flex; gap: 4px; }
.dm-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe1ef; }
.dm-dots i.is-now { background: var(--gx-orange); }
.dm-dots i.is-done { background: #19a974; }
.dm-coach-top .dm-link2 { margin-left: auto; font-size: .9rem; color: var(--gx-muted); padding: .3rem 0; }
.dm-coach-card h3 { font-family: Georgia, serif; font-size: 1.5rem; margin: .5rem 0 .4rem; }
.dm-coach-card p { margin: 0 0 1rem; font-size: 1.06rem; line-height: 1.5; color: var(--gx-ink); }
.dm-coach-card .gx-btn { width: 100%; min-height: 60px; }
.dm-coach-after { background: #e8f8ef; border-radius: 14px; padding: .8rem .9rem; }
.dm-coach-after span { color: #19794f; font-weight: 900; }
.dm-coach-free { background: #fff; border-radius: 22px; padding: 1.1rem 1.2rem; box-shadow: 0 10px 28px rgba(16, 20, 58, .08); display: grid; gap: .6rem; }
.dm-coach-free p { margin: 0; line-height: 1.5; }
.dm-coach-free .dm-btn { margin: 0; background: var(--gx-orange); border-color: var(--gx-orange); }

/* L'orologio, in cima al gestionale */
.dm-main { min-width: 0; display: flex; flex-direction: column; }
.dm-clockbar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem 2rem; background: #d9d4ce; border-bottom: 1px solid #cfc8c0; }
.dm-clockbar .dm-clock { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: 1.08rem; }
.dm-clockbar .dm-clock span { font-size: 1.3rem; }
.dm-clockbar .dm-go { margin: 0; min-height: 48px; font-size: 1rem; background: var(--app-side); border-color: var(--app-side); color: #fff; }
.dm-reset { max-width: 1400px; margin: 1rem auto 0; text-align: right; }

/* Prenotazione appena arrivata: si accende per farsi trovare */
.dm-c.is-flash { animation: dmflash 1.2s ease-in-out 3; }
@keyframes dmflash { 50% { background: #ffd84d; color: #10143a; } }

.dm-glink { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; background: var(--app-card); border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.dm-glink label { flex: 1 1 280px; display: grid; gap: .35rem; font-weight: 700; }
.dm-glink small { font-weight: 500; color: var(--app-muted); }
.dm-glink .dm-btn { margin: 0; }

@media (max-width: 1180px) {
  .dm-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 980px) {
  .dm-layout { display: flex; flex-direction: column; }
  .dm-right { display: contents; }
  .dm-coach { order: -1; }
  .dm-clockbar { padding: .7rem 1rem; }
  .dm-clockbar .dm-go { display: none; }
  .dm-phones { position: fixed; }
  .dm-phones-head { color: #fff; }
  .dm-phones-close { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem; width: auto; height: auto; border-radius: 14px; border: 0; background: var(--gx-orange); color: #fff; font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; }
  .dm-phones-note { display: block; margin: 0; background: #e8f8ef; color: #10143a; border-radius: 14px; padding: .8rem .9rem; line-height: 1.45; }
  .dm-pcap { color: #c8cdea; }
  .dm-phone .gx-phone-screen { height: calc(100vh - 300px); min-height: 360px; }
}
.dm-stage, .dm-coach, #dm-app { scroll-margin-top: 84px; }
.dm-bar { max-width: calc(var(--n, 1) * (100% + 4px) - 14px); overflow: hidden; text-overflow: ellipsis; }
/* Colonna destra al computer: guida in alto, il telefono prende tutto lo spazio che resta */
@media (min-width: 981px) {
  .dm-right { display: flex; flex-direction: column; height: calc(100vh - 100px); max-height: none; overflow-y: auto; }
  .dm-coach { flex: 0 0 auto; }
  .dm-phones { flex: 1 1 auto; min-height: 330px; display: flex; flex-direction: column; }
  .dm-phone { flex: 1 1 auto; min-height: 0; display: flex; }
  .dm-phone .gx-phone-screen { height: auto; flex: 1 1 auto; min-height: 0; }
}
/* Guida in striscia orizzontale, sempre visibile sopra il gestionale */
.dm-coach { max-width: 1400px; margin: 0 auto 1rem; position: sticky; top: 76px; z-index: 60; }
.dm-coach-card { display: flex; align-items: center; gap: 1.4rem; padding: 1rem 1.4rem; border-radius: 20px; }
.dm-coach-body { flex: 1; min-width: 0; }
.dm-coach-card h3 { font-size: 1.35rem; margin: .25rem 0 .2rem; }
.dm-coach-card p { margin: 0; }
.dm-coach-after { padding: .55rem .8rem; }
.dm-coach-cta { flex: 0 0 300px; }
.dm-coach-card .gx-btn { min-height: 60px; }
.dm-coach-card.is-seen { border-color: #19a974; }
.dm-coach-free { max-width: 1400px; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dm-coach-free p { flex: 1 1 300px; }
.dm-coach-top .dm-link2 { margin-left: 1rem; }
@media (min-width: 981px) {
  .dm-right { position: sticky; top: calc(88px + var(--ch, 0px)); height: calc(100vh - 100px - var(--ch, 0px)); min-height: 420px; overflow: visible; padding: 0; }
  .dm-phones-head, .dm-pcap { display: none; }
  .dm-phones { min-height: 0; }
}
.dm-ptabs button { font-size: .86rem; line-height: 1.15; padding: 0 .4rem; }
@media (max-width: 980px) {
  .dm-coach { position: static; }
  .dm-coach-card { flex-direction: column; align-items: stretch; gap: .8rem; }
  .dm-coach-cta { flex: none; }
  .dm-coach-card .gx-btn { width: 100%; }
}
.dm-coach-hint { margin: 0 !important; text-align: center; font-weight: 800; font-size: 1.1rem !important; color: var(--gx-orange) !important; padding: .9rem; border: 2px dashed var(--gx-orange); border-radius: 16px; }
.dm-coach-free a.dm-btn { text-decoration: none; color: #fff; }
.dm-side { scrollbar-width: none; }
.dm-side::-webkit-scrollbar { display: none; }
@media (max-width: 980px) {
  .dm-mobilebar { transform: translateY(110%); transition: transform .25s; }
  .dm-in-stage .dm-mobilebar, .dm-phones-open .dm-mobilebar { transform: none; }
  .dm-phones { background: #10143a; }
  .dm-phones-note { display: grid; gap: .7rem; }
  .dm-phones-note p { margin: 0; }
  .dm-phones-note .gx-btn { width: 100%; min-height: 56px; }
  .dm-mb-time { flex: 1 1 auto; }
}
@media (max-width: 980px) {
  .dm-phones-open .dm-mobilebar { transform: translateY(110%); }
  .dm-phones-open .dm-phones { padding-bottom: 1rem; }
  .dm-pcap { display: none; }
  .dm-phone .gx-phone-screen { height: calc(100vh - 360px); min-height: 280px; }
  .dm-phones-head b { font-size: 1rem; }
}
@media (max-width: 980px) {
  .dm-mb-time { font-size: .9rem; white-space: nowrap; }
  .dm-mb-phones, .dm-mb-go { white-space: nowrap; padding: 0 .8rem; font-size: .98rem; }
}

/* ===== Versione 3: niente parti ferme, tutta la pagina scorre insieme ===== */
.dm-coach { position: static; }
@media (min-width: 981px) {
  .dm-right { position: static; height: auto; max-height: none; overflow: visible; display: block; }
  .dm-phones { display: grid; gap: .6rem; }
  .dm-phone { display: block; }
  .dm-phone .gx-phone-screen { height: 640px; flex: none; }
}
.dm-coach-card h3 { font-size: 1.25rem; }
.dm-coach-card p { font-size: 1.02rem; }

/* Chat del portale: finestra a parte, con il colore del portale */
.dm-pt { display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
.dm-pt-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; color: #fff; background: #003580; border-radius: 26px 26px 0 0; }
.dm-pt--airbnb .dm-pt-top { background: #e0484f; }
.dm-pt--expedia .dm-pt-top { background: #1f3b8f; }
.dm-pt-top b { display: block; font-size: 1.2rem; }
.dm-pt-top span { font-size: .9rem; opacity: .85; }
.dm-pt-x { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.1rem; cursor: pointer; }
.dm-pt-guest { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-bottom: 1px solid #e2dcd5; background: #fff; }
.dm-pt-guest .gx-avatar { color: #fff; flex: 0 0 38px; }
.dm-pt-guest b { display: block; }
.dm-pt-guest small { color: var(--app-muted); }
.dm-pt-why { margin: 0; padding: .8rem 1.2rem; background: #fff7e0; color: #5c4a12; font-size: .98rem; line-height: 1.45; }
.dm-pt-chat { padding: 1rem 1.2rem; background: #f2f4f7; overflow-y: auto; display: grid; gap: .6rem; }
.dm-pt-msg { justify-self: end; max-width: 88%; background: #fff; border: 1px solid #d9dee6; border-radius: 14px 14px 4px 14px; padding: .7rem .9rem; }
.dm-pt-msg p { margin: 0; line-height: 1.5; color: #1a1a1a; }
.dm-pt-msg small { display: block; margin-top: .3rem; color: #6b7280; font-size: .78rem; text-align: right; }
.dm-pt-foot { padding: 1rem 1.2rem 1.3rem; background: var(--app-card); border-radius: 0 0 26px 26px; }
.dm-pt-foot .gx-btn { width: 100%; margin: 0; }
@media (max-width: 760px) {
  .dm-pt-top { border-radius: 24px 24px 0 0; }
  .dm-pt-foot { border-radius: 0; padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); }
}
.dm-pt-msg--in { justify-self: start; background: #e8f0fe; border-color: #c9d8f5; border-radius: 14px 14px 14px 4px; }
.dm-pt-msg--in small { text-align: left; }
.dm-pt-ok { margin: 0 0 .8rem; color: #19794f; font-weight: 700; line-height: 1.45; }

/* ===== Versione 4: layout che regge anche con caratteri grandi (Safari con zoom) ===== */
/* Menu del gestionale sempre in alto, in orizzontale: il contenuto prende tutta la larghezza */
.dm-app { grid-template-columns: minmax(0, 1fr) !important; min-height: 0; }
.dm-side { flex-direction: row !important; align-items: center; overflow-x: auto; gap: .3rem; padding: .6rem .8rem !important; }
.dm-side-brand { display: block !important; flex: 0 0 auto; border: 0 !important; margin: 0 .6rem 0 .2rem !important; padding: 0 !important; font-size: 1rem; white-space: nowrap; }
.dm-side button { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 0 .85rem; }
.dm-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); }
.dm-page { padding: 1.6rem 1.8rem 2rem; }
.dm-clockbar { padding: .7rem 1.8rem; }

/* Riquadri affiancati solo se c'è spazio */
.dm-two, .dm-kpis, .dm-arr { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17em), 1fr)) !important; }
.dm-autos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr)); }
.dm-box, .dm-kpi, .dm-arr-card, .dm-auto, .dm-rev, .dm-post { min-width: 0; }
.dm-box h4 { font-size: 1.15rem; line-height: 1.3; }

/* Cifre ed etichette su una riga, campi dentro i riquadri */
.dm-sum li { gap: 1rem; align-items: baseline; }
.dm-sum li b, .dm-kpi b, .dm-exps b, .dm-score, .dm-total b { white-space: nowrap; }
.dm-sum .dm-left span { white-space: nowrap; }
.dm-expform input { flex: 1 1 12em; min-width: 0; width: 100% !important; box-sizing: border-box; }
.dm-expform .dm-btn { flex: 0 0 auto; }
.dm-exps li { grid-template-columns: minmax(0, 1fr) auto auto; }
.dm-exps li span:first-child { overflow-wrap: anywhere; }
.dm-table td, .dm-table th { white-space: nowrap; }
.dm-glink label, .dm-edit label, .dm-site-form label { min-width: 0; }

@media (max-width: 1180px) {
  .dm-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); }
}
@media (max-width: 980px) {
  .dm-layout { display: flex; }
  .dm-side-brand { display: none !important; }
  .dm-page { padding: 1.2rem 1rem 1.6rem; }
  .dm-clockbar { padding: .7rem 1rem; }
}
@media (min-width: 981px) {
  .dm-side { flex-wrap: wrap; overflow-x: visible; row-gap: .35rem; }
}

/* La prenotazione nuova lampeggia sempre, finché non ne arriva un'altra */
.dm-c.is-flash { animation: dmnew 1.1s ease-in-out infinite; }
@keyframes dmnew {
  0%, 100% { background: #d64541; color: #fff; box-shadow: inset 0 0 0 0 #ffd84d; }
  50% { background: #ffd84d; color: #10143a; box-shadow: inset 0 0 0 3px #fff; }
}
.dm-c.is-flash .dm-bar { text-shadow: none; }
.dm-table tr.is-new td { background: #fff6d6; }
.dm-new { display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 999px; background: var(--gx-orange); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .05em; vertical-align: middle; animation: dmbadge 1.1s ease-in-out infinite; }
@keyframes dmbadge { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .dm-c.is-flash { animation: none; background: #ffd84d; color: #10143a; }
  .dm-new { animation: none; }
}

/* ===== Versione 5: menu chiaro e leggibile, cosa offre ogni sezione, Report ===== */
.dm-side { background: #f7f6f3 !important; border-bottom: 1px solid #ddd6ce; padding: .8rem 1rem !important; gap: .45rem !important; }
.dm-side-brand { color: var(--app-ink) !important; font-size: 1.05rem; margin-right: .8rem !important; }
.dm-side button { background: #fff; color: var(--app-ink); border: 2px solid #e2dbd3; border-radius: 12px; font-weight: 700; min-height: 46px; }
.dm-side button:hover { background: #fff; color: var(--app-ink); border-color: var(--app-accent); }
.dm-side button.is-on { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }

.dm-offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14em), 1fr)); gap: .8rem; }
.dm-offer-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: .8rem; row-gap: .2rem; text-align: left; background: #fff; border: 2px solid #e6e0d9; border-radius: 18px; padding: 1rem 1.1rem; font: inherit; color: var(--app-ink); cursor: pointer; transition: border-color .15s, transform .15s; }
.dm-offer-card:hover { border-color: var(--app-accent); transform: translateY(-2px); }
.dm-offer-ico { grid-row: 1 / 4; font-size: 1.7rem; width: 3rem; height: 3rem; border-radius: 14px; background: var(--app-soft); display: grid; place-items: center; }
.dm-offer-card b { font-size: 1.08rem; }
.dm-offer-card small { color: var(--app-muted); font-size: .95rem; line-height: 1.4; }
.dm-offer-card i { font-style: normal; color: var(--app-accent); font-weight: 800; font-size: .92rem; margin-top: .3rem; }

.dm-kpis--4 { margin: 0 0 1rem; }
.dm-box--mt { margin-top: .9rem; }
.dm-barline { flex: 1; height: 10px; border-radius: 999px; background: #ece6df; overflow: hidden; min-width: 60px; }
.dm-barline i { display: block; height: 100%; border-radius: 999px; background: var(--app-accent); }
.dm-cats, .dm-chs { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .55rem; }
.dm-cats li { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 12px; padding: .6rem .9rem; }
.dm-cats li > span:first-child { flex: 0 0 7.5em; font-weight: 700; }
.dm-cats li b { white-space: nowrap; }
.dm-chs li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem .8rem; background: #fff; border-radius: 12px; padding: .65rem .9rem; }
.dm-chs li small { grid-column: 1 / -1; color: var(--app-muted); }
.dm-chs li b { white-space: nowrap; }
.dm-occ { display: flex; align-items: center; gap: .6rem; min-width: 9em; }
.dm-sumline { display: flex; justify-content: space-between; font-size: 1.15rem; margin: .2rem 0 1rem; }
.dm-page > .dm-btn[data-act="print"] { margin-top: 1rem; }
/* Righe regolari, in base allo spazio del gestionale (non dello schermo) */
.dm-page { container-type: inline-size; }
.dm-offer { grid-template-columns: 1fr; }
.dm-kpis.dm-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@container (min-width: 30em) { .dm-offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 44em) {
  .dm-offer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dm-kpis.dm-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
