/* CityNotizie V2 - Meteo locale
   BUILD: CN_LOCAL_WEATHER_3_23_0A_20261004 */

.cn-weather-nav-link,
.cn-weather-city-link {
  white-space: nowrap;
}

.cn-weather-city-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 20px;
  padding: 8px 13px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.cn-weather-city-link:hover {
  background: #f5f5f5;
}

.cn-weather-page {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 56px;
}

.cn-weather-page__head {
  margin-bottom: 24px;
}

.cn-weather-page__eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cn-weather-page h1 {
  margin: 0 0 8px;
}

.cn-weather-search {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin: 20px 0 28px;
}

.cn-weather-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 8px;
  font: inherit;
}

.cn-weather-search button {
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cn-weather-current {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
}

.cn-weather-current__icon {
  font-size: 54px;
  line-height: 1;
}

.cn-weather-current__temp {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  line-height: 1;
}

.cn-weather-current__desc {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 700;
}

.cn-weather-current__meta {
  margin-top: 6px;
  opacity: .72;
  font-size: 14px;
}

.cn-weather-days {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.cn-weather-day {
  padding: 15px 12px;
  border: 1px solid rgba(0,0,0,.11);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.cn-weather-day__name {
  font-weight: 800;
}

.cn-weather-day__icon {
  margin: 8px 0;
  font-size: 30px;
}

.cn-weather-day__temp {
  font-weight: 800;
}

.cn-weather-day__rain {
  margin-top: 5px;
  font-size: 12px;
  opacity: .68;
}

.cn-weather-status {
  padding: 20px 0;
  font-weight: 700;
}

.cn-weather-attribution {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.45;
  opacity: .68;
}

.cn-weather-attribution a {
  color: inherit;
}

@media (max-width: 850px) {
  .cn-weather-days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cn-weather-page {
    width: min(100% - 24px, 1120px);
    margin-top: 22px;
  }

  .cn-weather-search {
    flex-direction: column;
  }

  .cn-weather-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cn-weather-current {
    padding: 18px;
  }
}