/* The product's home page (apps/api/src/tenancy/home.ts; docs/design.md, "La home del prodotto"). Its own sheet: the
   noispace brand (teal, coral notification dot, paper, Atkinson Hyperlegible Next for every text: the wordmark alone keeps Plus Jakarta Sans, as outlines) on one paper ground, flat fields of colour,
   square buttons, no rules, shadows or gradients outside the product's own fragments ([data-ui]), which keep the
   portal's conventions. Colours, sizes and radii come from the tokens below. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/api/platform/assets/atkinson.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f9f8f4;
  --step: #ecebe7;
  --step-2: #deddd8;
  --ink: #0f4c5c;
  --ink-soft: #3e6c78;
  --deep: #0a2a33;
  --deep-2: #12404c;
  --on-deep: #f9f8f4;
  --on-deep-soft: #b9d0d5;
  --coral: #ff6a4a;
  --on-coral: #0a2a33;
  --focus: #1d4ed8;
  --danger: #b42318;
  /* The product's interface inside the fragments (apps/web/src/styles.css, light theme). */
  --ui-bg: #ffffff;
  --ui-bg-2: #f4f6fb;
  --ui-line: #e3e8f0;
  --ui-text: #141a33;
  --ui-muted: #5d6784;
  --ui-brand: #0f4c5c;
  --ui-ok: #15803d;
  --ui-ok-bg: #dcfce7;
  --ui-radius: 12px;
  --ui-radius-sm: 8px;
  --ui-shadow: 0 1px 2px rgba(20, 26, 51, 0.06), 0 8px 24px rgba(20, 26, 51, 0.1);

  --font: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Five sizes do the visible work; 15px only inside the fragments, at the product's true size. */
  --fs-ui: 15px;
  --fs-text: 18px;
  --fs-say: 24px;
  --fs-mid: clamp(28px, 2.8vw, 44px);
  --fs-big: clamp(36px, 4.6vw, 76px);
  --fs-hero: clamp(48px, 6.4vw, 104px);
  --fw-text: 450;
  --fw-strong: 650;
  --fw-display: 700;
  --margin: clamp(20px, 2.8vw, 40px);
  --gap-section: clamp(96px, 12vw, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1f24;
    --step: #12292f;
    --step-2: #1a353c;
    --ink: #f1efe8;
    --ink-soft: #b9d0d5;
    --deep: #05161a;
    --deep-2: #0f3640;
    --focus: #8ab4ff;
    --danger: #ff9b8f;
  }
}

/* End of the design tokens. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-text);
  font-weight: var(--fw-text);
  line-height: 1.5;
  overflow-x: hidden;
}
h1,
h2,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.h-skip {
  position: absolute;
  left: var(--margin);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: var(--fw-strong);
}
.h-skip:focus {
  top: 12px;
}
main:focus {
  outline: none;
}

/* ---------- Buttons: square, one fill ---------- */
.h-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  font-weight: var(--fw-strong);
  text-decoration: none;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.h-btn:hover {
  background: var(--deep-2);
  transform: translateY(-2px);
}
.h-btn:active {
  transform: translateY(0) scale(0.98);
}
.h-btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: var(--fs-text);
}
.h-link {
  font-weight: var(--fw-strong);
  transition: color 160ms var(--ease);
}
.h-link:hover {
  color: var(--ink-soft);
}

/* ---------- Top bar: the logo's coral dot counts the morning ---------- */
.h-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
}
.h-top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px var(--margin);
}
.h-brand {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.h-logo {
  width: auto;
  height: var(--logo-h, 40px);
}
/* The noispace logo keeps its own colours on paper; on the dark theme the bubble and "noi" turn paper, "space" a light
   teal, the dot stays coral (the same recolour as the other platform pages, pages.css). */
@media (prefers-color-scheme: dark) {
  .h-logo .logo-tile,
  .h-logo .logo-ink {
    fill: var(--on-deep);
  }
  .h-logo .logo-glyph-line {
    stroke: var(--paper);
  }
  .h-logo .logo-ink-soft {
    fill: var(--on-deep-soft);
  }
}
.h-dot {
  position: absolute;
  /* Over the logo's own dot (logo.svg: centre 291,47.5 of 1375×340). */
  left: calc(var(--logo-h, 40px) * 291 / 340);
  top: calc(var(--logo-h, 40px) * 47.5 / 340);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--on-coral);
  font-size: 13px;
  font-weight: var(--fw-display);
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: transform 260ms var(--ease), color 160ms;
}
.h-dot.is-zero {
  color: transparent;
  transform: translate(-50%, -50%) scale(0.43);
}
.h-dot.is-tick {
  animation: dot-tick 520ms var(--ease);
}
@keyframes dot-tick {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  35% {
    transform: translate(-50%, -50%) scale(1.45);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
.h-dot.is-zero.is-tick {
  animation: none;
}
.h-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: 15px;
  font-weight: var(--fw-strong);
}
.h-nav a:not(.h-btn) {
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.h-nav a:not(.h-btn):hover {
  color: var(--ink-soft);
  text-decoration: underline;
}

/* The language switch: IT / EN as plain links (no script), the current one marked; touch targets of 44 px. */
.h-lang {
  display: flex;
  align-items: center;
}
/* Without the navigation (the sign-in page) the switch alone goes to the right. */
.h-brand + .h-lang {
  margin-left: auto;
}
.h-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 15px;
  font-weight: var(--fw-strong);
  text-decoration: none;
  color: var(--ink-soft);
}
.h-lang a:hover {
  text-decoration: underline;
}
.h-lang a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- One composition for every section ----------
   The same grid everywhere: the claim (heading, one sentence, the control) on columns 1–5, its proof on 7–12, both
   starting at the same top edge. Sections alternate only the ground (paper, then a step of tone), never the layout. */
.h-flow {
  display: block;
}
.h-sec {
  padding-block: clamp(72px, 9vw, 128px);
}
.h-sec-step {
  background: var(--step);
}
.h-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 32px);
  row-gap: 40px;
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.h-claim {
  grid-column: 1 / span 5;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 20px;
}
.h-proof {
  grid-column: 7 / -1;
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 24px;
}
.h-wide {
  grid-column: 1 / -1;
  min-width: 0;
}
h1,
h2 {
  font-weight: var(--fw-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
}
h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.04;
}
.h-text,
.h-lead {
  max-width: 34ch;
  font-size: var(--fs-say);
  line-height: 1.4;
  color: var(--ink);
}
.h-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}
.h-label {
  margin-top: 8px;
  font-size: var(--fs-text);
  font-weight: var(--fw-strong);
}
.h-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 2px solid var(--ink); /* taste-skill-ignore: a real form field */
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-text);
}
.h-sec-step .h-input {
  background: var(--paper);
}
.h-input::placeholder {
  color: var(--ink-soft);
}
.h-said-input {
  resize: vertical;
  font-size: var(--fs-say);
  font-weight: var(--fw-strong);
  line-height: 1.35;
}
.h-more a {
  font-weight: var(--fw-strong);
}

/* ---------- Hero: the morning on the brand's teal field ---------- */
.h-hero {
  padding-top: clamp(40px, 7vw, 96px);
}
.h-hero .h-claim {
  align-self: center;
}
.h-hero h1 {
  max-width: 9.5em;
}
.h-proof-brand {
  padding: clamp(24px, 3vw, 40px);
  background: var(--deep);
  color: var(--on-deep);
}
.h-try {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: var(--fs-text);
  font-weight: var(--fw-strong);
}
.h-try::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- The product's fragments ([data-ui]): its own interface, at its true size ---------- */
.ui-panel,
.ui-card {
  width: 100%;
  max-width: 620px;
  padding: 20px 24px 24px;
  border-radius: var(--ui-radius);
  background: var(--ui-bg);
  color: var(--ui-text);
  font-size: var(--fs-ui);
  line-height: 1.45;
}
.ui-card {
  box-shadow: var(--ui-shadow); /* taste-skill-ignore: inside a [data-ui] product fragment */
}
.ui-card-title {
  font-size: var(--fs-text);
}
.ui-card p + p {
  margin-top: 10px;
}
.ui-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-line); /* taste-skill-ignore: inside a [data-ui] product fragment */
}
.ui-panel-head p:first-child {
  font-size: var(--fs-text);
}
.ui-muted {
  color: var(--ui-muted);
}
/* The panel's count wears the logo's coral dot: the same number, in the same colour. */
.ui-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ui-muted);
}
.ui-count::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.ui-notes {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.ui-note {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  transition: opacity 300ms var(--ease);
}
.ui-note.is-done .ui-avatar {
  background: var(--ui-muted);
}
.ui-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ui-brand);
  color: #fff;
  font-weight: var(--fw-display);
}
.ui-note-text strong {
  font-weight: var(--fw-strong);
}
.ui-done {
  color: var(--ui-ok);
  font-weight: var(--fw-strong);
  animation: rise 360ms var(--ease) both;
}
.ui-act {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-brand);
  color: #fff;
  font: inherit;
  font-weight: var(--fw-strong);
  cursor: pointer;
  transition: transform 140ms var(--ease), background-color 140ms;
}
.ui-act:hover {
  background: #0a3a47;
  transform: translateY(-1px);
}
.ui-act:active {
  transform: scale(0.96);
}
.ui-allclear {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-ok-bg);
  color: var(--ui-ok);
  font-weight: var(--fw-strong);
  animation: rise 420ms var(--ease) both;
}
.ui-address {
  margin-top: 16px;
  color: var(--ui-muted);
}
.ui-fields {
  display: grid;
  margin-top: 12px;
}
.ui-fields div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ui-line); /* taste-skill-ignore: inside a [data-ui] product fragment */
}
.ui-fields dt {
  color: var(--ui-muted);
}
.ui-fields dd {
  font-weight: var(--fw-strong);
}
.ui-form.is-tick .ui-fields dd {
  animation: rise 320ms var(--ease) both;
}
.ui-form.is-unread .ui-fields dd {
  color: var(--ui-muted);
}
.ui-big {
  font-size: var(--fs-say);
  font-weight: var(--fw-display);
  color: var(--ui-brand);
  overflow-wrap: anywhere;
}
.ui-btnlike {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-brand);
  color: #fff;
  font-weight: var(--fw-strong);
}
/* A screen of the portal: on the section's ground it is set off by its own white surface, no shadow. */
.ui-shot {
  width: 100%;
  max-width: 720px;
  border-radius: var(--ui-radius);
  background: var(--ui-bg);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- What you can do: the list on the left, the chosen item's panel on the right ---------- */
.cmd-list {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}
.cmd-name {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--fs-say);
  font-weight: var(--fw-strong);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}
.cmd-name::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 160ms var(--ease);
}
.cmd-name:hover {
  color: var(--ink);
  transform: translateX(4px);
}
.cmd-name.is-on {
  color: var(--ink);
}
.cmd-name.is-on::before {
  background: var(--coral);
}
.cmd-none {
  font-size: var(--fs-text);
}
.cmd-panels {
  display: grid;
  gap: 40px;
  width: 100%;
}
.cmd-panel {
  display: grid;
  gap: 16px;
  justify-items: start;
  font-size: var(--fs-text);
}
.cmd-panel-name {
  font-size: var(--fs-mid);
  font-weight: var(--fw-display);
  letter-spacing: -0.012em;
  line-height: 1.1;
}
.cmd-js .cmd-panel {
  display: none;
}
.cmd-js .cmd-panel.is-on {
  display: grid;
  animation: rise 320ms var(--ease) both;
}

/* ---------- Getting started: four clauses in order ---------- */
.step-list {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
.step-clause {
  font-size: var(--fs-say);
  font-weight: var(--fw-display);
  letter-spacing: -0.015em;
}
.step-note {
  max-width: 36ch;
  font-size: var(--fs-text);
}

/* ---------- Your data: the facts, each with the brand's dot ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  width: 100%;
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper);
}
.facts li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: var(--fs-say);
  font-weight: var(--fw-strong);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.facts li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateY(-2px);
}

/* ---------- Closing: the sign-in as one sentence ---------- */
.h-close {
  background: var(--deep);
  color: var(--on-deep);
}
.close-sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25em 0.35em;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: var(--fw-display);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.close-sentence input {
  flex: 1 1 9em;
  min-width: 0;
  max-width: 13em;
  padding: 0.05em 0.25em;
  border: 0;
  border-bottom: 4px solid var(--on-deep-soft); /* taste-skill-ignore: the blank to fill, a real input */
  background: transparent;
  color: var(--on-deep);
  font: inherit;
  letter-spacing: inherit;
}
.close-sentence input::placeholder {
  color: var(--on-deep-soft);
}
.close-sentence button {
  padding: 0.05em 0.3em;
  border: 0;
  background: var(--coral);
  color: var(--on-coral);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
.close-sentence button:hover {
  transform: translateY(-3px);
}
.close-after {
  max-width: 48ch;
  margin-top: 24px;
  font-size: var(--fs-text);
  color: var(--on-deep-soft);
}
.h-close :focus-visible {
  outline-color: var(--coral);
}

/* ---------- Footer: the name once more, the links, who makes it ---------- */
.h-foot {
  padding-block: 64px 48px;
  background: var(--step);
}
.foot-mark {
  grid-column: 1 / span 6;
  display: grid;
  gap: 16px;
  align-content: start;
}
.foot-logo {
  line-height: 0;
  justify-self: start;
}
.h-foot-logo {
  width: auto;
  height: clamp(56px, 7vw, 96px);
}
@media (prefers-color-scheme: dark) {
  .h-foot-logo .logo-tile,
  .h-foot-logo .logo-ink {
    fill: var(--on-deep);
  }
  .h-foot-logo .logo-glyph-line {
    stroke: var(--paper);
  }
  .h-foot-logo .logo-ink-soft {
    fill: var(--on-deep-soft);
  }
}
.foot-mark p {
  max-width: 32ch;
  font-size: var(--fs-text);
}
.foot-nav {
  grid-column: 7 / span 3;
}
.foot-nav ul {
  display: grid;
  gap: 10px;
  font-size: var(--fs-text);
  font-weight: var(--fw-strong);
}
.foot-maker {
  grid-column: 10 / -1;
  align-self: start;
  font-size: var(--fs-text);
}
.foot-maker a {
  display: block;
  font-size: var(--fs-say);
  font-weight: var(--fw-display);
  letter-spacing: -0.015em;
}
.foot-legal {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- The sign-in form (/accedi): a short conversation ---------- */
.h-door .h-sec {
  padding-block: clamp(40px, 7vw, 96px) clamp(72px, 9vw, 128px);
}
.talk {
  gap: 24px;
}
/* The conversation arrives in order: the question, then the reply (CSS only: the page has no script). */
.talk-ask {
  animation: talk-in 520ms var(--ease) both;
}
.talk-reply {
  animation: talk-in 520ms var(--ease) 160ms both;
}
.talk-ask::after {
  animation: dot-in 420ms var(--ease) 380ms both;
}
@keyframes talk-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dot-in {
  from {
    transform: scale(0);
  }
  60% {
    transform: scale(1.3);
  }
  to {
    transform: scale(1);
  }
}
.door-org,
.talk-row .h-btn {
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.talk-row .h-btn:hover {
  transform: translateY(-2px);
}
/* noispace asks in its own bubble: the logo's tile, with its tail and its coral dot. */
.talk-ask {
  position: relative;
  justify-self: start;
  max-width: 100%;
  padding: clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 40px);
  border-radius: 24px 24px 24px 0;
  background: var(--deep);
  color: var(--on-deep);
}
.talk-ask::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -22px;
  width: 28px;
  height: 22px;
  background: var(--deep);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.talk-ask::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -8px;
  width: 22px;
  height: 22px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--coral);
}
/* On the dark ground the bubble is a step lighter than the page, so it still reads as a shape. */
@media (prefers-color-scheme: dark) {
  .talk-ask,
  .talk-ask::before {
    background: var(--deep-2);
  }
}
.talk-ask h1 {
  max-width: 11em;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.04;
}
.talk .h-text {
  margin-top: 8px;
}
.talk-answer {
  display: grid;
  gap: 10px;
}
.talk-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.talk-row .h-input {
  flex: 1 1 auto;
  min-width: 0;
}
.talk-row .h-btn {
  flex: none;
  justify-content: center;
  border: 0;
  font: inherit;
  font-weight: var(--fw-strong);
  cursor: pointer;
}
.talk-hint {
  font-size: 16px;
  color: var(--ink-soft);
}
.talk-error {
  font-weight: var(--fw-strong);
  color: var(--danger);
}
.has-error .h-input {
  border-color: var(--danger);
}
/* noispace's reply: a bubble of the step tone, the coral dot when it needs the person. */
.talk-reply {
  display: grid;
  gap: 10px;
  max-width: 40em;
  padding: 20px 24px;
  border-radius: 24px 24px 24px 0;
  background: var(--step);
  font-size: var(--fs-text);
}
.talk-reply-title {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: var(--fs-say);
  font-weight: var(--fw-display);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.talk-reply-title::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateY(-3px);
}
.door-orgs {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.door-org {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  background: var(--paper);
  font-size: var(--fs-text);
  font-weight: var(--fw-strong);
  text-decoration: none;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.door-org:hover {
  transform: translateX(4px);
}
.door-org-go {
  color: var(--coral);
  font-weight: var(--fw-display);
}
.talk-trial {
  max-width: 40em;
  font-size: var(--fs-text);
}
.door-side {
  display: flex;
  align-items: center;
  justify-content: center;
}
.door-mark {
  width: min(340px, 70%);
  height: auto;
}
@media (max-width: 760px) {
  .door-side {
    display: none;
  }
}

/* ---------- Entrances (the script adds .in-js; content never stays hidden without it) ---------- */
.in-js [data-in] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.in-js [data-in].is-in {
  opacity: 1;
  transform: none;
}
.in-js .h-proof[data-in] {
  transition-delay: 90ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ---------- Tablet and phone: one column, the claim then its proof ---------- */
@media (max-width: 960px) {
  .h-claim,
  .h-proof,
  .foot-mark,
  .foot-nav,
  .foot-maker {
    grid-column: 1 / -1;
  }
  .h-proof {
    margin-top: 8px;
  }
  .h-nav a:not(.h-btn) {
    display: none;
  }
}
@media (max-width: 560px) {
  :root {
    --fs-text: 17px;
    --fs-say: 20px;
  }
  /* The top bar on a phone: the logo, «Accedi» and IT/EN on one line (targets stay well above 24 px). */
  .h-top-in {
    gap: 8px;
  }
  .h-brand {
    --logo-h: 32px;
  }
  .h-nav .h-btn {
    padding-inline: 14px;
  }
  .h-lang a {
    min-width: 32px;
  }
  .h-sec {
    padding-block: 56px;
  }
  .h-hero {
    padding-top: 24px;
  }
  .h-proof-brand {
    margin-inline: calc(-1 * var(--margin));
    padding: 20px var(--margin);
  }
  .ui-panel {
    padding: 16px;
  }
  .ui-note {
    grid-template-columns: 36px 1fr;
  }
  .ui-avatar {
    width: 36px;
    height: 36px;
  }
  .ui-act {
    grid-column: 2;
    justify-self: start;
  }
  .ui-fields div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .talk-row {
    flex-direction: column;
  }
}
