.home-shell {
  padding-bottom: 24px;
}

.hero-banner {
  display: grid;
  gap: 22px;
  padding: 18px 18px 62px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
}

.banner-copy {
  text-align: center;
  padding-top: 8px;
  position: relative;
  z-index: 2;
  max-width: 370px;
}

.banner-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 7vw, 4.8rem);
  line-height: 0.98;
}

.hero-title-brand-neutral {
  color: #ffffff;
}

.hero-title-brand-accent {
  color: var(--lime);
}

#destaques {
  padding-top: 22px;
}

.banner-text {
  max-width: 620px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.7;
}

.banner-actions {
  display: grid;
  gap: 12px;
  max-width: 340px;
  margin: 22px auto 0;
}

.banner-visual {
  display: grid;
  gap: 16px;
  position: absolute;
  inset: 0;
  z-index: 1;
  grid-template-columns: minmax(0, 2.8fr) minmax(300px, 0.85fr);
  align-items: stretch;
  pointer-events: auto;
}

.hero-placeholder-main {
  min-height: 520px;
  isolation: isolate;
}

.hero-placeholder-main picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel-track {
  position: absolute;
  inset: 0;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
  will-change: opacity;
}

.hero-carousel.is-reduced-motion .hero-carousel-slide {
  transition: none;
}

.hero-carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-carousel-slide.is-fading-out {
  z-index: 1;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.hero-carousel-slide.is-fading-in {
  z-index: 1;
  opacity: 1;
  transition: opacity 1000ms ease-in-out;
}

.hero-carousel-slide picture,
.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.media-image--hero {
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: saturate(1.05) contrast(1.02);
}

.hero-carousel.is-reduced-motion .hero-carousel-slide .media-image--hero {
  transition: none;
  transform: none;
}

.hero-fade-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 11, 18, 0.98) 0%, rgba(4, 11, 18, 0.84) 14%, rgba(4, 11, 18, 0.18) 40%, rgba(4, 11, 18, 0) 100%),
    linear-gradient(180deg, rgba(4, 11, 18, 0.24), rgba(4, 11, 18, 0.3));
  pointer-events: none;
}

.hero-carousel-control,
.hero-carousel-indicator {
  pointer-events: auto;
  border: 0;
  cursor: pointer;
}

.hero-carousel-nav {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(4, 11, 18, 0.36);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}

.hero-carousel-control {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(4, 11, 18, 0.42);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(120, 244, 255, 0.22);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.hero-carousel-control:hover,
.hero-carousel-control:focus-visible {
  background: rgba(10, 30, 46, 0.84);
  color: var(--lime);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(207, 255, 24, 0.5);
  outline: none;
}

.hero-carousel-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  border-radius: 999px;
}

.hero-carousel-indicator {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition:
    width 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.hero-carousel-indicator:hover,
.hero-carousel-indicator:focus-visible {
  background: rgba(120, 244, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(4, 11, 18, 0.2);
  outline: none;
}

.hero-carousel-indicator.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--lime), var(--cyan-bright));
  box-shadow:
    0 0 18px rgba(207, 255, 24, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-card {
  --surface-panel-background: rgba(10, 18, 29, 0.48);
  --surface-panel-background-mobile: rgba(10, 18, 29, 0.48);
  --surface-panel-filter: blur(10px) saturate(115%);
  --surface-panel-filter-mobile: none;
  pointer-events: auto;
  position: relative;
  padding: 16px 18px 10px;
}

.hero-card-tag {
  margin: 0;
  color: var(--cyan-bright);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.hero-card h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 0.95;
}

.hero-product-placeholder {
  min-height: 240px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-placeholder img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
}

.category-strip,
.mode-grid,
.gallery-grid {
  display: grid;
  gap: 14px;
}

.category-card {
  padding: 12px;
}

.category-card h3 {
  margin: 14px 4px 2px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.category-image {
  min-height: 170px;
}

.category-image-clarity {
  --media-image-scale: 1.2;
}

.mode-panel {
  overflow: hidden;
}

.mode-media {
  min-height: 190px;
}

.mode-copy {
  padding: 16px;
}

.mode-copy h3 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.mode-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  text-align: justify;
}

.gallery-tile {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.gallery-wide {
  min-height: 180px;
  padding: 0;
  background: transparent;
  overflow: hidden;
  display: block;
}

.wide-message {
  width: 100%;
  min-height: 180px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  align-items: center;
  padding: 34px 42px;
  text-align: center;
  border-left: 6px solid var(--lime);
  border-right: 6px solid var(--cyan);
  background: linear-gradient(135deg, rgba(10, 18, 29, 0.62), rgba(5, 11, 18, 0.82));
}

.wide-line {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
}

.wide-line-1 {
  max-width: 900px;
}

.wide-line-2 {
  max-width: 760px;
}

.wide-line-3 {
  max-width: 640px;
}

.cta-hero {
  margin-top: 0;
}

.home-section {
  padding: 0 18px 26px;
  position: relative;
  margin-top: 26px;
}

.home-section:first-of-type {
  margin-top: 12px;
}

.home-section.deferred-render {
  --deferred-render-size: 720px;
}

@media (max-width: 768px) {
  #destaques,
  #galeria {
    display: none;
  }

  .hero-banner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding: 18px 18px 24px;
    margin-bottom: 18px;
    overflow: visible;
  }

  .banner-copy {
    order: 1;
    max-width: none;
    padding-top: 8px;
  }

  .banner-visual {
    order: 2;
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: 2;
  }

  .hero-placeholder-main {
    display: none;
  }

  .category-image-focus {
    --media-image-position: center top;
  }

  .category-image-clarity {
    --media-image-scale: 1;
  }
}

@media (min-width: 900px) {
  .home-shell .home-section,
  .home-shell .hero-banner {
    width: min(100%, 1180px);
    margin: 0 auto;
  }

  .home-section {
    width: min(100%, 430px);
  }

  .hero-banner {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: stretch;
    padding-top: 10px;
    min-height: 500px;
  }

  .banner-copy {
    text-align: left;
    padding: 20px 10px 8px 0;
  }

  .banner-text,
  .banner-actions {
    margin-left: 0;
  }

  .banner-visual {
    grid-template-columns: minmax(0, 3.2fr) minmax(300px, 0.75fr);
    align-items: stretch;
  }

  .hero-placeholder-main {
    min-height: 500px;
  }

  .hero-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px 4px;
  }

  .hero-product-placeholder {
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  .hero-product-placeholder img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .category-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "smallA smallB smallC"
      "wide wide wide";
  }

  .gallery-small-a {
    grid-area: smallA;
  }

  .gallery-small-b {
    grid-area: smallB;
  }

  .gallery-small-c {
    grid-area: smallC;
  }

  .gallery-wide {
    grid-area: wide;
  }
}
