/* ==========================================================================
   Avacard Help – foglio di stile
   Nessun font esterno: usiamo lo stack di sistema per velocità.
   ========================================================================== */

:root {
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --bg-elev: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #47474d;
  --ink-3: #7c7c85;
  --line: #e7e7e4;
  --line-strong: #d4d4d0;

  --accent: #f26522;
  --accent-ink: #c94f12;
  --accent-soft: #fff1ea;
  --accent-ring: rgba(242, 101, 34, .28);

  --dark: #0b0b0c;
  --dark-2: #17171a;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, .72);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, .05);
  --shadow: 0 8px 24px -12px rgba(11, 11, 12, .18), 0 1px 2px rgba(11, 11, 12, .05);
  --shadow-lg: 0 28px 60px -24px rgba(11, 11, 12, .35), 0 2px 6px rgba(11, 11, 12, .06);

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1.25em; height: 1.25em; flex: none; }
kbd { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Bottoni, chip, pill
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: var(--ink); border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--line); }

.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--on-dark); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  transition: background .15s, border-color .15s;
}
.chip:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 550;
  transition: border-color .15s, background .15s;
}
.pill svg { width: 18px; height: 18px; color: var(--accent); }
.pill b { font-weight: 600; font-size: 12px; color: var(--ink-3); background: var(--bg-soft); padding: 1px 7px; border-radius: 999px; }
.pill:hover { border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 150px; height: auto; }
.brand__sep { width: 1px; height: 22px; background: var(--line-strong); }
.brand__label { font-weight: 650; font-size: 15px; letter-spacing: .02em; color: var(--ink-2); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn) { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); transition: color .15s, background .15s; }
.site-nav > a:not(.btn):hover { color: var(--ink); background: var(--bg-soft); }
.site-nav > .btn { margin-left: 8px; }
.site-header__actions { display: flex; align-items: center; gap: 4px; }
.site-nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-nav-toggle { display: inline-grid; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: 12px; font-size: 16px; }
  .site-nav > .btn { margin: 8px 0 0; justify-content: center; padding: 12px; font-size: 15px; }
  .brand img { width: 128px; }
  .brand__sep, .brand__label { display: none; }
  .search-field kbd { display: none; }
}

/* --------------------------------------------------------------------------
   Hero + ricerca
   -------------------------------------------------------------------------- */
.hero {
  background: var(--dark); color: var(--on-dark);
  background-image:
    radial-gradient(60% 80% at 100% 0%, rgba(242, 101, 34, .22), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(255, 255, 255, .06), transparent 60%);
}
.hero__inner { padding: clamp(48px, 8vw, 88px) var(--gutter) clamp(40px, 6vw, 64px); max-width: 820px; text-align: center; }
.hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
.hero__lead { margin-top: 14px; font-size: clamp(16px, 2vw, 18px); color: var(--on-dark-2); }
.hero__search { position: relative; margin: 32px auto 0; max-width: 640px; text-align: left; }
.hero__hint { margin-top: 16px; font-size: 13.5px; color: var(--on-dark-2); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }

.search-field {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 12px 0 16px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s;
}
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.search-field > svg { width: 22px; height: 22px; color: var(--ink-3); }
.search-field input {
  flex: 1; min-width: 0; height: 52px; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; outline: 0;
}
.search-field input::placeholder { color: var(--ink-3); }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field kbd {
  font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px;
}
.search-field--hero { border-radius: 16px; box-shadow: var(--shadow-lg); }
.search-field--hero input { height: 60px; }
.search-field__close { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

.search-results {
  background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: min(60vh, 480px); overflow-y: auto;
}
.search-results--inline { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; }
.search-results__empty, .search-results__hint { padding: 20px 18px; font-size: 14.5px; color: var(--ink-3); }
.search-results__empty strong { color: var(--ink); }
.search-results__group { padding: 10px 18px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.search-result {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start;
  padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; text-align: left;
}
.search-result:first-of-type { border-top: 0; }
.search-result[aria-selected="true"], .search-result:hover { background: var(--bg-soft); }
.search-result__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.search-result__icon svg { width: 18px; height: 18px; }
.search-result__title { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.search-result__meta { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.search-result__snippet { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.search-result mark { background: transparent; color: var(--accent-ink); font-weight: 650; }
.search-results__footer { display: flex; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: 12px; color: var(--ink-3); }
.search-results__footer kbd { font-family: var(--font); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 11px; }

/* modal */
.search-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: min(12vh, 120px) var(--gutter) 24px; }
.search-modal[hidden] { display: none; }
.search-modal__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 12, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.search-modal__panel { position: relative; width: 100%; max-width: 640px; animation: pop .18s ease-out; }
.search-modal__panel .search-results { margin-top: 8px; }
.search-modal__panel .search-results:empty { display: none; }
.search-field--modal { box-shadow: var(--shadow-lg); border-radius: 16px; }
.search-field--modal input { height: 58px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Sezioni home
   -------------------------------------------------------------------------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { font-size: clamp(22px, 3vw, 28px); }
.section__head p { font-size: 14px; color: var(--ink-3); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cat-card {
  display: grid; grid-template-rows: auto 1fr auto; row-gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev);
  padding: 22px 22px 16px; transition: border-color .15s;
}
/* con subgrid, testata / lista / footer si allineano fra le card della stessa riga */
@supports (grid-template-rows: subgrid) {
  .cat-card { grid-row: span 3; grid-template-rows: subgrid; }
}
.cat-card:hover { border-color: var(--line-strong); }

.cat-card__head {
  display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; row-gap: 12px; align-items: center; align-content: start;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.cat-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); transition: background .15s, color .15s; }
.cat-card__icon svg { width: 21px; height: 21px; }
.cat-card__head:hover .cat-card__icon { background: var(--accent); color: #fff; }
.cat-card__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cat-card__title h3 { font-size: 17.5px; min-width: 0; }
.cat-card__count { flex: none; }
.cat-card__count { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cat-card__desc {
  grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cat-card__list { display: block; padding: 6px 0 4px; }
.cat-card__list li + li { border-top: 1px solid var(--line); }
.cat-card__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 2px; font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.4;
  transition: color .12s;
}
.cat-card__list a svg { width: 16px; height: 16px; color: var(--line-strong); transition: color .12s; }
.cat-card__list a:hover { color: var(--accent-ink); }
.cat-card__list a:hover svg { color: var(--accent-ink); }

.cat-card__more {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; align-self: end;
  margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft);
  font-size: 14px; font-weight: 600; color: var(--ink); transition: background .15s, color .15s;
}
.cat-card__more svg { width: 17px; height: 17px; }
.cat-card__more:hover { background: var(--ink); color: #fff; }

/* settima card su tre colonne: testata a sinistra, guide su due colonne */
@media (min-width: 1000px) {
  .cat-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1; grid-row: auto; grid-template-rows: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 36px;
  }
  .cat-card:last-child:nth-child(3n + 1) .cat-card__head { grid-row: 1 / 3; align-content: start; align-self: stretch; padding: 0 36px 0 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .cat-card:last-child:nth-child(3n + 1) .cat-card__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; padding-top: 0; }
  .cat-card:last-child:nth-child(3n + 1) .cat-card__list li:nth-child(2) { border-top: 0; }
  .cat-card:last-child:nth-child(3n + 1) .cat-card__more { grid-column: 2; }
}

.recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.recent-list a {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}
.recent-list a:hover { border-color: var(--ink); }
.recent-list__cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.recent-list__cat svg { width: 15px; height: 15px; }
.recent-list__title { font-weight: 600; font-size: 15.5px; }
.recent-list time { font-size: 13px; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Supporto
   -------------------------------------------------------------------------- */
.support { border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); padding: clamp(28px, 4vw, 44px); background-image: radial-gradient(50% 90% at 100% 100%, rgba(242, 101, 34, .2), transparent 60%); }
.support__head h2 { font-size: clamp(22px, 3vw, 28px); }
.support__head p { margin-top: 8px; color: var(--on-dark-2); }
.support__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 26px; }
.support__card {
  display: grid; gap: 2px; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .15s, border-color .15s;
}
.support__card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.support__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; margin-bottom: 10px; }
.support__icon svg { width: 20px; height: 20px; }
.support__label { font-size: 13px; color: var(--on-dark-2); }
.support__value { font-weight: 650; font-size: 16px; }
.support__note { font-size: 12.5px; color: var(--on-dark-2); margin-top: 4px; }
.support--compact { margin-top: 48px; }

/* --------------------------------------------------------------------------
   Layout con sidebar (categoria + articolo)
   -------------------------------------------------------------------------- */
.layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: 28px; padding-bottom: 72px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.sidebar__mobile > summary { display: none; }
.sidebar__nav { display: grid; gap: 4px; }
.sidebar__cat > summary {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; list-style: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .12s, color .12s;
}
.sidebar__cat > summary::-webkit-details-marker { display: none; }
.sidebar__cat > summary:hover { background: var(--bg-soft); color: var(--ink); }
.sidebar__cat > summary > svg:first-child { width: 18px; height: 18px; color: var(--ink-3); }
.sidebar__cat > summary > span { flex: 1; }
.sidebar__cat > summary > b { font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: var(--bg-soft); padding: 1px 7px; border-radius: 999px; }
.sidebar__cat > summary > svg:last-child { width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s; }
.sidebar__cat[open] > summary > svg:last-child { transform: rotate(180deg); }
.sidebar__cat.is-current > summary { color: var(--ink); }
.sidebar__cat.is-current > summary > svg:first-child { color: var(--accent); }
.sidebar__cat ul { margin: 2px 0 8px 18px; padding-left: 10px; border-left: 1px solid var(--line); display: grid; gap: 1px; }
.sidebar__cat li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.4; transition: background .12s, color .12s; }
.sidebar__cat li a:hover { background: var(--bg-soft); color: var(--ink); }
.sidebar__cat li a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; background: var(--accent-soft); }

.content { min-width: 0; max-width: 760px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; }
  .sidebar { position: static; max-height: none; order: 2; border-top: 1px solid var(--line); padding-top: 20px; }
  .sidebar__mobile > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; font-weight: 650; font-size: 16px; cursor: pointer; padding: 6px 0 12px; }
  .sidebar__mobile > summary::-webkit-details-marker { display: none; }
  .sidebar__mobile > summary svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform .15s; }
  .sidebar__mobile[open] > summary svg { transform: rotate(180deg); }
  .content { max-width: none; }
}

/* breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 550; }

/* intestazioni pagina */
.page-head { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; margin-top: 22px; }
.page-head__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); }
.page-head__icon svg { width: 28px; height: 28px; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); }
.page-head__lead { margin-top: 8px; font-size: 16.5px; color: var(--ink-2); }
.page-head__meta { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }

.article-head { margin-top: 22px; }
.article-head__cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--accent-soft); }
.article-head__cat svg { width: 15px; height: 15px; }
.article-head h1 { margin-top: 14px; font-size: clamp(26px, 4vw, 38px); }
.article-head__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.article-head__meta svg { width: 15px; height: 15px; }

/* lista articoli in categoria */
.article-list { margin-top: 32px; display: grid; gap: 10px; counter-reset: a; }
.article-list a {
  display: grid; grid-template-columns: 40px 1fr 20px; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev);
  transition: border-color .15s;
}
.article-list a:hover { border-color: var(--ink); }
.article-list a > svg { width: 18px; height: 18px; color: var(--ink-3); transition: color .15s; }
.article-list a:hover > svg { color: var(--accent-ink); }
.article-list__num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.article-list__body { display: block; min-width: 0; }
.article-list__title { display: block; font-weight: 600; font-size: 16px; }
.article-list__desc { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .article-list a { grid-template-columns: 1fr 20px; } .article-list__num { display: none; } .article-list__desc { white-space: normal; } }

.other-cats { margin-top: 48px; }
.other-cats h2 { font-size: 18px; margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Contenuto articolo (prose)
   -------------------------------------------------------------------------- */
.prose { margin-top: 28px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; margin-top: 1.8em; }
.prose h3 { font-size: 18px; margin-top: 1.5em; }
.prose p + ul, .prose p + ol { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: 8px; }
.prose ol { counter-reset: step; }
.prose ol > li { position: relative; padding: 12px 16px 12px 52px; border-radius: 12px; background: var(--bg-soft); }
.prose ol > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--ink);
}
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.prose li > p { margin: 0; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { font-weight: 650; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* feedback */
.feedback { margin-top: 40px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.feedback__q { font-weight: 600; }
.feedback__btns { display: flex; gap: 8px; }
.feedback__btns svg { width: 17px; height: 17px; }
.feedback__thanks { color: var(--ink-2); }
.feedback__sorry { flex-basis: 100%; color: var(--ink-2); font-size: 14.5px; }
.feedback__sorry a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* prev / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.pager__link { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.pager__link:hover { border-color: var(--ink); }
.pager__link span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); }
.pager__link span svg { width: 14px; height: 14px; }
.pager__link strong { font-size: 14.5px; font-weight: 600; }
.pager__link--next { text-align: right; }
.pager__link--next span { justify-content: flex-end; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager__link--next { text-align: left; } .pager__link--next span { justify-content: flex-start; } }

.related { margin-top: 44px; }
.related h2 { font-size: 18px; margin-bottom: 12px; }
.related__list { display: grid; gap: 6px; }
.related__list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-inline: -12px; border-radius: 10px; font-size: 15px; font-weight: 550; color: var(--ink-2); transition: background .12s, color .12s; }
.related__list a:hover { background: var(--bg-soft); color: var(--ink); }
.related__list svg { width: 18px; height: 18px; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound .container { max-width: 640px; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.notfound h1 { font-size: clamp(30px, 5vw, 44px); }
.notfound .hero__lead { color: var(--ink-2); }
.notfound .hero__search { margin-bottom: 24px; }
.notfound .hero__eyebrow { color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); margin-top: auto; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 28px; }
.site-footer__brand { max-width: 320px; }
.site-footer__brand p { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.site-footer__links a { color: var(--ink-2); }
.site-footer__links a:hover { color: var(--ink); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.site-footer__bottom a:hover { color: var(--ink); }

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