.fg-root {
    --accent:      #4E85C5;
    --accent-dark: #3a6da8;
    --accent-light:#F2F5F7;
    --dark:        #1a1a1a;
    --text:        #525252;
    --text-light:  #777777;
    --border:      #d0d8e4;
    --bg-card:     #ffffff;
    --bg-page:     #ffffff;
    --bg-sidebar:  #F2F5F7;
    --radius:      6px;
    --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition:  0.28s ease;
    font-family: var(--font);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg-page);
  }
  .fg-wrapper {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-page);
  }
  .fg-sidebar {
    width: 25%;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 8px 0;
  }
  .fg-sidebar-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 12px 18px 8px;
  }
  .fg-menu-item {
    display: block;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    border-left: 3px solid transparent;
    transition: all var(--transition);
    user-select: none;
  }
  .fg-menu-item:hover { color: var(--accent); background: #F2F5F7; }
  .fg-menu-item.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: #F2F5F7;
    font-weight: 700;
  }
  .fg-main {
    flex: 1;
    padding: 32px 36px;
    min-width: 0;
    background: #ffffff;
  }
  .fg-panel { display: none; animation: fg-fade 0.3s ease forwards; }
  .fg-panel.active { display: block; }
  @keyframes fg-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fg-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
  }
  .fg-panel-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 24px 0;
  }
  .fg-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--bg-card);
    overflow: hidden;
    transition: box-shadow var(--transition);
  }
  .fg-accordion:hover { box-shadow: 0 2px 12px rgba(78,133,197,0.10); }
  .fg-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
    gap: 12px;
  }
  .fg-accordion-header:hover { background: #F2F5F7; }
  .fg-accordion.open .fg-accordion-header { background: #F2F5F7; border-bottom: 1px solid var(--border); }
  .fg-accordion-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
  }
  .fg-accordion.open .fg-accordion-label { color: var(--accent); }
  .fg-accordion-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    flex-shrink: 0;
    transition: all var(--transition);
  }
  .fg-accordion.open .fg-accordion-num { background: var(--accent); color: #fff; }
  .fg-chevron {
    width: 16px; height: 16px; flex-shrink: 0;
    color: var(--text-light);
    transition: transform var(--transition), color var(--transition);
  }
  .fg-accordion.open .fg-chevron { transform: rotate(180deg); color: var(--accent); }
  .fg-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
  .fg-accordion.open .fg-accordion-body { max-height: 3000px; }
  .fg-accordion-content { padding: 22px 20px 26px; }
  .fg-text { font-size: 14px; color: var(--text); line-height: 1.75; margin: 0 0 12px; }
  .fg-text:last-child { margin-bottom: 0; }
  .fg-text p { margin: 0 0 10px; }
  .fg-text h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin: 16px 0 6px; }
  .fg-text h5 { font-size: 13px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; margin: 12px 0 4px; }
  .fg-text ul, .fg-text ol { padding-left: 20px; margin: 8px 0 14px; }
  .fg-text li { margin-bottom: 10px; line-height: 1.5; }
  .fg-note {
    background: #eaf1fb;
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--accent-dark);
    margin: 14px 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }
  .fg-note-icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
  .fg-warning {
    background: #fff8e6;
    border-left: 3px solid #e6a817;
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #7a5200;
    margin: 14px 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }
  .fg-success {
    background: #edfbf3;
    border-left: 3px solid #38a169;
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #276749;
    margin: 14px 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }
  .fg-ol, .fg-ul { font-size: 14px; color: var(--text); line-height: 2; margin: 10px 0 14px 0; padding-left: 22px; }
  .fg-ol li, .fg-ul li { margin-bottom: 6px; }
  code {
    display: inline-block;
    vertical-align: middle;
    font-family: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    background: #eef2f9;
    color: #1a3054;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12.5px;
    border: 1px solid #b8ccec;
    line-height: 1.4;
  }
  .fg-code-block {
    font-family: 'Courier New', Courier, monospace;
    background: #1e2a3a;
    color: #a8d8a8;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.7;
    margin: 12px 0;
    overflow-x: auto;
    white-space: pre;
  }
  .fg-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    margin-right: 5px;
    margin-top: 6px;
  }
  .fg-tag-gray {
    display: inline-block;
    background: #e2e8f0;
    color: #4a5568;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    margin-right: 5px;
    margin-top: 6px;
  }
  .fg-two-col { display: flex; gap: 16px; margin: 12px 0; }
  .fg-two-col > div { flex: 1; background: #f7faff; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; font-size: 14px; color: var(--text); }
  .fg-two-col strong { display: block; color: var(--accent-dark); margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
  .fg-mobile-select { display: none; }
  .fg-tag-beta {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    margin-right: 5px;
    margin-top: 6px;
  }
  .guide-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0 18px; }
  .guide-table th { background: #f2f5f7; color: var(--accent-dark); font-weight: 700; text-align: left; padding: 7px 10px; border: 1px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
  .guide-table td { padding: 7px 10px; border: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
  .guide-table tr:nth-child(even) td { background: #fafbfc; }
  .guide-table td:first-child { white-space: nowrap; font-weight: 500; color: var(--text); }
  .guide-table td[colspan] { background: #eaf1fb; color: var(--accent-dark); font-weight: 700; font-size: 12px; }
  @media (max-width: 768px) {
    .fg-mobile-select {
      display: block;
      width: 100%;
      padding: 12px 40px 12px 16px;
      font-size: 15px;
      font-family: var(--font);
      color: var(--dark);
      background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234E85C5' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: 20px;
      -webkit-appearance: none;
      appearance: none;
      cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    }
    .fg-wrapper { flex-direction: column; }
    .fg-sidebar { display: none; }
    .fg-main { overflow-y: visible; max-height: none; padding: 0; }
    .fg-two-col { flex-direction: column; }
    .handlers-wrap { padding: 24px 0 48px; }
  }

        
  /* Download Button Styles */
  .fg-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
  }
  .fg-download-btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #4E85C5 !important; /* Blu richiesto */
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 5px;
    border: 2px solid #4E85C5;
    transition: all 0.28s ease;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
  }
  .fg-download-btn:hover {
    color: #0a192f !important; /* Blu molto scuro quasi nero */
    border-color: #0a192f;
  }
  @media (min-width: 769px) {
    .fg-main { overflow-y: auto; max-height: 85vh; }
    .fg-sidebar { overflow-y: auto; max-height: 85vh; }
  }
  .fg-panel-title { margin-bottom: 0 !important; }

    
    .handlers-wrap { padding: 48px 0 64px; }


/* ---- Split handler pages (generated by tools/build-handler-pages.js) ---- */
.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; }

.fg-breadcrumb { font-size: 13px; color: #777; padding: 18px 0 0; }
.fg-breadcrumb a { color: #4E85C5; text-decoration: none; }
.fg-breadcrumb a:hover { text-decoration: underline; }
.fg-breadcrumb span { margin: 0 6px; color: #b8c2d0; }
.fg-breadcrumb strong { color: #525252; font-weight: 600; }

.fg-article-hero { padding: 22px 0 30px; }
.fg-article-hero h1 { font-size: 34px; line-height: 1.2; margin: 6px 0 12px; }
/* style.css centres .hero-sub with "margin: 12px auto 0" — the article hero is
   left-aligned, so reset the auto margin instead of letting the block float. */
.fg-article-hero .hero-sub { max-width: 760px; margin-left: 0; margin-right: 0; text-align: left; font-size: 16px; line-height: 1.65; color: #525252; }
.fg-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4E85C5; margin: 0; }
.fg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: stretch; }

/* Match the handler-download button to the .btn geometry so the two hero
   buttons line up, and make it the outline variant for a clear hierarchy. */
.fg-hero-actions .fg-download-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm, 6px);
    border: 2px solid var(--primary, #4F86C4);
    background-color: transparent !important;
    color: var(--primary, #4F86C4) !important;
    text-transform: none;
}
.fg-hero-actions .fg-download-btn:hover {
    background-color: var(--primary, #4F86C4) !important;
    color: #fff !important;
    border-color: var(--primary, #4F86C4);
    transform: translateY(-2px);
}

/* Under the hero buttons. The download hands over a file that does nothing on
   its own, and nothing else above the fold says so — visitors arrive on these
   pages from a device or protocol search, not from the product. */
.fg-hero-note { max-width: 760px; margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #6b7280; }
/* nowrap: the phrase is the call to action — wrapped mid-link it reads as two. */
.fg-hero-note a { color: var(--primary, #4F86C4); text-decoration: underline; white-space: nowrap; }

.fg-root .fg-article { background: #fff; border: 1px solid #d0d8e4; border-radius: 8px; padding: 28px 30px; }
.fg-root .fg-article > h2 { font-size: 16px; color: #3a6da8; text-transform: uppercase; letter-spacing: 0.05em; margin: 30px 0 12px; border-bottom: 1px solid #d0d8e4; padding-bottom: 4px; }
.fg-root .fg-article > h2:first-child { margin-top: 0; }
.fg-specs { max-width: 560px; margin-bottom: 26px !important; }
.fg-specs th { width: 170px; }

.fg-setup { margin-bottom: 26px; background: #fff; border: 1px solid #d0d8e4; border-radius: 8px; padding: 24px 28px; }
.fg-setup h2 { font-size: 19px; color: #1a1a1a; margin: 0 0 14px; }
.fg-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: #525252; }
.fg-steps li { margin-bottom: 9px; padding-left: 4px; }
.fg-steps li::marker { color: #4E85C5; font-weight: 700; }
.fg-steps strong { color: #1a1a1a; }

.fg-faq { margin-top: 30px; }
.fg-faq h2 { font-size: 19px; color: #1a1a1a; margin: 0 0 14px; }
.fg-faq details { background: #fff; border: 1px solid #d0d8e4; border-radius: 6px; margin-bottom: 9px; }
.fg-faq summary { cursor: pointer; padding: 13px 16px; font-size: 14px; font-weight: 600; color: #3a6da8; list-style: none; position: relative; padding-right: 40px; }
.fg-faq summary::-webkit-details-marker { display: none; }
.fg-faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #4E85C5; line-height: 1; }
.fg-faq details[open] summary::after { content: '\2212'; }
.fg-faq details[open] summary { border-bottom: 1px solid #d0d8e4; }
.fg-faq p { margin: 0; padding: 13px 16px; font-size: 14px; line-height: 1.7; color: #525252; }

.fg-related { margin-top: 30px; }
.fg-related h2 { font-size: 18px; color: #1a1a1a; margin-bottom: 14px; }
.fg-related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fg-related-list li { background: #fff; border: 1px solid #d0d8e4; border-radius: 6px; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fg-related-list a { color: #3a6da8; text-decoration: none; font-weight: 600; font-size: 14px; }
.fg-related-list a:hover { text-decoration: underline; }
.fg-related-list span { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.04em; }

.fg-cta { margin-top: 34px; background: #F2F5F7; border: 1px solid #d0d8e4; border-radius: 8px; padding: 30px 32px; }
.fg-cta h2 { font-size: 22px; color: #1a1a1a; margin: 0 0 10px; }
.fg-cta p { font-size: 15px; line-height: 1.7; color: #525252; margin: 0 0 8px; }
.fg-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px !important; }

.fg-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.fg-pager a { flex: 0 1 48%; background: #fff; border: 1px solid #d0d8e4; border-radius: 6px; padding: 13px 16px; text-decoration: none; color: #3a6da8; font-weight: 600; font-size: 14px; display: block; }
.fg-pager a:hover { border-color: #4E85C5; }
.fg-pager span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #999; font-weight: 500; margin-bottom: 3px; }
.fg-pager-next { text-align: right; margin-left: auto; }
.fg-back { margin-top: 22px; font-size: 14px; }
.fg-back a { color: #4E85C5; text-decoration: none; }
.fg-back a:hover { text-decoration: underline; }

/* Category menu: a grid of equal cells, so entries line up in columns instead
   of wrapping into a ragged run of text links. */
.fg-toc { background: #F2F5F7; border: 1px solid #d0d8e4; border-radius: 8px; padding: 20px 22px 22px; margin-bottom: 34px; }
.fg-toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #6B7280; margin: 0 0 14px; }
.fg-toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 10px; }
.fg-toc li { display: flex; }
.fg-toc a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #d0d8e4;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, color .2s;
}
.fg-toc a:hover { border-color: #4E85C5; color: #3a6da8; box-shadow: 0 2px 10px rgba(78,133,197,.12); }
.fg-toc-name { line-height: 1.35; }
.fg-toc-count { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #3a6da8; background: #eaf1fb; border-radius: 20px; padding: 3px 9px; }
.fg-toc a:hover .fg-toc-count { background: #4E85C5; color: #fff; }

.fg-cat { margin-bottom: 40px; scroll-margin-top: 90px; }
.fg-cat h2 { font-size: 22px; color: #1a1a1a; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.fg-cat-count { font-size: 12px; font-weight: 700; color: #3a6da8; background: #eaf1fb; border-radius: 20px; padding: 3px 10px; }
.fg-cat-blurb { font-size: 14px; color: #777; margin: 0 0 16px; }
.fg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.fg-card { display: flex; flex-direction: column; gap: 7px; background: #fff; border: 1px solid #d0d8e4; border-radius: 8px; padding: 16px 18px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.fg-card:hover { border-color: #4E85C5; box-shadow: 0 3px 14px rgba(78,133,197,.13); transform: translateY(-2px); }
.fg-card-title { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.fg-card-desc { font-size: 13px; line-height: 1.55; color: #777; }
.fg-card-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #4E85C5; font-weight: 600; margin-top: auto; padding-top: 4px; }

@media (max-width: 768px) {
    .fg-article-hero h1 { font-size: 26px; }
    .fg-root .fg-article { padding: 20px 18px; }
    .fg-pager { flex-direction: column; }
    .fg-pager a { flex: 1 1 auto; }
    .fg-pager-next { text-align: left; margin-left: 0; }
    .fg-specs th { width: 130px; }
}
