@import url("grid.css");
@import url("../../../contraste.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");
/********** Basic styles **********/
body {
  background: #f1f1f1;
  color: #333333;
  font-family: 'Open Sans', sans-serif;
}
a:link,
a:visited,
#content a:link,
#content a:visited {
  color: #1d390f;
}
.state-published {
  color: #1d390f !important;
}
a:hover {
  color: #31611a;
}
#content a:hover,
dl.portlet a:hover {
  color: #31611a !important;
  /* Unfortunatelly is necessary with sunburst */

}
.clear {
  clear: both;
}
/********** Main container **********/
#wrapper {
  padding: 0;
}
#main {
  margin: 0 auto;
  max-width: 96%;
}
/********** Header **********/
header {
  background-color: #458925;
  color: #ceeebf;
  float: left;
  width: 100%;
}
header a:link,
header a:visited {
  color: #ceeebf;
}
header a:hover {
  color: #afe397;
}
/* Logo */
#portal-logo {
  display: block;
  float: left;
  margin: 1.5em;
}

#portal-personaltools {
  background: #31611a;
}

#portal-personaltools dd a:hover {
    background: #458925;
}

#portal-siteactions {
  text-align: right;
  margin-right: 1em;
  font-size: 80%;
}
#portal-siteactions a:before {
  font-family: FontAwesome;
  font-size: 1em;
  margin-right: 0.3em;
}
#siteaction-contact a:before {
  content: "\f0e0";
}
#siteaction-sitemap a:before {
  content: "\f0e8";
}
#siteaction-accessibility a:before {
  content: "\f118";
}
#siteaction-search a:before {
  content: "\f002";
}
#siteaction-login a:before {
  content: "\f090";
}
#siteaction-contraste a:before {
  content: "\f042";
}
#siteaction-vlibras a:before {
  content: "\f087";
}
#portal-siteactions li#siteaction-accessibility {
  width: 17px;
}
#portal-siteactions li a:hover {
  color: #afe397;
}
/* search */

.searchButton {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  border: none;
  padding: 0.4em 0.7em;
  background: #31611a;
  color: #ceeebf;
  cursor: pointer;
}

#portal-searchbox {
  margin: 1.5em;
  position: relative;
}

#portal-searchbox input {
  border-radius: 0;
}

#portal-searchbox input.searchField {
  min-width: 20em;
  width: 100%;
  height: 30px;
  border: none;
  text-indent: 1em;
  line-height: 30px;
  padding-right: 40px;
  box-sizing: border-box;
}

#portal-searchbox .searchButton {
  font-family: FontAwesome;
  position: absolute;
  right: 0;
  border-radius: 0;
  color: #ceeebf;
  height: 30px;
  width: 30px;
}

/* Navigation */
#main-navigation {
  margin: 0;
  clear: both;
  background: #31611a;
  color: #000000;
}
#main-navigation ul {
  padding: 0.3em;
  text-align: right;
}
#main-navigation li {
  display: inline-block;
}

#main-navigation li::after {
  content: '';
  position: absolute;
  margin: auto;
  right: -2px;
  top: 0;
  bottom: 0;
  background-color: #ceeebf;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

#main-navigation li:last-child::after {
  display: none;
}

#main-navigation li a:link {
  font-size: 80%;
  text-decoration: none;
  display: block;
  padding: 0 1em;
}

#main-navigation li a:link,
#main-navigation li a:visited {
  color: #1d390f;
}

/* Mobile Menu button colors */

.menu-button{
  background: #458925;
}

.menu-button button{
  border-color: #AFE397;
  background: none;
  color: #AFE397;
}

.menu-button > button:hover {
  background: #31611A !important;
}

.menu-button > button.menuAtivo {
  background: #31611A; 
}

/********** Content **********/
/* breadcrumb */
#portal-breadcrumbs {
  margin: 1.2em 2%;
  font-size: 80%;
  clear: both;
  display: inline-block;
}
.section-front-page #portal-breadcrumbs {
  visibility: hidden;
}
/* text styles */
p {
  line-height: 1.4em;
}
h1 {
  color: #31611a;
  border: none;
  margin-bottom: 0;
  font-size: 2.5em;
}
h2 {
  color: #31611a;
}
#content {
  margin: 0;
}
#content .documentDescription,
#content #description {
  color: #4d4d4d;
  font-weight: normal;
  margin-bottom: 1em;
}
/********** Tiles **********/
.tile-header h2, .tile-content h2, .documentFirstHeading {
      margin-bottom: 0.5em;
}

.tile-noticias .collection-item {
    float: left;
    width: 48%;
    margin-right: 4%;
    margin-bottom: 1.5em;
    padding-bottom: 0.4em;
    border-bottom: 1px dotted #ccc;
}

.tile-noticias .collection-item:nth-child(odd) {
    margin-right: 0;
}

.tile-noticias .collection-item a img {
    margin: 0;
    float: none;
    width: 100%;
    height: auto;
}

.tile-noticias .collection-item > a {
    width: 100%;
    display: block;
    margin-bottom: 0.5em;
}

#content .tile-noticias .collection-item p {
    margin-bottom: 0.25em;
}

.tile-noticias .collection-item p.description {
    font-size: 1.1em;
}

#content .tile-noticias .tile-footer a {
  float: right;
  padding: 1.075em 1.2em;
  background-color: #31611a;
  color: #ceeebf !important;
  font-weight: bold;
  text-transform: uppercase;
  transition: all ease-out 0.1s;
}

#content .tile-noticias .tile-footer a:hover {
  background: #458925;
  color: #fff !important;
}

/*********** Portlets ***********/
/* general styles */
.portletHeader,
dl.portlet dt.portletHeader {
  border:0;
  font-weight: bold;
  background-color: #31611A;
  color: #fff;
}
.portletHeader a,
dl.portlet dt.portletHeader a {
  color: #CEEEBF;
  transition: all ease-out 0.1s;
}
.portlet {
  margin-bottom: 2em;
}
/* lists inside columns */
aside dl,
aside dd,
aside ul {
  padding: 0;
  margin: 0;
}
aside a {
  text-decoration: none;
}
/* portlet navigation */
.portletNavigationTree ul {
  margin: 0;
}
.portletNavigationTree li {
  list-style-position: inside;
}
.portlet.portletNavigationTree .navTree .navTreeItem {
  margin: 0;
}
.portlet.portletNavigationTree .navTreeLevel0 > .navTreeItem {
  padding: 0;
}
.portlet.portletNavigationTree .navTree > .navTreeItem {
  border-bottom: rgba(49, 97, 26, 0.05) 1px solid;
  list-style: none;
}
.portlet.portletNavigationTree .navTreeLevel1 .navTreeItem {
  padding-left: 1em;
}
.portlet.portletNavigationTree .navTreeLevel1 .navTreeItem:last-of-type {
  border-bottom: none;
}
.portlet.portletNavigationTree .navTree .navTreeItem a {
  display: block;
  padding: 0.8em 1em;
  border-left: 0px solid transparent;
  transition: all ease-out 0.1s;
  line-height: initial;
}
.portlet.portletNavigationTree .navTree .navTreeItem a:hover {
  border-left: 5px solid #458925;
  background-color: rgba(49, 97, 26, 0.05);
}
.portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  border-left: 5px solid #458925;
  background-color: rgba(49, 97, 26, 0.2);
}
dl.portlet ul.navTree .navTreeCurrentItem {
  border-left: none;
  margin: 0;
}
.navTreeLevel2 a {
  padding-left: 1em;
}
.navTreeLevel3 a {
  padding-left: 2em;
}
.navTreeLevel4 a {
  padding-left: 3em;
}
.navTreeLevel5 a {
  padding-left: 4em;
}
.navTreeLevel6 a {
  padding-left: 5em;
}
.portlet .portletHeader > a, .portlet .portletHeader > span:nth-child(2) {
  display: block;
  color: #CEEEBF;
  padding: 0.7em 1em;
  font-size: 1em;
}
.portlet .portletHeader > a:hover {
  background-color: #458925;
  color: #CEEEBF !important;
}
.portlet .portletHeader {
  padding: 0;
}
/********** Footer **********/
footer {
  border-top: #d8d8d8 1px solid;
  margin-top: 2em;
  font-size: 80%;
  background: #458925;
  color: #edf9e7;
}
footer a {
  color: #edf9e7 !important;
}
footer p {
  margin-bottom: 2em;
}

.footer-item {
  padding: 0 2%;
}

#footer-info {
  padding-top: 3em; 
}

#footer-colophon {
  padding: 1.5rem 0;
  font-size: 0;
  text-align: center;
  background-color: #31611A;
}

.colophon-item {
  display: inline-block;
  max-width: 46%;
  padding: 0 2%;
  vertical-align: top;
  position: relative;
}

.colophon-item:first-child::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 1px;
  background-color: #edf9e7;
  right: 0;
  top: 0;
}

.colophon-item a {
  font-weight: 700;
}

.colophon-item img {
  height: 32px;
}

.colophon-info {
    font-size: 11px;
    margin-top: 1em;
}

.colophon-logo {
  height: 40px
}
/********* RESPONSIVE **********/
/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
  
}
/* Landscape phone to portrait tablet */
@media (max-width: 767px) {

  header {
    margin-bottom: 1em;
  }

  /* Mobile Menu theme color adjustments */
  #column-one {
    border-color: #458925;
  }

  dl.portlet ul.navTree .navTreeCurrentItem {
    border-color: #31611A;
  }

  dl.portlet ul.navTree li a:hover {
    border-color: #458925;
  }

}
/* Landscape phones and down */
@media (max-width: 767px) {
    #portal-logo {
      display: inline-block;
      font-size: 90%;
    }

    #portal-logo.has-title img {
      display: none;
    }

    #main-navigation ul {
      box-sizing: border-box;
      padding: 0;
      padding-right: 0.5em;
      text-align: center;
      float: none;
    width: 100%;
      white-space: nowrap;
      overflow-x: scroll;
      overflow-y: hidden; 
      -webkit-overflow-scrolling: touch;
  }

    #main-navigation ul::after {
      content: '';
      background-image: linear-gradient(to right, transparent, rgba(49, 97, 26,0.9) 80%);
      height: 43px;
      position: absolute;
      pointer-events: none;
      right: 0;
      top: 0;
      width: 2.2em;
      z-index: 10;
    }

    #main-navigation li {
      float: none;
    }

    #main-navigation li a:link {
      padding: 1.2em 1.5em;
      line-height: 1;
    }

  #portal-searchbox {
      margin-top: 0;
    float: none;
    text-align: center;
    clear: both;
    font-size: 80%;
  }

    .colophon-item {
      max-width: 96%;
      margin: 1.5rem 2%;
    }

}

/* Phones and down */
@media (max-width: 480px) {
  .tile-noticias .collection-item {
    width: 100%;
    margin-right: 0;
  }       
}


/* =========================================================
   Modernização visual - Kiwi Moderno | Portal Modelo
   Paleta: verde institucional + cinzas neutros
   Tipografia: stack moderna sem dependência externa
   ========================================================= */
:root {
  --rn-green-900: #0b2f24;
  --rn-green-800: #124734;
  --rn-green-700: #176044;
  --rn-green-600: #1f7a55;
  --rn-green-100: #e8f3ee;
  --rn-gray-950: #111827;
  --rn-gray-800: #1f2937;
  --rn-gray-700: #374151;
  --rn-gray-600: #4b5563;
  --rn-gray-300: #d1d5db;
  --rn-gray-200: #e5e7eb;
  --rn-gray-100: #f3f4f6;
  --rn-gray-50: #f9fafb;
  --rn-white: #ffffff;
  --rn-radius-sm: 8px;
  --rn-radius-md: 14px;
  --rn-radius-lg: 22px;
  --rn-shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.08);
  --rn-shadow-md: 0 18px 45px rgba(17, 24, 39, 0.12);
  --rn-transition: 180ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #f4f7f5 0%, #ffffff 42%, #f6f7f8 100%);
  color: var(--rn-gray-800);
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a:link,
a:visited,
#content a:link,
#content a:visited,
.state-published {
  color: var(--rn-green-700) !important;
}

a:hover,
#content a:hover,
dl.portlet a:hover {
  color: var(--rn-green-900) !important;
}

#wrapper {
  min-height: 100vh;
}

#main {
  max-width: 1180px;
  margin: 2rem auto 0;
  width: calc(100% - 40px);
}

header {
  float: none;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(135deg, var(--rn-green-900) 0%, var(--rn-green-800) 52%, var(--rn-gray-800) 100%);
  color: var(--rn-white);
  box-shadow: var(--rn-shadow-sm);
}

#header-banner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.15rem 20px 0;
  box-sizing: border-box;
}

header a:link,
header a:visited,
#portal-siteactions li a,
#siteactions li a {
  color: rgba(255,255,255,0.88) !important;
}

header a:hover,
#portal-siteactions li a:hover,
#siteactions li a:hover {
  color: #ffffff !important;
}

#portal-logo {
  margin: 0 0 1rem 0;
  display: inline-flex;
  align-items: center;
  max-width: 380px;
}

#portal-logo img {
  max-height: 88px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.16));
}

#portal-personaltools,
#user ul {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

#portal-siteactions,
#siteactions {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.searchButton,
#portal-searchbox .searchButton {
  background: var(--rn-green-600);
  color: #fff;
  border-radius: var(--rn-radius-sm);
  transition: background var(--rn-transition), transform var(--rn-transition);
}

.searchButton:hover,
#portal-searchbox .searchButton:hover {
  background: var(--rn-green-700);
  transform: translateY(-1px);
}

#portal-searchbox {
  margin: 0 0 1rem 0;
  max-width: 360px;
  float: right;
}

#portal-searchbox input.searchField {
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  padding: 0 48px 0 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.94);
  color: var(--rn-gray-800);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

#portal-searchbox .searchButton {
  right: 4px;
  top: 4px;
  height: 32px;
  width: 36px;
  border-radius: 999px;
}

#main-navigation {
  clear: both;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

#main-navigation ul {
  display: flex;
  justify-content: flex-start;
  gap: 0.2rem;
  padding: 0.35rem;
  margin: 0;
  text-align: left;
}

#main-navigation li {
  position: relative;
}

#main-navigation li::after {
  display: none;
}

#main-navigation li a:link,
#main-navigation li a:visited {
  color: rgba(255,255,255,0.90) !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  letter-spacing: 0.01em;
  transition: background var(--rn-transition), color var(--rn-transition), transform var(--rn-transition);
}

#main-navigation li.selected a,
#main-navigation li a:hover {
  background: #ffffff;
  color: var(--rn-green-900) !important;
  transform: translateY(-1px);
}

#portal-breadcrumbs {
  display: block;
  max-width: 1180px;
  width: calc(100% - 40px);
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--rn-gray-200);
  border-radius: var(--rn-radius-md);
  color: var(--rn-gray-600);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
}

#main-content {
  background: var(--rn-white);
  border: 1px solid var(--rn-gray-200);
  border-radius: var(--rn-radius-lg);
  padding: 2rem;
  box-shadow: var(--rn-shadow-sm);
}

#content {
  color: var(--rn-gray-800);
}

#content .documentDescription,
#content #description {
  color: var(--rn-gray-600);
  font-size: 1.12rem;
  line-height: 1.55;
}

p {
  line-height: 1.7;
}

h1,
.documentFirstHeading {
  color: var(--rn-green-900);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  font-weight: 800;
}

h2,
.tile-header h2,
.tile-content h2 {
  color: var(--rn-green-800);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h3,
h4,
h5,
h6 {
  color: var(--rn-gray-800);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.portlet {
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--rn-white);
  border: 1px solid var(--rn-gray-200);
  border-radius: var(--rn-radius-md);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.portletHeader,
dl.portlet dt.portletHeader {
  background: linear-gradient(135deg, var(--rn-green-900), var(--rn-green-700));
  color: #fff;
  border: 0;
  font-weight: 800;
}

.portletHeader a,
dl.portlet dt.portletHeader a,
.portlet .portletHeader > a,
.portlet .portletHeader > span:nth-child(2) {
  color: #fff !important;
  padding: 0.92rem 1rem;
  font-size: 0.95rem;
}

.portlet .portletHeader > a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}

.portlet.portletNavigationTree .navTree > .navTreeItem {
  border-bottom: 1px solid var(--rn-gray-200);
}

.portlet.portletNavigationTree .navTree .navTreeItem a {
  padding: 0.8rem 1rem;
  color: var(--rn-gray-700) !important;
  border-left: 4px solid transparent;
}

.portlet.portletNavigationTree .navTree .navTreeItem a:hover,
.portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  border-left-color: var(--rn-green-600);
  background: var(--rn-green-100);
  color: var(--rn-green-900) !important;
}

.tile-noticias .collection-item {
  width: 48.5%;
  margin-right: 3%;
  margin-bottom: 1.8rem;
  border-bottom: 0;
  background: var(--rn-white);
  border: 1px solid var(--rn-gray-200);
  border-radius: var(--rn-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
  transition: transform var(--rn-transition), box-shadow var(--rn-transition);
}

.tile-noticias .collection-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--rn-shadow-md);
}

.tile-noticias .collection-item > a,
#content .tile-noticias .collection-item p {
  box-sizing: border-box;
}

#content .tile-noticias .collection-item p,
.tile-noticias .collection-item p.description {
  padding-left: 1rem;
  padding-right: 1rem;
}

.tile-noticias .collection-item p.description {
  color: var(--rn-gray-700);
}

#content .tile-noticias .tile-footer a {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--rn-green-700);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(23, 96, 68, 0.22);
}

#content .tile-noticias .tile-footer a:hover {
  background: var(--rn-green-900);
}

input,
textarea,
select,
button {
  font-family: inherit;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  border: 1px solid var(--rn-gray-300);
  border-radius: var(--rn-radius-sm);
  padding: 0.65rem 0.75rem;
  box-sizing: border-box;
}

input[type="submit"],
button,
.context,
.standalone {
  border-radius: 999px;
  font-weight: 700;
}

footer {
  float: none;
  margin-top: 3rem;
  border: 0;
  background: linear-gradient(135deg, var(--rn-gray-950), var(--rn-green-900));
  color: rgba(255,255,255,0.86);
}

footer a {
  color: #fff !important;
}

#footer-info {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 20px;
}

#footer-colophon {
  background: rgba(0,0,0,0.22);
}

.menu-button {
  background: var(--rn-green-900);
}

.menu-button button {
  border-color: rgba(255,255,255,0.65);
  color: #fff;
  border-radius: var(--rn-radius-sm);
}

.menu-button > button:hover,
.menu-button > button.menuAtivo {
  background: var(--rn-green-700) !important;
}

@media (max-width: 979px) {
  #portal-searchbox {
    float: none;
    clear: both;
    max-width: none;
    width: 100%;
  }
  #portal-logo {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  body {
    background: #fff;
  }
  #header-banner {
    padding-top: 0.85rem;
  }
  #portal-logo.has-title img {
    display: inline-block;
    max-width: 100%;
    height: auto;
  }
  #main-navigation {
    border-radius: var(--rn-radius-md);
    margin-bottom: 0.8rem;
  }
  #main-navigation ul {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.35rem;
    text-align: left;
  }
  #main-navigation ul::after {
    background-image: linear-gradient(to right, transparent, rgba(11,47,36,0.94) 80%);
  }
  #main-navigation li a:link,
  #main-navigation li a:visited {
    white-space: nowrap;
    padding: 0.72rem 0.9rem;
  }
  #portal-breadcrumbs,
  #main {
    width: calc(100% - 24px);
  }
  #main {
    margin-top: 1rem;
  }
  #main-content {
    padding: 1.25rem;
    border-radius: var(--rn-radius-md);
  }
  .tile-noticias .collection-item {
    width: 100%;
    margin-right: 0;
  }
}


/* =========================================================
   Kiwi Moderno v2 - ajustes de responsividade e cabeçalho
   Paleta mais escura com detalhes em vermelho discreto
   ========================================================= */
:root {
  --rn-green-950: #081714;
  --rn-green-900: #0c221d;
  --rn-green-850: #12312a;
  --rn-green-800: #173d34;
  --rn-green-700: #1d5346;
  --rn-green-600: #246b59;
  --rn-accent-700: #8b1e2d;
  --rn-accent-600: #a32536;
  --rn-accent-100: #f7e8eb;
  --rn-gray-950: #0f1419;
  --rn-gray-900: #151b22;
  --rn-gray-850: #1c242d;
  --rn-gray-800: #26313b;
  --rn-gray-700: #42505d;
  --rn-gray-600: #5f6d79;
  --rn-gray-300: #d6dbe0;
  --rn-gray-200: #e6eaee;
  --rn-gray-100: #f4f6f8;
  --rn-white: #ffffff;
}

body {
  background: linear-gradient(180deg, #eef2f3 0%, #ffffff 45%, #f2f4f6 100%);
  color: var(--rn-gray-850);
}

header {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 30%),
    linear-gradient(135deg, var(--rn-gray-950) 0%, var(--rn-green-900) 48%, var(--rn-green-800) 100%);
}

#header-banner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem 20px 0;
}

#portal-logo {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  max-width: min(760px, 100%);
  margin: 0 0 0.8rem 0;
  text-decoration: none;
}

#portal-logo img {
  display: block;
  max-height: 72px;
  max-width: 100%;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}

/* Título e descrição do cabeçalho em diferentes marcações possíveis do Portal Modelo */
#portal-logo-title,
#portal-title,
#portal-logo .logo-title,
#portal-logo span {
  color: #ffffff;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  display: block;
  text-wrap: balance;
}

#portal-logo-description,
#portal-description,
#portal-logo .logo-description,
#portal-logo small,
#portal-logo em {
  color: rgba(255,255,255,0.82);
  display: block;
  font-size: 0.83rem;
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 0.2rem;
}

#portal-personaltools,
#user ul {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

#portal-siteactions,
#siteactions {
  margin: 0 0 0.55rem 0;
  text-align: right;
  font-size: 0.8rem;
}

#portal-searchbox {
  margin: 0 0 0.85rem 0;
  max-width: 340px;
}

#portal-searchbox input.searchField {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.96);
}

.searchButton,
#portal-searchbox .searchButton {
  background: var(--rn-accent-700);
}
.searchButton:hover,
#portal-searchbox .searchButton:hover {
  background: var(--rn-accent-600);
}

#main-navigation {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  backdrop-filter: blur(4px);
}

#main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
}

#main-navigation li a:link,
#main-navigation li a:visited {
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.72rem 0.95rem;
}

#main-navigation li.selected a,
#main-navigation li a:hover {
  background: rgba(255,255,255,0.96);
  color: var(--rn-gray-950) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

#main-navigation li.selected a {
  position: relative;
}
#main-navigation li.selected a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--rn-accent-700);
}

a:link,
a:visited,
#content a:link,
#content a:visited,
.state-published {
  color: var(--rn-green-700) !important;
}

a:hover,
#content a:hover,
dl.portlet a:hover {
  color: var(--rn-accent-700) !important;
}

h1,
.documentFirstHeading {
  color: var(--rn-gray-950);
}

h2,
.tile-header h2,
.tile-content h2 {
  color: var(--rn-green-900);
}

#main-content {
  border-radius: 18px;
}

.portlet {
  border-radius: 16px;
}

.portletHeader,
dl.portlet dt.portletHeader {
  background: linear-gradient(135deg, var(--rn-gray-950), var(--rn-green-800));
  border-left: 4px solid var(--rn-accent-700);
}

.portlet.portletNavigationTree .navTree .navTreeItem a:hover,
.portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  border-left-color: var(--rn-accent-700);
  background: var(--rn-accent-100);
  color: var(--rn-gray-950) !important;
}

#content .tile-noticias .tile-footer a {
  background: var(--rn-accent-700);
  box-shadow: 0 8px 20px rgba(139, 30, 45, 0.20);
}
#content .tile-noticias .tile-footer a:hover {
  background: var(--rn-accent-600);
}

footer {
  background: linear-gradient(135deg, var(--rn-gray-950), var(--rn-green-950));
}

#footer-colophon {
  background: rgba(0,0,0,0.28);
}

.menu-button {
  background: var(--rn-gray-950);
}

.menu-button button {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

.menu-button > button:hover,
.menu-button > button.menuAtivo {
  background: var(--rn-accent-700) !important;
}

/* ---------- ajustes de responsividade ---------- */
img {
  max-width: 100%;
  height: auto;
}

#main {
  width: min(1180px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 979px) {
  #header-banner {
    padding-left: 16px;
    padding-right: 16px;
  }

  #portal-logo {
    max-width: 100%;
  }

  #portal-siteactions,
  #siteactions {
    text-align: left;
  }

  #portal-searchbox {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
  }

  #main-navigation {
    border-radius: 16px;
  }

  #main-navigation ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

@media (max-width: 767px) {
  #header-banner {
    padding-top: 0.65rem;
  }

  #portal-logo {
    align-items: flex-start;
    gap: 0.7rem;
  }

  #portal-logo img {
    max-height: 58px;
  }

  #portal-logo-title,
  #portal-title,
  #portal-logo .logo-title,
  #portal-logo span {
    font-size: clamp(1rem, 5vw, 1.25rem);
    line-height: 1.15;
  }

  #portal-logo-description,
  #portal-description,
  #portal-logo .logo-description,
  #portal-logo small,
  #portal-logo em {
    font-size: 0.76rem;
  }

  #user,
  #portal-siteactions,
  #siteactions {
    float: none;
    display: block;
    width: 100%;
  }

  #user ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
  }

  #portal-siteactions,
  #siteactions {
    margin-top: 0.45rem;
  }

  #portal-searchbox {
    margin-top: 0.65rem;
  }

  #portal-searchbox input.searchField {
    height: 42px;
  }

  #portal-searchbox .searchButton {
    top: 5px;
  }

  #main-navigation {
    border-radius: 14px;
    margin-top: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.11);
  }

  #main-navigation ul {
    padding-bottom: 0.45rem;
  }

  #main-navigation li a:link,
  #main-navigation li a:visited {
    padding: 0.68rem 0.85rem;
    font-size: 0.86rem;
  }

  #main-navigation ul::after {
    background-image: linear-gradient(to right, transparent, rgba(15,20,25,0.92) 80%);
  }

  #portal-breadcrumbs,
  #main {
    width: calc(100% - 16px);
  }

  #main-content {
    padding: 1rem;
    border-radius: 14px;
  }

  .tile-noticias .collection-item,
  #column-one,
  #column-two,
  #main-content {
    width: 100%;
    margin-right: 0;
  }

  .colophon-item {
    max-width: 100%;
    padding: 0;
    margin: 1rem 0;
  }

  .colophon-item:first-child::after {
    display: none;
  }
}

@media (max-width: 480px) {
  #portal-logo {
    gap: 0.55rem;
  }

  #portal-logo img {
    max-height: 50px;
  }

  #header-banner,
  #footer-info {
    padding-left: 12px;
    padding-right: 12px;
  }
}


/* =========================================================
   Tipografia v3 - fonte moderna
   Fonte principal: Inter
   Fallbacks: Segoe UI, Roboto, Helvetica Neue, Arial
   ========================================================= */
body,
input,
textarea,
select,
button {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body {
  font-weight: 400;
  letter-spacing: -0.005em;
}

#portal-logo-title,
#portal-title,
#portal-logo .logo-title,
#portal-logo span {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 800;
  letter-spacing: -0.035em;
}

#portal-logo-description,
#portal-description,
#portal-logo .logo-description,
#portal-logo small,
#portal-logo em {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 500;
  letter-spacing: 0;
}

h1,
.documentFirstHeading,
h2,
.tile-header h2,
.tile-content h2,
h3,
h4,
h5,
h6,
.portletHeader,
dl.portlet dt.portletHeader,
#main-navigation li a:link,
#main-navigation li a:visited {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

h1,
.documentFirstHeading {
  font-weight: 850;
}

h2,
.tile-header h2,
.tile-content h2 {
  font-weight: 800;
}

.portletHeader,
dl.portlet dt.portletHeader,
#main-navigation li a:link,
#main-navigation li a:visited {
  font-weight: 700;
}


/* =========================================================
   Kiwi Moderno Escuro v4 - refinamento visual
   - fonte única Manrope
   - menu de acessibilidade no topo
   - cantos mais sutis
   - hierarquia tipográfica menor e mais harmônica
   - melhor respiro em linhas, listas e boxes
   ========================================================= */
:root {
  --rn-font-ui: "Manrope", sans-serif;
  --rn-radius-sm: 4px;
  --rn-radius-md: 7px;
  --rn-radius-lg: 10px;
  --rn-shadow-sm: 0 4px 12px rgba(15, 20, 25, 0.07);
  --rn-shadow-md: 0 10px 28px rgba(15, 20, 25, 0.11);
}

html {
  font-size: 15.5px;
}

body,
input,
textarea,
select,
button,
#content,
#content p,
#content li,
#content td,
#content th,
#portal-logo,
#portal-logo *,
#portal-siteactions,
#siteactions,
#user,
#main-navigation,
.portlet,
dl.portlet,
footer {
  font-family: var(--rn-font-ui) !important;
}

body {
  line-height: 1.56;
  letter-spacing: 0;
}

p,
#content p,
#content li {
  line-height: 1.58;
}

header {
  background:
    linear-gradient(135deg, rgba(139,30,45,0.12), transparent 34%),
    linear-gradient(135deg, #101417 0%, #0b211c 48%, #15352e 100%);
}

#header-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  padding-top: 0;
}

/* Acessibilidade / ações do site no topo */
#portal-siteactions,
#siteactions {
  order: 1;
  width: 100%;
  margin: 0;
  padding: 0.42rem 0;
  text-align: right;
  font-size: 0.76rem;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

#portal-siteactions li,
#siteactions li {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0 0.72rem;
  line-height: 1.2;
}

#portal-siteactions li a,
#siteactions li a {
  padding: 0.16rem 0;
  border-radius: 0;
}

#portal-logo {
  order: 2;
  flex: 1 1 420px;
  max-width: 690px;
  margin: 0.72rem 0 0.72rem;
  gap: 0.8rem;
}

#portal-logo img {
  max-height: 60px;
}

#portal-logo-title,
#portal-title,
#portal-logo .logo-title,
#portal-logo span {
  font-size: clamp(1.02rem, 1.35vw, 1.32rem) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

#portal-logo-description,
#portal-description,
#portal-logo .logo-description,
#portal-logo small,
#portal-logo em {
  font-size: 0.74rem !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
}

#user {
  order: 3;
}

#user ul,
#portal-personaltools {
  border-radius: var(--rn-radius-md) !important;
  padding: 0.28rem 0.55rem;
}

#portal-searchbox,
#search {
  order: 4;
}

#portal-searchbox {
  margin: 0.72rem 0 0.72rem auto;
  max-width: 310px;
}

#portal-searchbox input.searchField {
  height: 36px;
  border-radius: var(--rn-radius-md) !important;
}

#portal-searchbox .searchButton {
  height: 28px;
  width: 32px;
  top: 4px;
  border-radius: var(--rn-radius-sm) !important;
}

#main-navigation {
  order: 5;
  width: 100%;
  border-radius: var(--rn-radius-lg) var(--rn-radius-lg) 0 0 !important;
}

#main-navigation ul {
  gap: 0.12rem;
  padding: 0.28rem;
}

#main-navigation li a:link,
#main-navigation li a:visited {
  font-size: 0.82rem !important;
  line-height: 1.2;
  padding: 0.58rem 0.74rem !important;
  border-radius: var(--rn-radius-md) !important;
  font-weight: 700 !important;
}

#main-navigation li.selected a::after {
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
}

#portal-breadcrumbs {
  font-size: 0.78rem;
  padding: 0.58rem 0.78rem;
  border-radius: var(--rn-radius-md) !important;
}

#main {
  margin-top: 1.35rem;
}

#main-content {
  padding: 1.35rem !important;
  border-radius: var(--rn-radius-lg) !important;
}

h1,
.documentFirstHeading {
  font-size: clamp(1.48rem, 2.25vw, 2.05rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 0.75rem !important;
  font-weight: 800 !important;
}

h2,
.tile-header h2,
.tile-content h2 {
  font-size: clamp(1.18rem, 1.7vw, 1.52rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.018em !important;
  margin-bottom: 0.65rem !important;
  font-weight: 800 !important;
}

h3 {
  font-size: 1.08rem !important;
  line-height: 1.28 !important;
}

h4,
h5,
h6 {
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

#content .documentDescription,
#content #description {
  font-size: 1rem !important;
  line-height: 1.46 !important;
}

.portlet,
.tile-noticias .collection-item,
#main-content,
#portal-breadcrumbs {
  border-radius: var(--rn-radius-lg) !important;
}

.portlet {
  margin-bottom: 1rem !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.portletHeader,
dl.portlet dt.portletHeader {
  border-left-width: 3px !important;
}

.portletHeader a,
dl.portlet dt.portletHeader a,
.portlet .portletHeader > a,
.portlet .portletHeader > span:nth-child(2) {
  padding: 0.62rem 0.82rem !important;
  font-size: 0.86rem !important;
  line-height: 1.25 !important;
}

/* Linhas de separação com respiro: sem boxes arredondados apertados */
.portlet.portletNavigationTree .navTree .navTreeItem,
dl.portlet .portletItem,
dl.portlet .portletFooter,
#content .tileItem,
#content .summary,
#content .listingBar,
#content table.listing td,
#content table.listing th {
  border-radius: 0 !important;
}

.portlet.portletNavigationTree .navTree .navTreeItem a,
dl.portlet dd.portletItem,
dl.portlet .portletItem a,
#content .tileItem,
#content .summary {
  padding-top: 0.62rem !important;
  padding-bottom: 0.62rem !important;
  padding-left: 0.82rem !important;
  padding-right: 0.82rem !important;
  line-height: 1.42 !important;
}

.portlet.portletNavigationTree .navTree .navTreeItem a:hover,
.portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  background: rgba(139, 30, 45, 0.08) !important;
}

.tile-noticias .collection-item {
  box-shadow: var(--rn-shadow-sm) !important;
}

.tile-noticias .collection-item:hover {
  box-shadow: var(--rn-shadow-md) !important;
}

#content .tile-noticias .collection-item p,
.tile-noticias .collection-item p.description {
  padding-left: 0.86rem !important;
  padding-right: 0.86rem !important;
}

#content .tile-noticias .tile-footer a {
  border-radius: var(--rn-radius-md) !important;
  padding: 0.64rem 0.9rem !important;
  font-size: 0.82rem !important;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select,
input[type="submit"],
button,
.context,
.standalone,
.searchButton {
  border-radius: var(--rn-radius-md) !important;
}

footer {
  margin-top: 2.2rem;
}

#footer-info {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 979px) {
  #header-banner {
    gap: 0.4rem;
  }

  #portal-logo {
    flex-basis: 100%;
    margin-bottom: 0.35rem;
  }

  #portal-searchbox,
  #search {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin: 0.35rem 0 0.7rem 0;
  }

  #main-navigation ul {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  #header-banner {
    padding-left: 12px;
    padding-right: 12px;
  }

  #portal-siteactions,
  #siteactions {
    text-align: left;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.38rem 0;
  }

  #portal-siteactions li,
  #siteactions li {
    margin-left: 0;
    margin-right: 0.66rem;
  }

  #portal-logo {
    margin-top: 0.55rem;
    gap: 0.55rem;
  }

  #portal-logo img {
    max-height: 48px;
  }

  #portal-logo-title,
  #portal-title,
  #portal-logo .logo-title,
  #portal-logo span {
    font-size: clamp(0.95rem, 4.2vw, 1.12rem) !important;
    letter-spacing: -0.015em !important;
  }

  #portal-logo-description,
  #portal-description,
  #portal-logo .logo-description,
  #portal-logo small,
  #portal-logo em {
    font-size: 0.7rem !important;
  }

  #main-navigation {
    border-radius: var(--rn-radius-md) !important;
  }

  #main-navigation li a:link,
  #main-navigation li a:visited {
    font-size: 0.8rem !important;
    padding: 0.56rem 0.72rem !important;
  }

  #main {
    margin-top: 0.9rem;
  }

  #main-content {
    padding: 0.9rem !important;
  }

  h1,
  .documentFirstHeading {
    font-size: clamp(1.32rem, 6vw, 1.62rem) !important;
  }

  h2,
  .tile-header h2,
  .tile-content h2 {
    font-size: clamp(1.08rem, 4.8vw, 1.3rem) !important;
  }

  .portletHeader a,
  dl.portlet dt.portletHeader a,
  .portlet .portletHeader > a,
  .portlet .portletHeader > span:nth-child(2) {
    padding: 0.56rem 0.72rem !important;
  }

  .portlet.portletNavigationTree .navTree .navTreeItem a,
  dl.portlet dd.portletItem,
  dl.portlet .portletItem a,
  #content .tileItem,
  #content .summary {
    padding-left: 0.72rem !important;
    padding-right: 0.72rem !important;
  }
}

@media (max-width: 480px) {
  #portal-logo img {
    max-height: 42px;
  }

  #portal-breadcrumbs,
  #main {
    width: calc(100% - 14px);
  }
}


/* =========================================================
   LEGISLINDO v5
   Direção: prefeitura moderna, próxima da população, escura,
   elegante, funcional, fonte única Inter e cantos quase retos.
   ========================================================= */
:root {
  --leg-green-950: #061b16;
  --leg-green-925: #08241d;
  --leg-green-900: #0b2c24;
  --leg-green-850: #103b30;
  --leg-green-800: #164b3d;
  --leg-green-700: #1f654f;
  --leg-red-700: #d71920;
  --leg-red-600: #ef3340;
  --leg-red-100: #fff0f1;
  --leg-gray-950: #0f1418;
  --leg-gray-900: #151b21;
  --leg-gray-800: #202a33;
  --leg-gray-700: #3b4650;
  --leg-gray-600: #64707a;
  --leg-gray-400: #aeb7bf;
  --leg-gray-250: #dfe4e8;
  --leg-gray-150: #edf1f3;
  --leg-gray-100: #f5f7f8;
  --leg-white: #ffffff;
  --leg-radius: 4px;
  --leg-radius-lg: 6px;
  --leg-shadow-xs: 0 1px 2px rgba(15, 20, 24, .06);
  --leg-shadow-sm: 0 6px 18px rgba(15, 20, 24, .08);
  --leg-shadow-md: 0 14px 34px rgba(15, 20, 24, .12);
  --leg-ease: 170ms ease;
}

html {
  font-size: 16px !important;
}

body,
body *:not([class^="icon-"]):not([class*=" icon-"]) {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body {
  background: linear-gradient(180deg, #eef3f1 0%, #ffffff 38%, #f3f5f6 100%) !important;
  color: var(--leg-gray-800) !important;
  font-size: 0.96rem !important;
  line-height: 1.68 !important;
  letter-spacing: -0.006em !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Cabeçalho compacto */
header {
  float: none !important;
  width: 100% !important;
  background:
    linear-gradient(90deg, rgba(215,25,32,.13), transparent 28%),
    linear-gradient(135deg, var(--leg-green-950) 0%, var(--leg-green-900) 58%, var(--leg-green-850) 100%) !important;
  color: #fff !important;
  box-shadow: var(--leg-shadow-sm) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

#header-banner {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  column-gap: 1rem !important;
  row-gap: .45rem !important;
}

/* Barra superior de acessibilidade/ações */
#portal-siteactions,
#siteactions {
  order: 1 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: .75rem !important;
  margin: 0 !important;
  padding: .36rem 0 .32rem !important;
  list-style: none !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  font-size: .76rem !important;
  line-height: 1.2 !important;
}

#portal-siteactions li,
#siteactions li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

#portal-siteactions a,
#siteactions a,
header a:link,
header a:visited {
  color: rgba(255,255,255,.84) !important;
  text-decoration: none !important;
}

#portal-siteactions a:hover,
#siteactions a:hover,
header a:hover {
  color: #fff !important;
}

/* Logo e nome */
#portal-logo {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .75rem !important;
  flex: 1 1 auto !important;
  max-width: 620px !important;
  margin: .68rem 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  min-width: 260px !important;
}

#portal-logo img {
  display: block !important;
  max-height: 58px !important;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  filter: drop-shadow(0 5px 11px rgba(0,0,0,.18)) !important;
}

#portal-logo-title,
#portal-title,
#portal-logo .logo-title,
#portal-logo span {
  color: #fff !important;
  display: block !important;
  font-size: clamp(1.02rem, 1.45vw, 1.32rem) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -.028em !important;
  margin: 0 !important;
  max-width: 480px !important;
}

#portal-logo-description,
#portal-description,
#portal-logo .logo-description,
#portal-logo small,
#portal-logo em {
  display: block !important;
  color: rgba(255,255,255,.76) !important;
  font-size: .76rem !important;
  line-height: 1.28 !important;
  font-style: normal !important;
  font-weight: 500 !important;
  margin-top: .12rem !important;
}

#user,
#portal-personaltools {
  order: 1 !important;
}

#user ul,
#portal-personaltools {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Busca no topo à direita */
#search,
#portal-searchbox {
  order: 3 !important;
  flex: 0 1 330px !important;
  width: 330px !important;
  max-width: 330px !important;
  margin: .68rem 0 .68rem auto !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
}

#portal-searchbox input.searchField {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  line-height: 36px !important;
  padding: 0 42px 0 .85rem !important;
  border-radius: var(--leg-radius) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--leg-gray-900) !important;
  box-shadow: var(--leg-shadow-xs) !important;
}

.searchButton,
#portal-searchbox .searchButton {
  background: var(--leg-red-700) !important;
  color: #fff !important;
  border-radius: var(--leg-radius) !important;
  transition: background var(--leg-ease), transform var(--leg-ease) !important;
}

#portal-searchbox .searchButton {
  top: 4px !important;
  right: 4px !important;
  height: 28px !important;
  width: 32px !important;
}

.searchButton:hover,
#portal-searchbox .searchButton:hover {
  background: var(--leg-red-600) !important;
  transform: translateY(-1px) !important;
}

/* Menu principal junto do cabeçalho */
#main-navigation {
  order: 4 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  clear: both !important;
  background: rgba(255,255,255,.075) !important;
  border: 1px solid rgba(255,255,255,.105) !important;
  border-bottom: 0 !important;
  border-radius: var(--leg-radius-lg) var(--leg-radius-lg) 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

#main-navigation ul {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: .18rem !important;
  padding: .28rem !important;
  margin: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

#main-navigation li {
  display: inline-flex !important;
  position: relative !important;
  margin: 0 !important;
}

#main-navigation li::after { display: none !important; }

#main-navigation li a:link,
#main-navigation li a:visited {
  display: block !important;
  padding: .58rem .78rem !important;
  color: rgba(255,255,255,.90) !important;
  border-radius: var(--leg-radius) !important;
  font-size: .84rem !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  letter-spacing: -.008em !important;
  text-decoration: none !important;
  transition: background var(--leg-ease), color var(--leg-ease), box-shadow var(--leg-ease) !important;
}

#main-navigation li.selected a,
#main-navigation li a:hover {
  background: rgba(255,255,255,.96) !important;
  color: var(--leg-green-950) !important;
  box-shadow: var(--leg-shadow-xs) !important;
  transform: none !important;
}

#main-navigation li.selected a::after {
  content: '' !important;
  position: absolute !important;
  left: .72rem !important;
  right: .72rem !important;
  bottom: .33rem !important;
  height: 2px !important;
  border-radius: 0 !important;
  background: var(--leg-red-700) !important;
}

/* Estrutura geral */
#wrapper { padding: 0 !important; }

#main {
  display: table !important;
  max-width: 1180px !important;
  width: calc(100% - 40px) !important;
  margin: 1.3rem auto 0 !important;
  table-layout: fixed !important;
}

#column-one { width: 21% !important; padding-right: 1.4rem !important; }
#column-two { width: 21% !important; padding-left: 1.4rem !important; }
#main-content { width: auto !important; }

#main-content {
  background: rgba(255,255,255,.98) !important;
  border: 1px solid var(--leg-gray-250) !important;
  border-radius: var(--leg-radius-lg) !important;
  padding: 1.45rem !important;
  box-shadow: var(--leg-shadow-sm) !important;
}

#portal-breadcrumbs {
  max-width: 1180px !important;
  width: calc(100% - 40px) !important;
  margin: .9rem auto 0 !important;
  padding: .55rem .75rem !important;
  border: 1px solid var(--leg-gray-250) !important;
  border-radius: var(--leg-radius) !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: var(--leg-shadow-xs) !important;
  color: var(--leg-gray-600) !important;
  font-size: .78rem !important;
  line-height: 1.3 !important;
}

.section-front-page #portal-breadcrumbs { visibility: hidden !important; }

/* Tipografia harmonizada */
a:link,
a:visited,
#content a:link,
#content a:visited,
.state-published {
  color: var(--leg-green-700) !important;
}

a:hover,
#content a:hover,
dl.portlet a:hover {
  color: var(--leg-red-700) !important;
}

#content,
#content p,
p,
li,
dd,
dt,
td,
th {
  font-size: .95rem !important;
  line-height: 1.68 !important;
}

#content .documentDescription,
#content #description {
  color: var(--leg-gray-600) !important;
  font-size: 1.02rem !important;
  line-height: 1.58 !important;
  font-weight: 400 !important;
  margin: .2rem 0 1rem !important;
}

h1,
.documentFirstHeading {
  color: var(--leg-green-950) !important;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -.034em !important;
  font-weight: 800 !important;
  margin: 0 0 .9rem !important;
}

h2,
.tile-header h2,
.tile-content h2 {
  color: var(--leg-green-900) !important;
  font-size: clamp(1.18rem, 2vw, 1.48rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -.024em !important;
  font-weight: 750 !important;
  margin: 0 0 .75rem !important;
}

h3 { font-size: 1.08rem !important; line-height: 1.32 !important; }
h4 { font-size: 1rem !important; line-height: 1.35 !important; }
h5, h6 { font-size: .94rem !important; line-height: 1.35 !important; }

/* Portlets laterais: caixas com cabeçalho escuro, sutis */
.portlet {
  background: #fff !important;
  border: 1px solid var(--leg-gray-250) !important;
  border-radius: var(--leg-radius-lg) !important;
  box-shadow: var(--leg-shadow-xs) !important;
  overflow: hidden !important;
  margin-bottom: 1.2rem !important;
}

.portletHeader,
dl.portlet dt.portletHeader {
  background: linear-gradient(135deg, var(--leg-green-950), var(--leg-green-850)) !important;
  color: #fff !important;
  border: 0 !important;
  border-left: 3px solid var(--leg-red-700) !important;
  font-weight: 750 !important;
}

.portletHeader a,
dl.portlet dt.portletHeader a,
.portlet .portletHeader > a,
.portlet .portletHeader > span:nth-child(2) {
  display: block !important;
  color: #fff !important;
  padding: .62rem .8rem !important;
  font-size: .84rem !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}

.portlet .portletHeader > a:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

/* Separadores e listas com respiro */
aside dl,
aside dd,
aside ul { margin: 0 !important; padding: 0 !important; }

.portlet.portletNavigationTree .navTree > .navTreeItem,
dl.portlet dd.portletItem,
dl.portlet .portletItem,
dl.portlet .portletFooter,
#content .tileItem,
#content .summary,
#content .listingBar,
#content table.listing td,
#content table.listing th {
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(15,20,24,.075) !important;
}

.portlet.portletNavigationTree .navTree .navTreeItem a,
dl.portlet dd.portletItem,
dl.portlet .portletItem a,
#content .tileItem,
#content .summary {
  display: block !important;
  padding: .68rem .82rem !important;
  line-height: 1.48 !important;
  color: var(--leg-gray-800) !important;
  background: transparent !important;
  border-left: 3px solid transparent !important;
}

.portlet.portletNavigationTree .navTree .navTreeItem a:hover,
.portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  background: rgba(31,101,79,.055) !important;
  border-left-color: var(--leg-red-700) !important;
  color: var(--leg-green-950) !important;
}

/* Notícias em grade */
.tile-noticias {
  clear: both !important;
}

.tile-noticias .collection-item {
  width: calc((100% - 1.6rem) / 2) !important;
  margin: 0 .8rem 1rem 0 !important;
  padding: 0 0 .65rem !important;
  background: #fff !important;
  border: 1px solid var(--leg-gray-250) !important;
  border-radius: var(--leg-radius-lg) !important;
  box-shadow: var(--leg-shadow-xs) !important;
  overflow: hidden !important;
  transition: transform var(--leg-ease), box-shadow var(--leg-ease), border-color var(--leg-ease) !important;
}

.tile-noticias .collection-item:nth-child(2n) { margin-right: 0 !important; }
.tile-noticias .collection-item:nth-child(odd) { margin-right: .8rem !important; }

.tile-noticias .collection-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--leg-shadow-sm) !important;
  border-color: rgba(31,101,79,.22) !important;
}

.tile-noticias .collection-item a img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
}

.tile-noticias .collection-item > a {
  display: block !important;
  width: 100% !important;
  margin: 0 0 .55rem !important;
}

#content .tile-noticias .collection-item p,
.tile-noticias .collection-item p.description {
  padding-left: .82rem !important;
  padding-right: .82rem !important;
  margin-bottom: .35rem !important;
  font-size: .9rem !important;
  line-height: 1.5 !important;
  color: var(--leg-gray-700) !important;
}

/* selo de data, quando data vier como parágrafo curto */
.tile-noticias .collection-item p:first-of-type {
  display: inline-block !important;
  margin-left: .82rem !important;
  margin-top: .1rem !important;
  padding: .15rem .42rem !important;
  border-radius: var(--leg-radius) !important;
  background: var(--leg-red-100) !important;
  color: var(--leg-red-700) !important;
  font-size: .72rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.tile-noticias .collection-item h2,
.tile-noticias .collection-item h3,
.tile-noticias .collection-item h4 {
  padding: 0 .82rem !important;
  margin-top: .4rem !important;
}

#content .tile-noticias .tile-footer a {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: .65rem !important;
  padding: .62rem .9rem !important;
  border-radius: var(--leg-radius) !important;
  background: var(--leg-green-800) !important;
  color: #fff !important;
  font-size: .82rem !important;
  line-height: 1.1 !important;
  font-weight: 750 !important;
  text-transform: none !important;
  box-shadow: var(--leg-shadow-xs) !important;
}

#content .tile-noticias .tile-footer a:hover {
  background: var(--leg-red-700) !important;
  color: #fff !important;
}

/* Formulários e botões */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  border: 1px solid var(--leg-gray-250) !important;
  border-radius: var(--leg-radius) !important;
  padding: .58rem .7rem !important;
  box-sizing: border-box !important;
}

input[type="submit"],
button,
.context,
.standalone {
  border-radius: var(--leg-radius) !important;
  font-weight: 750 !important;
}

/* Rodapé estilo portal de governo */
footer {
  margin-top: 2.6rem !important;
  background: linear-gradient(135deg, var(--leg-green-950), var(--leg-gray-950)) !important;
  color: rgba(255,255,255,.84) !important;
  border-top: 3px solid var(--leg-red-700) !important;
}

footer a { color: #fff !important; text-decoration: none !important; }
footer a:hover { color: rgba(255,255,255,.78) !important; }

#footer-info {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 2.1rem 20px !important;
}

.footer-item { padding: 0 1.2rem 0 0 !important; }

#footer-colophon {
  background: rgba(0,0,0,.28) !important;
  padding: 1.1rem 0 !important;
}

.colophon-item img { max-height: 30px !important; width: auto !important; }
.colophon-info { font-size: .68rem !important; line-height: 1.35 !important; }

/* Botão hambúrguer */
.menu-button {
  display: none !important;
  background: transparent !important;
  padding: .45rem 12px !important;
  text-align: right !important;
}

.menu-button button {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: var(--leg-radius) !important;
  color: #fff !important;
  padding: .48rem .65rem !important;
  line-height: 1 !important;
}

.menu-button > button:hover,
.menu-button > button.menuAtivo {
  background: var(--leg-red-700) !important;
}

/* Responsividade */
img { max-width: 100% !important; height: auto; }

@media (min-width: 1180px) {
  body.section-front-page .tile-noticias .collection-item,
  body.template-layoutedit .tile-noticias .collection-item {
    width: calc((100% - 2rem) / 3) !important;
    margin-right: 1rem !important;
  }
  body.section-front-page .tile-noticias .collection-item:nth-child(2n),
  body.template-layoutedit .tile-noticias .collection-item:nth-child(2n) {
    margin-right: 1rem !important;
  }
  body.section-front-page .tile-noticias .collection-item:nth-child(3n),
  body.template-layoutedit .tile-noticias .collection-item:nth-child(3n) {
    margin-right: 0 !important;
  }
}

@media (max-width: 979px) {
  #header-banner {
    padding: 0 14px !important;
  }

  #portal-siteactions,
  #siteactions {
    justify-content: flex-start !important;
    gap: .6rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  #portal-logo {
    flex: 1 1 calc(100% - 0px) !important;
    min-width: 0 !important;
    margin: .55rem 0 .25rem !important;
  }

  #portal-logo img { max-height: 52px !important; }

  #search,
  #portal-searchbox {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: .15rem 0 .65rem !important;
  }

  #main {
    display: block !important;
    width: calc(100% - 24px) !important;
  }

  #main-content,
  #column-one,
  #column-two {
    display: block !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  #column-one,
  #column-two { margin-bottom: 1rem !important; }
}

@media (max-width: 767px) {
  html { font-size: 15px !important; }

  header { position: relative !important; }

  #header-banner {
    row-gap: .3rem !important;
  }

  #portal-siteactions,
  #siteactions {
    font-size: .72rem !important;
    padding: .32rem 0 !important;
  }

  #portal-logo {
    gap: .58rem !important;
    margin: .5rem 0 .15rem !important;
  }

  #portal-logo img { max-height: 44px !important; }

  #portal-logo-title,
  #portal-title,
  #portal-logo .logo-title,
  #portal-logo span {
    font-size: clamp(.96rem, 4.6vw, 1.12rem) !important;
    line-height: 1.12 !important;
  }

  #portal-logo-description,
  #portal-description,
  #portal-logo .logo-description,
  #portal-logo small,
  #portal-logo em {
    font-size: .68rem !important;
  }

  .menu-button {
    display: block !important;
  }

  #main-navigation {
    display: none;
    border-radius: var(--leg-radius) !important;
    border-bottom: 1px solid rgba(255,255,255,.105) !important;
    margin: 0 0 .7rem !important;
  }

  #main-navigation ul {
    display: block !important;
    padding: .35rem !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  #main-navigation li {
    display: block !important;
    width: 100% !important;
  }

  #main-navigation li a:link,
  #main-navigation li a:visited {
    padding: .7rem .76rem !important;
    font-size: .86rem !important;
  }

  #portal-breadcrumbs,
  #main {
    width: calc(100% - 16px) !important;
  }

  #portal-breadcrumbs { padding: .48rem .6rem !important; }

  #main-content {
    padding: 1rem !important;
    border-radius: var(--leg-radius-lg) !important;
  }

  h1,
  .documentFirstHeading {
    font-size: clamp(1.28rem, 6vw, 1.55rem) !important;
  }

  h2,
  .tile-header h2,
  .tile-content h2 {
    font-size: clamp(1.08rem, 4.8vw, 1.24rem) !important;
  }

  #content,
  #content p,
  p,
  li,
  dd,
  dt,
  td,
  th {
    font-size: .92rem !important;
  }

  .tile-noticias .collection-item,
  .tile-noticias .collection-item:nth-child(odd),
  .tile-noticias .collection-item:nth-child(2n),
  body.section-front-page .tile-noticias .collection-item,
  body.section-front-page .tile-noticias .collection-item:nth-child(3n) {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 1rem !important;
  }

  .footer-item,
  .colophon-item {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 1rem !important;
  }

  .colophon-item:first-child::after { display: none !important; }
}

@media (max-width: 480px) {
  #header-banner,
  #footer-info { padding-left: 10px !important; padding-right: 10px !important; }
  #portal-logo img { max-height: 40px !important; }
  #main-content { padding: .85rem !important; }
}


/* =========================================================
   LEGISLINDO v6
   Ajustes: vermelho mais vivo, acessibilidade A-/A/A+,
   topo mais funcional e home sem forçar layout de conteúdo.
   ========================================================= */
:root {
  --leg-red-700: #d71920;
  --leg-red-600: #ef3340;
  --leg-red-100: #fff0f1;
}

/* Barra superior de acessibilidade e ações */
#portal-siteactions,
#siteactions {
  min-height: 30px !important;
  align-items: center !important;
}

#portal-siteactions li,
#siteactions li {
  line-height: 1.1 !important;
}

#portal-siteactions .font-size-control,
#siteactions .font-size-control {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-left: .45rem !important;
  padding-left: .45rem !important;
  border-left: 1px solid rgba(255,255,255,.22) !important;
  list-style: none !important;
}

#portal-siteactions .font-size-label,
#siteactions .font-size-label {
  color: rgba(255,255,255,.78) !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
}

#portal-siteactions .font-btn,
#siteactions .font-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 24px !important;
  padding: 0 .34rem !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  border-radius: var(--leg-radius) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  transition: background var(--leg-ease), border-color var(--leg-ease), transform var(--leg-ease) !important;
}

#portal-siteactions .font-btn:hover,
#siteactions .font-btn:hover,
#portal-siteactions .font-btn:focus,
#siteactions .font-btn:focus {
  background: var(--leg-red-700) !important;
  border-color: var(--leg-red-700) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

#portal-siteactions .font-btn[data-font-action="increase"],
#siteactions .font-btn[data-font-action="increase"] {
  border-color: rgba(239,51,64,.55) !important;
}

/* Vermelho mais vivo, usado apenas como detalhe */
header {
  background:
    linear-gradient(90deg, rgba(215,25,32,.13), transparent 28%),
    linear-gradient(135deg, var(--leg-green-950) 0%, var(--leg-green-900) 58%, var(--leg-green-850) 100%) !important;
}

#main-navigation li.selected a::after,
.portletHeader,
dl.portlet dt.portletHeader,
.tile-noticias .collection-item::before,
footer {
  border-color: var(--leg-red-700) !important;
}

.searchButton,
#portal-searchbox .searchButton,
#content .tile-noticias .tile-footer a,
.menu-button > button:hover,
.menu-button > button.menuAtivo {
  background: var(--leg-red-700) !important;
}

.searchButton:hover,
#portal-searchbox .searchButton:hover,
#content .tile-noticias .tile-footer a:hover {
  background: var(--leg-red-600) !important;
}

@media (max-width: 767px) {
  #portal-siteactions .font-size-control,
  #siteactions .font-size-control {
    margin-left: .25rem !important;
    padding-left: .35rem !important;
  }
  #portal-siteactions .font-size-label,
  #siteactions .font-size-label {
    display: none !important;
  }
  #portal-siteactions .font-btn,
  #siteactions .font-btn {
    min-width: 26px !important;
    height: 23px !important;
  }
}


/* =========================================================
   LEGISLINDO v7
   Ajustes finos: slide principal, barra superior compacta,
   imagens dos portlets e cantos sutis.
   ========================================================= */
:root {
  --leg-red-700: #e30613;
  --leg-red-600: #ff1f2d;
  --leg-red-500: #ff3542;
  --leg-radius: 4px;
  --leg-radius-lg: 6px;
}

/* Barra superior mais compacta, sem encavalamento */
header #portal-siteactions,
header #siteactions,
#portal-siteactions,
#siteactions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 4px 8px !important;
  min-height: 0 !important;
  margin: 0 0 .42rem 0 !important;
  padding: .28rem 0 !important;
  font-size: .72rem !important;
  line-height: 1.15 !important;
}

#portal-siteactions li,
#siteactions li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  font-size: .72rem !important;
}

#portal-siteactions li a,
#siteactions li a,
#portal-siteactions li span,
#siteactions li span {
  font-size: .72rem !important;
  line-height: 1.15 !important;
}

#portal-siteactions .font-size-control,
#siteactions .font-size-control {
  gap: 3px !important;
  margin-left: .28rem !important;
  padding-left: .4rem !important;
  border-left: 1px solid rgba(255,255,255,.22) !important;
}

#portal-siteactions .font-size-label,
#siteactions .font-size-label {
  font-size: .66rem !important;
  font-weight: 600 !important;
}

#portal-siteactions .font-btn,
#siteactions .font-btn {
  min-width: 23px !important;
  height: 20px !important;
  padding: 0 .22rem !important;
  font-size: .68rem !important;
  border-radius: 3px !important;
}

/* Vermelho mais vermelho, sem virar grená */
.searchButton,
#portal-searchbox .searchButton,
#content .tile-noticias .tile-footer a,
.menu-button > button:hover,
.menu-button > button.menuAtivo,
#portal-siteactions .font-btn:hover,
#siteactions .font-btn:hover,
#portal-siteactions .font-btn:focus,
#siteactions .font-btn:focus {
  background: var(--leg-red-700) !important;
  border-color: var(--leg-red-700) !important;
}

.searchButton:hover,
#portal-searchbox .searchButton:hover,
#content .tile-noticias .tile-footer a:hover {
  background: var(--leg-red-600) !important;
}

#main-navigation li.selected a::after,
.tile-noticias .collection-item::before {
  background: var(--leg-red-700) !important;
}

.portletHeader,
dl.portlet dt.portletHeader {
  border-left-color: var(--leg-red-700) !important;
}

/* Imagens de portlets e blocos com cantos sutis */
dl.portlet img,
.portlet img,
aside img,
.portletItem img,
.tileItem img,
.collection-item img,
#content .tile img,
#content img.image-inline,
#content img.image-left,
#content img.image-right {
  border-radius: 5px !important;
}

.portlet img,
aside img,
.portletItem img {
  overflow: hidden !important;
}

/* Evita imagens grudadas em textos dentro de boxes */
.portletItem,
dl.portlet dd,
.portletFooter,
.portletStaticText {
  padding-left: .85rem !important;
  padding-right: .85rem !important;
}

/* Slide principal: fonte correta, contraste e proporção */
.tema-pm3.galleria,
.cover-carousel-tile.galleria,
.tema-pm3 .galleria-container {
  border-radius: 6px !important;
  overflow: hidden !important;
  background: var(--leg-green-950, #071f1a) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.12) !important;
}

.tema-pm3 .galleria-info {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(5,18,16,.72) 42%, rgba(5,18,16,.94) 100%) !important;
  padding: 5.2rem 0 1.05rem !important;
}

.tema-pm3 .notouch .galleria-stage:hover .galleria-info {
  padding-bottom: 1.25rem !important;
}

.tema-pm3 .galleria-info-text {
  padding: 0 1.25rem !important;
  max-width: 78% !important;
  box-sizing: border-box !important;
}

.tema-pm3 .galleria-info-title {
  display: block !important;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(1.15rem, 2.2vw, 1.72rem) !important;
  line-height: 1.12 !important;
  font-weight: 750 !important;
  letter-spacing: -.025em !important;
  margin: 0 0 .34rem 0 !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.45) !important;
}

#content .tema-pm3 .galleria-info-title a,
.tema-pm3 .galleria-info-title a {
  color: #fff !important;
  border-bottom: 2px solid rgba(227,6,19,.9) !important;
  text-decoration: none !important;
}

#content .tema-pm3 .galleria-info-title a:hover,
.tema-pm3 .galleria-info-title a:hover {
  color: #fff !important;
  border-bottom-color: #fff !important;
}

.tema-pm3 .galleria-info-description {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(.82rem, 1.15vw, .98rem) !important;
  line-height: 1.35 !important;
  font-weight: 450 !important;
  color: rgba(255,255,255,.9) !important;
  max-width: 95% !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.45) !important;
}

.tema-pm3 .galleria-image::after {
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 42%) !important;
}

.tema-pm3 .notouch .galleria-stage:hover .galleria-image::after {
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.06) 55%) !important;
}

@media (max-width: 767px) {
  header #portal-siteactions,
  header #siteactions,
  #portal-siteactions,
  #siteactions {
    justify-content: flex-start !important;
    gap: 3px 7px !important;
    font-size: .68rem !important;
    padding: .22rem 0 !important;
  }

  #portal-siteactions li,
  #siteactions li,
  #portal-siteactions li a,
  #siteactions li a,
  #portal-siteactions li span,
  #siteactions li span {
    font-size: .68rem !important;
  }

  #portal-siteactions .font-size-control,
  #siteactions .font-size-control {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  #portal-siteactions .font-btn,
  #siteactions .font-btn {
    min-width: 22px !important;
    height: 19px !important;
    font-size: .64rem !important;
  }

  .tema-pm3 .galleria-info {
    padding: 4rem 0 .82rem !important;
  }

  .tema-pm3 .galleria-info-text {
    max-width: 100% !important;
    padding: 0 .85rem !important;
  }

  .tema-pm3 .galleria-info-title {
    font-size: clamp(.98rem, 5vw, 1.22rem) !important;
    line-height: 1.15 !important;
    margin-bottom: .22rem !important;
  }

  .tema-pm3 .galleria-info-description {
    display: block !important;
    font-size: .76rem !important;
    line-height: 1.28 !important;
    max-height: 2.6em !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  #portal-siteactions,
  #siteactions {
    gap: 3px 6px !important;
  }

  .tema-pm3 .galleria-info-description {
    display: none !important;
  }
}
