.wpcm-theme-amz-section > .wpcm-vc-section__inner {
  width: min(100% - 32px, 1400px);
}

.wpcm-amz-premium-section > .wpcm-vc-section__inner {
  width: min(100% - 24px, 1600px);
  max-width: 1600px !important;
}

.wpcm-theme-amz-side-stack {
  display: grid !important;
  align-content: start;
  gap: 30px;
}

.wpcm-amz-premium-section .wpcm-theme-amz-side-stack { gap: 18px; }
.wpcm-amz-premium-section .wpcm-amz-social .wpcm-amz-head { margin-bottom: 13px; }
.wpcm-amz-premium-section .wpcm-amz-social__item { min-height: 80px; padding: 12px; }

.wpcm-amz-premium-section .wpcm-theme-amz-side-stack { gap: 18px; }
.wpcm-amz-premium-section .wpcm-amz-social .wpcm-amz-head { margin-bottom: 13px; }
.wpcm-amz-premium-section .wpcm-amz-social__item { min-height: 80px; padding: 12px; }

.wpcm-amz {
  min-width: 0;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
}

.wpcm-amz * { box-sizing: border-box; }
.wpcm-amz article { min-width: 0; margin: 0; }

.wpcm-amz-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  border-bottom: 2px solid #e5e7eb;
}

.wpcm-amz-head h2 {
  flex: 0 0 auto;
  margin: 0 0 -2px;
  padding: 8px 14px 9px;
  border-bottom: 3px solid var(--amz-accent, #f2a900);
  background: var(--amz-accent, #f2a900);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.wpcm-amz-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #dce3ea;
}

.wpcm-amz-media img,
.wpcm-amz-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.wpcm-amz article:hover .wpcm-amz-media img,
.wpcm-amz article:hover .wpcm-amz-thumb img { transform: scale(1.035); }

.wpcm-amz-media__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #173047, #0f766e);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  text-align: center;
}

.wpcm-amz-overlay {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 64px 20px 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 18, .94));
}

.wpcm-amz-overlay h2,
.wpcm-amz-overlay h3 {
  margin: 5px 0 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.018em;
}

.wpcm-amz-overlay h2 { font-size: clamp(25px, 2.45vw, 39px); }
.wpcm-amz-overlay h3 { font-size: clamp(16px, 1.3vw, 21px); }
.wpcm-amz-overlay a { color: #fff !important; text-decoration: none !important; }

.wpcm-amz-category {
  display: inline-flex;
  margin: 0 8px 4px 0;
  padding: 4px 7px;
  color: #fff !important;
  background: var(--amz-accent, #f2a900);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
}

.wpcm-amz time {
  display: inline-block;
  color: #7b8491;
  font-size: 11px;
}

.wpcm-amz-overlay time { color: rgba(255, 255, 255, .8); }

.wpcm-amz-hero__grid {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
  gap: 6px;
}

.wpcm-amz-hero__main,
.wpcm-amz-hero__wide,
.wpcm-amz-hero__small-grid article {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #0f172a;
}

.wpcm-amz-hero__rail {
  display: grid;
  min-height: 0;
  grid-template-rows: 1.04fr .96fr;
  gap: 6px;
}

.wpcm-amz-hero__small-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.wpcm-amz-feature-list__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 26px;
}

.wpcm-amz-feature-list__main {
  overflow: hidden;
  border: 1px solid #e6e9ed;
  background: #fff;
  box-shadow: 0 8px 25px rgba(15, 23, 42, .05);
}

.wpcm-amz-feature-list__main > .wpcm-amz-media {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 10;
}

.wpcm-amz-card-body { padding: 16px 18px 18px; }

.wpcm-amz-card-body h3,
.wpcm-amz-feature-list__items h3,
.wpcm-amz-compact h3 {
  margin: 5px 0 0;
  color: #111827;
  font-weight: 800;
  line-height: 1.23;
}

.wpcm-amz-card-body h3 { font-size: clamp(20px, 1.65vw, 27px); }
.wpcm-amz-feature-list__items h3,
.wpcm-amz-compact h3 { font-size: 15px; }

.wpcm-amz-card-body h3 a,
.wpcm-amz-feature-list__items h3 a,
.wpcm-amz-compact h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.wpcm-amz-card-body h3 a:hover,
.wpcm-amz-feature-list__items h3 a:hover,
.wpcm-amz-compact h3 a:hover { color: var(--amz-accent, #f2a900) !important; }

.wpcm-amz-card-body p {
  margin: 10px 0 0;
  color: #5f6875;
  font-size: 14px;
  line-height: 1.55;
}

.wpcm-amz-feature-list__items,
.wpcm-amz-compact__items { display: grid; align-content: start; }

.wpcm-amz-feature-list__items article,
.wpcm-amz-compact__items article {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 13px;
  padding: 0 0 13px;
  margin: 0 0 13px;
  border-bottom: 1px solid #e5e7eb;
}

.wpcm-amz-thumb {
  display: block;
  height: 82px;
  overflow: hidden;
  background: #e5e7eb;
}

.wpcm-amz-social__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wpcm-amz-social__item {
  display: grid;
  min-height: 88px;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  padding: 14px;
  color: #fff !important;
  background: var(--network);
  text-decoration: none !important;
}

.wpcm-amz-social__item b {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 27px;
  line-height: 1;
  text-align: center;
}

.wpcm-amz-social__item strong { font-size: 13px; }
.wpcm-amz-social__item small { opacity: .78; font-size: 10px; text-transform: uppercase; }

.wpcm-amz-spotlight article,
.wpcm-amz-overlay-grid article {
  position: relative;
  min-height: 265px;
  overflow: hidden;
  background: #111827;
}

.wpcm-amz-overlay-grid__items {
  display: grid;
  gap: 10px;
}

.wpcm-amz-overlay-grid__items--1 { grid-template-columns: 1fr; }
.wpcm-amz-overlay-grid__items--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpcm-amz-overlay-grid__items--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wpcm-amz-overlay-grid__items--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wpcm-amz-overlay-grid__items--3 article,
.wpcm-amz-overlay-grid__items--4 article { min-height: 235px; }

/* Grade editorial “Mais notícias”: responde à largura do próprio contêiner. */
.wpcm-amz-news-matrix {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--amz-accent, #0b5d3b) 20%, #dbe8e1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 95% -10%, rgba(244, 180, 0, .13), transparent 33%),
    linear-gradient(180deg, #fff 0%, #fbfdfc 100%);
  box-shadow: 0 18px 50px rgba(8, 66, 43, .09);
}

.wpcm-amz-news-matrix__head {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, color-mix(in srgb, var(--amz-accent, #0b5d3b) 86%, #071f18), var(--amz-accent, #0b5d3b));
}

.wpcm-amz-news-matrix__head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #f0b429, #ffd56a 32%, transparent 80%);
}

.wpcm-amz-news-matrix__mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  color: #f7c94b;
  font-size: 16px;
  line-height: 1;
}

.wpcm-amz-news-matrix__head h2 {
  flex: 0 0 auto;
  margin: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.2cqi, 25px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.wpcm-amz-news-matrix__line {
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(255, 255, 255, .48), transparent);
}

.wpcm-amz-news-matrix__grid {
  display: grid;
  grid-template-columns: repeat(var(--amz-columns, 3), minmax(0, 1fr));
}

.wpcm-amz-news-matrix__item {
  position: relative;
  display: grid;
  min-height: 128px;
  grid-template-columns: minmax(92px, 35%) minmax(0, 1fr);
  align-items: stretch;
  gap: 15px;
  padding: 14px;
  border-right: 1px solid #e0e8e4;
  border-bottom: 1px solid #e0e8e4;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wpcm-amz-news-matrix__item:hover {
  z-index: 2;
  background: #f4faf7;
  box-shadow: inset 4px 0 0 #f0b429, 0 10px 28px rgba(8, 66, 43, .08);
}

.wpcm-amz-news-matrix__thumb {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 96px;
  overflow: hidden;
  border-radius: 10px;
  background: #dce9e2;
}

.wpcm-amz-news-matrix__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: inherit;
  pointer-events: none;
}

.wpcm-amz-news-matrix__thumb img,
.wpcm-amz-news-matrix__thumb .wpcm-amz-media__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.wpcm-amz-news-matrix__item:hover .wpcm-amz-news-matrix__thumb img { transform: scale(1.055); }

.wpcm-amz-news-matrix__body {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.wpcm-amz-news-matrix__body .wpcm-amz-category {
  margin: 0 0 7px;
  padding: 0;
  color: var(--amz-accent, #0b5d3b) !important;
  background: transparent;
  font-size: 10px;
  letter-spacing: .055em;
}

.wpcm-amz-news-matrix__body time {
  margin: 0 0 6px 8px;
  color: #7b8881;
  font-size: 10px;
}

.wpcm-amz-news-matrix__body h3 {
  margin: 0;
  color: #10251d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.65cqi, 19px);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -.012em;
}

.wpcm-amz-news-matrix__body h3 a {
  color: inherit !important;
  text-decoration: none !important;
  background-image: linear-gradient(#f0b429, #f0b429);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: color .2s ease, background-size .25s ease;
}

.wpcm-amz-news-matrix__item:hover h3 a {
  color: var(--amz-accent, #0b5d3b) !important;
  background-size: 100% 2px;
}

@container (max-width: 1040px) {
  .wpcm-amz-news-matrix__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 680px) {
  .wpcm-amz-news-matrix__grid { grid-template-columns: 1fr; }
  .wpcm-amz-news-matrix__item { grid-template-columns: minmax(110px, 32%) minmax(0, 1fr); }
  .wpcm-amz-news-matrix__body h3 { font-size: clamp(16px, 4cqi, 20px); }
}

@container (max-width: 390px) {
  .wpcm-amz-news-matrix { border-radius: 11px; }
  .wpcm-amz-news-matrix__head { min-height: 52px; padding: 10px 13px; }
  .wpcm-amz-news-matrix__line { display: none; }
  .wpcm-amz-news-matrix__item { min-height: 104px; grid-template-columns: 96px minmax(0, 1fr); gap: 11px; padding: 11px; }
  .wpcm-amz-news-matrix__thumb { min-height: 82px; border-radius: 8px; }
  .wpcm-amz-news-matrix__body h3 { font-size: 15px; }
}

.wpcm-amz-empty {
  display: grid;
  min-height: 140px;
  place-content: center;
  padding: 24px;
  border: 1px dashed #aab3bf;
  color: #5f6875;
  background: #f8fafc;
  text-align: center;
}

.wpcm-amz-empty strong { color: #111827; }

@media (max-width: 1018px) {
  .wpcm-amz-hero__grid { min-height: 620px; grid-template-columns: 1fr; grid-template-rows: 1.15fr .85fr; }
  .wpcm-amz-hero__rail { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .wpcm-amz-hero__small-grid { grid-template-columns: 1fr; }
  .wpcm-amz-feature-list__grid { grid-template-columns: 1fr; }
  .wpcm-amz-feature-list__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .wpcm-amz-overlay-grid__items--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .wpcm-theme-amz-section > .wpcm-vc-section__inner { width: min(100% - 20px, 1400px); }
  .wpcm-amz-hero__grid { min-height: auto; display: block; }
  .wpcm-amz-hero__main { min-height: 390px; }
  .wpcm-amz-hero__rail { display: grid; margin-top: 6px; grid-template-columns: 1fr; }
  .wpcm-amz-hero__wide { min-height: 260px; }
  .wpcm-amz-hero__small-grid { grid-template-columns: 1fr 1fr; }
  .wpcm-amz-hero__small-grid article { min-height: 220px; }
  .wpcm-amz-feature-list__items { grid-template-columns: 1fr; gap: 0; }
  .wpcm-amz-social__grid { grid-template-columns: 1fr 1fr; }
  .wpcm-amz-overlay-grid__items--2,
  .wpcm-amz-overlay-grid__items--3,
  .wpcm-amz-overlay-grid__items--4 { grid-template-columns: 1fr; }
  .wpcm-amz-overlay-grid article { min-height: 285px; }
}

@media (max-width: 480px) {
  .wpcm-amz-hero__small-grid { grid-template-columns: 1fr; }
  .wpcm-amz-social__grid { grid-template-columns: 1fr; }
  .wpcm-amz-feature-list__items article,
  .wpcm-amz-compact__items article { grid-template-columns: 104px minmax(0, 1fr); }
}
