/*
 Theme Name:     Kadence Child
 Theme URI:      https://tuosito.it/
 Description:    Tema child di Kadence
 Author:         Il tuo nome o azienda
 Author URI:     https://tuosito.it/
 Template:       kadence
 Version:        1.0
*/

@import url("../kadence/style.css");

.custom-form-style {
  max-width: 500px;
  margin: auto;
}

.wpcf7-form {
  max-width: 500px;
  margin: auto;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.wpcf7-form input[type="submit"] {
  padding: 12px 30px;
  font-size: 1rem;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Tabelle negli articoli del blog (guide fisco / stock) */
.single .entry-content-wrap,
.single .entry-content.single-content {
  max-width: 100%;
  overflow-x: clip;
}

.entry-content.single-content .wlg-table-wrap,
.entry-content.single-content .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0 1.75rem;
}

.entry-content.single-content table,
.entry-content.single-content .wp-block-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
  table-layout: fixed;
}

.entry-content.single-content table th,
.entry-content.single-content table td,
.entry-content.single-content .wp-block-table table th,
.entry-content.single-content .wp-block-table table td {
  text-align: left !important;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

.entry-content.single-content table thead th,
.entry-content.single-content .wp-block-table table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #111;
}

.entry-content.single-content table tbody tr:nth-child(even) td,
.entry-content.single-content .wp-block-table table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.entry-content.single-content table td:first-child,
.entry-content.single-content table th:first-child {
  width: 22%;
}

@media (max-width: 640px) {
  .entry-content.single-content .wlg-table-wrap,
  .entry-content.single-content .wp-block-table {
    margin-left: 0;
    margin-right: 0;
  }

  .entry-content.single-content table,
  .entry-content.single-content .wp-block-table table {
    min-width: 0;
    font-size: 0.875rem;
    table-layout: fixed;
  }

  .entry-content.single-content table th,
  .entry-content.single-content table td,
  .entry-content.single-content .wp-block-table table th,
  .entry-content.single-content .wp-block-table table td {
    padding: 0.55rem 0.6rem;
    line-height: 1.45;
  }

  /* 2 colonne: 40% / 60% */
  .entry-content.single-content table:not(:has(thead tr > *:nth-child(3))) td:first-child,
  .entry-content.single-content table:not(:has(thead tr > *:nth-child(3))) th:first-child {
    width: 38%;
  }

  /* 3 colonne: Campo | Cosa indica | Esempio */
  .entry-content.single-content table:has(thead tr > *:nth-child(3)) td:first-child,
  .entry-content.single-content table:has(thead tr > *:nth-child(3)) th:first-child {
    width: 24%;
  }

  .entry-content.single-content table:has(thead tr > *:nth-child(3)) td:nth-child(2),
  .entry-content.single-content table:has(thead tr > *:nth-child(3)) th:nth-child(2) {
    width: 38%;
  }

  .entry-content.single-content table:has(thead tr > *:nth-child(3)) td:nth-child(3),
  .entry-content.single-content table:has(thead tr > *:nth-child(3)) th:nth-child(3) {
    width: 38%;
  }
}

