body.oficina .of-home:has(.lta-home-index) {
  --lta-home-width: min(calc(100% - clamp(34px, 8vw, 116px)), 1280px);
  --lta-home-gap: clamp(23px, 3.5vw, 48px);
}

body.oficina .of-home > .ltahome:has(+ .lta-home-index) { margin-block-end: 0; }

.lta-home-index {
  background: #eef7ff;
  border-block: 1px solid var(--lta-line);
  padding: 12px 0;
}

.lta-home-index ul,
.lta-home-regional ul {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  width: var(--lta-home-width);
  margin: 0 auto;
  padding: 0;
}

.lta-home-index ul { justify-content: center; }

body.oficina .lta-home-index a,
body.oficina .lta-home-regional a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--lta-line);
  border-radius: 8px;
  background: #fff;
  color: var(--lta-navy);
  font-weight: 700;
  line-height: 1.25;
}

body.oficina .lta-home-index a { justify-content: center; height: 100%; text-align: center; }
body.oficina .lta-home-regional a { color: var(--lta-cobalt); }

body.oficina .lta-home-index a:hover,
body.oficina .lta-home-regional a:hover {
  border-color: var(--lta-cobalt);
  color: var(--lta-cobalt);
}

body.oficina .lta-home-index a[href="#diagnostico-lta"] {
  background: var(--lta-cobalt);
  border-color: var(--lta-cobalt);
  color: #fff;
}

body.oficina .lta-home-index a[href="#diagnostico-lta"]:hover {
  background: var(--lta-navy);
  border-color: var(--lta-navy);
}

.lta-home-chapter {
  padding-block: clamp(40px, 6vw, 88px);
  border-block-end: 1px solid var(--lta-line);
  scroll-margin-top: 115px;
}

.lta-home-chapter:is(#projetos-lta, #como-trabalhamos, #atendimento-lta) { background: #f3f9ff; }

.lta-home-chapter :is(.of-wrap, .ltap-wrap),
.lta-home-chapter-head {
  width: var(--lta-home-width);
  margin-inline: auto;
}

.lta-home-chapter-head {
  margin-block-end: clamp(25px, 4vw, 54px);
  padding-inline-start: clamp(14px, 2vw, 25px);
  border-inline-start: 5px solid var(--lta-gold);
}

.lta-home-chapter-head h2 {
  margin: 0 0 10px;
  color: var(--lta-navy);
  font-weight: 760;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -.05em;
}

.lta-home-chapter-head p { margin: 0; max-width: 68ch; color: var(--lta-text); line-height: 1.55; }

body.oficina .of-home .lta-home-chapter :is(.lh-section, .ltap-panel) {
  padding-block: var(--lta-home-gap);
  background: transparent;
}

body.oficina .of-home .lta-home-chapter > :is(.lh-section:first-child, .lh-section:last-child) { padding-block: 0; }

.lta-home-chapter :is(.lh-section-head, .ltap-heading) { margin-bottom: clamp(16px, 2.4vw, 30px); }
.lta-home-chapter :is(.lh-section, .ltap-panel)[id],
.lta-home-chapter :is(h2, h3)[id] { scroll-margin-top: 115px; }

body.oficina .of-home .lta-home-chapter :is(.lh-section, .ltap-panel) :is(.lh-section-head h3, .ltap-heading h3, .lh-connection-panel h3, .lh-finder-panel h3) {
  margin-block-end: 9px;
  font-size: clamp(1.52rem, 2.6vw, 2.2rem);
  font-weight: 740;
  line-height: 1.15;
  letter-spacing: -.034em;
}

body.oficina .of-home .lta-home-chapter :is(.lh-section, .ltap-panel) h4:not(.ltap-meta-info h4) {
  margin: 0 0 8px;
  color: var(--lta-navy);
  font-weight: 720;
  font-size: clamp(1.04rem, 1.75vw, 1.28rem);
  line-height: 1.2;
}

.lta-home-chapter .ltap :is(.ltap-sites, .ltap-ads, .ltap-google) {
  background: transparent;
  border-color: var(--lta-line);
  border-block-start-width: 1px;
}

.lta-home-chapter .ltap .ltap-sites { border-block-start: 0; }
.lta-home-proof-links { margin-block-start: -12px; }
.lta-home-regional + .ltap { margin-block-start: 0; }
.lta-home-chapter .lta-home-regional:not(.lta-home-proof-links) { margin-block-start: 16px; }

body.oficina .lta-home-detail {
  width: var(--lta-home-width);
  margin: var(--lta-home-gap) auto 0;
  padding-inline: clamp(14px, 2.7vw, 28px);
  background: #fff;
  border: 1px solid var(--lta-line);
  border-radius: 12px;
}

.lta-home-detail summary,
.lta-home-card-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--lta-cobalt);
  font-weight: 700;
}

.lta-home-detail summary { min-height: 54px; padding-block: 10px; }
.lta-home-detail summary::-webkit-details-marker,
.lta-home-card-detail summary::-webkit-details-marker { display: none; }

.lta-home-detail summary::after,
.lta-home-card-detail summary::after {
  content: "";
  flex: 0 0 8px;
  block-size: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
  margin-inline-end: 5px;
  margin-block-end: 4px;
}

.lta-home-detail[open] > summary::after,
.lta-home-card-detail[open] > summary::after { transform: rotate(225deg); margin-block-end: 0; }

.lta-home-chapter .lta-home-detail > .lh-section > .of-wrap { width: 100%; }
body.oficina .of-home .lta-home-detail > .lh-section { padding-block: 12px 24px; }

.lta-home-chapter .lh-service-copy > p { margin-block: 0 8px; }
.lta-home-card-detail { width: 100%; margin-block-end: 6px; border-block-start: 1px solid var(--lta-line); }
.lta-home-card-detail p { padding: 4px 0 0; }
.lta-home-chapter .lh-service-copy > .of-inline { min-height: 44px; display: inline-flex; align-items: center; }

body.oficina .of-home .lta-home-art { min-width: 0; margin: 0; }

body.oficina .of-home .lta-home-art figcaption {
  display: block;
  padding: 7px 4px 0;
  color: var(--lta-text);
  font-size: .82rem;
  line-height: 1.35;
}

.lta-home-art .lta-mega-art img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-inline-size: 0;
  min-block-size: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

body.oficina .of-home .lta-home-art .lta-mega-screen img {
  inline-size: auto;
  block-size: auto;
  max-inline-size: 88%;
  max-block-size: 84%;
  padding: 3px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 9px #09244b45;
}

body.oficina .of-home .lh-product-figure.lta-home-art { padding: 14px 14px 0; }
body.oficina .of-home .lh-product-figure.lta-home-art .lh-product-image {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
}

body.oficina .of-home .lta-home-chapter .lh-custom-callout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  grid-template-areas: "art info" "art action";
  column-gap: clamp(15px, 3.6vw, 46px);
  row-gap: 12px;
  align-items: center;
  padding: clamp(17px, 3vw, 36px);
}

.lta-home-chapter .lh-custom-callout .lh-custom-figure { grid-area: art; }
.lta-home-chapter .lh-custom-callout > div { grid-area: info; align-self: end; }
.lta-home-chapter .lh-custom-callout > a { grid-area: action; align-self: start; justify-self: start; }

@media (max-width: 640px) {
  .lta-home-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.oficina .lta-home-index a { padding-inline: 7px; font-size: .93rem; }
  .lta-home-regional ul { gap: 6px; }
  body.oficina .lta-home-regional a { padding-inline: 8px; font-size: .92rem; }
  .lta-home-chapter .lh-service-visual { padding: 12px 12px 0; }
  .lta-home-chapter .lh-service-copy,
  .lta-home-chapter .lh-product-copy { padding: 16px 15px 19px; }
  body.oficina .of-home .lta-home-chapter .lh-custom-callout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "art" "info" "action";
  }
}
