/* Landing Unidades Móveis para Prefeituras e Governo */

body.ecox-prefeituras-landing .ecox-landing-main {
  padding: 0 0 64px;
  background: var(--white);
}

body.ecox-prefeituras-landing {
  overflow-x: clip;
  scroll-behavior: smooth;
}

.pref-inner {
  box-sizing: border-box;
  width: min(1240px, calc(100% - 10vw));
  margin-inline: auto;
}

.pref-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pref-title {
  margin: 0;
  max-width: 18em;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
}

.pref-lead,
.pref-prose,
.pref-note {
  color: var(--mid);
  font-size: 1.02rem;
  line-height: 1.7;
}

.pref-lead {
  max-width: 62ch;
  margin: 16px 0 0;
}

.pref-prose p,
.pref-note {
  margin: 0 0 1em;
}

.pref-prose p:last-child,
.pref-note:last-child {
  margin-bottom: 0;
}

.pref-prose a,
.pref-card__link,
.pref-case__links a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.pref-prose a:hover,
.pref-card__link:hover,
.pref-case__links a:hover,
.pref-btn:hover,
.pref-btn:focus-visible {
  color: var(--black);
}

.pref-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  padding: 48px 0 56px;
  background: #fff;
}

.pref-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(62%, 820px);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
}

.pref-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0.94) 18%, rgba(255, 255, 255, 0.55) 46%, rgba(255, 255, 255, 0) 78%);
}

.pref-hero .pref-inner {
  position: relative;
  z-index: 1;
}

.pref-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.78rem;
}

.pref-breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
}

.pref-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.pref-hero__title {
  margin: 0;
  max-width: 16em;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
}

.pref-summary {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--black);
  font-size: 1.08rem;
  line-height: 1.65;
}

.pref-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.pref-btn--ghost {
  background: transparent;
  color: var(--black);
  box-shadow: inset 0 0 0 1px var(--black);
}

.pref-btn:hover,
.pref-btn:focus-visible {
  background: var(--black);
  color: #fff;
  outline: none;
}

.pref-ancoras {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

body.admin-bar .pref-ancoras {
  top: 32px;
}

.pref-ancoras__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  overflow-x: auto;
  list-style: none;
}

.pref-ancoras__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.pref-ancoras__link:hover,
.pref-ancoras__link:focus-visible {
  border-color: var(--red);
  color: var(--red);
  outline: none;
}

.pref-section {
  padding: 56px 0;
}

.pref-section--line {
  border-top: 1px solid var(--rule);
}

.pref-hero,
.pref-section,
.pref-isca,
.pref-ancoras {
  scroll-margin-top: 76px;
}

body.admin-bar .pref-hero,
body.admin-bar .pref-section,
body.admin-bar .pref-isca,
body.admin-bar .pref-ancoras {
  scroll-margin-top: 108px;
}

.pref-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.pref-municipio,
.pref-fabricante {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.pref-municipio .pref-prose {
  margin-top: 20px;
}

.pref-municipio__photo,
.pref-fabricante__photo {
  margin: 0;
}

.pref-municipio__photo img,
.pref-fabricante__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pref-cards,
.pref-cases,
.pref-platforms {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.pref-cards,
.pref-cases {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.pref-platforms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pref-card,
.pref-case,
.pref-platforms li,
.pref-criteria li {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--rule);
  background: var(--white);
}

.pref-card__title,
.pref-case__title,
.pref-platforms h3,
.pref-criteria h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 1.05rem;
  font-weight: 700;
}

.pref-card__text,
.pref-case__text,
.pref-platforms p,
.pref-criteria p {
  margin: 0;
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pref-card--media {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.pref-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.pref-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pref-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.pref-card__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pref-note {
  max-width: 78ch;
  margin-top: 22px;
}

.pref-unit-group + .pref-unit-group {
  margin-top: 36px;
}

.pref-unit-group__head {
  max-width: 62ch;
  margin-bottom: 16px;
}

.pref-units {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pref-specs-carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.pref-specs-carousel__nav {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin-bottom: 4px;
}

.pref-specs-carousel__btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--black);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pref-specs-carousel__btn:hover,
.pref-specs-carousel__btn:focus-visible {
  border-color: var(--red);
  color: var(--red);
  outline: none;
}

.pref-specs-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pref-specs {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.pref-specs::-webkit-scrollbar {
  display: none;
}

.pref-spec {
  display: flex;
  flex: 0 0 calc((100% - 32px) / 3);
  flex-direction: column;
  scroll-snap-align: start;
  height: auto;
}

.pref-spec .pref-card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pref-unit {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.pref-unit:hover .pref-card__title,
.pref-unit:focus-visible .pref-card__title {
  color: var(--red);
}

.pref-case__links {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pref-case__links li + li {
  margin-top: 8px;
}

.pref-case__links a {
  font-size: 0.92rem;
  line-height: 1.45;
}

.pref-criteria {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pref-criteria li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.pref-criteria__num {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
}

body.ecox-prefeituras-landing .produto-empresa--video {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
}

body.ecox-prefeituras-landing .produto-empresa__copy {
  flex: 0 1 36%;
  min-width: 0;
}

body.ecox-prefeituras-landing .produto-empresa__title {
  margin: 0;
  max-width: 16ch;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: none;
}

body.ecox-prefeituras-landing .produto-empresa__title em {
  color: var(--red);
  font-style: italic;
}

body.ecox-prefeituras-landing .produto-empresa__lead {
  max-width: 28ch;
  margin: 22px 0 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--black);
  color: var(--black);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 600;
  line-height: 1.35;
}

body.ecox-prefeituras-landing .produto-empresa__video {
  flex: 1 1 64%;
  min-width: 0;
  margin: 0;
  background: #0a0a0a;
}

body.ecox-prefeituras-landing .produto-empresa__video iframe,
body.ecox-prefeituras-landing .ecox-landing-main .produto-empresa__video iframe[src*="youtube"],
body.ecox-prefeituras-landing .ecox-landing-main .produto-empresa__video iframe[src*="youtu.be"],
body.ecox-prefeituras-landing .ecox-landing-main .produto-empresa__video iframe[src*="youtube-nocookie"] {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  border: 0;
}

.pref-faq {
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}

.pref-faq__item {
  border-bottom: 1px solid var(--rule);
}

.pref-faq__question {
  padding: 18px 0;
  color: var(--black);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.pref-faq__question::-webkit-details-marker {
  display: none;
}

.pref-faq__answer {
  max-width: 72ch;
  margin: 0;
  padding: 0 0 18px;
  color: var(--mid);
  font-size: 0.98rem;
  line-height: 1.7;
}

.pref-isca {
  padding: 48px 0;
  background: var(--bg);
  border-top: 3px solid var(--red);
}

.pref-isca__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.pref-isca__mount {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--rule);
}

.pref-isca__fallback {
  padding: 24px;
}

.pref-isca__fallback p {
  margin: 0 0 16px;
  color: var(--mid);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .pref-hero__media {
    width: 100%;
  }

  .pref-hero__media::after {
    background: linear-gradient(to right, #fff 0%, #fff 42%, rgba(255, 255, 255, 0.9) 64%, rgba(255, 255, 255, 0.45) 100%);
  }

  .pref-split,
  .pref-municipio,
  .pref-fabricante,
  .pref-cards,
  .pref-cards--3,
  .pref-platforms,
  .pref-isca__grid {
    grid-template-columns: 1fr;
  }

  .pref-units {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pref-specs-carousel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pref-spec {
    flex-basis: calc((100% - 16px) / 2);
  }

  body.ecox-prefeituras-landing .produto-empresa--video {
    flex-direction: column-reverse;
    gap: 22px;
  }

  body.ecox-prefeituras-landing .produto-empresa__copy,
  body.ecox-prefeituras-landing .produto-empresa__video {
    flex: none;
    width: 100%;
  }

  body.ecox-prefeituras-landing .produto-empresa__title,
  body.ecox-prefeituras-landing .produto-empresa__lead {
    max-width: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .pref-ancoras {
    top: 46px;
  }

  body.admin-bar .pref-hero,
  body.admin-bar .pref-section,
  body.admin-bar .pref-isca,
  body.admin-bar .pref-ancoras {
    scroll-margin-top: 122px;
  }
}

@media (max-width: 640px) {
  .pref-spec {
    flex-basis: 86%;
  }
}
