.galeotti-eer-table {
  --eer-green: #006736;
  --eer-brown: #403226;
  --eer-alternate: #f5f2e8;
  --eer-border: rgba(64, 50, 38, 0.14);
  --eer-outer-border: #e6e6e6;

  width: 100%;
  overflow: hidden;
  font-family: "Roboto", sans-serif;
  border: 0;
  border-radius: 10px 10px 0 0;
}

.galeotti-eer-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.galeotti-eer-table col:first-child {
  width: 112px;
}

.galeotti-eer-table col:last-child {
  width: 165px;
}

.galeotti-eer-table thead {
  color: #fff;
  background: var(--eer-green);
}

.galeotti-eer-table th {
  padding: 15px 15px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  border: 0;
  font-family: "Roboto", sans-serif;
}

.galeotti-eer-table td {
  padding: 15px 15px;
  color: #666666;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid var(--eer-border);
}

.galeotti-eer-table tbody tr:nth-child(odd) {
  background: #fff;
}

.galeotti-eer-table tbody tr:nth-child(even) {
  background: var(--eer-alternate);
}

.galeotti-eer-table tbody tr:last-child td {
  border-bottom-color: var(--eer-outer-border);
}

@media (min-width: 768px) {
  .galeotti-eer-table tbody td:first-child {
    border-left: 1px solid var(--eer-outer-border);
  }

  .galeotti-eer-table tbody td:last-child {
    border-right: 1px solid var(--eer-outer-border);
  }
}

.galeotti-eer-table__action {
  padding-right: 20px !important;
  text-align: right;
}

.galeotti-eer-table__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  color: var(--eer-brown);
  font-family: "Rethink Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 1px solid rgba(64, 50, 38, 0.2);
  border-radius: 30px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.galeotti-eer-table__button:hover,
.galeotti-eer-table__button:focus {
  color: #fff;
  background: #403226;
  border-color: #403226;
}

.galeotti-eer-table__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 767px) {
  .galeotti-eer-table {
    border: 1px solid var(--eer-outer-border);
    border-radius: 10px;
  }

  .galeotti-eer-table table,
  .galeotti-eer-table tbody,
  .galeotti-eer-table tr,
  .galeotti-eer-table td {
    display: block;
    width: 100%;
  }

  .galeotti-eer-table colgroup,
  .galeotti-eer-table thead {
    display: none;
  }

  .elementor-widget-html .galeotti-eer-table table thead tr {
    border: 0px !important;
  }

  .galeotti-eer-table tbody tr {
    padding: 18px;
    border-bottom: 1px solid var(--eer-border);
  }

  .galeotti-eer-table tbody tr:last-child {
    border-bottom: 0;
  }

  .galeotti-eer-table td {
    padding: 0;
    border: 0;
  }

  .galeotti-eer-table td:first-child {
    margin-bottom: 8px;
    color: var(--eer-green);
    font-size: 16px;
    font-weight: 700;
  }

  .galeotti-eer-table td:first-child::before {
    content: "Codice EER: ";
  }

  .galeotti-eer-table td:nth-child(2)::before {
    content: "Descrizione EER fino al 08/12/2026";
    display: block;
    margin-bottom: 8px;
    color: var(--eer-green);
    font-size: 16px;
    font-weight: 700;
  }

  .galeotti-eer-table__action {
    margin-top: 16px;
    padding-right: 0 !important;
    text-align: left;
  }
}
