:root {
  --brand: #016b95;
  --brand-2: #36a6bf;
  --brand-ink: #0a4a68;
  --hero: radial-gradient(1200px 480px at 80% -10%, rgba(54,166,191,.45), transparent 55%),
          linear-gradient(165deg, #0a4a68 0%, #016b95 48%, #1a8aab 100%);
  --text: #0f172a;
  --muted: #5b6b7c;
  --bg: #f5f8fc;
  --card: #ffffff;
  --border: #e6eef4;
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --warn: #b91c1c;
  --warn-bg: #fef2f2;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 50px rgba(10, 74, 104, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --measure: 46rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible {
  outline: 3px solid rgba(54, 166, 191, .55);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: 12px; top: -40px;
  background: #fff; color: var(--brand-ink);
  padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.help-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.help-header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 20px;
}
.help-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none !important; flex-shrink: 0;
}
.help-logo__img { height: 30px; width: auto; display: block; }
.help-logo__badge {
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: rgba(1,107,149,.1); border-radius: 999px;
  padding: 4px 10px; letter-spacing: .02em;
}
.help-search { flex: 1; position: relative; max-width: 560px; }
.help-search input {
  width: 100%; height: 44px; border: 1px solid var(--border);
  border-radius: 999px; padding: 0 44px 0 44px;
  font: 15px var(--font); background: #f7fafc; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.help-search input:focus {
  background: #fff; border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(54, 166, 191, 0.18);
}
.help-search__icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.help-search__kbd {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font: 11px ui-monospace, Consolas, monospace;
  color: var(--muted); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 6px; background: #fff;
}
.help-header__nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.help-header__ghost {
  color: var(--text); font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 999px;
}
.help-header__ghost:hover { background: #f1f5f9; text-decoration: none; }
.help-header__cta {
  display: inline-flex; align-items: center;
  background: var(--brand); color: #fff !important;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none !important; box-shadow: 0 8px 18px rgba(1,107,149,.22);
}
.help-header__cta:hover { background: var(--brand-ink); }

.suggest {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50;
  text-align: left; max-height: min(70vh, 420px); overflow-y: auto;
}
.suggest.is-open { display: block; }
.suggest__item, .suggest__empty {
  display: block; padding: 12px 16px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.suggest__item:last-child { border-bottom: 0; }
.suggest__item:hover, .suggest__item.is-active { background: #f3fafc; text-decoration: none; }
.suggest__item strong { display: block; font-size: 14px; }
.suggest__item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.suggest__cat {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--brand); background: rgba(1,107,149,.1);
  border-radius: 999px; padding: 2px 8px; margin-bottom: 6px;
}
.suggest__empty { color: var(--muted); font-size: 14px; }

.hero {
  background: var(--hero); color: #fff;
  padding: 64px 0 72px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -40px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(245,248,252,.35), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 740px; margin: 0 auto; }
.hero__eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; opacity: .8;
}
.hero h1 {
  margin: 0 0 10px; font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.04em; font-weight: 700; line-height: 1.15;
}
.hero__lead { margin: 0 0 28px; font-size: 17px; opacity: .92; }
.hero-search { margin: 0 auto; position: relative; }
.hero-search input {
  width: 100%; height: 58px; border: 0; border-radius: 16px;
  padding: 0 118px 0 52px; font: 16px var(--font);
  box-shadow: var(--shadow-lg); color: var(--text);
}
.hero-search svg {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted);
}
.hero-search__btn {
  position: absolute; right: 8px; top: 8px; height: 42px;
  border: 0; border-radius: 12px; padding: 0 18px;
  background: var(--brand); color: #fff; font: 600 14px var(--font); cursor: pointer;
}
.hero-search__btn:hover { background: var(--brand-ink); }
.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 18px 0 0;
}
.hero-chips a {
  color: #fff !important; text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500;
}
.hero-chips a:hover { background: rgba(255,255,255,.2); }
.hero-chips--light { justify-content: center; }
.hero-chips--light a {
  color: var(--brand) !important;
  border-color: var(--border);
  background: #fff;
}

.section { padding: 48px 0 72px; }
.block + .block { margin-top: 56px; }
.block__head h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.03em; }
.lead { margin: 0 0 24px; color: var(--muted); max-width: 46rem; }
.page-title { margin: 0 0 8px; font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.03em; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); color: inherit;
  display: flex; flex-direction: column; min-height: 198px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(54,166,191,.45);
  text-decoration: none;
}
.cat-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.cat-card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #e7f6fa, #d7eef5); color: var(--brand);
}
.cat-card__icon svg { width: 22px; height: 22px; }
.cat-card__count {
  font-size: 12px; font-weight: 700; color: var(--brand-ink);
  background: #f1f5f9; border-radius: 999px; padding: 4px 8px;
}
.cat-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.02em; }
.cat-card p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.cat-card__go { font-size: 13px; font-weight: 600; color: var(--brand); }

.art-list { display: grid; gap: 10px; }
.art-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.art-row:hover {
  border-color: rgba(54,166,191,.5);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.art-row strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.art-row > div { min-width: 0; flex: 1; }
.art-row__cat {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--brand); margin-bottom: 4px;
}
.art-row__meta { color: var(--muted); font-size: 12px; white-space: nowrap; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.art-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.empty {
  background: #fff; border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 36px 24px; text-align: center;
}
.empty strong { display: block; font-size: 18px; margin-bottom: 8px; }
.empty p { margin: 0 0 16px; color: var(--muted); }

.layout {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px;
  padding: 32px 0 72px;
}
.side {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; height: fit-content; position: sticky; top: 88px;
}
.side h4 {
  margin: 4px 10px 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.side a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 14px;
}
.side a span {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: #f1f5f9; border-radius: 999px; padding: 2px 7px;
}
.side a:hover { background: #f3fafc; color: var(--brand); text-decoration: none; }
.side a.is-on {
  background: rgba(1,107,149,.1); color: var(--brand-ink); font-weight: 600;
}
.crumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: var(--muted); margin: 0 0 16px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.cat-page__title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.cat-page__title h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.03em; }
.cat-page__title .lead { margin: 0; }

.widget {
  background: linear-gradient(180deg, #f3fbfd, #fff);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; margin-top: 14px;
}
.widget strong { display: block; margin-bottom: 6px; font-size: 14px; }
.widget p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.widget a.btn {
  display: block; text-align: center; background: var(--brand); color: #fff !important;
  border-radius: 10px; padding: 10px; font-weight: 600; margin-top: 8px;
  text-decoration: none !important;
}
.widget a.btn-ghost {
  background: #fff !important; color: var(--brand) !important;
  border: 1px solid var(--border);
}

.article {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 40px 40px; box-shadow: var(--shadow);
}
.article h1 {
  margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.035em; line-height: 1.2;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  color: var(--muted); font-size: 13px; margin: 0 0 28px;
}
.meta__edit { font-weight: 600; }
.article-body {
  max-width: var(--measure);
  font-size: 17px; line-height: 1.7; color: #243044;
}
.article-body p { margin: 0 0 16px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ol,
.help-steps {
  list-style: none; padding: 0; margin: 8px 0 24px; counter-reset: passo;
}
.article-body ol > li,
.help-steps > li {
  position: relative;
  margin: 0 0 14px;
  padding: 16px 16px 16px 56px;
  background: #f7fbfc;
  border: 1px solid var(--border);
  border-radius: 14px;
  line-height: 1.6;
}
.article-body ol > li::before,
.help-steps > li::before {
  counter-increment: passo;
  content: counter(passo);
  position: absolute; left: 14px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.article-body h2 { font-size: 20px; margin: 28px 0 10px; letter-spacing: -0.02em; }
.article-body h3 { font-size: 17px; margin: 22px 0 8px; }
.article-body img { border-radius: 12px; border: 1px solid var(--border); margin: 8px 0 16px; }
.article-video {
  position: relative; padding-bottom: 56.25%; height: 0;
  margin: 24px 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
}
.article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.feedback {
  margin-top: 36px; padding: 20px 22px;
  border: 1px solid var(--border); border-radius: 16px;
  background: #f8fafc;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.feedback__q { margin: 0; font-weight: 700; }
.feedback__btns { display: flex; gap: 8px; }
.feedback button {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 10px 18px; min-height: 44px; cursor: pointer; font: 600 14px var(--font);
}
.feedback button[data-vote="1"]:hover,
.feedback.is-yes button[data-vote="1"] { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.feedback button[data-vote="0"]:hover,
.feedback.is-no button[data-vote="0"] { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.feedback button:disabled { opacity: .7; cursor: default; }
.feedback-msg { color: var(--muted); font-size: 14px; }

.help-footer {
  background: #0b1f33; color: #d7e6f2; padding: 48px 0 0;
  margin-top: auto;
}
.help-footer a { color: #fff; }
.help-footer__brand { display: inline-block; margin-bottom: 12px; }
.help-footer__brand img {
  height: 28px; width: auto; display: block;
  filter: brightness(0) invert(1);
}
.help-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 36px;
}
.help-footer h3 {
  margin: 0 0 10px; color: #fff; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
}
.help-footer p, .help-footer li { color: #9fb4c6; font-size: 14px; line-height: 1.6; }
.help-footer__cta {
  display: inline-block; margin-top: 8px;
  background: #1fa855; color: #fff !important;
  font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 10px; text-decoration: none !important;
}
.help-footer__link { display: block; margin-top: 10px; font-size: 14px; }
.help-footer__copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0 20px;
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; color: #8aa0b3;
}
.help-footer__copy a { color: #8aa0b3; }

@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .layout, .help-footer__grid { grid-template-columns: 1fr; }
  .side { position: static; order: 2; }
  .layout > .article,
  .layout > section { order: 1; }
  .article { padding: 22px 18px; }
}
@media (max-width: 720px) {
  .wrap { width: min(1160px, calc(100% - 24px)); }
  .help-header { height: auto; }
  .help-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: auto;
    padding: 10px 0 12px;
    gap: 10px;
  }
  .help-logo { grid-column: 1; grid-row: 1; min-width: 0; }
  .help-logo__badge { display: none; }
  .help-header__nav { grid-column: 2; grid-row: 1; margin-left: 0; }
  .help-header__cta { padding: 8px 12px; font-size: 13px; }
  .help-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .help-search__kbd, .help-header__ghost { display: none; }
  .hero { padding: 36px 0 44px; }
  .hero-search input { padding-right: 16px; }
  .hero-search__btn { display: none; }
  .section { padding: 32px 0 48px; }
  .cat-card { min-height: 0; }
  .art-row { align-items: flex-start; }
  .help-footer__copy { flex-direction: column; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
}
