*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  color: var(--accent);
  line-height: 1.4;
  font-weight: 400;
}

h1 { font-size: 23px; }
h2 { font-size: 30px; }
h3 { font-size: 18px; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 30px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #111;
  color: #fff;
  padding: 8px 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.header-wrap {
  position: relative;
  z-index: 50;
}

.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.76;
  background: #fff;
  z-index: 99990;
  transition: 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  min-height: 120px;
}

.logo img {
  display: block;
  width: auto;
  height: 110px;
  max-height: 110px;
}

.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: block;
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent);
  line-height: 100px;
  padding: 0 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--accent);
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-panel {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
}

.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-panel a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid #f2f2f2;
}

.mobile-search {
  display: flex;
  padding: 12px 20px 20px;
  gap: 0;
}

.mobile-search input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 3px 0 0 3px;
  padding: 8px 12px;
  font: inherit;
}

.mobile-search button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
}

/* Hero slider */
.hero-slider {
  position: relative;
  height: 645px;
  background: #333;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.33;
}

.hero-slide h1 {
  position: relative;
  z-index: 2;
  margin: 0.1em 0;
  color: #fff;
  font-size: 50px;
  line-height: 1.375em;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  max-width: 1200px;
  padding: 0 20px;
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: #fff;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 8px;
}

.hero-slider:hover .hero-nav {
  opacity: 1;
}

.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }

/* Home sections */
.section {
  padding: 100px 0;
}

.section-center {
  text-align: center;
}

.section-center h2 {
  margin: 0 0 24px;
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark a {
  color: #fff;
}

.section-dark .post-meta,
.section-dark .post-meta a {
  color: #fff;
}

.section-welcome {
  background: #fff url("/assets/img/fundo-quem-somos.webp") center / cover no-repeat;
  padding: 100px 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 52.5455% 47.4545%;
  gap: 70px;
  align-items: start;
}

.welcome-copy h2 {
  text-align: left;
  margin-top: 0;
}

.section-blue {
  background: #2f4979;
  padding: 100px 10px;
  color: #fff;
}

.blue-grid {
  display: grid;
  grid-template-columns: 10% 40% 40% 10%;
  gap: 30px;
  align-items: start;
}

.blue-card {
  text-align: center;
}

.blue-card h2 {
  color: #fff;
  margin: 0 0 16px;
}

.blue-card img {
  display: block;
  margin: 0 auto 16px;
  width: 450px;
  max-width: 100%;
  height: auto;
}

.blue-card .btn,
.blue-card span.button,
#colunas-home .button {
  background: #fff;
}

.blue-card .btn a,
.blue-card a.btn,
.blue-card span.button a,
#colunas-home a {
  color: #2f4979 !important;
  font-weight: 700;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin: 0 0 2em;
}

.post-card {
  text-align: center;
}

.post-card img {
  display: block;
  margin: 0 auto 14px;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.post-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.post-card h3 a {
  color: inherit;
}

.post-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.post-card p {
  margin: 0;
}

.btn,
span.button {
  display: inline-block;
  background: var(--accent);
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn a,
span.button a {
  color: #fff !important;
  font-weight: 700;
}

.btn:hover,
span.button:hover {
  background: var(--accent);
}

/* Page header */
.page-header {
  background: var(--accent);
  padding: 34px 0;
  position: relative;
}

.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 45px;
  position: relative;
}

.page-header h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.4;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: #fff;
  font-size: 13px;
}

.breadcrumbs a,
.breadcrumbs span {
  color: #fff;
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  margin-right: 4px;
  vertical-align: -1px;
}

.content-wrap {
  padding: 50px 0 70px;
}

.entry {
  max-width: 960px;
}

.page-wide .entry {
  max-width: none;
}

/* Sobre */
.sobre-grid {
  display: grid;
  grid-template-columns: 52.5455% 47.4545%;
  gap: 70px;
  background: #fff url("/assets/img/fundo-quem-somos.webp") center / cover no-repeat;
  padding: 100px 0;
}

.sobre-grid .sobre-copy {
  max-width: 520px;
}

/* Listing */
.list-posts {
  max-width: 831px;
  margin: 0 auto;
}

.list-item {
  margin-bottom: 28px;
  overflow: hidden;
}

.list-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.list-item img {
  float: left;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 18px 10px 0;
}

.list-item .saiba {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  border: 1px solid #333;
  color: #333;
  font-size: 13px;
  background: #fff;
}

.list-item .saiba:hover {
  color: #333;
}

/* Accordion */
.acc {
  margin-top: 16px;
}

.acc-item {
  margin-bottom: 10px;
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #828282;
  color: #fff;
  border: 0;
  padding: 15px 30px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 16px;
}

.acc-btn:hover {
  background: #8c8c8c;
}

.acc-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 18px;
}

.acc-btn .acc-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-btn .acc-title svg {
  width: 18px;
  height: 18px;
}

.acc-panel {
  display: none;
  background: #f9f9f9;
  padding: 15px 30px;
}

.acc-item.is-open .acc-panel {
  display: block;
}

.acc-item.is-open .icon-plus { display: none; }
.acc-item:not(.is-open) .icon-minus { display: none; }

.acc-panel a {
  color: #ffcc00;
  font-weight: 700;
}

/* E-books */
.ebook-hero img {
  display: block;
  margin: 0 auto 16px;
}

.ebook-kicker {
  color: var(--accent);
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-family: var(--heading);
}

.ebook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 40px auto 0;
}

.ebook-card {
  text-align: center;
}

.ebook-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}

.ebook-icon svg {
  width: 70px;
  height: 70px;
  fill: #fff;
}

.ebook-card h3 {
  font-size: 28px;
  line-height: 1em;
  color: var(--accent);
  font-weight: 700;
  margin: 8px 0 12px;
}

.ebook-card .dl {
  display: inline-block;
  margin-top: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.wpcf7 label {
  display: block;
  margin-bottom: 14px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font: inherit;
}

.wpcf7 textarea {
  min-height: 180px;
}

.wpcf7 input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 22px;
  cursor: pointer;
  font: inherit;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.map-embed {
  width: 100%;
  height: 550px;
  border: 0;
}

.form-feedback {
  margin-top: 12px;
}

/* Single post */
.single-title {
  font-size: 34px;
  letter-spacing: 0.6px;
  margin: 0 0 12px;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.6px;
}

.post-meta-row svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}

.entry-content img.aligncenter {
  display: block;
  margin: 16px auto;
}

.related {
  margin-top: 48px;
}

.related h3 {
  position: relative;
  text-align: center;
  margin-bottom: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.related-card h4 {
  margin: 10px 0 4px;
  font-size: 17px;
}

/* Footer */
.site-footer {
  background: #fff;
}

.footer-widgets {
  border-top: 1px solid #000;
  padding: 30px 0 0;
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 22.2333% 22.2333% 22.2333% 33.3%;
  gap: 30px;
  align-items: start;
  text-align: center;
  font-family: Actor, var(--font);
  font-size: 16px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid svg {
  width: 36px;
  height: 36px;
  fill: var(--accent);
  margin-bottom: 8px;
}

.footer-logo {
  width: 142px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.footer-bottom {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 14px 0;
  font-family: Actor, var(--font);
  font-size: 14px;
  line-height: 1;
}

.footer-bottom a {
  color: #fff;
}

.scroll-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  width: 40px;
  height: 40px;
  background: #333;
  color: #fff;
  display: none;
  place-items: center;
  text-decoration: none;
}

.scroll-top.is-visible {
  display: grid;
}

.scroll-top svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* WhatsApp */
.wptwa-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 12px 20px;
  border-radius: 50px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--wa);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06), 0 2px 32px rgba(0, 0, 0, 0.16);
  font-family: sans-serif;
  font-size: 14px;
  border: 0;
}

.wptwa-toggle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.wptwa-box {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 9999;
  width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.wptwa-box.is-open {
  display: block;
}

.wptwa-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: #555;
}

.wptwa-account:hover {
  background: #f5f5f5;
}

.dl-line {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-line img {
  width: 25px;
  height: 30px;
}

@media (max-width: 959px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel.is-open { display: block; }
  .header-inner { min-height: 90px; }
  .logo img { height: 80px; }
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .breadcrumbs { margin-left: 0; }
}

@media (max-width: 780px) {
  .hero-slider { height: 350px; }
  .hero-slide h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  .section,
  .section-welcome,
  .sobre-grid { padding: 20px 0; }
  .section-blue { padding: 5px; }
  .posts-grid,
  .welcome-grid,
  .blue-grid,
  .sobre-grid,
  .contact-grid,
  .ebook-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .blue-grid > :empty { display: none; }
  .welcome-grid > :empty { display: none; }
  .section-welcome { background: #fff; }
  .list-item img {
    float: none;
    display: block;
    margin: 0 auto 12px;
  }
  .list-item { text-align: center; }
  .map-embed { height: 320px; }
  .site-header.is-sticky { opacity: 1; }
}

@media (max-width: 400px) {
  .logo img { max-width: 100%; height: auto; }
  .nav-toggle { width: 100%; justify-content: center; }
  .header-inner { flex-wrap: wrap; justify-content: center; }
}
