.header{
  position:fixed;
  top:0;
  z-index:40;
  width: 100%;
}

.nav{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:35px var(--gutter);
  font-size: 1rem;
  text-transform: uppercase;
  transition: background-color 0.4s ease;
  color: #fff;
}

.brand{
  display: none;
}

.btn {
  cursor: pointer;
  position: fixed;
  right: 5%;
  top: 4%;
  transition: transform .3s ease;
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
}

.mob {
  display: none;
}

.menu{
  display:flex;
  gap:40px;
  font-weight:400;
  align-items: center;
}

.divider {
  background-color: var(--white);
  width: 1px;
  height: 30px;
}

.menu-mob {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  background-color: var(--green);
  height: 100vh;
  width: 100vw;
  z-index: 999999;
  transition: transform .3s ease, opacity .3s ease;
  transform: translateY(-10px);
  opacity: 0;
}

.menu-mob.ativo {
  display: flex;
  font-size: 2rem;
  font-weight: 500;
  color: white;
  background-color: var(--green);
  transform: translateY(0);
  opacity: 1;
}

.hide {
  display: none !important;
}

.menu-mob a {
  padding: 5% 0;
}

/* Redes sociais (LinkedIn + Instagram) */
.redes {
  display: flex;
  align-items: center;
  gap: 14px;
}

.redes img {
  display: block;
}

.menu-mob .redes a {
  padding: 0;
}

.menu-mob .redes {
  padding: 5% 0;
}

/* Botão de fechar o menu: mesma posição do botão de abrir na barra do celular */
.menu-mob .btn {
  top: 14px;
  right: var(--gutter);
}

/* Barra do celular/tablet: o botão fica no fluxo, ao lado do logo */
.mob .btn {
  position: static;
}

.mob-brand img {
  display: block;
  width: auto;
}

[hidden] {
  display: none !important;
}

/* Hero */
.hero{
  position:relative;
  background:var(--green);
  color:#fff;
}

.hero-inner{
  margin:0 auto;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 10%;
  align-items:center;
  min-height: var(--tela-h);
}

/* O wordmark "FMOURA" é full-bleed: a hero não recebe o gutter do .container no desktop */
@media screen and (min-width: 1081px) {
  .container.hero-inner{
    padding-inline: 0;
  }
}

.kicker{
  display: flex; 
  justify-content: flex-end;
  font-size: 2rem;
  line-height: 3.2rem;
  width: 100%;
  flex: 1; /* ocupa o espaço acima do wordmark (antes: height 50% de um pai com altura fixa) */
}

.hero-svg {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-logo {
  width: 100%;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* Notebook: wordmark 10% menor para dar respiro nas laterais */
html[data-tela="notebook"] .hero-logo img {
  width: 90%;
}

.hero-logo-mobile {
  display: none;
}

/* Celular também usa o logo completo (FMOURA ADVOGADOS); a versão só com FMOURA fica fora de uso */

.blink {
  animation: blink 3s infinite;
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;   /* aparece */
  }
  25%, 75% {
    opacity: 0;   /* some */
  }
}

.words {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-right: 20%;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

/* Segunda linha da faixa de abertura, em corpo menor */
.kicker-sub {
  margin-top: .4em;
  font-size: 1.25rem;
  line-height: 1.6rem;
  opacity: .85;
}


/* Quem Somos */
#quem-somos{
  position: relative;
  background-color: #d9d9d9;
  background-size: cover;
}

/* Lazy load do fundo: o JS adiciona a classe quando a seção se aproxima da tela */
#quem-somos.bg-carregado{
  background-image: url(image/hero-quemsomos.jpg);
}

.about{
  position: relative;
  display: flex;
  width: 70%;
  justify-content: space-evenly;
}

.about-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding-top: var(--header-height);
  min-height: var(--tela-h);
}

.title{
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 2rem;
}

.description{
  width: 100%;
  max-width: 440px;
  font-size: 1rem;
  line-height: 1.5rem;
  color:var(--black);
}

.description h3{
  font-size: 1.4375rem;
  padding-bottom: 40px;
}

.description p + p{
  margin-top: 1.5rem;
}

/* Selos: setas ficam no fluxo, alinhadas ao centro do carrossel */
.reconhecimentos {
  width: 100%;
}

.selos-titulo {
  width: 100%;
  margin-bottom: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
}

.selos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-top: 0;
}

.carousel-container {
  --selo: 114px;      /* 5% menor que os 120px originais */
  --selo-gap: 20px;
  position: relative;
  width: 100%;
  /* mostra 6 selos inteiros; o JS gira os itens para o loop infinito */
  max-width: calc(6 * var(--selo) + 5 * var(--selo-gap));
  overflow: hidden;
  padding-block: 12px; /* espaço para a sombra */
  touch-action: pan-y;
}

.carousel {
  display: flex;
  gap: var(--selo-gap);
  will-change: transform;
}

.carousel-item {
  width: var(--selo);
  margin: 0;
  flex-shrink: 0;
}

.selo-img-wrap {
  width: var(--selo);
  height: var(--selo);
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Legenda sob cada selo: publicação / ano / título */
.carousel-item figcaption {
  margin-top: 12px;
  font-size: 0.6875rem;
  line-height: 1.3;
  text-align: center;
  color: var(--black);
  user-select: none;
}

.carousel-item figcaption span {
  display: block;
}

.carousel-item figcaption span:nth-child(2) {
  font-weight: 700;
}

/* "Escritórios Mais Admirados" */
.carousel-item figcaption span:nth-child(3) {
  font-size: 0.5rem;
}

.carousel-item img {
  width: 86px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Setas de navegação */
.arrow {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  line-height: 0;
}

button {
  background: none;
}


/* Atuação */
#atuacao{
  position: relative;
  /* background-image: url(image/hero-atuacao.jpg); */
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}

/* .atuacao{
  font-family: "Roboto", sans-serif;
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--black);
  display: flex;
  align-items:center;
  height: 100%;
  min-height: 820px;
} */

.atuacao{
  font-family: "Roboto", sans-serif;
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--black);
  display: flex;
  flex-direction: row-reverse;
  height: 100%;
  min-height: 820px;
  padding: 8% 0;
}

/* .areas {
  height: 50%;
  width: 100%;
  padding: 5% 0;
  max-width: 541px;
  font-size: 1.25rem;
  color: #0f2320;
  position: relative;
  top: 20%;
  left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
} */

/* Compensa o gutter do .container para a imagem continuar sangrando à esquerda */
.imgAtuacao {
  margin-left: calc(-1 * var(--gutter));
}

.imgAtuacao img {
  margin: 10% 0 0 -22%;
}

.areas h3 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--green);
}

.atua-intro{
  margin-top: 24px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--black);
}

.atua-intro .atua-lead{
  margin-bottom: 1rem;
  font-family: "Roboto", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.9rem;
  color: var(--green);
}

.area-list{
  display:flex;
  flex-direction: column;
  color: var(--green);
  font-size: 1.125rem;
  line-height: 1.4;
  margin-top: 32px;
}

.atua-titulo {
  cursor: pointer;
  padding: 9px 28px 9px 0;
  border-bottom: 1px solid rgba(9, 135, 105, .25);
  background: url(image/arrow-atua.svg) no-repeat right center / 8px auto;
}

.atuaInfotribu p {
  padding: 14px 0 6px;
  line-height: 1.5;
}

.atuaInfotribu{
  display: none;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: normal;
  color: var(--black);
}

.atuaInfotribu ol li::marker {
  color: var(--green);
  font-weight: 500;
}

.atuaInfotribu ol li {
  padding: 1% 0;
}

/* "Fechar" no fim do accordion: só no mobile/tablet (no desktop o texto rola dentro da coluna) */
.atua-fechar {
  display: none;
  width: auto;
  height: auto;
  margin: 10px 0 30px;
  padding: 10px 22px;
  border: 1px solid var(--green);
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}

/* Profissionais */
#profissionais{
  position: relative;
}

.socios{
  position: relative;
  font-family: "Roboto", sans-serif;
  font-size: 1.3125rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-height) + 5%);
  justify-content: flex-end;
  min-height: 100vh;
  background-color: var(--white)
}

.socios h3 {
  font-family: "Roboto", sans-serif;
  color: var(--green);
  font-size: 2rem;
  width: 100%;
  font-weight: 400;
  padding-inline: var(--gutter);
}

.socios-content {
  position: relative;
  display: flex;
  justify-content: center;
  background-color: var(--green);
}

/* Carrossel de profissionais */
.profissionais-viewport {
  width: 100%;
  min-width: 0; /* impede que a largura somada dos slides estique o container */
  overflow: hidden;
}

.profissionais-track {
  display: flex;
  touch-action: pan-y;
}

.profissionais-track img {
  -webkit-user-drag: none;
}

.profissional {
  flex: 0 0 100%;
  min-width: 0;
}

.profissionais-nav {
  position: absolute;
  right: 8%;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
}

.profissionais-nav button {
  width: auto;
  height: auto;
  border: none;
  padding: 5px;
}

.profissionais-nav img {
  display: block;
  height: 36px;
}

.socios-content h4 {
  font-size: 1.6875rem;
  font-weight: 500;
  color: var(--white);
}

.socios-content p {
  font-family: "Roboto", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
}

.socios-content .rotulo {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}

.partner-text{
  background-color: var(--green);
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.partner-img {
  width: 50%;
  height: 750px;
  object-fit: cover;
  background-color: var(--white);
}

.moreInfo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4% 0 0 0;
}

.more {
  flex: 1;
  gap: 20px;
  background-color: var(--green);
  margin: 5% 8%;
  padding-bottom: 60px; /* espaço para as setas do carrossel */
  display: flex;
  flex-direction: column;
}

.more-icons {
  display: flex;
  gap: 2%;
  align-items: center;
}

.more-icons img {
  width: clamp(60px, 10vh, 91px);
  height: auto;
}

/* Logos de instituições: círculo branco no mesmo tamanho dos ícones icom*.png */
.more-icons .icon-logo {
  width: 91px;
  height: 91px;
  border-radius: 50%;
  background-color: var(--white);
  /* padding: 14px; */
  object-fit: contain;
}

/* Logo que já traz o próprio fundo (ex.: Damásio) preenche o círculo */
.more-icons .icon-logo-cover {
  padding: 0;
  object-fit: cover;
}

.moreInfo a {
  overflow-wrap: anywhere; /* URLs longas do LinkedIn não estouram a coluna */
}

/* "Mais info": texto que não cabe na seção fica cortado com fade; o botão libera a rolagem interna */
[data-clamp].is-clamped:not(.is-open) {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 4em), transparent);
  mask-image: linear-gradient(#000 calc(100% - 4em), transparent);
}

[data-clamp].is-open {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.6) transparent;
}

.mais-info {
  align-self: flex-start;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--white);
}

.mais-info[hidden] {
  display: none;
}

/* Contato */
.contato{
  position:relative;
  min-height: calc(var(--tela-h) - var(--footer-height));
  background:var(--grey);
  color:#fff;
  font-size: 1rem;
}

.contato-content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10%;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 40px;
}

.contato-content h3 {
  font-family: "Roboto", sans-serif;
  color: var(--white);
  font-size: 2rem;
  font-weight: 400;
  padding-bottom: 20px;
}

.ico-content{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ico-content img{
  width: 90px;
  height: auto;
}

.contato-container{
  width: 50%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.contato-dados {
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  margin: 20px 0;
  padding: 20px 0;
}

.contato-dados div{
  padding: 10px 0 ;
}

.selo-img{
  width: 190px;
  height: auto;
}

.contato-toogle button{
  width: 100px;
  height: 30px;
  border: 1px solid white;
  font-size: 1rem;
  color: var(--white);
  cursor: pointer;
}

.contato-toogle button:active {
  background-color: #0f2320;
}

.mapa {
  width: 100%;
  height: 550px;
  margin-top: 10px;
  position: relative;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
}

/* Antes do clique: só o endereço e o botão; o Google Maps não é chamado */
.mapa-aviso {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.mapa-carregar {
  width: auto;
  height: auto;
  white-space: nowrap;
  background: none;
  padding: 12px 26px;
  border: 1px solid var(--white);
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
}

.mapa-carregar:hover,
.mapa-carregar:focus-visible {
  background: var(--white);
  color: var(--grey);
}

.mapa-nota {
  font-size: 0.75rem;
  opacity: .8;
}

.mapa-link {
  display: inline-block;
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-container {
  display: flex;
  gap: 10px;
}

button {
  cursor: pointer;
  width: 100px;
  height: 40px;
  border: 2px solid white;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s;
}

.ativo {
  background-color: var(--white);
  color: var(--grey);
}

/* Desktop (notebook e telas maiores): cada seção ocupa exatamente uma tela,
   com o conteúdo dimensionado pela altura disponível */
@media screen and (min-width: 1081px) {
  /* Profissionais */
  .socios {
    height: var(--tela-h);
    min-height: 560px;
    padding-top: calc(var(--header-height) + 2vh);
    justify-content: flex-start;
  }
  .socios h3 {
    padding-bottom: 2vh;
  }
  .socios-content {
    flex: 1;
    min-height: 0;
  }
  .profissionais-track,
  .profissional {
    height: 100%;
  }
  .partner-img {
    height: 100%;
  }
  .more {
    min-height: 0;
    margin: 4vh 8%;
    gap: clamp(10px, 2vh, 20px);
  }
  .more-icons .icon-logo {
    width: clamp(60px, 10vh, 91px);
    height: clamp(60px, 10vh, 91px);
  }
  .moreInfo {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-top: 2vh;
  }

  /* Atuação */
  .atuacao {
    --bleed: calc(var(--gutter) + max(0px, (100vw - var(--max)) / 2));
    height: var(--tela-h);
    min-height: 560px;
    padding-block: calc(var(--header-height) + 3vh) 6vh;
    align-items: center;
    gap: 6%;
  }
  .areas {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .area-list {
    flex: 1;
    min-height: 0;
    margin-top: 3vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--green) transparent;
  }
  .atuaInfotribu {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--green) transparent;
  }
  .imgAtuacao {
    flex: 0 0 auto;
    width: calc(45% + var(--bleed));
    margin-left: calc(-1 * var(--bleed));
  }
  .imgAtuacao img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(var(--tela-h) - var(--header-height) - 12vh);
    object-fit: cover;
    margin: 0;
  }

  /* Contato: seção + footer = uma tela */
  .contato {
    height: calc(var(--tela-h) - var(--footer-height));
    min-height: 480px;
  }
  .contato > .container,
  .contato-content {
    height: 100%;
  }
  .contato-content {
    padding-top: calc(var(--header-height) + 2vh);
    padding-bottom: 4vh;
  }
  .contato-container {
    height: 100%;
    justify-content: center;
  }
  .ico-content img {
    width: clamp(60px, 11vh, 90px);
  }
  .contato-dados {
    margin: 2vh 0;
    padding: 2vh 0;
  }
  .selo-img {
    width: clamp(130px, 22vh, 190px);
  }
  .mapa {
    height: min(550px, calc(100% - 40px));
    margin-top: 0;
  }
}

/* Loader: cobre a página enquanto a tela é identificada e os recursos principais carregam */
.preloader {
  display: none;
}

html.is-loading body {
  overflow: hidden;
}

html.is-loading .preloader,
.preloader.saindo {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--green);
  transition: opacity .6s ease, visibility .6s ease;
}

.preloader.saindo {
  opacity: 0;
  visibility: hidden;
}

.preloader img {
  width: clamp(150px, 18vw, 220px);
  height: auto;
}

.preloader-bar {
  position: relative;
  width: 120px;
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.25);
}

.preloader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--white);
  animation: preloader 1.1s ease-in-out infinite;
}

@keyframes preloader {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-bar::after { animation: none; width: 100%; }
}

/* Para telas a partir de 1080px */
@media screen and (max-width: 1080px) {
  .arrow{
    display: none;
  }
  .kicker{
    justify-content: flex-start;
  }
  .mob {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--gutter);
    background: var(--green);
  }
  .nav {
    display: none;
  }
  .about{
    flex-direction: column;
    width: 100%;
  }
  .about-inner{
    align-items: flex-start;
  }
  .description h3{
    padding-top: 50px;
  }
  #atuacao{
    background-color: #fff;
    background-image: none;
  }
  .atuacao{
    align-items: flex-start;
    height: auto;
  }
  .areas{
    left: 0%;
    position: relative;
    padding-top: 50px;
  }
  .contato{
    min-height: auto;
  }
  .contato-content{
    gap: 50px;
    flex-wrap: wrap;
    height: auto;
 }
 .contato-container{
    width: 100%;
 }
 .contato-content h3{
    padding-top: 50px;
 }
 .mapa{
  height: 400px;
 }
 .ico-content{
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-evenly;
 }
 .socios {
  padding-top: 50px;
  min-height: auto;
 }
 .more {
  margin: 5%;
 }
 .socios-content {
  flex-direction: column;
  margin-top: -1px;
 }
 /* Navegação sobre a foto do profissional (foto tem 450px de altura no mobile) */
 .profissionais-nav {
  top: calc(450px - 64px);
  bottom: auto;
  right: 5%;
  gap: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(9, 135, 105, .85);
 }
 .profissionais-nav img {
  height: 28px;
 }
 .more {
  padding-bottom: 0;
 }
 .partner-text {
  flex-direction: column;
 }
 .partner-img {
  width: 100%;
  height: 450px;
 }
/* Logos de formação: até 4 por perfil, encolhem juntos para caber na largura */
.more-icons {
  gap: 10px;
}
.more-icons img,
.more-icons .icon-logo {
  flex: 0 1 91px;
  min-width: 0;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
}
/* Arrastar para os lados só existe no mobile/tablet */
.carousel-container,
.profissionais-track {
  cursor: grab;
  user-select: none;
}
.carousel-container.arrastando,
.profissionais-track.arrastando {
  cursor: grabbing;
}

.atua-fechar {
  display: inline-block;
}

/* Esconde o bloco inteiro: a margem negativa dele puxava o texto para a borda */
.imgAtuacao {
  display: none;
}

}