:root {
  --wine: #440313;
  --wine-2: #65091f;
  --rose: #b5445a;
  --purple: #9900cc;
  --lime: #cccc33;
  --yellow: #ffcc00;
  --cream: #fff9ef;
  --paper: #fffdf8;
  --ink: #2a1017;
  --muted: #6d5660;
  --white: #fff;
  --shadow: 0 20px 50px rgba(68, 3, 19, .12);
  --radius: 22px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; color: var(--wine); background: var(--yellow); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 14px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 124px) 0; }
h1, h2, h3 { margin: 0; color: var(--wine); font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-weight: 900; line-height: .98; letter-spacing: -.018em; text-wrap: balance; }
h1 { max-width: 880px; margin-inline: auto; font-size: clamp(2.55rem, 5.5vw, 5.8rem); text-align: center; }
h2 { font-size: clamp(2.35rem, 4.3vw, 4.75rem); }
h3 { font-size: clamp(1.7rem, 2.4vw, 2.45rem); }
p { margin: 0 0 1.2rem; }
.eyebrow { margin: 0 0 16px; color: var(--rose); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-light { color: #f5b7c5; }
.eyebrow-yellow { color: var(--yellow); }
.short-rule { display: block; width: 74px; height: 4px; margin: 28px auto 48px; background: var(--rose); border-radius: 99px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; border: 2px solid var(--purple); border-radius: 10px; color: var(--white); background: var(--purple); font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); background: #7d00a8; }
.button-small { min-height: 44px; padding: 9px 16px; font-size: .88rem; }
.button-outline { color: var(--wine); background: transparent; border-color: var(--wine); }
.button-outline:hover { color: var(--white); background: var(--wine); }
.button-yellow { color: var(--wine); background: var(--yellow); border-color: var(--yellow); }
.button-yellow:hover { color: var(--wine); background: #f2c300; }
.button[aria-disabled="true"], button:disabled { cursor: not-allowed; opacity: .72; transform: none; }
.text-link { color: var(--wine); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(68,3,19,.09); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 88px; width: min(var(--container), calc(100% - 40px)); margin-inline: auto; align-items: center; gap: 26px; }
.brand { display: flex; width: 184px; height: 68px; align-items: center; flex: 0 0 auto; }
.brand img { width: 184px; height: 65px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { position: relative; padding: 14px 0; color: var(--ink); font-size: .91rem; font-weight: 800; text-decoration: none; }
.main-nav a::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 3px; background: var(--rose); border-radius: 99px; content: ''; transform: scaleX(0); transition: transform .18s ease; }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; color: var(--wine); background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 3px; margin: 5px auto; background: currentColor; border-radius: 4px; transition: transform .18s ease, opacity .18s ease; }

.hero { overflow: hidden; background: #0983d1; }
.hero picture { display: block; }
.hero img { width: 100%; height: auto; aspect-ratio: 1440 / 1024; object-fit: cover; object-position: center; }
.pattern-strip { height: 68px; background-color: var(--wine); background-image: url('../images/padrao-pernambuco.jpg'); background-position: center 21%; background-size: 1080px auto; }
.flags { background: linear-gradient(180deg, var(--cream), #fff); }
.flags .eyebrow { text-align: center; }
.flag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.flag-card { position: relative; min-height: 370px; padding: 34px 30px 30px; overflow: hidden; background: #fff; border: 1px solid rgba(68,3,19,.09); border-radius: var(--radius); box-shadow: var(--shadow); }
.flag-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 7px; background: var(--card-color); content: ''; }
.flag-number { color: var(--card-color); font-size: 3.6rem; font-weight: 900; line-height: 1; opacity: .8; }
.flag-card h2 { margin: 24px 0 16px; font-size: clamp(1.8rem, 2.5vw, 2.65rem); }
.flag-card p { color: var(--muted); }
.flag-card a { position: absolute; bottom: 28px; color: var(--wine); font-weight: 900; text-decoration: none; }
.flag-card a:hover { text-decoration: underline; text-underline-offset: 5px; }
.flag-rose { --card-color: var(--rose); }
.flag-purple { --card-color: var(--purple); }
.flag-lime { --card-color: #a4aa13; }

.about-preview { background: #fff; }
.split-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(42px, 8vw, 112px); }
.editorial-photo { margin: 0; overflow: hidden; background: var(--rose); border-radius: var(--radius); box-shadow: var(--shadow); }
.editorial-photo img { width: 100%; height: 610px; object-fit: cover; object-position: center 40%; }
.content-block { max-width: 620px; }
.content-block .short-rule { margin: 26px 0; }
.content-block > p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; }

.legacy { position: relative; padding: clamp(88px, 11vw, 150px) 0; overflow: hidden; color: #fff; background: var(--wine); }
.legacy-pattern { position: absolute; inset: 0 0 0 62%; opacity: .22; background: url('../images/padrao-pernambuco.jpg') center/cover; mask-image: linear-gradient(90deg, transparent, #000 34%); }
.legacy-content { position: relative; }
.legacy h2 { max-width: 780px; color: #fff; }
.legacy blockquote { max-width: 850px; margin: 34px 0 0; padding-left: 24px; border-left: 5px solid var(--yellow); color: #fbeff3; font-size: clamp(1.05rem, 2vw, 1.38rem); font-weight: 700; }

.participation { background: var(--cream); }
.participation-card { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 650px; overflow: hidden; color: #fff; background: var(--wine); border-radius: 28px; box-shadow: var(--shadow); }
.participation-card figure { margin: 0; }
.participation-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.participation-copy { align-self: center; padding: clamp(36px, 6vw, 82px); }
.participation-copy h2 { color: #fff; }
.participation-copy > p:not(.eyebrow):not(.contact-note) { margin-top: 26px; color: #f7dfe5; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0; }
.tag-list span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.contact-note { margin: 10px 0 0; color: #f5c8d2; font-size: .82rem; }

.agenda-preview { background: #fff; }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: clamp(40px, 9vw, 130px); }
.split-heading p { color: var(--muted); }
.share-section { padding-top: 0; background: #fff; }
.share-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; padding: clamp(34px, 5vw, 66px); color: #fff; background: linear-gradient(130deg, var(--purple), var(--wine)); border-radius: var(--radius); }
.share-card h2 { max-width: 760px; color: #fff; font-size: clamp(2.1rem, 3.8vw, 4rem); }
.share-status { grid-column: 1 / -1; margin: -18px 0 0; color: #fbe5ff; font-size: .86rem; }
.instagram-section { background: var(--cream); }
.instagram-section .editorial-photo img { object-position: center 28%; }

.site-footer { color: #fff; background: var(--wine); }
.footer-main { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 36px; padding: 48px 0; }
.footer-logo { width: 184px; height: 120px; object-fit: contain; }
.footer-main strong, .footer-main span { display: block; }
.footer-main strong { font-size: 1.2rem; }
.footer-main span { color: #efbdc8; }
.footer-main nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-main a, .footer-legal a { color: #fff; font-weight: 800; text-underline-offset: 4px; }
.pattern-strip-footer { height: 42px; }
.footer-legal { display: flex; justify-content: space-between; gap: 28px; padding: 22px 0 30px; color: #e8c6ce; font-size: .76rem; }
.footer-legal p { margin: 0; }

.page-hero { position: relative; padding: clamp(76px, 10vw, 140px) 0; overflow: hidden; color: #fff; background: var(--wine); }
.page-hero::after { position: absolute; inset: 0 0 0 62%; opacity: .22; background: url('../images/padrao-pernambuco.jpg') center/cover; content: ''; mask-image: linear-gradient(90deg, transparent, #000 35%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 850px; margin: 0; color: #fff; text-align: left; }
.page-hero p:not(.eyebrow) { max-width: 650px; margin: 26px 0 0; color: #f5dfe4; font-size: 1.15rem; }
.page-content { background: var(--cream); }
.prose { max-width: 830px; margin-inline: auto; }
.prose h2 { margin: 54px 0 20px; font-size: clamp(2rem, 3.4vw, 3.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.timeline { display: grid; gap: 18px; margin: 48px 0; padding: 0; list-style: none; counter-reset: steps; }
.timeline li { position: relative; padding: 28px 28px 28px 86px; background: #fff; border-radius: 16px; box-shadow: 0 10px 28px rgba(68,3,19,.08); counter-increment: steps; }
.timeline li::before { position: absolute; top: 25px; left: 25px; display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--purple); border-radius: 50%; content: counter(steps, decimal-leading-zero); font-size: .8rem; font-weight: 900; }
.timeline strong { display: block; margin-bottom: 5px; color: var(--wine); font-size: 1.15rem; }
.accordion { margin: 36px 0; border-top: 1px solid #d9c8cc; }
.accordion-item { border-bottom: 1px solid #d9c8cc; }
.accordion-button { display: flex; width: 100%; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border: 0; color: var(--wine); background: transparent; font-size: 1.05rem; font-weight: 900; text-align: left; cursor: pointer; }
.accordion-button span:last-child { font-size: 1.5rem; transition: transform .18s ease; }
.accordion-button[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.accordion-panel { padding: 0 0 24px; }
.accordion-panel[hidden] { display: none; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0; padding: 0; list-style: none; }
.detail-list li { padding: 20px; color: var(--muted); background: #fff; border-left: 5px solid var(--rose); border-radius: 12px; }
.page-cta { margin-top: 56px; padding: 36px; color: #fff; background: var(--wine); border-radius: var(--radius); }
.page-cta h2 { margin: 0 0 16px; color: #fff; font-size: clamp(2rem, 3.5vw, 3.3rem); }
.page-cta p { color: #f2dce1; }
.empty-state { max-width: 760px; margin: 0 auto; padding: 52px; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state h2 { margin-bottom: 20px; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 46px 0; }
.support-card { padding: 28px; background: #fff; border-radius: 16px; box-shadow: 0 10px 28px rgba(68,3,19,.08); }
.support-card h2 { margin-bottom: 12px; font-size: 2rem; }
.support-card p { color: var(--muted); }

@media (max-width: 900px) {
  .hero img { aspect-ratio: 768 / 1024; object-position: center; }
  .header-inner > .contact-action { display: none; }
  .main-nav { gap: 18px; }
  .flag-grid { grid-template-columns: 1fr; }
  .flag-card { min-height: 310px; }
  .participation-card { grid-template-columns: 1fr 1.2fr; }
  .footer-main { grid-template-columns: 170px 1fr; }
  .footer-main nav { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 599px) {
  .hero img { aspect-ratio: 375 / 812; object-position: center; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .container, .header-inner { width: min(100% - 32px, var(--container)); }
  .site-header { min-height: 72px; }
  .header-inner { min-height: 72px; }
  .brand { width: 148px; height: 58px; }
  .brand img { width: 148px; height: 54px; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav { position: fixed; top: 72px; right: 0; bottom: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 24px; background: #fff; }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 52px; padding: 13px 8px; border-bottom: 1px solid #eadde0; font-size: 1rem; }
  .main-nav a::after { display: none; }
  .pattern-strip { height: 46px; background-size: 760px auto; }
  .split-layout, .split-heading { grid-template-columns: 1fr; }
  .editorial-photo img { height: 460px; }
  .participation-card { grid-template-columns: 1fr; }
  .participation-card figure { height: 430px; }
  .share-card { grid-template-columns: 1fr; }
  .share-status { grid-column: 1; margin: -12px 0 0; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; }
  .footer-main nav { grid-column: auto; justify-content: flex-start; }
  .footer-legal { flex-direction: column; }
  .detail-list, .support-grid { grid-template-columns: 1fr; }
  .empty-state { padding: 32px 22px; }
  .reverse-mobile .content-block { order: 2; }
  .reverse-mobile .editorial-photo { order: 1; }
  .landscape-mobile img { height: 390px; }
}

@media (max-width: 430px) {
  body { font-size: 15.5px; }
  .section { padding: 68px 0; }
  .flag-card { min-height: 330px; padding: 28px 24px; }
  .participation-card figure { height: 360px; }
  .participation-copy { padding: 34px 24px; }
  .page-cta { padding: 28px 22px; }
}

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