/* ... existing styles ... */
:root {
  --primary-blue: #0054a6;
  --highlight-yellow: #fdd835;
  --text-gray: #555;
  --text-light: #777;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fff;
  color: #333;
  animation: fadein 0.3s;
}

ul {
  margin-left: 0;
  padding-left: 30px;
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.mobile-only {
  display: none !important;
}

@media (max-width: 1000px) {
  .mobile-only {
    display: flex !important;
  }
}

/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  /* For absolute positioning of mega menu if needed */
}

header {
  background-color: #f5f7f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  position: relative;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

/* Logo Section */
.logo-area {
  flex-shrink: 0;
  margin-right: 40px;
}

.logo-area img {
  max-height: 50px;
  margin-top: 28px;
}

/* Right Section */
.header-right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-size: calc(0.85rem * var(--var-fontscale));
  color: var(--text-gray);
  margin-bottom: 5px;
}

.top-link {
  text-decoration: none;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: calc(14px * var(--var-fontscale));
  font-weight: 400;
}

.top-link:hover {
  color: var(--primary-blue);
}

.search-icon {
  cursor: pointer;
  font-size: calc(1.1rem * var(--var-fontscale));
}

.search-popup {
  position: absolute;
  top: 36px;
  right: 175px;
  padding: 16px;
  background: white;
  border: 1px solid #ececec;
  border-radius: 10px;
  display: none;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.search-popup h3 {
  margin-bottom: 9px;
  color: #444;
}

.search-popup input {
  min-width: 260px;
  padding: 8px 10px;
  border: 1px solid #b6b6b6;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
}

.search-popup button {
  height: 35px;
  padding: 6px;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  border: none;
  background: #1a82c4;
  color: white;
  width: 77px;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  font-size: 15px;
}

.search-popup button svg {
  width: 15px;
}

.search-popup div {
  display: flex;
}

.btn-care {
  background-color: #fdea1f;
  color: #333;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: calc(14px * var(--var-fontscale));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", sans-serif;
}

/* Navigation Bar */
.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.nav-item {
  position: static;
}

.nav-link {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  font-size: calc(20px * var(--var-fontscale));
  padding: 6px 3px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
}

.nav-link:hover,
.nav-item:hover .nav-link,
.nav-link.active {
  color: #1a82c4;
  border-bottom-color: #1a82c4;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100vw - 100px);
  /* Custom width */
  max-width: 1400px;
  /* Safety cap */
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 40px 35px;
  z-index: 101;
  border-top: 1px solid #eee;
  flex-direction: row;
}

/* Invisible bridge to prevent menu from closing when moving mouse */
.mega-menu::before {
  content: "";
  display: block;
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.mm-content-wrapper {
  display: flex;
  width: 100%;
  gap: 30px;
}

.mm-columns {
  display: flex;
  gap: 30px;
  flex: 1;
}

.mm-col-left,
.mm-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.nav-item.active .mega-menu {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

/* Position adjustments */
.nav-item .mega-menu {
  right: 0;
  left: auto;
  transform: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mm-column {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  page-break-inside: avoid;
}

.mm-title {
  font-size: calc(1.1rem * var(--var-fontscale));
  color: #293b49;
  font-weight: 700;
  border-bottom: 1px solid #016cb0;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
  font-family: "Montserrat", sans-serif;
}

/* Direct links in columns (Level 2/3) */
.mm-column a {
  text-decoration: none;
  color: #293b49;
  font-size: calc(18px * var(--var-fontscale));
  font-weight: 400;
  line-height: 24px;
  display: block;
  transition: color 0.2s;
  line-height: 24px;
  font-family: "Montserrat", sans-serif;
}

.mm-column:not(:has(.mm-title))+.mm-column,
.mm-column a+a {
  margin-top: 12px;
}

.mm-column a:hover {
  color: var(--primary-blue);
}

.mm-list {
  display: flex;
  flex-direction: column;
}

.mm-list a {
  text-decoration: none;
}

.mm-list .mm-title {
  margin-top: 20px;
  margin-bottom: 12px;
}

.mm-list a:first-child .mm-title {
  margin-top: 0;
}

.mm-list .mm-sublink {
  text-decoration: none;
  color: #293b49;
  font-size: calc(18px * var(--var-fontscale));
  font-weight: 400;
  line-height: 24px;
  display: block;
  transition: color 0.2s;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 12px;
}

.mm-list .mm-sublink:hover {
  color: var(--primary-blue);
}

/* ... footer styles ... */
.mm-card {
  background-color: #fff;
  width: 250px;
}

.mm-card-img {
  width: 100%;
  height: 140px;
  background-color: #e0e0e0;
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}

.mm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-card-title {
  font-size: calc(1rem * var(--var-fontscale));
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.mm-card-link {
  color: var(--primary-blue);
  text-decoration: underline;
  font-size: calc(0.9rem * var(--var-fontscale));
  font-weight: 600;
}

footer {
  background-color: #293b49;
  color: #ccc;
  padding-top: 0;
  font-size: calc(0.9rem * var(--var-fontscale));
  position: relative;
}

.footer-top-card {
  background-color: #22313e;
  padding: 44px 39px;
  border-radius: 30px;
  margin-bottom: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

footer>.container {
  padding-top: 49px;
  max-width: 1308px !important;
}

.ftc-left,
.ftc-center,
.ftc-right {
  display: flex;
  align-items: center;
}

.ftc-left {
  gap: 40px;
}

.ftc-logo img {
  height: 163px;
}

.ftc-info h4 {
  font-size: calc(18px * var(--var-fontscale));
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-bottom: 14px;
  color: #eef2f5;
}

.ftc-info p {
  font-size: calc(16px * var(--var-fontscale));
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 14px;
}

.ftc-center {
  padding: 0 40px;
}

.ftc-right {
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4a5b69;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.social-link:hover {
  background-color: var(--primary-blue);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 243px;
  background: url("/eficiente/sites/blumenau/images/footer-bg.svg");
  background-repeat: no-repeat;
  background-position: right bottom;
}

.footer-col h5 {
  color: #eef2f5;
  font-size: calc(20px * var(--var-fontscale));
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  margin-bottom: 24px;
  border-bottom: 1px solid #eef2f5;
  padding-bottom: 10px;
  display: inline-block;
  width: 100%;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  font-size: calc(16px * var(--var-fontscale));
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
}

.footer-col a:hover {
  color: #fff;
}

.highlight-text {
  color: #f1c40f;
  font-weight: bold;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding: 20px 0;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: calc(0.8rem * var(--var-fontscale));
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-awards {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0 40px 0;
  flex-wrap: wrap;
  align-items: center;
}

.award-img {
  max-height: 158px;
  width: auto;
  object-fit: contain;
}

.footer-copyright {
  background-color: #24303b;
  margin: 0 -50vw;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: calc(16px * var(--var-fontscale));
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #fff;
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
}

.icon-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

main {
  text-align: center;
  background-color: #f4f4f4;
  min-height: 400px;
}

/* NEED MODAL */
.need-modal-bg {
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* Assuming it opens as a modal */
  display: none;
  justify-content: center;
  align-items: flex-start;
  font-family: "Montserrat", sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow-y: auto;
}

.need-modal-bg.active {
  display: flex;
}

.need-modal-container {
  max-width: 1134px;
  width: 100%;
  margin: auto;
}

.need-modal {
  background-color: #f1f4f6;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
}

.need-modal-header {
  background-color: #1a82c4;
  color: #fff;
  padding: 10px 40px;
  position: relative;
  text-align: center;
}

.need-modal-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: calc(25px * var(--var-fontscale));
  font-weight: 700;
  margin-bottom: 8px;
}

.need-modal-header p {
  font-family: "Montserrat", sans-serif;
  font-size: calc(20px * var(--var-fontscale));
  font-weight: 500;
  line-height: 36px;
}

.need-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: #fff;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.need-options-list a {
  text-decoration: none;
}

.need-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.need-modal-body {
  padding: 15px 40px;
}

.need-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.need-col-left h3,
.need-col-right h3 {
  font-size: calc(20px * var(--var-fontscale));
  font-weight: 700;
  color: #293b49;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.need-form-box {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 2px 6px 0 #293b491a;
}

.need-select-group {
  margin-bottom: 10px;
}

.need-native-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: calc(15px * var(--var-fontscale));
  color: #334155;
  background-color: #fff;
  font-family: "Montserrat", sans-serif;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.need-custom-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  max-height: 250px;
}

.need-dropdown-toggle {
  padding: 17px 22px 10px 22px;
  color: #1a82c4;
  font-size: calc(15px * var(--var-fontscale));
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.need-search-wrapper {
  padding: 0px 22px;
  position: relative;
}

.need-search-wrapper input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 11px 10px;
  font-size: calc(14px * var(--var-fontscale));
  font-family: "Montserrat", sans-serif;
  outline: none;
}

.need-search-wrapper input:focus {
  border-color: #1a82c4;
}

.need-search-wrapper svg:first-of-type {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
}

.need-options-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 5px 23px;
  position: relative;
}

.need-options-list::-webkit-scrollbar {
  width: 6px;
}

.need-options-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

.need-option {
  display: block;
  padding: 12px 16px;
  cursor: pointer;
  font-size: calc(16px * var(--var-fontscale));
  line-height: 21px;
  color: #293b49;
  font-family: "Montserrat", sans-serif;
}

.need-option:hover {
  background-color: #f1f5f9;
}

.need-option input[type="radio"] {
  display: none;
}

.need-btn-buscar {
  width: 300px;
  height: 48px;
  background-color: #1a82c4;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: calc(18px * var(--var-fontscale));
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  margin: 0 auto;
  display: block;
}

@media (min-width: 768px) {
  .need-form-box {
    padding: 15px 23px;
  }

  .need-btn-buscar {
    width: 378px;
  }
}

.need-btn-buscar:hover {
  background-color: #156fa6;
}

.need-links-list {
  list-style: none;
  padding: 0;
}

.need-links-list li {
  margin-bottom: 10px;
}

.need-links-list a {
  color: #293b49;
  text-decoration: none;
  font-size: calc(16px * var(--var-fontscale));
  font-weight: 400;
  line-height: 24px;
  display: flex;
  align-items: flex-start;
}

.need-links-list a:hover {
  color: #1a82c4;
}

.need-links-list a:hover {
  color: #1a82c4;
  text-decoration: underline;
}

/* .need-modal-footer {
  margin-top: 15px;
} */

.need-modal-footer>p {
  font-family: "Montserrat", sans-serif;
  font-size: calc(15px * var(--var-fontscale));
  font-weight: 500;
  color: #293b49;
  margin-bottom: 15px;
}

.need-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.need-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.need-card:hover {
  border-color: #1a82c4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.need-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.need-card-content {
  flex-grow: 1;
}

.need-card-content h4 {
  font-size: calc(18px * var(--var-fontscale));
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 4px;
  color: #293b49;
}

.need-card-content p {
  font-size: calc(14px * var(--var-fontscale));
  font-weight: 400;
  color: #6b7280;
  line-height: 20px;
}

.need-card-arrow-icon {
  margin-left: 12px;
  margin-bottom: 24px;
}

.article-content a {
  margin-bottom: 57px;
  text-align: left;
  color: rgb(0, 0, 238);
  font-family: "Montserrat", sans-serif;
  font-size: calc(18px * var(--var-fontscale));
  font-weight: 400;
  line-height: 32px;
}

@media (max-width: 768px) {
  .need-modal-grid {
    grid-template-columns: 1fr;
  }

  .need-cards-grid {
    grid-template-columns: 1fr;
  }
}

.btn-back-home {
  background-color: #fdea1f;
  color: #333;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: calc(14px * var(--var-fontscale));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", sans-serif;
}

@media (min-width: 992px) {
  .d-none-lg {
    display: none !important;
  }
}

@media (max-width: 768px) {
  h5:not(.mobile-open)+.footer-subcols {
    display: none;
  }
}