* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
}

body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-loaded {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

/* ─── LAYOUT BASE ─── */

.page-wrapper {
  margin: 0 56px;
  padding-top: 32px;
  min-height: 100vh;
}

.lang-bar {
  width: 100%;
  text-align: right;
  padding: 8px 20px;
  font-size: 14px;
}

.lang-link {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.lang-link:hover {
  opacity: 0.6;
}


/* ─── HEADER ─── */

.header-bar {
  height: 64px;
  background: #F2F2F2;
  border-radius: 16px;
  width: 100%;
  padding: 0 16px;
  margin-bottom: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-link {
  color: #000;
  font-size: 16px;
  letter-spacing: -0.48px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.logo {
  height: 42px;
  max-width: 220px;
  display: block;
}

.btn-consulta {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 16px;
  background: #329154;
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.48px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-consulta:hover {
  background: #2a7a45;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 145, 84, 0.25);
}

/* ─── CPI SECTION ─── */

.cpi-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-label {
  margin-top: 32px;
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid #329154;
  background: #FFFFFF;
  color: #329154;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.cpi-title {
  margin-top: 24px;
  margin-bottom: 0;
  color: #000;
  text-align: center;
  font-size: 40px;
  font-weight: 400;
  line-height: 50px;
}

.cpi-subtitle {
  margin-top: 16px;
  width: 464px;
  color: #000;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
}

/* ─── INTRO ─── */

.intro-text-section {
  margin-top: 54px;
}

.intro-text-container {
  max-width: 768px;
}

.intro-text {
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -1.2px;
}

/* ─── IMAGENS ─── */

.cpi-images {
  margin-top: 56px;
  display: flex;
  gap: 24px;
}

.cpi-images.reverse {
  flex-direction: row-reverse;
}

.cpi-images img {
  border-radius: 16px;
  object-fit: cover;
}

.img-left {
  width: 768px;
  height: 536px;
}

.img-right {
  width: 544px;
  height: 536px;
}

/* ─── CPI TEXT ─── */

.cpi-text-section {
  margin-top: 32px;
}

.cpi-text {
  width: 768px;
  color: #000;
  font-size: 20px;
  line-height: 36px;
}

/* ─── ICONS BAR ─── */

.icons-bar {
  margin-top: 56px;
  background: #F2F2F2;
  border-radius: 16px;
  height: 264px;
  display: flex;
  align-items: center;
}

.icons-bar-content {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-item img {
  height: 60px;
  margin-bottom: 16px;
}

.icon-item h3 {
  margin: 0 0 12px 0;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}

.icon-item p {
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 22px;
}

/* ─── ESPECIALIDADES ─── */

.especialidades-bar {
  height: 64px;
  background: #329154;
  border-radius: 16px;
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.especialidades-text {
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── FOOTER ─── */

.footer {
  height: 160px;
  background-color: #329154;
  border-radius: 16px 16px 0 0;
  margin-top: 56px;
  position: relative;
  display: flex;
}

.footer-column {
  flex: 1;
}

.footer-column p {
  position: absolute;
  bottom: 24px;
  color: #FFF;
    font-size: 12px;
}

.footer-column.left p {
  left: 24px;
  text-align: left;
}

.footer-column.right p {
  right: 24px;
  text-align: right;
}

.footer-column.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-column.center img {
  width: 100px;
}

/* ────────────────────────────────────────── RESPONSIVE ────────────────────────────────────────── */


@media (max-width: 768px) {
  .page-wrapper {
    margin: 0 16px;
    padding-top: 16px;
  }

  .header-bar {
    height: 56px;
    border-radius: 12px;
    padding: 0 12px;
  }

  .logo-center {
    position: static;
    transform: none;
    pointer-events: auto;
  }

  .logo {
    height: 36px;
  }

  .menu-toggle {
    display: block;
  }

  .btn-consulta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #F2F2F2;
    border-radius: 16px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
  }

  .nav-menu.active {
    display: flex;
  }

  .cpi-images {
    flex-direction: column;
    gap: 16px;
  }

  .cpi-images img {
    width: 100%;
    height: auto;
  }

  .cpi-text {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .intro-text {
    font-size: 28px;
    line-height: 36px;
  }

  .icon-item h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .icon-item p {
    font-size: 14px;
    line-height: 20px;
  }

  .cpi-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .cpi-subtitle,
  .cpi-title {
    width: 100%;
    box-sizing: border-box;
  }

  .especialidades-bar {
    padding: 0 16px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .especialidades-text {
    font-size: 16px;
  }

  .especialidades-bar::-webkit-scrollbar {
    display: none;
  }

  .especialidades-bar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

/* ─── FOOTER (MOBILE) ─── */

.footer {
  margin: 32px 16px;
  height: auto;
  padding: 32px 16px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Cada coluna */
.footer-column {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Texto */
.footer-column p {
  position: static;
  text-align: center;
  width: 100%;
  font-size: 12px;
  line-height: 16px;
}

/* ORDEM NO MOBILE */
.footer-column:nth-child(2) {
  order: 1;
}
.footer-column:nth-child(1) {
  order: 2;
}
.footer-column:nth-child(3) {
  order: 3;
}