/*
Theme name: Zeus
Theme URI: https://www.gaulia.eng.br/wp-thema-zeus
Author: Gaulia Engenharia
Author URI: https://www.gaulia.eng.br/
Description: Site Personalizado utilizando Boostrap 5.3v
Version: 1.0
Github Theme URI: 
Licence: GNU General Public License v2 ou posterior
URI da licença: http://www.gnu.org/licenses/gpl-2.0.html
Text domain: PT-BR
Tags: 
Este tema, como o WordPress, é licenciado sob a GPL.
Use-o para fazer algo legal, se divertir e compartilhar o que aprendeu com outras pessoas.
*/

/* ZEUS */
/* Reset básico e configurações globais */
html {
  box-sizing: border-box; /* Garante que padding/margin não aumentem o tamanho dos elementos */
}

*, *:before, *:after {
  box-sizing: inherit; /* Herda o box-sizing para todos os elementos */
}

body {
  width: 100%;
  max-width: 100%; /* !important removido, pois não é necessário aqui */
  height: 100vh;
  min-height: 100vh; /* !important removido, pois não há concorrência */
  margin: 0; /* Remove margens padrão */
  padding: 0; /* Já estava como 0px, simplificado */
  display: flex;
  flex-flow: column nowrap; /* wrap substituído por nowrap, pois o conteúdo geralmente não deve quebrar em colunas */
  justify-content: space-between; /* Mantém o espaçamento entre header, main e footer */
  align-items: stretch; /* Substitui align-items e align-content, já que é uma coluna */
  overflow-x: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Apenas fixed, já que múltiplos valores não fazem sentido aqui */
}

/* Estilização de links */
a, a:hover, a:focus {
  text-decoration: none; /* !important removido, a menos que haja conflito específico */
}

/* Estilos gerais */
.z-width-full {
  width: 100%; /* !important removido, só use se realmente necessário */
}

.z-main-menu-fixed-top {
  top: 0;
}

.z-main-menu-fixed-bottom {
  bottom: 0;
}

.z-main-menu-fixed-top, 
.z-main-menu-fixed-bottom {
  position: fixed;
  left: 0;
  width: 100%; /* Garante que ocupe toda a largura */
  height: 100px; /* !important removido, a menos que haja sobreposição */
  z-index: 9999;
  transition: all 0.4s ease; /* Unifica -webkit-transition e transition */
}

.z-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0; /* Remove margens padrão para consistência */
}

.z-display-none {
  display: none;
}

.z-background-fixed {
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* Útil se for uma imagem ou vídeo */
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; /* Mantém o fundo atrás de tudo */
}

/* TRILHA DE NAVEGAÇÃO */
.z-breadcrumbs {
  & span{

  }
}

/* ERRORs */
.z-error_404 {
  width: 100%;
  height: 600px;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
}

/* PAGINATION */
.z-pagination {
  margin: 3rem auto; // Centraliza horizontalmente e mantém margem vertical
  width: 100%;
  max-width: 1200px; // Limita largura máxima para melhor controle em telas grandes
  height: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0.6rem;
  background: #000;
  color: #fff;

  &-items-list {
    max-width: 90vw;
    margin: 2rem auto; // Centraliza e mantém margem
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); // Mais responsivo que fixo em 5 colunas
    gap: 3rem; // Substitui grid-gap (mais moderno e suportado)
    justify-content: center;
    align-content: center;
  }

  &-item {
    width: 10rem;
    height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--greyDark);
    cursor: pointer;
  }
  & ul {
    list-style-type: none;
    padding: 0; 
    margin: 0; 
  }
  & span {
    background: #ffffff;
    border-radius: 0.6rem;
    padding: 2rem;
    font-size: 3rem;
    transition: transform 0.3s ease, color 0.3s ease; 
  }
  & span:hover {
    transform: scale(1.2);
    color: var(--primary);
  }
  & p {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--greyLight);
  }
  @media only screen and (max-width: 600px) {
    &-items-list {
      grid-template-columns: repeat(2, 1fr); /* 2 colunas em telas pequenas */
    }
  }
}

/* PRINT */
@media print {
  body * {
    visibility: hidden;
  }
  .z-print * {
    visibility: visible;
  }
  .z-print {
    position: fixed;
    left: 0;
    top: 0;
  }
}

/* Reset e Configurações Gerais */
form {
  margin: 0; /* !important removido, a menos que necessário */
}

input, select, textarea {
  width: 98%;
  height: 35px;
  padding: 8px;
  border: none;
  accent-color: auto;
}

input:focus, select:focus, textarea:focus {
  outline: none; /* Substitui border: none para foco */
}

/* Botões */
.commentlist .reply a,
.form-submit input[type="submit"],
.wp-element-button {
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

/* Loading */
#z_loading {
  width: 100%;
  height: 100vh;
  position: fixed;
  animation: loading 2s 3s both; /* Simplificado */
  transition: opacity 0.35s ease; /* Ajustado para consistência */
}

#z_loading div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centraliza melhor */
}

@keyframes loading {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    visibility: hidden; /* Substitui display: none para animação suave */
    z-index: -1;
  }
}

/* WhatsApp */
#z_whatsapp {
  position: fixed;
  z-index: 998;
}

#z_whatsapp a {
  border-radius: 50%;
  padding: 5px 10px;
}

/* Seta para subir */
#z_main_menu_link_up {
  position: fixed;
  bottom: 42px;
  right: 50px;
  z-index: 9999;
  animation-delay: 3.5s; /* Unificado */
}

#z_main_menu_link_up a {
  padding: 5px 10px;
  font-size: 24px;
}

/* Header */
#z_header,
#z_main_menu,
#z_main_menu_navbar,
#z_body,
#z_footer,
#z_search,
#z_search_body,
#z_front_page,
#z_front_page_body,
#z_page,
#z_page_body,
#z_author_body,
#z_blog,
#z_blog_body {
  width: 100%;
}

#z_toolbar {
  width: 100%;
  min-height: 40px;
  margin: 0;
}

/* Menu */
.z-main-menu-navbar li.z-nav-item {
  position: relative;
  height: 60px;
  padding-top: 10px;
  border: none;
}

.z-main-menu-navbar li.z-nav-item:hover {
  border: none;
}

.z-main-menu-navbar .z-nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 5px;
  left: 50%;
  bottom: 0;
  transition: all 0.2s ease-in-out;
}

.z-main-menu-navbar .z-nav-item:hover::after {
  width: 100%;
  left: 0;
}

.z-main-menu-background {
  position: absolute;
  min-width: 100%;
  max-height: 100%;
  z-index: 0;
  background: no-repeat top left / auto;
}

.z-main-menu-general {
  width: 100%;
  z-index: 999;
}

.z-main-menu-general-logo {
  padding: 14px;
}

.z-main-menu-general-search {
  width: 100%;
  max-width: 150px;
  padding: 10px;
}

/* Search Box */
.z-search-box {
  position: relative;
  width: fit-content;
  height: fit-content;
}

.z-search-input {
  width: 50px;
  height: 50px;
  padding: 10px 40px 10px 10px;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  color: #fff;
  letter-spacing: 2px;
  transition: all 0.6s ease-in-out;
}

.z-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 100;
}

.z-search-input:focus {
  width: 100%;
  border-radius: 0;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.5s cubic-bezier(0, 0.11, 0.35, 2);
}

.z-search-btn {
  position: absolute;
  right: 0;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.z-search-btn:focus ~ .z-search-input {
  width: 100%;
  border-radius: 0;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.5s cubic-bezier(0, 0.11, 0.35, 2);
}

/* Search Results */
.z-search-results {
  width: 100%;
}

.z-search-result {
  position: relative;
  width: 96%;
  max-width: 600px;
  margin: 15px 0 20px;
  padding: 10px 10px 5px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.z-search-result-text,
.z-search-result-title,
.z-search-result-description {
  width: 100%;
  padding: 10px;
}

.z-search-result-text {
  text-align: center;
}

.z-search-result-description {
  text-align: justify;
}

.z-search-result-readmore {
  position: absolute;
  right: 0;
  bottom: -25px;
}

/* Sidebar */
#z_sidebar,
.z-sidebar-tags,
.z-sidebar-img-emphasis {
  width: 100%;
}

.z-sidebar-tags {
  padding: 20px;
}

/* Front Page */
#z_front_page_head {
  width: 100%;
  padding: 20px;
  background: no-repeat;
}

#z_front_page_head div {
  width: 60%;
}

.z-front_page-infos,
.z-front_page-tags {
  width: 100%;
  padding: 20px;
}

.z-front_page-info {
  width: 100%;
}

.z-front_page-info a {
  padding-left: 2px;
}

.z-front_page-author a {
  color: #fff;
}

/* Page */
#z_page_head {
  width: 100%;
  padding: 20px;
  background: no-repeat;
}

#z_page_head div {
  width: 60%;
}

.z-page-infos,
.z-page-tags {
  width: 100%;
  padding: 20px;
}

.z-page-info {
  width: 100%;
}

.z-page-info a {
  padding-left: 2px;
}

.z-page-author a {
  color: #fff;
}

/* Author */
.z-author-posts {
  width: 100%;
  display: flex;
  justify-content: center;
}

.z-authors {
  width: 100%;
  padding-bottom: 15px;
  text-align: center;
}

.z-authors span {
  font-weight: bold;
}

.z-authors li {
  list-style-type: none;
}

.z-authors h2 {
  font-weight: bold;
}

/* Blog */
#z_blog_content,
.z-blog-infos,
.z-blog-tags {
  width: 100%;
  padding: 20px;
}

#z_blog_sidebar {
  padding: 10px;
}

.z-blog-category li {
  width: 100%;
  list-style-type: none;
  font-stretch: condensed;
  text-transform: uppercase;
}

.z-blog-info a {
  padding-left: 2px;
}

.z-blog-author a {
  color: #fff;
}

/* Posts */
.z-post {
  padding: 5px;
  float: left;
  transition: all 0.5s ease;
  overflow: hidden;
}

.z-post-body {
  position: relative;
  width: 300px;
  height: 300px;
  padding-bottom: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
  z-index: 1;
}

.z-post-body:hover .z-post-infos {
  opacity: 1;
  bottom: 0;
}

.z-post:hover .z-post-image img {
  max-width: 298px;
  width: 100%;
  height: auto;
  filter: none;
  transform: scale(1.1);
}

.z-post-image {
  width: 100%;
  height: 199px;
  overflow: hidden;
}

.z-post-image img {
  width: 100%;
  height: 200px;
  filter: grayscale(100%);
  transition: transform 0.5s ease;
}

.z-post-date {
  position: absolute;
  top: 0;
  width: 50px;
  height: 80px;
  padding: 5px;
  text-align: center;
}

.z-post-date div {
  width: 100%;
  text-align: center;
}

.z-post-date-day {
  font-size: 20px;
  font-weight: 900;
}

.z-post-date-month {
  font-size: 14px;
}

.z-post-date-year {
  font-size: 10px;
}

.z-post-title {
  position: absolute;
  top: 140px;
  width: 100%;
  padding: 20px;
  font-weight: 900;
}

.z-post-infos {
  position: absolute;
  bottom: -70px;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(50%);
  transition: all 0.5s ease;
}

.z-post-info {
  position: absolute;
  top: 15px;
  width: 100%;
  height: 50px;
  padding: 30px 10px 50px;
}

/* Media Queries */
@media screen and (max-width: 480px) {
  .h7 {
    font-size: 0.6rem;
  }

  .z-background-body-video {
    display: none;
  }

  #z_toolbar {
    display: contents;
  }

  #z_main_menu img {
    max-width: 100px;
    max-height: 50px;
  }

  .navbar-nav {
    position: absolute;
  }
  .dropdown-menu {
    position: sticky;
  }

  #z_front_page_content,
  #z_front_page_sidebar,
  #z_page_content,
  #z_page_sidebar,
  #z_blog_content,
  #z_blog_sidebar {
    width: 100%;
  }

  #z_front_page_sidebar,
  #z_page_sidebar,
  #z_blog_sidebar {
    margin-top: 10px;
  }

  .z-front-page-info,
  .z-page-info,
  .z-blog-info {
    text-align: center;
  }

  #z_footer_author {
    text-align: center;
  }
}

@media screen and (min-width: 481px) {
  .h7 {
    font-size: 0.8rem;
  }

  #z_main_menu img {
    max-width: 250px;
    max-height: 50px;
  }

  #z_footer_author {
    height: 50px;
  }
}
