/* Alfa Implantes Cirúrgicos — site institucional
   Cores do manual da marca: Azul Alfa #0082C6 · Azul claro #00AFEF · Grafite #373435 */

:root {
  --azul: #0082C6;
  --azul-claro: #00AFEF;
  --grafite: #373435;
  --grafite-suave: #5f5c5d;
  --marinho: #0A3050;
  --nevoa: #EEF5FA;
  --linha: #D8E4EC;
  --branco: #ffffff;

  --display: "Barlow Condensed", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --texto: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --largura: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--gutter); }

.pular { position: absolute; left: -9999px; top: 0; background: var(--azul); color: #fff; padding: .6rem 1rem; z-index: 100; }
.pular:focus { left: 1rem; top: 1rem; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--grafite); margin: 0; line-height: 1.05; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 300; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--grafite-suave); max-width: 34em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--texto); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--azul); transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-cheio { background: var(--azul); color: #fff; }
.btn-cheio:hover { background: #006fa9; border-color: #006fa9; }
.btn-linha { background: transparent; color: var(--azul); }
.btn-linha:hover { background: var(--azul); color: #fff; }
.btn-claro { background: #fff; color: var(--marinho); border-color: #fff; }
.btn-claro:hover { background: var(--azul-claro); border-color: var(--azul-claro); color: #fff; }
.btn-contorno-claro { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-contorno-claro:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Cabeçalho ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topo.rolou { border-bottom-color: var(--linha); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 84px; }
.topo .marca img { height: 54px; width: auto; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn) { color: var(--grafite); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover, .menu a[aria-current="page"] { border-bottom-color: var(--azul-claro); }
.menu .btn { padding: .6rem 1.15rem; }
.abrir-menu { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--grafite); }
.abrir-menu svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .abrir-menu { display: block; }
  .menu { position: fixed; inset: 84px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--linha); box-shadow: 0 20px 40px -20px rgba(10,48,80,.25); display: none; }
  .menu.aberto { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--linha); }
  .menu .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero .wrap { position: relative; z-index: 2; }
.hero-texto { max-width: 36rem; padding: clamp(4rem, 10vw, 8rem) 0 clamp(4.5rem, 10vw, 8rem); }
.hero h1 {
  font-weight: 300; font-size: clamp(3.6rem, 9vw, 7.6rem); line-height: .9; letter-spacing: -0.02em;
  color: var(--azul); max-width: 7ch; margin-bottom: 2.2rem;
}
.hero .lead { margin-bottom: 2.2rem; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: .8rem; }

/* imagem de capa: metade direita, dissolvendo no branco à esquerda */
.hero-foto { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 60%; }
.hero-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 14%, rgba(0,0,0,.45) 36%, #000 62%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 14%, rgba(0,0,0,.45) 36%, #000 62%);
  animation: surge 1.1s cubic-bezier(.2,.7,.1,1) both;
}
.hero-foto.foco-esquerda img { object-position: left center; }
.hero-foto.foco-direita img { object-position: right center; }
@keyframes surge { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-foto img { animation: none; } }

@media (max-width: 860px) {
  .hero.com-foto { display: flex; flex-direction: column; }
  .hero-foto { position: relative; width: 100%; height: 260px; }
  .hero-foto img {
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero.com-foto .hero-texto { padding-top: 1rem; }
}

/* faixa de contato */
.faixa { background: var(--marinho); color: #fff; }
.faixa .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.faixa a, .faixa div.item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.6rem 1.5rem 1.6rem 0; color: #fff; text-decoration: none; }
.faixa .item + .item { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.14); }
.faixa svg { width: 22px; height: 22px; flex: none; color: var(--azul-claro); margin-top: .15rem; }
.faixa small { display: block; font-size: .85rem; color: rgba(255,255,255,.62); }
.faixa strong { font-weight: 500; }
.faixa a:hover strong { text-decoration: underline; text-decoration-color: var(--azul-claro); text-underline-offset: 4px; }
@media (max-width: 860px) {
  .faixa .wrap { grid-template-columns: 1fr; }
  .faixa .item + .item { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .faixa a, .faixa div.item { padding: 1.1rem 0; }
}

/* ---------- Seções ---------- */
.secao { padding: clamp(4rem, 9vw, 7rem) 0; }
.secao-nevoa { background: var(--nevoa); }
.cabeca-secao { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.cabeca-secao p { max-width: 32em; margin: .9rem 0 0; color: var(--grafite-suave); }

/* Quem somos */
.sobre { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); }
.sobre h2 { position: sticky; top: 120px; }
.sobre .texto p { font-size: 1.15rem; max-width: 36em; }
.fatos { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 1.5rem; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--linha); }
.fatos dt { font-size: .9rem; color: var(--grafite-suave); margin-bottom: .3rem; }
.fatos dd { margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.15; color: var(--grafite); }
@media (max-width: 860px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre h2 { position: static; }
  .fatos { grid-template-columns: 1fr; }
}

/* Especialidades */
.especialidades { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha); }
.especialidades li { border-bottom: 1px solid var(--linha); }
.especialidades a { display: grid; grid-template-columns: 56px 5fr 6fr auto; gap: 2rem; align-items: center; padding: 1.8rem 0; text-decoration: none; color: inherit; }
.especialidades .placa { width: 56px; height: 56px; object-fit: contain; }
.especialidades h3 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 300; transition: color .15s; }
.especialidades p { margin: 0; color: var(--grafite-suave); }
.especialidades .qtd { font-weight: 600; color: var(--azul); white-space: nowrap; }
.especialidades a:hover h3 { color: var(--azul); }
@media (max-width: 760px) { .especialidades a { grid-template-columns: 44px 1fr; gap: .4rem 1rem; } .especialidades .placa { width: 44px; height: 44px; grid-row: span 3; align-self: start; } }

/* Produtos */
.grade-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2.5rem 2rem; }
.produto { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.produto .foto { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--linha); border-radius: 6px; display: grid; place-items: center; overflow: hidden; margin-bottom: 1rem; transition: border-color .15s; }
.secao-nevoa .produto .foto { border-color: transparent; }
.produto .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.produto .foto .sem-foto { width: 38%; opacity: .25; }
.produto .de { font-size: .9rem; color: var(--grafite-suave); }
.produto h3 { font-size: 1.5rem; margin-top: .2rem; }
.produto:hover .foto { border-color: var(--azul-claro); }
.produto:hover h3 { color: var(--azul); }

/* Marcas */
.marcas { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem 4rem; }
.marcas a, .marcas span { display: block; }
.marcas img { height: 56px; width: auto; max-width: 240px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.marcas a:hover img { filter: none; opacity: 1; }
.marcas .nome-marca { font-family: var(--display); font-size: 1.8rem; color: var(--grafite-suave); }

/* Contato */
.contato { background: var(--marinho); color: rgba(255,255,255,.85); }
.contato h2 { color: #fff; }
.contato .grade { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.contato .lead { color: rgba(255,255,255,.75); margin-top: 1rem; }
.contato dl { margin: 2.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.contato dl .largo { grid-column: 1 / -1; }
.contato dt { font-size: .9rem; color: var(--azul-claro); margin-bottom: .2rem; }
.contato dd { margin: 0; font-size: 1.15rem; color: #fff; }
.contato dd a { color: #fff; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
.contato .acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; }
@media (max-width: 520px) { .contato dl { grid-template-columns: 1fr; } }
.mapa { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: 6px; background: #0d3a60; }
@media (max-width: 860px) { .contato .grade { grid-template-columns: 1fr; } }

/* ---------- Páginas internas ---------- */
.pagina-topo { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.pagina-topo h1 { font-weight: 300; font-size: clamp(2.8rem, 7vw, 5rem); color: var(--azul); }
.migalhas { font-size: .9rem; color: var(--grafite-suave); margin-bottom: 1.2rem; }
.migalhas a { color: var(--grafite-suave); }

.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 0; }
.filtros a { text-decoration: none; color: var(--grafite); border: 1px solid var(--linha); padding: .45rem 1rem; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.filtros a:hover { border-color: var(--azul); color: var(--azul); }
.filtros a[aria-current="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.filtros .rotulo { align-self: center; color: var(--grafite-suave); font-size: .9rem; margin-right: .3rem; }

.vazio { padding: 3rem 0; color: var(--grafite-suave); }

.detalhe { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: clamp(4rem, 8vw, 6rem); }
.detalhe .foto-grande { background: #fff; border: 1px solid var(--linha); border-radius: 6px; padding: 1.5rem; display: grid; place-items: center; aspect-ratio: 1 / 1; }
.detalhe .foto-grande img { max-height: 100%; object-fit: contain; }
.detalhe .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.2rem; font-size: .95rem; }
.detalhe .meta a { font-weight: 600; text-decoration: none; }
.detalhe h1 { font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--grafite); margin-bottom: 1.2rem; }
.detalhe .descricao ul { padding-left: 1.2rem; margin: 0 0 1em; }
.detalhe .descricao li { margin-bottom: .35rem; }
.detalhe .acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--linha); }
@media (max-width: 860px) { .detalhe { grid-template-columns: 1fr; } }

.texto-legal { max-width: 44em; padding-bottom: 5rem; }
.texto-legal h2 { font-size: 1.8rem; margin: 2rem 0 .8rem; font-weight: 400; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--nevoa); padding: 3rem 0 2rem; font-size: .95rem; }
.rodape .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 3rem; align-items: center; }
.rodape img { height: 64px; width: auto; }
.rodape address { font-style: normal; color: var(--grafite-suave); }
.rodape nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.rodape nav a { color: var(--grafite); text-decoration: none; }
.rodape nav a:hover { color: var(--azul); }
.rodape .final { grid-column: 1 / -1; border-top: 1px solid var(--linha); padding-top: 1.5rem; color: var(--grafite-suave); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .rodape .wrap { grid-template-columns: 1fr; } }

/* botão flutuante de WhatsApp */
.whats { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.whats svg { width: 30px; height: 30px; }

.pagina-topo + .secao { padding-top: 1.5rem; }
.pagina-topo .lead a { font-weight: 500; }
