.hero.hero-composite {
  --hero-copy: #fff;
  --hero-subcopy: #edf5ef;
  --hero-note-copy: #f4faf6;
  --hero-veil-start: rgba(3, 9, 8, .96);
  --hero-veil-middle: rgba(3, 9, 8, .78);
  --hero-veil-end: rgba(3, 9, 8, .12);
  min-height: calc(100vh - 86px);
  padding: 50px 0 42px;
  background: #08100d;
}

.hero.hero-composite::before {
  display: block;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--hero-veil-start) 0%, var(--hero-veil-middle) 38%, var(--hero-veil-end) 61%, transparent 72%);
  filter: none;
  transform: none;
  pointer-events: none;
}

.hero.hero-composite::after {
  display: none;
}

.hero-composite .hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.hero-composite .hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-composite .hero-grid {
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100svh - 164px));
}

.hero-composite .hero-copybox {
  width: min(49%, 600px);
  max-width: none;
}

.hero-composite .eyebrow {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  color: var(--hero-copy);
}

.hero-composite h1 {
  color: var(--hero-copy);
  text-shadow: 0 3px 28px rgba(0, 0, 0, .55);
}

.hero-composite p {
  color: var(--hero-subcopy);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.hero-composite .hero-note,
.hero-composite .hero-note span {
  color: var(--hero-note-copy);
}

.hero-composite.hero-light {
  --hero-copy: #111716;
  --hero-subcopy: #26342e;
  --hero-note-copy: #23322c;
  --hero-veil-start: rgba(255, 255, 255, .98);
  --hero-veil-middle: rgba(255, 255, 255, .86);
  --hero-veil-end: rgba(255, 255, 255, .18);
  background: #f5f7f5;
}

.hero-composite.hero-light .eyebrow {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(17, 23, 22, .16);
  color: var(--accent);
}

.hero-composite.hero-light h1,
.hero-composite.hero-light p {
  text-shadow: none;
}

@media (max-width: 980px) {
  .hero.hero-composite {
    min-height: calc(100svh - 70px);
    padding: 26px 0 28px;
  }

  .hero-composite .hero-grid {
    min-height: calc(100svh - 128px);
  }

  .hero-composite .hero-copybox {
    width: min(58%, 540px);
  }
}

@media (max-width: 620px) {
  .hero.hero-composite {
    align-items: flex-start;
    min-height: 0;
    height: auto;
    padding: 16px 0 18px;
  }

  .hero.hero-composite::before {
    background: linear-gradient(90deg, var(--hero-veil-start) 0%, var(--hero-veil-middle) 48%, var(--hero-veil-end) 74%, transparent 90%);
  }

  .hero.hero-composite.hero-mobile-contrast::before {
    background: linear-gradient(90deg, rgba(3, 9, 8, .99) 0%, rgba(3, 9, 8, .97) 54%, rgba(3, 9, 8, .76) 72%, rgba(3, 9, 8, .18) 88%, transparent 96%);
  }

  .hero-composite .hero-art {
    inset: 0 0 auto;
    height: calc(100svh - 70px);
  }

  .hero-composite .hero-art img {
    object-position: center top;
  }

  .hero-composite .hero-grid {
    display: flex;
    min-height: 0;
    align-items: flex-start;
  }

  .hero-composite .hero-copybox {
    width: 72%;
    padding-top: 0;
  }

  .hero-composite .eyebrow {
    max-width: 100%;
    padding: 8px 10px;
    font-size: .62rem;
    line-height: 1.08;
  }

  .hero-composite h1 {
    max-width: 100%;
    margin: 13px 0 11px;
    font-size: clamp(1.62rem, 8.55vw, 2.08rem);
    line-height: .98;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .hero-composite .hero-title-long {
    font-size: clamp(1.4rem, 7.2vw, 1.9rem);
  }

  .hero-composite .hero-title-xlong {
    font-size: clamp(1.18rem, 6.3vw, 1.58rem);
  }

  .hero-composite .hero-title-word {
    font-size: clamp(1.25rem, 6.5vw, 1.72rem);
  }

  .hero-composite p {
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.32;
  }

  .hero-composite .hero-actions {
    max-width: 100%;
    margin-top: 16px;
  }

  .hero-composite .hero-actions .btn {
    width: 100%;
    min-height: 62px;
    padding: 0 13px;
    font-size: .85rem;
  }

  .hero-composite .hero-note {
    display: none;
  }
}

.hero.hero-polished {
  --hero-title-accent: var(--second);
  --hero-polished-copy: #fff;
  --hero-polished-subcopy: #f5faf7;
  --hero-polished-veil-start: rgba(3, 9, 8, .99);
  --hero-polished-veil-middle: rgba(3, 9, 8, .9);
  --hero-polished-veil-soft: rgba(3, 9, 8, .48);
}

.hero.hero-polished::before {
  background:
    linear-gradient(90deg,
      var(--hero-polished-veil-start) 0%,
      var(--hero-polished-veil-start) 24%,
      var(--hero-polished-veil-middle) 43%,
      var(--hero-polished-veil-soft) 59%,
      transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 42%, rgba(0, 0, 0, .24));
}

.hero-polished .hero-copybox {
  width: min(52%, 660px);
}

.hero-polished h1 {
  max-width: 15ch;
  margin: 20px 0 18px;
  color: var(--hero-polished-copy);
  font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.85rem, 4.45vw, 4.45rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-shadow: 0 3px 26px rgba(0, 0, 0, .7);
}

.hero-polished h1.hero-title-long {
  max-width: 17ch;
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.hero-polished h1.hero-title-xlong {
  max-width: 19ch;
  font-size: clamp(2.35rem, 3.6vw, 3.65rem);
}

.hero-polished .hero-highlight {
  display: block;
  margin-top: .08em;
  color: var(--hero-title-accent);
  text-shadow: 0 3px 28px rgba(0, 0, 0, .76);
}

.hero-polished .hero-copybox > p {
  max-width: 46ch;
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--hero-title-accent);
  color: var(--hero-polished-subcopy);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 560;
  line-height: 1.48;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .72);
}

.hero-polished.hero-light {
  --hero-polished-copy: #101815;
  --hero-polished-subcopy: #26332e;
  --hero-polished-veil-start: rgba(250, 252, 249, .995);
  --hero-polished-veil-middle: rgba(250, 252, 249, .94);
  --hero-polished-veil-soft: rgba(250, 252, 249, .56);
}

.hero-polished.hero-light::before {
  background:
    linear-gradient(90deg,
      var(--hero-polished-veil-start) 0%,
      var(--hero-polished-veil-start) 24%,
      var(--hero-polished-veil-middle) 43%,
      var(--hero-polished-veil-soft) 60%,
      transparent 80%),
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 48%, rgba(17, 26, 22, .08));
}

.hero-polished.hero-light h1,
.hero-polished.hero-light .hero-highlight,
.hero-polished.hero-light .hero-copybox > p {
  text-shadow: none;
}

.hero.hero-course-cannabis {
  --hero-title-accent: #177e32;
}

.hero.hero-course-clinica {
  --hero-title-accent: #f0c75f;
}

.hero.hero-course-comportamento {
  --hero-title-accent: #ff82b6;
}

.hero.hero-course-nutricao {
  --hero-title-accent: #ed83dc;
}

.hero.hero-course-postura {
  --hero-title-accent: #f1bd52;
}

.hero.hero-course-suinos {
  --hero-title-accent: #ff86b6;
}

.hero.hero-course-qualidade {
  --hero-title-accent: #0c6470;
}

.hero.hero-course-reproducao {
  --hero-title-accent: #ef77d7;
}

.hero.hero-course-sanidade {
  --hero-title-accent: #a94b16;
}

.hero.hero-course-saude {
  --hero-title-accent: #91dc78;
}

@media (max-width: 980px) {
  .hero-polished .hero-copybox {
    width: min(61%, 570px);
  }
}

@media (max-width: 620px) {
  .hero.hero-polished::before {
    background:
      linear-gradient(90deg,
        rgba(3, 9, 8, .98) 0%,
        rgba(3, 9, 8, .97) 32%,
        rgba(3, 9, 8, .88) 50%,
        rgba(3, 9, 8, .54) 64%,
        rgba(3, 9, 8, .14) 76%,
        transparent 90%),
      linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 54%, rgba(0, 0, 0, .2));
  }

  .hero.hero-polished.hero-light::before {
    background:
      linear-gradient(90deg,
        rgba(250, 252, 249, .995) 0%,
        rgba(250, 252, 249, .985) 34%,
        rgba(250, 252, 249, .9) 52%,
        rgba(250, 252, 249, .6) 66%,
        rgba(250, 252, 249, .16) 78%,
        transparent 91%),
      linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 58%, rgba(17, 26, 22, .08));
  }

  .hero.hero-composite.hero-polished.hero-mobile-contrast::before {
    background:
      linear-gradient(90deg,
        rgba(3, 9, 8, .995) 0%,
        rgba(3, 9, 8, .99) 38%,
        rgba(3, 9, 8, .93) 55%,
        rgba(3, 9, 8, .62) 68%,
        rgba(3, 9, 8, .18) 80%,
        transparent 91%),
      linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 54%, rgba(0, 0, 0, .2));
  }

  .hero.hero-course-cannabis.hero-light::before {
    background:
      linear-gradient(90deg,
        rgba(250, 252, 249, .998) 0%,
        rgba(250, 252, 249, .99) 39%,
        rgba(250, 252, 249, .94) 55%,
        rgba(250, 252, 249, .68) 68%,
        rgba(250, 252, 249, .2) 80%,
        transparent 92%),
      linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 58%, rgba(17, 26, 22, .08));
  }

  .hero.hero-course-comportamento .hero-art img {
    transform: translateY(-19%);
  }

  .hero.hero-course-nutricao .hero-art img {
    object-position: 15% top;
    transform: translate(6%, -20%);
  }

  .hero.hero-course-suinos .hero-art img {
    object-position: 15% top;
    transform: translateX(2%);
  }

  .hero.hero-course-qualidade .hero-art {
    inset: -40% 0 auto;
    height: 140%;
  }

  .hero-polished .hero-copybox {
    width: 72%;
  }

  .hero-polished h1,
  .hero-polished h1.hero-title-long,
  .hero-polished h1.hero-title-xlong {
    max-width: 100%;
    margin: 14px 0 12px;
    font-size: clamp(1.72rem, 8vw, 2.14rem);
    line-height: .98;
  }

  .hero-polished h1.hero-title-long {
    font-size: clamp(1.58rem, 7.45vw, 1.98rem);
  }

  .hero-polished h1.hero-title-xlong {
    font-size: clamp(1.42rem, 6.8vw, 1.82rem);
  }

  .hero-polished .hero-highlight {
    margin-top: .1em;
  }

  .hero-polished .hero-copybox > p {
    max-width: 100%;
    padding-left: 11px;
    border-left-width: 2px;
    font-size: .95rem;
    line-height: 1.38;
  }
}

@media (max-width: 380px), (max-width: 620px) and (max-height: 700px) {
  .hero-polished h1,
  .hero-polished h1.hero-title-long,
  .hero-polished h1.hero-title-xlong {
    margin: 11px 0 9px;
    font-size: clamp(1.34rem, 6.55vw, 1.64rem);
  }

  .hero-polished .hero-copybox > p {
    font-size: .84rem;
    line-height: 1.3;
  }

  .hero-polished .hero-actions {
    margin-top: 12px;
  }

  .hero-polished .hero-actions .btn {
    min-height: 52px;
    font-size: .76rem;
  }
}

.hero .hero-actions .btn[data-open-modal] {
  position: relative;
  isolation: isolate;
  transform-origin: center;
  animation: hero-cta-breathe 3.6s cubic-bezier(.22, .61, .36, 1) infinite;
}

.hero .hero-actions .btn[data-open-modal]::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: hero-cta-ring 3.6s ease-out infinite;
}

@keyframes hero-cta-breathe {
  0%,
  18%,
  100% {
    transform: scale(1);
  }

  7% {
    transform: scale(1.018);
  }

  12% {
    transform: scale(.997);
  }
}

@keyframes hero-cta-ring {
  0%,
  3% {
    opacity: 0;
    transform: scale(.985);
  }

  8% {
    opacity: .58;
  }

  20% {
    opacity: 0;
    transform: scale(1.075);
  }

  100% {
    opacity: 0;
    transform: scale(1.075);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-actions .btn[data-open-modal],
  .hero .hero-actions .btn[data-open-modal]::after {
    animation: none;
  }
}
