/* Variaveis 
--------------------------------------------- */

:root {
  --cor-texto: #fff;
  --cor-fundo: #3B4E31;
 }

/* Geral 
--------------------------------------------- */

html {
  height: 100%;
}

body * {
  margin-top: 0;
}

html, body {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  color: var(--cor-texto);
  background-color: var(--cor-fundo);
}

a,
a:visited {
  color: var(--cor-texto);
  text-decoration: none;
  border-bottom-width: 0;
  padding-bottom: 0.1em;
  transition: border-bottom-width ease-in-out .2s;
}

a:hover,
a:focus {
  color: var(--cor-texto);
  border-bottom: 2px solid var(--cor-texto);
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 2em;
}

.site {
  /* padding: 1em; */
}

img {
  margin-bottom: 0;
  display: block;
}

/* Header 
--------------------------------------------- */

.site-header {
  margin: 2em 0;
  padding: 0 2em;
  position: relative;
}

.site-branding-mobile {
  display: block;
}
.site-branding-desktop {
  display: none;
}

@media screen and (min-width: 37.5em) {
  
  .site-branding {
    margin-right: 3em;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
}

@media screen and (min-width: 1200px) {
  .site-branding-mobile {
    display: none;
  }
  
  .site-branding-desktop {
    display: block;
  }
}

.main-navigation {
  width: 100%;
}

.main-navigation .menu-categories {
  padding: 0;
  margin: 0;
  list-style: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all ease-in-out 1s;
}

.main-navigation.toggled .menu-categories {
  max-height: 100vh;
  opacity: 1;
}

.main-navigation .menu-categories li {
  margin-right: 2em;
  margin-bottom: .5em;
}

.main-navigation .menu-categories li:last-child {
  margin-right: 0;
}



.menu-item.active a {
  border-bottom: 2px solid var(--cor-texto);
}

@media screen and (min-width: 37.5em) {
  .main-navigation .menu-categories {
    max-height: none;
    opacity: 1;
    display: flex;
    justify-content: space-between;
  }
}

.menu-toggle {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  position: absolute;
  padding: 0;
  cursor: pointer;
  right: 2em;
  top: 0;
}

.menu-toggle .um,
.menu-toggle .dois,
.menu-toggle .tres {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--cor-texto);
  left: 0;
  top: 50%;
  transition: all ease-in-out .2s;
}

.menu-toggle .dois {
  transform: translateY(-12px);
  
}

.menu-toggle .tres {
  transform: translateY(12px);
}

.main-navigation.toggled .menu-toggle .um {
  opacity: 0;
}

.main-navigation.toggled .menu-toggle .dois {
  transform: rotate(45deg);
}

.main-navigation.toggled .menu-toggle .tres {
  transform: rotate(-45deg);
}





/* Rodapé 
--------------------------------------------- */

.site-footer {
  margin-top: 6em;
  padding: 2em;
}

.site-footer .voltar-home a {
  margin-bottom: 2em;
}

.site-footer .widget-area p {
  margin: 0;
}

@media screen and (min-width: 37.5em) {
  .site-footer .voltar-home {
    float: left;
  }

  .site-footer .widget-area {
    float: right;
  }

}

/* Página de categoria 
--------------------------------------------- */

.trabalho-indice {
  padding: 2em;
}

.trabalho-indice .trabalho-card .post {
  position: relative;
}

.trabalho-indice .trabalho-card .post a {
  border: 0;
  opacity: 1;
}

.trabalho-indice .trabalho-card .post .entry-header {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity cubic-bezier(0.445, 0.05, 0.55, 0.95) 0.5s;
}

.trabalho-indice .trabalho-card .post:hover .entry-header {
  opacity: 1;
}

.trabalho-indice .trabalho-card .post .post-thumbnail {
  transition: opacity cubic-bezier(0.445, 0.05, 0.55, 0.95) .5s;
}

.trabalho-indice .trabalho-card .post:hover .post-thumbnail {
  opacity: 0;
}


@media screen and (min-width: 37.5em) {
  .trabalho-indice .trabalho-card {
    display: flex;
    flex-direction: column;
  }

  .trabalho-indice .trabalho-card:nth-child(n + 2) {
    margin-top: -5%;
  }

  .trabalho-indice .trabalho-card:nth-child(2n + 2) {
    margin-top: -20%;
  }
  
  .trabalho-indice .trabalho-card .post {
    width: 50%;
    margin: 0;
  }

  .trabalho-indice .trabalho-card:nth-child(2n) .post {
    align-self: flex-end;
  }
}

/* Trabalho aberto
--------------------------------------------- */

.entry-header {
  padding: 0 2em;
}

.cat-links {
  margin-bottom: 1em;
}

.tag-links {
  margin-bottom: 2em;
}

.cat-links,
.tag-links {
  line-height: 1em;
}

.cat-links a,
.tag-links a {
  font-size: 0.8em;
  border: 0;
  margin-right: 2em;
}

.single .entry-header .header-info p:last-child {
  margin-bottom: 0;
}

.single-post .entry-title {
  text-transform: uppercase;
}

.single-post .entry-header .header-thumb {
  height: 100%;
}

.wp-block-quote {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
}

.entry-content p {
  max-width: 700px;
  margin: 0 auto 1em auto;
}

.wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wp-block-image figcaption {
  font-size: 0.8em;
  max-width: 40ch;
  margin-bottom: 0;
}

.blocks-gallery-grid .blocks-gallery-image figure, .blocks-gallery-grid .blocks-gallery-item figure, .wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure {
  display: block;
}

.blocks-gallery-grid .blocks-gallery-image figcaption, .blocks-gallery-grid .blocks-gallery-item figcaption, .wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
  position: static;
  width: auto;
  max-width: 40ch;
  background: transparent;
  text-align: left;
  font-size: 0.8em;
  color: var(--cor-texto);
  margin: 0.5em 0 0 0;
  padding: 0;
}

.nav-links a {
  border: 0;
}



@media screen and (min-width: 37.5em) {

  .entry-header {
    padding: 0 0 0 2em;
  }

  .single-post .entry-header {
    display: flex;
    justify-content: space-between;
  }

  .single-post .entry-header .header-info,
  .single-post .entry-header .header-thumb {
    width:calc(50% - 1em);
  }

  .single .entry-header .header-info {
    padding: 4em 2em 4em 0;
  }
}

@media screen and (min-width: 1300px) {
  .entry-content figure {
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }
}

.entry-content {
  padding: 2em;
}

.post-navigation {
  padding: 0 2em;
}

/* Espaçamento dos grids */

.blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item, .wp-block-gallery .blocks-gallery-image, .wp-block-gallery .blocks-gallery-item {
  width: calc((100% - 10vw)/2);
}

.blocks-gallery-grid .blocks-gallery-image, .blocks-gallery-grid .blocks-gallery-item, .wp-block-gallery .blocks-gallery-image, .wp-block-gallery .blocks-gallery-item {
  margin: 0 10vw 10vw 0;
}

.entry-content > .wp-block-image,
.wp-block-column {
 margin-bottom: 10vw;
}

.wp-block-columns, 
.wp-block-column > * {
  margin-bottom: 0;
}

@media screen and (min-width: 782px) {
  .wp-block-column:not(:first-child) {
    margin-left: 10vw;
  }
}

/* Sobre */

.page-sobre .imagem {
  margin: 0 2em;
}

.page-sobre .site-footer {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.page-sobre #widgets-footer {
  display: none;
}

.page-sobre .entry-content {
  max-width: 700px;
  padding-bottom: 0;
}

.page-sobre .entry-content p {
  margin: 0 0 1em 0;
}

@media screen and (min-width: 782px) {
  .page-sobre .page { 
    display: flex;
    flex-direction: row-reverse;
  }

  .page-sobre .entry-content,
  .page-sobre .imagem {
    width: 50%;
  }
}

@media screen and (min-width: 1300px) {

  .page-sobre {
    margin-bottom: 0;
  }
  
  .page-sobre .site {
    position: relative;
  }
  
  .page-sobre .site-header {
    position: absolute;
    left: 0;
    top: 40vh;
    width: 100%;
    z-index: 1000;
  }

  /* .page-sobre .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
  } */

  .page-sobre .entry-content {
    padding-top: calc(40vh + 100px);
  }

  .page-sobre .entry-content  .wp-block-column {
    margin-bottom: 0;
  }

}

/* Home */

.home.page {
  padding: 0;
  margin: 0;
  height: 100%;
}

.home .site {
  height: 100%;
}

.home .site-header {
  position: fixed;
  width: 100%;
  left: 0;
  top: 40vh;
  transition: top ease-in-out 0.8s;
  z-index: 9999;
}

.home .site-header.header-toggled {
  top: 2em;
} 

.home .site-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  padding-bottom: 1.5em;
  z-index: 9999;
}

.home .site-footer * {
  margin: 0;
}

#slider-categorias {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

#slider-categorias .slide {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  -webkit-transition: opacity 1s;
  -moz-transition: opacity 1s;
  -o-transition: opacity 1s;
  transition: opacity 1s;
}

#slider-categorias .slide.showing {
  opacity: 1;
  z-index: 2;
}

#slider-categorias .slide img {
  display: none;
}

@media screen and (min-width: 782px) {
  #slider-categorias .slide {
    background-size: contain;
    background-position: bottom right;
  }
}



/* Animar elementos */

.come-in {
  transform: translateY(10px);
  opacity: 0;
  animation: come-in 1s ease forwards;
}

img {
  opacity: 0;
}

.already-visible {
  transform: translateY(0);
  animation: fade-in 1s ease forwards;
}

@keyframes come-in {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

