/* === COMPONENTES: TOPO DO SITE === */
section.topo-do-site {
  padding: 40px 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
}

section.topo-do-site .flex {
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.topo-do-site .txt-topo-site {
  max-width: 50%;
  text-align: left;
}

.topo-do-site .txt-topo-site h1 {
  font-size: 41px;
  line-height: 45px;
  color: var(--cor-texto);
}

.topo-do-site .txt-topo-site h1 span {
  color: var(--cor-destaque);
  display: inline-block;
}

.topo-do-site .txt-topo-site p {
  margin: 20px 0;
  max-width: 500px;
  color: var(--cor-texto);
}

.topo-do-site .img-topo-site {
  width: 50%;
  display: flex;
  justify-content: center;
}

.topo-do-site .img-topo-site img {
  max-width: 70%;
  height: auto;
  animation: flutuar 2s ease-in-out infinite alternate;
}

/* === COMPONENTES: ESPECIALIDADES === */
section.especialidades {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  justify-content: flex-start; 
  padding-top: 50px;          
  padding-bottom: 80px;      
  
  align-items: center;
  padding-left: 4%;
  padding-right: 4%;
}

section.especialidades .flex {
  gap: 30px;
}

.especialidades .especialidades-box {
  color: var(--cor-texto);
  padding: 30px;
  border-radius: 40px;
  border: var(--border-box); 
  margin-top: 45px;
  transition: var(--transition-padrao);
  flex: 1;             
  min-width: 280px;    
}

.especialidades .especialidades-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--cor-destaque);
}

.especialidades .especialidades-box i {
  font-size: 90px;
  color: var(--cor-destaque);
}

.especialidades .especialidades-box h3 {
  font-size: 28px;
  margin: 10px 0;
}

/* === COMPONENTES: SOBRE === */
section.sobre {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 4%;
}

section.sobre .flex {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sobre .txt-sobre {
  color: var(--cor-texto);
}

.sobre .txt-sobre h2 {
  font-size: 40px;
  line-height: 40px;
  margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
  color: var(--cor-destaque);
  display: inline;
}

.sobre .txt-sobre p {
  margin: 20px 0;
  text-align: left;
  line-height: 1.6;
  max-width: 600px;
}

.img-sobre img {
  width: 100%;
  height: auto;
}

/* BOTOES SOCIAIS */
.btn-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-social button {
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* === COMPONENTES: PORTFÓLIO === */
section.portfolio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  
  padding-top: 130px;          
  padding-bottom: 80px;        
  align-items: center;
  padding-left: 4%;
  padding-right: 4%;
  box-shadow: 0 0 40px 10px var(--cor-destaque); 
  transition: box-shadow 0.3s ease;
  z-index: 1;
  position: relative;
}

section.portfolio .flex {
  justify-content: space-around;
  margin-top: 60px;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}


section.formulario {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  padding-top: 70px;         
  padding-bottom: 80px;
  align-items: center;
  padding-left: 4%;
  padding-right: 4%;
}

.img-port {
  width: 100%; 
  max-width: 360px;      
  min-width: 250px;      
  aspect-ratio: 3/4;    
  
  background-size: cover;
  background-position: 100% 0%;
  transition: background-position 5s ease-in-out, transform 0.3s ease; 
  cursor: pointer;
  border-radius: 40px;
  position: relative;
  flex: 1 1 250px;        
}


.img-port:hover {
  background-position: 100% 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: white;
  opacity: 0;
  transition: 0.5s;
}

.overlay:hover {
  opacity: 1;
}

/* === COMPONENTES: FORMULÁRIO === */
form {
  max-width: 500px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input,
form textarea {
  width: 100%;
  background-color: var(--bg-input); 
  border: var(--border-input);      
  outline: 0;
  padding: 20px 15px;
  border-radius: 15px;
  color: var(--color-input-text);   
  font-size: 18px;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

form textarea {
  height: 200px;
  resize: none;
}

form .btn-enviar {
  margin-top: 20px;
  text-align: center;
}

form .btn-enviar button {
  width: 200px;
}

#statusMensagem {
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Scroll Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--cor-destaque);
  color: #000;
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
  transition: all 0.4s cubic-bezier(.48,1.2,.44,.93);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 6px 18px var(--cor-destaque);
}

/* === CONTAINER DO BOTÃO VOLTAR (Páginas Legais) === */
.voltar-container {
  text-align: right;
  margin: 20px 0; 
}

/* === EFEITO SMOKE (FUMAÇA/DEGRADÊ) === */
.smoke-top,
.smoke-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 150px; 
  pointer-events: none; 
  z-index: 2; 
}

.smoke-top {
  top: 0;
  background: linear-gradient(to bottom, var(--cor-fundo), transparent);
}

.smoke-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--cor-fundo), transparent);
}
.smoke-top,
.smoke-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 150px; 
  pointer-events: none; 
  z-index: 2; 
}

/* Centraliza o widget do Turnstile */
.cf-turnstile {
  align-self: center;
  margin-bottom: 0px; 
}