:root {
  --ink: #10233f;
  --muted: #5f7087;
  --line: #dce7ef;
  --paper: #ffffff;
  --mist: #f3f8fb;
  --sky: #1577d4;
  --sky-dark: #0d5cab;
  --cyan: #2bc2d4;
  --sun: #ffb923;
  --night: #102b4c;
  --success: #167e66;
  --danger: #b63838;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 18px 48px rgba(28, 76, 119, 0.12);
  --shell: min(1180px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(43, 194, 212, 0.12), transparent 28rem),
    radial-gradient(circle at 95% 12%, rgba(21, 119, 212, 0.09), transparent 32rem);
  pointer-events: none;
}

a {
  color: var(--sky-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--sky);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(43, 194, 212, 0.7);
  outline-offset: 3px;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 16px;
  left: 16px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(220, 231, 239, 0.78);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--sun), #ff8c2b 72%);
  box-shadow: 0 9px 24px rgba(255, 163, 30, 0.28);
  font-size: 24px;
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--sky);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--sky-dark);
  background: var(--mist);
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 82px;
  background:
    linear-gradient(120deg, rgba(239, 249, 252, 0.96), rgba(246, 250, 255, 0.78)),
    repeating-linear-gradient(135deg, transparent 0 48px, rgba(21, 119, 212, 0.025) 49px 50px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -230px;
  border: 64px solid rgba(43, 194, 212, 0.08);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-header h1,
.article-header h1,
.weather-title {
  max-width: 880px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.99;
  letter-spacing: -0.052em;
}

.hero h1 {
  max-width: 760px;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 22px);
}

.city-search {
  max-width: 690px;
  padding: 8px;
  border: 1px solid rgba(147, 181, 207, 0.5);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.city-search > label {
  display: block;
  padding: 4px 10px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.city-search > div {
  display: flex;
  gap: 8px;
}

.city-search input {
  min-width: 0;
  flex: 1;
  padding: 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
}

.city-search button,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  box-shadow: 0 10px 24px rgba(21, 119, 212, 0.24);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.city-search button:hover,
.button:hover {
  color: #fff;
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--sky-dark);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: none;
}

.button-secondary:hover {
  color: var(--sky-dark);
  background: var(--mist);
}

.button-light {
  color: var(--night);
  background: #fff;
  box-shadow: none;
}

.button-light:hover {
  color: var(--night);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--success);
}

.hero-weather-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 85% 5%, rgba(255, 210, 92, 0.9), transparent 8rem),
    linear-gradient(155deg, #1c8fe5, #135cae 70%, #123f78);
  box-shadow: 0 28px 70px rgba(20, 82, 136, 0.3);
}

.hero-weather-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -65px;
  bottom: -90px;
  border: 28px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.sky-orb {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 4px 0 30px auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 44px;
}

.weather-card-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-weather-card h2 {
  max-width: 300px;
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-weather-card ul {
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-weather-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-weather-card li span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section {
  padding: 82px 0;
}

.section-soft {
  background: var(--mist);
}

.section-dark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 43, 76, 0.96), rgba(13, 92, 171, 0.92)),
    var(--night);
}

.section-dark .eyebrow {
  color: #82e6ef;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h1,
.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.text-link {
  flex: none;
  font-weight: 800;
  text-decoration: none;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.city-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.city-card:hover {
  color: var(--ink);
  border-color: #9ccde4;
  box-shadow: 0 12px 28px rgba(28, 76, 119, 0.1);
  transform: translateY(-2px);
}

.city-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--sky-dark);
  background: #e9f7fb;
}

.city-card span:nth-child(2) {
  display: grid;
  line-height: 1.25;
}

.city-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(28, 76, 119, 0.06);
}

.feature-grid h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: var(--sky-dark);
  background: #eaf7fb;
  font-size: 23px;
}

.editorial-cta {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: clamp(32px, 7vw, 100px);
}

.editorial-cta h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.editorial-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.post-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(28, 76, 119, 0.06);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 26px;
}

.post-card h2,
.post-card h3 {
  margin: 5px 0 12px;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.post-meta,
.article-byline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.content-layout,
.page-shell,
.article-shell {
  padding-top: 72px;
  padding-bottom: 92px;
}

.page-shell,
.article-shell {
  max-width: 900px;
}

.page-header,
.article-header {
  margin-bottom: 42px;
}

.page-header h1,
.article-header h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.article-deck {
  margin: 22px 0;
  color: var(--muted);
  font-size: 21px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.article-hero {
  margin: 0 0 42px;
  overflow: hidden;
  border-radius: var(--radius);
}

.article-content {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.8;
}

.article-content h2,
.article-content h3 {
  margin: 2em 0 0.65em;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.article-content h2 {
  font-size: 34px;
}

.article-content h3 {
  font-size: 26px;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 6px 0 6px 24px;
  border-left: 4px solid var(--cyan);
  color: var(--muted);
  font-size: 21px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
}

.article-content th,
.article-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.error-page {
  min-height: 66vh;
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}

.error-page h1 {
  max-width: 650px;
  margin: 0 auto 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.error-page > p:not(.eyebrow) {
  max-width: 600px;
  margin-inline: auto;
  color: var(--muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.site-footer {
  padding: 70px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #0c213d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 70px;
}

.brand-footer {
  color: #fff;
}

.brand-footer:hover {
  color: #fff;
}

.footer-grid > div:first-child p {
  max-width: 440px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 7px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 26px;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .editorial-cta {
    grid-template-columns: 1fr;
  }

  .hero-weather-card {
    max-width: 560px;
  }

  .city-grid,
  .feature-grid,
  .post-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    display: grid;
  }

  .hero {
    padding: 50px 0 58px;
  }

  .city-search > div,
  .split-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .city-search button {
    padding-inline: 15px;
  }

  .city-grid,
  .feature-grid,
  .post-grid,
  .post-grid-three,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .section {
    padding: 60px 0;
  }

  .error-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ==== PTB melhorias 2026-08: capa de artigo 16:9, object-fit cover, sem CLS ==== */
.article-hero{margin:18px 0;border-radius:16px;overflow:hidden;background:#eef2f6}
.article-hero img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
@media(max-width:600px){.article-hero img{aspect-ratio:16/10}}
