/* Protezione da scroll orizzontale */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Adattamento tema scuro */
.bg-light {
  background-color: var(--dark-lighter) !important;
  color: var(--text-primary) !important;
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
  margin-bottom: 2rem;
}

.table-dark {
  --bs-table-bg: var(--dark-card);
  --bs-table-striped-bg: var(--dark-lighter);
  --bs-table-border-color: var(--border-color);
}

.table thead {
  background: var(--dark-card);
  border-bottom: 2px solid var(--border-color);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

/* Sezioni documento */
.document-section {
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.document-section:last-child {
  border-bottom: none;
}

.document-section h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.document-section h3 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.document-section h4 {
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.document-section p,
.document-section li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.document-section ul,
.document-section ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.document-section ul li,
.document-section ol li {
  margin-bottom: 0.75rem;
}

/* Box informativi */
.info-box {
  background: var(--dark-card);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.info-box h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-box p {
  margin-bottom: 0.5rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Warning box */
.warning-box {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.warning-box strong {
  color: #ffc107;
  display: block;
  margin-bottom: 0.5rem;
}

/* Lista contatti */
.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  color: var(--primary);
  display: inline-block;
  min-width: 200px;
}

/* Ultima modifica */
.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}