:root {
  /* Cores */
  --color-primary: #1868db;
  --color-accent: #1abc9c;
  --color-accent-hover: #ff2c3e;
  --color-white: #ffffff;
  --color-dark: #333333;
  --color-black: #000000;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.2rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-section: var(--space-xl);
  --space-gap: var(--space-lg);

  /* Tamanhos */
  --icon-size: 45px;
  --max-content-width: 1200px;

  /* Radius e Sombra */
  --radius-lg: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.banner-siapec3 {
  background: url("/site_sm_des/assets/img/pagina-siapec3/top-banner/img-background-topbanner-siapec3.png")
    center center / cover no-repeat;
}

.banner-siapec3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    1deg,
    rgba(0, 0, 0, 0.911) 0%,
    rgba(34, 66, 48, 0.582) 43%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.siapec3 .hero-text h1 {
  font-size: 2.6rem;
}

.siapec3 .hero .hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.feature-section-siapec3 {
  background-color: var(--color-primary);
  padding: var(--space-section) 0;
}

.features-grid-siapec3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-gap);
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.feature-card-siapec3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  max-width: 350px;
  box-shadow: var(--shadow-sm);
  flex: 1 1 300px;
}

.feature-icon-siapec3 {
  margin: var(--space-sm) auto var(--space-xs);
  width: var(--icon-size);
  height: var(--icon-size);
}

.feature-title-siapec3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-black);
}

.feature-text-siapec3 {
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.about-siapec3 {
  display: flex;
  padding-top: 4rem;
  padding-bottom: 4rem;
  align-items: center;
  width: 100%;
  background: linear-gradient(
    178deg,
    rgba(255, 255, 255, 1) 37%,
    rgba(240, 241, 242, 1) 100%
  );
}

.about-siapec3-content {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: 100%;
}

.about-siapec3-image {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: flex-end;
}

.about-siapec3-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-siapec3-text {
  flex: 1;
  max-width: 600px;
  padding-inline-end: 5rem;
}

.about-siapec3-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.about-siapec3-text p {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.siapec3-mobile {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: var(--color-white);
}

.siapec3-mobile-content {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 5rem;
  width: 100%;
  max-width: var(--max-content-width);
  width: 100%;
  margin: 0 auto;
}

.siapec3-mobile-text {
  flex: 1;
  max-width: 600px;
  padding-left: 2rem;
}

.siapec3-mobile-text .subtitle {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.siapec3-mobile-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.siapec3-mobile-text p {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

.siapec3-mobile-image {
  flex: 1;
  max-width: 50%;
}

.siapec3-mobile-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.autoatendimento {
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(178deg, #0a58ca 0%, #022252 100%);
}

.autoatendimento-content {
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  padding: 4rem 1rem;
  gap: 4rem;
  flex-wrap: wrap;
}

.autoatendimento-image {
  flex: 1.2;
  max-width: 700px;
}

.autoatendimento-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.autoatendimento-text {
  flex: 1;
  max-width: 600px;
  color: white;
}

.autoatendimento-text .subtitle {
  font-size: 1.5rem;
  color: #6cc6ff;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.autoatendimento-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.autoatendimento-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f1f1f1;
  text-align: justify;
}

.features-siapec3 {
  width: 100%;
  text-align: center;
  margin: 0 auto;
  background: linear-gradient(178deg, #d9dfff 0%, #ffffff 100%);
  padding-top: 5rem;
  padding-bottom: 8rem;
}

.features-siapec3-container {
  max-width: 1200px;
  text-align: center;
  margin: 0 auto;
}

.features-siapec3-title {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 40px;
}

.features-siapec3-tabs {
  display: flex;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}

.tab-produtor {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

.tab-estabelecimentos {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

.features-siapec3-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  position: relative;
  transition: 0.3s;
  flex-shrink: 0;
  border: 1px solid #cdcdcd;
}

.features-siapec3-tab span {
  font-size: 1.2rem;
}

.features-siapec3-tab img {
  height: 35px;
  width: 35px;
}

.features-siapec3-tab.active,
.features-siapec3-tab:hover {
  border-bottom: 4px solid #00c96b;
  color: #000;
}

.features-siapec3-carousel-wrapper {
  position: relative;
  min-height: 600px;
}

.fade-slide-enter {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-slide-enter-active {
  opacity: 1;
  transform: translateY(0);
}

.fade-slide-exit {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-slide-exit-active {
  opacity: 0;
  transform: translateY(-20px);
}

.features-siapec3-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
}

.features-siapec3-carousel.active {
  display: flex !important;
}

.features-siapec3-carousel-track {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.features-siapec3-carousel-content {
  display: none;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  gap: 40px;
  padding: 20px;
  min-height: 500px;
  box-sizing: border-box;
}

.features-siapec3-carousel-content.active {
  display: flex;
}

.features-siapec3-carousel-image img {
  width: 100%;
  flex: 1;
  max-width: 700px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.features-siapec3-carousel-text {
  flex: 0.8;
  text-align: left;
  max-width: 600px;
}

.features-siapec3-carousel-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.features-siapec3-carousel-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-siapec3-carousel-text li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #444;
}

.features-siapec3-carousel-text li img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.features-siapec3-carousel-btn {
  position: absolute;
  top: 50%;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 1;
}

.features-siapec3-carousel-btn:hover {
  color: #00c96b;
}

.features-siapec3-carousel-btn.left {
  left: -20px;
}

.features-siapec3-carousel-btn.right {
  right: -20px;
}

.features-siapec3-dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.features-siapec3-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.features-siapec3-dot.active {
  background: #00c96b;
}

.siapec3-update {
  background: linear-gradient(to right, #04285f, #0a67d1);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.siapec3-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.siapec3-content {
  width: 50%;
  z-index: 2;
  padding-right: 40px;
}

.siapec3-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: auto;
  z-index: 1;
}

.siapec3-image img {
  width: 100%;
  margin: 0;
  display: block;
}

.update-label {
  display: inline-block;
  background-color: #00d36d;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.5rem;
}

h2 {
  font-size: 4rem;
  font-weight: bold;
  margin: 0 0 20px;
}

.version {
  color: #58c3ff;
}

p {
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.update-siape3-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.update-siape3-block-icon {
  width: 40px;
  height: auto;
  margin-right: 1rem;
  margin-top: 4px;
}

.update-siape3-block-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.update-siape3-list {
  list-style: none;
  padding-left: 0;
}

.update-siape3-list li {
  display: flex;
  align-items: center;
  color: #65ffae;
  font-weight: 600;
  margin-left: 0.8rem;
}

.update-siape3-list li img {
  width: 18px;
  height: auto;
  margin-right: 0.5rem;
}

.siapec3-integracao {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.siapec3-integracao-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.siapec3-integracao-titulo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.siapec3-integracao-logos-sistemas {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 150px;
  gap: 35px;
}

.siapec3-integracao-logos-sistemas img {
  max-height: 80px;
}

.siapec3-integracao-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

.siapec3-integracao-img {
  flex: 1;
  min-height: 300px;
}

.siapec3-integracao-img img {
  width: 100%;
  height: auto;
}

.integracao-texto {
  flex: 1;
  min-width: 300px;
  padding: 30px;
}

.integracao-texto h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.integracao-texto p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.app-banner-siapec3 {
  background-color: #02c06d;
  padding: 1rem 0;
  color: #fff;
}

.app-banner-siapec3 .container-siapec3 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.app-banner-content-siapec3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-text-siapec3 {
  flex: 1 1 30%;
}

.app-text-siapec3 h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 3rem;
  line-height: 3.5rem;
}

.app-text-siapec3 p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #f1f1f1;
}

.store-buttons-siapec3 a {
  display: inline-block;
  margin-right: 1rem;
}

.store-buttons-siapec3 img {
  height: 50px;
  transition: transform 0.1s;
}

.store-buttons-siapec3 img:hover {
  transform: scale(0.1);
}

.app-image-siapec3 {
  flex: 1 1 40%;
  text-align: center;
}

.app-image-siapec3 img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1200px) {
  .hero-text {
    order: 1;
  }
  .hero-graphic  {
    order: 2;
  }

  .features-siapec3-carousel-wrapper {
    min-height: auto; /* deixa o wrapper crescer conforme conteúdo */
  }

  .features-siapec3-carousel {
    position: relative; /* deixa no fluxo normal */
    height: auto; /* ajusta automaticamente */
    display: none; /* escondido por padrão */
  }

  .features-siapec3-carousel.active {
    display: block; /* exibe apenas a ativa */
  }

  .features-siapec3-carousel-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    padding: 15px;
    gap: 20px;
  }

  .features-siapec3-carousel-image img {
    max-width: 100%;
    height: auto;
  }

  .features-siapec3-carousel-text {
    max-width: 100%;
    text-align: left;
  }

  /* Botões do carrossel dentro da tela */
  .features-siapec3-carousel-btn.left {
    left: 10px;
  }
  .features-siapec3-carousel-btn.right {
    right: 10px;
  }
  
  .siapec3-integracao-logos-sistemas {
    flex-direction: column;
    gap: 20px; 
    margin-bottom: 80px;
  }

  .siapec3-integracao-logos-sistemas img {
    max-height: 70px;
  }

   .features-siapec3-tabs {
    flex-direction: column;
    gap: 10px;
  }
  .features-siapec3-carousel-content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  .features-siapec3-carousel-text,
  .features-siapec3-carousel-image {
    max-width: 100%;
  }
  .features-siapec3-tab {
    width: 100%;
    justify-content: center;
  }
}


@media (max-width: 1024px) {
  .siapec3-integracao-logos-sistemas {
    display: flex;
    justify-content: space-between;
  }
  .siapec3-mobile-content {
    flex-direction: column-reverse;
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 1rem;
  }
  .siapec3-mobile-text {
    padding: 0 1rem;
    max-width: 100%;
  }
  .siapec3-mobile-text h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  .siapec3-mobile-text p {
    font-size: 0.95rem;
    text-align: justify;
  }
  .siapec3-mobile-image {
    max-width: 100%;
  }

  .about-siapec3-content {
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
  }
  .about-siapec3-image,
  .about-siapec3-image img {
    max-width: 100%;
    width: 100%;
  }
  .about-siapec3-text {
    padding: 0 1.5rem;
    max-width: 100%;
  }
  .about-siapec3-text h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  .about-siapec3-text p {
    font-size: 0.95rem;
    text-align: justify;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text,
  .hero-image {
    max-width: 100%;
  }

  .hero-text {
    order: 1;
  }
  .hero-image {
    order: 2;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 2rem;
    --space-gap: 1.5rem;
  }

  .siapec3-integracao-content {
    flex-direction: column;
    text-align: center;
  }
  .integracao-texto {
    text-align: left;
  }
  .siapec3-integracao-logos-sistemas img {
    max-height: 60px;
  }

  .siapec3-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 16px 0 16px;
  }
  .siapec3-content {
    width: 100%;
    padding: 0;
    text-align: left;
  }
  .siapec3-image {
    position: static;
    width: 100%;
    margin: 0 auto;
  }
  .siapec3-image img {
    max-width: 100%;
    height: auto;
  }
  .update-label {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 2rem;
  }
  p,
  .block-title h3,
  ul li {
    font-size: 1rem;
  }

  .siapec3-update {
    padding-bottom: 0;
  }
  .features-siapec3-tabs {
    flex-direction: column;
    gap: 10px;
  }
  .features-siapec3-carousel-content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  .features-siapec3-carousel-text,
  .features-siapec3-carousel-image {
    max-width: 100%;
  }
  .features-siapec3-tab {
    width: 100%;
    justify-content: center;
  }

  .autoatendimento-content {
    flex-direction: column;
    text-align: center;
  }
  .autoatendimento-text {
    padding: 0 1rem;
  }
  .autoatendimento-text h2 {
    font-size: 1.5rem;
  }
  .autoatendimento-text p {
    font-size: 0.95rem;
  }

  .hero-text {
    order: 1;
  }
  .hero-image {
    order: 2;
  }
  .hero-text h1 {
    font-size: 1.75rem;
  }
  .hero-text p {
    font-size: 0.95rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 10px 18px;
  }

  .features-grid-siapec3 {
    flex-direction: column;
    align-items: center;
  }
  .feature-card-siapec3 {
    max-width: 90%;
  }
}