/* ===== TOPO 17: vitrine portal em tres colunas ===== */

.th17-wrap {
  clear: both;
  float: none;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto 42px;
  padding: 34px 0 0;
  background: #fff;
  color: #121212;
  font-family: "Roboto Condensed", "Arial Narrow", Roboto, Arial, sans-serif;
}

.th17-wrap,
.th17-wrap * {
  box-sizing: border-box;
}

.th17-wrap a,
.th17-wrap a:hover {
  color: inherit;
  text-decoration: none;
}

.urgente + .th17-wrap {
  padding-top: 34px;
}

.th17-side {
  min-width: 0;
}

.th17-side-card {
  display: block;
  min-width: 0;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #d9d9d9;
}

.th17-side-card:last-child {
  margin-bottom: 0;
}

.th17-side-card img,
.th17-center-card img,
.th17-hero img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: #e5e5e5;
  transition: opacity .25s ease, filter .25s ease;
}

.th17-side-card-photo img {
  height: 150px !important;
  margin-bottom: 14px;
  border-radius: 4px;
}

.th17-side-card:hover img,
.th17-center-card:hover img,
.th17-hero:hover img {
  opacity: .88;
  filter: brightness(.9);
}

.th17-side-card em,
.th17-center-card em,
.th17-hero em {
  display: block;
  margin: 0 0 7px;
  color: var(--th17-item-color, var(--th17-accent, var(--cor-principal-site, #e4002b)));
  font: 900 10.5px/1.1 "Roboto Condensed", "Arial Narrow", Roboto, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  font-style: normal;
}

.th17-side-card strong,
.th17-center-card strong,
.th17-hero strong {
  display: block;
  color: #151515;
  font: 900 19px/1.08 "Roboto Condensed", "Arial Narrow", Roboto, Arial, sans-serif;
  letter-spacing: 0;
  transition: color .2s ease;
}

.th17-side-card:hover strong,
.th17-center-card:hover strong {
  color: var(--th17-item-color, var(--th17-accent, var(--cor-principal-site, #e4002b)));
}

.th17-center {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.th17-hero {
  position: relative;
  display: block;
  min-width: 0;
  height: 365px;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  border-bottom: 0;
  padding-bottom: 0;
  isolation: isolate;
}

.th17-hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100% !important;
  margin-bottom: 0;
  border-radius: 0;
}

.th17-hero > span {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 18%, rgba(0,0,0,.22) 52%, rgba(0,0,0,.78) 100%);
}

.th17-hero div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.th17-hero em {
  color: #fff;
  text-shadow: 0 2px 3px rgba(0,0,0,.72);
}

.th17-hero strong {
  max-width: 92%;
  color: #fff;
  font-size: 27px;
  line-height: .98;
  text-shadow: 0 2px 3px rgba(0,0,0,.72);
}

.th17-hero:hover strong {
  color: #fff;
}

.th17-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 24px 22px;
  margin-top: 24px;
}

.th17-center-card {
  display: block;
  min-width: 0;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 20px;
}

.th17-center-card-wide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  grid-column: 1 / -1;
  min-height: 58px;
  padding-top: 4px;
  border-bottom: 0;
}

.th17-center-card img {
  height: 175px !important;
  margin-bottom: 13px;
  border-radius: 4px;
}

.th17-center-card strong {
  font-size: 19px;
}

.th17-center-card-wide strong {
  max-width: 92%;
  font-size: 21px;
  color: #151515;
}

.th17-center-card-wide:hover strong {
  color: var(--th17-item-color, var(--th17-accent, var(--cor-principal-site, #e4002b)));
}

@media (max-width: 1250px) {
  .th17-wrap {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    max-width: 980px;
    gap: 24px;
  }

  .th17-side-card-photo img {
    height: 132px !important;
  }

  .th17-side-card strong {
    font-size: 17px;
  }

  .th17-hero img {
    height: 100% !important;
  }

  .th17-hero {
    height: 345px;
  }

  .th17-center-card img {
    height: 155px !important;
  }

  .th17-center-card strong {
    font-size: 18px;
  }
}

@media (max-width: 960px) {
  .th17-wrap {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    gap: 24px;
    padding-top: 30px;
  }

  .th17-center {
    order: 1;
  }

  .th17-left {
    order: 2;
  }

  .th17-right {
    order: 3;
  }

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

  .th17-side-card {
    margin: 0;
  }

  .th17-side-card-photo img {
    height: 150px;
  }

  .th17-hero img {
    height: 100% !important;
  }

  .th17-hero {
    height: 380px;
  }

  .th17-hero strong {
    font-size: 30px;
  }

  .th17-center-card img {
    height: 150px !important;
  }

  .th17-center-card-wide strong {
    font-size: 21px;
  }
}

@media (max-width: 700px) {
  .th17-wrap {
    max-width: 100%;
    margin: 20px 0 32px !important;
    padding: 0 12px 0 !important;
    gap: 18px;
  }

  .th17-hero img {
    height: 100% !important;
    border-radius: 7px;
  }

  .th17-hero {
    height: 235px;
    border-radius: 7px;
  }

  .th17-hero strong {
    max-width: 100%;
    font-size: 23px;
    line-height: 1;
  }

  .th17-hero div {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .th17-center-grid,
  .th17-side {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .th17-center-grid {
    margin-top: 14px;
  }

  .th17-center-card,
  .th17-side-card {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 5px 12px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ececec;
  }

  .th17-center-card-wide {
    display: block;
    min-height: 0;
    padding-top: 0;
  }

  .th17-center-card img,
  .th17-side-card-photo img {
    grid-row: 1 / span 2;
    width: 122px;
    height: 88px !important;
    margin: 0;
    border-radius: 7px;
  }

  .th17-side-card:not(.th17-side-card-photo) {
    display: block;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .th17-center-card em,
  .th17-center-card strong,
  .th17-side-card-photo em,
  .th17-side-card-photo strong {
    grid-column: 2;
  }

  .th17-side-card em,
  .th17-center-card em {
    margin: 0;
    align-self: end;
    font-size: 10px;
  }

  .th17-side-card strong,
  .th17-center-card strong {
    align-self: start;
    font-size: 17px;
    line-height: 1.04;
  }
}

@media (max-width: 480px) {
  .th17-hero img {
    height: 100% !important;
  }

  .th17-hero {
    height: 215px;
  }

  .th17-hero strong {
    font-size: 21px;
  }

  .th17-center-card,
  .th17-side-card {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 5px 11px;
  }

  .th17-center-card img,
  .th17-side-card-photo img {
    width: 106px;
    height: 78px !important;
  }

  .th17-side-card strong,
  .th17-center-card strong {
    font-size: 15.5px;
  }
}
