/* Homepage do portal. As restantes secções mantêm os componentes publicados. */
html { scroll-padding-top: 105px; }
.header nav { gap: clamp(14px, 1.55vw, 25px); }
.header nav .portal-en { font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.header-inner { height: 80px; }
.portal-cover {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(28px, 4vw, 68px);
  min-height: 0;
  padding-block: clamp(40px, 5.2vw, 87px);
}
.portal-cover .eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 3vw, 34px);
}
.portal-cover .eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
.portal-cover h1 { font-size: clamp(3.5rem, 6.6vw, 6.45rem); line-height: .98; margin-bottom: 22px; }
.portal-cover .lead { max-width: 43ch; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.6; }
.portal-cover .actions { margin-top: 25px; }
.portal-photo {
  display: grid; isolation: isolate; position: relative; border-radius: 5px;
  overflow: hidden; width: 100%; min-width: 0; aspect-ratio: 1.3; background: #1d252a; align-self: center;
}
.portal-photo img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 47% 50%; z-index: -2; transition: transform .4s ease; }
.portal-photo::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,#10130c38 62%,#090c0ce8 100%);
  z-index: -1; pointer-events: none;
}
.portal-photo:hover img { transform: scale(1.025); }
.portal-photo-caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; align-self: end; padding: clamp(21px, 2.8vw, 39px); }
.portal-photo-caption p { margin: 0 0 .36rem; font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .09em; text-transform: uppercase; }
.portal-photo-caption strong { font-size: clamp(1.65rem, 2.7vw, 2.55rem); line-height: 1.1; letter-spacing: -.04em; }
.portal-arrow { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e4e7e0aa; color: white; }
.portal-directory { padding-block: 38px 54px; border-top: 1px solid var(--border); }
.portal-directory-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.portal-directory-head h2 { margin: 0; font-size: clamp(1.65rem, 3.2vw, 3.1rem); }
.portal-map { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.portal-map article { position: relative; border-top: 1px solid var(--border); padding: 24px clamp(16px, 2.7vw, 42px) 25px 0; }
.portal-map article:nth-child(even) { border-left: 1px solid var(--border); padding-left: clamp(16px, 2.7vw, 42px); padding-right: 0; }
.portal-map h3 { margin: 0; font-size: clamp(1.25rem, 2.1vw, 2rem); }
.portal-map h3 a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: var(--text); }
.portal-map h3 a:hover { color: var(--accent); }
.portal-map h3 span { font-size: 1.2rem; font-weight: 400; color: var(--accent); }
.portal-map p { margin: 10px 0 14px; font-size: .96rem; }
.portal-sublinks { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; }
.portal-sublinks a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #5b6067; font-size: .85rem; }
.portal-sublinks a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.portal-more { display: inline-block; margin-top: 16px; }
.proof { border-top: 0; padding-top: 0; }
@media (min-width: 1101px) {
  .header .menu-toggle { display: none; }
  .header nav, .header nav.open { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; background: transparent; border: 0; font-size: .88rem; }
  .header nav .client-link { border-left: 1px solid var(--border); padding-left: 1.25rem; }
  .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
  .portfolio-card { min-height: 0; }
  .portfolio-card h3 { font-size: clamp(1.18rem, 1.8vw, 1.55rem); }
}
@media (max-width: 1100px) {
  .header .menu-toggle { display: flex; }
  .header nav { top: 80px; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; gap: 10px; }
  .header nav a { padding: .25rem 0; }
  .header nav a.button { padding: .75rem; }
}
@media (max-width: 720px) {
  .header-inner { height: 68px; }
  .header nav { top: 68px; max-height: calc(100dvh - 68px); }
  html { scroll-padding-top: 80px; }
  .portal-cover { padding-top: 35px; padding-bottom: 30px; }
  .portal-cover h1 { font-size: clamp(3.35rem, 12vw, 5.5rem); }
  .portal-cover .lead { margin-bottom: 0; }
  .portal-cover .actions { gap: 15px; }
  .portal-photo { width: 100%; display: grid; aspect-ratio: 1.75; margin-top: 32px; }
  .portal-photo img { object-position: 50% 48%; }
  .portal-photo-caption { padding: 17px 19px; }
  .portal-directory { padding: 28px 0 37px; }
  .portal-directory-head { margin-bottom: 19px; }
  .portal-directory-head a { font-size: .8rem; }
  .portal-map { grid-template-columns: 1fr; }
  .portal-map article, .portal-map article:nth-child(even) { padding: 19px 0; border-left: 0; }
}
@media (max-width: 480px) {
  #quote-form .two-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) and (max-height: 480px) and (orientation: landscape) {
  .header nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    padding-block: 12px;
  }
  .header nav.open > .button {
    grid-column: 1 / -1;
    min-height: 44px;
    position: sticky;
    bottom: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-photo img { transition: none; }
  .portal-photo:hover img { transform: none; }
}
/* A seta é desenhada em CSS para usar a mesma forma com qualquer conjunto de tipos instalado. */
.portal-cover .button > span, .portal-arrow, .portal-map h3 span, .portfolio-visit span[aria-hidden] {
  position: relative; display: inline-flex; width: 16px; height: 16px; font-size: 0;
}
.portal-arrow { width: 36px; height: 36px; }
.portal-cover .button > span::after, .portal-arrow::after, .portal-map h3 span::after, .portfolio-visit span[aria-hidden]::after {
  content: ""; position: absolute; height: 8px; width: 8px; top: calc(50% - 5px); left: calc(50% - 4px);
  border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor;
}
.portal-cover .button > span::before, .portal-arrow::before, .portal-map h3 span::before, .portfolio-visit span[aria-hidden]::before {
  content: ""; position: absolute; height: 1.6px; width: 12px; background: currentColor; transform: rotate(-45deg);
  top: calc(50% - 1px); left: calc(50% - 6px);
}
