/* =========================================================================
   Duomo Patrons — pagina "Informativa sulla privacy e sui cookie"
   Porting di build/replica/css/privacy.css sul markup dei blocchi core
   (pattern duomopatrons/page-privacy). Token/header/footer in theme.css.
   ========================================================================= */

.pv-main {
  padding: 8px 20px 14.4px;
}

.pv-content {
  max-width: 1140px;
  margin: 0 auto;
}

.pv-h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
}

.pv-body {
  padding-top: 16px;
}

.pv-h2 {
  font-size: 57px;
  line-height: 70px;
}

.pv-h3 {
  font-size: 30px;
  line-height: 36px;
}

.pv-h5 {
  padding: 16px 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 37px;
  line-height: 50px;
  color: var(--navy);
}

/* Ritmo verticale (Elementor): 14.4px tra blocchi, 16px sotto i titoli */
.pv-body > p,
.pv-body > .pv-h3 {
  margin-top: 14.4px;
}

.pv-body > .pv-h2:first-child {
  margin-top: 0;
}

.pv-body > .pv-h2:not(:first-child) {
  margin-top: 14.4px;
}

.pv-body > .pv-h2 + p,
.pv-body > .pv-h3 + p,
.pv-cookie-cat > .pv-h3 + p {
  margin-top: 16px;
}

/* ---------- Categorie cookie + tabelle (blocco core table) ---------- */
.pv-cookie-cat {
  padding-top: 35px;
}

.pv-h3--cat {
  padding-top: 35px;
}

.wp-block-table.pv-table {
  margin: 0;
  padding: 14.4px 0 15px;
  overflow-x: auto;
}

.wp-block-table.pv-table table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  line-height: 18px;
  color: #000;
  text-align: left;
}

.wp-block-table.pv-table thead {
  border-bottom: 0;
}

.wp-block-table.pv-table th,
.wp-block-table.pv-table td {
  padding: 10px;
  border: 1px solid #d5d8df;
  vertical-align: top;
  word-break: normal;
}

.wp-block-table.pv-table th {
  font-weight: 700;
  background: #d9dfe7;
  border-color: #cbced6;
}

.wp-block-table.pv-table tbody tr:nth-child(odd) td { background: #f1f5fa; }
.wp-block-table.pv-table tbody tr:nth-child(even) td { background: var(--white); }

/* Larghezze colonne: il blocco table non ha <colgroup>, con table-layout
   fixed le detta la prima riga (le celle dell'intestazione). */
.pv-table--necessaria th:nth-child(1) { width: 109.09px; }
.pv-table--necessaria th:nth-child(2) { width: 58.73px; }
.pv-table--funzionale th:nth-child(1) { width: 227.94px; }
.pv-table--funzionale th:nth-child(2) { width: 90.27px; }

/* ---------- Bottone preferenze cookie (statico, lo collega il plugin) ---------- */
.wp-block-buttons.pv-consent {
  display: block;
  height: 36px;
}

.wp-block-buttons.pv-consent > .pv-consent__btn {
  margin-left: 7px;
}

.pv-consent__btn .wp-block-button__link {
  cursor: pointer;
  display: inline-block;
  width: auto;
  height: 40px;
  padding: 0 30px;
  border: 1px solid #dee2e6;
  border-radius: 2px;
  background: #f8f9fa;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 36px;
  color: var(--text);
  text-decoration: none;
}

.pv-consent__btn .wp-block-button__link:hover {
  background: #e9ecef;
  color: var(--text);
}

.pv-body > p.pv-after-consent {
  margin-top: 0;
}

.pv-link {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pv-h2 { font-size: 40px; line-height: 50px; }
  .pv-h5 { font-size: 30px; line-height: 40px; }
}

@media (max-width: 640px) {
  .pv-main { padding-top: 24px; }
  .pv-h2 { font-size: 32px; line-height: 40px; }
  .pv-h3 { font-size: 24px; line-height: 32px; }
  .pv-h5 { font-size: 26px; line-height: 36px; }
  .pv-body { font-size: 16px; line-height: 30px; }
  .wp-block-table.pv-table table { table-layout: auto; min-width: 560px; }
  .wp-block-table.pv-table th { width: auto !important; }
  .wp-block-buttons.pv-consent { height: auto; margin-bottom: 14.4px; }
  .wp-block-buttons.pv-consent > .pv-consent__btn { margin-left: 0; }
}
