/* Pedagógica B2C — Home (slider, pitchbar, cupom, marquees, catnav, colégios, banners, marcas).
   Extraído verbatim de main.css (carregado só nesta rota, depois de main.css). */

/* =====================================================================
   HERO SLIDER
   ===================================================================== */
.ped-slider {
  position: relative;
  overflow: hidden;
}

.ped-slider__carousel { width: 100%; }

/* <picture> estica para preencher o slide */
.ped-slider__picture {
  display: block;
  width: 100%;
  line-height: 0;
}
.ped-slider__link {
  display: block;
  width: 100%;
  line-height: 0;
}

.ped-slider__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ped-slider__indicators {
  bottom: 16px;
  gap: 6px;
  margin: 0;
}
.ped-slider__indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  text-indent: 0;
  transition: background var(--ped-transition), width .25s ease, border-radius .25s ease;
}
.ped-slider__indicators .active {
  background: var(--ped-white);
  width: 20px;
  border-radius: 4px;
  transform: none;
}

.ped-slider__caption {
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
  text-align: left;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 48px;
}

.ped-slider__title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
  margin-bottom: 8px;
}

.ped-slider__subtitle {
  font-size: clamp(14px, 2vw, 18px);
  opacity: .9;
  margin-bottom: 16px;
}

.ped-slider__btn {
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
}

.ped-slider__prev,
.ped-slider__next {
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.35);
  border-radius: 50%;
  transition: background var(--ped-transition);
  top: 50%;
  transform: translateY(-50%);
}
.ped-slider__prev:hover,
.ped-slider__next:hover { background: rgba(0,0,0,.6); }
.ped-slider__prev { left: 16px; }
.ped-slider__next { right: 16px; }

/* =====================================================================
   PITCH BAR
   ===================================================================== */
.ped-pitchbar {
  background: transparent;
  padding: 28px 0;
  border-bottom: 1px solid var(--ped-gray-border);
}

.ped-pitchbar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.ped-pitchbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 12px;
}

.ped-pitchbar__icon {
  font-size: 28px;
  color: var(--ped-text);
  line-height: 1;
}

.ped-pitchbar__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ped-pitchbar__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ped-text);
  letter-spacing: .01em;
}

.ped-pitchbar__desc {
  display: block;
  font-size: .82rem;
  color: var(--ped-gray-text);
  line-height: 1.45;
  max-width: 28ch;
}

@media (max-width: 1199px) {
  .ped-pitchbar__grid { grid-template-columns: repeat(3, 1fr); }
  .ped-slider__image { height: 380px; }
  .ped-slider__caption { padding: 24px 32px; }
}

@media (max-width: 767px) {
  .ped-pitchbar__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ped-slider__image { height: auto; object-fit: unset; }
  .ped-slider__caption { padding: 16px 20px; }
  .ped-slider__title { font-size: 20px; }
}

@media (max-width: 479.98px) {
  .ped-pitchbar__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Cupom 1ª compra (faixa navy full-width)
   ══════════════════════════════════════════════════════════════════════════ */
.ped-coupon-banner {
  background: var(--ped-primary);
  color: #fff;
  padding: 14px 0;
}
.ped-coupon-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.ped-coupon-banner__text {
  margin: 0;
  flex: 1 1 320px;
  font-size: .95rem; line-height: 1.4;
}
.ped-coupon-banner__title { font-weight: 800; margin-right: 6px; }
.ped-coupon-banner__subtitle { font-weight: 500; opacity: .96; }

/* Pílula com código + botão copiar */
.ped-coupon-banner__action {
  display: inline-flex; align-items: stretch;
  border: 2px dashed rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 4px;
  background: transparent;
  flex: 0 0 auto;
}
.ped-coupon-banner__code {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  background: transparent; color: #fff;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: .92rem; font-weight: 800; letter-spacing: .06em;
  white-space: nowrap;
}
.ped-coupon-banner__copy {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  background: #fff; color: var(--ped-primary);
  padding: 6px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  transition: background .15s, color .15s, transform .15s;
}
.ped-coupon-banner__copy:hover {
  background: rgba(255,255,255,.92); transform: translateY(-1px);
}
.ped-coupon-banner__copy.is-copied {
  background: #15803d; color: #fff;
}

@media (max-width: 575px) {
  .ped-coupon-banner__inner { gap: 12px; }
  .ped-coupon-banner__text  { flex-basis: 100%; text-align: center; }
  .ped-coupon-banner__action { width: 100%; justify-content: center; }
  .ped-coupon-banner__code { flex: 1 1 auto; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MARQUEE — letreiro contínuo (usado nos colégios da home)
   ══════════════════════════════════════════════════════════════════════════ */
.ped-marquee {
  position: relative;
  width: 100%; overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ped-marquee__track {
  display: flex; width: max-content;
  animation: ped-marquee var(--ped-marquee-duration, 90s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.ped-marquee__group {
  display: flex; gap: 24px; padding-right: 24px;
  flex: 0 0 auto;
}
@keyframes ped-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.ped-marquee--slow .ped-marquee__track { --ped-marquee-duration: 120s; }
@media (prefers-reduced-motion: reduce) {
  .ped-marquee__track { animation: none; }
  .ped-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

.ped-colegios-home__cta {
  display: flex; justify-content: center; padding: 14px 0 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Navegação por categorias (marquee igual marcas/colégios)
   ══════════════════════════════════════════════════════════════════════════ */
.ped-catnav { padding: 16px 0 8px; }

.ped-catnav-card {
  flex: 0 0 220px;
  width: 220px;
  display: flex;
}
.ped-catnav-card__link {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  width: 100%; padding: 8px 6px;
  text-decoration: none; color: var(--ped-text, #222);
  transition: transform .18s;
}
.ped-catnav-card__link:hover { transform: translateY(-3px); }
.ped-catnav-card__img-wrap {
  width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 50%; overflow: hidden;
}
.ped-catnav-card__img {
  width: 100%; height: 100%; object-fit: cover;
}
.ped-catnav-card__name {
  font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ped-text, #222);
}

@media (max-width: 575px) {
  .ped-catnav-card { flex: 0 0 160px; width: 160px; }
  .ped-catnav-card__img-wrap { width: 130px; height: 130px; }
  .ped-catnav-card__name { font-size: .9rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Lista de material escolar (colégios)
   ══════════════════════════════════════════════════════════════════════════ */
.ped-colegios-home { padding: 24px 0; }
.ped-colegios-home__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* CARDS — dimensões padronizadas (também valem dentro do marquee) */
.ped-colegio-home-card {
  flex: 0 0 240px;
  width: 240px;
  display: flex;
}
.ped-colegio-home-card__link {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  width: 100%; padding: 22px 16px;
  background: transparent; border: 0; border-radius: var(--ped-radius);
  text-decoration: none; color: inherit;
  transition: transform .18s;
}
.ped-colegio-home-card__link:hover {
  transform: translateY(-3px);
}
.ped-colegio-home-card__logo-wrap {
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.ped-colegio-home-card__logo {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.ped-colegio-home-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ped-gray-bg, #f4f4f4);
  font-size: 1.6rem; font-weight: 800; color: var(--ped-primary);
}
.ped-colegio-home-card__name {
  margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.3;
  min-height: 2.6em; /* reserva 2 linhas pra alinhar entre cards */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 575px) {
  .ped-colegios-home__list {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .ped-colegio-home-card { flex: 0 0 200px; width: 200px; scroll-snap-align: start; }
  .ped-colegio-home-card__logo-wrap { width: 130px; height: 130px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — 3 Banners promocionais
   ══════════════════════════════════════════════════════════════════════════ */
.ped-triple-banner { padding: 20px 0; }
.ped-triple-banner__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.ped-triple-banner__item { border-radius: var(--ped-radius); overflow: hidden; }
.ped-triple-banner__link { display: block; }
.ped-triple-banner__img {
  display: block; width: 100%; height: auto; border-radius: var(--ped-radius);
  transition: transform .25s;
}
.ped-triple-banner__link:hover .ped-triple-banner__img { transform: scale(1.02); }

@media (max-width: 767px) {
  .ped-triple-banner__grid {
    grid-template-columns: none;
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .ped-triple-banner__item { flex: 0 0 86%; scroll-snap-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Marcas
   ══════════════════════════════════════════════════════════════════════════ */
.ped-brands { padding: 24px 0; }

/* CARDS — dimensões padronizadas (também valem dentro do marquee) */
.ped-brand-card {
  flex: 0 0 200px;
  width: 200px;
  display: flex;
}
.ped-brand-card__link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 120px;
  padding: 16px;
  background: transparent; border: 0; border-radius: var(--ped-radius);
  transition: transform .18s;
}
.ped-brand-card__link:hover {
  transform: translateY(-2px);
}
.ped-brand-card__logo {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(20%); transition: filter .18s;
}
.ped-brand-card__link:hover .ped-brand-card__logo { filter: grayscale(0%); }

@media (max-width: 575px) {
  .ped-brand-card { flex: 0 0 160px; width: 160px; }
  .ped-brand-card__link { height: 100px; }
}
