/* Joberto · every page except the home: privacy, support, news, blog, tools, comparisons.
   Loaded after base.css. */

/* ---------- Text pages ---------- */

.doc a { color: #4B3FD0; font-weight: 600; text-underline-offset: 3px; }

.doc { padding: calc(max(10px, env(safe-area-inset-top)) + 84px) 8px 48px; }
.doc .sheet__inner {
  max-width: 880px;
  padding: 48px var(--gutter) 56px;
  transform: none;
}
.doc h1 { font-size: clamp(40px, 9vw, 64px); margin: 14px 0 16px; }
.doc h2 {
  margin: 44px 0 12px;
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.doc h3 { margin: 24px 0 6px; font: 700 19px/1.25 var(--font-text); letter-spacing: -0.01em; }
.doc p,
.doc li { color: var(--day-ink-2); }
.doc strong { color: var(--day-ink); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc__lead { font-size: clamp(18px, 2.4vw, 21px); }
.doc__updated { font-size: 14px; }
.doc__summary {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.5);
  list-style: none;
}
.doc__summary li { padding-left: 0; }
.doc table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 15px; }
.doc th,
.doc td { padding: 10px 8px; border-bottom: 1px solid rgba(20, 26, 58, 0.12); text-align: left; vertical-align: top; color: var(--day-ink-2); }
.doc th { color: var(--day-ink); }
.doc__table { overflow-x: auto; }

@media (min-width: 768px) {
  .doc { padding-inline: 16px; }
  .doc .sheet__inner { padding: 72px 64px 80px; }
}

/* ---------- Blog ---------- */

.doc .kicker a { color: inherit; font-weight: inherit; text-decoration: none; }
.post-meta { margin: 0; font-size: 14px; color: var(--day-ink-2); }
.post > .doc__lead { margin-top: 18px; }
.post blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid #7468FF;
  color: var(--day-ink-2);
}
.post ol { padding-left: 1.4em; }

.post-list { margin: 28px 0 0; padding: 0; list-style: none; }
.doc .post-list__item { margin: 0; padding: 22px 0; border-top: 1px solid rgba(20, 26, 58, 0.12); }
.post-list__item:last-child { border-bottom: 1px solid rgba(20, 26, 58, 0.12); }
.doc .post-list__item h2 { margin: 6px 0 6px; font-size: clamp(21px, 4vw, 26px); }
.doc .post-list__item h2 a { color: var(--day-ink); text-decoration: none; }
.doc .post-list__item h2 a:hover { color: #4B3FD0; }
.post-list__item p:last-child { margin: 0; }

.post-cta {
  margin: 48px 0 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.5);
}
.doc .post-cta p { margin: 0 0 14px; }
.doc .post-cta .post-cta__title { margin-bottom: 6px; font: 700 19px/1.25 var(--font-text); color: var(--day-ink); }
.doc .post-cta__button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: #4B3FD0;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.doc .post-cta__button--soon { background: rgba(20, 26, 58, 0.12); color: var(--day-ink); }
.post-related { margin-top: 24px; }
.post-feed { margin-top: 28px; font-size: 14px; }

/* ---------- Strumenti ---------- */

.calc {
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 50px -30px rgba(75, 63, 208, 0.45);
}
.calc__row { display: grid; gap: 18px; }
.calc__row > * { min-width: 0; }
.calc__label { display: block; margin: 0 0 8px; color: var(--day-ink); font: 600 15px/1.3 var(--font-text); }
.calc__input {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(20, 26, 58, 0.14);
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc__input:focus-within { border-color: #7468FF; box-shadow: 0 0 0 4px rgba(116, 104, 255, 0.18); }
.calc__input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--day-ink);
  font: 700 26px/1 var(--font-text);
  letter-spacing: -0.01em;
}
.calc__input span { color: var(--day-ink-2); font: 600 20px/1 var(--font-text); }
.calc__segments {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 26, 58, 0.08);
}
.calc__segments label { position: relative; }
.calc__segments input { position: absolute; opacity: 0; pointer-events: none; }
.calc__segments span {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--day-ink-2);
  font: 600 15px/1.2 var(--font-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.calc__segments input:checked + span { background: #FFFFFF; color: var(--day-ink); box-shadow: 0 2px 8px -2px rgba(20, 26, 58, 0.2); }
.calc__segments input:focus-visible + span { outline: 2px solid #7468FF; outline-offset: 2px; }
.calc__result { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(20, 26, 58, 0.1); }
.doc .calc__result p { margin: 0; }
.doc .calc__big {
  margin: 4px 0 6px;
  color: var(--day-ink);
  font: 700 clamp(40px, 10vw, 56px)/1.05 var(--font-display);
  letter-spacing: -0.02em;
}
.calc__big small { font-size: 0.42em; font-family: var(--font-text); font-weight: 600; color: var(--day-ink-2); letter-spacing: 0; }
.doc .calc__breakdown { margin: 18px 0 0; }
.doc .calc__breakdown td:last-child,
.doc .calc__breakdown th:last-child,
.doc .net-table td:not(:first-child),
.doc .net-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc .calc__breakdown tr:last-child td { color: var(--day-ink); font-weight: 700; border-bottom: 0; }
.doc .calc__note { margin-top: 14px; font-size: 14px; }
.doc .net-table tbody tr:hover td { background: rgba(255, 255, 255, 0.45); }
.calc__input--sm { height: 48px; padding: 0 14px; border-radius: 14px; }
.calc__input--sm input,
.calc__input--sm select { font-size: 19px; }
.calc__input select {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--day-ink);
  font: 700 19px/1 var(--font-text);
  appearance: none;
  cursor: pointer;
}
.calc__input--sm span { font-size: 16px; }
.calc__hint { margin: 6px 0 0; color: var(--day-ink-2); font-size: 13px; line-height: 1.35; }
.doc .calc__hint { margin: 6px 0 0; font-size: 13px; }
.compare { display: grid; gap: 22px; }
.compare__offer { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 14px; }
.compare__offer legend {
  margin: 0 0 4px;
  padding: 0;
  color: var(--day-ink);
  font: 700 20px/1.2 var(--font-display);
}
.compare__offer + .compare__offer { padding-top: 22px; border-top: 1px solid rgba(20, 26, 58, 0.1); }
.compare__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.compare__pair > * { min-width: 0; }
.compare__offer .calc__label { font-size: 14px; margin-bottom: 6px; }
.doc .compare-table td:not(:first-child),
.doc .compare-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc .compare-table tr.compare-table__total td { color: var(--day-ink); font-weight: 700; }
.doc .compare-table td.is-best { color: #3F33C8; }
.doc .calc__verdict { margin: 0 0 4px; color: var(--day-ink); font: 700 clamp(22px, 5vw, 28px)/1.2 var(--font-display); letter-spacing: -0.01em; }

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 28px 0 0;
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.55);
}
.download__icon { width: 52px; height: 52px; flex: none; border-radius: 14px; }
.download__text { flex: 1 1 200px; }
.doc .download__text p { margin: 0; }
.doc .download__title { color: var(--day-ink); font: 700 18px/1.25 var(--font-text); }
.doc .download__meta { font-size: 14px; }

@media (min-width: 640px) {
  .calc { padding: 32px; }
  .calc__row { grid-template-columns: 1fr auto; align-items: end; }
  .compare { grid-template-columns: 1fr 1fr; gap: 28px; }
  .compare__offer + .compare__offer { padding-top: 0; border-top: 0; padding-left: 28px; border-left: 1px solid rgba(20, 26, 58, 0.1); }
}

/* Indice degli strumenti: schede intere cliccabili */
.doc .tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.doc .tool-grid li { margin: 0; padding: 0; }
.doc .tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 2px rgba(20, 26, 58, 0.06), 0 8px 24px -12px rgba(20, 26, 58, 0.18);
  color: var(--day-ink-2);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.doc .tool-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 4px rgba(20, 26, 58, 0.06), 0 18px 36px -16px rgba(75, 63, 208, 0.45);
}
.doc .tool-card:focus-visible { outline: 3px solid #4B3FD0; outline-offset: 3px; }
.tool-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--day-a), var(--day-b));
  box-shadow: 0 6px 16px -6px rgba(75, 63, 208, 0.6);
}
.tool-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doc .tool-card__title { margin: 0 0 6px; font-size: 21px; line-height: 1.2; color: var(--day-ink); }
.doc .tool-card__text { margin: 0 0 18px; font-size: 15px; line-height: 1.45; }
.tool-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: #4B3FD0;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}
.tool-card__action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.tool-card:hover .tool-card__action svg { transform: translateX(3px); }
@media (min-width: 720px) {
  .doc .tool-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .doc .tool-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .doc .tool-card, .tool-card__action svg { transition: none; }
  .doc .tool-card:hover { transform: none; }
}

.ral-quick { margin: 44px 0 0; }
.doc .ral-quick h2 { margin: 0 0 6px; font-size: clamp(21px, 4vw, 26px); }
.doc .ral-quick p { margin: 0 0 16px; }
.doc .ral-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc .ral-chips li { margin: 0; padding: 0; }
.doc .ral-chips a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(75, 63, 208, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: #4B3FD0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.doc .ral-chips a:hover { background: #4B3FD0; color: #FFFFFF; }
