/* Tokens */
@layer tokens, base, layout, components, sections, utilities, overrides;

@layer tokens {
  :root {
    --wood-dark: #3e2418;
    --wood: #764b36;
    --wood-light: #9c6a4f;
    --gold: #ebd441;
    --cream: #efe7dd;
    --bg-soft: #f7efe4;
    --bg-soft-2: #f1e4d3;
    --surface-light: rgba(255, 250, 244, 0.86);
    --ink: #2d1a12;
    --ink-soft: #695046;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }
}

/* Base */
@layer base {
  :root {
    --section-nav-offset: 52px;
    --section-top-gap: 10px;
    --section-padding-block: 28px;
    --section-bottom-compensation: 52px;
    --section-min-height: 100vh;
    --section-min-height-svh: 100svh;
    --section-min-height-dvh: 100dvh;
  }

  * {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: "Source Sans 3", system-ui, sans-serif;
    background:
      radial-gradient(circle at top left, rgba(235, 212, 65, 0.18), transparent 28%),
      linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
    color: var(--ink);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

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

  a:focus-visible,
  button:focus-visible {
    outline: 3px solid rgba(235, 212, 65, 0.95);
    outline-offset: 3px;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  h3 {
    margin-top: 0;
    color: var(--wood-dark);
    font-family: "Rye", cursive;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    text-shadow: none;
  }

  p,
  li,
  span,
  a,
  button {
    font-size: 1rem;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* Layout */
@layer layout {
  .navbar,
  .hero-divisor,
  section > * {
    width: 100%;
    margin-inline: auto;
  }

  section {
    width: 100%;
    min-height: var(--section-min-height);
    min-height: var(--section-min-height-svh);
    min-height: var(--section-min-height-dvh);
    padding:
      calc(var(--section-nav-offset) + var(--section-top-gap))
      20px
      calc(var(--section-padding-block) + var(--section-bottom-compensation));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--ink);
  }

  section > * {
    max-width: 1100px;
  }

  .card {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  #programacao .programacao-content {
    display: flex;
  }

  #programacao .section-card,
  #local .section-card {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    padding: 28px;
    border: 1px solid rgba(83, 48, 31, 0.12);
    border-radius: 28px;
    background: rgba(255, 250, 244, 0.86);
    box-shadow: 0 14px 28px rgba(40, 22, 14, 0.1);
  }

  #programacao .programacao-texto,
  #programacao .programacao-figura {
    flex: 1 1 0;
  }

  #programacao .programacao-figura {
    margin: 0;
  }

  #programacao .programacao-figura img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
  }

  #programacao .programacao-texto ul {
    margin: 0;
    padding-left: 1.2rem;
  }

  #programacao .programacao-texto li + li {
    margin-top: 16px;
  }

  .galeria-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px);
    gap: 22px;
    align-items: stretch;
  }

  .galeria-frame {
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(83, 48, 31, 0.12);
    background: rgba(255, 250, 244, 0.88);
  }
}

/* Carrossel */
.carrossel {
  width: 100%;
  max-width: 260px;
  height: 170px;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
}

.imagens {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.imagens img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  padding: 8px;
}

.sponsor-item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-side-card .sponsors-p {
  width: 100%;
}

.hero-side-card .sponsor-item {
  width: 100%;
  max-width: none;
  display: block;
}

.hero-side-card .carrossel {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
  margin-inline: auto;
}

.hero-side-card .imagens {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.hero-side-card .imagens img {
  width: 100%;
  min-width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

/* Header */
@layer components {
  .hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
      linear-gradient(rgba(19, 11, 8, 0.52), rgba(19, 11, 8, 0.72)),
      radial-gradient(circle at 18% 18%, rgba(255, 228, 153, 0.22), transparent 24%),
      url("../img/capa.jpg") center / cover no-repeat;
  }

  .navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 20;
    width: min(calc(100% - 32px), 1100px);
    padding: 3px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(22, 12, 8, 0.66);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }

  .menu {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
  }

  .menu-item-logo {
    display: none;
  }

  .menu a {
    color: #fff;
    text-decoration: none;
  }

  .menu a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .menu-toggle {
    display: none;
    border: none;
    background: none;
    color: #fff;
    font-size: 1.8rem;
  }

  .hero-divisor {
    flex: 1;
    max-width: 1100px;
    padding: 112px 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    grid-template-areas:
      "main side"
      "actions .";
    gap: 28px;
    align-content: center;
  }

  .hero-main-column {
    display: contents;
  }

  .hero-main-stack {
    grid-area: main;
    display: grid;
    gap: 22px;
    min-width: 0;
    width: min(100%, 760px);
  }

  .hero-topline {
    display: flex;
    align-items: stretch;
    gap: 24px;
  }

  .hero-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    width: 100%;
  }

  .hero-eyebrow {
    margin: 0;
    color: rgba(255, 232, 188, 0.9);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .hero-title-group h1 {
    margin: 0;
    max-width: none;
    font-family: "Rye", cursive;
    font-size: clamp(1.32rem, 2.9vw, 2.7rem);
    line-height: 1;
    color: inherit;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy-card {
    width: 100%;
    padding: 22px 24px;
    border: 1px solid rgba(255, 240, 221, 0.18);
    border-radius: 20px;
    background: rgba(26, 14, 10, 0.42);
  }

  .hero-message {
    margin: 0;
    max-width: none;
    font-size: clamp(1.06rem, 1.4vw, 1.26rem);
    font-weight: 400;
    line-height: 1.75;
  }

  .hero-content h2 {
    margin: 18px 0 0;
    max-width: 48ch;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    font-family: inherit;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
  }

  .hero-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 18px;
  }

  .hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 400;
  }

  .hero-button--primary {
    color: #311a0e;
    background: linear-gradient(135deg, #f8e4ad 0%, #d9ab3d 100%);
  }

  .hero-button--secondary {
    color: #fff;
    background: rgba(255, 248, 241, 0.12);
    border: 1px solid rgba(255, 248, 241, 0.18);
  }

  .hero-side-card {
    grid-area: side;
    align-self: stretch;
    padding: 22px;
    border-radius: 28px;
    color: #fff8f2;
    border: 1px solid rgba(255, 248, 241, 0.18);
    background: transparent;
  }

  .hero-main-logo {
    flex: 0 0 auto;
    align-self: stretch;
    aspect-ratio: 1;
    min-width: clamp(240px, 28vw, 360px);
    max-width: min(42vw, 420px);
    display: flex;
  }

  .hero-main-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  @media (min-width: 901px) {
    .hero-main-logo img {
      width: auto;
      max-width: none;
    }
  }
}

/* Galeria cards */
@layer components {
  .social-card {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    text-decoration: none;
    color: #fff8f2;
    border-radius: 28px;
    overflow: hidden;
    background:
      radial-gradient(circle at top right, rgba(255, 214, 152, 0.32), transparent 30%),
      linear-gradient(160deg, #311d28 0%, #652b4d 50%, #b04f49 100%);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .social-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
  }

  .social-card--instagram {
    color: #fff8f2;
  }

  .social-card__header,
  .social-card__profile,
  .social-card__description,
  .social-card__cta {
    position: relative;
    z-index: 1;
  }

  .social-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
  }

  .social-card__profile {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .social-card__avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.12);
  }

  .social-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .social-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .social-card__meta strong {
    font-size: 1.14rem;
  }

  .social-card__meta span {
    color: rgba(255, 246, 241, 0.84);
  }

  .social-card__description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 246, 241, 0.92);
  }

  .social-card__cta {
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    color: #441f2b;
    font-weight: 700;
    background: linear-gradient(135deg, #fff2de 0%, #ffd267 100%);
  }
}

/* Galeria slider */
@layer components {
  .galeria-slider {
    position: relative;
    min-height: 440px;
    border-radius: 20px;
    overflow: hidden;
  }

  .galeria-slider-image {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    cursor: zoom-in;
  }

  .galeria-slider:fullscreen,
  .galeria-slider:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border-radius: 0;
    background: #000;
  }

  .galeria-slider:fullscreen .galeria-slider-image,
  .galeria-slider:-webkit-full-screen .galeria-slider-image,
  .galeria-slider.is-fullscreen .galeria-slider-image {
    min-height: 0;
    object-fit: contain;
  }

  .galeria-slider.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
    background: #000;
  }

  .galeria-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 40px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    z-index: 3;
  }

  .galeria-slider:fullscreen .galeria-close,
  .galeria-slider:-webkit-full-screen .galeria-close,
  .galeria-slider.is-fullscreen .galeria-close {
    display: inline-flex;
  }

  .galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(24, 13, 9, 0.6);
    color: #fff;
    cursor: pointer;
    z-index: 2;
  }

  .galeria-nav--prev {
    left: 12px;
  }

  .galeria-nav--next {
    right: 12px;
  }

  .galeria-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
  }

  .galeria-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
  }

  .galeria-dot.is-active {
    background: #fff;
  }
}

/* Mapa */
@layer components {
  .mapa iframe {
    width: 100%;
    height: clamp(320px, 36vw, 460px);
    display: block;
    margin: 0 auto;
    border: none;
    border-radius: var(--radius);
  }

  .mapa-endereco {
    text-align: left;
  }

  .mapa-acao {
    margin-top: 18px;
    text-align: center;
  }

  .rota-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #1a73e8;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition:
      transform 0.2s ease,
      background-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .rota-maps-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
  }
}

/* Inscricao */
@layer components {
  .inscricao {
    text-align: left;
  }

  .inscricao .card {
    position: relative;
  }

  .inscricao .signup-shell {
    padding: clamp(28px, 5vw, 42px);
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    gap: 20px;
    align-items: center;
    border-radius: 28px;
    border: 1px solid rgba(83, 48, 31, 0.12);
    background: rgba(255, 250, 244, 0.92);
  }

  .signup-kicker {
    margin: 0 0 10px;
    color: var(--wood-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .inscricao .signup-ornament {
    width: min(180px, 100%);
    margin: 0;
    pointer-events: none;
  }

  .inscricao .signup-ornament--left {
    justify-self: start;
  }

  .inscricao .signup-ornament--right {
    justify-self: end;
  }

  .inscricao .signup-ornament img {
    width: 100%;
    height: auto;
    display: block;
  }

  .inscricao .signup-content {
    text-align: left;
  }

  .inscricao .signup-content h3,
  .inscricao .signup-content p,
  .inscricao .signup-actions {
    max-width: 44rem;
    margin-inline: 0;
  }

  .inscricao .signup-content h3 {
    margin-bottom: 12px;
  }

  .inscricao .signup-content p {
    margin-top: 0;
    margin-bottom: 0;
  }

  .inscricao .signup-content p a {
    color: var(--wood);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .inscricao .signup-actions {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .inscricao .cta-button {
    display: inline-block;
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    background: var(--wood);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
  }

  .inscricao .cta-button--disabled {
    opacity: 0.75;
    cursor: not-allowed;
  }

  .signup-note {
    color: var(--ink-soft);
    font-size: 0.96rem;
    text-align: center;
    line-height: 1.5;
  }

  .signup-note a {
    color: var(--wood);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

}

/* Footer */
@layer components {
  .footer {
    padding: clamp(28px, 5vw, 44px) clamp(20px, 8vw, 10%);
    display: flex;
    gap: clamp(20px, 4vw, 40px);
    justify-content: space-between;
    flex-wrap: wrap;
    color: #fff;
    background:
      linear-gradient(rgba(34, 21, 14, 0.82), rgba(34, 21, 14, 0.82)),
      url("../img/madeira.png") center / cover no-repeat;
  }

  .footer h4 {
    margin: 0 0 12px;
    color: rgba(255, 232, 188, 0.9);
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: left;
  }

  .footer-left,
  .footer-right {
    width: 48%;
    min-width: 280px;
  }

  .sponsors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .sponsors-p {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .sponsor-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    width: fit-content;
    max-width: 100%;
  }

  .sponsor-item--stack {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sponsor-item--inline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .sponsor-item--realization {
    justify-content: center;
    align-items: center;
  }

  .sponsor-item figcaption {
    max-width: 18ch;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .sponsor-item-thumb {
    width: min(100%, clamp(136px, 12vw, 170px));
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
  }

  .sponsor-item-thumb--wide {
    width: min(100%, clamp(226px, 21.68vw, 294px));
  }

  .sponsor-item-thumb--large {
    width: clamp(158px, 13.82vw, 200px);
    height: clamp(158px, 13.82vw, 200px);
    flex-basis: clamp(158px, 13.82vw, 200px);
    object-fit: contain;
  }

  .supporters-list {
    width: 100%;
    margin: 0;
    padding: 12px 16px 12px 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
  }

  .supporters-list:empty {
    display: none;
  }

  .supporters-list li + li {
    margin-top: 6px;
  }

  .social-icons a {
    margin-right: 15px;
    color: #fff;
    font-size: 40px;
    transition:
      transform 0.3s,
      color 0.3s;
  }

  .contact-info {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 1rem;
  }

  .footer-copy {
    width: 100%;
    margin: 12px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.7;
    letter-spacing: 0.01em;
  }

  .footer-copy p {
    margin: 0;
  }

  .footer-copy-highlight {
    color: var(--gold);
    font-weight: 700;
  }

  .footer-copy a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
  }
}

/* Sobre */
@layer sections {
  #sobre {
    background:
      radial-gradient(circle at top right, rgba(216, 178, 74, 0.12), transparent 22%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  }

  #sobre h2 {
    margin: 0;
    max-width: 16ch;
    font-family: "Rye", cursive;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    color: var(--wood-dark);
  }

  .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 22px;
  }

  .story-panel {
    padding: 28px;
    border: 1px solid rgba(83, 48, 31, 0.12);
    border-radius: 28px;
    background: rgba(255, 250, 244, 0.86);
  }

  .story-panel--legacy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: start;
  }

  .story-panel h3 {
    margin-bottom: 16px;
    color: var(--wood-dark);
    text-align: left;
  }

  .story-panel p {
    margin: 0;
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.65;
  }

  .story-panel__copy p + p {
    margin-top: 18px;
  }

  .story-panel__media {
    margin: 0;
  }

  .story-panel__media img {
    width: 100%;
    border-radius: 20px;
  }

  .reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .reason-card {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(83, 48, 31, 0.1);
  }

  .reason-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--wood-dark);
    font-size: 1.02rem;
  }

  .reason-card p,
  .story-panel__closing {
    margin: 0;
  }

  .reason-card p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .story-panel__closing {
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 600;
    color: var(--wood);
  }
}

/* Responsive */
@layer overrides {
  @media (min-width: 901px) {
    .story-grid {
      gap: 18px;
    }

    .sponsor-item--inline {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 220px));
    }

    .sponsor-item--inline .sponsor-item-thumb--wide {
      width: 100%;
      max-width: 220px;
    }

    .sponsor-item--realization {
      grid-template-columns: repeat(auto-fit, minmax(158px, 200px));
      justify-content: start;
    }

    .galeria-grid {
      padding-inline: 12px;
      gap: 14px;
      align-items: stretch;
    }

    .galeria-slider-image {
      width: 100%;
      height: 100%;
    }
  }

  @media (hover: hover) and (pointer: fine) {
    .social-card:hover {
      transform: translateY(-3px);
    }

    .rota-maps-btn:hover {
      background: #1765c7;
      transform: translateY(-1px);
    }

    .social-icons a:hover {
      color: var(--gold);
      transform: scale(1.2);
    }

    .footer-copy a:hover {
      color: rgba(255, 255, 255, 0.82);
    }

  }

  @media (max-width: 900px) {
    :root {
      --section-nav-offset: 60px;
      --section-top-gap: 10px;
      --section-bottom-compensation: 40px;
    }

    .navbar {
      top: 10px;
      left: auto;
      right: 12px;
      transform: none;
      width: auto;
      padding: 0;
      justify-content: flex-end;
      border: 0;
      background: transparent;
    }

    .brand {
      display: none;
    }

    .menu-toggle {
      min-width: 44px;
      min-height: 44px;
      padding: 0;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 999px;
      background: rgba(22, 12, 8, 0.78);
    }

    .hero-divisor {
      grid-template-columns: 1fr;
      grid-template-areas:
        "main"
        "side"
        "actions";
      align-content: start;
      gap: 18px;
      padding: 52px 12px 8px;
      text-align: left;
    }

    #programacao .programacao-content,
    .footer {
      flex-direction: column;
    }

    .hero-topline,
    .hero-content,
    .footer-left,
    .footer-right {
      width: 100%;
    }

    .hero-topline,
    .hero-content {
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
    }

    .hero-main-logo {
      width: min(100%, 420px);
      min-width: 0;
      max-width: none;
      align-self: center;
    }

    .hero-title-group {
      gap: 6px;
      flex: 1 1 auto;
    }

    .hero-title-group h1 {
      max-width: none;
      font-size: clamp(1.26rem, 5.2vw, 1.9rem);
    }

    .hero-copy-card {
      padding: 18px;
    }

    .hero-message {
      font-size: 1rem;
      line-height: 1.68;
    }

    .hero-content h2 {
      margin: 10px 0 0;
      font-size: 0.96rem;
      line-height: 1.45;
    }

    .hero-button {
      width: auto;
    }

    .hero-side-card {
      padding: 18px;
    }

    #programacao .programacao-content {
      align-items: stretch;
      gap: 16px;
    }

    #programacao .programacao-texto,
    #programacao .programacao-figura {
      width: 100%;
      flex: 0 0 auto;
    }

    #programacao .programacao-figura img {
      max-height: 210px;
      margin-inline: auto;
      object-position: center;
    }

    .mapa iframe {
      width: 100%;
      height: 240px;
    }

    .menu {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      display: none;
      flex-direction: column;
      min-width: min(260px, calc(100vw - 24px));
      padding: 18px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 18px;
      background: rgba(18, 10, 8, 0.94);
    }

    .menu-item-logo {
      display: block;
      margin-bottom: 4px;
    }

    .menu-item-logo a {
      display: grid;
      place-items: center;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .menu-item-logo img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      object-fit: cover;
    }

    .menu.active {
      display: flex;
    }

    .footer {
      padding: 32px 20px;
      text-align: left;
    }

    .footer-left,
    .footer-right {
      margin-bottom: 30px;
    }

    .social-icons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }

    .sponsors {
      justify-content: center;
    }

    .inscricao .signup-shell {
      grid-template-columns: 1fr;
      padding: 24px 18px;
    }

    .inscricao .signup-ornament {
      width: min(220px, 70vw);
      margin-inline: auto;
    }

    .inscricao .signup-ornament--right {
      order: -1;
    }

    .inscricao .signup-ornament--left {
      order: 2;
      margin-top: 10px;
    }

    .inscricao .signup-content {
      width: 100%;
    }

    .social-card {
      padding: 16px;
      gap: 10px;
    }

    .galeria-grid {
      display: grid;
      grid-template-columns: 1fr;
    }

    .galeria-frame {
      padding: 14px;
    }

    .galeria-slider,
    .galeria-slider-image {
      min-height: 280px;
    }

    .story-grid,
    .story-panel--legacy,
    .reasons-grid {
      grid-template-columns: 1fr;
    }

    .story-panel {
      padding: 18px;
    }

    .story-panel__media img {
      max-width: 220px;
      margin-inline: auto;
      object-position: center;
    }

    .social-card__profile {
      gap: 10px;
    }

    .social-card__avatar {
      width: 54px;
      height: 54px;
    }

    .social-card__pill {
      padding: 6px 10px;
      font-size: 0.72rem;
    }

    .social-card__meta strong {
      font-size: 0.9rem;
    }

    .social-card__meta span {
      font-size: 0.76rem;
    }

    .social-card__description {
      font-size: 0.76rem;
      line-height: 1.3;
    }

    .social-card__cta {
      padding: 7px 11px;
      font-size: 0.72rem;
    }

    #galeria {
      background:
        radial-gradient(circle at 18% 20%, rgba(255, 243, 173, 0.18), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(245, 176, 94, 0.14), transparent 34%),
        linear-gradient(180deg, #f8efe3 0%, #f1e2cf 100%);
    }

    #inscricao::after {
      opacity: 0.42;
      background-size:
        180px 180px,
        220px 220px;
    }
  }
}
