/* Home publica | camada responsive | componente marketplace. */



@media (max-width: 1099.98px) {
.pt-home-product-card {
    grid-template-rows: 158px minmax(0, 1fr);
  }

.pt-home-product-body {
    padding: 1.1rem;
  }
}



@media (max-width: 991.98px) {
.pt-home-freight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.pt-home-freight-card:last-child {
    grid-column: 1 / -1;
  }

.pt-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.pt-home-product-card:last-child {
    width: calc(50% - 0.5rem);
    grid-column: 1 / -1;
    justify-self: center;
  }
}



@media (max-width: 767.98px) {
.pt-home-publish-cta {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

.pt-home-publish-cta .btn {
    width: 100%;
    grid-column: 1 / -1;
  }

.pt-home-product-partner {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

.pt-home-product-partner .btn {
    width: 100%;
    grid-column: 1 / -1;
  }
}



@media (max-width: 575.98px) {
.pt-home-freight-grid {
    display: flex;
    gap: 0.85rem;
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-bottom: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    touch-action: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--pt-primary), transparent 45%)
      transparent;
  }

.pt-home-freight-card,
  .pt-home-freight-card:last-child {
    min-width: 0;
    flex: 0 0 min(90vw, 360px);
    grid-column: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

.pt-home-product-grid {
    display: flex;
    gap: 0.85rem;
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-bottom: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    touch-action: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--pt-primary), transparent 45%)
      transparent;
  }

.pt-home-product-card,
  .pt-home-product-card:last-child {
    width: auto;
    min-width: 0;
    flex: 0 0 min(86vw, 340px);
    grid-column: auto;
    grid-template-rows: 145px minmax(0, 1fr);
    justify-self: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

.pt-home-product-body {
    padding: 1rem;
  }

.pt-home-product-body h3 {
    min-height: 0;
  }
}



@media (max-width: 339.98px) {
.pt-home-publish-cta {
    grid-template-columns: 1fr;
  }

.pt-home-publish-cta .btn {
    grid-column: 1;
  }

.pt-home-product-partner {
    grid-template-columns: 1fr;
  }

.pt-home-product-partner .btn {
    grid-column: 1;
  }
}



/* Experiência mobile com conteúdo e gestos priorizados. */
@media (max-width: 767.98px) {
.pt-home-profile-grid,
  .pt-home-journey-grid,
  .pt-home-freight-grid,
  .pt-home-product-grid {
    display: flex;
    gap: 0.78rem;
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    padding: 0 calc(var(--bs-gutter-x) * 0.5) 0.35rem 0;
    overflow-x: auto;
  }

.pt-home-freight-card,
  .pt-home-freight-card:last-child {
    flex: 0 0 min(88vw, 355px);
  }

.pt-home-publish-cta,
  .pt-home-product-partner {
    gap: 0.85rem;
    padding: 1rem;
  }

.pt-home-publish-cta p,
  .pt-home-product-partner p {
    line-height: 1.5;
  }

.pt-home-product-card,
  .pt-home-product-card:last-child {
    flex: 0 0 min(86vw, 340px);
    grid-template-rows: 140px minmax(0, 1fr);
  }

.pt-home-product-body footer {
    padding-top: 0.75rem;
  }

.pt-home-profile-content h3,
  .pt-home-journey-grid h3,
  .pt-home-product-body h3,
  .pt-home-story-card h3,
  .pt-home-module-card h3,
  .pt-home-utility-card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}



/* Alinhamento mobile: textos centralizados e trilhos equilibrados visualmente. */
@media (max-width: 767.98px) {
.pt-home-freight-grid {
    --pt-mobile-card-width: min(88vw, 355px);
  }

.pt-home-product-grid {
    --pt-mobile-card-width: min(86vw, 340px);
  }

.pt-home-profile-grid,
  .pt-home-journey-grid,
  .pt-home-freight-grid,
  .pt-home-product-grid {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: calc((100vw - var(--pt-mobile-card-width)) / 2);
    padding-bottom: 0.35rem;
    padding-left: calc((100vw - var(--pt-mobile-card-width)) / 2);
    scroll-padding-inline: calc((100vw - var(--pt-mobile-card-width)) / 2);
  }

.pt-home-freight-card,
  .pt-home-freight-card:last-child {
    flex: 0 0 var(--pt-mobile-card-width);
  }

.pt-home-product-card,
  .pt-home-product-card:last-child {
    width: auto;
    flex: 0 0 var(--pt-mobile-card-width);
  }

.pt-home-profile-content,
  .pt-home-journey-grid > li,
  .pt-home-product-body > small,
  .pt-home-product-body > h3,
  .pt-home-story-card > div,
  .pt-home-module-copy {
    text-align: center;
  }

.pt-home-publish-cta,
  .pt-home-product-partner,
  .pt-home-pro-callout {
    justify-items: center;
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

.pt-home-publish-cta .btn,
  .pt-home-product-partner .btn,
  .pt-home-pro-callout .btn {
    grid-column: 1;
  }
}



/* CTAs mobile: cartões horizontais compactos com área exclusiva para o ícone. */
@media (max-width: 767.98px) {
.pt-home-freights .pt-home-publish-cta,
  .pt-home-marketplace .pt-home-product-partner {
    display: grid;
    width: 100%;
    gap: 0.58rem 0.72rem;
    align-items: center;
    justify-items: stretch;
    margin-top: 0.8rem;
    padding: 0.78rem;
    overflow: hidden;
    border-radius: 16px;
    grid-template:
      "icon copy" auto
      "icon action" auto
      / 48px minmax(0, 1fr);
    text-align: left;
  }

.pt-home-freights .pt-home-publish-cta {
    background:
      radial-gradient(
        circle at 0% 50%,
        rgba(30, 86, 255, 0.13),
        transparent 34%
      ),
      linear-gradient(112deg, var(--pt-primary-soft), var(--pt-surface) 72%);
  }

.pt-home-marketplace .pt-home-product-partner {
    background:
      radial-gradient(
        circle at 0% 50%,
        rgba(0, 191, 255, 0.11),
        transparent 34%
      ),
      color-mix(in srgb, var(--pt-surface), transparent 5%);
  }

.pt-home-freights .pt-home-publish-cta > .pt-home-icon-shell,
  .pt-home-marketplace .pt-home-product-partner > .pt-home-icon-shell {
    width: 48px;
    height: 48px;
    align-self: center;
    border-radius: 14px;
    grid-area: icon;
  }

.pt-home-freights .pt-home-publish-cta > .pt-home-icon-shell svg,
  .pt-home-marketplace .pt-home-product-partner > .pt-home-icon-shell svg {
    width: 27px;
    height: 27px;
  }

.pt-home-freights .pt-home-publish-cta > div,
  .pt-home-marketplace .pt-home-product-partner > div {
    min-width: 0;
    grid-area: copy;
  }

.pt-home-freights .pt-home-publish-cta > div small,
  .pt-home-marketplace .pt-home-product-partner > div small {
    display: block;
    margin-bottom: 0.13rem;
    font-size: 0.52rem;
    line-height: 1.2;
  }

.pt-home-freights .pt-home-publish-cta h3,
  .pt-home-marketplace .pt-home-product-partner h3 {
    margin: 0 0 0.12rem;
    font-size: 0.84rem;
    line-height: 1.18;
  }

.pt-home-freights .pt-home-publish-cta p,
  .pt-home-marketplace .pt-home-product-partner p {
    margin: 0;
    font-size: 0.64rem;
    line-height: 1.32;
  }

.pt-home-freights .pt-home-publish-cta > .btn,
  .pt-home-marketplace .pt-home-product-partner > .btn {
    display: flex;
    width: 100%;
    min-height: 38px;
    gap: 0.55rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem 0.68rem;
    border-radius: 10px;
    grid-area: action;
    font-size: 0.64rem;
    line-height: 1.15;
    text-align: left;
  }

.pt-home-freights .pt-home-publish-cta > .btn i,
  .pt-home-marketplace .pt-home-product-partner > .btn i {
    flex: 0 0 auto;
    font-size: 0.62rem;
  }
}
