/*
Theme Name: Direto Theme
Theme URI: https://diretonaweb.com.br
Author: Direto na web
Author URI: https://diretonaweb.com.br
Description: Tema base leve e flexivel, compativel com Elementor, Gutenberg e outros construtores visuais.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: direto-theme
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --direto-primary: #36b54a;
  --direto-dark: #101713;
  --direto-light: #f7faf7;
  --direto-text: #26312a;
  --direto-border: #dce5de;
  --direto-content: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--direto-text);
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #197b2b;
}

a:hover,
a:focus {
  color: #10561d;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: #fff;
  color: #111;
}

.site-container {
  width: min(100% - 2rem, var(--direto-content));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--direto-border);
  background: #fff;
}

.site-header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.custom-logo {
  display: block;
  max-height: 54px;
  width: auto;
}

.site-title {
  margin: 0;
  color: var(--direto-dark);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.site-description {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
}

.menu-toggle {
  display: none;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--direto-border);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--direto-dark);
  font: inherit;
  cursor: pointer;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu .sub-menu {
  position: absolute;
  min-width: 220px;
  padding: 0.75rem;
  margin: 0;
  border: 1px solid var(--direto-border);
  background: #fff;
  box-shadow: 0 12px 35px rgb(0 0 0 / 10%);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: 0.2s ease;
}

.primary-menu li {
  position: relative;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-menu a,
.footer-menu a {
  color: var(--direto-dark);
  font-weight: 600;
  text-decoration: none;
}

.site-main {
  min-height: 55vh;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 5vw, 4rem);
}

.content-layout--full {
  display: block;
}

.entry-header,
.page-header {
  margin-bottom: 2rem;
}

.entry-title,
.page-title {
  margin: 0 0 0.75rem;
  color: var(--direto-dark);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.1;
}

.entry-meta {
  color: #627067;
  font-size: 0.9rem;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content::after {
  display: table;
  clear: both;
  content: "";
}

.post-card {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--direto-border);
}

.post-thumbnail img {
  display: block;
  width: 100%;
  border-radius: 0.7rem;
}

.widget-area,
.footer-widgets {
  word-break: break-word;
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  color: var(--direto-dark);
  font-size: 1.1rem;
}

.site-footer {
  padding-block: 3rem 1.5rem;
  background: var(--direto-dark);
  color: #dfe8e1;
}

.site-footer a {
  color: #fff;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.site-info {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 0.9rem;
}

.navigation.pagination .nav-links,
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.alignwide {
  width: min(1320px, calc(100vw - 2rem));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem;
    border: 1px solid var(--direto-border);
    background: #fff;
    box-shadow: 0 12px 35px rgb(0 0 0 / 10%);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu,
  .footer-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
  }

  .primary-menu .sub-menu {
    position: static;
    padding-left: 1rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .content-layout,
  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .site-info {
    align-items: flex-start;
    flex-direction: column;
  }
}
