:root {
  --paper: #f8eebf;
  --ink: #0a5f34;
  --ink-strong: #084d2b;
  --earth: #5d0805;
  --red: #f65b42;
  --panel: rgba(248, 238, 191, 0.92);
  --line: rgba(93, 8, 5, 0.26);
  --hero-veil:
    linear-gradient(90deg, rgba(248, 238, 191, 0.2) 0%, rgba(248, 238, 191, 0.84) 58%, rgba(248, 238, 191, 0.96) 100%),
    radial-gradient(circle at 15% 15%, rgba(246, 91, 66, 0.08), transparent 40%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  color: var(--ink-strong);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% -10%, rgba(246, 91, 66, 0.16), transparent 34%),
    radial-gradient(circle at -5% 80%, rgba(10, 95, 52, 0.09), transparent 30%),
    url("img/fundo.jpg") center center / cover no-repeat fixed,
    var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  background: transparent;
  margin: 0;
  padding: 0;
}

.header-wrap {
  width: 100%;
  margin: 0;
  padding: 0.28rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  background: rgba(248, 238, 191, 0.12);
}

.hero-fica-logo {
  position: absolute;
  left: 1.35rem;
  top: 1.15rem;
  z-index: 30;
}

.hero-fica-logo img {
  width: clamp(110px, 16vw, 194px);
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.main-nav a {
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.24rem;
  color: var(--ink);
  text-shadow: none;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 200ms ease, transform 200ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--earth);
  transform: translateY(-2px);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  padding: 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--earth);
}

main {
  width: 100%;
  margin: 0;
  padding: 0 0 2.5rem;
}

.hero {
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
  z-index: -1;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-title {
  width: min(60%, 576px);
  filter: drop-shadow(0 10px 16px rgba(8, 77, 43, 0.18));
}

.hero-side {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  padding: 0;
  text-align: center;
  text-transform: uppercase;
}

.hero-side-label {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  color: var(--earth);
  letter-spacing: 0.08em;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.9;
  text-shadow: 0 1px 0 rgba(248, 238, 191, 0.8);
}

.hero-side-value {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  color: var(--earth);
  line-height: 0.84;
  letter-spacing: 0.02em;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  text-shadow: 0 2px 0 rgba(248, 238, 191, 0.85);
}

.hero-side-value.place {
  margin-top: 0;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  line-height: 0.88;
}

.hero-side-value.place span {
  display: block;
}

.hero-side-slot-mobile {
  font-weight: 700;
  display: none;
}

.hero-side-place-mobile {
  display: none;
}

.hero-pillars {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.hero-pillars li {
  border: 0;
  background: transparent;
  padding: 0 0 0 1rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.3rem, 1.8vw, 1.85rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--earth);
  text-transform: uppercase;
  position: relative;
  text-shadow: 0 1px 0 rgba(248, 238, 191, 0.9);
}

.hero-pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--earth);
}

.section {
  width: 100%;
  margin: 100px 0 0;
  padding: 50px clamp(1rem, 2.5vw, 1.5rem);
  background: var(--hero-veil);
  scroll-margin-top: 6.3rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  letter-spacing: 0.06em;
  color: var(--ink-strong);
  text-transform: uppercase;
}

.section-text {
  margin: 0.35rem 0 0;
  width: 100%;
  max-width: none;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.2;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 370px) 1fr;
  gap: 1rem;
  align-items: start;
}

.map-embed {
  min-height: 680px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: 0;
}

.program-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
}

.program-card {
  background: rgba(248, 238, 191, 0.28);
  border: 1px solid rgba(93, 8, 5, 0.22);
  padding: 1rem;
}

.program-card h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  color: var(--earth);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
}

.program-subtitle {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
}

.program-timeline {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.program-timeline li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.6rem;
  align-items: start;
  border-bottom: 1px dashed rgba(93, 8, 5, 0.2);
  padding-bottom: 0.45rem;
}

.program-time {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.45rem;
  color: var(--earth);
  line-height: 1;
}

.program-activity {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.program-list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.program-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 1.06rem;
  line-height: 1.2;
}

.program-list li::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--earth);
}

.program-links {
  margin-top: 1rem;
}

.pdf-wrap {
  margin-top: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
}

.pdf-wrap iframe {
  display: block;
  width: 100%;
  min-height: 72vh;
  border: 0;
}

.event-map {
  margin: 0.85rem 0 0;
}

.event-map img {
  width: 100%;
  display: block;
}

.section-highlight {
  background: var(--hero-veil);
}

.btn {
  margin-top: 0.75rem;
  display: inline-block;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--earth);
  background: #ffd86f;
  border: 1px solid rgba(93, 8, 5, 0.5);
  padding: 0.45rem 0.9rem;
  transition: translate 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  translate: 0 -2px;
  box-shadow: 0 6px 14px rgba(93, 8, 5, 0.14);
}

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

.site-footer {
  width: auto;
  margin: 1rem 1rem 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer img {
  width: clamp(130px, 20vw, 180px);
  display: block;
}

.site-footer p {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--earth);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 650ms ease, opacity 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 280ms;
}

@media (max-width: 980px) {
  .hero-title {
    width: min(66%, 520px);
  }

  .hero-side {
    right: clamp(0.8rem, 3vw, 1.4rem);
  }

  .hero-pillars {
    gap: 0.45rem;
  }

  .hero-pillars li {
    font-size: 1.05rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .program-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    border: 0;
    background: rgba(248, 238, 191, 0.56);
    padding: 0.45rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    background: rgba(248, 238, 191, 0.62);
    padding: 0.26rem 0.55rem;
  }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at 92% -10%, rgba(246, 91, 66, 0.16), transparent 34%),
      radial-gradient(circle at -5% 80%, rgba(10, 95, 52, 0.09), transparent 30%),
      url("img/fundo.jpg") center center / cover no-repeat,
      var(--paper);
  }

  main {
    padding: 0 0 2rem;
  }

  .header-wrap,
  .site-footer {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .header-wrap {
    width: 100%;
    margin: 0;
  }

  .section,
  .site-footer {
    margin-left: 0;
    margin-right: 0;
  }

  .hero {
    min-height: 100svh;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/fundo.jpg") center center / cover no-repeat;
    z-index: -2;
  }

  .hero-fica-logo {
    top: 0.75rem;
    left: 0.75rem;
  }

  .hero-fica-logo img {
    width: clamp(98px, 24vw, 152px);
  }

  .hero-title {
    width: min(74%, 410px);
  }

  .hero-side {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 0;
    bottom: 0;
    transform: none;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 6rem;
    gap: 10px;
    text-align: center;
  }

  .hero-side p {
    margin: 0;
  }

  .hero-content {
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0.8rem 7rem;
  }

  .hero-side-label {
    margin: 0;
    font-size: 1.24rem;
    line-height: 0.86;
  }

  .hero-side-value {
    margin: 0;
    font-size: 1.36rem;
    line-height: 0.86;
  }

  .hero-side-desktop-slot,
  .hero-side-place-desktop {
    display: none;
  }

  .hero-side-slot-mobile,
  .hero-side-place-mobile {
    display: block;
  }

  .hero-side-slot-mobile {
    font-size: 1.5rem;
    line-height: 0.9;
    font-weight: 700;
  }

  .hero-side-local-label {
    margin-top: 10px;
    font-size: 1.04rem;
    line-height: 0.9;
  }

  .hero-side-value.place {
    margin-top: 0;
    font-size: 1.4rem;
    line-height: 0.9;
    font-weight: 700;
  }

  .hero-side-value.place span {
    display: block;
    line-height: 0.9;
  }

  .hero-pillars {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 0.7rem;
    justify-items: center;
  }

  .hero-pillars li {
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
    padding-left: 0.75rem;
    text-align: center;
  }

  .hero-pillars li::before {
    width: 6px;
    height: 6px;
  }

  .pdf-wrap iframe {
    min-height: 58vh;
  }

  .program-card {
    padding: 0.8rem;
  }

  .program-timeline li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .program-time {
    font-size: 1.3rem;
  }

  .program-activity,
  .program-list li {
    font-size: 1rem;
  }
}
