:root {
  --azul-claro: #92b3c0;
  --azul-escuro: #173c57;
  --verde-escuro: #2c4f30;
  --bege: #f5f3f0;
  --preto: #1a1a1a;
  --dourado: #d4af37;
  --dourado-claro: #f4e4bc;
  --header-height: 76px;
  --radius: 1rem;
  --shadow: 0 18px 44px rgba(23, 60, 87, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(23, 60, 87, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: white;
  color: var(--azul-escuro);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(23, 60, 87, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(23, 60, 87, 0.08);
}

.nav-link {
  position: relative;
  color: var(--azul-escuro);
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: -0.45rem;
  left: 50%;
  height: 2px;
  background: var(--dourado);
  transition: right 180ms ease, left 180ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  right: 0;
  left: 0;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(23, 60, 87, 0.08);
  box-shadow: 0 18px 32px rgba(23, 60, 87, 0.1);
  transition: max-height 280ms ease, opacity 180ms ease;
}

.mobile-menu.is-open {
  max-height: calc(100vh - var(--header-height));
  opacity: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--azul-escuro);
  font-size: 1.05rem;
  font-weight: 600;
}

.glass {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-premium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dourado), var(--dourado-claro));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-premium::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transition: transform 420ms ease;
}

.btn-premium:hover,
.btn-premium:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.3);
}

.btn-premium:hover::before,
.btn-premium:focus-visible::before {
  transform: translateX(110%);
}

.btn-fixed {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.btn-fixed.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.card-premium {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 60, 87, 0.09);
  box-shadow: var(--shadow);
}

.form-premium input,
.form-premium select,
.form-premium textarea {
  min-height: 3.5rem;
  background: white;
  border-color: rgba(23, 60, 87, 0.12);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-premium input:hover,
.form-premium select:hover,
.form-premium textarea:hover {
  border-color: rgba(23, 60, 87, 0.24);
}

.form-premium input:focus,
.form-premium select:focus,
.form-premium textarea:focus {
  border-color: var(--azul-escuro);
  box-shadow: 0 0 0 4px rgba(23, 60, 87, 0.1);
  outline: none;
}

.form-premium select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.text-azul-gradient {
  color: var(--azul-escuro);
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul-claro));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.carousel-slide,
.carousel-slide-inicio {
  min-width: 100%;
}

#carouselTrack,
#carouselTrackInicio {
  will-change: transform;
}

.carousel-indicator {
  border: 1px solid rgba(23, 60, 87, 0.15);
}

.carousel-indicator.is-active {
  background: var(--azul-escuro) !important;
  transform: scale(1.15);
}

.faq-toggle {
  cursor: pointer;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms ease, opacity 220ms ease, padding 300ms ease;
}

.faq-content.active {
  max-height: 32rem;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  opacity: 1;
}

.faq-toggle svg {
  flex: 0 0 auto;
  transition: transform 220ms ease;
}

.faq-toggle.active svg {
  transform: rotate(180deg);
}

.footer-link {
  display: block;
  color: rgb(209 213 219);
  transition: color 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible,
.footer-icon:hover,
.footer-icon:focus-visible {
  color: var(--dourado);
}

.footer-icon {
  color: rgb(156 163 175);
  transition: color 180ms ease;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Seção de temas da imersão */
#sobre {
  background:
    radial-gradient(circle at 10% 20%, rgba(146, 179, 192, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f7f7 100%);
}

#sobre > .absolute.inset-0,
#sobre > .absolute.top-0 {
  display: none;
}

#sobre .relative.z-10 {
  max-width: 76rem;
}

#sobre .text-center {
  margin-bottom: 3.5rem;
}

#sobre .text-center > .inline-flex {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dourado);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#sobre .text-center > .inline-flex i,
#sobre .text-center > .inline-flex svg {
  display: none;
}

#sobre h2 {
  max-width: 66rem;
  margin-right: auto;
  margin-bottom: 1.1rem;
  margin-left: auto;
  color: var(--azul-escuro);
  background: none;
  font-size: clamp(2.35rem, 4.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  -webkit-text-fill-color: initial;
}

#sobre .text-center > .w-24 {
  width: 6rem;
  height: 3px;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--azul-escuro) 0 58%, var(--dourado) 58% 100%);
}

#sobre .text-center::after {
  content: 'Quatro abordagens clínicas complementares para o cuidado do paciente bariátrico em todas as fases.';
  display: block;
  max-width: 48rem;
  margin: 0 auto;
  color: rgba(23, 60, 87, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

#sobre .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 74rem;
  margin: 0 auto;
}

#sobre .grid > div {
  min-height: 21rem;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(23, 60, 87, 0.08);
  border-top: 3px solid var(--dourado) !important;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 60, 87, 0.11);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#sobre .grid > div:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 60, 87, 0.15);
  box-shadow: 0 22px 46px rgba(23, 60, 87, 0.15);
}

#sobre .grid > div > .flex-grow {
  padding: 2.15rem 2.35rem 1.85rem;
}

#sobre .grid h3 {
  max-width: 29rem;
  margin-bottom: 1rem;
  color: var(--azul-escuro);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

#sobre .grid p {
  max-width: 31rem;
  color: rgba(23, 60, 87, 0.72);
  font-size: 0.98rem;
  line-height: 1.72;
}

#sobre .grid > div > .flex.items-center {
  justify-content: flex-start !important;
  min-height: 6.4rem;
  margin-top: 0 !important;
  padding: 1rem 2.35rem !important;
  border-top: 1px solid rgba(23, 60, 87, 0.07) !important;
  background: linear-gradient(90deg, rgba(146, 179, 192, 0.11), rgba(245, 247, 247, 0.7));
}

#sobre .grid > div > .flex.items-center img {
  width: 3.9rem;
  height: 3.9rem;
  border: 2px solid rgba(146, 179, 192, 0.72);
  box-shadow: 0 4px 12px rgba(23, 60, 87, 0.12);
}

#sobre .grid > div > .flex.items-center span {
  color: var(--azul-escuro);
  font-size: 1rem;
  font-weight: 700;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bege);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bege);
  border-radius: 999px;
  background: var(--azul-claro);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--azul-escuro);
}

@media (max-width: 767px) {
  #sobre {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  #sobre .text-center {
    margin-bottom: 2.5rem;
  }

  #sobre .grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  #sobre .grid > div {
    min-height: auto;
  }

  #sobre .grid > div > .flex-grow {
    padding: 1.65rem 1.5rem 1.5rem;
  }

  #sobre .grid > div > .flex.items-center {
    min-height: 5.5rem;
    padding: 0.85rem 1.5rem !important;
  }

  #sobre .grid > div > .flex.items-center img {
    width: 3.3rem;
    height: 3.3rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  #carouselInicio {
    display: none !important;
  }

  #speakers-mobile {
    display: block !important;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .btn-fixed {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem;
  }

  .form-premium {
    padding: 1.5rem !important;
  }
}

@media (min-width: 641px) {
  #speakers-mobile {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #particles-js {
    display: none;
  }
}