/*
 * Diagnósticos, doenças, oportunidades, loja e página 404. Medidas do site atual (Elementor) em 1440, 768 e 390 px.
 */

/* fundo de hexágonos claros com o degradê verde/azul quase transparente por cima (seções do Elementor) */
.sec-hex { position: relative; background: #fff url(../images/transparencia2.png) center center / cover no-repeat; }
.sec-hex::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--verde) 0%, var(--azul) 100%); opacity: .04; pointer-events: none; }
.sec-hex > * { position: relative; }

/* ---------- /diagnosticos: grade de cartões ---------- */
.diag { padding: 100px 0; }
.diag__dentro { max-width: 1120px; margin: 0 auto; }
.diag__titulo { margin: 0 0 50px; font-size: 34px; font-weight: 700; line-height: 1; text-align: center; color: var(--texto); }
.diag__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.diag-cartao { display: flex; flex-direction: column; align-items: flex-start; padding: 66px 30px 22px; border: 1px solid #E9E9E9; border-radius: 6px; background: #fff; }
.diag-cartao__titulo { align-self: stretch; margin: 0 0 20px; font-size: 17px; font-weight: 700; line-height: 1; color: var(--azul); }
.diag-cartao__resumo { margin: 0 0 14px; font-size: 14px; line-height: 21px; color: #777; }
.diag-cartao__mais { font-size: 12px; font-weight: 700; line-height: 30px; color: var(--azul); }

/* ---------- páginas de doença (/osteossarcoma, /patologia/osteossarcoma...) ---------- */
.doenca { padding: 90px 0; }
.doenca__dentro { max-width: 900px; margin: 0 auto; }
.doenca__cartola { display: none; margin: 0 0 15px; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 2px; text-transform: uppercase; text-align: center; color: var(--verde); }
.doenca__titulo { margin: 0 0 50px; font-size: 34px; font-weight: 700; line-height: 1; text-align: center; color: #000; }
.doenca__texto p { margin: 0 0 1.6em; }
.doenca__texto > :last-child { margin-bottom: 0; }
.doenca__botoes { display: flex; margin: 40px 0 0; padding: 0; list-style: none; }
.doenca__botao { width: 33.3%; }
.doenca__botao a { display: flex; flex-direction: column; align-items: center; height: 108px; border-radius: 6px; background: var(--azul); color: #fff; font-size: 20px; font-weight: 700; line-height: 24px; text-align: center; transition: background .3s; }
.doenca__botao a:hover, .doenca__botao a:focus-visible { background: rgba(0, 115, 174, .75); color: #fff; }
.doenca__botao img { display: block; width: 50px; height: 50px; margin-bottom: 8px; }
.doenca__botao span { display: block; align-self: stretch; height: 50px; }
.doenca__botao--sintomas a { margin-right: 40px; }
.doenca__botao--exames a { margin: 0 20px; }
.doenca__botao--tratamento a { margin-left: 40px; }

/* ---------- popups de texto (Sinais e sintomas, Exames, Tratamento) e com formulário (estilo "Mensagem" no
   Admin2; a caixa muda sozinha quando o popup tem um formulário destes) ---------- */
.popup--texto, .popup:has(.form-popup) { color: var(--texto); }
.popup--texto { width: 640px; }
.popup--texto .popup__fechar { top: 5px; right: 5px; width: 35px; height: 35px; font-size: 25px; }
.popup--texto .popup__fechar .ic { width: 25px; height: 25px; }
.popup--texto .popup__texto p { margin: 0 0 1.6em; }
.popup--texto .popup__texto > :last-child { margin-bottom: 0; }

.popup:has(.form-popup) { width: 640px; }
.popup:has(.form-popup) .popup__caixa { padding: 0; }
.popup:has(.form-popup) .popup__conteudo { padding: 30px; max-height: 100vh; }
.popup:has(.form-popup) .popup__fechar { top: 20px; right: 20px; width: 25px; height: 25px; background: transparent; color: var(--azul); font-size: 15px; }
.popup:has(.form-popup) .popup__fechar .ic { width: 15px; height: 15px; }
.popup:has(.form-popup) .popup__titulo { margin: 0 0 20px; font-size: 32px; font-weight: 500; line-height: 1; }

/* formulários dos popups (como o Form do Elementor: campos sem rótulo, metade e metade) */
.form-popup { justify-content: space-between; }
.form-popup .form-field { margin: 0 0 10px; }
.form-popup .form-field.campo--metade { width: calc(50% - 5px); }
.form-popup .form-label { display: none; }
.form-popup input[type=text], .form-popup input[type=email], .form-popup input[type=tel], .form-popup input[type=url], .form-popup select, .form-popup textarea { min-height: 40px; padding: 8px 16px; border: 1px solid #69727D; border-radius: 3px; font-size: 15px; line-height: 21px; color: #1F2124; }
.form-popup select { height: 40px; padding: 5px 20px 5px 14px; font-size: 16px; line-height: 24px; color: var(--texto); }
.form-popup textarea { min-height: 96px; height: 96px; padding: 5px 14px; }
.form-popup .campo--aceite { margin-bottom: 13px; }
.form-popup .campo--aceite .form-label { display: none; }
.form-popup .campo--aceite label { font-size: 16px; line-height: 16px; }
.form-popup .buttons button, .form-popup .buttons .button { padding: 10px 20px; font-size: 15px; font-weight: 500; line-height: 30px; }
.form-popup .form-field--aceite, .form-popup .campo--aceite { width: 100%; }
.campo-arquivo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 30px; }
.campo-arquivo__input { font-size: 16px; line-height: 24px; color: var(--texto); }
.campo-arquivo__estado { margin: 0; font-size: 13px; line-height: 20px; color: #69727D; }
.campo-arquivo__estado:empty { display: none; }
.campo-arquivo__estado.e-erro { color: #d9534f; }

/* ---------- /diagnosticos/modelo-patologia ---------- */
.modelo-pat__topo { margin: 40px 0; text-align: center; }
.modelo-pat__trilha { display: flex; justify-content: center; align-items: center; margin: 0 0 23px; padding-top: 4px; font-size: 12px; font-weight: 500; line-height: 17px; text-transform: uppercase; color: var(--verde); }
.modelo-pat__trilha span { margin-right: 10px; }
.modelo-pat__trilha .modelo-pat__pai, .modelo-pat__trilha span:last-child { margin-right: 20px; }
.modelo-pat__trilha .ic { width: 10px; height: 10px; margin-right: 10px; fill: var(--verde); }
.modelo-pat__titulo { margin: 0; font-size: 34px; font-weight: 700; line-height: 1; color: var(--azul); }
.modelo-pat { padding: 0 0 90px; background: no-repeat bottom center / contain; }
.modelo-pat__dentro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1140px; margin: 0 auto; }
.modelo-pat__foto { margin-right: 15%; padding: 10px; }
.modelo-pat__foto img { display: block; width: 100%; height: auto; margin-bottom: -55px; }
.modelo-pat__texto { padding: 10px; font-size: 14px; line-height: 21px; }
.modelo-pat__texto p { margin: 0 0 1.6em; }
.modelo-pat__texto > :last-child { margin-bottom: 0; }

/* ---------- /oportunidades ---------- */
.oport { padding: 90px 0; }
.oport__dentro { max-width: 1140px; margin: 0 auto; }
.oport__titulo { margin: 0 0 39px; font-size: 34px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--texto); }
.oport__vazio { margin: 0; font-size: 24px; font-weight: 500; text-align: center; }
.oport__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; margin: 0; padding: 0; list-style: none; }
.oport-cartao { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 20px 0; border-radius: 6px; background: #fff; box-shadow: var(--sombra-cartao); }
.oport-cartao__titulo { margin: 0 0 19px; font-size: 17px; font-weight: 700; line-height: 1.2; }
.oport-cartao__titulo a { color: var(--azul); }
.oport-cartao__mais { margin: 0 0 20px; font-size: 12px; font-weight: 700; line-height: 18px; text-transform: uppercase; color: var(--azul); }
.oport-cadastro { padding: 50px 0; background: var(--azul); }
.oport-cadastro__dentro { max-width: 1140px; margin: 0 auto; }
.oport-cadastro__titulo { margin: 0 0 30px; font-size: 34px; font-weight: 700; line-height: 1.2; text-align: center; color: #fff; }
.oport-cadastro__botoes { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; margin: 0; padding: 0 10px 10px; list-style: none; }
.oport-cadastro__botao { display: block; width: 100%; padding: 10px 20px; }
.oport-cadastro__botao:hover, .oport-cadastro__botao:focus-visible { background: #fff; color: var(--verde); }
.oport-fixo { position: fixed; right: 30px; bottom: 30px; z-index: 50; display: flex; align-items: center; gap: 15px; }
.oport-fixo__texto { padding: 5px 10px; border-radius: 10px; background: #fff; color: var(--texto); font-size: 16px; line-height: 24px; }
.oport-fixo__icone { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 26px; transition: color .3s; }
.oport-fixo__icone .ic { width: 26px; height: 26px; }
.oport-fixo:hover .oport-fixo__icone { color: var(--texto); }

/* uma oportunidade */
.oport-pag { max-width: 800px; margin: 0 auto; padding: 90px 0 130px; }
.oport-pag__titulo { margin: 0 0 20px; font-size: 40px; font-weight: 500; line-height: 1; color: var(--texto); }
.oport-pag__texto p { margin: 0 0 1.6em; }
.oport-pag__texto > :last-child { margin-bottom: 0; }
.oport-pag__texto img { max-width: 100%; height: auto; }
.oport-pag__texto img.aligncenter { display: block; margin: 0 auto; }

/* ---------- /loja ---------- */
.loja { max-width: 1140px; margin: 0 auto; padding: 0 10px 100px; }
.loja__titulo { margin: 0 0 80px; padding-top: 100px; font-size: 34px; font-weight: 700; line-height: 1; text-align: center; color: var(--texto); }
.loja__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 110px 20px; align-items: start; margin: 0; padding: 0; list-style: none; }
.produto { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.produto__nome { align-self: stretch; margin: 0 0 20px; font-size: 32px; font-weight: 700; line-height: 1; text-align: center; color: var(--azul); }
.produto__nome--menor { font-size: 24px; }
.produto__foto { display: block; width: 100%; height: auto; margin-bottom: 20px; }
.produto__preco { align-self: stretch; margin: 0 0 20px; font-size: 24px; font-weight: 500; line-height: 1; color: var(--texto); }
.produto__texto { align-self: stretch; margin-bottom: 20px; font-size: 14px; line-height: 21px; color: #777; }
.produto__texto p { margin: 0 0 1.6em; }
.produto__texto > :last-child { margin-bottom: 0; }
.produto__botao { display: inline-block; padding: 10px; border-radius: 6px; background: var(--verde); color: #fff; font-size: 15px; font-weight: 500; line-height: 30px; transition: background .3s; }
.produto__botao:hover, .produto__botao:focus-visible { background: var(--azul); color: #fff; }

/* ---------- página 404 (sem cabeçalho e rodapé) ---------- */
.tpl-error main { overflow: hidden; }
.erro404 { display: flex; align-items: center; min-height: 100vh; background: #fff no-repeat top right / 45% auto; }
.erro404__dentro { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; width: 100%; max-width: 1140px; min-height: 482px; margin: 0 auto; padding: 0 calc(1140px * .066667); }
.erro404__texto { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; margin-right: 53px; padding: 10px; }
.erro404__titulo { margin: 0 0 19px; font-size: 42px; font-weight: 700; line-height: 1.2; color: var(--texto); }
.erro404__botao { display: inline-block; padding: 15px 30px; border-radius: 6px; background: var(--verde); color: #fff; font-size: 16px; line-height: 30px; transition: background .3s; }
.erro404__botao:hover, .erro404__botao:focus-visible { background: var(--azul); color: #fff; }
.erro404__bolha { display: flex; align-items: center; justify-content: center; margin-right: 10px; padding: 10px; background: no-repeat center center / contain; }
.erro404__numero { margin: 0; font-size: 140px; font-weight: 700; line-height: 1; color: #fff; }
.erro404__espaco { height: 100px; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .diag { padding: 50px 20px; }
  .diag__titulo { margin-bottom: 20px; font-size: 36px; }
  .doenca { padding: 50px 40px 50px 20px; }
  .doenca__titulo { margin-bottom: 30px; font-size: 36px; }
  .modelo-pat__titulo { font-size: 36px; }
  .modelo-pat { padding: 0 20px; }
  .modelo-pat__dentro { grid-template-columns: 1fr; }
  .modelo-pat__foto { height: 20px; margin: 0; padding: 0; }
  .modelo-pat__foto img { display: none; }
  .modelo-pat__texto { margin-top: 30px; }
  .oport { padding: 50px 20px; }
  .oport__titulo { margin: -20px 0 44px; }
  .oport__grade { grid-template-columns: repeat(2, 1fr); }
  .oport-cadastro__titulo { margin: -20px 0 55px; }
  .oport-pag { max-width: none; }
  .loja { padding: 0 10px 100px; }
  .loja__titulo { margin-bottom: 50px; padding-top: 10px; font-size: 36px; }
  .erro404 { min-height: calc(100vh + 160px); padding: 60px 0 100px; }
  .erro404__dentro { min-height: 300px; padding: 0 6.6667%; }
  .erro404__texto { margin-right: 32px; }
  .erro404__titulo { margin-bottom: 21px; font-size: 28px; }
  .erro404__botao { padding: 10px 30px; }
  .erro404__numero { font-size: 100px; }
}

/* ---------- celular ---------- */
@media (max-width: 767px) {
  .diag { padding: 50px 40px; }
  .diag__titulo { margin-bottom: 30px; font-size: 24px; }
  .diag__grade { grid-template-columns: 1fr; gap: 20px; }
  .diag-cartao { padding: 56px 20px 13px; }
  .diag-cartao__resumo { margin-bottom: 17px; }
  .diag-cartao__mais { line-height: 20px; }
  .doenca { padding: 50px 20px 30px; }
  .doenca__cartola { display: block; }
  .doenca__titulo { margin-bottom: 20px; font-size: 24px; }
  .doenca__botoes { margin-top: 20px; }
  .doenca__botao { width: 33%; }
  .doenca__botao a { height: 79px; margin: 0 0 20px; font-size: 9px; line-height: 1.2; }
  .doenca__botao img { width: 41px; height: 41px; }
  .doenca__botao span { height: 30px; }
  .doenca__botao--sintomas a { margin-right: 10px; }
  .doenca__botao--exames a { margin: 0 5px 20px; }
  .doenca__botao--tratamento a { margin-left: 10px; }
  .popup--texto, .popup:has(.form-popup) { width: 100vw; max-width: 100vw; }
  .popup--texto .popup__conteudo { padding: 70px 50px; }
  .popup:has(.form-popup) .popup__conteudo { padding: 30px; }
  .popup:has(.form-popup) .popup__titulo { font-size: 32px; }
  .form-popup .form-field.campo--metade { width: 100%; }
  .form-popup .buttons button, .form-popup .buttons .button { font-size: 14px; line-height: 20px; }
  .modelo-pat__topo { margin: 40px 5px; }
  .modelo-pat__trilha { margin-bottom: 13px; }
  .modelo-pat__trilha .modelo-pat__pai, .modelo-pat__trilha span:last-child { margin-right: 0; }
  .modelo-pat__titulo { font-size: 24px; }
  .oport__titulo { margin: 0 0 39px; font-size: 24px; }
  .oport__grade { grid-template-columns: 1fr; gap: 35px; margin: 0 20px; }
  .oport-cadastro__titulo { margin: 0 0 49px; font-size: 24px; }
  .oport-cadastro__botoes { grid-template-columns: 1fr; }
  .loja { padding: 0 30px 160px; }
  .loja__titulo { margin-bottom: 80px; padding-top: 70px; font-size: 34px; }
  .loja__grade { grid-template-columns: 1fr; gap: 0; }
  .produto:nth-child(3n+2) { margin-top: 80px; }
  .produto:nth-child(3n) { margin-top: 20px; }
  .produto:nth-child(3n+1):not(:first-child) { margin-top: 170px; }
  .produto__botao { align-self: center; font-size: 14px; line-height: 20px; }
  .erro404 { display: block; min-height: 0; padding: 0; background-size: 100% auto; }
  .erro404__dentro { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-height: 0; padding: 0; }
  .erro404__bolha { height: 371px; margin: 10px 10px 0; }
  .erro404__texto { align-items: center; margin: 0; padding: 26px 10px 36px; text-align: center; }
  .erro404__titulo { margin-bottom: 20px; }
  .erro404__botao { padding: 10px 20px; font-size: 14px; line-height: 20px; }
}

/* ajustes finos dos formulários dos popups (depois das regras de .form-aboo em secoes.css) */
.form-popup .campo--arquivo { margin-bottom: 14px; }
.form-popup input.campo-arquivo__input { display: inline-block; width: auto; min-height: 0; padding: 0; border: 0; background: transparent; font-size: 16px; line-height: 24px; color: var(--texto); }
.form-popup .campo--aceite .required { display: none; }
.form-popup .campo--aceite { line-height: 16px; }
.form-popup .campo--aceite label.inline { display: inline-block; line-height: 16px; }
.form-popup select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23333' d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 16px; }
