@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: auto; /* não fixe altura */
  min-height: 100%; /* pelo menos altura da tela */
  overflow-x: hidden; /* só impede rolagem horizontal */
  overflow-y: auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.head {
  display: block;
}

.head-mobile {
  display: none;
}

/* ------ TEXTOS ------ */

.titulo {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 2rem;
}

p {
  font-size: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.cabecalho0 {
  position: fixed;
  left: 0;
  width: 100%;
  height: 110px;
  background-color: #036d00;
  padding: 5px 10% 0 10%;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 10px rgba(49, 46, 46, 0.512);
  z-index: 20;
  display: flex;
}

.cabecalho0 .logo-amarelo {
  width: 90px;
}

.conteudo0 {
  width: 100%;
  height: 100%;
  display: flex;
  margin-bottom: -10px;
  text-align: center;
  justify-content: center;
}

.conteudo0 .menu0 {
  display: flex;
  width: 100%;
  height: 90%;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
}

.conteudo0 .menu0 a img {
  display: flex;
  width: 35px;
  margin-right: 10px;
  background: #036d00;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.conteudo0 .menu0 a:nth-child(4) {
  display: flex;
  width: 220px;
  padding: 5px 5px 5px 6px;
  color: #ffffff;
  margin-left: auto;
  margin-right: 10px;
  border-radius: 30px;
  background: #edb300;
  align-items: center;
  text-align: center;
}

.conteudo0 .menu0 a:hover:nth-child(4) {
  opacity: 0.79;
  color: #ffffff;
}

.cabecalho0 .conteudo0 .menu0 .activo {
  margin-left: 0;
  border-bottom: solid #f3ba0f;
  width: 40px;
}

.conteudo0 .menu0 a {
  color: #edb300;
  margin-left: 15px;
  padding-bottom: -10px;
  cursor: pointer;
  font-size: 18px;
}

.conteudo0 .menu0 a:hover {
  color: #ffc404;
}
.conteudo0 .menu0 a:nth-child(2) {
  margin: 0 25px 0 25px;
  display: flex;
  align-items: center;
  text-align: center;
  background: transparent;
}

main {
  padding-top: 20px;
}
main .imagem-conteudo {
  width: 100%;
  height: 38vw;
  background: #036d00;
  position: relative; /* necessário para posicionar o conteúdo */
  overflow: hidden;
}

/* IMAGEM */
main .imagem-conteudo .foto img {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* preenche sem distorcer */
}

/* CONTEÚDO SOBRE A IMAGEM */
main .imagem-conteudo .conteudo p {
  position: absolute; /* coloca sobre a imagem */
  width: 80%;
  top: 65%;
  left: 50%;
  justify-content: center;
  transform: translate(-50%, -50%); /* centraliza perfeitamente */
  text-align: center; /* centraliza o texto */
  color: #edb300;
  font-size: 4.2rem;
  font-weight: 480;
}

/* Sublinhado amarelo */
main .imagem-conteudo .conteudo p span {
  position: relative;
}

main .imagem-conteudo .conteudo p span::after {
  content: "";
  position: absolute;
  bottom: 12px; /* distância do texto */
  left: 0;
  bottom: -25px;
  width: 100%; /* comprimento da linha */
  height: 5px; /* espessura da linha */
  background: #edb300; /* amarelo da imagem */
  border-radius: 10px;
}

/* Estilo dos icones de comunicaçao que se encontram por baixo da imagem principal */
main .comunicacao { 
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 20%;
}

main .comunicacao .contactos {
  display: flex;
  width: 85%;
  height: auto;
  margin: 25px auto; 
  justify-content: center;
  align-items: center;
  background: #ffffff;
}

main .comunicacao .contactos .primeiro, .segundo, .terceiro {
  display: flex;
  width: 35%;
  height: auto;
  justify-content: center;
  align-items: center;
}

main .comunicacao .contactos  .img1, .img2, .img3{
  display: flex;
  width: 25%; 
  height: auto; 
  padding: 10px; 
  margin: 28px;
  border-radius: 50%;
  text-align: center;
  justify-content: center;
  background: #036d00;
}

main .comunicacao .contactos  .img1:hover, .img2:hover, .img3:hover{
  opacity: 0.7;
}

main .comunicacao .contactos  span, h3{ 
 font-size: 2.2rem;
}

main .comunicacao .contactos p{
 font-size: 1.2rem;
 color: #646464;
}

/* FORMULÁRIO DE CONTÁCTOS */
main .formulario{
  display:grid;
  width: 80%;
  height: auto;
  padding: 2% 5% 1% 5%;
  margin: 50px auto; 
  border-radius: 16px;
  background: #036d00;
}

main .formulario h1{
  width: 80%;
  font-size: 3.2rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #ffffff;
}

main .formulario span{
  width: 80%;
  color: #edb300;
}

/* para os dois primeiros inputs que se encontram um ao lado do outro  */
main .formulario .dois-inputs{
  display: flex;
  width: 100%;
  height: 120px;
  gap: 30px;
  margin: 10px 0;
  color: #ffffff; 
  justify-content: center; 
}

main .formulario .dois-inputs input{
  display: flex;
  height: 50px;
  width: 100%;
  margin: 10px 10px;
  border: none;
  padding: 5%;
  border-radius: 50px; 
}
main .formulario .dois-inputs label{
  color: #ffffff;
  font-size: 1.4em;
}

main .formulario .dois-inputs .primeiro{
  display: block;
  height: 50px;
  width: 100%; 
  margin: 10px 10px;
  border: none; 
  border-radius: 50px;
  color: #000000;
}

main .formulario .dois-inputs .segundo{
  display: block;
  height: 50px;
  width: 100%; 
  margin: 10px 10px;
  border: none; 
  border-radius: 50px;
  color: #000000;
}

main .formulario .caixa-mensagem{
  display: block;
  width: 100%;
  height: 220px; 
}

main .formulario .caixa-mensagem  label{
  color: #ffffff; 
  font-size: 1.4em;
} 
main .formulario .caixa-mensagem textarea{ 
  display: block;
  width: 100%; 
  height: 160px; 
  margin: 1% auto;
  padding: 2%;
  border-radius: 16px;
}

/* BOTÃO DE ENVIO DO FORMULARIO */
main .formulario i{ 
  padding: 5px;
  width: 34px;
  height: 34px;
  margin: 0 0 0 -1px;
  color: #ffffff;
  border-radius: 50%;
  background: #036d00;
}

main .formulario .botao button{ 
  display: block;
  width: 17%;
  margin: 1% 0;
  padding: 6px; 
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  align-items: center;
  border-radius: 50px;
  justify-content: start;  
  background: #a18b00;
} 
main .formulario .botao:hover {
  opacity: 0.9;
}

/* MAPA PARA LOCALIZAÇÃO DA ESCOLA */
#mapa {
  margin: 5% auto;
  width: 90%;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
}




/* SUB RODAPÉ COM INFORMACOES ESCOLAR */

.endereco {
  width: 100%;
  line-height: 1.5;
  color: #036d00;
  padding-bottom: 80px;
  text-align: center;
  justify-content: center;
  background: #d1e5d1;
}

.endereco img {
  width: 16%;
  margin: auto;
  padding: 2%;
  justify-content: center;
  align-items: center;
}

.endereco p {
  font-size: 25pt;
  line-height: 1.5;
}


/* Rodapé */

.rodape {
  flex: 1 1 100vw;
  margin: 0;
  justify-content: center;
  padding: 10px;
  border: none;
  color: #ffffff;
  background-color: #a18b00;
  text-align: center;
}
