.page-hero {
  position: relative;
  padding: 170px 0 40px;
  margin-top: -118px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  color: var(--blue);
  line-height: 1.1;
}

.page-hero p {
  margin-top: 18px;
  max-width: 800px;
  color: var(--text-soft);
  font-size: 18px;
}

.page-banner {
  margin-top: 28px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-banner {
  background: linear-gradient(180deg, #06111f 0%, #0a1d33 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.banner-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #06111f 0%, #0a1d33 100%);
}

.carousel-section {
  padding: 10px 0 40px;
}

.section-header {
  margin-bottom: 22px;
}

.section-kicker {
  display: inline-block;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-header h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.section-header p {
  margin-top: 12px;
  color: var(--text-soft);
}

.product-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.carousel-track-wrapper {
  overflow: hidden;
}

.carousel-track {
  position: relative;
}

.carousel-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.carousel-slide.active {
  display: grid;
}

.carousel-image,
.carousel-content {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 24px;
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.carousel-content {
  padding: 26px;
}

.item-tag {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(230, 242, 0, 0.12);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}

.carousel-content h3 {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.1;
}

.carousel-content p {
  margin-top: 14px;
  color: var(--text-soft);
}

.spec-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spec-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(9, 30, 52, 0.72);
  border: 1px solid rgba(0, 174, 239, 0.14);
}

.spec-item strong {
  display: block;
  color: var(--lime);
  font-size: 14px;
}

.spec-item span {
  display: block;
  margin-top: 6px;
  color: var(--white);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0, 174, 239, 0.25);
  background: rgba(10, 34, 56, 0.8);
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.dot.active {
  background: var(--lime);
}

@media (max-width: 980px) {
  .page-hero {
    padding-top: 148px;
    margin-top: -96px;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
  }

  .carousel-image img {
    min-height: 280px;
  }

  .banner-video {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: 130px;
    margin-top: -82px;
  }

  .product-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 100%;
    height: 44px;
    border-radius: 14px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DESKTOP - TÍTULO E DESCRIÇÃO ACIMA DO LEITE
   Restaura a visibilidade nas páginas internas no desktop.
   ========================================================= */

@media (min-width: 641px) {
  .page-hero .container,
  .page-hero h1,
  .page-hero p,
  .page-banner {
    position: relative;
    z-index: 1200;
  }

  .page-hero h1,
  .page-hero p {
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.98),
      0 6px 16px rgba(0, 0, 0, 0.90),
      0 0 24px rgba(0, 0, 0, 0.74);
  }

  .page-hero p {
    color: #f1f8ff;
    font-weight: 600;
  }

  .topbar-content,
  .brand,
  .brand-logo,
  .nav {
    position: relative;
    z-index: 1300;
  }
}

/* =========================================================
   MOBILE ONLY - LOGO COM TONALIDADE REALÇADA
   Realça a logo apenas no mobile.
   ========================================================= */

@media (max-width: 640px) {
  .brand-logo {
    filter:
      drop-shadow(0 12px 16px rgba(0, 0, 0, 0.78))
      drop-shadow(0 2px 5px rgba(0, 0, 0, 0.86))
      saturate(1.18)
      brightness(1.08)
      contrast(1.12) !important;
  }
}

/* =========================================================
   MOBILE ONLY - LEITE DA NAVBAR MAIS SUAVE
   Mantém leve escurecimento no mobile, mas sem pesar demais.
   ========================================================= */

@media (max-width: 640px) {
  .topbar::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -4px !important;
    height: 265px !important;
    z-index: 3 !important;
    pointer-events: none !important;
    display: block !important;
    background:
      radial-gradient(
        ellipse at 50% 26%,
        rgba(0, 0, 0, 0.22) 0%,
        rgba(0, 0, 0, 0.16) 36%,
        rgba(0, 0, 0, 0.08) 64%,
        rgba(0, 0, 0, 0.03) 84%,
        rgba(0, 0, 0, 0) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(2, 8, 20, 0.20) 0%,
        rgba(2, 8, 20, 0.13) 40%,
        rgba(2, 8, 20, 0.06) 70%,
        rgba(2, 8, 20, 0.02) 88%,
        rgba(2, 8, 20, 0) 100%
      ) !important;
    filter: blur(6px) !important;
    transform: translateY(-2px) scaleY(1.02) !important;
    opacity: 0.50 !important;
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 60%,
      rgba(0, 0, 0, 0.54) 82%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 60%,
      rgba(0, 0, 0, 0.54) 82%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
  }

  .topbar-overlay {
    z-index: 2 !important;
  }

  .topbar-content,
  .brand,
  .brand-logo,
  .nav {
    position: relative !important;
    z-index: 10 !important;
  }
}

@media (max-width: 480px) {
  .topbar::after {
    top: -3px !important;
    height: 280px !important;
    filter: blur(5px) !important;
    opacity: 0.46 !important;
  }
}


/* =========================================================
   MOBILE ONLY - CARROSSEL EM VITRINE HORIZONTAL
   Versão refinada para mobile: mais premium, mais clara e
   com melhor percepção de arraste sem alterar o desktop.
   ========================================================= */

.carousel-swipe-hint {
  display: none;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.carousel-swipe-hint.is-hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .carousel-section {
    padding: 8px 0 44px !important;
  }

  .section-header {
    margin-bottom: 10px !important;
  }

  .section-header h2 {
    font-size: clamp(26px, 8vw, 34px) !important;
  }

  .section-header p {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .carousel-swipe-hint {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: rgba(55, 184, 255, 0.10) !important;
    border: 1px solid rgba(55, 184, 255, 0.20) !important;
    color: #dcecf7 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
  }

  .product-carousel {
    position: relative !important;
    display: block !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 16px !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .product-carousel::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 18px !important;
    width: 46px !important;
    pointer-events: none !important;
    background: linear-gradient(
      to left,
      rgba(2, 8, 20, 0.96),
      rgba(2, 8, 20, 0)
    ) !important;
    z-index: 3 !important;
  }

  .carousel-btn,
  .carousel-dots {
    display: none !important;
  }

  .carousel-track-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 16px !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x !important;
    scrollbar-width: none !important;
    padding: 4px 0 18px !important;
  }

  .carousel-track-wrapper::-webkit-scrollbar {
    display: none !important;
  }

  .carousel-track {
    display: flex !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: max-content !important;
    min-width: 100% !important;
    padding-right: 22px !important;
  }

  .carousel-slide,
  .carousel-slide.active {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    flex: 0 0 min(82vw, 338px) !important;
    width: min(82vw, 338px) !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, rgba(9, 27, 48, 0.94), rgba(4, 15, 29, 0.96)) !important;
    border: 1px solid rgba(55, 184, 255, 0.16) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26) !important;
  }

  .carousel-image,
  .carousel-content {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .carousel-image {
    min-height: 232px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background:
      radial-gradient(circle at 50% 28%, rgba(55, 184, 255, 0.16), transparent 52%),
      rgba(8, 28, 48, 0.78) !important;
  }

  .carousel-image img {
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    padding: 10px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
  }

  .carousel-content {
    padding: 18px !important;
  }

  .item-tag {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  .carousel-content h3 {
    margin-top: 12px !important;
    font-size: 23px !important;
    line-height: 1.12 !important;
  }

  .carousel-content p {
    margin-top: 10px !important;
    font-size: 14.5px !important;
    line-height: 1.5 !important;
  }

  .spec-grid {
    margin-top: 15px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    grid-auto-rows: 1fr !important;
  }

  .spec-item {
    padding: 12px !important;
    border-radius: 14px !important;
    min-height: 72px !important;
  }

  .spec-item strong {
    font-size: 12px !important;
  }

  .spec-item span {
    margin-top: 4px !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 420px) {
  .product-carousel {
    padding-left: 12px !important;
  }

  .carousel-track-wrapper {
    scroll-padding-left: 12px !important;
  }

  .carousel-slide,
  .carousel-slide.active {
    flex-basis: 86vw !important;
    width: 86vw !important;
  }

  .carousel-image {
    min-height: 216px !important;
  }

  .carousel-image img {
    height: 224px !important;
    min-height: 224px !important;
  }
}

@media (max-width: 380px) {
  .spec-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   VÍDEOS - AUTOPLAY SEM LOOP E ENQUADRAMENTO VERTICAL
   Mantém o vídeo inteiro bem posicionado, sem esticar e sem
   cortar o conteúdo principal. O vídeo preenche todo o espaço
   do próprio quadro em proporção 9:16.
   ========================================================= */
.video-banner {
  width: min(100%, 520px) !important;
  aspect-ratio: 9 / 16 !important;
  margin: 28px auto 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #06111f 0%, #0a1d33 100%) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34) !important;
}

.banner-video {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #06111f !important;
}

@media (min-width: 981px) {
  .video-banner {
    max-height: 82vh !important;
  }
}

@media (max-width: 980px) {
  .video-banner {
    width: min(100%, 500px) !important;
    aspect-ratio: 9 / 16 !important;
  }
}

@media (max-width: 640px) {
  .video-banner {
    width: min(100%, 420px) !important;
    aspect-ratio: 9 / 16 !important;
    margin-top: 24px !important;
    border-radius: 22px !important;
    max-height: none !important;
  }

  .banner-video {
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* =========================================================
   ESPECIFICAÇÕES TÉCNICAS - RESFRIADORES
   ========================================================= */

.technical-specs {
  padding: 8px 0 42px;
}

.technical-specs-box {
  position: relative;
  overflow: hidden;
}

.technical-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tech-spec-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(9, 30, 52, 0.72);
  border: 1px solid rgba(0, 174, 239, 0.14);
}

.tech-spec-item strong {
  display: block;
  color: var(--lime);
  font-size: 14px;
}

.tech-spec-item span {
  display: block;
  margin-top: 6px;
  color: var(--white);
}

.technical-spec-wide {
  grid-column: span 3;
}

@media (max-width: 980px) {
  .technical-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .technical-spec-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .technical-specs {
    padding: 0 0 34px;
  }

  .technical-specs-grid {
    grid-template-columns: 1fr;
  }

  .technical-spec-wide {
    grid-column: span 1;
  }
}

/* =========================================================
   BOTÃO DOS VÍDEOS
   O vídeo fica parado com poster e só inicia quando o visitante
   escolhe assistir com som.
   ========================================================= */
.video-banner.has-sound-toggle {
  position: relative !important;
}

.video-sound-btn {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 11px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(2, 8, 20, 0.78) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transform: translate(-50%, -50%) !important;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease !important;
}

.video-sound-btn:hover,
.video-sound-btn:focus-visible {
  background: rgba(0, 174, 239, 0.88) !important;
  transform: translate(-50%, -50%) translateY(-2px) !important;
  outline: none !important;
}

.video-sound-btn.is-hidden,
.video-banner.sound-enabled .video-sound-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) translateY(-8px) !important;
}

@media (max-width: 640px) {
  .video-sound-btn {
    left: 50% !important;
    top: 50% !important;
    padding: 10px 13px !important;
    font-size: 13px !important;
  }
}


/* =========================================================
   V14 - AJUSTES FINAIS MOBILE DOS CARROSSÉIS
   Permite rolar a página para baixo ao tocar no carrossel,
   remove sensação de zoom e mantém o conteúdo bem encaixado.
   ========================================================= */
@media (max-width: 640px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .container {
    width: min(100%, calc(100% - 24px)) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-hero .container,
  .carousel-section .container,
  .technical-specs .container {
    width: min(100%, calc(100% - 24px)) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .product-carousel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .product-carousel::after {
    right: -1px !important;
    width: 34px !important;
  }

  .carousel-track-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 4px 0 18px !important;
    scroll-padding-left: 0 !important;
    overscroll-behavior-x: auto !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y pan-x !important;
  }

  .carousel-track {
    padding-right: 12px !important;
  }

  .carousel-slide,
  .carousel-slide.active {
    flex: 0 0 min(84vw, 338px) !important;
    width: min(84vw, 338px) !important;
  }
}

@media (max-width: 480px) {
  .container,
  .page-hero .container,
  .carousel-section .container,
  .technical-specs .container {
    width: min(100%, calc(100% - 20px)) !important;
  }

  .carousel-slide,
  .carousel-slide.active {
    flex: 0 0 min(86vw, 332px) !important;
    width: min(86vw, 332px) !important;
  }
}
