:root {
  --font: Arial, Helvetica, sans-serif;
  --font-display: "Ubuntu Condensed", Arial, Helvetica, sans-serif;
  --font-size: 13px;
  --text: #555555;
  --heading: #4b4b4d;
  --bg: #ffffff;
  --container: 1200px;
  --nav-bg: #dbdbdb;
  --nav-hover: #c6c6c6;
  --nav-current: #e8e8e8;
  --nav-text: #666666;
  --btn: #4b4b4d;
  --accent: #107caa;
  --footer-bg: #e2e6e9;
  --footer2-bg: #c1c1c1;
  --line-height: 1.8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 13px;
  line-height: var(--line-height);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  color: var(--text);
  background-color: var(--bg);
  background-image: url("/assets/img/005-fundo_topo.jpg");
  background-position: right top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: auto;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #000;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #fff;
  padding: 8px 12px;
}
.skip-link:focus {
  left: 8px;
}

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#header-full {
  width: 100%;
}

#header {
  max-width: var(--container);
  margin: 0 auto;
}

#branding {
  height: 160px;
  position: relative;
  overflow: hidden;
}

#header-container {
  max-width: var(--container);
  margin: 10px 0 0;
}

#logo img {
  width: 230px;
  height: auto;
  display: block;
}

#nav-toggle {
  display: none;
  background: var(--nav-bg);
  border: 0;
  width: 48px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
#nav-toggle span,
#nav-toggle span::before,
#nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #666;
  margin: 0 auto;
  position: relative;
}
#nav-toggle span::before,
#nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
#nav-toggle span::before { top: -7px; }
#nav-toggle span::after { top: 7px; }

#access {
  display: block;
  float: left;
  margin: 0 auto;
  width: 100%;
  background: var(--nav-bg);
  clear: both;
  position: relative;
  z-index: 20;
}
#access .menu {
  max-width: var(--container);
  margin: 0 auto;
}
#access ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
#access > .menu > ul {
  margin-left: -10px;
  display: flow-root;
}
#access ul li {
  position: relative;
  display: block;
  float: left;
  white-space: nowrap;
  background-color: var(--nav-bg);
  transition: all 0.3s ease-in-out;
}
#access a {
  position: relative;
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: var(--nav-text);
}
#access a > span {
  display: block;
  padding: 17px 18px;
  text-transform: uppercase;
  font-family: var(--font-display);
}
#access ul li a {
  letter-spacing: 1px;
}
#access > .menu > ul > li > a:not(:only-child) > span {
  padding-right: 24px;
}
#access > .menu > ul > li > a:not(:only-child) > span::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 24px;
  border: 4px solid transparent;
  border-top-color: #666;
}
#access ul li:hover {
  background-color: var(--nav-hover);
}
#access ul > li.current-menu-item,
#access ul > li.current-menu-ancestor {
  background-color: var(--nav-current);
}
#access ul ul {
  position: absolute;
  z-index: 1000;
  left: 0;
  top: 100%;
  clear: both;
  margin: 0;
  padding: 0;
  min-width: 125%;
  background-color: var(--nav-hover);
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  transform: translateX(-50px);
  transition: 0.25s all ease-in;
}
#access ul li:hover > ul,
#access ul li:focus-within > ul,
#access ul li.open > ul {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
}
#access ul ul li {
  display: table;
  position: relative;
  margin: 0;
  width: 100%;
  float: left;
  clear: both;
  background-color: var(--nav-hover);
}
#access ul ul li a span {
  padding: 15px 18px;
  text-transform: none;
  white-space: normal;
}
#access ul ul a {
  display: table;
  float: none;
  min-width: 150px;
  width: 100%;
  color: var(--nav-text);
}
#access ul ul li:hover {
  background-color: #d4d4d4;
}

#main {
  flex: 1;
  clear: both;
  background: #fff;
  margin-top: 5px;
  padding: 0;
}

#forbottom {
  clear: both;
  display: block;
  margin: 0 auto;
  max-width: var(--container);
  padding: 0;
  min-height: 400px;
  width: 100%;
}

#content {
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}
#content::after,
.archive-noticias::after {
  content: "";
  display: table;
  clear: both;
}

#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
  clear: none;
  font-weight: normal;
}

#content h1.entry-title,
#content h2.entry-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  color: #444444;
  line-height: 1.2;
  margin: 0;
}

.entry-content h1,
#content h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: normal;
  color: var(--heading);
  line-height: 48px;
  margin: 20px 0 0;
}

#content h1.page-title {
  font-family: var(--font);
  font-size: 1em;
  font-weight: bold;
  color: inherit;
  line-height: inherit;
  margin: 0;
}

#content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--heading);
}

#content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--heading);
}

#content h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--heading);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1em;
}

.alignleft,
img.alignleft {
  float: left;
  margin-right: 26px;
  margin-top: 4px;
  margin-bottom: 12px;
}
.alignright,
img.alignright {
  float: right;
  margin-left: 34px;
  margin-top: 4px;
  margin-bottom: 12px;
}
.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* SiteOrigin front-flex — sem padding extra nem fundo inventado */
.panel-grid.panel-has-style > .panel-row-style,
.panel-grid.panel-no-style {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.panel-grid-cell {
  box-sizing: border-box;
}
.panel-grid-cell .so-panel::after {
  content: "";
  display: table;
  clear: both;
}
.panel-widget-style {
  background: transparent;
}

/* CTA buttons in home */
.entry-content span[style*="background: #4b4b4d"] a,
.entry-content span[style*="background:#4b4b4d"] a {
  color: #fff !important;
  text-decoration: underline;
}

/* Contato form */
.fontecontato {
  color: #8c8c8c;
  margin-bottom: 20px;
  font-size: 22px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  border: 1px solid #ccc;
  border-color: #ccc #eee #eee #ccc;
  padding: 8px 10px;
  font: inherit;
  color: #555;
  background: #fff;
}
.wpcf7-form input[type="submit"],
.contact-form button[type="submit"],
.contact-form input[type="submit"] {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 18px;
  font-size: 16px;
  cursor: pointer;
  color: #555;
}
.wpcf7-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
  background: #f7f7f7;
}
.form-feedback {
  margin-top: 10px;
  font-size: 14px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Galerias — medidas do tema */
.gallery {
  margin-bottom: 20px;
  margin-left: -4px;
}
.gallery-item {
  float: left;
  margin: 0 4px 4px 0;
  overflow: hidden;
  position: relative;
}
.gallery-columns-4 .gallery-item {
  max-width: calc(25% - 4px);
}
.gallery-icon {
  line-height: 0;
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 50%;
  padding: 2px 8px;
  margin: 0;
  color: #fff;
  font-size: 1em;
  line-height: 1.3;
  opacity: 0;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.7);
  transition: opacity 400ms ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Post single */
.post-article .entry-meta-line {
  color: #999;
  font-size: 13px;
  margin-bottom: 1em;
}
.post-article .entry-meta-line a {
  color: #999;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #eee;
}
.post-nav a {
  color: #555;
  text-decoration: none;
  background: #f8f8f8;
  padding: 8px 12px;
}
.post-nav a:hover {
  background: #ccc;
  color: #fff;
}

/* Arquivo de notícias — layout magazine do tema */
.page-header {
  margin-bottom: 26px;
}
.page-title {
  font-size: 1em;
  font-weight: bold;
  display: block;
  margin: 0;
}
.page-title-text {
  display: inline-block;
  padding: 3px 0 3px 6px;
}
.page-title span {
  font-style: italic;
  font-weight: normal;
  display: inline-block;
  padding: 6px;
}
.archive-noticias article.post {
  float: left;
  width: 47%;
  padding: 0 0 10px;
}
#content .entry-title {
  font-weight: 300;
  line-height: 1.2;
  padding: 0;
  margin: 0;
}
.entry-title a:link,
.entry-title a:visited {
  color: inherit;
  text-decoration: none;
}
.entry-meta {
  display: block;
  font-size: 12px;
  clear: both;
  overflow: hidden;
  margin: 4px 0 20px;
  padding: 7px 4px;
}
.entry-meta span {
  display: block;
  float: left;
  line-height: 28px;
  margin-right: 15px;
  font-size: 16px;
}
.entry-meta span a {
  font-size: 16px;
  color: inherit;
}
.entry-meta time.updated {
  display: none;
}
.entry-summary {
  clear: both;
  padding-top: 8px;
}
.post_thumbnail {
  max-width: 100%;
  height: auto;
}
a.continue-reading-link {
  display: inline-block;
  position: relative;
  padding: 4px 15px;
  margin-top: 3px;
  line-height: 2.5;
  font-size: 0.8em;
  letter-spacing: 1px;
  text-transform: uppercase;
  clear: both;
  border: 2px solid transparent;
  color: inherit;
}

/* Footer — sem assinatura WP/Nirvana */
#footer {
  background: var(--footer-bg);
  color: #555;
  margin-top: auto;
}
#footer2 {
  background: var(--footer2-bg);
  min-height: 34px;
}
#footer2-inside {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  min-height: 14px;
}

/* WhatsApp float */
.joinchat-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
.joinchat-btn svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}
.joinchat-btn:hover {
  filter: brightness(1.05);
}

/* Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lb-overlay.is-open {
  display: flex;
}
.lb-overlay img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  background: #fff;
  padding: 10px;
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile */
@media (max-width: 800px) {
  body {
    background-size: contain;
  }
  #branding {
    height: auto;
    min-height: 100px;
  }
  #logo img {
    width: 160px;
  }
  #nav-toggle {
    display: block;
  }
  #access {
    display: none;
  }
  #access.is-open {
    display: block;
  }
  #access ul li {
    float: none;
  }
  #access ul ul {
    position: static;
    transform: none;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
  }
  #access li.open > ul {
    visibility: visible;
    opacity: 1;
    max-height: 1000px;
  }
  .panel-grid.panel-no-style,
  .panel-grid.panel-has-style > .panel-row-style {
    flex-direction: column;
  }
  #pgc-6-1-0,
  #pgc-6-1-1,
  #pgc-6-1-2,
  #pgc-6-2-0,
  #pgc-6-2-1,
  #pgc-6-2-2,
  #pgc-70-1-0,
  #pgc-70-1-1 {
    width: 100% !important;
    margin-bottom: 30px;
  }
  .gallery-columns-4 .gallery-item {
    max-width: calc(50% - 4px);
  }
  #forbottom {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .gallery-columns-4 .gallery-item {
    max-width: 100%;
  }
}
