/* ==========================================================================
   ADM, presidenti e segretari.
   ========================================================================== */

.pres-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pres-jump a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--f-display); font-size: 14px; font-weight: 600; text-decoration: none; }
.pres-jump a:hover { border-color: var(--ink); }
.pres-body { padding: 40px 0 24px; }
.pres-section { max-width: 980px; scroll-margin-top: calc(var(--header-h) + 20px); }
.pres-section + .pres-section { margin-top: 56px; }
.pres-section h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; font-stretch: 88%; }
.pres-note { margin: 0 0 16px; max-width: 72ch; color: var(--muted); }

.pres-table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); font-size: 16px; }
.pres-table th, .pres-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pres-table thead th { padding-top: 9px; padding-bottom: 9px; border-bottom: 1.5px solid var(--ink); font-family: var(--f-display); font-size: 13px; font-weight: 600; color: var(--muted); }
.pres-table tbody th { width: 170px; font-family: var(--f-display); font-weight: 600; color: var(--teal-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pres-table tbody td:nth-child(2) { font-weight: 600; color: var(--ink); }
.pres-table tbody tr:hover { background: #fafcfd; }
.pres-table tr.is-current { background: var(--teal-soft); }
.pres-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--teal-dark); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 2px; }
.pres-empty { color: #a3adb7; font-size: 14px; }

/* Su smartphone ogni mandato diventa un blocco con etichette */
@media (max-width: 640px) {
  .pres-table thead { display: none; }
  .pres-table, .pres-table tbody, .pres-table tr, .pres-table th, .pres-table td { display: block; width: 100%; }
  .pres-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pres-table tbody th { width: auto; padding: 0 0 6px; border: 0; white-space: normal; }
  .pres-table td { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 3px 0; border: 0; }
  .pres-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 500; }
  .pres-table tr.is-current { padding-left: 10px; padding-right: 10px; }
}

/* Regolamenti: elenco dei documenti */
.doc-list { display: grid; gap: 10px; max-width: 980px; list-style: none; margin: 0; padding: 0; }
.doc-item { display: flex; gap: 18px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 6px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s; }
.doc-item:hover { border-color: var(--teal); color: inherit; }
.doc-item > .bi { flex: none; font-size: 32px; color: #b42318; }
.doc-text { flex: 1; min-width: 0; }
.doc-text b { display: block; font-family: var(--f-display); font-size: 17px; line-height: 1.3; color: var(--ink); }
.doc-item:hover .doc-text b { color: var(--teal-dark); }
.doc-descr { display: block; margin-top: 3px; color: var(--text); font-size: 15px; }
.doc-text small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.doc-go { flex: none; color: var(--teal-dark); font-family: var(--f-display); font-size: 14px; font-weight: 600; }
.doc-go .bi { font-size: 12px; }
@media (max-width: 575.98px) {
  .doc-item { padding: 14px; gap: 12px; }
  .doc-go { display: none; }
}
