/* ==========================================================================
   MeteoProject - Dati secondaria
   Regole aggiuntive esclusivamente per dati2.php + tag3.php.
   stiles2.css rimane invariato.
   ========================================================================== */

.dati-page .secondary-main {
  padding-top: 26px;
}

.dati-page .data-tag3 {
  width: 100%;
  min-width: 0;
}

.dati-page .tag3 {
  width: 100%;
}

.dati-page .tag3-update {
  margin: 0 0 18px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 27, 43, .60);
  box-shadow: var(--shadow-soft);
}

.dati-page .tag3-update strong {
  color: var(--text);
  font-size: 15px;
}

.dati-page .tag3-panel {
  width: min(100%, 760px);
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12, 33, 49, .90);
  box-shadow: var(--shadow-soft);
}

.dati-page .tag3-panel-title {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  color: #dcebf3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(133,190,220,.15);
  background: linear-gradient(90deg, rgba(57,120,151,.28), rgba(30,59,83,.20));
}

.dati-page .tag3-single-title {
  grid-template-columns: 1fr;
}

.dati-page .tag3-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.dati-page .tag3-table {
  width: 100%;
  min-width: 650px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #dce8ef;
  font-family: "Exo 2", Tahoma, Arial, sans-serif;
  font-size: 12px;
}

.dati-page .tag3-table th,
.dati-page .tag3-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(133,190,220,.09);
  vertical-align: middle;
}

.dati-page .tag3-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,.025);
}

.dati-page .tag3-table tbody tr:last-child td {
  border-bottom: 0;
}

.dati-page .tag3-table th:first-child,
.dati-page .tag3-table td:first-child {
  width: 20%;
}

.dati-page .tag3-table td:nth-child(2) {
  width: 18%;
}

.dati-page .tag3-table td:nth-child(3) {
  width: 18%;
}

.dati-page .tag3-table th:nth-child(4),
.dati-page .tag3-table td:nth-child(4),
.dati-page .tag3-table th:nth-child(6),
.dati-page .tag3-table td:nth-child(6) {
  width: 15%;
}

.dati-page .tag3-table th:nth-child(5),
.dati-page .tag3-table td:nth-child(5),
.dati-page .tag3-table th:nth-child(7),
.dati-page .tag3-table td:nth-child(7) {
  width: 7%;
}

.dati-page .tag3-section-row th {
  padding-top: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(133,190,220,.12);
  font-weight: 800;
}

.dati-page .tag3-section-row th:first-child {
  text-align: left;
}

.dati-page .tag3-section-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
  color: #dcebf3;
}

.dati-page .tag3-section-name img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.dati-page .tag3-table td:first-child,
.dati-page .tag3-table th:first-child {
  text-align: left;
}

.dati-page .tag3-value {
  color: #eef6fb;
  font-weight: 700;
  text-align: center;
}

.dati-page .tag3-min {
  color: #4ed6ff;
  font-weight: 800;
  text-align: center;
  background: rgba(78,214,255,.075);
}

.dati-page .tag3-max {
  color: var(--warning);
  font-weight: 800;
  text-align: center;
  background: rgba(255,198,74,.075);
}

.dati-page .tag3-time {
  color: #91a9b8;
  font-size: 10px;
  text-align: center;
}

.dati-page .tag3-panel-compact {
  margin-bottom: 12px;
}

.dati-page .tag3-extremes {
  width: min(100%, 560px);
  margin-top: 26px;
}

.dati-page .tag3-extreme-table {
  min-width: 480px;
}

.dati-page .tag3-extreme-table th:first-child,
.dati-page .tag3-extreme-table td:first-child {
  width: 28%;
}

.dati-page .tag3-extreme-table td:nth-child(2) {
  width: 15%;
}

.dati-page .tag3-extreme-table td:nth-child(3),
.dati-page .tag3-extreme-table td:nth-child(5),
.dati-page .tag3-extreme-table td:nth-child(7) {
  width: 5%;
}

.dati-page .tag3-extreme-table td:nth-child(4),
.dati-page .tag3-extreme-table td:nth-child(6) {
  width: 21%;
}

.dati-page .tag3-extreme-table .tag3-section-row th:nth-child(4) {
  color: #4ed6ff;
  background: rgba(78,214,255,.075);
}

.dati-page .tag3-extreme-table .tag3-section-row th:nth-child(6) {
  color: var(--warning);
  background: rgba(255,198,74,.075);
}

@media (max-width: 700px) {
  .dati-page .secondary-main {
    padding-top: 16px;
  }

  .dati-page .tag3-update {
    border-radius: 14px;
    font-size: 12px;
  }

  .dati-page .tag3-panel {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .dati-page .tag3-panel-title {
    min-height: 40px;
    font-size: 10px;
  }

  .dati-page .tag3-table {
    font-size: 11px;
  }

  .dati-page .tag3-table th,
  .dati-page .tag3-table td {
    padding: 7px 8px;
  }

  .dati-page .tag3-extremes {
    margin-top: 20px;
  }
}
