@import url("https://fonts.googleapis.com/css2?family=Merriweather&family=Oswald:wght@600;700&display=swap");
/* font importada da internet */

*,
*::after,
*::before {
  box-sizing: border-box;
}

html {
  font-size: 18px; /* '!important' ex: "18px!important" ,, pode ser usado para fazer uma regra prevalecer, ainda que seja menos especifica*/

  /* usando uma variável no CSS */
  --fontebase: 18px; /* declaração da variável*/
  font-size: var(--fontebase); /* recuperação da variável*/

  /* como foi utilizado ancora na pagina (NAVEGAÇÃO DE UMA PÁGINA), com esses atributos faz que a pagina seja exibida a baixo do menu-fixado  */
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Merriweather", serif;
  background-color: #252a37;
}

/* para deixar o site responsivo */
img,
iframe,
video {
  max-width: 100%;
}

h1 {
  font-family: "Oswald", sans-serif;
  font-size: 2rem; /* rem> relativo ao elementos raiz (3rem) 3*18 que está atribuida como fonte padrão da tag html*/
}

header {
  background-color: #252a37;
  text-align: center;
  position: sticky;
  top: 0;
  padding-bottom: 0.4rem;
  margin-top: -20px;
}

div img {
  border-radius: 30px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}
nav a {
  text-decoration: none;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: normal;
  padding: 0.5rem 0.6rem; /* aumenta area de clique*/
  transition: all 0.8s;
  border-radius: 12% 12%;
}
nav a:hover {
  color: rgb(255, 238, 60);
  background-color: rgb(116, 111, 111);
}
main,
section {
  height: 73vh;
  display: flex;
  align-items: center; /* alinha conteudo na vertical */
  margin: 0;
}
.conteudo {
  width: 90%;
  margin: auto;
  max-width: 800px;
}

.conteudo h1,
.conteudoP1 h1 {
  text-transform: uppercase; /*passa o conteudo p/maiusculo */
  font-family: "Oswald", sans-serif;
  /* font-size: 3rem; */
  margin-bottom: 1rem;
}

.mgnTop {
  margin-top: 20px;
  margin-bottom: 0px;
}

.cta {
  font-family: "Oswald", sans-serif;
  text-decoration: none;
  font-size: 0.45rem;
  font-weight: 600;
  background-color: rgb(160, 132, 149);
  padding: 1.15rem 1.8rem;
  line-height: 5.5rem; /* altura/espaço entre as linha */
  color: #000;
  letter-spacing: 3px; /* controla o espaço entre as letras/caracteres */
  text-transform: uppercase;
  border-radius: 5px;
  margin-left: 10px;
}
.topo {
  font-family: "Oswald", sans-serif;
  text-decoration: none;
  font-size: 0.4rem;
  font-weight: 600;
  background-color: rgb(160, 132, 149);
  padding: 0.3rem 0.15rem;
  line-height: 2.5rem; /* altura/espaço entre as linha */
  color: #000;
  letter-spacing: 3px; /* controla o espaço entre as letras/caracteres */
  text-transform: uppercase;
  border-radius: 5px;
}
.cta::before {
  content: "+";
  margin-right: 0.8rem;
}
.topo:hover::before {
  margin-right: 0.8rem;
}
.cta:hover,
.topo:hover {
  background-color: #464749;
}
.verde-agua {
  background-color: #87bdbc;
  color: #fff;
}
.btnZap {
  position: fixed;
  width: 70px;
  height: 55px;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Botão flutuante indicativo */
.btnIndc {
  position: fixed;
  bottom: 140px;
  right: 90px;
  width: 80px;
  height: 80px;
  cursor: pointer;
  z-index: 1000;
  animation: flutuar 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.btnIndc:hover {
  transform: scale(1.1);
}

/* Animação de flutuação */
@keyframes flutuar {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Imagem dentro do botão */
.btnIndc img {
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

/* Tooltip para orientação */
.btnIndc::after {
  content: "Clique nas fotos!";
  position: absolute;
  bottom: 100%;
  right: 50%;
  transform: translate(50%, -10px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.btnIndc:hover::after {
  opacity: 1;
}

.btnIndc {
  opacity: 0;
  animation: fadeIn 1s forwards 1s, flutuar 3s ease-in-out infinite 2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pMsg {
  background-color: #252a37;
  text-decoration: none;
  color: white;
  border-radius: 10px 5px 25px 5px;
  font-family: cursive;
  padding: 10px;
  margin-left: 0;
  margin-right: 10%;
}
.pMsg:hover {
  background-color: #3a435a;
}

#historia {
  background-image: url(img-ofc/historia/cave-min.jpg);
  background-size: cover; /*cover -> cobre toda area fundo*/
  background-position-x: center; /*centraliza a imagem no eixo 'x' -> na horizontal */
  color: rgba(111, 113, 129, 0.685);
  text-shadow: rgb(235, 118, 118) 3px 3px 8px;
}
#homenagem {
  background-image: url(img-ofc/homenagem/homenagem-min.jpg);
  color: rgb(169, 216, 94);
  text-shadow: rgb(232, 235, 69) 3px 3px 8px;
}
#acaosocial {
  background-image: url(img-ofc/acaosocial/acaosocial-min.jpg);
  background-size: cover;
  background-position-x: cover;
  color: rgb(219, 219, 219);
  text-shadow: rgb(235, 118, 118) 3px 3px 8px;
}
#amizade {
  background-image: url(img-ofc/amizade/amz-min.jpg);
  color: rgb(71, 85, 49);
  text-shadow: rgb(207, 135, 41) 3px 3px 8px;
}
#contato {
  background-image: url(img-ofc/contato/contato-min.jpg);
  color: rgb(169, 216, 94);
  text-shadow: rgb(232, 235, 69) 3px 3px 8px;
}
/* fixa o fundo para os id's selecionados */
#historia,
#acaosocial {
  background-attachment: fixed;
}

.textoHmg {
  color: black;
}
.textoAmz {
  color: rgb(233, 233, 233);
}
.texto {
  text-shadow: rgb(166, 182, 129) 3px 3px 8px;
  color: rgb(73, 62, 62);
}

.conteudo {
  width: 50%;
  max-width: 800px;
  margin: 0;
  margin-left: 4rem;
}

.flex {
  display: flex;
  justify-content: space-around;
}
.face,
.linkedin {
  width: 6%;
  height: 25px;
  margin-top: 30px;
}
.face {
  margin-left: 0;
}
.linkedin {
  margin-left: -10px;
}
footer img {
  border-radius: 15px;
}
.rodape {
  margin-right: 5%;
  font-size: 15px;
}

/* História P1 */
.conteudoP1 {
  margin-top: 10px;
  padding-right: 120px;
  color: #ad73d1;
  text-align: right;
}
.historiapP1 {
  color: #fff;
  margin-left: 50%;
}

.historiaP1Link {
  margin-top: 20px;
  margin-left: 10px;
  height: 500px;
  width: 400px;
}

div h2 {
  text-align: center;
  color: rgb(161, 185, 116);
}
.imgp1 {
  margin-left: 0.5%;
}
.h2p1 {
  margin-left: 2%;
  text-decoration: dotted;
  color: #ad73d1;
}
.twop1 {
  padding-top: 15%;
}

/* historia */
main p {
  font-size: larger;
}

.historia {
  margin-left: 2%;
  margin-right: 2%;
  display: grid;
  grid-template-columns: 32% 32% 32%;
  gap: 8px;
}

.h1historia,
.h1historiaHomg {
  text-align: center;
  color: #ad73d1;
  background-color: #272627;
  border-radius: 5px;
  line-height: 35px;
  margin: 0 35% 0 35%;
  padding-bottom: 10px;
  font-size: 14px;
  margin-top: 3%;
  margin-bottom: 3%;
}
.h1historiaHomg {
  margin: 5% 15% 0 15%;
}

.h2historia {
  color: #ad73d1;
  font-size: 8px;
}
.historiaF1-1col {
  margin-top: 20px;
  margin-left: 1%;
  height: 700px;
  width: 600px;
}
.historiaF1-2col {
  margin-top: 5%;
  margin-left: 10%;
  margin-right: 2%;
  display: grid;
  grid-template-columns: 47% 47%;
  gap: 8px;
}
.historiaF1-3col {
  margin-top: 5%;
  margin-left: 5%;
  margin-right: 2%;
  display: grid;
  grid-template-columns: 33% 33% 33%;
  gap: 8px;
}
.historiaF1-4col {
  margin-top: -15%;
  margin-left: 10%;
  margin-right: 2%;
  display: grid;
  grid-template-columns: 23% 23% 23% 23%;
  gap: 8px;
}
figure {
  text-align: center;
  margin: 0.2rem 0.2rem;
}
/* Slide das fotos - hover no botão*/
.lb-playpause:hover {
  transform: scale(1.2);
  color: #00ffcc;
  transition: all 0.2s ease;
}
.lb-image {
  transition: opacity 0.5s ease-in-out;
}

/* Para telas menores */
@media (max-width: 768px) {
  .btnIndc {
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 150px;
  }
  .btnIndc::after {
    font-size: 12px;
  }
}

/* Para telas acima de 700px */
@media screen and (min-width: 700px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 13vh;
  }
  header nav {
    width: 70%;
    max-width: 800px;
  }
  .logo {
    width: 25%;
  }
  .navHomeP1 {
    margin-left: 300%;
  }
  .historiaF1-1col {
    margin-top: 20px;
    margin-left: 27%;
    height: 700px;
    width: 600px;
  }
  .historiaF1-4col {
    margin-top: 5%;
  }
  #historia {
    background-image: url(img-ofc/historia/cave.jpg);
  }
  #homenagem {
    background-image: url(img-ofc/homenagem/homenagem.jpg);
  }
  #acaosocial {
    background-image: url(img-ofc/acaosocial/acaosocial.jpg);
  }
  #amizade {
    background-image: url(img-ofc/amizade/amz.jpg);
  }
  #contato {
    background-image: url(img-ofc/contato/contato.jpg);
  }
  nav a {
    padding: 0.7rem 1rem;
    font-size: 1.1rem;
  }
  .face {
    width: 3%;
    height: 55px;
    margin-top: 30px;
    margin-left: -180px;
  }
  .linkedin {
    width: 3%;
    height: 25px;
    margin-top: 30px;
    margin-left: -400px;
  }
  .rodape {
    margin-right: 15%;
    font-size: 1rem;
  }

  .historia {
    margin-left: 7%;
    margin-right: 5%;
    display: grid;
    grid-template-columns: 35% 35% 35%;
    gap: 10px;
  }
  .h1historia,
  .h1historiaHomg {
    font-size: 30px;
  }
  .h2historia {
    font-size: 14px;
  }
  .cta {
    font-size: 0.8rem;
  }

  /* Pag2 - Historia F1 */
  main p {
    font-size: larger;
  }
  .topo {
    font-size: 0.8rem;
    padding: 1.15rem 1.8rem;
  }
}

/* Para telas acima de 900px */
@media screen and (min-width: 900px) {
  .conteudo h1 {
    font-size: 3rem;
    margin: -0.6rem;
  }
}
