/* Documentazione pubblica (/docs) */
.docs { --docs-bordo: #e5e7eb; --docs-testo: #1f2937; --docs-muted: #6b7280; --docs-codice: #0f172a; background: #fff; color: var(--docs-testo); min-height: 100vh; }
/* Stessa testata scura del sito pubblico (.lp-header): il logo ha "AD" bianco, su fondo chiaro sparirebbe */
.docs-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; height: 64px; position: sticky; top: 0; background: #1b2330; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); z-index: 10; }
.docs-brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-weight: 600; }
.docs-brand:hover { color: #fff; }
.docs-brand img { height: 30px; }
.docs-brand span { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 14px; color: rgba(255, 255, 255, .85); }
.docs-menu-btn { display: none; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; border-radius: 6px; padding: 6px 12px; }
.docs-layout { display: flex; max-width: 1200px; margin: 0 auto; }
.docs-nav { flex: 0 0 240px; padding: 24px 16px; border-right: 1px solid var(--docs-bordo); position: sticky; top: 64px; align-self: flex-start; max-height: calc(100vh - 64px); overflow-y: auto; }
.docs-nav-title { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--docs-muted); font-weight: 600; margin: 0 8px 8px; }
.docs-nav a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--docs-testo); text-decoration: none; font-size: 15px; }
.docs-nav a:hover { background: #f3f4f6; }
.docs-nav a.active { background: #eef2ff; color: #3730a3; font-weight: 600; }
.docs-content { flex: 1 1 auto; min-width: 0; padding: 32px 40px 80px; line-height: 1.65; font-size: 16px; }
.docs-content h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.docs-content h2 { font-size: 22px; font-weight: 700; margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--docs-bordo); }
.docs-content h3 { font-size: 17px; font-weight: 700; margin-top: 24px; }
.docs-content .docs-lead { font-size: 18px; color: var(--docs-muted); }
.docs-content code { background: #f3f4f6; color: #be185d; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.docs-content pre { background: var(--docs-codice); color: #e2e8f0; border-radius: 8px; padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.docs-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.docs-content table { font-size: 14.5px; }
.docs-content table code { white-space: nowrap; }
.docs-endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid var(--docs-bordo); border-radius: 8px; padding: 12px 16px; font-family: SFMono-Regular, Consolas, monospace; font-size: 14.5px; word-break: break-all; }
.docs-metodo { background: #16a34a; color: #fff; border-radius: 4px; padding: 2px 8px; font-weight: 700; font-size: 13px; }
.docs-metodo.get { background: #2563eb; }
.docs-nota { border-left: 4px solid #3b82f6; background: #eff6ff; padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; }
.docs-nota.avviso { border-color: #f59e0b; background: #fffbeb; }
.docs-content .nav-tabs { margin-bottom: 0; border-bottom: 0; }
.docs-content .nav-tabs .nav-link { font-size: 14px; padding: 6px 12px; color: var(--docs-muted); }
.docs-content .nav-tabs .nav-link.active { background: var(--docs-codice); color: #fff; border-color: var(--docs-codice); }
.docs-content .tab-content pre { border-top-left-radius: 0; }
.docs-passi { counter-reset: passo; list-style: none; padding-left: 0; }
.docs-passi > li { counter-increment: passo; position: relative; padding-left: 44px; margin-bottom: 18px; }
.docs-passi > li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #111827; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

@media (max-width: 860px) {
    .docs-header { padding: 0 16px; height: 56px; }
    .docs-brand img { height: 24px; }
    .docs-menu-btn { display: inline-flex; align-items: center; gap: 6px; }
    .docs-layout { display: block; }
    .docs-nav { display: none; position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--docs-bordo); padding: 12px 16px; }
    .docs-nav.is-open { display: block; }
    .docs-content { padding: 24px 16px 64px; }
    .docs-content h1 { font-size: 26px; }
}
