/* Sentinel Docs — portale tecnico pubblico, senza dipendenze esterne. */
.docs-portal-page { background: #f7f9fc; color: #35425a; }
.docs-portal-page code,
.docs-portal-page pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.docs-portal-page code { overflow-wrap: normal; }
.docs-reading-progress { position: fixed; inset: 0 0 auto; z-index: 110; height: 3px; background: transparent; pointer-events: none; }
.docs-reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #5d91cf, #2bc8a6); box-shadow: 0 0 12px rgba(43,200,166,.4); }

.docs-topbar { position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 68px; padding: 10px clamp(18px,4vw,58px); border-bottom: 1px solid rgba(38,69,115,.11); background: rgba(255,255,255,.92); box-shadow: 0 5px 20px rgba(38,69,115,.04); backdrop-filter: blur(18px); }
.docs-brand { gap: 9px; white-space: nowrap; }
.docs-brand-divider { width: 1px; height: 25px; margin-left: 4px; background: rgba(38,69,115,.2); }
.docs-brand-label { color: #567098; font-size: 11px; font-weight: 650; letter-spacing: .13em; }
.docs-topnav { display: flex; align-items: center; justify-content: flex-end; gap: 23px; }
.docs-topnav a { color: #4c5d77; font-size: 13px; font-weight: 500; }
.docs-topnav a:hover,
.docs-topnav a:focus-visible { color: #264573; }
.docs-topnav .language-switch { display: grid; place-items: center; width: 38px; height: 29px; border: 1px solid rgba(38,69,115,.18); border-radius: 999px; background: #fff; box-shadow: 0 3px 12px rgba(38,69,115,.08); }
.docs-login { min-height: 42px; padding: 10px 17px; white-space: nowrap; }

.docs-portal-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(330px,.75fr); gap: clamp(36px,7vw,96px); align-items: center; overflow: visible; padding: clamp(54px,7vw,96px) clamp(22px,6vw,88px) clamp(46px,6vw,76px); border-bottom: 1px solid rgba(38,69,115,.1); background: radial-gradient(circle at 82% 15%,rgba(74,199,193,.13),transparent 24%),radial-gradient(circle at 17% 110%,rgba(93,145,207,.16),transparent 33%),linear-gradient(135deg,#f8fbff 0%,#f1f6fc 58%,#f7fbfa 100%); }
.docs-portal-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: linear-gradient(rgba(38,69,115,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(38,69,115,.035) 1px,transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg,#000,transparent 75%); }
.docs-portal-hero-copy { max-width: 800px; }
.docs-portal-hero .kicker { margin-bottom: 12px; color: #3e6fa8; font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.docs-portal-hero h1 { margin: 0; color: #264573; font-size: clamp(3rem,5.7vw,5rem); line-height: .94; letter-spacing: -.065em; overflow-wrap: normal; word-break: normal; }
.docs-portal-hero h1 span { color: #4fc7ae; }
.docs-portal-hero-copy > p:not(.kicker) { max-width: 780px; margin: 23px 0 0; color: #4b5b75; font-size: clamp(1rem,1.55vw,1.22rem); line-height: 1.75; }
.docs-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.docs-meta-row span { padding: 7px 10px; border: 1px solid rgba(38,69,115,.12); border-radius: 999px; background: rgba(255,255,255,.75); color: #52627d; font-size: 10.5px; font-weight: 550; }

.docs-search-wrap { position: relative; z-index: 6; padding: 22px; border: 1px solid rgba(38,69,115,.12); border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: 0 20px 55px rgba(38,69,115,.12); backdrop-filter: blur(12px); }
.docs-search-wrap > label { display: block; margin-bottom: 9px; color: #264573; font-size: 13px; font-weight: 650; }
.docs-search-box { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 54px; padding: 0 14px; border: 1px solid rgba(38,69,115,.2); border-radius: 12px; background: #fff; transition: border-color .18s,box-shadow .18s; }
.docs-search-box:focus-within { border-color: #5d91cf; box-shadow: 0 0 0 4px rgba(93,145,207,.13); }
.docs-search-box svg { width: 20px; fill: none; stroke: #59708f; stroke-width: 1.8; }
.docs-search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #263d60; font: inherit; font-size: 13px; }
.docs-search-box input::placeholder { color: #71809a; }
.docs-search-box kbd { padding: 3px 7px; border: 1px solid rgba(38,69,115,.14); border-radius: 6px; background: #f3f6fa; color: #61718a; font-size: 11px; box-shadow: inset 0 -1px rgba(38,69,115,.08); }
.docs-search-hint { margin: 8px 0 0; color: #748098; font-size: 10px; }
.docs-search-results { position: absolute; top: calc(100% - 13px); left: 22px; right: 22px; z-index: 20; overflow: hidden; border: 1px solid rgba(38,69,115,.15); border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(27,51,88,.2); }
.docs-search-results a { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 13px 15px; border-bottom: 1px solid rgba(38,69,115,.08); color: #314b72; font-size: 13px; }
.docs-search-results a:last-child { border-bottom: 0; }
.docs-search-results a:hover,
.docs-search-results a:focus-visible { background: #eef4fb; }
.docs-search-results a small { color: #7a879b; font-size: 10px; }
.docs-search-empty { padding: 16px; color: #68758b; font-size: 12px; line-height: 1.6; }

.docs-sidebar-toggle { display: none; }
.docs-portal-layout { display: grid; grid-template-columns: minmax(190px,245px) minmax(0,820px) minmax(150px,205px); gap: clamp(28px,4vw,58px); align-items: start; width: min(1480px,100%); margin: 0 auto; padding: 48px clamp(20px,4vw,58px) 96px; }
.docs-portal-sidebar { position: sticky; top: 91px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 0 14px 25px 0; scrollbar-width: thin; scrollbar-color: rgba(38,69,115,.2) transparent; }
.docs-nav-group + .docs-nav-group { margin-top: 27px; }
.docs-nav-group h2 { margin: 0 0 8px; color: #7a8799; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.docs-nav-group a { position: relative; display: block; margin: 2px 0; padding: 8px 11px; border-radius: 8px; color: #53627a; font-size: 12.5px; line-height: 1.35; }
.docs-nav-group a:hover,
.docs-nav-group a:focus-visible { background: #edf3fa; color: #264573; }
.docs-nav-group a.is-active { background: #e8f1fb; color: #2e659f; font-weight: 650; }
.docs-nav-group a.is-active::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: -3px; width: 3px; border-radius: 3px; background: #5d91cf; }
.docs-sidebar-help { margin-top: 31px; padding: 15px; border: 1px solid rgba(38,69,115,.11); border-radius: 12px; background: #fff; }
.docs-sidebar-help strong { display: block; font-size: 12px; }
.docs-sidebar-help p { margin: 5px 0 9px; color: #66738a; font-size: 10.5px; line-height: 1.55; }
.docs-sidebar-help a { color: #356da9; font-size: 11px; font-weight: 650; }

.docs-portal-article { min-width: 0; }
.docs-article-section { scroll-margin-top: 96px; padding: 8px 0 68px; border-bottom: 1px solid rgba(38,69,115,.11); }
.docs-article-section + .docs-article-section { padding-top: 62px; }
.docs-article-section:last-child { border-bottom: 0; }
.docs-section-label { margin-bottom: 10px; color: #4d82bc; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.docs-article-section h2 { max-width: 760px; margin: 0 0 19px; color: #264573; font-size: clamp(1.85rem,3.5vw,3rem); line-height: 1.13; letter-spacing: -.035em; }
.docs-article-section > h3 { margin: 31px 0 10px; color: #264573; font-size: 1.16rem; }
.docs-article-section > p { margin: 0 0 17px; color: #4e5d75; font-size: 14.5px; line-height: 1.85; }
.docs-article-section .docs-lead { color: #42536d; font-size: 16px; line-height: 1.85; }
.docs-article-section p a,
.docs-inline-link { color: #356da9; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(53,109,169,.35); text-underline-offset: 3px; }
.docs-article-section :not(pre) > code { padding: 2px 5px; border: 1px solid rgba(38,69,115,.1); border-radius: 5px; background: #edf3f9; color: #294e7c; font-size: .88em; }

.docs-concept-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 26px 0; }
.docs-concept-grid section { padding: 20px; border: 1px solid rgba(38,69,115,.11); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(38,69,115,.055); }
.docs-concept-grid section > span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eaf2fb; color: #2f6398; font-size: 10px; font-weight: 700; }
.docs-concept-grid h3 { margin: 14px 0 6px; color: #29486f; font-size: 15px; }
.docs-concept-grid p { color: #637087; font-size: 11.5px; line-height: 1.65; }

.docs-note { margin: 25px 0; padding: 18px 20px 18px 52px; border: 1px solid rgba(73,132,190,.2); border-radius: 13px; background: #eef6ff; color: #415775; position: relative; }
.docs-note::before { content: "i"; position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #4f85bf; color: #fff; font-size: 12px; font-weight: 700; }
.docs-note strong { display: block; margin-bottom: 3px; color: #294e7c; font-size: 13px; }
.docs-note p { margin: 0; color: inherit; font-size: 12px; line-height: 1.7; }
.docs-note-warning { border-color: rgba(201,149,31,.27); background: #fff9e9; color: #665a3a; }
.docs-note-warning::before { content: "!"; background: #c59220; }
.docs-note-warning strong { color: #705718; }
.docs-note-success { border-color: rgba(38,170,139,.25); background: #ecfaf6; color: #3d625a; }
.docs-note-success::before { content: "✓"; background: #239b7f; }
.docs-note-success strong { color: #246a5a; }

.docs-procedure { margin: 25px 0; list-style: none; }
.docs-procedure li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding-bottom: 24px; }
.docs-procedure li:not(:last-child)::after { content: ""; position: absolute; top: 39px; bottom: 3px; left: 18px; width: 1px; background: rgba(38,69,115,.16); }
.docs-procedure li > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(80,137,194,.22); border-radius: 10px; background: #eaf3fc; color: #4278af; font-size: 11px; font-weight: 700; }
.docs-procedure h3 { margin: 1px 0 3px; color: #29486f; font-size: 14px; }
.docs-procedure p { margin: 0; color: #5e6c83; font-size: 12.5px; line-height: 1.7; }
.docs-procedure-compact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.docs-procedure-compact li { padding: 17px; border: 1px solid rgba(38,69,115,.11); border-radius: 12px; background: #fff; }
.docs-procedure-compact li::after { display: none; }

.docs-requirements,
.docs-troubleshoot { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 25px 0; }
.docs-requirements section,
.docs-troubleshoot section { padding: 18px; border: 1px solid rgba(38,69,115,.11); border-radius: 13px; background: #fff; }
.docs-requirements h3,
.docs-troubleshoot h3 { margin: 0 0 6px; color: #29486f; font-size: 13px; }
.docs-requirements p,
.docs-troubleshoot p { margin: 0; color: #657188; font-size: 11.5px; line-height: 1.65; }

.docs-code-block { overflow: hidden; margin: 25px 0; border: 1px solid #223e65; border-radius: 14px; background: #071b37; box-shadow: 0 14px 35px rgba(7,27,55,.16); }
.docs-code-block > div { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 8px 13px 8px 16px; border-bottom: 1px solid rgba(174,207,248,.13); background: #0d294f; }
.docs-code-block > div span { color: #b8cae2; font-family: ui-monospace,monospace; font-size: 10px; }
.docs-code-block button { padding: 5px 10px; border: 1px solid rgba(182,213,249,.23); border-radius: 7px; background: rgba(255,255,255,.07); color: #d5e4f6; cursor: pointer; font: inherit; font-size: 10px; }
.docs-code-block button:hover,
.docs-code-block button:focus-visible { background: rgba(255,255,255,.14); }
.docs-code-block pre { max-width: 100%; overflow: auto; padding: 20px; color: #d8e8fb; font-size: 12px; line-height: 1.75; tab-size: 2; }
.docs-code-block code { white-space: pre; }

.docs-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 26px 0; }
.docs-flow div { min-height: 116px; padding: 18px; border: 1px solid rgba(38,69,115,.12); border-radius: 13px; background: #fff; text-align: center; }
.docs-flow strong,
.docs-flow span { display: block; }
.docs-flow strong { margin-bottom: 6px; font-size: 13px; }
.docs-flow span { color: #68758a; font-size: 10.5px; line-height: 1.5; }
.docs-flow i { color: #5d91cf; font-style: normal; }

.docs-mode-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 25px 0; }
.docs-mode-cards section { padding: 23px; border: 1px solid rgba(38,69,115,.12); border-radius: 15px; background: #fff; }
.docs-mode-cards section:first-child { background: linear-gradient(145deg,#f4f8fe,#fff); }
.docs-mode-cards section:last-child { border-color: rgba(35,155,127,.2); background: linear-gradient(145deg,#effbf7,#fff); }
.docs-mode-cards section > span { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e6f0fb; color: #356da9; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.docs-mode-cards section:last-child > span { background: #dff7ef; color: #187a64; }
.docs-mode-cards h3 { margin: 13px 0 6px; color: #29486f; font-size: 15px; }
.docs-mode-cards p { color: #617087; font-size: 11.5px; line-height: 1.7; }

.docs-command-list { display: grid; gap: 9px; margin: 24px 0; }
.docs-command-list section { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,auto); gap: 20px; align-items: center; padding: 16px 18px; border: 1px solid rgba(38,69,115,.11); border-radius: 12px; background: #fff; }
.docs-command-list strong,
.docs-command-list span { display: block; }
.docs-command-list strong { color: #29486f; font-size: 12px; }
.docs-command-list span { margin-top: 3px; color: #6a768a; font-size: 10.5px; }
.docs-command-list code { overflow-x: auto; padding: 8px 10px; border-radius: 7px; background: #edf3f9; color: #294e7c; font-size: 10.5px; white-space: nowrap; }
.docs-end-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }

.docs-page-toc { position: sticky; top: 91px; max-height: calc(100vh - 112px); overflow-y: auto; padding-left: 19px; border-left: 1px solid rgba(38,69,115,.11); }
.docs-page-toc > strong { display: block; margin-bottom: 8px; color: #6e7b90; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.docs-page-toc nav a { display: block; padding: 6px 0; color: #748097; font-size: 10.5px; line-height: 1.35; }
.docs-page-toc nav a:hover,
.docs-page-toc nav a:focus-visible,
.docs-page-toc nav a.is-active { color: #356da9; }
.docs-toc-status { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(38,69,115,.11); color: #4e607c; font-size: 10px; }
.docs-toc-status span { width: 7px; height: 7px; border-radius: 50%; background: #25b890; box-shadow: 0 0 0 4px rgba(37,184,144,.12); }
.docs-footer { margin-top: 0; }

.docs-sidebar-backdrop { position: fixed; inset: 68px 0 0; z-index: 79; background: rgba(7,22,46,.35); backdrop-filter: blur(2px); }

@media (max-width: 1120px) {
  .docs-portal-layout { grid-template-columns: 220px minmax(0,1fr); }
  .docs-page-toc { display: none; }
  .docs-topnav a:not(.language-switch) { display: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .docs-topbar { grid-template-columns: 1fr auto auto; gap: 10px; min-height: 62px; padding: 9px 14px; }
  .docs-brand .brand-name { font-size: 12px; }
  .docs-brand-divider,
  .docs-brand-label { display: none; }
  .docs-topnav { gap: 0; }
  .docs-login { min-height: 38px; padding: 8px 11px; font-size: 11px; }
  .docs-portal-hero { grid-template-columns: 1fr; gap: 31px; padding: 43px 18px 39px; }
  .docs-portal-hero h1 { font-size: clamp(2.65rem,11.4vw,3.1rem); letter-spacing: -.055em; }
  .docs-portal-hero-copy > p:not(.kicker) { margin-top: 18px; font-size: 14px; }
  .docs-meta-row { gap: 6px; margin-top: 19px; }
  .docs-meta-row span { font-size: 9px; }
  .docs-search-wrap { padding: 15px; border-radius: 15px; }
  .docs-search-box kbd { display: none; }
  .docs-search-results { top: calc(100% - 8px); left: 15px; right: 15px; }
  .docs-sidebar-toggle { position: sticky; top: 62px; z-index: 70; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 48px; padding: 10px 18px; border: 0; border-bottom: 1px solid rgba(38,69,115,.11); background: rgba(255,255,255,.96); color: #34557f; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; backdrop-filter: blur(12px); }
  .docs-sidebar-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .docs-portal-layout { display: block; padding: 37px 18px 70px; }
  .docs-portal-sidebar { position: fixed; top: 62px; bottom: 0; left: 0; z-index: 80; width: min(86vw,330px); max-height: none; padding: 24px 20px 40px; background: #fff; box-shadow: 16px 0 50px rgba(18,39,70,.19); transform: translateX(-105%); transition: transform .22s ease; }
  .docs-portal-sidebar.is-open { transform: translateX(0); }
  .docs-concept-grid,
  .docs-requirements,
  .docs-troubleshoot,
  .docs-mode-cards,
  .docs-procedure-compact { grid-template-columns: 1fr; }
  .docs-article-section { padding-bottom: 49px; }
  .docs-article-section + .docs-article-section { padding-top: 45px; }
  .docs-article-section h2 { font-size: 2rem; }
  .docs-flow { grid-template-columns: 1fr; }
  .docs-flow i { transform: rotate(90deg); text-align: center; }
  .docs-flow div { min-height: 0; }
  .docs-command-list section { grid-template-columns: 1fr; gap: 10px; }
  .docs-command-list code { width: 100%; }
  .docs-code-block pre { padding: 16px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .docs-portal-sidebar { transition: none; }
  .docs-reading-progress { display: none; }
}
