/* Hotel sector page (IT v2, 26 Nov): bad → good hero, the hotel's own RMS (month heatmap, day factors), a year on Booking.com and where the money could go,
   staff reports board, after-the-stay timeline, asks. Pattern and tokens follow the E-commerce page (settore-ecommerce.css). */
.page-hotel {
  --ht-line: color-mix(in srgb, var(--ink) 12%, var(--white));
  --ht-tint: color-mix(in srgb, var(--blue) 7%, var(--white));
  --ht-ok: color-mix(in srgb, var(--ok) 55%, var(--ink));
  --ht-ok-soft: color-mix(in srgb, var(--ok) 10%, var(--white));
  /* Bad side of a comparison, left only (Michael, 26 Nov: orange for what costs you, never blue). */
  --ht-bad: color-mix(in srgb, var(--sunset) 52%, var(--ink));
  --ht-bad-soft: color-mix(in srgb, var(--sunset) 14%, var(--white));
  --ht-bad-line: color-mix(in srgb, var(--sunset) 55%, var(--white));
  /* RMS heatmap (demo palette): lowest green, middle orange, highest red. Same stops as hotel-page.js. */
  --ht-heat-lo: #BFE8C9;
  --ht-heat-mid: #FFD59E;
  --ht-heat-hi: #F4A79A;
}
.ht-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ht-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hotel main :focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.no-js .page-hotel main .vf-cta { display: none; }
.page-hotel main svg:not([width]) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Shared frame pieces */
/* Frames are the kit's .demo-frame (demo-kit.css, 30 Nov) in the markup: RMS, levers, timeline and reel. */
.ht-rms { margin: 0; font-variant-numeric: tabular-nums; }
.ht-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); padding: 10px var(--space-16); border-bottom: 1px solid var(--ht-line); font-size: var(--type-13); }
.ht-bar > span:nth-child(3) { color: var(--muted); font-weight: 700; }
.ht-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-8); background: var(--blue-dark); color: var(--white); }
.ht-mark svg { width: 16px; height: 16px; }
.ht-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--sunset) 30%, var(--white)); color: var(--ink); font-weight: 900; }
.ht-avatar.is-staff { background: color-mix(in srgb, var(--sea) 16%, var(--white)); color: color-mix(in srgb, var(--sea) 76%, var(--ink)); }

/* Hero */
.ht-hero { padding-block: var(--space-32) var(--space-64); }
.ht-hero-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: var(--space-48); }
.ht-hero h1 { font-size: clamp(var(--type-44), 4.4vw, var(--type-56)); }
.ht-hero h1 .thin { display: block; }
.ht-hero .lead { max-width: 36ch; margin-top: var(--space-24); }
.ht-hero .vf-cta { margin-top: var(--space-32); }
.ht-hook { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px var(--space-16); border-top: 1px solid var(--ht-line); background: var(--ht-ok-soft); }
.ht-hook-num span { color: var(--text-2); }
.ht-hook-num { color: var(--ht-ok); font-size: var(--type-32); font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.ht-hook-text { color: var(--text-2); font-weight: 650; }
.ht-hook-text b { color: var(--ink); font-weight: 850; }


/* Hero: bad → good. Today's fees and rented tools on the left (orange), the hotel's own system on the right. */
.ht-bg { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; margin: 0; }
.ht-bg-side { display: flex; flex-direction: column; min-width: 0; }
.ht-bg-label { margin-bottom: var(--space-8); color: var(--muted); font-size: var(--type-13); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.ht-bg-bad .ht-bg-label { color: var(--ht-bad); }
.ht-bg-good .ht-bg-label { color: var(--blue-dark); }
/* «Oggi» as a receipt: tilted, mono figures, torn bottom edge (sets the hotel hero apart from Turismo's chip cloud). */
.ht-receipt { position: relative; flex: 1; display: grid; align-content: start; gap: 10px; padding: var(--space-16) var(--space-16) var(--space-24); background: var(--white); box-shadow: var(--shadow-2); transform: rotate(-2deg); transform-origin: top right; font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.ht-receipt-head { padding-bottom: 8px; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: var(--type-13); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ht-receipt ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ht-receipt li { display: flex; justify-content: space-between; gap: 10px; font-size: var(--type-13); font-weight: 700; color: var(--text-2); }
.ht-receipt li b { color: var(--ht-bad); font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.ht-receipt li.is-big { padding: 6px 8px; margin-inline: -8px; border-radius: var(--radius-8); background: var(--ht-bad-soft); color: var(--ink); font-size: var(--type-15); }
.ht-receipt li.is-big b { font-size: var(--type-17); }
.ht-receipt li.is-muted b { color: var(--text-2); font-family: var(--sans); font-weight: 800; }
.ht-receipt-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 2px solid var(--ink); font-weight: 900; }
.ht-receipt-total b { color: var(--ht-bad); font-size: var(--type-20); }
.ht-receipt-foot { color: var(--ht-bad); font-size: var(--type-17); font-weight: 900; line-height: 1.3; text-align: center; }
.ht-bg-note { margin-top: var(--space-8); color: var(--text-2); font-size: var(--type-13); font-weight: 650; line-height: 1.4; }
.ht-bg-note b { color: var(--ht-bad); font-weight: 900; }
.ht-bg-note.is-good b { color: var(--ht-ok); }
.ht-bg-arrow { position: relative; z-index: 1; display: grid; place-items: center; align-self: center; width: 44px; height: 44px; margin-top: var(--space-24); border: 1px solid var(--ht-line); border-radius: var(--radius-pill); background: var(--white); color: var(--blue-dark); box-shadow: var(--shadow-1); }
.ht-bg-arrow svg { width: 22px; height: 22px; }
.ht-bg-system { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: var(--space-16); border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--white)); border-radius: var(--radius-16); background: var(--white); box-shadow: var(--shadow-3); }
.ht-bg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ht-bg-head b { font-size: var(--type-17); font-weight: 900; }
.ht-bg-own { padding: 2px 10px; border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--white)); border-radius: var(--radius-pill); background: var(--ht-ok-soft); color: var(--ht-ok); font-size: var(--type-13); font-weight: 900; }
/* «Tu + AI» is a white row with blue text and a still sparkle (calm, 30 Nov), like the E-commerce hero's AI pill. */
.ht-bg-ai { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-16); background: var(--white); color: var(--blue-dark); box-shadow: var(--shadow-1); }
.ht-bg-ai b { display: block; font-weight: 900; }
.ht-bg-ai small { display: block; color: var(--text-2); font-size: var(--type-13); font-weight: 650; }
.ht-sys-core-mark { display: grid; place-items: center; flex: none; width: 24px; }
.page-hotel main .ht-sys-core-mark svg { width: 16px; height: 16px; fill: var(--blue); stroke: none; }
.ht-bg-mods { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ht-bg-mods li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-8); background: var(--paper); font-size: var(--type-15); font-weight: 800; }
.ht-bg-mods li svg { box-sizing: content-box; flex: none; width: 16px; height: 16px; padding: 4px; border-radius: 50%; background: var(--ht-tint); color: var(--blue-dark); }

/* Chapter 1: what a year on Booking.com costs, and where that money could go instead. Orange (bad) on the left only. */
.ht-gift { width: min(100%, 500px); justify-self: center; margin: 0; font-variant-numeric: tabular-nums; }
.ht-gift-body { display: grid; gap: 12px; padding: var(--space-16); }
.ht-gift-bar { display: flex; height: 40px; overflow: hidden; border-radius: var(--radius-pill); background: var(--paper-2); font-size: var(--type-13); font-weight: 900; }
.ht-gift-bar span { display: grid; place-items: center; min-width: 0; overflow: hidden; white-space: nowrap; transition: flex-basis .5s cubic-bezier(.2,.7,.2,1); }
.ht-gift-bar .is-gift { flex: 0 0 var(--ota, 100%); background: var(--sunset); color: var(--ink); }
.ht-gift-bar .is-own { flex: 0 0 calc(100% - var(--ota, 100%)); background: var(--ok); color: var(--white); }
.ht-gift-money { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ht-gift-money p { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-16); }
.ht-gift-money span { color: var(--text-2); font-size: var(--type-13); font-weight: 750; }
.ht-gift-money b { display: inline-block; min-width: 6ch; font-size: var(--type-24); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ht-gift-money .is-bad { background: var(--ht-bad-soft); }
.ht-gift-money .is-bad b { color: var(--ht-bad); }
.ht-gift-money .is-good { background: var(--ht-ok-soft); text-align: right; }
.ht-gift-money .is-good b { color: var(--muted); }
.ht-gift-money .is-good b.is-on { color: var(--ht-ok); }
.ht-gift-ask { font-size: var(--type-17); font-weight: 900; }
.ht-gift-ask span { color: var(--blue-dark); font-size: var(--type-13); font-weight: 800; }
.ht-levers { display: grid; gap: 6px; }
.ht-lever { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-16); background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.ht-lever:hover { border-color: var(--blue-dark); background: var(--ht-tint); }
.ht-lever > svg { box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 50%; background: var(--ht-tint); color: var(--blue-dark); }
.ht-lever b { display: block; font-size: var(--type-15); font-weight: 900; }
.ht-lever small { color: var(--text-2); font-size: var(--type-13); font-weight: 700; }
/* Lever state icons: the site's stroked SVG plus and check, never a text glyph (Michael, 26 Nov). */
.ht-lever::after { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 16px; }
.ht-lever[aria-pressed="true"] { border-color: color-mix(in srgb, var(--ok) 50%, var(--white)); background: var(--ht-ok-soft); }
.ht-lever[aria-pressed="true"] > svg { background: var(--white); color: var(--ht-ok); }
.ht-lever[aria-pressed="true"]::after { background: var(--ht-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7.5'/%3E%3C/svg%3E") no-repeat center / 16px; }
/* Two figure boxes only (commissions, money in your pocket); guests and ad spend are one plain line under the levers. */
.ht-gift-out { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--space-24); color: var(--text-2); font-size: var(--type-15); font-weight: 700; text-align: center; }
.ht-gift-out b { color: var(--muted); font-weight: 900; font-variant-numeric: tabular-nums; }
.ht-gift-out b.is-on { color: var(--ink); }
.ht-gift-none { padding: 10px 12px; border-radius: var(--radius-8); background: var(--paper); color: var(--text-2); font-size: var(--type-13); font-weight: 700; line-height: 1.4; }
.ht-gift-none b { color: var(--ink); font-weight: 900; }
.no-js .ht-gift-ask span { display: none; }

/* Chapter 4: after the stay. A timeline that fills in once, ending on the direct rebooking. */
.ht-after { margin: 0; padding: var(--space-24); }
.ht-time { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ht-time::before { content: ""; position: absolute; top: 9px; left: 9px; right: 9px; height: 2px; background: color-mix(in srgb, var(--blue) 30%, var(--white)); }
.ht-time > li { position: relative; display: grid; align-content: start; gap: 8px; padding-top: 28px; }
.ht-time > li::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border: 3px solid var(--blue-dark); border-radius: 50%; background: var(--white); }
.ht-time > li.is-result::before { border-color: var(--ok); background: var(--ok); }
.ht-time-when { color: var(--blue-dark); font-size: var(--type-13); font-weight: 900; }
.ht-msg { padding: 10px 12px; border-radius: var(--radius-16) var(--radius-16) var(--radius-16) 4px; background: var(--ht-tint); font-size: var(--type-15); font-weight: 650; line-height: 1.4; }
.ht-time-out { color: var(--text-2); font-size: var(--type-13); font-weight: 800; }
.ht-time-out.is-ok { display: flex; align-items: center; gap: 6px; color: var(--ht-ok); }
.ht-time-out svg { width: 14px; height: 14px; stroke-width: 2.4; }
.ht-stars { color: var(--sunset); letter-spacing: 1px; }
.ht-time-big { font-size: var(--type-20); font-weight: 800; line-height: 1.25; }
.ht-time-big b { display: block; color: var(--ht-ok); font-size: var(--type-32); font-weight: 900; letter-spacing: -.02em; }
.ht-time .is-result { padding: 28px 12px 12px; border-radius: var(--radius-16); background: var(--ht-ok-soft); }
.ht-time .is-result::before { left: 14px; }
.ht-after-rule { display: flex; align-items: center; gap: 6px; margin-top: var(--space-24); padding-top: 12px; border-top: 1px solid var(--ht-line); color: var(--text-2); font-size: var(--type-15); font-weight: 700; }
.page-hotel main .ht-after-rule svg { flex: none; width: 14px; height: 14px; fill: var(--blue); stroke: none; }
.ht-after.is-waiting [data-b] { opacity: 0; transform: translateY(8px); }
.ht-after.is-playing [data-b] { animation: ht-rise .45s cubic-bezier(.2,.7,.2,1) calc(var(--d) * 1s) both; }
.ht-after [data-b="0"] { --d: 0; }
.ht-after [data-b="1"] { --d: .7; }
.ht-after [data-b="2"] { --d: 1.4; }
.ht-after [data-b="3"] { --d: 2.1; }
.ht-after [data-b="4"] { --d: 3; }

/* Sections */
.ht-section { padding-block: var(--space-96); border-top: 1px solid var(--line); scroll-margin-top: var(--space-24); }
.ht-section-alt { background: var(--paper-2); }
.ht-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: center; gap: var(--space-64); }
.ht-head h2 { max-width: 20ch; }
.ht-head .lead { max-width: 44ch; margin-top: var(--space-24); }
.ht-head .lead b { color: var(--ink); font-weight: 900; }
.ht-head-wide { margin-bottom: var(--space-48); }
.ht-head-wide h2 { max-width: none; }
.ht-head-wide .lead { max-width: 66ch; }
.ht-section .kicker { color: var(--blue-dark); }
.ht-result-line { max-width: 44ch; margin-top: var(--space-24); padding: 12px var(--space-16); border-left: 3px solid var(--ok); border-radius: 0 var(--radius-8) var(--radius-8) 0; background: var(--ht-ok-soft); color: var(--ink); font-weight: 700; line-height: 1.45; }
.ht-result-line strong { color: var(--ht-ok); font-weight: 900; }
.ht-caption { margin-top: var(--space-16); color: var(--muted); font-size: var(--type-15); text-align: center; }
.ht-primary, .ht-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-24);
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius-pill);
  font: 800 var(--type-15)/1 var(--sans);
  cursor: pointer;
}
.ht-primary { gap: 6px; background: var(--blue-dark); color: var(--white); }
.ht-primary:hover { background: color-mix(in srgb, var(--blue-dark) 85%, var(--ink)); }
.ht-ghost { background: var(--white); color: var(--blue-dark); }
.ht-ghost:hover { background: var(--blue-soft); }
.ht-ghost:disabled { visibility: hidden; }

/* Chapter 1: the hotel's own RMS. A month heatmap from the base price you set; click a day to see what moves it. */
.ht-rms { width: min(100%, 500px); justify-self: center; }
.ht-rms-stage { position: relative; min-height: 360px; padding: 12px var(--space-16) var(--space-16); }
.ht-rms-bar .ht-room-pick { margin-left: auto; }
.ht-room-pick select { min-height: 36px; padding: 0 30px 0 12px; border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--white)); border-radius: var(--radius-pill); background: var(--ht-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232457D6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; color: var(--blue-dark); font: 800 var(--type-13)/1 var(--sans); cursor: pointer; appearance: none; }
.ht-room-pick select:hover { border-color: var(--blue-dark); }
.ht-rms-base { margin-bottom: 10px; color: var(--text-2); font-size: var(--type-15); font-weight: 700; }
.ht-rms-base b { color: var(--ink); font-weight: 900; }
.ht-counter { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--ht-line); border-radius: var(--radius-pill); background: var(--paper); }
.ht-counter button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--white); color: var(--blue-dark); font: 900 var(--type-20)/1 var(--sans); cursor: pointer; box-shadow: var(--shadow-1); }
.ht-counter button:hover { background: var(--ht-tint); }
.ht-counter output { min-width: 4.2em; text-align: center; font-size: var(--type-17); font-weight: 900; font-variant-numeric: tabular-nums; }
.ht-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ht-cal-dow { padding-bottom: 2px; color: var(--muted); font-size: var(--type-13); font-weight: 800; text-align: center; }
.ht-cal button { position: relative; display: grid; justify-items: center; min-height: 44px; padding: 3px 2px; border: 0; border-radius: var(--radius-8); background: var(--h); color: var(--ink); font: inherit; cursor: pointer; transition: background .3s, transform .15s; }
.ht-cal button:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--blue-dark); }
.page-hotel main .ht-cal button:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
.ht-cal button { gap: 1px; }
.ht-cal button small { color: var(--ink); font-size: var(--type-15); font-weight: 900; line-height: 1.2; }
.ht-cal button b { color: var(--text-2); font-size: var(--type-13); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ht-cal button.is-hint { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue-dark); animation: ht-ping 1.6s ease-in-out infinite; }
@keyframes ht-ping { 50% { box-shadow: 0 0 0 2px var(--white), 0 0 0 7px color-mix(in srgb, var(--blue) 35%, transparent); } }
.ht-cal-tip { position: absolute; z-index: 2; left: 50%; bottom: calc(100% + 8px); padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ink); color: var(--white); font-size: var(--type-13); font-weight: 800; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
/* One call to action on the cover («Provalo!»): the date hint and its ring appear once the calendar is open. */
.ht-rms:not(.is-started) .ht-cal-tip { display: none; }
.ht-rms:not(.is-started) .ht-cal button.is-hint { box-shadow: none; animation: none; }
.ht-cal-tip::after { content: ""; position: absolute; top: 100%; left: 50%; border: 5px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); }
.ht-cal-key { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: var(--type-13); font-weight: 700; }
.ht-cal-key i { flex: 1; max-width: 140px; height: 8px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--ht-heat-lo), var(--ht-heat-mid), var(--ht-heat-hi)); }
.ht-rms-cover { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; border: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--white) 30%, transparent), color-mix(in srgb, var(--white) 88%, transparent) 55%); backdrop-filter: blur(1.5px); cursor: pointer; transition: opacity .35s; }
/* The cover's opener (.demo-opener, 30 Nov) sits above the one button, over the blurred month. */
.ht-rms-cover { align-content: center; gap: var(--space-16); padding: var(--space-16); }
.ht-rms-opener { max-width: 30ch; }
.ht-rms-cover .ht-primary { min-height: 52px; padding-inline: var(--space-32); font-size: var(--type-17); box-shadow: var(--shadow-2); }
.ht-rms-cover.is-gone { opacity: 0; pointer-events: none; }
.no-js .ht-rms-cover, .no-js .ht-rms-month { display: none; }
.ht-rms-static { padding: var(--space-16); color: var(--text-2); line-height: 1.5; }
.ht-rms-day { display: grid; gap: 10px; animation: ht-rise .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ht-rise { from { opacity: 0; transform: translateY(8px); } }
.ht-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ht-day-head h3 { font-size: var(--type-20); font-weight: 900; letter-spacing: -.01em; }
.ht-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border: 1px solid var(--ht-line); border-radius: var(--radius-pill); background: var(--white); color: var(--blue-dark); font: 800 var(--type-13)/1 var(--sans); cursor: pointer; }
.ht-day-base { padding: 0 4px 8px 12px; border-bottom: 1px solid var(--ht-line); color: var(--text-2); font-size: var(--type-15); font-weight: 700; }
.ht-day-base b { color: var(--ink); font-weight: 900; }
.ht-day-list { display: grid; gap: 2px; margin: 0; padding: 0 0 0 12px; list-style: none; }
.ht-day-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line-soft); font-size: var(--type-13); font-weight: 650; line-height: 1.35; }
.ht-day-list li:last-child { border-bottom: 0; }
.ht-day-list li > svg { box-sizing: content-box; width: 16px; height: 16px; padding: 7px; border-radius: 50%; background: var(--ht-ok-soft); color: var(--ht-ok); }
.ht-day-list li.is-down > svg { background: var(--paper-2); color: var(--text-2); }
.ht-day-list li b { display: block; color: var(--ink); font-size: var(--type-15); font-weight: 850; }
.ht-day-list li span { color: var(--text-2); }
.ht-day-list li strong { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--ht-ok-soft); color: var(--ht-ok); font-size: var(--type-15); font-weight: 900; white-space: nowrap; }
.ht-day-list li.is-down strong { background: var(--paper-2); color: var(--text-2); }
.ht-day-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: var(--radius-16); background: var(--ht-ok-soft); }
.ht-day-price p { display: grid; }
.ht-day-price p small { color: var(--ht-ok); font-size: var(--type-13); font-weight: 900; }
.ht-day-price p span { color: var(--text-2); font-size: var(--type-13); font-weight: 700; }
.ht-day-price .ht-counter { background: var(--white); }
.ht-day-price .ht-counter output { color: var(--ht-ok); font-size: var(--type-24); }
.ht-day-actions { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.ht-approved { display: flex; align-items: center; gap: 6px; color: var(--ht-ok); font-weight: 850; }
.ht-approved svg { width: 18px; height: 18px; stroke-width: 2.2; }
/* After «Approva»: where the price lands, per your rules. */
.ht-pub-rule { padding: 8px 12px; border-radius: var(--radius-8); background: var(--ht-tint); color: var(--blue-dark); font-size: var(--type-13); font-weight: 800; line-height: 1.4; }
.ht-pub { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ht-pub li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line-soft); animation: ht-rise .35s cubic-bezier(.2,.7,.2,1) calc(var(--i) * .12s) both; }
.ht-pub li:last-child { border-bottom: 0; }
.ht-pub i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-8); background: var(--paper-2); color: var(--ink); font-size: var(--type-13); font-style: normal; font-weight: 900; }
.ht-pub li.is-own i { background: var(--blue-dark); color: var(--white); }
.ht-pub b { display: block; font-size: var(--type-15); font-weight: 850; }
.ht-pub small { color: var(--text-2); font-size: var(--type-13); font-weight: 650; }
.ht-pub strong { font-size: var(--type-17); font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ht-pub li.is-own strong { color: var(--ht-ok); }
.ht-pub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 44px; }
.ht-pub li .ht-pub-ok { display: none; }
.ht-pub.is-live li .ht-pub-ok { display: inline-block; width: 16px; height: 16px; margin-left: 6px; color: var(--ht-ok); stroke-width: 2.4; vertical-align: -2px; }
/* RMS end = the result (30 Nov): after «Pubblica» the night's extra revenue, as the kit's one figure and one line. */
.ht-rms-end { min-height: 300px; }
.ht-rms-end .demo-end-figure small { display: block; margin-top: var(--space-8); color: var(--ink); font-size: var(--type-24); font-weight: 800; letter-spacing: -.02em; }
.ht-rms-end .demo-end-line { max-width: 34ch; }
.ht-rms-line { max-width: 44ch; margin-top: var(--space-16); color: var(--text-2); font-size: var(--type-17); font-weight: 650; }
.ht-rms-line b { color: var(--ink); font-weight: 900; }
/* Guest-card chips (chapter 4). */
.ht-vs-card { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ht-vs-card li { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--paper-2); font-size: var(--type-13); font-weight: 800; }

/* Chapter 3: staff reports as a vertical reel (shared engine ecom-reel.js/.css); hotel-only pieces below. */
.ht-reel-figure { display: grid; justify-items: center; margin: 0; }
.ht-reel-caption { margin-top: var(--space-16); color: var(--muted); font-size: var(--type-15); text-align: center; }
.er-reel .ht-r-quote { margin-top: 6px; font-weight: 800; line-height: 1.35; }
.ht-r-chat { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ht-r-chat li { justify-self: start; max-width: 90%; padding: 6px 10px; border-radius: var(--radius-16) var(--radius-16) var(--radius-16) 4px; background: var(--paper-2); color: var(--text-2); font-size: var(--type-13); font-weight: 650; }
.ht-r-chat li b { display: block; color: var(--ink); font-weight: 900; }
/* «48 minuti» is a longer figure than the E-commerce «€ 540»: one step smaller so it holds one line in the 9:16 frame. */
.ht-reel-figure .er-end .demo-end-figure { font-size: clamp(var(--type-44), 9cqh, var(--type-56)); }

/* Asks */
.ht-ask { padding-block: var(--space-96); background: color-mix(in srgb, var(--blue) 13%, var(--paper)); }
.ht-ask .vf-cta { margin-top: var(--space-32); }
/* The close sits on the shared sector ask surface (problem-cards.css .sector-close / .sector-ask). */
.ht-close { scroll-margin-top: var(--space-24); }
.ht-close .lead { max-width: 56ch; margin-top: var(--space-16); }
.ht-chips { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-24) 0 0; padding: 0; list-style: none; }
.ht-chips li a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-16); border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--white)); border-radius: var(--radius-pill); background: var(--white); color: var(--blue-dark); font-weight: 750; text-decoration: none; }
.ht-chips li a:hover { border-color: var(--blue-dark); }

@media (max-width: 1099px) and (min-width: 900px) {
  .ht-hero-grid { gap: var(--space-32); }
}
@media (max-width: 899px) {
  .ht-hero-grid, .ht-split { grid-template-columns: minmax(0, 1fr); }
  .ht-bg { grid-template-columns: minmax(0, 1fr); }
  .ht-bg-arrow { justify-self: center; margin: 0; transform: rotate(90deg); }
  .ht-receipt { transform: rotate(-1deg); }
  .ht-time { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
  .ht-time::before { top: 9px; bottom: 9px; left: 9px; right: auto; width: 2px; height: auto; }
  .ht-time > li { padding: 0 0 0 32px; }
  .ht-time > li::before { top: 2px; }
  .ht-time .is-result { padding: 12px 12px 12px 32px; }
  .ht-time .is-result::before { left: 2px; top: 14px; }
  .ht-hero-grid, .ht-split { gap: var(--space-32); }
  .ht-section, .ht-ask { padding-block: var(--space-64); }
  .ht-hero .vf-cta, .ht-ask .vf-cta { width: 100%; }
}
@media (max-width: 599px) {
  .ht-hero { padding-top: var(--space-16); }
  .ht-after { padding: var(--space-16); }
  .ht-hook-num { font-size: var(--type-24); }
  .ht-rms-stage { padding-inline: 10px; }
  .ht-cal { gap: 6px; }
  .ht-cal button small { font-size: var(--type-13); }
  .ht-cal button { min-height: 42px; }
  .ht-day-list li { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-cal button.is-hint, .ht-rms-day, .ht-pub li { animation: none !important; }
  .ht-after [data-b] { animation: none !important; opacity: 1 !important; transform: none !important; }
}
