/* AVANTHY INSTITUTIONAL POPUP — INÍCIO */

.avt-ip-overlay,
.avt-ip-overlay * {
  box-sizing: border-box;
}

.avt-ip-overlay {
  position: fixed;
  z-index: 99990;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 18, 38, 0.70);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

.avt-ip-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.avt-ip-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(0, 35, 77, 0.10);
  border-radius: 26px;
  box-shadow: 0 34px 100px rgba(0, 18, 38, 0.32);
  transform: translateY(28px) scale(0.97);
  transition: transform 380ms cubic-bezier(.2,.8,.2,1);
}

.avt-ip-overlay.is-visible .avt-ip-dialog {
  transform: translateY(0) scale(1);
}

.avt-ip-visual {
  position: relative;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 38px;
  color: #fff;
  background:
    radial-gradient(
      circle at 90% 12%,
      rgba(255, 102, 0, 0.42),
      transparent 34%
    ),
    linear-gradient(145deg, #001a38 0%, #003f70 60%, #0065a3 100%);
  overflow: hidden;
}

.avt-ip-visual::before,
.avt-ip-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.avt-ip-visual::before {
  right: -120px;
  bottom: -90px;
  width: 310px;
  height: 310px;
}

.avt-ip-visual::after {
  right: -65px;
  bottom: -35px;
  width: 200px;
  height: 200px;
}

.avt-ip-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.avt-ip-visual-copy {
  position: relative;
  z-index: 1;
}

.avt-ip-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #ffb17d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.avt-ip-kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #ff6600, #ff9a52);
  border-radius: 999px;
}

.avt-ip-visual h3 {
  max-width: 320px;
  margin: 0 0 16px;
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -1px;
}

.avt-ip-visual p {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: Poppins, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.75;
}

.avt-ip-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 48px;
}

.avt-ip-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: #1f2937;
  background: #f0f4f8;
  border: 1px solid #dce5ed;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.avt-ip-close:hover,
.avt-ip-close:focus-visible {
  color: #000;
  background: #e4ebf1;
  transform: rotate(7deg);
}

.avt-ip-eyebrow {
  margin: 0 0 15px;
  color: #0065a3;
  font-family: Poppins, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.avt-ip-content h2 {
  margin: 0;
  color: #00234d;
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(28px, 3.6vw, 39px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.avt-ip-description {
  margin: 18px 0 0;
  color: #5d7084;
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.75;
}

.avt-ip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.avt-ip-tags span {
  padding: 8px 11px;
  color: #174365;
  background: #eff7fc;
  border: 1px solid #d6e9f5;
  border-radius: 999px;
  font-family: Poppins, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.avt-ip-actions {
  display: grid;
  gap: 11px;
  margin-top: 27px;
}

.avt-ip-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 13px;
  font-family: Poppins, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform 190ms ease,
    box-shadow 190ms ease;
}

.avt-ip-button:hover,
.avt-ip-button:focus-visible {
  transform: translateY(-2px);
}

.avt-ip-button-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6600, #ff8d3b);
  box-shadow: 0 12px 28px rgba(255, 102, 0, 0.24);
}

.avt-ip-button-primary:hover,
.avt-ip-button-primary:focus-visible {
  box-shadow: 0 16px 34px rgba(255, 102, 0, 0.32);
}

.avt-ip-button-secondary {
  color: #fff;
  background: linear-gradient(135deg, #00234d, #0079bd);
  box-shadow: 0 12px 28px rgba(0, 70, 120, 0.18);
}

.avt-ip-note {
  margin: 17px 0 0;
  color: #8090a0;
  font-family: Poppins, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

body.avt-ip-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .avt-ip-overlay {
    align-items: end;
    padding: 12px;
  }

  .avt-ip-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .avt-ip-visual {
    min-height: auto;
    padding: 25px 24px;
  }

  .avt-ip-logo {
    width: 160px;
  }

  .avt-ip-visual-copy {
    margin-top: 38px;
  }

  .avt-ip-visual h3 {
    max-width: 500px;
    margin-bottom: 0;
    font-size: 24px;
  }

  .avt-ip-visual p,
  .avt-ip-kicker {
    display: none;
  }

  .avt-ip-content {
    padding: 34px 24px 28px;
  }

  .avt-ip-close {
    top: 15px;
    right: 15px;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.94);
  }

  .avt-ip-content h2 {
    max-width: calc(100% - 25px);
    font-size: 28px;
    letter-spacing: -1px;
  }
}

@media (max-width: 390px) {
  .avt-ip-overlay {
    padding: 7px;
  }

  .avt-ip-content {
    padding: 28px 19px 22px;
  }

  .avt-ip-description {
    font-size: 12px;
  }

  .avt-ip-tags {
    margin-top: 17px;
  }

  .avt-ip-button {
    min-height: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avt-ip-overlay,
  .avt-ip-dialog,
  .avt-ip-button,
  .avt-ip-close {
    transition: none;
  }
}

/* AVANTHY INSTITUTIONAL POPUP — FIM */
