.oficina-compostagem-banner {
  width: 100%;
  overflow: hidden;
  background: #173d3c;
}

.oficina-compostagem-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.composting-carousel {
  width: 100%;
  margin: 0;
}

.composting-carousel__stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background: #e7ece6;
  touch-action: pan-y;
}

.composting-carousel__slide {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  padding: 0;
  place-items: center;
  animation: composting-carousel-appear 420ms ease both;
}

.composting-carousel__slide[hidden] {
  display: none;
}

.composting-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.composting-carousel__controls {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.15rem 0.25rem 0;
}

.composting-carousel__navigation {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.composting-carousel__button {
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(17, 44, 71, 0.14);
  border-radius: 50%;
  color: #173d3c;
  background: #fff;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.composting-carousel__button:hover {
  transform: translateY(-1px);
  border-color: #8fc24c;
  color: #112c47;
  background: #eaf3dc;
}

.composting-carousel__button:focus-visible {
  outline: 3px solid #006be0;
  outline-offset: 3px;
}

.composting-carousel__button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.composting-carousel__count {
  min-width: 4.1rem;
  color: #173d3c;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

.composting-carousel__count span:last-child {
  color: #718277;
  font-weight: 500;
}

.composting-carousel__progress {
  height: 0.3rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 44, 71, 0.12);
}

.composting-carousel__progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fc24c, #59b9dd);
  transform: scaleX(0.2);
  transform-origin: left center;
  transition: transform 280ms ease;
}

.composting-carousel__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes composting-carousel-appear {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@media (max-width: 42rem) {
  .composting-carousel__controls {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 0.85rem;
    padding-top: 1rem;
  }

  .composting-carousel__navigation {
    justify-content: center;
    gap: 0.55rem;
  }

  .composting-carousel__button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .composting-carousel__progress {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .composting-carousel__slide {
    animation: none;
  }

  .composting-carousel__button,
  .composting-carousel__progress span {
    transition: none;
  }
}
