/* Tipografia padrão dos sites: Poppins (corpo + menu) + Oswald (títulos de seção) */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oswald-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oswald-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/oswald-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/oswald-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --site-container: 72rem; /* ~max-w-6xl */
  --site-bg: #0a0a0a;
  --site-header-overlay-opacity: 0.42;
  --site-logo-max-width: 500px;
  /* Menu/header usam a mesma cor de fundo do site, com opacidade no overlay */
  --site-header-bg: color-mix(
    in srgb,
    var(--site-bg) calc(var(--site-header-overlay-opacity) * 100%),
    transparent
  );
  --site-header-bg-compact: color-mix(in srgb, var(--site-bg) 72%, transparent);
  --site-submenu-bg: color-mix(in srgb, var(--site-bg) 96%, transparent);
  --site-header-border: rgba(255, 255, 255, 0.08);
  --site-text: #f8fafc;
  --site-text-muted: rgba(248, 250, 252, 0.86);
  --site-accent: #2dd4bf;
  --site-logo-height: 2.75rem;
  --site-font: "Poppins", system-ui, -apple-system, sans-serif;
  --site-font-body: var(--site-font);
  --site-font-nav: "Poppins", system-ui, -apple-system, sans-serif;
  --site-font-heading: "Oswald", sans-serif;
  --site-font-hero: "Poppins", system-ui, -apple-system, sans-serif;
  --site-hero-height: 100dvh;
  /* Trava de altura (mobile landscape / janela baixa). Alinhado ao compactar conteúdo. */
  --site-hero-min-height: 740px;
  --site-header-pad-y: 0.75rem;
  --site-header-pad-y-expanded: calc(0.75rem + 15px);
  --site-logo-height-expanded: 60px;
  --site-header-offset: 5.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--site-font);
  color: var(--site-text);
  background: var(--site-bg);
}

body {
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background: var(--site-header-bg);
  border-bottom: 1px solid var(--site-header-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Overlay: garante legibilidade do menu sobre hero claro ou ainda sem mídia. */
.site-header--overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 100%),
    var(--site-header-bg);
  border-bottom-color: transparent;
}

.site-header--static {
  position: static;
  background: var(--site-bg);
}

.site-header--stacked .site-header__inner {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-header--stacked .site-logo {
  justify-content: center;
}

.site-header--stacked .site-nav {
  justify-content: center;
  width: 100%;
}

.site-header__inner {
  width: min(100% - 2rem, var(--site-container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding-block: var(--site-header-pad-y-expanded);
  transition: padding-block 0.35s ease, min-height 0.35s ease;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
  max-width: min(42vw, var(--site-logo-max-width));
  max-height: var(--site-logo-height-expanded);
}

.site-logo[hidden],
.site-footer__logo[hidden],
.site-logo img[hidden],
.site-footer__logo img[hidden] {
  display: none !important;
}

.site-logo img {
  height: var(--site-logo-height-expanded);
  width: auto;
  max-width: 100%;
  max-height: 100%;
  transition: height 0.35s ease;
}

.site-logo img[data-logo-filter="monochrome_white"],
.site-footer__logo img[data-logo-filter="monochrome_white"] {
  filter: brightness(0) invert(1);
}

.site-logo img[data-logo-filter="monochrome_black"],
.site-footer__logo img[data-logo-filter="monochrome_black"] {
  filter: brightness(0);
}

.site-logo img[data-logo-filter="original"],
.site-footer__logo img[data-logo-filter="original"] {
  filter: none;
}

.site-header.is-compact {
  background: var(--site-header-bg-compact);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header.is-compact .site-header__inner {
  padding-block: var(--site-header-pad-y);
  min-height: 4.25rem;
}

.site-header.is-compact .site-logo {
  max-height: var(--site-logo-height);
}

.site-header.is-compact .site-logo img {
  height: var(--site-logo-height);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-self: center;
  min-width: 0;
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.35);
  color: #f8fafc;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 120;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.site-nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .site-nav-toggle__bar:nth-child(1) {
  transform: translateY(0.34rem) rotate(45deg);
}

.site-header.is-nav-open .site-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .site-nav-toggle__bar:nth-child(3) {
  transform: translateY(-0.34rem) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-header__inner,
  .site-header--inline .site-header__inner,
  .site-header--stacked .site-header__inner {
    position: relative;
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
  }

  .site-logo,
  .site-header--stacked .site-logo {
    position: relative;
    z-index: 120;
    flex: 0 1 auto;
    justify-content: flex-start;
    max-width: min(70vw, var(--site-logo-max-width));
  }

  .site-nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 120;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .site-nav,
  .site-header--stacked .site-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: auto;
    height: 100dvh;
    min-height: 100vh;
    margin: 0;
    /* Folga extra no topo (abaixo da logo/hamburger) e no rodapé */
    padding:
      max(7.25rem, calc(env(safe-area-inset-top) + 6.5rem))
      1.5rem
      max(3.25rem, calc(env(safe-area-inset-bottom) + 2.5rem));
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--site-bg) 62%, transparent);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .site-header.is-nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 20rem);
  }

  .site-nav__item {
    width: 100%;
    text-align: center;
    white-space: normal;
    font-size: 1.05rem;
    padding: 0.9rem 1.6rem;
    text-shadow: none;
  }

  .site-nav__item--parent {
    padding-inline-end: 1.6rem;
  }

  .site-nav__item--parent::before {
    right: 0.85rem;
  }

  .site-nav__item::after {
    right: 1.35rem;
    left: 1.35rem;
    bottom: 0.4rem;
  }

  .site-nav__submenu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    margin: 0 0 0.35rem;
    padding: 0.1rem 0 0.4rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .site-nav__group:hover .site-nav__submenu,
  .site-nav__group:focus-within .site-nav__submenu {
    /* No mobile o submenu só abre com .is-open (toque), não hover. */
    max-height: 0;
    pointer-events: none;
  }

  .site-nav__group.is-open .site-nav__submenu {
    max-height: 24rem;
    pointer-events: auto;
  }

  .site-nav__subitem {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    text-align: center;
  }

  body.is-nav-open {
    overflow: hidden;
  }
}

.site-nav__group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Menu: Poppins (casing conforme cadastro no CMS) */
.site-nav__item {
  position: relative;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 0;
  background: none;
  color: var(--site-text-muted);
  font-family: var(--site-font-nav);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  cursor: default;
  user-select: none;
  transition: color 0.2s ease;
}

.site-nav__item::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.2rem;
  left: 0.75rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav__item[data-active="true"] {
  color: var(--site-text);
}

.site-nav__item[data-active="true"]::after {
  transform: scaleX(1);
}

.site-nav__item:not([data-disabled="true"]) {
  cursor: pointer;
}

a.site-nav__item,
button.site-nav__item {
  text-decoration: none;
}

.site-nav__item:hover {
  color: var(--site-text);
}

.site-nav__item:hover::after {
  transform: scaleX(1);
}

.site-nav__item--parent {
  padding-inline-end: 1.45rem;
}

/* Pai com submenu: só a seta indica o estado; sem barra de ativo/hover. */
.site-nav__item--parent::after {
  display: none;
}

.site-nav__item--parent::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.8;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.site-nav__group:hover .site-nav__item--parent::before,
.site-nav__group:focus-within .site-nav__item--parent::before,
.site-nav__group.is-open .site-nav__item--parent::before {
  opacity: 1;
  transform: translateY(-25%) rotate(225deg);
}

.site-nav__submenu {
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 12rem;
  padding: 0.4rem 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: var(--site-submenu-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.site-nav__group:hover .site-nav__submenu,
.site-nav__group:focus-within .site-nav__submenu,
.site-nav__group.is-open .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav__subitem {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  text-align: left;
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: normal;
  text-shadow: none;
  color: var(--site-text-muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav__subitem::after {
  display: none;
}

.site-nav__subitem:hover,
.site-nav__subitem:focus-visible,
.site-nav__subitem[data-active="true"] {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.08);
}

.site-header--stacked .site-nav__submenu {
  left: 50%;
  transform: translateX(-50%);
}

.site-hero {
  position: relative;
  width: 100%;
  /* max() é mais confiável que só min-height+height em mobile/Safari. */
  height: max(100vh, var(--site-hero-min-height));
  height: max(var(--site-hero-height), var(--site-hero-min-height));
  min-height: var(--site-hero-min-height);
  overflow: hidden;
  background: var(--site-bg);
  scroll-margin-top: var(--site-header-offset);
}

.site-hero__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.site-hero__track.is-instant {
  transition: none;
}

.site-hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.site-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  --site-hero-overlay-opacity: 0.5;
}

.site-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.site-hero__media:has(.is-loaded)::after {
  opacity: var(--site-hero-overlay-opacity);
}

.site-hero__image,
.site-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.site-hero__image.is-loaded,
.site-hero__video.is-loaded {
  opacity: 1;
}

.site-hero__content {
  position: relative;
  z-index: 10;
  width: min(100% - 2rem, var(--site-container));
  margin-inline: auto;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-hero__content.is-h-left {
  align-items: flex-start;
  text-align: left;
  margin-inline: 0 auto;
  padding-inline-start: max(1rem, env(safe-area-inset-left));
}

.site-hero__content.is-h-center {
  align-items: center;
  text-align: center;
}

.site-hero__content.is-h-right {
  align-items: flex-end;
  text-align: right;
  margin-inline: auto 0;
  padding-inline-end: max(1rem, env(safe-area-inset-right));
}

.site-hero__content.is-v-top {
  justify-content: flex-start;
}

.site-hero__content.is-v-center {
  justify-content: center;
}

.site-hero__content.is-v-bottom {
  justify-content: flex-end;
}

.site-hero__content.is-h-left .site-hero__panel {
  align-items: flex-start;
}

.site-hero__content.is-h-center .site-hero__panel {
  align-items: center;
}

.site-hero__content.is-h-right .site-hero__panel {
  align-items: flex-end;
}

.site-hero__nav {
  position: absolute;
  top: 50%;
  bottom: auto;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-bg) 55%, transparent);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.site-hero__nav:hover,
.site-hero__nav:focus-visible {
  background: color-mix(in srgb, var(--site-bg) 75%, transparent);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.site-hero__nav--prev {
  left: max(0.75rem, env(safe-area-inset-left));
}

.site-hero__nav--next {
  right: max(0.75rem, env(safe-area-inset-right));
}

.site-hero__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 640px) {
  .site-hero__nav {
    width: 2.35rem;
    height: 2.35rem;
  }
}

.site-header--overlay ~ .site-hero .site-hero__content {
  padding-top: 6.5rem;
}

.site-header--overlay.site-header--stacked ~ .site-hero .site-hero__content {
  padding-top: 9.5rem;
}

.site-hero__panel {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  --site-hero-text-scale: 1;
}

.site-hero__panel.is-pending {
  opacity: 0;
  pointer-events: none;
}

.site-hero__panel.is-entered {
  pointer-events: auto;
}

.site-hero__panel.is-entered[data-enter="none"] {
  opacity: 1;
}

.site-hero__panel.is-entered[data-enter="fade"] {
  animation: site-hero-panel-fade 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-hero__panel.is-entered[data-enter="fade-up"] {
  animation: site-hero-panel-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-hero__panel.is-entered[data-enter="fade-down"] {
  animation: site-hero-panel-fade-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-hero__panel.is-entered[data-enter="fade-left"] {
  animation: site-hero-panel-fade-left 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-hero__panel.is-entered[data-enter="fade-right"] {
  animation: site-hero-panel-fade-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-hero__panel.is-entered[data-enter="zoom"] {
  animation: site-hero-panel-zoom 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes site-hero-panel-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes site-hero-panel-fade-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes site-hero-panel-fade-down {
  from { opacity: 0; transform: translateY(-1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes site-hero-panel-fade-left {
  from { opacity: 0; transform: translateX(1.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes site-hero-panel-fade-right {
  from { opacity: 0; transform: translateX(-1.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes site-hero-panel-zoom {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero__panel.is-entered {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.site-hero__eyebrow {
  margin: 0;
  font-family: var(--site-font-hero);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.site-hero__text {
  margin: 0;
  font-family: var(--site-font-hero);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  max-width: 48rem;
}

.site-hero__text--xs {
  font-size: calc(0.8rem * var(--site-hero-text-scale, 1));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-hero__text--s {
  font-size: calc(0.95rem * var(--site-hero-text-scale, 1));
  font-weight: 500;
  line-height: 1.4;
}

.site-hero__text--m {
  font-size: calc(clamp(0.95rem, 1.6vw, 1.125rem) * var(--site-hero-text-scale, 1));
  font-weight: 400;
  line-height: 1.45;
}

.site-hero__text--l {
  font-size: calc(clamp(1.5rem, 3vw, 2rem) * var(--site-hero-text-scale, 1));
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.site-hero__text--xl {
  font-size: calc(clamp(2.25rem, 5vw, 3.75rem) * var(--site-hero-text-scale, 1));
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.site-hero__title {
  margin: 0;
  font-family: var(--site-font-hero);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.site-hero__subtitle {
  margin: 0;
  max-width: 36rem;
  font-family: var(--site-font-hero);
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.site-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.25rem;
  margin-top: 0.35rem;
}

.site-hero__meta-item {
  font-family: var(--site-font-hero);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.site-hero__countdown {
  margin-top: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-hero__countdown-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--site-font-hero);
  font-size: calc(0.72rem * var(--site-hero-text-scale, 1));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.78);
}

.site-hero__countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(3.25rem, 1fr));
  gap: 0.55rem;
}

.site-hero__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 3.25rem;
}

.site-hero__countdown-unit strong {
  font-family: var(--site-font-hero);
  font-size: calc(1.45rem * var(--site-hero-text-scale, 1));
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.site-hero__countdown-unit small {
  font-size: calc(0.68rem * var(--site-hero-text-scale, 1));
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.7);
}

.site-hero__actions {
  margin-top: 0.5rem;
}

.site-hero__spacer {
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}

.site-hero__spacer--s {
  height: 0.75rem;
}

.site-hero__spacer--m {
  height: 1.5rem;
}

.site-hero__spacer--l {
  height: 2.5rem;
}

.site-hero__spacer--xl {
  height: 4rem;
}

.site-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--site-accent);
  color: #042f2e;
  font-family: var(--site-font-hero);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: default;
  user-select: none;
}

.site-hero__cta[href] {
  cursor: pointer;
}

/* Mobile: esconde espaçadores; textos e countdown a 85% (botões CTA intactos). */
@media (max-width: 900px) {
  .site-hero__spacer {
    display: none;
  }

  .site-hero__panel {
    --site-hero-text-scale: 0.85;
  }
}

/* Viewport baixo: remove espaçadores e reduz textos/countdown (CTAs intactos). */
@media (max-height: 740px) {
  .site-hero__spacer {
    display: none;
  }

  .site-hero__panel {
    --site-hero-text-scale: 0.85;
  }
}

.site-main {
  background: #0a0a0a;
}

.site-section {
  scroll-margin-top: var(--site-header-offset);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.site-section__inner {
  width: min(100% - 2rem, var(--site-container));
  margin-inline: auto;
}

.site-section__title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: var(--site-font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  /* Compensa o letter-spacing para o centro óptico alinhar com a mídia */
  padding-inline-start: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.site-section__title:has(+ .site-section__subtitle) {
  margin-bottom: 0.55rem;
}

.site-section__subtitle {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: var(--site-page-fg-muted, inherit);
  opacity: 0.95;
}

.site-section__placeholder {
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.75;
  opacity: 0.9;
  white-space: pre-line;
}

.site-section__placeholder + .site-section__placeholder {
  margin-top: 1rem;
}

.site-section--sobre {
  background: #0f766e;
  color: #ecfdf5;
}

.site-section--programacao {
  background: #1e3a8a;
  color: #dbeafe;
}

.site-section--programacao .site-section__title {
  margin-bottom: 0.75rem;
}

.site-schedule__intro {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.85;
}

.site-section__html .site-schedule__intro,
.site-page-view__body .site-schedule__intro,
.cms-embed .site-schedule__intro {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
  max-width: 36rem;
  text-align: center;
}

.site-schedule {
  max-width: 46rem;
  margin-inline: auto;
}

.site-schedule__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.site-schedule__tabs[hidden] {
  display: none;
}

.site-schedule__tabs--agendas {
  margin-bottom: 1rem;
}

.site-schedule__tabs--agendas + .site-schedule__intro:not([hidden]) {
  margin-bottom: 1.25rem;
}

.site-schedule__tabs--agendas + .site-schedule__intro[hidden] + .site-schedule__tabs--days,
.site-schedule__tabs--agendas + .site-schedule__tabs--days {
  margin-top: 0.25rem;
}

.site-schedule__tab {
  display: grid;
  gap: 0.15rem;
  min-width: 8.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(219, 234, 254, 0.28);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.site-schedule__tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-schedule__tab[data-active="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.site-schedule[data-schedule-theme="1"] .site-schedule__tab {
  background: var(--schedule-tab-bg);
  color: var(--schedule-tab-fg);
  border-color: color-mix(in srgb, var(--schedule-tab-fg) 22%, transparent);
}

.site-schedule[data-schedule-theme="1"] .site-schedule__tab:hover {
  background: color-mix(in srgb, var(--schedule-tab-bg) 82%, var(--schedule-tab-fg));
}

.site-schedule[data-schedule-theme="1"] .site-schedule__tab[data-active="true"] {
  background: var(--schedule-tab-active-bg);
  color: var(--schedule-tab-active-fg);
  border-color: color-mix(in srgb, var(--schedule-tab-active-fg) 35%, transparent);
}

.site-schedule__tab-label {
  font-family: var(--site-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-schedule__tab-date {
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0.01em;
}

.site-schedule__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.site-schedule__item {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(219, 234, 254, 0.16);
}

.site-schedule[data-schedule-theme="1"] .site-schedule__item {
  background: var(--schedule-item-bg);
  color: var(--schedule-item-fg);
  border-color: color-mix(in srgb, var(--schedule-item-fg) 18%, transparent);
}

.site-schedule[data-schedule-theme="1"] .site-schedule__time span,
.site-schedule[data-schedule-theme="1"] .site-schedule__speaker {
  color: var(--schedule-item-muted, var(--schedule-item-fg));
  opacity: 1;
}

.site-schedule[data-schedule-theme="1"] .site-schedule__description {
  color: var(--schedule-item-fg);
  opacity: 1;
}

.site-schedule__time {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.site-schedule__time strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-schedule__time span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.site-schedule__body {
  min-width: 0;
}

.site-schedule__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.site-schedule__badge,
.site-schedule__room {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-schedule__room,
.site-schedule__badge--location {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.site-schedule__badge--type {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  opacity: 0.92;
}

.site-schedule[data-schedule-theme="1"] .site-schedule__badge,
.site-schedule[data-schedule-theme="1"] .site-schedule__room {
  background: var(--schedule-badge-bg);
  color: var(--schedule-badge-fg);
  opacity: 1;
}

.site-schedule__session-title {
  margin: 0;
  font-family: var(--site-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.site-schedule__speaker {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.88;
}

.site-schedule__speaker span {
  opacity: 0.75;
}

.site-schedule__toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-schedule__toggle .site-schedule__session-title {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.site-schedule__chevron {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.site-schedule__item[data-open="true"] .site-schedule__chevron {
  margin-top: 0.55rem;
  transform: rotate(225deg);
}

.site-schedule__details {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.4rem;
}

.site-schedule__details[hidden] {
  display: none;
}

.site-schedule__description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.88;
}

.site-schedule__description :where(p, ul, ol) {
  margin: 0 0 0.45rem;
}

.site-schedule__description :where(p, ul, ol):last-child {
  margin-bottom: 0;
}

.site-schedule__description :where(ul, ol) {
  padding-left: 1.15rem;
}

.site-schedule__description a {
  color: inherit;
  text-decoration: underline;
}

.site-schedule__more {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(219, 234, 254, 0.28);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-schedule__more:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-section--comissao {
  background: #0e7490;
  color: #ecfeff;
}

.site-section--palestrantes {
  background: #be185d;
  color: #fdf2f8;
}

.site-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.site-people__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.site-people__photo {
  width: min(100%, 11.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.site-people__name {
  margin: 0.35rem 0 0;
  font-family: var(--site-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.site-people__role {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.85;
}

.site-people__more {
  margin-top: 0.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-people__more:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-person-modal {
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  width: min(96vw, 56rem);
  max-width: min(96vw, 56rem);
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(0.6rem) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-person-modal.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-person-modal::backdrop {
  background: rgba(8, 8, 12, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-person-modal.is-open::backdrop {
  opacity: 1;
}

.site-person-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.35rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.site-person-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.site-person-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.site-person-modal__media {
  display: flex;
  width: 350px;
  max-width: 100%;
  min-width: 0;
}

.site-person-modal__media img {
  display: block;
  width: 350px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #eee;
}

.site-person-modal__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  padding: 0.15rem 1.75rem 0.35rem 0;
}

.site-person-modal__name {
  margin: 0 0 0.45rem;
  font-family: var(--site-font-body);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-person-modal__role {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #666;
}

.site-person-modal__bio {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

@media (max-width: 720px) {
  .site-person-modal {
    width: min(94vw, 28rem);
    max-width: min(94vw, 28rem);
  }

  .site-person-modal__panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-person-modal__media {
    width: 100%;
    justify-content: center;
  }

  .site-person-modal__media img {
    width: min(100%, 280px);
  }

  .site-person-modal__content {
    text-align: center;
    padding: 0 0.25rem 0.25rem;
  }

  .site-person-modal__name {
    font-size: 1.4rem;
  }

  .site-person-modal__role {
    font-size: 1rem;
  }

  .site-person-modal__bio {
    font-size: 0.98rem;
  }
}

@media (max-width: 1024px) {
  .site-people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-sponsors__list {
    --sponsors-per-row: 3;
  }
}

.site-section--inscricao {
  background: #b45309;
  color: #fff7ed;
}

.site-section--contato {
  background: #4c1d95;
  color: #f5f3ff;
}

.site-section--contato .site-section__title {
  margin-bottom: 2rem;
}

.site-section--patrocinio {
  background: #f4f4f5;
  color: #18181b;
}

.site-section--patrocinio .site-section__title {
  margin-bottom: 0.75rem;
  color: #18181b;
}

.site-sponsors__intro {
  margin: 0 auto 2rem;
  max-width: 36rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #52525b;
}

.site-sponsors {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.site-sponsors__group-title {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--site-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding-inline-start: 0.12em;
  text-transform: uppercase;
  color: #71717a;
}

.site-sponsors__group-subtitle {
  margin: -0.5rem auto 1.25rem;
  max-width: 36rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #52525b;
}

.site-sponsors__list {
  --sponsors-gap: 1rem;
  --sponsors-per-row: 5;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sponsors-gap);
}

.site-sponsors__item {
  box-sizing: border-box;
  flex: 0 1 auto;
  width: min(100%, calc((100% - (var(--sponsors-per-row) - 1) * var(--sponsors-gap)) / var(--sponsors-per-row)));
  max-width: calc((100% - (var(--sponsors-per-row) - 1) * var(--sponsors-gap)) / var(--sponsors-per-row));
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-sponsors__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.site-sponsors__logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(24, 24, 27, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-sponsors__link:hover .site-sponsors__logo {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.1);
}

.site-sponsors__group[data-size="xl"] .site-sponsors__item {
  width: min(17rem, calc((100% - (var(--sponsors-per-row) - 1) * var(--sponsors-gap)) / var(--sponsors-per-row)));
}

.site-sponsors__group[data-size="xl"] .site-sponsors__logo {
  padding: 1.35rem 1.55rem;
}

.site-sponsors__group[data-size="lg"] .site-sponsors__item {
  width: min(14rem, calc((100% - (var(--sponsors-per-row) - 1) * var(--sponsors-gap)) / var(--sponsors-per-row)));
}

.site-sponsors__group[data-size="lg"] .site-sponsors__logo {
  padding: 1.15rem 1.35rem;
}

.site-sponsors__group[data-size="md"] .site-sponsors__item {
  width: min(11rem, calc((100% - (var(--sponsors-per-row) - 1) * var(--sponsors-gap)) / var(--sponsors-per-row)));
}

.site-sponsors__group[data-size="md"] .site-sponsors__logo {
  padding: 0.95rem 1.1rem;
}

.site-sponsors__group[data-size="sm"] .site-sponsors__item {
  width: min(8.5rem, calc((100% - (var(--sponsors-per-row) - 1) * var(--sponsors-gap)) / var(--sponsors-per-row)));
}

.site-sponsors__group[data-size="sm"] .site-sponsors__logo {
  padding: 0.75rem 0.9rem;
}

.site-gallery__block--logos {
  margin-top: 0.5rem;
}

.site-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.site-contact__intro {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
  opacity: 0.95;
}

.site-contact__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.site-contact__channel {
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
}

.site-contact__channel-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.site-contact__channel-value {
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}

a.site-contact__channel-value:hover {
  text-decoration: underline;
}

.site-contact__form {
  display: grid;
  gap: 0.95rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.site-contact__field {
  display: grid;
  gap: 0.35rem;
}

.site-contact__label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-contact__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.5rem;
  background: rgba(15, 10, 35, 0.35);
  color: #f8f7ff;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-contact__input::placeholder {
  color: rgba(245, 243, 255, 0.45);
}

.site-contact__input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(15, 10, 35, 0.5);
}

.site-contact__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.85rem) 50%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.site-contact__select option {
  color: #1a132b;
}

.site-contact__textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.site-contact__submit {
  margin-top: 0.25rem;
  justify-self: start;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: #f8f7ff;
  color: #4c1d95;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-contact__submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.site-contact__feedback {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .site-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .site-sponsors__list {
    --sponsors-per-row: 2;
  }

  .site-schedule__item {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem 0.95rem;
  }

  .site-schedule__tab {
    min-width: 7.25rem;
    padding: 0.6rem 0.85rem;
  }

  .site-contact {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: auto;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav__item {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }

  .site-hero__content {
    padding-bottom: 2rem;
  }

  .site-hero__countdown-grid {
    grid-template-columns: repeat(4, minmax(2.75rem, 1fr));
    gap: 0.4rem;
  }

  .site-hero__countdown-unit strong {
    font-size: calc(1.2rem * var(--site-hero-text-scale, 1));
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .site-footer__brand,
  .site-footer__center,
  .site-footer__right {
    justify-self: center;
    text-align: center;
    align-items: center;
  }
}

.site-footer {
  background: var(--site-bg);
  color: #e4e4e7;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  width: min(100% - 2rem, var(--site-container));
  margin-inline: auto;
  padding: 1.75rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: center;
}

.site-footer__brand {
  justify-self: start;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-footer__logo img {
  width: 180px;
  height: auto;
  max-width: 100%;
  opacity: 0.92;
}

.site-footer__center {
  text-align: center;
  display: grid;
  gap: 0.3rem;
}

.site-footer__right {
  justify-self: end;
  text-align: right;
  display: grid;
  gap: 0.3rem;
}

.site-footer__text,
.site-footer__meta {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.site-footer__meta {
  opacity: 0.65;
  font-size: 0.8rem;
}

.site-footer__link {
  color: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.9;
}

.site-footer__link:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Voltar ao topo (mobile) */
.site-back-top {
  display: none;
}

@media (max-width: 900px) {
  .site-back-top {
    position: fixed;
    z-index: 65;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-bg) 88%, transparent);
    color: var(--site-text);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.4rem);
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease,
      transform 0.22s ease,
      background-color 0.18s ease;
  }

  .site-floatbar:not([hidden]) ~ .site-back-top {
    bottom: max(4.35rem, calc(env(safe-area-inset-bottom) + 3.55rem));
  }

  .site-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-back-top:hover,
  .site-back-top:focus-visible {
    background: color-mix(in srgb, var(--site-bg) 96%, #fff 4%);
    outline: none;
  }

  .site-back-top svg {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-back-top {
    transition: none;
  }
}

/* Barra flutuante (idiomas; cresce com itens futuros do admin) */
.site-floatbar {
  position: fixed;
  top: auto;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 60;
  transform: none;
  pointer-events: none;
}

.site-floatbar[hidden] {
  display: none !important;
}

.site-floatbar__list {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-bg) 82%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.site-floatbar__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 2.65rem;
  min-height: 2.65rem;
  padding: 0.35rem 0.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--site-text-muted);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-floatbar__item:hover,
.site-floatbar__item:focus-visible {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.site-floatbar__item.is-active {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.14);
}

.site-floatbar__flag {
  font-size: 1.05rem;
  line-height: 1;
}

.site-floatbar__code {
  font-family: var(--site-font-nav);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

@media (max-width: 640px) {
  .site-floatbar {
    right: max(0.65rem, env(safe-area-inset-right));
  }

  .site-floatbar__item {
    width: 2.45rem;
    min-height: 2.45rem;
  }
}

.site-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 70;
  width: min(96vw, 48rem);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--site-bg) 96%, #fff 4%);
  color: var(--site-text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  padding: 1rem 1.1rem;
}

.site-cookie-banner__title {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.site-cookie-banner__text {
  margin: 0;
  color: var(--site-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-cookie-banner__policy,
.site-cookie-banner__link {
  border: 0;
  background: none;
  color: #a78bfa;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.site-cookie-banner__actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.site-cookie-banner__btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.8rem;
  background: transparent;
  color: var(--site-text);
  padding: 0.58rem 0.95rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.site-cookie-banner__btn--primary {
  background: #6d4aff;
  border-color: #6d4aff;
  color: #fff;
}

.site-cookie-settings {
  display: grid;
  gap: 0.85rem;
}

.site-cookie-settings__row {
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
}

.site-cookie-settings__row label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-cookie-settings__row p {
  margin: 0.45rem 0 0;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

.site-cookie-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: space-between;
}

.site-cookie-settings__policy,
.site-cookie-settings__save {
  border-radius: 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-cookie-settings__policy {
  border: 0;
  background: transparent;
  color: #6d4aff;
  font-weight: 600;
  padding: 0.5rem 0.2rem;
}

.site-cookie-settings__save {
  border: 1px solid #6d4aff;
  background: #6d4aff;
  color: #fff;
  padding: 0.52rem 0.9rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .site-cookie-banner {
    width: calc(100vw - 1rem);
    border-radius: 0.85rem;
    padding: 0.9rem;
  }
}

/* Popups CMS — card = o próprio <dialog>; entrada via WAAPI no JS */
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: fit-content;
  min-width: min(18rem, 92vw);
  max-width: min(92vw, 42rem);
  height: fit-content;
  max-height: min(90dvh, 90vh);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  background: #fff;
  color: #111;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.site-popup.has-custom-bg {
  background: var(--site-popup-bg);
}

.site-popup[hidden] {
  display: none !important;
}

.site-popup::backdrop {
  background: color-mix(in srgb, var(--site-bg) 55%, rgba(0, 0, 0, 0.65));
  backdrop-filter: blur(4px);
  opacity: 0;
}

.site-popup.is-open::backdrop {
  opacity: 1;
  transition: opacity 0.32s ease;
}

@media (prefers-reduced-motion: reduce) {
  .site-popup.is-open::backdrop {
    transition: none !important;
    opacity: 1 !important;
  }
}

.site-popup__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(90dvh, 90vh);
}

.site-popup__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: #111;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.site-popup__close:hover,
.site-popup__close:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.22);
  outline: none;
}

.site-popup__body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.85rem 1.6rem 1.6rem;
  font-family: var(--site-font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #111;
}

.site-popup__body :where(h1, h2, h3, h4) {
  margin: 0 0 0.65rem;
  font-family: var(--site-font-heading);
  color: #111;
  line-height: 1.2;
}

.site-popup__body :where(p, ul, ol) {
  margin: 0 0 0.85rem;
}

.site-popup__body :where(p:last-child, ul:last-child, ol:last-child, img:last-child) {
  margin-bottom: 0;
}

.site-popup__body :where(img) {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  margin: 0.75rem 0;
}

/* Links do popup: mesmo efeito do corpo (barra no hover) */

@media (max-width: 640px) {
  .site-popup {
    min-width: 0;
    max-width: calc(100vw - 1.5rem);
    max-height: min(88dvh, 88vh);
    border-radius: 0.85rem;
  }

  .site-popup__body {
    padding: 1.6rem 1.15rem 1.25rem;
  }
}

/* Galerias CMS — layout no modelo da Comissão + tamanhos */
.site-gallery__description,
.site-section__html .site-gallery__description,
.site-page-view__body .site-gallery__description,
.site-content-modal__html .site-gallery__description,
.cms-embed .site-gallery__description,
.cms-embed > .site-gallery__description {
  display: block;
  box-sizing: border-box;
  width: min(42rem, 100%);
  max-width: 42rem;
  margin: 0 auto 1.5rem !important;
  text-align: center;
  font-family: var(--site-font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 88%, transparent);
}

.site-sponsors__group-subtitle,
.site-section__html .site-sponsors__group-subtitle,
.cms-embed .site-sponsors__group-subtitle {
  display: block;
  box-sizing: border-box;
  width: min(36rem, 100%);
  max-width: 36rem;
  margin: -0.5rem auto 1.25rem !important;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-gallery__block + .site-gallery__block {
  margin-top: 2rem;
}

.site-gallery__block-title {
  margin: 0 0 0.65rem;
  font-family: var(--site-font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
  color: inherit;
  text-align: center;
}

.site-gallery {
  --site-gallery-gap: clamp(1.25rem, 3vw, 1.75rem);
  --site-gallery-item-size: 11.5rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  padding-inline-start: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--site-gallery-gap);
  width: 100%;
}

.site-gallery[data-size="sm"] {
  --site-gallery-gap: 1rem;
  --site-gallery-item-size: 8.5rem;
}

.site-gallery[data-size="lg"] {
  --site-gallery-gap: clamp(1.35rem, 3vw, 2rem);
  --site-gallery-item-size: 15rem;
}

.site-gallery[data-size="xl"] {
  --site-gallery-gap: clamp(1.5rem, 3.5vw, 2.25rem);
  --site-gallery-item-size: min(22rem, calc(50% - 0.75rem));
}

.site-gallery[data-columns="2"] { --site-gallery-cols: 2; }
.site-gallery[data-columns="3"] { --site-gallery-cols: 3; }
.site-gallery[data-columns="4"] { --site-gallery-cols: 4; }
.site-gallery[data-columns="5"] { --site-gallery-cols: 5; }
.site-gallery[data-columns="6"] { --site-gallery-cols: 6; }

.site-gallery[data-columns] {
  /* Flex + largura máxima da grade: centraliza o bloco e a última linha incompleta. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-items: initial;
  width: min(
    100%,
    calc(
      (var(--site-gallery-item-size) * var(--site-gallery-cols))
      + (var(--site-gallery-gap) * (var(--site-gallery-cols) - 1))
    )
  );
  margin-inline: auto;
}

.site-gallery__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  margin: 0;
  flex: 0 1 var(--site-gallery-item-size);
  width: var(--site-gallery-item-size);
  max-width: 100%;
}

.site-gallery[data-columns] .site-gallery__item {
  flex: 0 1 var(--site-gallery-item-size);
  width: var(--site-gallery-item-size);
  max-width: 100%;
}

.site-gallery__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.site-gallery[data-size="sm"] .site-gallery__photo {
  border-radius: 0.85rem;
}

.site-gallery[data-size="xl"] .site-gallery__photo {
  aspect-ratio: 4 / 3;
  border-radius: 0.85rem;
}

.site-gallery__name {
  margin: 0.2rem 0 0;
  font-family: var(--site-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

.site-gallery__role {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.85;
}

.site-gallery__more {
  margin-top: 0.15rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-gallery__more:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-color: color-mix(in srgb, currentColor 55%, transparent);
}

@media (max-width: 768px) {
  .site-gallery {
    --site-gallery-gap: 1.15rem;
  }

  .site-gallery:not([data-columns]) {
    --site-gallery-item-size: 10.5rem;
  }

  .site-gallery:not([data-columns])[data-size="sm"] {
    --site-gallery-item-size: 8rem;
  }

  .site-gallery:not([data-columns])[data-size="xl"] {
    --site-gallery-item-size: min(18rem, calc(50% - 0.6rem));
  }

  .site-gallery[data-columns] {
    --site-gallery-cols: 2;
  }

  .site-gallery[data-columns="2"] {
    --site-gallery-cols: 2;
  }
}

@media (max-width: 480px) {
  .site-gallery[data-columns] {
    --site-gallery-cols: 1;
  }

  .site-gallery:not([data-columns])[data-size="xl"] {
    --site-gallery-item-size: min(18rem, 100%);
  }
}

.site-section--inscricao .site-posts__intro {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #ffedd5;
}

.site-posts__intro {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.55;
}

.site-section__html .site-posts__intro,
.site-page-view__body .site-posts__intro,
.cms-embed .site-posts__intro {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
  max-width: 40rem;
  text-align: center;
}

.site-posts--list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-posts--list .site-posts__item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.15rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.site-posts--list .site-posts__item:first-child {
  padding-top: 0;
}

.site-posts--list .site-posts__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.site-posts--list .site-posts__item:not(:has(.site-posts__cover)) {
  grid-template-columns: minmax(0, 1fr);
}

.site-posts--list .site-posts__cover {
  width: 7.5rem;
  height: 7.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.65rem;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.site-posts--list .site-posts__body {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  align-content: start;
}

.site-posts--list .site-posts__date {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 78%, transparent);
}

.site-posts--list .site-posts__title {
  margin: 0;
  font-family: var(--site-font-heading);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}

.site-posts--list .site-posts__subtitle {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: color-mix(in srgb, currentColor 88%, transparent);
}

.site-posts--list .site-posts__more {
  justify-self: start;
  margin-top: 0.25rem;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.site-posts--list .site-posts__more:hover {
  color: color-mix(in srgb, currentColor 88%, transparent);
}

/* Tema fixo só na seção template de inscrição */
.site-section--inscricao .site-posts--list .site-posts__item {
  border-bottom-color: rgba(255, 247, 237, 0.22);
}

.site-section--inscricao .site-posts--list .site-posts__cover {
  background: rgba(255, 255, 255, 0.12);
}

.site-section--inscricao .site-posts--list .site-posts__date {
  color: #fed7aa;
}

.site-section--inscricao .site-posts--list .site-posts__title,
.site-section--inscricao .site-posts--list .site-posts__more {
  color: #fff7ed;
}

.site-section--inscricao .site-posts--list .site-posts__subtitle,
.site-section--inscricao .site-posts--list .site-posts__more:hover {
  color: #ffedd5;
}

@media (max-width: 560px) {
  .site-posts--list .site-posts__item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .site-posts--list .site-posts__cover {
    width: 5.5rem;
    height: 5.5rem;
  }
}

.site-post-modal {
  margin: auto;
  padding: 0;
  border: 0;
  max-width: min(42rem, calc(100vw - 1.5rem));
  width: 100%;
  background: transparent;
  color: #18181b;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-post-modal.is-open {
  opacity: 1;
}

.site-post-modal::backdrop {
  background: rgba(9, 9, 11, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-post-modal.is-open::backdrop {
  opacity: 1;
}

.site-post-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  max-height: min(88dvh, 88vh);
  overflow: auto;
}

.site-post-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.08);
  color: #18181b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.site-post-modal__close:hover {
  background: rgba(24, 24, 27, 0.14);
}

.site-post-modal__article {
  padding: 1.5rem 1.5rem 1.75rem;
}

.site-post-modal__cover {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: 0.65rem;
  margin-bottom: 1.15rem;
  background: #f4f4f5;
}

.site-post-modal__title {
  margin: 0 0 0.5rem;
  padding-right: 2rem;
  font-family: var(--site-font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  color: #18181b;
}

.site-post-modal__subtitle {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #52525b;
}

.site-post-modal__date {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #71717a;
}

.site-post-modal__body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #27272a;
}

.site-post-modal__body :where(p, ul, ol, blockquote, h2, h3) {
  margin: 0 0 0.9rem;
}

.site-post-modal__body :where(ul, ol) {
  padding-left: 1.25rem;
}

.site-post-modal__body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.site-section__html {
  font-size: 1.02rem;
  line-height: 1.7;
}

.site-section__html :where(p, ul, ol, blockquote, h2, h3, h4):not(
  .site-gallery__description,
  .site-gallery__name,
  .site-gallery__role,
  .site-sponsors__group-subtitle,
  .site-schedule__intro,
  .site-posts__intro,
  .site-gallery,
  .site-sponsors__list
) {
  margin: 0 0 1rem;
}

.site-section__html :where(ul, ol):not(.site-gallery, .site-sponsors__list) {
  padding-left: 1.25rem;
}

.site-section__html img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* iframe é inline por padrão: sem display:block, margin: 0 auto não centraliza */
.site-section__html iframe,
.site-page-view__body iframe,
.site-content-modal__html iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

/*
 * Centralização vinda do editor (text-align no pai ou margin auto no elemento).
 * img já é display:block no reset global; iframe precisa da regra acima.
 */
.site-section__html :is(p, h2, h3, h4, div)[style*="text-align: center"] :is(img, iframe),
.site-section__html :is(p, h2, h3, h4, div)[style*="text-align:center"] :is(img, iframe),
.site-page-view__body :is(p, h2, h3, h4, div)[style*="text-align: center"] :is(img, iframe),
.site-page-view__body :is(p, h2, h3, h4, div)[style*="text-align:center"] :is(img, iframe),
.site-content-modal__html :is(p, h2, h3, h4, div)[style*="text-align: center"] :is(img, iframe),
.site-content-modal__html :is(p, h2, h3, h4, div)[style*="text-align:center"] :is(img, iframe) {
  margin-left: auto;
  margin-right: auto;
}

.site-page-view__body img,
.site-content-modal__html img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.site-section__html span.color,
.site-page-view__body span.color,
.site-content-modal__html span.color {
  color: var(--color);
}

/* Ícones CMS (Heroicons) inseridos pelo editor */
.cms-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  line-height: 1;
  color: inherit;
  flex-shrink: 0;
}

.cms-icon .cms-icon__svg,
.cms-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Links do corpo/popup: efeito tipo menu (barra com a cor da fonte no hover) */
.site-section__html :where(a:not(.cms-page-card__btn)),
.site-page-view__body :where(a:not(.cms-page-card__btn)),
.site-content-modal__html :where(a:not(.cms-page-card__btn)),
.cms-page-card__text :where(a),
.site-popup__body :where(a) {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.2s ease;
}

.site-section__html :where(a:not(.cms-page-card__btn):hover),
.site-page-view__body :where(a:not(.cms-page-card__btn):hover),
.site-content-modal__html :where(a:not(.cms-page-card__btn):hover),
.cms-page-card__text :where(a:hover),
.site-popup__body :where(a:hover) {
  background-size: 100% 2px;
}

/* Cor no span.color: a barra usa a cor da fonte (não a cor herdada do <a>) */
.site-section__html :where(a) .color,
.site-page-view__body :where(a) .color,
.site-content-modal__html :where(a) .color,
.cms-page-card__text :where(a) .color,
.site-popup__body :where(a) .color {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.2s ease;
}

.site-section__html :where(a:hover) .color,
.site-page-view__body :where(a:hover) .color,
.site-content-modal__html :where(a:hover) .color,
.cms-page-card__text :where(a:hover) .color,
.site-popup__body :where(a:hover) .color {
  background-size: 100% 2px;
}

.site-section__html :where(a:has(.color)),
.site-page-view__body :where(a:has(.color)),
.site-content-modal__html :where(a:has(.color)),
.cms-page-card__text :where(a:has(.color)),
.site-popup__body :where(a:has(.color)) {
  background-image: none;
}

.cms-embed {
  margin: 1.75rem 0;
}

.cms-embed--galeria {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cms-embed--galeria .site-gallery__description {
  width: auto;
  max-width: min(42rem, 100%);
  margin-inline: 0 !important;
  align-self: center;
}

.cms-embed--galeria .site-gallery,
.cms-embed--galeria .site-sponsors {
  width: 100%;
  align-self: center;
}

.cms-embed--galeria .site-gallery[data-columns] {
  width: min(
    100%,
    calc(
      (var(--site-gallery-item-size) * var(--site-gallery-cols))
      + (var(--site-gallery-gap) * (var(--site-gallery-cols) - 1))
    )
  );
  margin-inline: auto;
  align-self: center;
}

/* Uma única mídia: o item “abraça” a imagem e fica no mesmo eixo do título */
.site-gallery:has(> .site-gallery__item:only-child),
.site-sponsors__list:has(> .site-sponsors__item:only-child) {
  justify-content: center;
}

.site-sponsors__list:has(> .site-sponsors__item:only-child) .site-sponsors__item {
  width: min(11rem, 100%);
  max-width: min(11rem, 100%);
  flex: 0 0 auto;
}

.site-sponsors__group[data-size="sm"] > .site-sponsors__list:has(> .site-sponsors__item:only-child) .site-sponsors__item {
  width: min(8.5rem, 100%);
  max-width: min(8.5rem, 100%);
}

.site-sponsors__group[data-size="lg"] > .site-sponsors__list:has(> .site-sponsors__item:only-child) .site-sponsors__item {
  width: min(14rem, 100%);
  max-width: min(14rem, 100%);
}

.site-sponsors__group[data-size="xl"] > .site-sponsors__list:has(> .site-sponsors__item:only-child) .site-sponsors__item {
  width: min(17rem, 100%);
  max-width: min(17rem, 100%);
}

.site-gallery:has(> .site-gallery__item:only-child) .site-gallery__item {
  flex: 0 0 auto;
}

.site-gallery__name,
.site-gallery__role {
  text-align: center;
  width: 100%;
}

.site-content-modal {
  margin: auto;
  padding: 0;
  border: 0;
  max-width: min(56rem, calc(100vw - 1.5rem));
  width: 100%;
  background: transparent;
  color: #18181b;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-content-modal.is-open {
  opacity: 1;
}

.site-content-modal::backdrop {
  background: rgba(9, 9, 11, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-content-modal.is-open::backdrop {
  opacity: 1;
}

.site-content-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  max-height: min(90dvh, 90vh);
  overflow: auto;
  padding: 1.5rem 1.5rem 1.75rem;
}

.site-content-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.08);
  color: #18181b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.site-content-modal__close:hover {
  background: rgba(24, 24, 27, 0.14);
}

.site-content-modal__title {
  margin: 0 0 1rem;
  padding-right: 2.5rem;
  font-family: var(--site-font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
}

.site-content-modal__html,
.site-content-modal__body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #27272a;
}

.site-content-modal__html :where(p, ul, ol, blockquote, h2, h3):not(
  .site-gallery__description,
  .site-gallery__name,
  .site-gallery__role,
  .site-sponsors__group-subtitle,
  .site-schedule__intro,
  .site-posts__intro,
  .site-gallery,
  .site-sponsors__list
) {
  margin: 0 0 0.9rem;
}

.site-content-modal__html :where(ul, ol):not(.site-gallery, .site-sponsors__list) {
  padding-left: 1.25rem;
}

.site-content-modal__html img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.site-section[data-bg-style],
.site-content-modal__panel[data-bg-style] {
  --site-page-bg: #ffffff;
  --site-page-fg: #18181b;
  --site-page-fg-muted: #52525b;
  color: var(--site-page-fg);
}

.site-section[data-bg-style] .site-section__title,
.site-content-modal__panel[data-bg-style] .site-content-modal__title {
  color: var(--site-page-fg);
}

.site-section[data-bg-style] .site-section__placeholder,
.site-section[data-bg-style] .site-section__html,
.site-content-modal__panel[data-bg-style] .site-content-modal__html,
.site-content-modal__panel[data-bg-style] .site-content-modal__body {
  color: var(--site-page-fg-muted);
}

.site-section[data-bg-style] .site-section__html :where(h1, h2, h3, h4, h5, h6, strong),
.site-content-modal__panel[data-bg-style] .site-content-modal__html :where(h1, h2, h3, h4, h5, h6, strong) {
  color: var(--site-page-fg);
}

.site-section[data-bg-style] .site-section__html :where(a),
.site-content-modal__panel[data-bg-style] .site-content-modal__html :where(a),
.site-page-view[data-bg-style] .site-page-view__body :where(a) {
  color: inherit;
}

/* Galeria / agenda / postagens embutidos: herdam a aparência da página */
.site-section[data-bg-style] .cms-embed,
.site-page-view[data-bg-style] .cms-embed,
.site-content-modal__panel[data-bg-style] .cms-embed {
  color: inherit;
}

.site-section[data-bg-style] .site-gallery__description,
.site-section[data-bg-style] .site-gallery__role,
.site-section[data-bg-style] .site-posts__intro,
.site-section[data-bg-style] .site-posts__subtitle,
.site-section[data-bg-style] .site-posts__date,
.site-section[data-bg-style] .site-schedule__intro,
.site-page-view[data-bg-style] .site-gallery__description,
.site-page-view[data-bg-style] .site-gallery__role,
.site-page-view[data-bg-style] .site-posts__intro,
.site-page-view[data-bg-style] .site-posts__subtitle,
.site-page-view[data-bg-style] .site-posts__date,
.site-page-view[data-bg-style] .site-schedule__intro,
.site-content-modal__panel[data-bg-style] .site-gallery__description,
.site-content-modal__panel[data-bg-style] .site-gallery__role,
.site-content-modal__panel[data-bg-style] .site-posts__intro,
.site-content-modal__panel[data-bg-style] .site-posts__subtitle,
.site-content-modal__panel[data-bg-style] .site-posts__date,
.site-content-modal__panel[data-bg-style] .site-schedule__intro {
  color: var(--site-page-fg-muted);
}

.site-section[data-bg-style] .site-gallery__block-title,
.site-section[data-bg-style] .site-gallery__name,
.site-section[data-bg-style] .site-gallery__more,
.site-section[data-bg-style] .site-posts__title,
.site-section[data-bg-style] .site-posts__more,
.site-section[data-bg-style] .site-schedule__session-title,
.site-section[data-bg-style] .site-schedule__description,
.site-section[data-bg-style] .site-sponsors__group-title,
.site-page-view[data-bg-style] .site-gallery__block-title,
.site-page-view[data-bg-style] .site-gallery__name,
.site-page-view[data-bg-style] .site-gallery__more,
.site-page-view[data-bg-style] .site-posts__title,
.site-page-view[data-bg-style] .site-posts__more,
.site-page-view[data-bg-style] .site-schedule__session-title,
.site-page-view[data-bg-style] .site-schedule__description,
.site-page-view[data-bg-style] .site-sponsors__group-title,
.site-content-modal__panel[data-bg-style] .site-gallery__block-title,
.site-content-modal__panel[data-bg-style] .site-gallery__name,
.site-content-modal__panel[data-bg-style] .site-gallery__more,
.site-content-modal__panel[data-bg-style] .site-posts__title,
.site-content-modal__panel[data-bg-style] .site-posts__more,
.site-content-modal__panel[data-bg-style] .site-schedule__session-title,
.site-content-modal__panel[data-bg-style] .site-schedule__description,
.site-content-modal__panel[data-bg-style] .site-sponsors__group-title {
  color: var(--site-page-fg);
}

.site-section[data-bg-style] .site-schedule__description,
.site-page-view[data-bg-style] .site-schedule__description,
.site-content-modal__panel[data-bg-style] .site-schedule__description {
  opacity: 1;
}

.site-section[data-bg-style] .site-posts--list .site-posts__item,
.site-page-view[data-bg-style] .site-posts--list .site-posts__item,
.site-content-modal__panel[data-bg-style] .site-posts--list .site-posts__item {
  border-bottom-color: color-mix(in srgb, var(--site-page-fg) 22%, transparent);
}

.site-section[data-bg-style] .site-schedule__tab,
.site-section[data-bg-style] .site-schedule__item,
.site-section[data-bg-style] .site-schedule__more,
.site-page-view[data-bg-style] .site-schedule__tab,
.site-page-view[data-bg-style] .site-schedule__item,
.site-page-view[data-bg-style] .site-schedule__more,
.site-content-modal__panel[data-bg-style] .site-schedule__tab,
.site-content-modal__panel[data-bg-style] .site-schedule__item,
.site-content-modal__panel[data-bg-style] .site-schedule__more {
  color: inherit;
  border-color: color-mix(in srgb, var(--site-page-fg) 28%, transparent);
  background: color-mix(in srgb, var(--site-page-fg) 6%, transparent);
}

.site-section[data-bg-style] .site-schedule__tab[data-active="true"],
.site-page-view[data-bg-style] .site-schedule__tab[data-active="true"],
.site-content-modal__panel[data-bg-style] .site-schedule__tab[data-active="true"] {
  border-color: color-mix(in srgb, var(--site-page-fg) 55%, transparent);
  background: color-mix(in srgb, var(--site-page-fg) 14%, transparent);
}

.site-section[data-bg-style] .site-gallery__more,
.site-page-view[data-bg-style] .site-gallery__more,
.site-content-modal__panel[data-bg-style] .site-gallery__more {
  border-color: color-mix(in srgb, var(--site-page-fg) 35%, transparent);
  color: var(--site-page-fg);
}

/* Aparência própria da galeria (prioridade sobre herança da página) */
.cms-embed--galeria[data-gallery-theme],
.site-gallery__block[data-gallery-theme],
.site-content-modal__panel[data-gallery-theme] {
  --site-gallery-fg-title: var(--site-page-fg, #18181b);
  --site-gallery-fg-subtitle: var(--site-page-fg-muted, #52525b);
  --site-gallery-fg-text: var(--site-page-fg-muted, #52525b);
}

.cms-embed--galeria[data-gallery-theme] .site-gallery__description,
.cms-embed--galeria[data-gallery-theme] .site-sponsors__group-subtitle,
.cms-embed--galeria[data-gallery-theme] .site-gallery__role,
.site-gallery__block[data-gallery-theme] .site-gallery__description,
.site-gallery__block[data-gallery-theme] .site-sponsors__group-subtitle,
.site-gallery__block[data-gallery-theme] .site-gallery__role,
.site-section[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__description,
.site-section[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-sponsors__group-subtitle,
.site-section[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__role,
.site-page-view[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__description,
.site-page-view[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-sponsors__group-subtitle,
.site-page-view[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__role,
.site-content-modal__panel[data-gallery-theme] .site-gallery__description,
.site-content-modal__panel[data-gallery-theme] .site-sponsors__group-subtitle,
.site-content-modal__panel[data-gallery-theme] .site-gallery__role {
  color: var(--site-gallery-fg-subtitle);
}

.cms-embed--galeria[data-gallery-theme] .site-gallery__block-title,
.cms-embed--galeria[data-gallery-theme] .site-sponsors__group-title,
.cms-embed--galeria[data-gallery-theme] .site-gallery__name,
.site-gallery__block[data-gallery-theme] .site-gallery__block-title,
.site-gallery__block[data-gallery-theme] .site-sponsors__group-title,
.site-gallery__block[data-gallery-theme] .site-gallery__name,
.site-section[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__block-title,
.site-section[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-sponsors__group-title,
.site-section[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__name,
.site-page-view[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__block-title,
.site-page-view[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-sponsors__group-title,
.site-page-view[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__name,
.site-content-modal__panel[data-gallery-theme] .site-gallery__block-title,
.site-content-modal__panel[data-gallery-theme] .site-sponsors__group-title,
.site-content-modal__panel[data-gallery-theme] .site-gallery__name,
.site-content-modal__panel[data-gallery-theme] .site-content-modal__title {
  color: var(--site-gallery-fg-title);
}

.cms-embed--galeria[data-gallery-theme] .site-gallery__more,
.site-gallery__block[data-gallery-theme] .site-gallery__more,
.site-section[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__more,
.site-page-view[data-bg-style] .cms-embed--galeria[data-gallery-theme] .site-gallery__more,
.site-content-modal__panel[data-gallery-theme] .site-gallery__more {
  border-color: color-mix(in srgb, var(--site-gallery-fg-text) 35%, transparent);
  color: var(--site-gallery-fg-text);
}

.site-section[data-bg-style="solid"]:not([data-bg-image="1"]),
.site-content-modal__panel[data-bg-style="solid"]:not([data-bg-image="1"]) {
  background: var(--site-page-bg);
}

.site-section[data-bg-style="gradient"]:not([data-bg-image="1"]),
.site-content-modal__panel[data-bg-style="gradient"]:not([data-bg-image="1"]) {
  background: linear-gradient(
    180deg,
    var(--site-page-bg) 0%,
    color-mix(in srgb, var(--site-page-bg) 42%, white) 100%
  );
}

.site-section[data-bg-style="band"]:not([data-bg-image="1"]),
.site-content-modal__panel[data-bg-style="band"]:not([data-bg-image="1"]) {
  background: var(--site-page-bg);
  box-shadow: inset 0 6px 0 0 color-mix(in srgb, var(--site-page-bg) 55%, #111);
}

.site-section[data-bg-style="texture"]:not([data-bg-image="1"]),
.site-content-modal__panel[data-bg-style="texture"]:not([data-bg-image="1"]) {
  background-color: var(--site-page-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

.site-section[data-bg-image="1"],
.site-page-view[data-bg-image="1"],
.site-content-modal__panel[data-bg-image="1"] {
  position: relative;
  isolation: isolate;
  /* Anula presets solid/gradient/band/texture (shorthand `background`). */
  background: transparent !important;
  box-shadow: none !important;
}

.site-page-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-section[data-bg-image="1"]::before,
.site-page-view[data-bg-image="1"]::before,
.site-content-modal__panel[data-bg-image="1"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--site-page-bg);
  opacity: var(--site-page-overlay-opacity, 0.5);
  pointer-events: none;
}

.site-section[data-bg-image="1"] > :not(.site-page-bg-media),
.site-page-view[data-bg-image="1"] > :not(.site-page-bg-media),
.site-content-modal__panel[data-bg-image="1"] > :not(.site-page-bg-media) {
  position: relative;
  z-index: 2;
}

body.is-page-view .site-hero,
body.is-page-view .site-main,
body.is-page-view .site-footer {
  display: none !important;
}

body.is-page-view .site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.92);
}

.site-page-view {
  min-height: 70vh;
  padding: 5.5rem 0 3.5rem;
}

.site-page-view[hidden] {
  display: none !important;
}

.site-page-view__inner {
  width: min(100% - 2rem, var(--site-container));
  margin-inline: auto;
}

.site-page-view__title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: var(--site-font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-inline-start: 0.04em;
  line-height: 1.2;
  color: var(--site-page-fg, #18181b);
}

.site-page-view__title:has(+ .site-page-view__subtitle:not([hidden])) {
  margin-bottom: 0.55rem;
}

.site-page-view__subtitle {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: var(--site-page-fg-muted, #52525b);
}

.site-page-view__body {
  color: var(--site-page-fg-muted, #52525b);
}

.site-page-view__body :where(h1, h2, h3, h4, h5, h6, strong) {
  color: var(--site-page-fg, #18181b);
}

.site-page-view[data-bg-style="solid"]:not([data-bg-image="1"]) {
  background: var(--site-page-bg, #fff);
}

.site-page-view[data-bg-style="gradient"]:not([data-bg-image="1"]) {
  background: linear-gradient(
    180deg,
    var(--site-page-bg) 0%,
    color-mix(in srgb, var(--site-page-bg) 42%, white) 100%
  );
}

.site-page-view[data-bg-style="band"]:not([data-bg-image="1"]) {
  background: var(--site-page-bg);
  box-shadow: inset 0 6px 0 0 color-mix(in srgb, var(--site-page-bg) 55%, #111);
}

.site-page-view[data-bg-style="texture"]:not([data-bg-image="1"]) {
  background-color: var(--site-page-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* Blocos do builder de páginas */
.cms-page-block {
  margin: 1.75rem 0;
  width: 100%;
}

.cms-page-block:first-child {
  margin-top: 0;
}

.cms-page-cards__title,
.cms-page-contact__title {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--site-font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--site-page-fg, inherit);
}

.cms-page-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem 1.25rem;
  padding-bottom: 0;
  overflow: visible;
}

.cms-page-cards__grid--botao-sobreposto {
  /* Folga extra: metade do botão (~1.1rem) + respiro até o card seguinte */
  row-gap: 2.75rem;
  padding-bottom: 1.5rem;
}

.cms-page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 1.25rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--site-page-fg, currentColor) 22%, transparent);
  border-radius: 0.85rem;
  /* Contracor automática; --cms-card-bg sobrescreve se definido no bloco */
  background: var(
    --cms-card-bg,
    color-mix(
      in srgb,
      var(--site-page-bg, #ffffff) 78%,
      var(--site-page-fg, #18181b) 22%
    )
  );
  color: inherit;
  text-align: start;
  overflow: visible;
  box-shadow:
    0 2px 6px rgba(24, 24, 27, 0.08),
    0 10px 24px rgba(24, 24, 27, 0.14);
}

.cms-page-card--com-botao {
  /* Reserva a metade interna do botão sobreposto */
  padding-bottom: 2.15rem;
}

.cms-page-card--botao-sobreposto {
  padding-bottom: 2.15rem;
  border-bottom-width: 2px;
}

.cms-page-card--botao-normal {
  padding-bottom: 1.25rem;
}

.cms-page-card--botao-rodape {
  padding-bottom: 0;
  overflow: hidden;
}

.cms-page-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--site-page-fg, inherit);
  text-align: center;
  width: 100%;
}

.cms-page-card__text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--site-page-fg-muted, inherit);
  width: 100%;
}

.cms-page-card__text p {
  margin: 0 0 0.65rem;
}

.cms-page-card__text p:last-child {
  margin-bottom: 0;
}

.cms-page-card__text span.color {
  color: var(--color);
}

.cms-page-card__btn {
  --cms-card-btn-bg: var(--site-page-fg, #18181b);
  /* Fallback: fundo da página costuma contrastar com a cor de texto */
  --cms-card-btn-fg: var(--site-page-bg, #ffffff);
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  transform: translate(-50%, 50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 1.5rem);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cms-card-btn-bg) 18%, transparent);
  background-color: var(--cms-card-btn-bg);
  background-image: none;
  color: var(--cms-card-btn-fg);
  -webkit-text-fill-color: var(--cms-card-btn-fg);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow:
    0 4px 12px rgba(24, 24, 27, 0.18),
    0 1px 3px rgba(24, 24, 27, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.cms-page-card--botao-normal .cms-page-card__btn {
  position: static;
  left: auto;
  bottom: auto;
  align-self: center;
  margin-top: auto;
  transform: none;
  max-width: 100%;
}

.cms-page-card--botao-rodape .cms-page-card__btn {
  position: static;
  left: auto;
  bottom: auto;
  width: calc(100% + 2px);
  max-width: calc(100% + 2px);
  min-height: 3rem;
  margin:
    0
    -1px
    -1px;
  border-radius: 0 0 calc(0.85rem - 1px) calc(0.85rem - 1px);
  border-width: 1px 0 0;
  transform: none;
  box-shadow: none;
}

@supports (color: color-contrast(#000 vs white, black)) {
  .cms-page-card__btn {
    /* Garante contraste real do rótulo com o fundo do botão */
    --cms-card-btn-fg: color-contrast(var(--cms-card-btn-bg) vs #ffffff, #18181b);
  }
}

.cms-page-card__btn:link,
.cms-page-card__btn:visited,
.cms-page-card__btn:hover,
.cms-page-card__btn:active,
.cms-page-card__btn:focus {
  color: var(--cms-card-btn-fg);
  -webkit-text-fill-color: var(--cms-card-btn-fg);
  background-color: var(--cms-card-btn-bg);
  background-image: none;
  text-decoration: none;
}

.cms-page-card__btn:hover {
  transform: translate(-50%, 50%) translateY(-1px);
  box-shadow:
    0 6px 16px rgba(24, 24, 27, 0.22),
    0 2px 4px rgba(24, 24, 27, 0.14);
}

.cms-page-card--botao-normal .cms-page-card__btn:hover,
.cms-page-card--botao-rodape .cms-page-card__btn:hover {
  transform: translateY(-1px);
}

.cms-page-card--botao-rodape .cms-page-card__btn:hover {
  box-shadow: none;
}

/* Compatibilidade com HTML antigo */
.cms-page-card__link {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.2s ease;
}

.cms-page-card__link:hover {
  background-size: 100% 2px;
}

.cms-page-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.cms-page-columns__col {
  min-width: 0;
}

/* Colunas com fundo: bloco único, colunas coladas (não cards) */
.cms-page-columns--conjugadas {
  gap: 0;
  overflow: hidden;
  border-radius: 0;
}

.cms-page-columns--conjugadas .cms-page-columns__col {
  padding: 1.25rem 1.15rem;
  border-radius: 0;
}

.cms-page-columns__col--com-fundo {
  background-color: var(--cms-col-bg);
  color: var(--cms-col-fg, inherit);
}

.cms-page-columns__col--com-fundo :where(a) {
  color: inherit;
}

.cms-page-columns__col p {
  margin: 0 0 0.85rem;
}

.cms-page-columns__col p:last-child {
  margin-bottom: 0;
}

.cms-page-contact__intro {
  margin: 0 0 1.25rem;
  text-align: center;
  opacity: 0.9;
}

.cms-page-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  align-items: start;
}

.cms-page-contact__col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cms-page-contact__label {
  font-size: 0.88rem;
  font-weight: 600;
}

.cms-page-contact__input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 0.55rem;
  background: color-mix(in srgb, #fff 88%, transparent);
  color: inherit;
  font: inherit;
}

.cms-page-contact__textarea {
  min-height: 9rem;
  resize: vertical;
}

.cms-page-contact__submit {
  margin-top: 0.35rem;
  align-self: flex-start;
  padding: 0.75rem 1.25rem;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cms-page-contact__submit:hover {
  background: color-mix(in srgb, currentColor 20%, transparent);
}

@media (max-width: 720px) {
  .cms-page-columns,
  .cms-page-contact__grid {
    grid-template-columns: 1fr;
  }
}
