/*
 Theme Name: MAPAAGRI Twenty Seventeen Child
 Description: Tema institucional do projeto MapaAgri.
 Template: twentyseventeen
 Version: 0.1.0
 License: GNU General Public License v2 or later
 Text Domain: twentyseventeen-child-mapaagri
*/

@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap");

:root {
  --mapaagri-blue-dark: #00284f;
  --mapaagri-green: #14952b;
  --mapaagri-blue: #1685ee;
  --mapaagri-white: #ffffff;
  --mapaagri-content-width: 1160px;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: "Titillium Web", sans-serif;
}

/* Cabeçalho */

.mapaagri-header {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 74px;
  background: var(--mapaagri-blue-dark);
}

.mapaagri-header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, var(--mapaagri-content-width));
  min-height: 74px;
  margin: 0 auto;
}

.mapaagri-header__brand {
  display: flex;
  align-items: center;
}

.mapaagri-logo,
.mapaagri-footer__logo {
  display: inline-flex;
  align-items: center;
  color: var(--mapaagri-white);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.5px;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-logo:hover,
.mapaagri-logo:focus,
.mapaagri-footer__logo:hover,
.mapaagri-footer__logo:focus {
  color: var(--mapaagri-white);
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-logo__green {
  color: var(--mapaagri-green);
}

.mapaagri-logo__blue {
  color: var(--mapaagri-blue);
}

.mapaagri-header .custom-logo-link {
  display: block;
  padding: 0;
  box-shadow: none;
}

.mapaagri-header .custom-logo {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 52px;
}

.mapaagri-navigation {
  display: flex;
  align-items: center;
}

.mapaagri-menu {
  display: flex;
  align-items: center;
  gap: clamp(30px, 5vw, 66px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mapaagri-menu li {
  margin: 0;
  padding: 0;
  border: 0;
}

.mapaagri-menu a {
  display: block;
  padding: 10px 0;
  color: var(--mapaagri-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-menu a:hover,
.mapaagri-menu a:focus {
  color: #8bd879;
  text-decoration: none;
  box-shadow: none;
}

/* Ajuste para telas menores */

@media screen and (max-width: 700px) {
  .mapaagri-header__content {
    flex-direction: column;
    gap: 12px;
    width: calc(100% - 36px);
    padding: 18px 0;
  }

  .mapaagri-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
  }

  .mapaagri-menu a {
    font-size: 16px;
  }
}

/* Home construída com Gutenberg */

.home .site-content {
  padding: 0;
}

.home .twentyseventeen-panel {
  border: 0;
}

.home .panel-content .wrap {
  width: 100%;
  max-width: none;
  padding: 0;
}

.home .panel-content .entry-header {
  display: none;
}

.home .panel-content .entry-content {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.home .panel-content article {
  margin: 0;
  padding: 0;
}

.home .entry-content > * {
  max-width: none;
}

.home .edit-link {
  display: none;
}

body.home.page-one-column .panel-content .entry-content {
  float: none;
  width: 100%;
}

body.home.page-one-column .panel-content .wrap {
  width: 100%;
  max-width: none;
  padding: 0;
}

.home .wp-block-cover.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-right: 0;
  margin-left: 0;
}

/* Remove definitivamente as colunas do Twenty Seventeen na Home */

body.home .panel-content .wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .panel-content .entry-header {
  display: none !important;
}

body.home .panel-content .entry-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home #primary,
body.home .content-area,
body.home article,
body.home .twentyseventeen-panel {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .entry-content .wp-block-cover.alignfull,
body.home .entry-content > .alignfull {
  position: relative !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Seção de produtos */

.mapaagri-products {
  box-sizing: border-box;
  width: 100%;
  padding: 54px 24px 64px;
  background: #ffffff;
}

.mapaagri-products > .wp-block-group__inner-container {
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-products .wp-block-heading {
  margin: 0;
  color: #111820;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.mapaagri-section-line {
  width: 60px !important;
  height: 3px;
  margin: 14px auto 32px !important;
  border: 0 !important;
  background: var(--mapaagri-green);
}

/* Grade de cards */

.mapaagri-cards {
  display: flex;
  align-items: stretch;
  gap: 28px;
  width: min(100%, 1000px);
  margin: 0 auto;
}

.mapaagri-cards > .wp-block-column {
  display: flex;
  margin: 0;
}

.mapaagri-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 310px;
  padding: 28px 22px;
  border: 1px solid #e1e5e8;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(0, 35, 67, 0.1);
}

.mapaagri-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.mapaagri-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 35, 67, 0.14);
}

/* Logo do card */

.mapaagri-card-logo {
  margin: 0 0 16px;
}

.mapaagri-card-logo img {
  display: block;
  width: auto !important;
  max-width: 180px !important;
  height: 74px !important;
  object-fit: contain;
}

/* Etiqueta verde */

.mapaagri-card-tag {
  align-self: flex-start;
  display: inline-block;
  width: auto;
  margin: 0 0 14px !important;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mapaagri-green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

@media screen and (max-width: 781px) {
  .mapaagri-cards {
    flex-direction: column;
  }
}

/* Conteúdo interno dos cards */

.mapaagri-card .wp-block-heading,
.mapaagri-card h2,
.mapaagri-card h3 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.mapaagri-card-description {
  margin: 0 0 20px !important;
  color: #4a5159;
  font-size: 15px;
  line-height: 1.65;
}

.mapaagri-card-link {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  color: var(--mapaagri-green);
  font-size: 15px;
  font-weight: 600;
}

.mapaagri-card-link a {
  color: var(--mapaagri-green);
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-card-link a:hover,
.mapaagri-card-link a:focus {
  color: #0d721f;
  text-decoration: none;
  box-shadow: none;
}

/* Alinha os links na base dos cards */

.mapaagri-card {
  height: 100%;
}

.mapaagri-card > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mapaagri-card-link {
  margin-top: auto !important;
}

/* Seção de destaque BDC-AGRI */

.mapaagri-platform {
  box-sizing: border-box;
  width: 100%;
  padding: 68px 24px;
  background:
    radial-gradient(
      circle at 72% 45%,
      rgba(13, 93, 137, 0.7) 0,
      rgba(13, 93, 137, 0) 40%
    ),
    var(--mapaagri-blue-dark);
  color: #ffffff;
}

.mapaagri-platform > .wp-block-group__inner-container {
  width: 100%;
}

.mapaagri-platform-columns {
  align-items: center !important;
  gap: clamp(38px, 6vw, 80px);
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-platform-label {
  margin: 0 !important;
  color: #24b73e;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.mapaagri-platform-line {
  width: 58px !important;
  height: 2px;
  margin: 18px 0 38px !important;
  border: 0 !important;
  background: var(--mapaagri-green);
}

.mapaagri-platform-title {
  margin: 0 0 18px !important;
  color: #ffffff;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.18;
}

.mapaagri-platform-description {
  max-width: 430px;
  margin: 0 0 28px !important;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.65;
}

.mapaagri-platform-button .wp-block-button__link {
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--mapaagri-green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-platform-button .wp-block-button__link:hover,
.mapaagri-platform-button .wp-block-button__link:focus {
  background: #0d7d21;
  color: #ffffff;
  box-shadow: none;
}

.mapaagri-platform-image {
  margin: 0;
}

.mapaagri-platform-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

@media screen and (max-width: 781px) {
  .mapaagri-platform {
    padding: 48px 20px;
  }

  .mapaagri-platform-columns {
    gap: 38px;
  }

  .mapaagri-platform-title {
    font-size: 32px;
  }
}

/* Ajustes da seção da plataforma */

.mapaagri-platform .mapaagri-platform-button .wp-block-button__link {
  background-color: var(--mapaagri-green) !important;
  color: #ffffff !important;
}

.mapaagri-platform .mapaagri-platform-button .wp-block-button__link:hover,
.mapaagri-platform .mapaagri-platform-button .wp-block-button__link:focus {
  background-color: #0d7d21 !important;
}

.mapaagri-platform-image img {
  width: 120% !important;
  max-width: none !important;
  margin-left: -10%;
}

/* Barra institucional do Governo */

.mapaagri-government-bar {
  width: 100%;
  min-height: 40px;
  background: #071d41;
  color: #ffffff;
}

.mapaagri-government-bar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, var(--mapaagri-content-width));
  min-height: 40px;
  margin: 0 auto;
}

.mapaagri-government-bar__brand {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-government-bar__links {
  display: flex;
  align-items: center;
  height: 22px;
}

.mapaagri-government-bar__links a {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.mapaagri-government-bar__links a:last-child {
  padding-right: 0;
}

.mapaagri-government-bar a:hover,
.mapaagri-government-bar a:focus {
  color: #90d98a !important;
  text-decoration: none;
  box-shadow: none;
}

@media screen and (max-width: 800px) {
  .mapaagri-government-bar__content {
    width: calc(100% - 32px);
  }

  .mapaagri-government-bar__links a {
    padding: 0 10px;
    font-size: 10px;
  }

  .mapaagri-government-bar__links a:nth-child(2),
  .mapaagri-government-bar__links a:nth-child(3) {
    display: none;
  }
}

/* Menu institucional INPE + BIG */

.mapaagri-header {
  min-height: 76px;
  background: #ffffff;
  border-bottom: 1px solid #e2e6ea;
  box-shadow: 0 3px 12px rgba(0, 31, 63, 0.08);
}

.mapaagri-header__content {
  min-height: 76px;
}

.mapaagri-institutional-brands {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mapaagri-inpe-logo {
  display: block;
  padding: 0;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-inpe-logo img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 150px;
  object-fit: contain;
}

.mapaagri-big-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 3px;
  background: #1f5fa7;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transform: skewX(-12deg);
  box-shadow: none;
}

.mapaagri-big-logo:hover,
.mapaagri-big-logo:focus {
  background: #0d7d21;
  color: #ffffff !important;
  box-shadow: none;
}

.mapaagri-header .mapaagri-menu a {
  color: #27384b;
}

.mapaagri-header .mapaagri-menu a:hover,
.mapaagri-header .mapaagri-menu a:focus {
  color: var(--mapaagri-green);
}

@media screen and (max-width: 700px) {
  .mapaagri-government-bar__content {
    width: calc(100% - 32px);
  }

  .mapaagri-government-bar__links {
    gap: 12px;
  }

  .mapaagri-government-bar__links a:first-child {
    display: none;
  }

  .mapaagri-inpe-logo img {
    height: 44px;
  }
}

/* Rodapé institucional */

.mapaagri-footer {
  width: 100%;
  margin: 0;
  color: #ffffff;
}

.mapaagri-footer__main {
  padding: 48px 24px;
  background: #071d41;
}

.mapaagri-footer__content {
  display: grid;
  grid-template-columns: 220px minmax(300px, 1fr) 220px;
  gap: 52px;
  align-items: start;
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-footer__title {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.mapaagri-footer__identity p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.6;
}

.mapaagri-footer__description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.6;
}

.mapaagri-footer__navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mapaagri-footer__navigation a {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-footer__navigation a:hover,
.mapaagri-footer__navigation a:focus {
  color: #8bd879;
  text-decoration: none;
  box-shadow: none;
}

/* Faixa de parceiros */

.mapaagri-footer__partners {
  padding: 26px 24px;
  background: #ffffff;
}

.mapaagri-footer__partners-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: min(calc(100% - 64px), 1240px);
  margin: 0 auto;
}

.mapaagri-footer__partners-content a {
  color: #173b64;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-footer__partners-content a:hover,
.mapaagri-footer__partners-content a:focus {
  color: var(--mapaagri-green);
  text-decoration: none;
  box-shadow: none;
}

/* Faixa de copyright */

.mapaagri-footer__copyright {
  padding: 20px 24px;
  background: #04132a;
}

.mapaagri-footer__copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* Rodapé responsivo */

@media screen and (max-width: 900px) {
  .mapaagri-footer__content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .mapaagri-footer__description {
    grid-column: span 2;
  }

  .mapaagri-footer__partners-content {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (max-width: 600px) {
  .mapaagri-footer__main {
    padding: 38px 20px;
  }

  .mapaagri-footer__content {
    grid-template-columns: 1fr;
  }

  .mapaagri-footer__description {
    grid-column: auto;
  }

  .mapaagri-footer__partners-content {
    flex-direction: column;
    gap: 18px;
  }
}

/* Logos institucionais do rodapé */

.mapaagri-footer__partners-content a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 70px;
}

.mapaagri-footer__partners-content img {
  display: block;
  width: auto;
  max-width: 175px;
  height: 70px;
  object-fit: contain;
}

.mapaagri-footer__partners-content a:first-child img {
  max-width: 150px;
}

.mapaagri-footer__partners-content a:nth-child(3) img {
  max-width: 190px;
}

@media screen and (max-width: 600px) {
  .mapaagri-footer__partners-content img {
    max-width: 150px;
    height: 52px;
  }
}

/* Respiro entre os cards e o rodapé */

.mapaagri-cards {
  margin: 0 auto 72px;
}

/* Transição discreta para o rodapé */

.mapaagri-footer {
  border-top: 4px solid var(--mapaagri-green);
}

/* Aumenta a área visual dos logos dos cards */

.mapaagri-card-logo {
  display: flex;
  align-items: center;
  min-height: 96px;
  margin-bottom: 18px;
}

.mapaagri-card-logo img {
  width: auto !important;
  max-width: 190px !important;
  height: 90px !important;
  max-height: 90px !important;
  object-fit: contain;
}

/* Dá mais destaque à composição da plataforma */

.mapaagri-platform-image img {
  width: 145% !important;
  max-width: none !important;
  max-height: 600px;
  margin-left: -22.5%;
}

@media screen and (max-width: 781px) {
  .mapaagri-platform-image img {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
  }
}

/* Ampliação visual das imagens dos cards */

.mapaagri-card-logo {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 110px;
  overflow: visible;
}

.mapaagri-card-logo img {
  width: auto !important;
  max-width: 190px !important;
  height: 82px !important;
  object-fit: contain;
  transform: scale(1.3);
  transform-origin: left center;
}

/* O logo AgriRS possui mais área transparente */

.mapaagri-cards > .wp-block-column:nth-child(3) .mapaagri-card-logo img {
  transform: scale(1.8);
}

/* Ampliação efetiva da composição da plataforma */

.mapaagri-platform-image {
  position: relative;
  z-index: 2;
  transform: scale(1.18);
  transform-origin: center;
}

@media screen and (max-width: 781px) {
  .mapaagri-platform-image {
    transform: none;
  }

  .mapaagri-card-logo img,
  .mapaagri-cards > .wp-block-column:nth-child(3) .mapaagri-card-logo img {
    transform: scale(1.15);
  }
}

/* Ajuste do texto da seção da plataforma */

.mapaagri-platform-title {
  max-width: 520px;
  font-size: 36px;
  line-height: 1.22;
}

.mapaagri-platform-description {
  max-width: 450px;
}

.mapaagri-platform-columns {
  column-gap: 100px !important;
}

/* Padronização final das imagens dos cards */

.mapaagri-card-logo {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 88px;
  min-height: 88px;
  margin: 0 0 16px !important;
  overflow: hidden;
}

.mapaagri-card-logo img,
.mapaagri-cards > .wp-block-column:nth-child(3) .mapaagri-card-logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 170px !important;
  max-height: 82px !important;
  margin: 0 !important;
  object-fit: contain;
  transform: none !important;
}

/* Selos discretos dos cards */

.mapaagri-card .mapaagri-card-tag {
  align-self: flex-start;
  width: auto;
  margin: 0 0 18px !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mapaagri-green);
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.1px;
}

/* Linha animada do menu */

.mapaagri-menu > li > a {
  position: relative;
}

.mapaagri-menu > li > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--mapaagri-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.mapaagri-menu > li > a:hover::after,
.mapaagri-menu > li > a:focus::after,
.mapaagri-menu > .current-menu-item > a::after {
  transform: scaleX(1);
}

/* Hero principal */

.mapaagri-hero {
  min-height: 500px !important;
}

.mapaagri-hero img {
  object-position: center center;
}

@media screen and (max-width: 781px) {
  .mapaagri-hero {
    min-height: 280px !important;
  }
}

/* Identidade MapaAgri centralizada na hero */

.mapaagri-hero {
  position: relative;
  overflow: hidden;
}

/* Desfoque progressivo ao redor do centro */

.mapaagri-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 64px), var(--mapaagri-content-width));
  margin: 0 auto;
}

/* Logo */

.mapaagri-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mapaagri-hero-logo img {
  display: block;
  width: 500px !important;
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 781px) {
  .mapaagri-hero .wp-block-cover__inner-container {
    width: calc(100% - 40px);
  }

  .mapaagri-hero-logo {
    padding: 0;
  }

  .mapaagri-hero-logo img {
    width: 280px !important;
  }

  .mapaagri-hero-tagline {
    margin-top: 14px !important;
    font-size: 17px;
  }
}

.mapaagri-hero .wp-block-cover__inner-container {
  flex-direction: column;
}

.mapaagri-hero-tagline {
  max-width: 620px;
  margin: 18px 0 0 !important;
  color: #ffffff;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 20, 40, 0.8);
}

@media screen and (max-width: 781px) {
  .mapaagri-hero-tagline {
    margin-top: 14px !important;
    font-size: 17px;
  }
}

.mapaagri-footer__logo {
  display: inline-block;
  margin: 0 0 18px;
  padding: 0;
  box-shadow: none;
}

.mapaagri-footer__logo img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.mapaagri-footer__logo:hover,
.mapaagri-footer__logo:focus {
  box-shadow: none;
  opacity: 0.9;
}

/* Área centralizada dos ícones dos cards */

.mapaagri-card-logo {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 148px;
  min-height: 148px;
  margin: 0 0 18px !important;
  overflow: visible;
}

.mapaagri-card-logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 158px;
  height: 136px;
  background: #edf2f5;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transform: translate(-50%, -50%);
}

/* Mantém a imagem acima da forma */

.mapaagri-card-logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 132px !important;
  max-height: 92px !important;
  margin: 0 auto !important;
  object-fit: contain;
}

.mapaagri-card-logo--agrirs img {
  max-width: 150px !important;
  max-height: 76px !important;
}

/* Página Nosso Time — banner sem imagem */

.mapaagri-team-hero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  padding: 64px 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 45%,
      rgba(22, 133, 238, 0.2),
      transparent 36%
    ),
    linear-gradient(120deg, #00284f 0%, #063d70 100%);
}

/* Detalhe gráfico discreto */

.mapaagri-team-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -95px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.mapaagri-team-hero > .wp-block-group__inner-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(100%, var(--mapaagri-content-width));
  min-height: 92px;
  margin: 0 auto;
}

.mapaagri-team-hero__title {
  margin: 0 !important;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
}

@media screen and (max-width: 781px) {
  .mapaagri-team-hero {
    min-height: 180px;
    padding: 48px 20px;
  }

  .mapaagri-team-hero__title {
    font-size: 34px;
  }
}

/* Página Nosso Time — remove o layout do Twenty Seventeen */

body.mapaagri-team-page .site-content {
  padding: 0;
}

body.mapaagri-team-page .site-content .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mapaagri-team-page #primary,
body.mapaagri-team-page .content-area,
body.mapaagri-team-page article {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Oculta o título automático “NOSSO TIME” */

body.mapaagri-team-page .entry-header {
  display: none !important;
}

body.mapaagri-team-page .entry-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mapaagri-team-page .entry-content > * {
  max-width: none;
}

/* Garante que o banner ocupe toda a largura */

body.mapaagri-team-page .mapaagri-team-hero {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Página Nosso Time — seções */

.mapaagri-team-section {
  box-sizing: border-box;
  width: 100%;
  padding: 64px 24px 72px;
}

.mapaagri-team-section--light {
  background: #f3f7fb;
}

.mapaagri-team-container {
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-team-section__title {
  margin: 0 0 12px !important;
  color: #172033;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}

.mapaagri-team-section__description {
  max-width: 760px;
  margin: 0 0 34px !important;
  color: #4a5159;
  font-size: 16px;
  line-height: 1.6;
}

@media screen and (max-width: 781px) {
  .mapaagri-team-section {
    padding: 48px 20px 56px;
  }

  .mapaagri-team-section__title {
    font-size: 26px;
  }
}

/* Grade da equipe */

.mapaagri-team-grid {
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  gap: 22px;
}

/* Card de integrante */

.mapaagri-team-card {
  box-sizing: border-box;
  min-height: 140px;
  padding: 24px 20px;
  border: 1px solid #e0e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 40, 79, 0.09);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.mapaagri-team-card:hover {
  transform: translateY(-4px);
  box-shadowloom: 0 12px 26px rgba(0, 40, 79, 0.14);
}

.mapaagri-team-card > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Foto do integrante */

.mapaagri-team-card__logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 150px !important;
  height: 150px !important;
  margin: 0 auto 20px !important;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 50%;
}

.mapaagri-team-card__logo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center top;
}

/* Nome e função */

.mapaagri-team-card__name {
  margin: 0 0 10px !important;
  color: #172033;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.mapaagri-team-card__role {
  margin: auto 0 0 !important;
  color: #59616a;
  font-size: 14px;
  line-height: 1.45;
}

/* Responsividade */

@media screen and (max-width: 700px) {
  .mapaagri-team-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px !important;
  }

  .mapaagri-team-card {
    min-height: 200px;
  }
}

/* Centraliza o conteúdo dos cards da equipe */

.mapaagri-team-card {
  text-align: center;
}

.mapaagri-team-card > .wp-block-group__inner-container {
  align-items: center;
}

.mapaagri-team-card__logo {
  justify-content: center;
}

.mapaagri-team-card__logo img {
  margin-right: auto !important;
  margin-left: auto !important;
}

.mapaagri-team-card__name,
.mapaagri-team-card__role {
  width: 100%;
  text-align: center;
}

/* instituições parceiras */

.mapaagri-partners-grid {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px;
}

.mapaagri-partners-grid .mapaagri-team-card__logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 75px !important;
  margin: 0 0 20px !important;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.mapaagri-partners-grid .mapaagri-team-card__logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 160px !important;
  max-height: 70px !important;
  margin: 0 auto !important;
  object-fit: contain;
  border-radius: 0;
}

@media screen and (max-width: 520px) {
  .mapaagri-partners-grid {
    width: min(100%, 260px) !important;
    grid-template-columns: 1fr !important;
  }
}

/* Seção azul da equipe */

.mapaagri-team-section--blue {
  background:
    radial-gradient(
      circle at 82% 30%,
      rgba(22, 133, 238, 0.2),
      transparent 34%
    ),
    linear-gradient(125deg, #063967 0%, #175b96 100%);
}

.mapaagri-team-section--blue .mapaagri-team-section__title {
  color: #ffffff;
}

.mapaagri-team-section--blue .mapaagri-team-section__description {
  color: rgba(255, 255, 255, 0.86);
}

.mapaagri-team-section--blue .mapaagri-team-card {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Cards de instituições parceiras */

.mapaagri-partner-card {
  min-height: 240px;
}

.mapaagri-partner-card .mapaagri-team-card__logo {
  height: 90px;
  min-height: 90px;
  margin-bottom: 18px !important;
}

.mapaagri-partner-card .mapaagri-team-card__logo img {
  max-width: 155px !important;
  max-height: 80px !important;
}

.mapaagri-partner-card .mapaagri-team-card__name {
  font-size: 16px;
}

/* Chamada final da página Nosso Time */

.mapaagri-team-cta {
  box-sizing: border-box;
  width: 100%;
  padding: 72px 24px;
  background:
    radial-gradient(
      circle at 80% 45%,
      rgba(22, 133, 238, 0.22),
      transparent 34%
    ),
    var(--mapaagri-blue-dark);
  color: #ffffff;
}

.mapaagri-team-cta__container {
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-team-cta h2 {
  margin: 0 0 16px !important;
  color: #ffffff;
  font-size: 34px;
  font-weight: 600;
}

.mapaagri-team-cta p {
  max-width: 680px;
  margin: 0 0 28px !important;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.65;
}

.mapaagri-team-cta__button .wp-block-button__link {
  padding: 13px 22px;
  color: #ffffff !important;
  background: var(--mapaagri-green) !important;
  border: 2px solid var(--mapaagri-green) !important;
  border-radius: 7px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none !important;
}

.mapaagri-team-cta__button .wp-block-button__link:hover,
.mapaagri-team-cta__button .wp-block-button__link:focus {
  color: #ffffff !important;
  background: #0d7d21 !important;
  border-color: #0d7d21 !important;
  box-shadow: none !important;
}

/* Corrige o botão da chamada final */

body.mapaagri-team-page
  .mapaagri-team-cta
  .mapaagri-team-cta__button
  .wp-block-button__link {
  padding: 13px 24px;
  border: 0;
  border-radius: 7px;
  background-color: var(--mapaagri-green) !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none !important;
}

body.mapaagri-team-page
  .mapaagri-team-cta
  .mapaagri-team-cta__button
  .wp-block-button__link:hover,
body.mapaagri-team-page
  .mapaagri-team-cta
  .mapaagri-team-cta__button
  .wp-block-button__link:focus {
  background-color: #0d7d21 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Link do currículo Lattes */

.mapaagri-team-grid .mapaagri-team-card__name a {
  position: relative;
  display: inline-block;
  color: #172033;
  text-decoration: none !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

/* Seta externa */

.mapaagri-team-grid .mapaagri-team-card__name a::after {
  content: "↗";
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  color: #14952b;
  text-decoration: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translate(-2px, -50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* Interação */

.mapaagri-team-grid .mapaagri-team-card__name a:hover,
.mapaagri-team-grid .mapaagri-team-card__name a:focus {
  color: #14952b !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
}

.mapaagri-team-grid .mapaagri-team-card__name a:hover::after,
.mapaagri-team-grid .mapaagri-team-card__name a:focus::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

/* Centraliza nome e função dos integrantes */

.mapaagri-team-grid .mapaagri-team-card__name,
.mapaagri-team-grid .mapaagri-team-card__role {
  width: 100%;
  text-align: center;
}


/* Página Sobre o projeto — remove o layout do Twenty Seventeen */

body.mapaagri-project-page .site-content {
  padding: 0;
}

body.mapaagri-project-page .site-content .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mapaagri-project-page #primary,
body.mapaagri-project-page .content-area,
body.mapaagri-project-page article {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mapaagri-project-page .entry-header {
  display: none !important;
}

body.mapaagri-project-page .entry-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mapaagri-project-page .entry-content > * {
  max-width: none;
}

/* Página Sobre o projeto — banner */

.mapaagri-project-hero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  padding: 64px 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 45%,
      rgba(22, 133, 238, 0.2),
      transparent 36%
    ),
    linear-gradient(120deg, #00284f 0%, #063d70 100%);
}

.mapaagri-project-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -95px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.mapaagri-project-hero > .wp-block-group__inner-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(100%, var(--mapaagri-content-width));
  min-height: 92px;
  margin: 0 auto;
}

.mapaagri-project-hero__title {
  margin: 0 !important;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
}

@media screen and (max-width: 781px) {
  .mapaagri-project-hero {
    min-height: 180px;
    padding: 48px 20px;
  }

  .mapaagri-project-hero__title {
    font-size: 34px;
  }
}

/* Sobre o projeto — introdução */

.mapaagri-project-intro {
  box-sizing: border-box;
  width: 100%;
  padding: 68px 24px 76px;
  background: #ffffff;
}

.mapaagri-project-container {
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-project-intro__columns {
  align-items: flex-start !important;
  gap: clamp(48px, 7vw, 100px);
  margin: 0 !important;
}

.mapaagri-project-section__title {
  margin: 0 0 20px !important;
  color: #172033;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
}

.mapaagri-project-intro__lead {
  max-width: 430px;
  margin: 0 !important;
  color: #263142;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.mapaagri-project-text {
  margin: 0 0 20px !important;
  color: #4a5159;
  font-size: 17px;
  line-height: 1.65;
}

@media screen and (max-width: 781px) {
  .mapaagri-project-intro {
    padding: 48px 20px 56px;
  }

  .mapaagri-project-intro__columns {
    gap: 28px;
  }

  .mapaagri-project-section__title {
    font-size: 29px;
  }
}

/* Sobre o projeto — origem e propósito */

.mapaagri-project-origin {
  box-sizing: border-box;
  width: 100%;
  padding: 72px 24px 80px;
  background:
    radial-gradient(
      circle at 85% 30%,
      rgba(22, 133, 238, 0.18),
      transparent 34%
    ),
    linear-gradient(125deg, #365f8d 0%, #547eaa 100%);
}

.mapaagri-project-origin__title {
  margin: 0 0 34px !important;
  color: #ffffff;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
}

.mapaagri-project-origin__columns {
  align-items: center !important;
  gap: clamp(42px, 6vw, 84px);
  margin: 0 !important;
}

.mapaagri-project-origin__text {
  margin: 0 0 20px !important;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.68;
}

.mapaagri-project-origin__image {
  margin: 0 !important;
}

.mapaagri-project-origin__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 25, 50, 0.22);
}

@media screen and (max-width: 781px) {
  .mapaagri-project-origin {
    padding: 52px 20px 60px;
  }

  .mapaagri-project-origin__title {
    font-size: 29px;
  }

  .mapaagri-project-origin__columns {
    gap: 30px;
  }
}

/* Sobre o projeto — características */

.mapaagri-project-features {
  box-sizing: border-box;
  width: 100%;
  padding: 76px 24px 84px;
  background:
    radial-gradient(
      circle at 25% 45%,
      rgba(13, 93, 137, 0.55),
      transparent 38%
    ),
    var(--mapaagri-blue-dark);
}

.mapaagri-project-features__columns {
  align-items: center !important;
  gap: clamp(48px, 7vw, 96px);
  margin: 0 !important;
}

.mapaagri-project-features__image {
  margin: 0 !important;
}

.mapaagri-project-features__image img {
  display: block;
  width: 112% !important;
  max-width: none !important;
  height: auto;
  margin-left: -6%;
  object-fit: contain;
}

.mapaagri-project-features__title {
  margin: 0 0 22px !important;
  color: #ffffff;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
}

.mapaagri-project-features__text {
  margin: 0 0 18px !important;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.68;
}

.mapaagri-project-features__subtitle {
  margin: 32px 0 14px !important;
  color: #2ac044;
  font-size: 25px;
  font-weight: 600;
}

@media screen and (max-width: 781px) {
  .mapaagri-project-features {
    padding: 54px 20px 62px;
  }

  .mapaagri-project-features__columns {
    gap: 34px;
  }

  .mapaagri-project-features__image img {
    width: 100% !important;
    margin-left: 0;
  }

  .mapaagri-project-features__title {
    font-size: 29px;
  }
}

/* Remove o espaço inferior padrão do Twenty Seventeen */

body.mapaagri-project-page.page:not(.home) #content,
body.mapaagri-team-page.page:not(.home) #content {
  padding-bottom: 0 !important;
}

body.mapaagri-project-page .entry-content > :last-child,
body.mapaagri-team-page .entry-content > :last-child {
  margin-bottom: 0 !important;
}

/* Página APIs e Serviços — remove o layout do Twenty Seventeen */

body.mapaagri-services-page .site-content {
  padding: 0;
}

body.mapaagri-services-page .site-content .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mapaagri-services-page #primary,
body.mapaagri-services-page .content-area,
body.mapaagri-services-page article {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mapaagri-services-page .entry-header {
  display: none !important;
}

body.mapaagri-services-page .entry-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mapaagri-services-page .entry-content > * {
  max-width: none;
}

body.mapaagri-services-page.page:not(.home) #content {
  padding-bottom: 0 !important;
}

body.mapaagri-services-page .entry-content > :last-child {
  margin-bottom: 0 !important;
}

/* Página APIs e Serviços — banner */

.mapaagri-services-hero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 250px;
  padding: 60px 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 45%,
      rgba(22, 133, 238, 0.24),
      transparent 36%
    ),
    linear-gradient(120deg, #00284f 0%, #063d70 100%);
}

.mapaagri-services-hero::after {
  content: "</>";
  position: absolute;
  right: 10%;
  top: 50%;
  color: rgba(255, 255, 255, 0.07);
  font-family: monospace;
  font-size: clamp(90px, 12vw, 170px);
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.mapaagri-services-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, var(--mapaagri-content-width));
  min-height: 130px;
  margin: 0 auto;
}

.mapaagri-services-hero__title {
  margin: 0 0 14px !important;
  color: #ffffff;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.15;
}

.mapaagri-services-hero__description {
  max-width: 680px;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

@media screen and (max-width: 781px) {
  .mapaagri-services-hero {
    min-height: 210px;
    padding: 48px 20px;
  }

  .mapaagri-services-hero::after {
    right: -20px;
    font-size: 100px;
  }

  .mapaagri-services-hero__title {
    font-size: 34px;
  }

  .mapaagri-services-hero__description {
    max-width: 80%;
    font-size: 16px;
  }
}

/* APIs e Serviços — introdução */

.mapaagri-services-intro {
  box-sizing: border-box;
  width: 100%;
  padding: 68px 24px 76px;
  background: #ffffff;
}

.mapaagri-services-container {
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-services-intro__columns {
  align-items: flex-start !important;
  gap: clamp(48px, 7vw, 100px);
  margin: 0 !important;
}

.mapaagri-services-section__title {
  margin: 0 0 18px !important;
  color: #172033;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
}

.mapaagri-services-intro__lead {
  max-width: 430px;
  margin: 0 !important;
  color: #263142;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.mapaagri-services-text {
  margin: 0 0 20px !important;
  color: #4a5159;
  font-size: 17px;
  line-height: 1.65;
}

@media screen and (max-width: 781px) {
  .mapaagri-services-intro {
    padding: 48px 20px 56px;
  }

  .mapaagri-services-intro__columns {
    gap: 28px;
  }

  .mapaagri-services-section__title {
    font-size: 29px;
  }
}

/* APIs e Serviços — catálogo */

.mapaagri-services-catalog {
  box-sizing: border-box;
  width: 100%;
  padding: 68px 24px 80px;
  background: #f3f7fb;
}

.mapaagri-services-catalog__title {
  margin: 0 0 12px !important;
  color: #172033;
  font-size: 32px;
  font-weight: 600;
}

.mapaagri-services-catalog__description {
  max-width: 760px;
  margin: 0 0 36px !important;
  color: #4a5159;
  font-size: 16px;
  line-height: 1.6;
}

/* Grade */

.mapaagri-services-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

/* Card */

.mapaagri-service-card {
  box-sizing: border-box;
  min-height: 300px;
  padding: 28px 26px;
  border: 1px solid #dfe6ec;
  border-top: 4px solid var(--mapaagri-blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 40, 79, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.mapaagri-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 28px rgba(0, 40, 79, 0.14);
}

.mapaagri-service-card > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mapaagri-service-card__tag {
  align-self: flex-start;
  width: auto;
  margin: 0 0 22px !important;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e7f2fd;
  color: #075fae;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.mapaagri-service-card__title {
  margin: 0 0 14px !important;
  color: #172033;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.mapaagri-service-card__description {
  margin: 0 0 24px !important;
  color: #4a5159;
  font-size: 15px;
  line-height: 1.65;
}

.mapaagri-service-card__link {
  margin: auto 0 0 !important;
  color: var(--mapaagri-green);
  font-size: 15px;
  font-weight: 600;
}

.mapaagri-service-card__link a {
  color: var(--mapaagri-green);
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-service-card__link a:hover {
  color: #0d721f;
  box-shadow: none;
}

/* Responsividade */

@media screen and (max-width: 900px) {
  .mapaagri-services-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 620px) {
  .mapaagri-services-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
}

/* Variação visual para serviços OGC */

.mapaagri-service-card--ogc {
  border-color: #d6e8da;
  border-top-color: var(--mapaagri-green);
  background: #f8fcf9;
}

.mapaagri-service-card--ogc .mapaagri-service-card__tag {
  background: #e1f3e5;
  color: #0d721f;
}

.mapaagri-service-card--ogc:hover {
  border-top-color: #0d7d21;
  box-shadow: 0 13px 28px rgba(20, 149, 43, 0.13);
}

.mapaagri-service-card--ogc .mapaagri-service-card__link,
.mapaagri-service-card--ogc .mapaagri-service-card__link a {
  color: var(--mapaagri-green);
}

/* APIs e Serviços — como utilizar */

.mapaagri-services-howto {
  box-sizing: border-box;
  width: 100%;
  padding: 72px 24px 80px;
  background:
    radial-gradient(
      circle at 80% 35%,
      rgba(22, 133, 238, 0.2),
      transparent 36%
    ),
    var(--mapaagri-blue-dark);
}

.mapaagri-services-howto__title {
  margin: 0 0 12px !important;
  color: #ffffff;
  font-size: 32px;
  font-weight: 600;
}

.mapaagri-services-howto__description {
  max-width: 720px;
  margin: 0 0 38px !important;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.6;
}

/* Grade e contador */

.mapaagri-services-steps > .wp-block-group__inner-container {
  counter-reset: mapaagri-service-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.mapaagri-services-step {
  position: relative;
  counter-increment: mapaagri-service-step;
  box-sizing: border-box;
  min-height: 230px;
  padding: 66px 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

/* Número da etapa */

.mapaagri-services-step::before {
  content: "0" counter(mapaagri-service-step);
  position: absolute;
  top: 22px;
  left: 26px;
  color: #32c34b;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.mapaagri-services-step h3 {
  margin: 0 0 12px !important;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
}

.mapaagri-services-step p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

/* Responsividade */

@media screen and (max-width: 850px) {
  .mapaagri-services-steps > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .mapaagri-services-step {
    min-height: 190px;
  }
}

/* APIs e Serviços — documentação e suporte */

.mapaagri-services-support {
  box-sizing: border-box;
  width: 100%;
  padding: 72px 24px 80px;
  background: #ffffff;
  text-align: center;
}

.mapaagri-services-support
  > .wp-block-group__inner-container
  > .mapaagri-services-container {
  max-width: 820px;
}

.mapaagri-services-support__title {
  margin: 0 0 16px !important;
  color: #172033;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.mapaagri-services-support__description {
  max-width: 760px;
  margin: 0 auto 30px !important;
  color: #4a5159;
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.mapaagri-services-support .wp-block-buttons {
  justify-content: center;
  gap: 14px;
}

/* Botão principal */

body.mapaagri-services-page
  .mapaagri-services-support__primary
  .wp-block-button__link {
  padding: 13px 23px;
  border: 2px solid var(--mapaagri-green);
  border-radius: 7px;
  background: var(--mapaagri-green) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: none !important;
}

body.mapaagri-services-page
  .mapaagri-services-support__primary
  .wp-block-button__link:hover {
  border-color: #0d7d21;
  background: #0d7d21 !important;
}

/* Botão secundário */

body.mapaagri-services-page
  .mapaagri-services-support__secondary
  .wp-block-button__link {
  padding: 13px 23px;
  border: 2px solid var(--mapaagri-blue-dark);
  border-radius: 7px;
  background: transparent !important;
  color: var(--mapaagri-blue-dark) !important;
  font-weight: 600;
  box-shadow: none !important;
}

body.mapaagri-services-page
  .mapaagri-services-support__secondary
  .wp-block-button__link:hover {
  background: var(--mapaagri-blue-dark) !important;
  color: #ffffff !important;
}

@media screen and (max-width: 600px) {
  .mapaagri-services-support {
    padding: 52px 20px 60px;
  }

  .mapaagri-services-support .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .mapaagri-services-support .wp-block-button,
  .mapaagri-services-support .wp-block-button__link {
    width: 100%;
  }
}

/* Elementos temáticos das páginas internas */

.mapaagri-project-hero::after,
.mapaagri-team-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10%;
  bottom: auto;
  width: 185px;
  height: 185px;
  border: 0;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.075);
  transform: translateY(-50%);
  pointer-events: none;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.mapaagri-project-hero::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21 3 6'/%3E%3Cline x1='9' y1='3' x2='9' y2='18'/%3E%3Cline x1='15' y1='6' x2='15' y2='21'/%3E%3C/svg%3E");

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21 3 6'/%3E%3Cline x1='9' y1='3' x2='9' y2='18'/%3E%3Cline x1='15' y1='6' x2='15' y2='21'/%3E%3C/svg%3E");
}

.mapaagri-team-hero::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

@media screen and (max-width: 781px) {
  .mapaagri-project-hero::after,
  .mapaagri-team-hero::after {
    right: -18px;
    width: 125px;
    height: 125px;
    opacity: 0.75;
  }
}

/* Padroniza a altura da Hero de APIs */

.mapaagri-services-hero {
  min-height: 220px;
  padding: 50px 24px;
}

.mapaagri-services-hero__container {
  min-height: 120px;
}

@media screen and (max-width: 781px) {
  .mapaagri-services-hero {
    min-height: 190px;
    padding: 34px 20px;
  }

  .mapaagri-services-hero__container {
    min-height: 122px;
  }
}

/* Página Dados — remove o layout do Twenty Seventeen */

body.mapaagri-data-page .site-content {
  padding: 0;
}

body.mapaagri-data-page .site-content .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mapaagri-data-page #primary,
body.mapaagri-data-page .content-area,
body.mapaagri-data-page article {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mapaagri-data-page .entry-header {
  display: none !important;
}

body.mapaagri-data-page .entry-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mapaagri-data-page .entry-content > * {
  max-width: none;
}

body.mapaagri-data-page.page:not(.home) #content {
  padding-bottom: 0 !important;
}

body.mapaagri-data-page .entry-content > :last-child {
  margin-bottom: 0 !important;
}

/* Página Dados — Hero */

.mapaagri-data-hero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  padding: 50px 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 45%,
      rgba(22, 133, 238, 0.22),
      transparent 36%
    ),
    linear-gradient(120deg, #00284f 0%, #063d70 100%);
}

/* Símbolo de banco de dados */

.mapaagri-data-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10%;
  width: 175px;
  height: 175px;
  background-color: rgba(255, 255, 255, 0.075);
  transform: translateY(-50%);
  pointer-events: none;

  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v6c0 1.66 3.58 3 8 3s8-1.34 8-3V5'/%3E%3Cpath d='M4 11v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6'/%3E%3C/svg%3E");

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v6c0 1.66 3.58 3 8 3s8-1.34 8-3V5'/%3E%3Cpath d='M4 11v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6'/%3E%3C/svg%3E");

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.mapaagri-data-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, var(--mapaagri-content-width));
  min-height: 120px;
  margin: 0 auto;
}

.mapaagri-data-hero__title {
  margin: 0 0 14px !important;
  color: #ffffff;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
}

.mapaagri-data-hero__description {
  max-width: 760px;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.87);
  font-size: 17px;
  line-height: 1.55;
}

@media screen and (max-width: 781px) {
  .mapaagri-data-hero {
    min-height: 190px;
    padding: 34px 20px;
  }

  .mapaagri-data-hero__container {
    min-height: 122px;
  }

  .mapaagri-data-hero::after {
    right: -18px;
    width: 120px;
    height: 120px;
  }

  .mapaagri-data-hero__title {
    font-size: 34px;
  }

  .mapaagri-data-hero__description {
    max-width: 82%;
    font-size: 15px;
  }
}

/* Página Dados — catálogo */

.mapaagri-data-catalog {
  box-sizing: border-box;
  width: 100%;
  padding: 62px 24px 80px;
  background: #f5f8fb;
}

.mapaagri-data-container {
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-data-layout {
  align-items: flex-start !important;
  gap: clamp(34px, 5vw, 68px);
  margin: 0 !important;
}

/* Navegação lateral */

.mapaagri-data-sidebar {
  position: sticky;
  top: 24px;
  box-sizing: border-box;
  padding: 24px 22px;
  border: 1px solid #dfe6ec;
  border-radius: 8px;
  background: #ffffff;
}

.mapaagri-data-sidebar h3 {
  margin: 0 0 18px !important;
  color: #172033;
  font-size: 18px;
  font-weight: 600;
}

.mapaagri-data-navigation {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.mapaagri-data-navigation li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #edf0f3;
}

.mapaagri-data-navigation li:last-child {
  border-bottom: 0;
}

.mapaagri-data-navigation a {
  display: block;
  padding: 11px 4px;
  color: #3f4b59;
  font-size: 15px;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-data-navigation a:hover,
.mapaagri-data-navigation a:focus {
  color: var(--mapaagri-green);
  box-shadow: none;
}

/* Conteúdo */

.mapaagri-data-content {
  min-width: 0;
}

.mapaagri-data-category {
  margin: 0 0 54px;
  scroll-margin-top: 24px;
}

.mapaagri-data-category__title {
  margin: 0 0 24px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid #dce4ea;
  color: #172033;
  font-size: 28px;
  font-weight: 600;
}

/* Celular */

@media screen and (max-width: 781px) {
  .mapaagri-data-catalog {
    padding: 44px 20px 60px;
  }

  .mapaagri-data-layout {
    gap: 30px;
  }

  .mapaagri-data-sidebar {
    position: static;
  }
}

/* Cards do catálogo de dados */

.mapaagri-dataset-list {
  margin-top: 24px;
}

.mapaagri-dataset-card {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 40, 79, 0.08);
}

.mapaagri-dataset-card > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

/* Imagem */

.mapaagri-dataset-card__image {
  margin: 0 !important;
}

.mapaagri-dataset-card__image img {
  display: block;
  width: 170px !important;
  height: 112px !important;
  border-radius: 6px;
  object-fit: cover;
}

/* Conteúdo */

.mapaagri-dataset-card__body {
  min-width: 0;
}

.mapaagri-dataset-card__body > .wp-block-group__inner-container {
  display: block;
}

.mapaagri-dataset-card__title {
  margin: 0 0 8px !important;
  color: #172033;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.mapaagri-dataset-card__description {
  margin: 0 0 10px !important;
  color: #535d68;
  font-size: 14px;
  line-height: 1.55;
}

.mapaagri-dataset-card__format {
  margin: 0 !important;
  color: #68737e;
  font-size: 13px;
  font-weight: 600;
}

/* Ações */

.mapaagri-dataset-card__actions {
  min-width: 190px;
}

.mapaagri-dataset-card__actions > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mapaagri-dataset-card__buttons {
  display: flex;
  gap: 10px;
  margin: 0 0 9px !important;
}

.mapaagri-dataset-card__buttons .wp-block-button {
  margin: 0;
}

.mapaagri-dataset-card__buttons .wp-block-button__link {
  padding: 9px 14px;
  border-radius: 5px;
  background: var(--mapaagri-blue-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.mapaagri-dataset-card__buttons
  .wp-block-button:last-child
  .wp-block-button__link {
  background: var(--mapaagri-green);
}

.mapaagri-dataset-card__updated {
  margin: 0 !important;
  color: #707983;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

/* Responsividade */

@media screen and (max-width: 900px) {
  .mapaagri-dataset-card > .wp-block-group__inner-container {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .mapaagri-dataset-card__image img {
    width: 140px !important;
    height: 100px !important;
  }

  .mapaagri-dataset-card__actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .mapaagri-dataset-card__actions > .wp-block-group__inner-container {
    align-items: flex-start;
  }

  .mapaagri-dataset-card__updated {
    text-align: left;
  }
}

@media screen and (max-width: 600px) {
  .mapaagri-dataset-card > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .mapaagri-dataset-card__image img {
    width: 100% !important;
    height: 180px !important;
  }

  .mapaagri-dataset-card__actions {
    grid-column: auto;
  }

  .mapaagri-dataset-card__buttons {
    flex-wrap: wrap;
  }
}

/* Mantém o Post Slider dentro da largura da Hero */
.mapaagri-hero .wp-block-getwid-post-slider,
.mapaagri-hero .wp-block-getwid-post-slider__content,
.mapaagri-hero .slick-list {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Botão Saiba mais */
.mapaagri-hero-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-right: auto;
  margin-left: auto;
  padding: 8px 18px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: #ffffff;
  color: var(--mapaagri-blue-dark) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.mapaagri-hero-button a {
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.mapaagri-hero-button:hover,
.mapaagri-hero-button:focus {
  border-color: var(--mapaagri-green);
  background: var(--mapaagri-green);
  color: #ffffff !important;
}

/* Remove a linha herdada dos títulos */
.mapaagri-hero .wp-block-getwid-post-slider h1 a,
.mapaagri-hero .wp-block-getwid-post-slider h2 a,
.mapaagri-hero .wp-block-getwid-post-slider h3 a,
.mapaagri-hero .wp-block-getwid-post-slider h4 a,
.mapaagri-hero .wp-block-getwid-post-slider h5 a,
.mapaagri-hero .wp-block-getwid-post-slider h6 a {
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Alinha à esquerda a navegação entre os posts de destaque */
.single-post .mapaagri-single .post-navigation .nav-previous,
.single-post .mapaagri-single .post-navigation .nav-next {
  float: none !important;
  width: 100% !important;
  text-align: left !important;
}

/* Home — selo de conteúdo ainda não disponível */
.mapaagri-card-coming-soon {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  margin: auto 0 4px !important;
  padding: 4px 9px;
  color: #9a4d08;
  background: #fff4e5;
  border: 1px solid #f3c98b;
  border-radius: 999px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Página AgriRS Lab — estrutura base */

.mapaagri-lab-page .site-content {
  padding: 0;
}

.mapaagri-lab-page .site-content .wrap {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.mapaagri-lab-page #primary,
.mapaagri-lab-page .entry-content {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Oculta o título padrão gerado pelo Twenty Seventeen */
.mapaagri-lab-page .entry-header {
  display: none;
}

.mapaagri-lab-page .site-main > article {
  margin: 0;
  padding: 0;
}

/* Página AgriRS Lab — neutraliza o layout de duas colunas do tema */

body.mapaagri-lab-page.page-two-column:not(.archive) #primary .entry-content {
  float: none !important;
  width: 100% !important;
}

/* Página AgriRS Lab — hero */

.mapaagri-lab-hero {
  min-height: 220px;
  padding: 48px 24px;
  background: linear-gradient(
    110deg,
    var(--mapaagri-blue-dark) 0%,
    #075894 100%
  );
}

.mapaagri-lab-hero .wp-block-cover__inner-container {
  display: block;
  width: min(calc(100% - 48px), var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-lab-hero h1,
.mapaagri-lab-hero h2 {
  margin: 0 0 12px;
  color: var(--mapaagri-white);
  font-size: 42px;
  line-height: 1.15;
}

.mapaagri-lab-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.6;
}

@media screen and (max-width: 781px) {
  .mapaagri-lab-hero {
    min-height: 190px;
    padding: 38px 20px;
  }

  .mapaagri-lab-hero .wp-block-cover__inner-container {
    width: 100%;
  }

  .mapaagri-lab-hero h1,
  .mapaagri-lab-hero h2 {
    font-size: 34px;
  }

  .mapaagri-lab-hero p {
    font-size: 16px;
  }
}

/* AgriRS Lab — empilha o conteúdo interno da hero */

.mapaagri-lab-hero .wp-block-columns {
  display: block;
  margin: 0;
}

.mapaagri-lab-hero .wp-block-column {
  width: 100%;
  margin: 0;
  background: transparent !important;
}

.mapaagri-lab-hero h1,
.mapaagri-lab-hero h2 {
  color: #ffffff !important;
}

.mapaagri-lab-hero p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* AgriRS Lab — composição centralizada da hero */

.mapaagri-lab-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-align: center;
}

.mapaagri-lab-hero .wp-block-image {
  margin: 0 auto 22px;
  text-align: center;
}

.mapaagri-lab-hero .wp-block-image img {
  display: block;
  width: 260px;
  max-width: 80vw;
  height: auto;
  margin: 0 auto;
}

.mapaagri-lab-hero p {
  max-width: 760px;
  margin: 0 auto !important;
  text-align: center;
}

@media screen and (max-width: 781px) {
  .mapaagri-lab-hero {
    min-height: 230px;
  }

  .mapaagri-lab-hero .wp-block-image img {
    width: 210px;
  }
}

/* Página AgriRS Lab — apresentação do laboratório */

.mapaagri-lab-about {
  padding: 80px 24px;
  background: #f4f7fb;
}

.mapaagri-lab-about .wp-block-columns {
  align-items: center;
  gap: 64px;
  width: min(100%, var(--mapaagri-content-width));
  margin: 0 auto;
}

.mapaagri-lab-about .wp-block-image {
  margin: 0;
}

.mapaagri-lab-about .wp-block-image img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 40, 79, 0.12);
}

.mapaagri-lab-about h2 {
  margin: 0 0 18px;
  color: var(--mapaagri-blue-dark);
  font-size: 34px;
  line-height: 1.2;
}

.mapaagri-lab-about .wp-block-column:last-child p {
  margin: 0 0 20px;
  color: #505b67;
  font-size: 17px;
  line-height: 1.65;
}

@media screen and (max-width: 781px) {
  .mapaagri-lab-about {
    padding: 56px 20px;
  }

  .mapaagri-lab-about > .wp-block-columns {
    gap: 34px;
  }

  .mapaagri-lab-about .wp-block-image img {
    height: 280px;
  }

  .mapaagri-lab-about h2 {
    font-size: 29px;
  }

  .mapaagri-lab-about .wp-block-column:last-child p {
    font-size: 16px;
  }
}

/* Página AgriRS Lab — áreas de atuação */
.mapaagri-lab-areas {
  padding: 72px 24px;
  background: #ffffff;
}

.mapaagri-lab-areas > * {
  width: min(100%, var(--mapaagri-content-width));
  margin-right: auto;
  margin-left: auto;
}

.mapaagri-lab-areas h2 {
  margin-top: 0;
  margin-bottom: 40px;
  color: var(--mapaagri-blue-dark);
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
}

@media screen and (max-width: 781px) {
  .mapaagri-lab-areas {
    padding: 56px 20px;
  }

  .mapaagri-lab-areas h2 {
    margin-bottom: 30px;
    font-size: 29px;
  }
}

/* AgriRS Lab — centraliza o conteúdo com respiro lateral */
.mapaagri-lab-about .wp-block-columns {
  width: min(100%, var(--mapaagri-content-width)) !important;
  max-width: var(--mapaagri-content-width) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Página AgriRS Lab — cards das áreas de atuação */

.mapaagri-lab-areas .wp-block-columns {
  gap: 24px;
  margin-bottom: 24px;
}

.mapaagri-lab-area-card {
  height: 100%;
  padding: 30px 26px;
  background: #f4f7fb;
  border: 1px solid #d8e2ec;
  border-top: 4px solid var(--mapaagri-green);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 40, 79, 0.07);
}

.mapaagri-lab-area-card h3 {
  margin: 0 0 14px;
  color: var(--mapaagri-blue-dark);
  font-size: 21px;
  line-height: 1.3;
}

.mapaagri-lab-area-card p {
  margin: 0;
  color: #566273;
  font-size: 16px;
  line-height: 1.65;
}

@media screen and (max-width: 781px) {
  .mapaagri-lab-area-card {
    padding: 24px 22px;
  }
}

/* Página AgriRS Lab — pesquisa e formação */

.mapaagri-lab-opportunities {
  padding: 72px 24px;
  background: #f4f7fb;
}

.mapaagri-lab-opportunities h2 {
  margin: 0 0 18px;
  color: var(--mapaagri-blue-dark);
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
}

.mapaagri-lab-opportunities .wp-block-columns {
  width: min(100%, var(--mapaagri-content-width));
  margin: 40px auto 0;
  gap: 24px;
}

.mapaagri-lab-opportunity-card {
  height: 100%;
  padding: 30px 26px;
  background: #ffffff;
  border: 1px solid #d8e2ec;
  border-left: 4px solid var(--mapaagri-green);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 40, 79, 0.07);
}

.mapaagri-lab-opportunity-card h3 {
  margin: 0 0 14px;
  color: var(--mapaagri-blue-dark);
  font-size: 21px;
  line-height: 1.3;
}

.mapaagri-lab-opportunity-card p {
  margin: 0;
  color: #566273;
  font-size: 16px;
  line-height: 1.65;
}

@media screen and (max-width: 781px) {
  .mapaagri-lab-opportunities {
    padding: 56px 20px;
  }

  .mapaagri-lab-opportunities h2 {
    font-size: 29px;
  }

  .mapaagri-lab-opportunity-card {
    padding: 24px 22px;
  }
}

.mapaagri-lab-opportunities-intro {
  max-width: 760px;
  margin: 0 auto;
  color: #566273;
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

/* Página AgriRS Lab — chamada final */

.mapaagri-lab-cta {
  padding: 72px 24px;
  background: #ffffff;
  text-align: center;
}

.mapaagri-lab-cta h2 {
  margin: 0 0 18px;
  color: var(--mapaagri-blue-dark);
  font-size: 34px;
  line-height: 1.2;
}

.mapaagri-lab-cta p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: #566273;
  font-size: 17px;
  line-height: 1.65;
}

.mapaagri-lab-cta .wp-block-buttons {
  justify-content: center;
}

.mapaagri-lab-cta .wp-block-button__link {
  padding: 12px 24px;
  color: #ffffff;
  background: var(--mapaagri-green);
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
}

.mapaagri-lab-cta .wp-block-button__link:hover,
.mapaagri-lab-cta .wp-block-button__link:focus {
  color: #ffffff;
  background: #0f7f24;
}

@media screen and (max-width: 781px) {
  .mapaagri-lab-cta {
    padding: 56px 20px;
  }

  .mapaagri-lab-cta h2 {
    font-size: 29px;
  }
}

/* AgriRS Lab — botão da chamada final */
.mapaagri-lab-cta__button .wp-block-button__link {
  padding: 14px 24px;
  color: #ffffff !important;
  background-color: #14952b !important;
  border: 2px solid #14952b !important;
  border-radius: 6px;
  font-weight: 600;
}

.mapaagri-lab-cta__button .wp-block-button__link:hover,
.mapaagri-lab-cta__button .wp-block-button__link:focus {
  color: #ffffff !important;
  background-color: #0f7d24 !important;
  border-color: #0f7d24 !important;
}

/* AgriRS Lab — remove espaço antes do footer */

body.mapaagri-lab-page #content {
  padding-bottom: 0 !important;
}
