/* Orologio mondiale */
.world-page-header { padding-bottom: 20px; }
.world-page-header h1 { text-wrap: balance; }
.world-page-header h1 span { display: block; }
.world-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  margin-top: 4px;
}
.world-header-meta .updated { margin: 0; }
.world-header-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.world-clock { padding: 20px 24px; }
.world-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.world-heading h2 { margin: 0; font-size: 1.12rem; }
.world-reference {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 8px;
  padding: 6px 12px;
  border: 1px solid var(--orange-border);
  border-radius: 8px;
  background: var(--orange-dim);
}
.world-reference span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .72rem;
}
.world-reference time {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.world-reference small { color: var(--muted); font-size: .71rem; }

/* Ricerca e tabella delle località */
.world-search { max-width: 420px; margin-bottom: 10px; }
.world-search label { display: block; margin: 0 0 4px; font-weight: 650; }
.world-search input { min-height: 44px; font-size: 1rem; text-align: left; }
.world-status { margin: 8px 0; color: var(--muted); font-size: .85rem; }
.world-status:empty, .world-clock [hidden] { display: none; }
.worldclock-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.world-place-col { width: 40%; }
.world-time-col, .world-utc-col { width: 19%; }
.world-diff-col { width: 22%; }
.worldclock-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.worldclock-table th, .worldclock-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}
.worldclock-table thead th { color: var(--muted); font-size: .79rem; }
.worldclock-table th[scope="row"] { font-weight: 600; overflow-wrap: break-word; }
.world-city, .worldclock-table time { display: block; font-size: .94rem; }
.world-city a { text-decoration: underline; text-underline-offset: .16em; }
.world-clock a:focus-visible, .world-clock button:focus-visible, .world-clock input:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
.worldclock-table small { display: block; color: var(--muted); font-size: .73rem; }
.worldclock-table time, .worldclock-table [data-world-date],
.worldclock-table [data-world-utc], .worldclock-table [data-world-difference] {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.worldclock-table time { font-weight: 700; }
.worldclock-table [data-world-utc], .worldclock-table [data-world-difference] { font-size: .86rem; }
.world-toggle { min-height: 44px; margin-top: 14px; }
#orari-mondo, #convertitore-fuso { scroll-margin-top: 6rem; }

@media (max-width: 480px) {
  .world-page-header { padding-top: 23px; padding-bottom: 17px; }
  .world-clock { padding: 14px 12px; }
  .world-heading h2 { font-size: 1rem; }
  .world-reference { padding: 5px 8px; }
  .world-place-col { width: 35%; }
  .world-time-col { width: 24%; }
  .world-utc-col { width: 18%; }
  .world-diff-col { width: 23%; }
  .worldclock-table th, .worldclock-table td { padding: 6px 4px; }
  .worldclock-table thead th { font-size: .72rem; }
  .world-city, .worldclock-table time { font-size: .86rem; }
  .worldclock-table small { font-size: .65rem; }
  .worldclock-table [data-world-utc], .worldclock-table [data-world-difference] { font-size: .76rem; }
}
