/*
 * V21 — carrossel com comportamento visual da versão V17
 * - Restaura a barra horizontal inferior.
 * - Restaura o arraste por mouse e o scroll nativo por toque.
 * - Mantém intactos o conteúdo e os ajustes visuais atuais dos cards.
 */

.plates-track {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(242, 181, 30, .72) rgba(255, 255, 255, .12) !important;
  -ms-overflow-style: auto;
  cursor: grab;
}

.plates-track.is-dragging {
  cursor: grabbing;
}

.plates-track::-webkit-scrollbar {
  display: block !important;
  width: auto !important;
  height: .55rem !important;
}

.plates-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .1) !important;
  border-radius: 999px;
}

.plates-track::-webkit-scrollbar-thumb {
  background: rgba(242, 181, 30, .78) !important;
  border-radius: 999px;
}

/*
 * Desktop/tablet horizontal: o min-height anterior criava um vazio artificial
 * entre o selo de pessoas e o botão, deixando o título alto demais no card.
 */
@media (min-width: 761px) {
  .plate-info {
    min-height: 0 !important;
  }

  .plate-actions {
    margin-top: 1rem !important;
    padding-top: 0 !important;
  }
}

/* Mobile: card mais respirado, conteúdo estável e CTA sem recorte. */
@media (max-width: 760px) {
  .plates-track {
    overflow-y: visible !important;
    padding: .35rem .85rem 1.35rem .15rem !important;
    scroll-padding-inline: .15rem !important;
    scroll-snap-type: x proximity !important;
  }

  .plates-track .plate-card {
    height: clamp(29.5rem, 122vw, 31.5rem) !important;
    border-radius: 2rem !important;
    scroll-snap-align: start;
  }

  /* Gradiente no card inteiro, em vez de uma mancha restrita ao bloco de texto. */
  .plates-track .plate-card::after {
    display: block !important;
    background:
      linear-gradient(
        to top,
        rgba(9, 6, 4, .98) 0%,
        rgba(9, 6, 4, .88) 24%,
        rgba(9, 6, 4, .42) 48%,
        rgba(9, 6, 4, 0) 72%
      ) !important;
  }

  .plate-info {
    left: 1.125rem !important;
    right: 1.125rem !important;
    bottom: 1.125rem !important;
    min-height: 0 !important;
    background: transparent !important;
  }

  .plate-info h3 {
    font-size: clamp(2rem, 9vw, 2.45rem) !important;
    line-height: .98 !important;
  }

  .plate-serves {
    margin-top: .7rem !important;
  }

  .plate-actions {
    width: 100% !important;
    margin-top: .9rem !important;
    padding-top: 0 !important;
  }

  .plate-actions .btn {
    width: 100% !important;
    min-height: 3.25rem !important;
    padding-inline: 1rem !important;
    font-size: .92rem !important;
    line-height: 1.15 !important;
  }
}

@media (max-width: 360px) {
  .plates-track .plate-card {
    flex-basis: min(87vw, 18.75rem) !important;
  }

  .plate-info {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
  }

  .plate-info h3 {
    font-size: 1.9rem !important;
  }
}


/* V20 — ajuste fino solicitado */

/* Mantém o arraste natural e reduz toques acidentais em links durante o swipe */
.plates-track {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Abaixa a curva de transição para reduzir o vazio antes da seção seguinte. */
.plates-experience::after {
  bottom: -104px !important;
  height: 168px !important;
}

.story {
  margin-top: -1px;
}

@media (max-width: 760px) {
  .plates-experience::after {
    bottom: -112px !important;
    height: 146px !important;
    left: -12% !important;
    right: -12% !important;
  }

  .story {
    padding-top: 58px !important;
  }
}

/* V21 — fechamento mobile: título de prêmios e navegação do footer */
@media (max-width: 620px) {
  /* Evita que “reconhecimentos” ultrapasse a largura útil da tela. */
  .awards-header,
  .awards-title {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .awards-title {
    font-size: clamp(2rem, 9.7vw, 3.6rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.04em !important;
    text-wrap: balance !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  /* Links da navegação lado a lado, em duas colunas. */
  .site-footer nav.footer-column {
    width: 100% !important;
  }

  .site-footer nav.footer-column .footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .site-footer nav.footer-column .footer-links a {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding-inline: 0.7rem !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .site-footer nav.footer-column .footer-links a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 350px) {
  .awards-title {
    font-size: 2rem !important;
  }

  .site-footer nav.footer-column .footer-links a {
    font-size: 0.84rem !important;
  }
}
