*,
*::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; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--yellow); }

button, input, textarea { font-family: inherit; }

.sr-only, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 8px 12px;
  background: #fff;
  color: var(--green);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 30;
  min-height: var(--topbar);
  background: #e7d3b0 url("/assets/img/fundo-barra.jpg") center / cover no-repeat;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-height: var(--topbar);
  flex-wrap: wrap;
  padding: 8px 0;
}
.topbar a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0.1em 0.1em 0.2em #000;
}
.topbar a:hover { color: #fff; }
.topbar svg, .site-footer svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

.site-header { position: relative; z-index: 40; background: #f5f5f5; }
.has-overlay .site-header {
  position: absolute;
  top: var(--topbar);
  left: 0;
  right: 0;
  background: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 16px;
}
.logo-link { display: block; flex: none; }
.logo-link img { display: block; width: min(280px, 46vw); height: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  cursor: pointer;
  text-shadow: 0.1em 0.1em 0.2em #000;
}
.has-solid .nav-toggle { color: #333; text-shadow: none; }
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #333;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.has-overlay .main-nav > ul > li > a,
.has-overlay .sub-toggle {
  color: #fff;
  text-shadow: 0.1em 0.1em 0.2em #000;
}
.main-nav a:hover { color: var(--yellow); }
.main-nav a[aria-current="page"] { color: var(--green); text-shadow: none; }
.has-overlay .main-nav > ul > li > a[aria-current="page"] { color: #fff; text-shadow: 0.1em 0.1em 0.2em #000; }

.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  background: none;
  border: 0;
  color: inherit;
  padding: 0 0 0 2px;
  cursor: pointer;
  display: inline-flex;
}
.sub-toggle svg { width: 12px; height: 12px; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 50;
}
.submenu a {
  display: block;
  padding: 8px 16px;
  color: #333 !important;
  text-shadow: none !important;
  text-transform: none;
  font-size: 18px;
}
.has-sub.open > .submenu { display: block; }

.nav-search { display: none; }

.hero {
  position: relative;
  height: 400px;
  background: #333 url("/assets/img/fundo.webp") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crumb {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0.1em 0.1em 0.2em #000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crumb:hover { color: #fff; }
.crumb svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.associe {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 125px;
}
.associe img { display: block; width: 125px; height: auto; }

.welcome {
  width: min(var(--container), calc(100% - 40px));
  margin: 50px auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.welcome h1 {
  margin: 10px 0 16px;
  font-family: var(--script);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--green);
}
.welcome h1 span {
  display: block;
  font-family: var(--font);
  font-size: 45px;
  line-height: 1.15;
  margin-top: 4px;
}
.welcome p { margin: 0 0 1em; text-align: justify; }
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  padding: 16px 22px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--green); color: #fff !important; filter: brightness(1.08); }

.mid-banner {
  min-height: 400px;
  background:
    linear-gradient(rgba(0, 72, 45, 0.28), rgba(0, 72, 45, 0.28)),
    url("/assets/img/bg_rural.webp") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 60px;
}
.mid-banner h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0.1em 0.1em 0.2em #000;
}
.mid-banner img { width: 130px; height: auto; }

.trio {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 70px;
  padding: 0 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
}
.trio h2 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
}
.trio img { width: 100%; height: auto; display: block; }
.trio .btn { margin-top: 28px; }

.links {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 28px 20px 50px;
  margin-bottom: 60px;
}
.links h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0.1em 0.1em 0.2em #000;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.logo-row a {
  display: block;
  background: #fff;
  width: 150px;
  height: 150px;
}
.logo-row img { width: 150px; height: 150px; object-fit: contain; display: block; }

.page-head {
  background: #f5f5f5;
  padding: 18px 0 22px;
}
.page-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-head h1 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: 34px;
  color: #333;
}
.crumbs { font-size: 14px; color: var(--green); }
.crumbs a { color: var(--green); }
.crumbs a:hover { color: var(--yellow); }

.entry-wrap {
  width: min(var(--container), calc(100% - 40px));
  margin: 36px auto 70px;
}
.entry h1, .entry h2, .entry h3, .entry .entry-title, .entry .entry-title a {
  color: var(--green);
  font-weight: 400;
  line-height: 1.35;
}
.entry h1 { font-family: var(--script); font-size: 30px; }
.entry h2, .entry .entry-title { font-family: var(--font); font-size: 30px; }
.entry h3 { font-size: 18px; }
.entry p { margin: 0 0 1em; }
.entry .siteorigin-widget-tinymce p { text-align: justify; }
.entry ul, .entry ol { margin: 0 0 1em; padding-left: 1.2em; }
.entry img { height: auto; }
.entry .saibaMais, .entry .saibaMais a,
.entry p.button {
  background: var(--green);
  color: #fff !important;
  display: inline-block;
  padding: 12px 16px;
  line-height: 1.2;
}
.entry p.button a { color: #fff !important; }
.entry p.button a:hover { color: #fff !important; }
.entry p.button .fa { display: none; }
.entry p.button::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
  background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 3a9 9 0 00-7.8 13.5L3 21l4.7-1.2A9 9 0 1012 3z'/></svg>");
}
.entry .panel-grid,
.entry .panel-row-style { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.entry .panel-grid-cell { min-width: 0; }
.entry .panel-grid-cell-empty { min-height: 1px; }
.entry .panel-grid:has(#banner-topo),
.entry #banner-topo,
.entry .sow-slider-base,
.entry .sow-slide-nav,
.entry .sow-slider-pagination { display: none !important; }
.entry table { width: 100% !important; max-width: 100%; border-collapse: collapse; }
.entry td, .entry th { width: auto !important; height: auto !important; display: block; border-bottom: 1px solid #e4e4e4; }
.entry td ul, .entry th ul { margin: 0; padding: 16px 0 16px 1.3em; }
.entry td li { margin: 0; }
.entry .map-frame { width: 100%; height: 420px; border: 0; }
.entry form p { margin: 0 0 14px; }
.entry label { display: block; margin-bottom: 6px; }
.entry input[type="text"],
.entry input[type="email"],
.entry input[type="tel"],
.entry textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 16px;
  color: #333;
  background: #fff;
}
.entry textarea { min-height: 160px; resize: vertical; }
.entry input[type="submit"],
.entry button[type="submit"] {
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  font-size: 18px;
  cursor: pointer;
}
.form-feedback { min-height: 1.4em; margin-top: 8px; }
.hp { position: absolute; left: -9999px; }

.news-list { width: min(1040px, calc(100% - 40px)); margin: 10px auto 60px; }
.news-item {
  display: grid;
  grid-template-columns: minmax(220px, 42%) 1fr;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid #e4e4e4;
}
.news-item img { width: 100%; height: auto; display: block; }
.news-kicker {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.news-item h2 { margin: 0 0 10px; font-size: 28px; font-weight: 400; line-height: 1.25; }
.news-item h2 a { color: var(--green); }
.news-item h2 a:hover { color: var(--yellow); }
.news-item p { margin: 0; color: #555; }
.news-date { display: block; text-align: right; color: #888; font-size: 14px; margin-top: 16px; }

.post .entry { text-align: center; }
.post .entry p, .post .entry li { text-align: left; }
.post .entry img { margin: 0 auto 18px; display: block; }

.site-footer { background: var(--footer); color: #fff; font-size: 16px; line-height: 1.55; }
.footer-grid {
  display: grid;
  grid-template-columns: 160px 1.3fr 1fr auto;
  gap: 24px 28px;
  align-items: start;
  padding: 28px 0 22px;
}
.footer-logo img { width: 125px; height: auto; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; margin: 0; }
.site-footer address p, .footer-wa { margin: 0 0 8px; }
.footer-wa { list-style: none; padding: 0; }
.footer-wa a, .site-footer address a { display: inline-flex; align-items: center; gap: 8px; }
.footer-social { display: flex; gap: 10px; list-style: none; margin: 8px 0 0; padding: 0; }
.footer-social a {
  width: 42px;
  height: 42px;
  border: 1px solid #fff;
  display: grid;
  place-items: center;
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.copyright {
  background: var(--green);
  color: #d7d7d7;
  text-align: center;
  font-size: 13px;
  padding: 10px 0;
}
.copyright a { color: #fff; }

.wa-float { position: fixed; left: 16px; bottom: 16px; z-index: 70; }
.wa-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.wa-toggle svg { width: 20px; height: 20px; fill: #fff; }
.wa-panel[hidden] { display: none; }
.wa-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.wa-panel a { padding: 6px 10px; color: var(--green); font-weight: 700; }
.wa-float { display: flex; flex-direction: column; align-items: flex-start; }
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  width: 40px;
  height: 40px;
  border: 0;
  background: #6d6d6d;
  color: #fff;
  cursor: pointer;
}
.to-top svg { width: 20px; height: 20px; }

.search-page { width: min(800px, calc(100% - 40px)); margin: 30px auto 70px; }
.search-page li { margin: 0 0 12px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 0 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a,
  .has-overlay .main-nav > ul > li > a,
  .submenu a {
    color: #333 !important;
    text-shadow: none !important;
    display: block;
    padding: 12px 22px;
  }
  .has-sub { display: block; }
  .sub-toggle { position: absolute; right: 12px; top: 8px; color: #333; }
  .submenu { position: static; display: none; box-shadow: none; border-top: 0; min-width: 0; }
  .has-sub.open > .submenu { display: block; }
  .nav-search { display: flex; gap: 8px; padding: 12px 22px; }
  .nav-search input { flex: 1; border: 1px solid #ccc; padding: 8px 10px; }
  .nav-search button { background: var(--green); color: #fff; border: 0; width: 42px; }
  .nav-search svg { width: 18px; height: 18px; }
  .has-overlay .nav-toggle { color: #fff; }
}

@media (max-width: 780px) {
  .welcome, .trio, .news-item, .footer-grid { grid-template-columns: 1fr; }
  .trio { padding: 0; }
  .welcome h1 span, .mid-banner h2, .links h2 { font-size: 32px; }
  .hero { justify-content: flex-start; padding-top: 96px; }
  .associe { top: auto; bottom: 16px; right: 50%; transform: translateX(50%); width: 96px; }
  .associe img { width: 96px; }
  .entry .panel-grid,
  .entry .panel-row-style { flex-direction: column; }
  .entry .panel-grid-cell,
  .entry .panel-grid-cell-empty { width: 100% !important; }
  .entry .panel-grid-cell-empty { display: none; }
  .page-head-inner { flex-direction: column; align-items: flex-start; }
  .logo-row a, .logo-row img { width: 120px; height: 120px; }
  .topbar-inner { justify-content: center; }
}
