/* PDF Documentazione - bottone visibile + foglio "stage" per l'export */

/* --- bottone in pagina --- */
.pdfdoc-btnwrap {
  margin: 0 0 18px;
  text-align: right;
}
.pdfdoc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #161E34;
  color: #fff;
  border: 1px solid #161E34;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, border-color .2s, opacity .2s;
}
.pdfdoc-btn:hover,
.pdfdoc-btn:focus {
  background: #b8893f;
  border-color: #b8893f;
  color: #fff;
}
.pdfdoc-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}
.pdfdoc-btn.is-loading {
  opacity: .6;
  cursor: wait;
}
.pdfdoc-btn[disabled] {
  pointer-events: none;
}
@media (max-width: 480px) {
  .pdfdoc-btnwrap { text-align: center; }
  .pdfdoc-btn { width: 100%; justify-content: center; }
}

/* --- wrapper off-screen: e' LUI ad essere posizionato, lo stage resta nel flusso --- */
#pdfdoc-wrap {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: -1;
  width: 760px;
  pointer-events: none;
}
/* --- foglio nel flusso normale usato per generare il PDF --- */
/* il padding orizzontale fa da margine: html2pdf usa margine 0 a sx/dx (vedi JS) */
#pdfdoc-stage {
  width: 760px;
  padding: 0 38px;
  background: #fff;
  color: #161E34;
  font-family: Arial, Helvetica, sans-serif;
}
#pdfdoc-stage * {
  color: #161E34;
  font-family: Arial, Helvetica, sans-serif;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  position: static !important;
}
#pdfdoc-stage .pdfdoc-pdfhead {
  border-bottom: 3px solid #b8893f;
  padding: 0 0 14px;
  margin: 0 0 18px;
}
#pdfdoc-stage .pdfdoc-logo {
  height: 52px;
  width: auto !important;
  display: block;
  margin: 0 0 12px;
}
#pdfdoc-stage .pdfdoc-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
}
#pdfdoc-stage .pdfdoc-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b8893f !important;
  margin-top: 4px;
}
#pdfdoc-stage .pdfdoc-practice {
  font-size: 17px;
  font-weight: 700;
  margin-top: 10px;
}
#pdfdoc-stage [data-body] {
  font-size: 13px;
  line-height: 1.5;
}
#pdfdoc-stage [data-h] {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid #e3d8c8;
  page-break-inside: avoid;
  page-break-after: avoid;
}
#pdfdoc-stage [data-gold] {
  color: #b8893f !important;
}
/* tiene insieme titolo di sezione + relativa lista (niente titolo orfano a fine pagina) */
#pdfdoc-stage [data-grp] {
  page-break-inside: avoid;
}
#pdfdoc-stage ul {
  margin: 0 0 10px;
  padding-left: 20px;
  list-style: disc;
}
#pdfdoc-stage ul ul {
  list-style: circle;
  margin: 4px 0 4px;
}
#pdfdoc-stage li {
  margin: 2px 0;
  page-break-inside: avoid;
}
#pdfdoc-stage p {
  margin: 6px 0;
}
