:root {
  --ink: #1a1714;
  --ink-soft: #2c261f;
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --muted: #6b6258;
  --line: rgba(26, 23, 20, 0.12);
  --accent: #b4532a;
  --accent-deep: #8f3f1f;
  --stage: #12100e;
  --stage-mist: rgba(243, 239, 230, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wide: 1120px;
  --radius: 2px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(243, 239, 230, 0.97);
  border-bottom: 1px solid transparent;
  overflow: visible;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--paper);
}

.site-header__inner {
  position: relative;
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: env(safe-area-inset-top, 0);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  max-width: min(52vw, 15rem);
}

.brand:hover {
  color: var(--ink);
}

.brand__logo {
  width: 100%;
  height: auto;
  max-height: 3.1rem;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  font: inherit;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 220;
}

.nav-toggle__icon {
  position: relative;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: currentColor;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: rotate(90deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.site-nav__cta--extra {
  display: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
}

.site-nav__link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn--accent {
  background: var(--accent);
  color: #fff8f3;
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff8f3;
}

.btn--ghost {
  background: transparent;
  color: #fff8f3;
  border-color: rgba(255, 248, 243, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 248, 243, 0.08);
  color: #fff8f3;
}

/* Ghost legível no header claro */
.site-header .btn--ghost,
.site-nav .btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: rgba(26, 23, 20, 0.28);
}

.site-header .btn--ghost:hover,
.site-nav .btn--ghost:hover {
  background: var(--paper-deep);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--dark:hover {
  background: var(--ink-soft);
  color: var(--paper);
}

.btn--small {
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
}

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: center;
  color: #fff8f3;
  background: #1a1714;
  overflow: hidden;
  isolation: isolate;
}

.hero--media {
  align-items: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(18, 16, 14, 0.18) 0%, rgba(18, 16, 14, 0.35) 45%, rgba(18, 16, 14, 0.62) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  text-align: center;
}

.hero__brand {
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero__logo {
  width: min(100%, 26rem);
  height: auto;
  display: block;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

.hero__promo {
  width: min(100%, 32rem);
  padding: 1.5rem 1.35rem 1.65rem;
  background: rgba(18, 16, 14, 0.55);
  border: 1px solid rgba(243, 239, 230, 0.18);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 248, 243, 0.72);
}

.hero__promo-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff8f3;
}

.hero__promo-text {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 248, 243, 0.88);
}

.hero__promo-btn {
  min-width: 11rem;
}

.hero__lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 28rem;
  color: rgba(255, 248, 243, 0.88);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--band {
  width: 100%;
  background: var(--paper-deep);
}

.section--band .section__inner,
.section--ink .section__inner {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--ink {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
}

.section__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section--ink .section__eyebrow {
  color: #e08a5d;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 16ch;
}

.section__text {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section--ink .section__text {
  color: rgba(243, 239, 230, 0.78);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

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

.feature {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.section--ink .feature {
  border-top-color: rgba(243, 239, 230, 0.14);
}

.feature h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--muted);
}

.section--ink .feature p {
  color: rgba(243, 239, 230, 0.72);
}

.page-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 14ch;
}

.page-hero p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.panel {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

.panel h2 {
  font-size: 1.7rem;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.list-clean a {
  text-decoration: none;
  font-weight: 600;
}

.list-clean a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.steps {
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 1.25rem 0 1.25rem 4rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  text-align: left;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--paper-deep);
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.social-layout {
  align-items: start;
}

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

.atividades-layout__list {
  margin-top: 1.35rem;
}

.atividades-layout__feed {
  width: 100%;
}

.social-embed {
  width: 100%;
}

.social-embed__frame-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  min-height: 28rem;
  background:
    linear-gradient(160deg, rgba(243, 239, 230, 0.65), rgba(255, 255, 255, 0.92)),
    #fff;
  border: 1px solid rgba(26, 23, 20, 0.18);
  box-shadow: 0 12px 36px rgba(18, 16, 14, 0.08);
  overflow: hidden;
}

.social-embed__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 2rem;
  text-align: center;
  pointer-events: none;
}

.social-embed__placeholder-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}

.social-embed__placeholder-text {
  margin: 0;
  color: var(--muted);
}

.social-embed__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 500px;
  min-height: 28rem;
  border: 0;
  background: transparent;
}

.social-embed__fallback {
  margin-top: 0.85rem;
  max-width: 500px;
  margin-inline: auto;
  font-size: 0.95rem;
  color: var(--muted);
}

.social-embed__fallback a {
  font-weight: 600;
}

.home-notice {
  width: min(100% - 2rem, var(--wide));
  margin: -1.25rem auto 0;
  position: relative;
  z-index: 2;
}

.home-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.home-notice__text {
  margin: 0;
  flex: 1 1 16rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.event-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.event-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.event-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 0.55rem 0.35rem;
}

.event-item__day {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 600;
}

.event-item__month {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.event-item__type {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-item__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.3rem;
}

.event-item__title a {
  text-decoration: none;
}

.event-item__title a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.event-item__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.event-item__summary {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--stage);
  color: rgba(243, 239, 230, 0.82);
  margin-top: 2rem;
}

.site-footer a {
  color: rgba(243, 239, 230, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__logo {
  width: min(100%, 16rem);
  height: auto;
  display: block;
  margin-bottom: 0.35rem;
  background: transparent;
}

.site-footer__col p {
  color: rgba(243, 239, 230, 0.7);
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.55);
  margin-bottom: 0.85rem;
}

.site-footer__base {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
  font-size: 0.9rem;
  color: rgba(243, 239, 230, 0.5);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  :root {
    --header-h: 3.75rem;
  }

  .brand {
    max-width: min(62vw, 12rem);
    min-width: 0;
  }

  .brand__logo {
    max-height: 2.45rem;
  }

  .event-item {
    grid-template-columns: 3.8rem 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Painel fullscreen: fora do fluxo do header para não ficar “preso”/sobreposto */
  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

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

  .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding: 0.95rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.12rem;
    min-height: 2.75rem;
  }

  .site-nav__cta-group {
    flex-direction: column;
    align-items: stretch;
    margin-top: auto;
    padding-top: 0.5rem;
  }

  .site-nav__cta {
    width: 100%;
    text-align: center;
    min-height: 2.85rem;
  }

  .site-nav__cta--extra {
    display: inline-flex;
  }

  .grid-3,
  .grid-2,
  .atividades-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(88vh, 680px);
  }

  .hero__inner {
    padding: 5.5rem 0 3rem;
    gap: 1.25rem;
    width: min(100% - 1.5rem, var(--wide));
  }

  .hero__logo {
    width: min(100%, 18.5rem);
  }

  .hero__promo {
    width: 100%;
    padding: 1.25rem 1.1rem 1.35rem;
  }

  .hero__promo-btn,
  .cta-row .btn {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero {
    padding: clamp(3.25rem, 10vw, 4.5rem) 0 1.5rem;
    width: min(100% - 1.5rem, var(--wide));
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .section {
    width: min(100% - 1.5rem, var(--wide));
  }

  .section--band,
  .section--ink {
    width: 100%;
  }

  .section--ink .section__inner,
  .section--band .section__inner {
    width: min(100% - 1.5rem, var(--wide));
  }

  .site-footer__inner,
  .site-footer__base {
    width: min(100% - 1.5rem, var(--wide));
  }

  .social-embed__frame-wrap,
  .social-embed__frame,
  .social-embed__fallback {
    max-width: 100%;
  }

  .home-notice {
    width: min(100% - 1.5rem, var(--wide));
  }

  .home-notice__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .home-notice__inner .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand {
    max-width: calc(100vw - 7.5rem);
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .nav-toggle {
    padding: 0.65rem 0.75rem;
  }
}
