.elementor-2374 .elementor-element.elementor-element-d718db9{--display:flex;}/* Start custom CSS for html, class: .elementor-element-c84dc1d *//* Struttura di Base */
.antitarlo-table,
.antitarlo-table * ,
.antitarlo-table *::before,
.antitarlo-table *::after {
  box-sizing: border-box;
}

.antitarlo-table {
  font-family: 'Rubik', sans-serif;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  width: 100%;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Evita sovrapposizioni esterne */
  z-index: 1;
}

/* Filtri */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-label {
  font-size: 14px;
  color: #666;
  margin-right: 4px;
}

.filter-btn {
  padding: 7px 14px;
  border: 0.5px solid #5D1621;
  border-radius: 20px;
  background: #fff;
  color: #5D1621;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.filter-btn.active {
  background: #5D1621;
  color: #ffffff;
}

.filter-btn:hover:not(.active) {
  background: #f5f0f0;
  color: #5D1621;
}

/* Suggerimenti Scenario */
.scenario-hint {
  font-size: 14px;
  color: #291111;
  background: #ECE9E9;
  border-left: 3px solid #94A722;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
  display: none;
  line-height: 1.5;
}

.scenario-hint.visible {
  display: block;
}

/* Legenda */
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 10px 0;
  border-top: 0.5px solid #eee;
  border-bottom: 0.5px solid #eee;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666;
}

.legend-warn {
  color: #BA7517;
  font-size: 17px;
}

.legend-note {
  margin-left: auto;
  font-style: italic;
}

/* Tabella Contenitore */
.table-wrap {
  overflow-x: auto;
  border: 0.5px solid #ddd;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 760px;
}

thead tr {
  border-bottom: 0.5px solid #ddd;
}

th {
  padding: 11px 8px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #555;
  background: #f7f7f7;
}

.th-note {
  font-weight: 400;
  font-size: 13px;
}

th.col-criteri {
  text-align: left;
  width: 190px;
  padding-left: 14px;
}

th.col-ir {
  background: #5D1621;
  color: #ECE9E9;
  font-size: 16px;
}

th.col-ir .best-badge {
  display: block;
  font-size: 11px;
  background: #94A722;
  color: #291111;
  border-radius: 10px;
  padding: 2px 7px;
  margin: 4px auto 0;
  width: fit-content;
  font-weight: 500;
}

td {
  padding: 10px 8px;
  font-size: 14px;
  text-align: center;
  border-bottom: 0.5px solid #eee;
  color: #1a1a1a;
  vertical-align: middle;
}

td.criteri {
  text-align: left;
  padding-left: 14px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

td.col-ir {
  background: rgba(93,22,33,0.05);
}

tr:last-child td {
  border-bottom: none;
}

tr.hidden {
  display: none;
}

tr:hover td {
  background: #f7f7f7;
}

tr:hover td.col-ir {
  background: rgba(93,22,33,0.09);
}

.toggle-row {
  cursor: pointer;
}

/* Valori e Icone */
.val-ok { color: #5D1621; font-size: 14px; font-weight: 500; }
.val-no { color: #E24B4A; font-size: 14px; }
.val-warn { color: #BA7517; font-size: 14px; }
.icon-ok { color: #5D1621; font-size: 17px; }
.icon-no { color: #E24B4A; font-size: 17px; }

/* Righe Dettaglio */
.detail-row td {
  background: #faf8f8;
  font-size: 14px;
  color: #555;
  padding: 10px 14px;
  line-height: 1.6;
  border-bottom: 0.5px solid #eee;
  text-align: left;
}

.detail-row.hidden {
  display: none;
}

.caret {
  display: inline-block;
  transition: transform .2s;
  font-size: 14px;
  margin-left: 4px;
  color: #aaa;
}

.caret.open {
  transform: rotate(90deg);
}

/* Banner CTA */
.cta-banner {
  background: #ECE9E9;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.cta-banner p.cta-title {
  font-size: 18px;
  font-weight: 500;
  color: #291111;
  margin-bottom: 4px;
}

.cta-banner p.cta-sub {
  font-size: 15px;
  color: #5D1621;
}

.cta-btn {
  background: #5D1621;
  border: none;
  color: #94A722;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity .15s, background .15s, color .15s;
}

.cta-btn:hover {
  background: #5D1621;
  color: #94A722;
  opacity: .88;
}

/* --- VERSIONE MOBILE --- */
@media (max-width: 640px) {
  .antitarlo-table { padding: 0; }
  .wrap { max-width: 100%; }
  
  .filters { gap: 7px; margin-bottom: 1rem; align-items: stretch; }
  .filter-label { width: 100%; margin-bottom: 2px; line-height: 1.4; }
  .filter-btn { flex: 1 1 100%; min-height: 40px; padding: 8px 10px; font-size: 13px; text-align: center; }

  .legend { grid-template-columns: 1fr; display: grid; }
  .legend-note { margin-left: 0; width: 100%; }

  .table-wrap {
    overflow: hidden; /* Blocca la fluttuazione del testo su mobile */
    border: none;
    border-radius: 0;
  }

  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  table { min-width: 0; }
  thead { display: none; }

  tr.toggle-row {
    border: 0.5px solid #ddd;
    border-radius: 10px;
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    font-size: 15px;
    text-align: right;
    border-bottom: 0.5px solid #e2e2e2;
  }

  td::before {
    flex: 0 0 46%;
    text-align: left;
    font-weight: 500;
    color: #555;
    font-size: 15px;
  }

  /* Etichette righe mobile */
  td:nth-child(2)::before { content: "Chimica"; }
  td:nth-child(3)::before { content: "Fumigazione"; }
  td:nth-child(4)::before { content: "Anossica"; }
  td:nth-child(5)::before { content: "Microonde"; }
  td:nth-child(6)::before { content: "Infrarossi"; }

  td.criteri {
    display: block;
    text-align: left;
    background: #f7f7f7;
    font-size: 16px;
    border-bottom: 0.5px solid #d8d8d8;
  }
  td.criteri::before { content: none; }

  .detail-row td {
    display: block;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 14px;
  }
  .detail-row td::before { content: none; }

  .cta-banner { display: block; }
  .cta-btn { width: 100%; text-align: center; }
}/* End custom CSS */