﻿:root{
  --orange:#FF8000;
  --orange-hover:#e67300;
  --navy:#29235C;
  --navy-dark:#0D1F45;
  --navy-deep:#1A2B48;
  --bg:#E8EDFF;
  --bg-soft:#F7F9FC;
  --muted:#475569;
  --line:#E2E6EA;
  --gray-text:#7B7568;
}
.ne-page, .ne-page *{box-sizing:border-box}
.ne-page{
  margin:0;
  font-family:'Roboto',system-ui,-apple-system,sans-serif;
  color:var(--navy);
  background:var(--bg-soft);
  -webkit-font-smoothing:antialiased;
}
.ne-page img{max-width:100%;display:block}
.ne-page a{text-decoration:none}
.ne-page a:not(.mg-btn){color:inherit}
.ne-page button{font-family:inherit;cursor:pointer}

/* ================= HERO ================= */
.hero{
  position:relative;
  background:var(--navy);
  color:#fff;
  padding:340px 0 90px;
  overflow:hidden;
  isolation:isolate;
}
/* Team photo */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -2;
  aspect-ratio: 1440 / 433;
  background: url('../img/quem-somos/nossa-equipe/hero-equipe.webp') center top no-repeat;
  background-size: contain;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
/* Ultrawide: a foto para de crescer em 2560px e fica centrada — acima disso o
   `contain` só a esticava (e o aspect-ratio empurrava a faixa para baixo junto).
   Capar o elemento (e não o background-size) mantém o fade vertical existente
   colado na base da foto. O fade lateral entra como 2ª camada de máscara em
   interseção com o vertical; sem suporte a mask-composite o resultado degrada
   para o comportamento atual (só o fade vertical). */
@media (min-width: 2560px) {
  .hero__bg {
    width: 100%;
    max-width: 2560px;
    margin-inline: auto;
    -webkit-mask-image:
      linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%),
      linear-gradient(90deg, transparent 0, #000 400px, #000 calc(100% - 400px), transparent 100%);
    mask-image:
      linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%),
      linear-gradient(90deg, transparent 0, #000 400px, #000 calc(100% - 400px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-size: 100% 100%, 100% 100%;
    mask-size: 100% 100%, 100% 100%;
  }
}

/* Navy tint + bottom gradient fade */
.hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(180deg, rgba(41,35,92,.45) 0%, rgba(41,35,92,.72) 55%, rgba(41,35,92,.94) 100%);
}
.hero__title{
  font-size:clamp(40px,5vw,64px);
  font-weight:400;
  margin:0 0 40px;line-height:.94;
  text-align:center;
}
.hero__title strong{
  display:block;
  color:#fff;
  font-weight:800;
}
.hero__title span{
  display:block;
  color:var(--orange);
  font-weight:300;
  font-size:.7em;
  line-height:1.05;
  margin-top:8px;
}
.hero__text{
  max-width:440px;
  font-size:15px;line-height:1.6;
  color:rgba(255,255,255,.9);
  margin:0 0 28px;
}
.hero__cta{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--orange);color:#fff;
  padding:15px 28px;border-radius:10px;
  font-weight:600;font-size:16px;
  transition:background .2s,transform .2s,box-shadow .2s;
  box-shadow:0 6px 18px rgba(255,128,0,.28);
}
.hero__cta:hover{background:var(--orange-hover);color:#fff;transform:translateY(-1px)}
.hero__stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}
/* Número ímpar de cards (3): o último ocupa a linha inteira */
.hero__stats .stat-card:last-child:nth-child(odd){grid-column:1/-1}
.stat-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  padding:22px 18px;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px;
  min-height:108px;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.stat-card__value{
  color:var(--orange);
  font-size:38px;font-weight:800;line-height:1;
}
.stat-card__label{
  color:#fff;
  font-size:15px;font-weight:400;
  text-align:center;
}

/* ================= SECTION HEADERS ================= */
.section{padding:72px 0}
.section__header{margin-bottom:40px}
.section__title{
  font-size:clamp(28px,3vw,38px);
  font-weight:800;color:var(--navy);
  margin:0 0 18px;
  line-height:1.1;
}
.section__text{
  font-size:15px;line-height:1.55;color:var(--navy);
  margin:0 0 22px;
}
.section__text--gray{color:var(--gray-text)}
.section__text--black{color:#000000}
.section__text a{
  color:var(--navy);font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--orange);
  text-underline-offset:3px;
  text-decoration-thickness:2px;
  white-space: nowrap;
}
.section__text a:hover{color:var(--orange)}
.section__accent{
  display:block;
  width:96px;height:4px;background:var(--orange);
  margin:0;
}

/* ================= TEAM CARDS ================= */
.team-grid{display:grid;gap:22px}
.team-grid--5{grid-template-columns:repeat(5,1fr)}
/* 3 cards per row, sized like a 5-col card (matches other sections) */
.team-grid--3{
  grid-template-columns:repeat(3, calc((100% - 4 * 22px) / 5));
  justify-content:center;
}

.team-card{
  --team-card-photo-scale:1.015;
  display:flex;flex-direction:column;
  border-radius:14px;overflow:hidden;
  background:var(--navy-dark);
  box-shadow:0 4px 14px rgba(13,31,69,.12);
  transition:transform .25s,box-shadow .25s;
}
.team-card:hover,
.team-card:focus-within{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(13,31,69,.18);
}
.team-card__photo-wrap{
  position:relative;
  aspect-ratio:1/1;
  background:var(--bg);
  overflow:hidden;
}
.team-card__photo{
  width:100%;height:100%;object-fit:cover;
  transform:translateZ(0) scale(var(--team-card-photo-scale));
  transform-origin:center center;
  transition:transform .72s cubic-bezier(.2,.7,.2,1),filter .45s ease,opacity .35s ease;
  will-change:transform;
  backface-visibility:hidden;
}
@media (hover:hover) and (pointer:fine){
  .team-card:hover .team-card__photo,
  .team-card:focus-within .team-card__photo{
    --team-card-photo-scale:1.055;
  }
}
.team-card__body{
  padding:18px 20px 16px;
  display:flex;flex-direction:column;flex:1;
  color:#fff;
}
.team-card__name{
  font-size:15px;font-weight:800;color:#fff;
  margin:0 0 6px;line-height:1.2;
}
.team-card__role{
  font-size:11px;font-weight:500;
  color:rgba(255,255,255,.65);
  letter-spacing:.6px;text-transform:uppercase;
  margin:0 0 5px;line-height:1.3;
  flex:1;
}
.team-card__footer{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:4px;
}
.team-card__linkedin {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color .2s,transform .2s,box-shadow .2s;
  border: 2px solid #f46a01;
}
.team-card__linkedin svg{width:13px;height:13px}
.team-card__linkedin:hover{
  border-color:#0077b5;
  transform:translateY(-1px);
  box-shadow:0 12px 20px rgba(0,119,181,.20);
}
.team-card__linkedin:focus-visible{outline:2px solid #0077b5;outline-offset:2px}
.team-card__linkedin[aria-hidden="true"]{cursor:default}
.team-card__linkedin.is-placeholder{visibility:hidden}
.team-card__link{
  font-size:12px;font-weight:700;color: var(--orange);
  display:inline-flex;align-items:center;gap:4px;
  transition:color .2s;
  background:transparent;border:0;padding:0;cursor:pointer;
  font-family:inherit;text-decoration:none;
}
.team-card__link:hover{color:var(--line)}
.team-empty{
  border:1px solid rgba(41,35,92,.12);
  border-radius:14px;
  background:#fff;
  color:var(--navy);
  padding:20px 24px;
}

/* ================= ADMINISTRATIVO ================= */
.admin-section{
  background:
    radial-gradient(closest-side at 50% 50%, #E2E1F2 0%, #DEDCFF 100%);
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.admin-section::before{
  content:"";
  position:absolute;inset:0;z-index:-1;
  background:url('../img/quem-somos/nossa-equipe/bg-mask-administrativo.svg') center center/cover no-repeat;
  opacity:.9;
  pointer-events:none;
}

/* ================= COMERCIAL ================= */
.com-section{
  background:#fff;
  position:relative;overflow:hidden;
  isolation:isolate;
}
.com-section::before{
  content:"";
  position:absolute;inset:0;z-index:-1;
  background:url('../img/quem-somos/nossa-equipe/bg-mask-comercial.svg') center center/cover no-repeat;
  opacity:.9;
  pointer-events:none;
}
.com-section > .container{position:relative;z-index:1}

/* ================= TEAM MODAL ================= */
.modal-backdrop{display:none!important}
#teamModal{background:rgba(0,0,0,.45)!important}
#teamModal .modal-dialog{
  max-width:1100px;
  width:calc(100% - 32px);
  margin-left:auto;
  margin-right:auto;
}
#teamModal .modal-content{
  border:none;border-radius:10px;
  box-shadow:0 4px 24px rgba(0,0,0,.13);
  padding:36px 40px 32px 40px;
  overflow:visible;
  position:relative;
}
.speaker-photo-wrap{
  position:absolute;
  left:-90px;top:50%;transform:translateY(-50%);
  width:190px;height:190px;
  z-index:2;
  opacity:0;
  transition:opacity .2s;
}
.speaker-photo-circle{
  width:100%;height:100%;
  box-sizing:border-box;
  border-radius:50%;
  border:5px solid var(--orange);
  box-shadow:0 16px 20px -6px rgba(0,0,0,.22);
  overflow:hidden;
}
.speaker-photo-circle img{
  width:100%;height:100%;
  object-fit:cover;display:block;
}
.speaker-linkedin{
  position:absolute;
  bottom:-4px;left:50%;transform:translateX(-50%);
  width:34px;height:34px;
  background:#fff;border-radius:50%;
  border:2px solid #e0e0e0;
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;
  transition:border-color .2s,transform .2s,box-shadow .2s;
  z-index:3;
}
.speaker-linkedin:hover{
  border-color:#0077b5;
  transform:translateX(-50%) translateY(-1px);
  box-shadow:0 12px 20px rgba(0,119,181,.20);
}
.speaker-linkedin svg{width:18px;height:18px}
a#teamModalLinkedin{
  color:#fd810d;
  border-width:2px;
  border-style:solid;
  border-color:#f77902;
}
a#teamModalLinkedin:hover{
  border-color:#0077b5;
  transform:translateX(-50%) translateY(-1px);
  box-shadow:0 12px 20px rgba(0,119,181,.20);
}
a#teamModalLinkedin:focus-visible{outline:2px solid #0077b5;outline-offset:2px}
a#teamModalLinkedin > svg{
  width:14px;
  height:14px;
}
.speaker-body{
  min-height:220px;
  padding-left:130px;
  position:relative;
}
.speaker-name{
  color:var(--orange);
  font-size:32px;font-weight:500;
  line-height:51.2px;
  margin-bottom:2px;
}
.speaker-role{
  color:#444;
  font-size:12px;font-weight:500;
  line-height:19.2px;letter-spacing:1.5px;
  text-transform:uppercase;
  margin-bottom:16px;
}
.speaker-bio{
  color:#444;
  font-size:15px;font-weight:300;
  line-height:25.2px;
  text-align:justify;
  margin-bottom:20px;
}
.speaker-bio p{
  margin:0 0 16px;
}
.speaker-bio p:last-child{
  margin-bottom:0;
}
.speaker-bio__link{
  color:var(--orange);
  text-decoration:none;
  font:inherit;
}
.speaker-bio__link:hover{
  color:var(--orange-hover);
}
.speaker-bio__link--cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.speaker-bio__link--cta::after{
  content:"\2192";
}
.btn-close-custom{
  position:absolute;
  top:16px;right:16px;
  width:32px;height:32px;
  border:2px solid #555;border-radius:50%;
  background:transparent;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:#555;
  font-size:16px;padding:0;
  transition:border-color .2s,color .2s;
  z-index:10;
}
.btn-close-custom:hover{border-color:var(--orange);color:var(--orange)}
.btn-close-custom svg{width:14px;height:14px}
@media (max-width:767.98px){
  #teamModal .modal-content{padding:26px 20px 22px}
  .speaker-photo-wrap{
    position:relative;
    left:0;
    top:0;
    transform:none;
    margin:0 auto 20px;
    width:190px;
    height:190px;
    opacity:1!important;
  }
  .speaker-body{padding-left:0;text-align:center}
  .speaker-bio{text-align:left}
}
@media (max-width:575.98px){
  .speaker-photo-wrap{width:160px;height:160px}
}

.link-fab{
  background:#ff8c00;
  border-radius:50px;
  padding:14px 24px;
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  box-shadow:0 4px 8.9px rgba(0,0,0,.32);
  border:0;
  cursor:pointer;
  color:#1a2e5a;
  text-align:left;
  font-family:'Roboto',system-ui,-apple-system,sans-serif;
  font-size:13.6px;
  line-height:21.76px;
  letter-spacing:.5px;
  font-weight:700;
  text-transform:uppercase;
  white-space:nowrap;
}
.link-fab:hover{background:#ff981a}
.link-fab:focus-visible{outline:2px solid #ffffff;outline-offset:2px}
.fale-com-um-especialista{
  color:#1a2e5a;
  text-align:left;
  font-family:'Roboto',system-ui,-apple-system,sans-serif;
  font-size:13.6px;
  line-height:21.76px;
  letter-spacing:.5px;
  font-weight:700;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  white-space:nowrap;
}
.link-fab--floating{
  position:fixed;
  right:18px;
  bottom:120px;
  z-index:1030;
}
@media (max-width:575.98px){
  .link-fab--floating{right:12px;bottom:104px}
  .link-fab{padding:12px 18px}
}

/* ================= RESPONSIVE ================= */
@media (max-width:1199.98px){
  .team-grid--5{grid-template-columns:repeat(4,1fr)}
  .team-grid--3{grid-template-columns:repeat(3, calc((100% - 3 * 22px) / 4))}
}
@media (max-width:991.98px){
  .hero{padding:60px 0 72px}
  .hero__stats{margin-left:0;max-width:none}
  .team-grid--5{grid-template-columns:repeat(3,1fr)}
  .team-grid--3{grid-template-columns:repeat(3,1fr)}
  .section{padding:56px 0}
}
@media (max-width:767.98px){
  .hero__stats{grid-template-columns:repeat(2,1fr);gap:12px}
  .stat-card{padding:18px 14px}
  .stat-card__value{font-size:30px}
  .team-grid--5{grid-template-columns:repeat(2,1fr)}
  .team-grid--3{grid-template-columns:repeat(2,1fr)}
  .section__title{font-size:26px}
}
/* "Ver mais especialistas": só existe no celular (nossa-equipe-main.js). */
.team-mais{display:none}
@media (max-width:575.98px){
  /* 2 colunas (antes 1 coluna com foto de ~330px: ~50 pessoas viravam 28.000px de página). */
  .team-grid--5,
  .team-grid--3{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .team-card__body{padding:12px 12px 12px}
  .team-card__name{font-size:14px}
  .team-card__role{font-size:10.5px;letter-spacing:.3px}
  .team-card__footer{flex-wrap:wrap;gap:6px}
  .team-card.is-mais-oculto{display:none}
  .team-mais:not([hidden]){display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:24px}
  .team-mais__status{margin:0;font-size:13px;color:#666}
  .team-mais__btn{
    width:100%;max-width:340px;min-height:48px;
    border:1px solid var(--navy-dark);border-radius:6px;
    background:#fff;color:var(--navy-dark);
    font-size:15px;font-weight:700;font-family:inherit;
    transition:background-color .2s,color .2s;
  }
  .team-mais__btn:hover,
  .team-mais__btn:focus-visible{background:var(--navy-dark);color:#fff}
  .hero__title{font-size:44px}
}

@supports (content-visibility: auto){
  .team-card{
    content-visibility:auto;
    contain-intrinsic-size:430px;
  }
}
