/* Página inicial da loja RENOVE. Carregar depois de base.css. */

/* o atalho "Ir para o conteúdo" (.pular) vale para todas as páginas: o estilo está no fim de css/v4.css */

/* ------------------------------------------------------ carrossel de banners */
.banner-full { position: relative; margin-top: 20px; background: var(--color_primary); overflow: hidden; }
.banner-full + .site-main { margin-top: 30px; }
.banner-full .slides { position: relative; aspect-ratio: 1920 / 810; touch-action: pan-y; }
.banner-full .slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.banner-full .slide.active { opacity: 1; visibility: visible; z-index: 1; }
.banner-full .slide a { display: block; width: 100%; height: 100%; }
.banner-full .slide img {
  display: block; width: 100%; height: 100%; object-fit: cover; margin: auto;
  -webkit-user-drag: none; user-select: none;
}
.banner-full .slide a:focus-visible { outline-offset: -4px; }
.banner-full .pagination {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; margin: 0; display: flex; justify-content: center; align-items: center;
}
.banner-full .bullet {
  position: relative; width: 10px; height: 10px; margin: 0 4px; border-radius: 6px; background: #495968;
  transition: width .3s;
}
.banner-full .bullet::after { content: ''; position: absolute; inset: -9px -4px; }   /* área de toque maior */
.banner-full .bullet.active { width: 29px; }
.banner-full .bullet:focus-visible { outline-color: #fff; }
.banner-full .pausa {
  position: absolute; z-index: 2; right: 15px; bottom: 15px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(16, 18, 20, .6); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.banner-full .pausa:focus-visible { opacity: 1; }   /* só aparece para quem navega pelo teclado; com o mouse o carrossel já pausa */
.banner-full .pausa::before {
  content: ''; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff;
}
.banner-full .pausa[aria-pressed="true"]::before {
  width: 0; height: 0; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; margin-left: 3px;
}

/* ------------------------------------------------------- mosaico de 5 banners */
.mosaic { position: relative; padding-bottom: 50.446%; }
.mosaic .item { position: absolute; width: 24%; height: 48.7%; }
.mosaic .item:nth-child(1) { left: 0; top: 0; width: 49.32%; height: 100%; }
.mosaic .item:nth-child(2) { right: 25.4%; top: 0; }
.mosaic .item:nth-child(3) { right: 0; top: 0; }
.mosaic .item:nth-child(4) { right: 25.4%; bottom: 0; }
.mosaic .item:nth-child(5) { right: 0; bottom: 0; }
.mosaic a { display: block; width: 100%; height: 100%; overflow: hidden; }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mosaic a:hover img, .mosaic a:focus-visible img { transform: scale(1.035); }

/* ----------------------------------------------------- categorias em círculo */
.showcase-list-category { background: #fff; padding: 26px 0; }
.showcase-list-category .title {
  font-size: 38px; font-weight: 700; text-transform: uppercase; text-align: center; color: #000; line-height: 1.34;
  margin-bottom: 38px;
}
.showcase-list-category .list { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 0 -10px; }
.showcase-list-category .item { flex: 0 0 auto; width: 198px; min-width: 0; padding: 0 10px; margin-bottom: 20px; }
@media (max-width: 1230px) { .showcase-list-category .item { flex: 1 1 0; width: auto; } }
.showcase-list-category .item a { display: block; }
.showcase-list-category .image {
  width: 178px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 15px; border-radius: 50%; background: #fff; overflow: hidden;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .1); transition: box-shadow .2s;
  display: flex; align-items: center; justify-content: center;
}
.showcase-list-category .item a:hover .image, .showcase-list-category .item a:focus-visible .image {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .2);
}
.showcase-list-category .image img { width: 100%; height: 100%; object-fit: cover; }
.showcase-list-category .image img.recorte { width: 72%; height: 72%; object-fit: contain; }
.showcase-list-category .name {
  font-size: 20px; font-weight: 700; text-transform: uppercase; color: #5c5c5c; text-align: center; line-height: 1;
}

/* -------------------------------------------------------------- banner largo */
.banner-extra a, .banner-extra .peca { display: block; overflow: hidden; }
.banner-extra img { display: block; width: 100%; height: auto; transition: transform .3s; }
.banner-extra a:hover img, .banner-extra a:focus-visible img { transform: scale(1.01); }

/* ---------------------------------------------------- dois banners lado a lado */
.section-banners-center { display: flex; flex-wrap: wrap; margin: 30px -10px; }
.section-banners-center .item { width: 50%; padding: 0 10px; }
.section-banners-center a, .section-banners-center .peca { display: block; overflow: hidden; }
.section-banners-center img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------ dicas (lugar do blog) */
.section-notices .noticias { display: flex; flex-wrap: wrap; margin: 0 -15px 52px; }
.section-notices .noticias > li { width: 33.3333%; padding: 0 15px; }
.section-notices .box-noticia { position: relative; display: flex; }
.section-notices .noticia-imagem { flex: none; width: 168px; height: 168px; overflow: hidden; margin-right: 15px; }
.section-notices .noticia-imagem img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.section-notices .box-noticia:hover .noticia-imagem img { transform: scale(1.1); }
.section-notices .noticia-dados { width: calc(100% - 183px); }
.section-notices h3 {
  font-size: 20px; font-weight: 700; line-height: 1.15; color: #303030; height: 67px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.section-notices h3 a::after { content: ''; position: absolute; inset: 0; }   /* o link cobre o cartão */
.section-notices h3 a:focus-visible { outline: 0; }
.section-notices h3 a:focus-visible::after { outline: 2px solid #4d90fe; outline-offset: 2px; }
.section-notices .divisor { width: 150px; max-width: 100%; border-top: 1px solid #f5f4f0; margin: 5px 0 10px; }
.section-notices p {
  font-size: 14px; line-height: 1.36; letter-spacing: .28px; color: #7d7d80; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}

/* ------------------------------------------------------------------- vídeos */
.section-videos .videos { display: flex; justify-content: space-between; margin-bottom: 52px; }
.section-videos .videos > * { width: 30%; aspect-ratio: 404 / 150; }
.section-videos video { display: block; object-fit: cover; background: #000; }

/* ------------------------------------------------------------------ celular */
@media (max-width: 1024px) {
  .banner-full { margin-top: 0; }
  .section-notices .noticias > li { width: 100%; margin-bottom: 24px; }
  .section-notices .noticias { margin-bottom: 20px; }
}
@media (max-width: 767px) {
  .banner-full .pagination { bottom: 9px; }
  .banner-full .bullet.active { width: 25px; }
  .banner-full .pausa { display: none; }
  .showcase-list-category { padding: 20px 0 10px; }
  .showcase-list-category .title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
  .showcase-list-category .list { margin: 0; }
  .showcase-list-category .item { flex: 0 0 33.3333%; width: auto; padding: 0 5px; margin-bottom: 24px; }
  .showcase-list-category .image { width: 82px; margin-bottom: 12px; }
  .showcase-list-category .name { font-size: 10px; }
  .banner-extra { margin: 20px 0; }
  .section-banners-center { margin: 20px 0; }
  .section-banners-center .item { width: 100%; padding: 0 10px; margin: 5px 0; }
  .section-videos .videos { display: block; margin-bottom: 20px; }
  .section-videos .videos > * { width: 100%; margin-bottom: 10px; }
  .section-notices .noticia-imagem { width: 132px; height: 132px; }
  .section-notices .noticia-dados { width: calc(100% - 147px); }
  .section-notices h3 { font-size: 18px; height: 62px; }
  .section-notices p { font-size: 12px; }
}
@media (max-width: 549px) {
  .mosaic { display: flex; flex-wrap: wrap; justify-content: space-between; padding-bottom: 0; }
  .mosaic .item, .mosaic .item:nth-child(1) { position: static; width: calc(50% - 5px); height: auto; aspect-ratio: 1; margin-bottom: 15px; }
  .mosaic .item:nth-child(1) { width: 100%; aspect-ratio: 370 / 379; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mosaic img, .banner-extra img, .section-notices .noticia-imagem img { transition: none; }
}
