/* Cosa Dirle — token condivisi */
:root {
  --wine: #5a1225;
  --wine-deep: #2a0811;
  --wine-soft: #7d2238;
  --blush: #f6dcd6;
  --blush-deep: #eebfb5;
  --paper: #fff8f5;
  --ink: #241016;
  --ink-soft: #6b4a52;
  --sent: #2f6bff;
  --sent-ink: #ffffff;
  --received: #ece4e6;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-4: clamp(4rem, 2rem + 11vw, 11rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--sent);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.4em;
  border-radius: 999px;
  font: 600 var(--step-0) / 1 var(--display);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-sent { background: var(--sent); color: var(--sent-ink); }
.btn-sent:hover { background: #1f57e6; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Bolle chat */
.b {
  font: 400 1rem / 1.35 var(--ui);
  padding: 0.6em 0.9em;
  border-radius: 1.15em;
  max-width: 85%;
  margin: 0;
  width: fit-content;
}
.b.me { background: var(--sent); color: var(--sent-ink); margin-left: auto; border-bottom-right-radius: 0.35em; }
.b.her { background: var(--received); color: var(--ink); border-bottom-left-radius: 0.35em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Link "Il manuale" in evidenza nella barra in alto (tutte le pagine) */
.pill-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1d595, #e6c27a 45%, #c9a24f);
  color: #2a0811;
  font: 700 0.92rem / 1 var(--display);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0.4rem 1rem -0.4rem rgba(230, 194, 122, 0.6);
}
.pill-premium:hover { filter: brightness(1.06); }
