* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sps-white: #ffffff;
  --sps-bg: #ffffff;
  --sps-gray-100: #f4f0e6;
  --sps-gray-200: #e6eaef;
  --sps-gray-300: #cbd2d9;
  --sps-gray-500: #8a99aa;
  --sps-gray-600: #5b6e8c;
  --sps-gray-800: #1e2a3e;
  --sps-ink: #1f2a3a;
  --sps-green: #006b5e;
  --sps-green-2: #009688;
  --sps-orange: #e67e22;
  --sps-yellow: #f9c74f;
  --sps-border: #e9edf2;
  --shadow-card: 0 15px 30px -12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 35px -12px rgba(0, 107, 94, 0.2);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--sps-bg) !important;
  color: var(--sps-ink);
  overflow-x: hidden;
}

html,
body,
#page,
.tx-wrapper {
  background-color: #ffffff !important;
}

#header.tx-header {
  position: sticky;
  top: 0;
  z-index: 300;
}

#h-style-3.main-header {
  background: #ffffff !important;
  height: 82px !important;
  min-height: 82px !important;
  max-height: 82px !important;
  border-bottom: 1px solid #dbdbdb !important;
  overflow: visible;
}

#h-style-3.main-header.sticky-header {
  height: 75px !important;
  min-height: 75px !important;
  max-height: 75px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

#h-style-3.main-header.sticky-header .navbar-brand.tx_logo:not(.tx_sticky_logo) {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#h-style-3.main-header.sticky-header .navbar-brand.tx_logo:not(.tx_sticky_logo) img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 64px !important;
  max-height: 64px !important;
  width: auto !important;
}

#h-style-3 .container-fluid {
  min-height: 82px !important;
  max-height: 82px !important;
  padding-left: 26px !important;
  padding-right: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.tx_logo {
  margin: 0;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

#h-style-3 .navbar-brand.tx_logo {
  max-width: 198px !important;
  width: 198px !important;
}

.tx_logo img,
.tx_sticky_logo img {
  height: 68px !important;
  max-height: 68px !important;
  min-height: 68px !important;
  width: auto;
  display: block;
}

.tx_sticky_logo {
  display: none !important;
}

#h-style-3 .tx_sticky_logo,
#h-style-3 a.tx_sticky_logo {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.main-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex !important;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
}

#h-style-3 .navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  max-width: none !important;
  padding-right: 12px !important;
  overflow: visible !important;
}

#h-style-3 .navbar-responsive-collapse {
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
}

#h-style-3 .d-md-block,
#h-style-3 .menubar,
#h-style-3 .site-nav-inner {
  width: 100% !important;
}

/* O tema externo nao respeita utilitarios d-*. Forcamos o comportamento correto aqui. */
#h-style-3 .d-none.d-sm-none.d-md-block {
  display: block !important;
}

#h-style-3 #responsive-menu {
  display: none !important;
}

#h-style-3 .sps-main-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: visible !important;
}

#h-style-3 .sps-main-menu > li {
  position: relative;
  display: block !important;
  float: none !important;
  flex: 0 0 auto !important;
  border-right: 1px solid #d9d8d8;
}

#h-style-3 .sps-main-menu > li:last-child {
  border-right: none;
}

#h-style-3 .sps-main-menu > li > a {
  display: block !important;
  padding: 31px 14px !important;
  font-family: Rajdhani, sans-serif !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: 0.4px;
  color: #555555 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}

#h-style-3 .sps-main-menu > li > a:hover,
#h-style-3 .sps-main-menu > li > a:focus {
  color: #ed6d05 !important;
}

#h-style-3 .sps-main-menu > li.sps-current > a {
  color: #4a4a4a !important;
  font-weight: 600 !important;
  opacity: 0.7;
}

#h-style-3 .sps-main-menu > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 2px;
  background: #ed6d05;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

#h-style-3 .sps-main-menu > li > a:hover::after,
#h-style-3 .sps-main-menu > li > a:focus::after {
  transform: scaleX(1);
}

#h-style-3 .sps-main-menu > li.sps-current > a::after {
  transform: scaleX(0);
  background: #ed6d05;
}

#h-style-3 .sps-main-menu > li.sps-current > a:hover,
#h-style-3 .sps-main-menu > li.sps-current > a:focus {
  color: #ed6d05 !important;
  opacity: 1;
}

#h-style-3 .sps-main-menu > li.sps-current > a:hover::after,
#h-style-3 .sps-main-menu > li.sps-current > a:focus::after {
  transform: scaleX(1);
}

#h-style-3 .sps-main-menu > li > .sps-submenu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 310px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  list-style: none;
  margin: 0;
  z-index: 500;
}

#h-style-3 .sps-main-menu > li.sps-has-submenu:hover > .sps-submenu {
  display: block !important;
}

#h-style-3 .sps-main-menu > li > .sps-submenu > li > a {
  display: block;
  padding: 10px 18px;
  font-family: Rajdhani, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #555555;
  text-decoration: none;
}

#h-style-3 .sps-main-menu > li > .sps-submenu > li > a:hover,
#h-style-3 .sps-main-menu > li > .sps-submenu > li > a:focus {
  color: #ed6d05;
  background: #fafafa;
}

#responsive-menu {
  position: relative;
}

.tx-mobile-menu {
  position: absolute;
  right: 0;
  top: 100%;
  width: min(92vw, 360px);
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

#h-style-3 .sps-mobile-menu {
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

#h-style-3 .sps-mobile-menu > li > a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #555555;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

#h-style-3 .sps-mobile-menu > li.sps-current > a {
  color: #4a4a4a;
  font-weight: 600;
  opacity: 0.7;
}

#h-style-3 .sps-mobile-menu > li.sps-current > a:hover,
#h-style-3 .sps-mobile-menu > li.sps-current > a:focus {
  color: #ed6d05;
  opacity: 1;
}

#h-style-3 .sps-mobile-menu .sps-submenu {
  margin: 0;
  padding: 0 0 8px 10px;
  list-style: none;
}

#h-style-3 .sps-mobile-menu .sps-submenu a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #555555;
  font-family: Rajdhani, sans-serif;
  font-size: 14px;
}

.mobile-nav-toggle {
  border: none;
  background: transparent;
  color: #333;
  font-size: 1.6rem;
  line-height: 1;
}

#tx-res-menu {
  display: none;
}

#tx-res-menu.is-open {
  display: block;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 0.9rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #ffe1b9;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  display: block;
  height: 54px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.terminais-badge {
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--sps-gray-100);
  padding: 0.2rem 0.9rem;
  border-radius: 40px;
  color: var(--sps-green);
  margin-left: 12px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  color: #2c3e3a;
  transition: 0.2s;
  font-size: 1rem;
}

.nav-menu a:hover {
  color: var(--sps-orange);
}

.btn-header {
  background-color: var(--sps-green);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  transition: 0.2s;
}

.btn-header:hover {
  background-color: var(--sps-orange);
  transform: scale(0.97);
}

.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 72vh;
  min-height: 460px;
}

.swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero-text-box {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  max-width: 650px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text-box h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff !important;
}

.hero-text-box p {
  font-size: 1.15rem;
  font-weight: 500;
  opacity: 0.95;
  color: #ffffff !important;
}

.hero-accent {
  color: var(--sps-orange);
}

.cards-section {
  max-width: 1400px;
  margin: 2.5rem auto;
  padding: 0 5%;
}

.cards-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.status-pill {
  background: #ffffffdd;
  border: 1px solid var(--sps-border);
  border-radius: 48px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--sps-gray-600);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.7rem;
  align-items: stretch;
}

.kpi-row .kpi-card {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-quant {
  background: white;
  border-radius: 28px;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border-bottom: 4px solid var(--sps-orange);
}

.card-quant:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sps-green);
  line-height: 1.1;
}

.card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5a6e6a;
  margin-top: 0.55rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}

.terminal-card {
  text-align: left;
  border-bottom-width: 5px;
  padding: 1.35rem 1.1rem 1.2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-header-vertical {
  align-items: flex-start;
  flex-direction: column;
}

.terminal-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1f2a3a;
  line-height: 1.2;
}

.total-badge {
  font-size: 0.8rem;
  color: #7c8f8a;
  background: #f6faf9;
  border: 1px solid #e4f1ee;
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
}

.metrics {
  display: flex;
  gap: 0.9rem;
  margin: 0.75rem 0 0.95rem;
}

.metric-item {
  flex: 1;
  background: #f8fbfb;
  border: 1px solid #e6efed;
  border-radius: 14px;
  padding: 0.55rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}

@media (min-width: 1100px) {
  .kpi-row,
  .cards-grid {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch;
  }

  .cards-grid > .terminal-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.metric-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c7f7b;
  line-height: 1;
  margin: 0;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 0;
}

.metric-available {
  color: var(--sps-green);
}

.metric-free {
  color: var(--sps-orange);
}

.bar-group {
  margin-top: 0.3rem;
}

.bar {
  display: flex;
  height: 9px;
  border-radius: 60px;
  overflow: hidden;
  width: 100%;
  background: #efede9;
}

.bar-available {
  background: linear-gradient(90deg, #1e7f6e, #33b39e);
  transition: width 0.3s ease;
  width: 0;
}

.bar-free {
  background: linear-gradient(90deg, var(--sps-orange), #f27b5a);
  transition: width 0.3s ease;
  width: 0;
}

.legend-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #7c8f8a;
}

.info-section {
  background: #ffffff;
  padding: 3rem 5%;
  margin-top: 2rem;
}

.info-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.info-text {
  flex: 1.2;
}

.info-text h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1e2a2f;
  margin-bottom: 1rem;
  border-left: 5px solid var(--sps-orange);
  padding-left: 1.1rem;
}

.info-text p {
  font-size: 1.02rem;
  line-height: 1.5;
  color: #2f4943;
  margin-bottom: 1.4rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primario {
  background-color: var(--sps-orange);
  color: white;
  padding: 0.82rem 1.8rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(230, 126, 34, 0.3);
}

.btn-primario:hover {
  background-color: #d56f13;
}

.btn-secundario {
  background-color: transparent;
  color: var(--sps-orange);
  border: 2px solid var(--sps-orange);
  padding: 0.82rem 1.8rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.btn-secundario:hover {
  background-color: var(--sps-orange);
  color: white;
}

.info-stats {
  flex: 0.9;
  background: white;
  padding: 1.8rem;
  border-radius: 36px;
  box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-stats span {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--sps-orange);
}

.info-stats p {
  font-weight: 500;
  margin-top: 0.7rem;
  color: #4f605c;
}

.info-stats hr {
  margin: 1rem 0;
  border-color: #e9e2d0;
}

.footer-dark {
  background-color: #1f2a2a;
  color: #cdddd8;
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
}

.footer-dark a {
  color: var(--sps-yellow);
  text-decoration: none;
}

.media-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 5% 3.5rem;
}

.media-hero {
  margin-bottom: 1.7rem;
}

.media-hero h1 {
  font-size: 2.3rem;
  color: var(--sps-gray-800);
  margin-bottom: 0.5rem;
}

.media-hero p {
  color: #47605c;
  font-size: 1rem;
}

.media-status {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #dce8e6;
  background: #f7fbfa;
  color: #46635f;
  font-size: 0.82rem;
  font-weight: 600;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.3rem;
}

.media-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 38px -24px rgba(0, 52, 45, 0.35);
  border: 1px solid #ebf0ee;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 42px -22px rgba(0, 70, 61, 0.35);
}

.media-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.media-card-body {
  padding: 0.95rem 1rem 1.05rem;
}

.media-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #1e2a3e;
  line-height: 1.3;
}

.media-sub {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #5d6f8c;
}

.media-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.swiper-pagination-bullet-active {
  background-color: var(--sps-orange) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--sps-orange);
}

@media (max-width: 900px) {
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .hero-text-box {
    left: 5%;
    right: 5%;
    max-width: 90%;
  }

  .hero-text-box h1 {
    font-size: 2.2rem;
  }

  .swiper {
    height: 60vh;
    min-height: 400px;
  }

  .media-hero h1 {
    font-size: 1.9rem;
  }

  #h-style-3 .d-none.d-sm-none.d-md-block {
    display: none !important;
  }

  #h-style-3 #responsive-menu {
    display: block !important;
  }

  #h-style-3 .sps-main-menu {
    display: none !important;
  }

  #h-style-3.main-header {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    overflow: hidden !important;
  }

  #h-style-3 .container-fluid {
    min-height: 68px !important;
    max-height: 68px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    overflow: hidden !important;
  }

  #h-style-3 .navbar-brand.tx_logo {
    max-width: 150px !important;
    width: 150px !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
  }

  .tx_logo img,
  .tx_sticky_logo img {
    height: auto !important;
    max-height: 44px !important;
    width: 100% !important;
    object-fit: contain;
  }

  #h-style-3 #responsive-menu {
    position: static !important;
  }

  #h-style-3 .tx-mobile-menu {
    position: fixed !important;
    top: 68px;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100dvh - 68px);
    background: #ffffff !important;
    box-shadow: none !important;
    border-top: 1px solid #e8e8e8;
    z-index: 450;
    overflow-y: auto;
  }

  #h-style-3 .sps-mobile-menu,
  #h-style-3 .sps-mobile-menu .sps-submenu {
    background: #ffffff !important;
  }
}

@media (max-width: 680px) {
  .header {
    flex-direction: column;
    gap: 12px;
  }

  .logo-image {
    height: 44px;
    max-width: 180px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metrics {
    flex-direction: column;
  }

  .card-number {
    font-size: 2rem;
  }

  .hero-text-box h1 {
    font-size: 1.8rem;
  }

  .info-text h2 {
    font-size: 1.8rem;
  }

  #h-style-3.main-header {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    overflow: hidden !important;
  }

  #h-style-3 .navbar-brand.tx_logo {
    max-width: 150px !important;
    width: 150px !important;
  }

  .tx_logo img,
  .tx_sticky_logo img {
    height: auto !important;
    max-height: 40px !important;
    width: 100% !important;
    object-fit: contain;
  }

  #h-style-3 .tx-mobile-menu {
    top: 60px;
    height: calc(100dvh - 60px);
  }
}