:root {
  --river: #08241d;
  --river-2: #0d3529;
  --forest: #174833;
  --leaf: #5f7f48;
  --clay: #9a4d2f;
  --fire: #e08a35;
  --sun: #efb653;
  --sand: #ead8b7;
  --flour: #f5ead3;
  --paper: #f1e4c9;
  --ink: #0b1713;
  --white: #fffaf0;
  --muted: #65736b;
  --line: rgba(255,255,255,.14);
  --shell: min(1240px, calc(100vw - 44px));
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 30px 80px rgba(3,16,12,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--flour); font-family: var(--sans); line-height: 1.65; overflow-x: hidden; }
body.modal-open, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { color: inherit; }
button { font: inherit; }
::selection { background: var(--sun); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 3000; padding: 12px 18px; background: var(--sun); color: var(--ink); text-decoration: none; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 16px; }
.shell { width: var(--shell); margin-inline: auto; }
.grain { position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: .045; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; color: var(--white); border-bottom: 1px solid transparent; transition: .3s ease; }
.site-header.scrolled { background: rgba(5,27,21,.91); backdrop-filter: blur(16px); border-color: rgba(255,255,255,.12); }
.header-inner { width: min(1440px, calc(100vw - 36px)); min-height: 86px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { color: var(--sun); font-size: 30px; line-height: 1; letter-spacing: -.2em; transform: scaleX(1.25); }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 14px/1 var(--serif); letter-spacing: .08em; }
.brand small { margin-top: 7px; color: var(--sun); font-size: 9px; letter-spacing: .28em; }
.main-nav { display: flex; align-items: center; gap: 21px; }
.main-nav a { position: relative; color: rgba(255,255,255,.84); text-decoration: none; font-size: 13px; font-weight: 700; }
.main-nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--sun); transition: right .25s; }
.main-nav a:hover::after { right: 0; }
.main-nav .festival-link { color: #ffd27b; }
.nav-cta { padding: 10px 17px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; }
.nav-cta:hover { background: var(--white); color: var(--river); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: inherit; padding: 11px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--river); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -5; background: url('assets/images/hero-rio.webp') center / cover no-repeat; transform: scale(1.03); filter: saturate(1.12) contrast(1.08) brightness(.78); animation: slowZoom 18s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; z-index: -4; background: linear-gradient(90deg, rgba(3,26,20,.94) 0%, rgba(5,37,28,.78) 48%, rgba(6,28,22,.34) 75%, rgba(4,22,18,.72) 100%), linear-gradient(0deg, rgba(4,26,20,.96), transparent 48%, rgba(6,26,21,.34)); }
.river-lines { position: absolute; left: -10%; right: -10%; bottom: -25px; height: 180px; z-index: -2; opacity: .23; background: repeating-radial-gradient(ellipse at center, transparent 0 32px, rgba(239,182,83,.45) 33px 34px, transparent 35px 61px); transform: perspective(260px) rotateX(68deg); }
.hero-grid { min-height: 100svh; padding: 130px 0 100px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.55fr); align-items: center; gap: clamp(55px,8vw,120px); }
.eyebrow { margin: 0 0 18px; color: var(--sun); font-size: 11px; font-weight: 900; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow.dark { color: var(--clay); }
.official-title { width: min(760px, 100%); height: auto; filter: sepia(.14) brightness(1.75) saturate(.7) drop-shadow(0 16px 40px rgba(0,0,0,.32)); }
.hero-lead { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.9); font: italic 400 clamp(20px,2.2vw,31px)/1.36 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 900; cursor: pointer; transition: .22s ease; }
.button:hover { transform: translateY(-2px); }
.button-fire { background: var(--fire); color: var(--ink); box-shadow: 0 12px 34px rgba(224,138,53,.22); }
.button-fire:hover { background: var(--sun); }
.button-outline { color: var(--white); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.04); }
.button-outline:hover { background: var(--white); color: var(--river); }
.button-green { background: var(--forest); color: var(--white); }
.button-green:hover { background: var(--river); }
.hero-meta { margin-top: 34px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-meta span { min-width: 120px; }
.hero-meta small { display: block; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-meta strong { display: block; margin-top: 4px; color: rgba(255,255,255,.93); font: 700 15px var(--serif); }
.hero-aside { width: min(100%,390px); justify-self: end; }
.hero-photo { margin: 0; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.26); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-photo::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.28); z-index: 2; pointer-events: none; }
.hero-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.95) contrast(1.06); }
.hero-card { position: relative; width: 90%; margin: -36px auto 0; z-index: 3; padding: 24px 25px; background: rgba(239,225,194,.95); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.28); transform: rotate(-1deg); }
.hero-card-kicker { color: var(--clay); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-card p { margin: 10px 0 15px; font: 700 18px/1.35 var(--serif); }
.hero-card a { color: var(--forest); text-decoration: none; font-size: 12px; font-weight: 900; }
.scroll-cue { position: absolute; left: 50%; bottom: 21px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; color: rgba(255,255,255,.55); text-decoration: none; font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 32px; background: linear-gradient(var(--sun), transparent); }

.section { padding: clamp(90px,11vw,155px) 0; }
.section-heading { max-width: 690px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .symbol-copy h2, .direction-copy h2, .funding-copy h2, .contact-inner h2 { margin: 0; font: 700 clamp(43px,5.4vw,76px)/.98 var(--serif); letter-spacing: -.045em; }
.section-intro { margin: 25px 0 0; color: #53625a; font-size: 17px; }
.lead { font: 400 clamp(21px,2.1vw,29px)/1.45 var(--serif); }
.film-section { position: relative; overflow: hidden; background: var(--flour); }
.mandioca-decor { position: absolute; pointer-events: none; opacity: .09; }
.mandioca-top { width: 760px; right: -190px; top: -80px; transform: rotate(-8deg); }
.film-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(50px,8vw,120px); align-items: start; position: relative; }
.film-copy { max-width: 730px; }
.film-copy p { color: #34473e; }
.film-copy blockquote { margin: 40px 0 0; padding: 4px 0 4px 27px; border-left: 4px solid var(--fire); color: var(--clay); font: italic 700 clamp(23px,2.35vw,32px)/1.42 var(--serif); }
.film-mosaic { width: min(1500px,100%); margin: 90px auto 0; padding: 0 8px; display: grid; grid-template-columns: 1.35fr .85fr .62fr .9fr; gap: 8px; }
.film-mosaic figure { margin: 0; height: 380px; overflow: hidden; background: var(--river); }
.film-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.film-mosaic figure:hover img { transform: scale(1.04); }

.territory-section { position: relative; color: var(--white); background: var(--river); overflow: hidden; }
.territory-section::before { content: ''; position: absolute; inset: 0; opacity: .16; background: radial-gradient(circle at 50% 0, #5f997d, transparent 48%), repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.045) 47px 48px); }
.territory-section .shell { position: relative; }
.territory-section .section-heading > p:last-child { color: rgba(255,255,255,.66); }
.journey-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.journey-card { position: relative; padding-bottom: 22px; overflow: hidden; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.13); }
.journey-card:nth-child(even) { transform: translateY(24px); }
.journey-card > span { position: absolute; z-index: 2; top: 10px; left: 11px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--sun); font-size: 10px; font-weight: 900; }
.journey-card img { width: 100%; height: 250px; object-fit: cover; filter: saturate(.82); }
.journey-card h3 { margin: 20px 18px 5px; color: var(--sand); font: 700 27px var(--serif); }
.journey-card p { margin: 0 18px; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.55; }

.symbol-section { background: var(--paper); overflow: hidden; }
.symbol-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(55px,9vw,130px); align-items: center; }
.symbol-image { position: relative; padding: 18px; border: 1px solid rgba(11,23,19,.25); background: rgba(255,255,255,.22); transform: rotate(-1.5deg); }
.symbol-image::after { content: ''; position: absolute; inset: 27px -20px -20px 27px; border: 1px solid rgba(11,23,19,.18); z-index: -1; }
.symbol-image img { width: 100%; min-height: 620px; object-fit: cover; }
.image-caption { position: absolute; left: -18px; bottom: 35px; padding: 13px 18px; background: var(--clay); color: var(--white); font: italic 700 18px var(--serif); }
.symbol-copy .lead { color: #253c31; }
.symbol-points { margin-top: 35px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.symbol-points div { padding: 22px 18px; border-top: 2px solid var(--fire); background: rgba(255,255,255,.36); }
.symbol-points b { color: var(--clay); font-size: 11px; }
.symbol-points h3 { margin: 8px 0 5px; font: 700 23px var(--serif); }
.symbol-points p { margin: 0; color: #57635d; font-size: 13px; }

.festival-section { background: var(--flour); }
.festival-hero { min-height: 720px; position: relative; display: grid; align-items: end; overflow: hidden; color: var(--white); }
.festival-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.05); }
.festival-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,28,21,.95), rgba(7,31,24,.18) 65%, rgba(7,31,24,.34)), linear-gradient(90deg, rgba(5,28,21,.65), transparent 65%); }
.festival-hero-content { position: relative; padding-bottom: 82px; }
.festival-hero-content h2 { max-width: 900px; margin: 0; font: 700 clamp(52px,7vw,100px)/.9 var(--serif); letter-spacing: -.05em; }
.festival-hero-content > p:last-child { max-width: 690px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 18px; }
.festival-body { position: relative; padding: clamp(90px,10vw,145px) 0; background: linear-gradient(135deg, var(--flour), #ead8b8); }
.festival-body::before { content: ''; position: absolute; inset: 0; opacity: .05; background-image: url('assets/images/mandioca-ilustracao.png'); background-repeat: no-repeat; background-position: right -200px bottom -120px; background-size: 800px; }
.festival-body .shell { position: relative; }
.festival-intro-grid { display: grid; grid-template-columns: 1.15fr .65fr; gap: clamp(45px,8vw,110px); align-items: start; }
.festival-story h3 { margin: 0 0 24px; max-width: 760px; font: 700 clamp(42px,5vw,70px)/1 var(--serif); letter-spacing: -.04em; }
.festival-story p:not(.eyebrow) { max-width: 760px; color: #43534a; font-size: 17px; }
.festival-next { padding: 34px; color: var(--white); background: var(--clay); box-shadow: var(--shadow); transform: rotate(1deg); }
.festival-next span { display: block; color: #ffd992; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.festival-next strong { display: block; margin-top: 9px; font: 700 38px/1 var(--serif); }
.festival-next p { color: rgba(255,255,255,.77); font-size: 14px; }
.festival-features { margin-top: 75px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(11,23,19,.2); border-bottom: 1px solid rgba(11,23,19,.2); }
.festival-features article { padding: 35px; border-right: 1px solid rgba(11,23,19,.18); }
.festival-features article:last-child { border-right: 0; }
.festival-features span { color: var(--clay); font: 700 43px var(--serif); }
.festival-features h4 { margin: 5px 0 9px; font: 700 22px var(--serif); }
.festival-features p { margin: 0; color: #58655e; font-size: 14px; }
.festival-gallery { margin-top: 70px; display: grid; grid-template-columns: .85fr .7fr 1.25fr; gap: 12px; }
.festival-gallery figure { margin: 0; position: relative; height: 430px; overflow: hidden; }
.festival-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.festival-gallery figure:hover img { transform: scale(1.04); }
.festival-gallery figcaption { position: absolute; left: 14px; bottom: 14px; padding: 9px 13px; color: var(--white); background: rgba(7,36,29,.86); font-size: 11px; font-weight: 800; }
.festival-source-note { margin-top: 25px; color: #718078; font-size: 11px; }

.trailer-section { min-height: 760px; position: relative; display: grid; place-items: center; overflow: hidden; color: var(--white); text-align: center; background: var(--river); }
.trailer-bg { position: absolute; inset: 0; background: url('assets/images/porto-geral.webp') center / cover no-repeat; filter: saturate(.85) contrast(1.05); transform: scale(1.05); }
.trailer-shade { position: absolute; inset: 0; background: radial-gradient(circle, rgba(7,36,29,.25), rgba(5,23,19,.92)); }
.trailer-content { position: relative; }
.trailer-content h2 { margin: 0; font: 700 clamp(54px,7.2vw,104px)/.9 var(--serif); letter-spacing: -.05em; }
.trailer-content > p:last-child { color: rgba(255,255,255,.7); }
.trailer-play { width: 92px; height: 92px; margin: 35px auto 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: var(--white); background: rgba(255,255,255,.08); font-size: 25px; cursor: pointer; transition: .25s; }
.trailer-play:hover { background: var(--fire); color: var(--ink); transform: scale(1.06); }

.gallery-section { background: #f8f0df; }
.gallery-header { display: flex; justify-content: space-between; align-items: end; gap: 55px; }
.gallery-lead { max-width: 420px; color: #5f6d65; }
.gallery-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 220px; gap: 10px; }
.gallery-item { position: relative; min-width: 0; overflow: hidden; border: 0; padding: 0; background: var(--river); cursor: zoom-in; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, filter .4s; }
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.08); }
.gallery-item span { position: absolute; left: 12px; bottom: 12px; padding: 8px 11px; color: var(--white); background: rgba(7,36,29,.84); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.downloads { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
.downloads a { color: var(--forest); text-decoration: none; font-size: 13px; font-weight: 900; border-bottom: 1px solid currentColor; }

.direction-section { background: var(--paper); }
.direction-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px,9vw,130px); align-items: center; }
.direction-photo { position: relative; }
.direction-photo img { width: 100%; min-height: 650px; object-fit: cover; box-shadow: var(--shadow); }
.direction-photo span { position: absolute; left: -22px; bottom: 36px; max-width: 310px; padding: 18px 22px; color: var(--white); background: var(--clay); font: italic 700 22px/1.25 var(--serif); transform: rotate(-2deg); }
.direction-copy > p:not(.eyebrow) { color: #46564e; }
.people-cards { margin-top: 34px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.people-cards div { padding: 20px; background: rgba(255,255,255,.43); border-left: 3px solid var(--fire); }
.people-cards small { display: block; color: #78847e; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.people-cards strong { display: block; margin-top: 6px; font: 700 22px var(--serif); }

.credits-section { color: var(--white); background: var(--river); }
.credits-section .section-heading { max-width: 850px; }
.facts { margin-top: 60px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 28px 23px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts span, .credit-card dt { display: block; color: var(--sun); font-size: 9px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.facts strong { display: block; margin-top: 8px; font: 700 20px var(--serif); }
.credits-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.credit-card { padding: 30px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.credit-card h3 { margin: 0 0 24px; color: var(--sand); font: 700 28px var(--serif); }
.credit-card dl { margin: 0; }
.credit-card dl div { padding: 15px 0; border-top: 1px solid var(--line); }
.credit-card dd { margin: 6px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }

.funding-section { padding: clamp(90px,10vw,145px) 0; color: var(--white); background: #161c19; }
.funding-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px,8vw,110px); align-items: center; }
.funding-copy p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.law-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.law-links a { color: var(--sun); text-decoration: none; font-size: 12px; font-weight: 800; border-bottom: 1px solid currentColor; }
.funding-brands { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center; padding: 23px; background: #241f20; border: 1px solid rgba(255,255,255,.12); }
.lpg-logo { width: 190px; background: #241f20; }
.institutional-strip { width: 100%; background: #241f20; }
.producers-row { margin-top: 55px; padding-top: 38px; display: flex; justify-content: center; align-items: center; gap: 70px; border-top: 1px solid rgba(255,255,255,.12); }
.producer { min-width: 230px; text-align: center; }
.producer span { display: block; margin-bottom: 14px; color: rgba(255,255,255,.45); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.producer img { max-width: 230px; max-height: 76px; margin: auto; object-fit: contain; }
.producer-cat img { max-width: 150px; max-height: 82px; }

.contact-section { min-height: 700px; position: relative; display: grid; place-items: center; overflow: hidden; color: var(--white); text-align: center; background: var(--river); }
.contact-bg { position: absolute; inset: 0; background: url('assets/images/por-do-sol.webp') center / cover no-repeat; filter: saturate(1.05); transform: scale(1.07); }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(rgba(5,28,21,.74), rgba(4,23,18,.94)), radial-gradient(circle, transparent, rgba(3,20,16,.8)); }
.contact-inner { position: relative; padding: 100px 0; }
.contact-inner h2 { max-width: 930px; margin-inline: auto; }
.contact-inner > p:not(.eyebrow) { max-width: 700px; margin: 25px auto 0; color: rgba(255,255,255,.72); }
.contact-actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-email { display: inline-block; margin-top: 28px; color: var(--sun); text-decoration: none; border-bottom: 1px solid currentColor; }

.site-footer { padding: 56px 0 22px; color: rgba(255,255,255,.7); background: #041610; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 19px; }
.footer-links a { text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: var(--sun); }
.footer-bottom { margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.38); font-size: 11px; }

.video-modal, .lightbox { width: min(1080px, calc(100vw - 28px)); max-width: none; padding: 0; border: 1px solid rgba(255,255,255,.18); color: var(--white); background: #030907; box-shadow: 0 35px 100px rgba(0,0,0,.75); }
.video-modal::backdrop, .lightbox::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(7px); }
.modal-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px 0 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.modal-close, .lightbox-close { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--white); background: rgba(255,255,255,.09); font-size: 28px; cursor: pointer; }
.video-frame { aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox { text-align: center; }
.lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #020605; }
.lightbox p { margin: 0; padding: 15px 20px; color: rgba(255,255,255,.72); }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal-delay-3 { transition-delay: .32s; }
.reveal-delay-4 { transition-delay: .42s; }
@keyframes slowZoom { to { transform: scale(1.09); } }

@media (max-width: 1100px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 12px; }
  .hero-grid { grid-template-columns: 1fr .45fr; gap: 45px; }
  .journey-grid { grid-template-columns: repeat(3,1fr); }
  .journey-card:nth-child(even) { transform: none; }
  .festival-features { grid-template-columns: 1fr; }
  .festival-features article { border-right: 0; border-bottom: 1px solid rgba(11,23,19,.18); }
  .festival-features article:last-child { border-bottom: 0; }
  .funding-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 86px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 28px 24px; background: rgba(5,27,21,.98); transform: translateX(100%); transition: transform .3s; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 17px 8px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 16px; }
  .nav-cta { margin-top: 18px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-aside { width: 100%; max-width: 620px; justify-self: start; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; }
  .hero-card { width: calc(100% + 20px); margin: 0 0 0 -20px; }
  .film-grid, .symbol-grid, .direction-grid, .festival-intro-grid { grid-template-columns: 1fr; }
  .film-mosaic { grid-template-columns: 1fr 1fr; }
  .film-mosaic figure { height: 310px; }
  .journey-grid { grid-template-columns: 1fr 1fr; }
  .symbol-image { max-width: 600px; }
  .festival-gallery { grid-template-columns: 1fr 1fr; }
  .festival-gallery figure:last-child { grid-column: 1 / -1; }
  .facts, .credits-grid { grid-template-columns: 1fr 1fr; }
  .credits-grid article:last-child { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-header { display: block; }
  .gallery-lead { margin-top: 22px; }
  .funding-brands { grid-template-columns: 150px 1fr; }
}
@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1240px); }
  .header-inner { width: calc(100vw - 24px); min-height: 76px; }
  .main-nav { top: 76px; }
  .brand strong { font-size: 11px; }
  .brand small { font-size: 7px; }
  .brand-mark { font-size: 23px; }
  .hero-grid { padding: 115px 0 80px; }
  .official-title { width: 100%; }
  .hero-aside { display: block; }
  .hero-photo { width: 82%; }
  .hero-card { width: 86%; margin: -30px 0 0 auto; }
  .hero-meta { gap: 17px; }
  .hero-meta span { min-width: calc(50% - 10px); }
  .section { padding: 85px 0; }
  .section-heading h2, .symbol-copy h2, .direction-copy h2, .funding-copy h2, .contact-inner h2 { font-size: 43px; }
  .film-mosaic { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .film-mosaic figure { height: 220px; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card img { height: 300px; }
  .symbol-image img { min-height: 470px; }
  .symbol-points { grid-template-columns: 1fr; }
  .festival-hero { min-height: 600px; }
  .festival-hero-content h2 { font-size: 50px; }
  .festival-features { margin-top: 50px; }
  .festival-gallery { grid-template-columns: 1fr; }
  .festival-gallery figure, .festival-gallery figure:last-child { grid-column: auto; height: 330px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gallery-item.wide { grid-column: auto; }
  .gallery-item.tall { grid-row: auto; }
  .facts, .credits-grid { grid-template-columns: 1fr; }
  .credits-grid article:last-child { grid-column: auto; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .funding-brands { grid-template-columns: 1fr; justify-items: center; }
  .institutional-strip { width: 100%; }
  .producers-row { flex-direction: column; gap: 38px; }
  .people-cards { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* V3 — identidade oficial, filme em primeiro plano e festival em página própria */
.brand-fish { width: 54px; height: 46px; flex: 0 0 auto; object-fit: contain; filter: sepia(.08) brightness(1.35) saturate(.85); }
.official-title { width: min(620px, 92%); max-height: 53vh; object-fit: contain; object-position: left center; filter: sepia(.08) brightness(1.45) saturate(.72) drop-shadow(0 14px 34px rgba(0,0,0,.28)); }
.film-page .hero-copy { min-width: 0; }
.film-page .hero-photo img { aspect-ratio: 4/3; object-position: center; }

.festival-promo { padding: clamp(90px,10vw,140px) 0; background: #e9dbc0; }
.festival-promo-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(330px,.9fr); align-items: center; gap: clamp(50px,8vw,110px); }
.festival-promo-image { margin: 0; position: relative; overflow: hidden; border: 1px solid rgba(11,23,19,.25); background: var(--river); }
.festival-promo-image::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.46); pointer-events: none; }
.festival-promo-image img { width: 100%; height: auto; aspect-ratio: 16/8; object-fit: cover; }
.festival-promo-copy h2 { margin: 0; max-width: 670px; font: 700 clamp(42px,5vw,69px)/.98 var(--serif); letter-spacing: -.045em; }
.festival-promo-copy p:not(.eyebrow) { max-width: 650px; margin: 24px 0 30px; color: #43534a; font-size: 17px; }

.funding-brands { display: block; padding: 18px; overflow: hidden; background: #f6f3ed; border: 1px solid rgba(255,255,255,.14); }
.funding-cartela { display: block; width: 100%; height: auto; object-fit: contain; background: #fff; }

/* Página editorial do festival */
.festival-page { background: #efe3ca; }
.festival-page .site-header.scrolled { background: rgba(7,31,24,.94); }
.festival-page-hero { min-height: 100svh; position: relative; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--river); isolation: isolate; }
.festival-page-hero-bg { position: absolute; inset: 0; z-index: -3; background: url('assets/images/festival-hero-colagem.jpg') center / cover no-repeat; transform: scale(1.01); }
.festival-page-hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,25,19,.92) 0%, rgba(4,31,23,.68) 49%, rgba(4,24,19,.18) 82%), linear-gradient(0deg, rgba(3,24,18,.94), transparent 58%); }
.festival-page-hero-content { padding: 150px 0 100px; }
.festival-page-hero-content h1 { max-width: 1040px; margin: 0; font: 700 clamp(58px,8.5vw,122px)/.84 var(--serif); letter-spacing: -.058em; }
.festival-page-hero-content > p:not(.eyebrow) { max-width: 710px; margin: 26px 0 0; color: rgba(255,255,255,.84); font: 400 clamp(19px,2vw,28px)/1.45 var(--serif); }
.festival-page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.festival-editorial { position: relative; overflow: hidden; background: #efe3ca; }
.festival-editorial::after { content: ''; position: absolute; right: -230px; bottom: -250px; width: 760px; height: 620px; opacity: .055; background: url('assets/images/mandioca-ilustracao.png') center / contain no-repeat; pointer-events: none; }
.festival-editorial-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px,8vw,120px); align-items: start; }
.festival-editorial-title h2, .flavours-copy h2, .festival-community-heading h2, .festival-iranduba-content h2, .festival-network-heading h2, .festival-film-copy h2 { margin: 0; font: 700 clamp(45px,5.6vw,78px)/.96 var(--serif); letter-spacing: -.048em; }
.festival-editorial-copy p:not(.lead) { color: #45554d; font-size: 17px; }
.festival-documentary-strip { width: min(1500px,100%); margin: 90px auto 0; padding: 0 10px; display: grid; grid-template-columns: .65fr 1.25fr .85fr; gap: 10px; }
.festival-documentary-strip figure { margin: 0; overflow: hidden; background: var(--river); }
.festival-documentary-strip img { width: 100%; height: 360px; object-fit: cover; }
.festival-documentary-strip figure:first-child img { object-position: center 38%; }

.festival-flavours { color: var(--white); background: #0b2d23; }
.flavours-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(55px,9vw,130px); align-items: center; }
.flavours-photo { position: relative; max-width: 520px; }
.flavours-photo::before { content: ''; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(239,182,83,.55); }
.flavours-photo img { position: relative; width: 100%; height: auto; max-height: 660px; object-fit: cover; box-shadow: var(--shadow); }
.flavours-photo span { position: absolute; left: -22px; bottom: 30px; max-width: 270px; padding: 14px 18px; color: var(--ink); background: var(--sun); font: italic 700 20px/1.25 var(--serif); }
.flavours-copy p { color: rgba(255,255,255,.7); }
.flavours-copy .eyebrow { color: var(--sun); }
.dish-list { margin: 34px 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.dish-list span { color: var(--sand); font: 700 19px var(--serif); }
.dish-list span::before { content: '•'; margin-right: 9px; color: var(--sun); }

.festival-community { background: #f6eddc; }
.festival-community-heading { max-width: 930px; }
.festival-community-layout { margin-top: 60px; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px,8vw,110px); align-items: start; }
.festival-community-text p:not(.lead) { color: #43534a; font-size: 17px; }
.festival-community-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.festival-community-images figure { margin: 0; overflow: hidden; background: var(--river); }
.festival-community-images .community-main { grid-column: 1 / -1; }
.festival-community-images img { width: 100%; height: 260px; object-fit: cover; }
.festival-community-images .community-main img { height: 390px; }

.festival-iranduba { min-height: 760px; position: relative; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--river); isolation: isolate; }
.festival-iranduba-bg { position: absolute; inset: 0; z-index: -3; background: url('assets/images/hero-rio.webp') center / cover no-repeat; filter: saturate(.78) contrast(.98); }
.festival-iranduba-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(4,28,21,.96), rgba(5,34,25,.68) 58%, rgba(4,24,19,.28)), linear-gradient(0deg, rgba(3,22,17,.78), rgba(3,22,17,.12)); }
.festival-iranduba-content { max-width: 850px; margin-left: 0; }
.festival-iranduba-content p:not(.eyebrow) { max-width: 760px; color: rgba(255,255,255,.75); font-size: 17px; }

.festival-network { position: relative; overflow: hidden; background: #e8d8b9; }
.festival-network-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px,8vw,120px); }
.festival-network-copy p:not(.lead) { color: #46564e; font-size: 17px; }
.network-words { width: min(1500px,100%); margin: 80px auto 0; padding: 30px 20px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; border-top: 1px solid rgba(11,23,19,.22); }
.network-words span { color: #7c5534; font: italic 700 clamp(22px,2.6vw,39px) var(--serif); }

.festival-gallery-page { background: #f7efdf; }
.festival-gallery-grid .gallery-item img { filter: saturate(.92) contrast(.98); }
.festival-gallery-grid .gallery-item:hover img { filter: saturate(1) contrast(1); }

.festival-film-link { padding: clamp(90px,10vw,145px) 0; color: var(--white); background: #102b22; }
.festival-film-link-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(55px,9vw,130px); align-items: center; }
.festival-film-poster { max-width: 470px; padding: 12px; border: 1px solid rgba(255,255,255,.24); }
.festival-film-poster img { width: 100%; height: auto; }
.festival-film-copy p:not(.eyebrow) { max-width: 720px; color: rgba(255,255,255,.72); font-size: 18px; }
.festival-film-copy .button { margin-top: 20px; }
.festival-contact .contact-bg { background-image: url('assets/images/porto-entardecer.webp'); }

@media (max-width: 1000px) {
  .festival-promo-grid, .festival-editorial-grid, .flavours-grid, .festival-community-layout, .festival-network-grid, .festival-film-link-grid { grid-template-columns: 1fr; }
  .festival-promo-image { max-width: 820px; }
  .flavours-photo, .festival-film-poster { max-width: 560px; }
  .festival-documentary-strip { grid-template-columns: 1fr 1fr; }
  .festival-documentary-strip figure:last-child { grid-column: 1 / -1; }
  .festival-documentary-strip img { height: 320px; }
}

@media (max-width: 620px) {
  .brand-fish { width: 42px; height: 38px; }
  .official-title { width: min(100%, 500px); max-height: 42vh; }
  .festival-promo-image img { aspect-ratio: 16/10; }
  .festival-page-hero-content { padding: 125px 0 90px; }
  .festival-page-hero-content h1 { font-size: 56px; }
  .festival-documentary-strip { grid-template-columns: 1fr; margin-top: 55px; }
  .festival-documentary-strip figure:last-child { grid-column: auto; }
  .festival-documentary-strip img { height: 290px; }
  .festival-community-images { grid-template-columns: 1fr; }
  .festival-community-images .community-main { grid-column: auto; }
  .festival-community-images img, .festival-community-images .community-main img { height: 300px; }
  .festival-iranduba { min-height: 680px; }
  .dish-list { gap: 8px 14px; }
  .dish-list span { font-size: 17px; }
}

/* V4 — navegação e conteúdo editorial do Festival */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown-trigger > span { color: var(--sun); font-size: 14px; transform: translateY(-1px); transition: transform .2s ease; }
.nav-submenu { position: absolute; top: calc(100% + 22px); left: 50%; width: 230px; padding: 10px; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); background: rgba(5,27,21,.98); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 22px 55px rgba(0,0,0,.35); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.nav-submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav-submenu a { display: block; padding: 11px 12px; color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; line-height: 1.25; }
.nav-submenu a:last-child { border-bottom: 0; }
.nav-submenu a::after { display: none !important; }
.nav-submenu a:hover, .nav-submenu a:focus-visible { color: var(--sun); background: rgba(255,255,255,.055); }
.nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown:hover .nav-dropdown-trigger > span, .nav-dropdown:focus-within .nav-dropdown-trigger > span { transform: rotate(180deg); }

.festival-who { position: relative; overflow: hidden; background: #f7efdf; }
.festival-who::before { content: ''; position: absolute; inset: 0; opacity: .06; background: linear-gradient(135deg, transparent 0 54%, var(--clay) 54.2% 54.35%, transparent 54.5%); pointer-events: none; }
.festival-who-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px,8vw,120px); }
.festival-who-heading h2, .festival-editions-heading h2, .partner-heading h2, .media-heading h2 { margin: 0; font: 700 clamp(45px,5.6vw,78px)/.96 var(--serif); letter-spacing: -.048em; }
.festival-who-copy p:not(.lead) { color: #45554d; font-size: 17px; }
.who-facts { margin-top: 38px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(11,23,19,.2); border-bottom: 1px solid rgba(11,23,19,.2); }
.who-facts div { padding: 22px 18px; border-right: 1px solid rgba(11,23,19,.16); }
.who-facts div:last-child { border-right: 0; }
.who-facts span { display: block; color: var(--clay); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.who-facts strong { display: block; margin-top: 7px; font: 700 21px/1.15 var(--serif); }

.festival-editions { color: var(--white); background: #0a2a21; }
.festival-editions-heading { max-width: 900px; }
.festival-editions-heading > p:last-child { max-width: 720px; color: rgba(255,255,255,.67); font-size: 16px; }
.editions-timeline { margin-top: 65px; border-top: 1px solid rgba(255,255,255,.18); }
.edition-card { display: grid; grid-template-columns: 170px 1fr; gap: 38px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.edition-year { color: var(--sun); font: 700 clamp(31px,4vw,54px)/1 var(--serif); }
.edition-card h3 { margin: 0 0 8px; color: var(--sand); font: 700 26px/1.15 var(--serif); }
.edition-card p { max-width: 800px; margin: 0; color: rgba(255,255,255,.64); font-size: 15px; }
.edition-next { margin-top: 20px; padding-inline: 24px; border: 1px solid rgba(239,182,83,.36); background: rgba(239,182,83,.06); }

.festival-partner { position: relative; overflow: hidden; color: var(--white); background: #783f2b; }
.festival-partner::after { content: ''; position: absolute; right: -250px; bottom: -310px; width: 800px; height: 700px; opacity: .09; background: url('assets/images/mandioca-ilustracao.png') center / contain no-repeat; pointer-events: none; }
.partner-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(55px,8vw,120px); align-items: start; }
.partner-heading > p:not(.eyebrow) { color: rgba(255,255,255,.73); font-size: 17px; }
.partner-heading .button { margin-top: 24px; }
.partner-options { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.partner-options article { min-height: 220px; padding: 28px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.partner-options span { color: var(--sun); font: 700 34px var(--serif); }
.partner-options h3 { margin: 8px 0; color: var(--white); font: 700 23px/1.15 var(--serif); }
.partner-options p { margin: 0; color: rgba(255,255,255,.66); font-size: 14px; }

.festival-media { background: #efe3ca; }
.media-heading { max-width: 900px; }
.media-heading > p:last-child { max-width: 730px; color: #56655d; }
.media-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.media-card { min-height: 285px; display: flex; flex-direction: column; padding: 28px; color: var(--ink); text-decoration: none; background: rgba(255,255,255,.38); border: 1px solid rgba(11,23,19,.18); transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.media-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.72); border-color: rgba(154,77,47,.5); }
.media-card span { color: var(--clay); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.media-card h3 { margin: 18px 0; font: 700 25px/1.18 var(--serif); }
.media-card b { margin-top: auto; color: var(--forest); font-size: 12px; }

@media (max-width: 1000px) {
  .festival-who-grid, .partner-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-dropdown { display: block; }
  .nav-dropdown-trigger { width: 100%; }
  .nav-submenu { position: static; width: 100%; padding: 0 0 8px 18px; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; }
  .nav-submenu::before { display: none; }
  .nav-submenu a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.68); font-size: 14px; }
  .main-nav > .nav-dropdown { border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav > .nav-dropdown > a { border-bottom: 1px solid rgba(255,255,255,.08); }
  .who-facts { grid-template-columns: 1fr; }
  .who-facts div { border-right: 0; border-bottom: 1px solid rgba(11,23,19,.14); }
  .who-facts div:last-child { border-bottom: 0; }
  .partner-options { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .edition-card { grid-template-columns: 1fr; gap: 12px; }
  .edition-next { padding-inline: 18px; }
  .partner-options article { min-height: 0; }
}


/* V5 — filme em primeiro plano, Festival em página própria e fotografia em escala real */
.film-page .main-nav .festival-link { color: var(--sun); }
.film-mosaic-v5 { width: min(1120px, calc(100% - 36px)); grid-template-columns: 1.35fr 1fr .78fr; gap: 12px; }
.film-mosaic-v5 figure { height: 300px; }
.film-mosaic-v5 img { image-rendering: auto; }
.symbol-image { max-width: 470px; justify-self: center; padding: 12px; transform: none; }
.symbol-image::after { inset: 20px -13px -13px 20px; }
.symbol-image img { width: 100%; height: auto; min-height: 0; max-height: 620px; object-fit: contain; }
.hero-photo img { filter: saturate(.86) contrast(1.02); }
.journey-card img, .gallery-item img, .direction-photo img { filter: saturate(.88) contrast(.98); }
.gallery-item:hover img { filter: saturate(.96) contrast(1); transform: scale(1.02); }
.funding-grid { grid-template-columns: .9fr 1.1fr; }
.funding-legal-panel { padding: clamp(28px,4vw,46px); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.045); }
.funding-legal-panel .funding-label { margin: 0 0 17px; color: var(--sun); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.funding-legal-panel p { margin: 0; color: rgba(255,255,255,.78); font: 400 20px/1.5 var(--serif); }
.funding-legal-panel ul { margin: 25px 0 0; padding: 21px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.funding-legal-panel li { padding: 5px 0; color: rgba(255,255,255,.6); font-size: 13px; }
.producer img { max-width: 185px; max-height: 58px; }
.producer-cat img { max-width: 112px; max-height: 62px; }

/* Menu próprio da página do Festival */
.festival-site-header .header-inner { width: min(1540px, calc(100vw - 32px)); }
.festival-brand strong { font-size: 13px; }
.festival-page-menu { gap: 18px; }
.festival-page-menu a { font-size: 12px; white-space: nowrap; }
.festival-page-menu .festival-menu-link.active { color: var(--sun); }
.festival-page-menu .festival-menu-link.active::after { right: 0; }

/* Festival: direção editorial, sem adereços artificiais */
.festival-v5 { background: #f0e6d2; }
.festival-hero-v5 { min-height: min(880px, 92svh); }
.festival-hero-v5 .festival-page-hero-bg { background-position: center 42%; filter: saturate(.82) contrast(.95) brightness(.82); }
.festival-hero-v5 .festival-page-hero-shade { background: linear-gradient(90deg, rgba(3,24,19,.93) 0%, rgba(5,31,24,.72) 48%, rgba(4,24,19,.20) 83%), linear-gradient(0deg, rgba(3,24,18,.9), transparent 62%); }
.festival-hero-v5 .festival-page-hero-content { padding-bottom: 95px; }
.festival-hero-v5 .festival-page-hero-content h1 { max-width: 940px; font-size: clamp(54px,7.2vw,106px); line-height: .91; letter-spacing: -.045em; }
.festival-hero-v5 .festival-page-hero-content > p:not(.eyebrow) { max-width: 650px; font-size: clamp(19px,1.7vw,25px); }

.festival-story { background: #f1e7d4; }
.festival-story-layout { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(60px,9vw,135px); align-items: start; }
.festival-story-heading { position: sticky; top: 125px; }
.festival-story-heading h2 { margin: 0; font: 700 clamp(42px,5vw,72px)/.98 var(--serif); letter-spacing: -.04em; }
.festival-pullquote { margin: 35px 0 0; padding-top: 24px; border-top: 1px solid rgba(11,23,19,.2); color: var(--clay); font: italic 700 23px/1.4 var(--serif); }
.festival-story-copy { max-width: 760px; }
.festival-story-copy p { margin: 0 0 23px; color: #3e5047; font-size: 17px; }
.festival-story-copy .lead { color: var(--ink); font-size: clamp(24px,2.2vw,31px); }
.festival-photo-row { margin-top: 85px; display: grid; grid-template-columns: 1.25fr .72fr .9fr; gap: 14px; align-items: start; }
.festival-photo-row figure { margin: 0; overflow: hidden; background: #d8c9af; }
.festival-photo-row img { width: 100%; height: auto; max-height: 390px; object-fit: cover; filter: saturate(.9) contrast(.98); }
.festival-photo-row figure:first-child img { aspect-ratio: 16/8; }
.festival-photo-row figure:nth-child(2) img { aspect-ratio: 2/3; max-height: 420px; }
.festival-photo-row figure:nth-child(3) img { aspect-ratio: 4/3; }
.festival-photo-row figcaption { padding: 12px 3px 0; color: #68746d; font-size: 11px; }

.festival-who-v5 { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px,8vw,120px); }
.flavours-v5 .flavours-photo { max-width: 420px; justify-self: center; }
.flavours-v5 .flavours-photo img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.flavours-v5 .flavours-photo figcaption { display: block; padding-top: 12px; color: rgba(255,255,255,.52); font-size: 11px; }

.media-heading-v5 { max-width: none; display: flex; justify-content: space-between; gap: 48px; align-items: end; }
.media-heading-v5 > div { max-width: 850px; }
.clipping-download { flex: 0 0 auto; padding-bottom: 8px; color: var(--forest); text-decoration: none; font-size: 12px; font-weight: 900; border-bottom: 1px solid currentColor; }
.media-year-group { display: grid; grid-template-columns: 140px 1fr; gap: 35px; margin-top: 62px; padding-top: 30px; border-top: 1px solid rgba(11,23,19,.18); }
.media-year-group > h3 { margin: 0; color: var(--clay); font: 700 42px/1 var(--serif); }
.media-list { display: grid; }
.media-list a { display: grid; grid-template-columns: 210px minmax(250px,.95fr) minmax(280px,1.05fr); gap: 24px; align-items: start; padding: 24px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(11,23,19,.14); }
.media-list a:first-child { padding-top: 0; }
.media-list a:hover strong { color: var(--clay); }
.media-list span { color: var(--clay); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.media-list strong { font: 700 21px/1.25 var(--serif); transition: color .2s; }
.media-list em { color: #58665f; font-size: 14px; font-style: normal; }

@media (max-width: 1180px) {
  .festival-page-menu { gap: 12px; }
  .festival-page-menu a { font-size: 11px; }
  .festival-brand strong { font-size: 11px; }
  .festival-brand small { letter-spacing: .18em; }
}
@media (max-width: 1000px) {
  .funding-grid, .festival-story-layout, .festival-who-v5 { grid-template-columns: 1fr; }
  .festival-story-heading { position: static; }
  .festival-photo-row { grid-template-columns: 1fr 1fr; }
  .festival-photo-row figure:first-child { grid-column: 1 / -1; }
  .media-heading-v5 { align-items: start; flex-direction: column; }
  .media-year-group { grid-template-columns: 100px 1fr; }
  .media-list a { grid-template-columns: 170px 1fr; }
  .media-list em { grid-column: 2; }
}
@media (max-width: 900px) {
  .festival-page-menu a { white-space: normal; }
  .festival-page-menu .nav-cta { margin-top: 12px; text-align: center; }
}
@media (max-width: 700px) {
  .film-mosaic-v5 { grid-template-columns: 1fr; width: min(100% - 28px, 560px); }
  .film-mosaic-v5 figure { height: auto; }
  .film-mosaic-v5 img { height: auto; max-height: 420px; object-fit: cover; }
  .festival-photo-row { grid-template-columns: 1fr; }
  .festival-photo-row figure:first-child { grid-column: auto; }
  .festival-photo-row img, .festival-photo-row figure:first-child img, .festival-photo-row figure:nth-child(2) img, .festival-photo-row figure:nth-child(3) img { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
  .media-year-group { grid-template-columns: 1fr; gap: 20px; }
  .media-list a { grid-template-columns: 1fr; gap: 8px; }
  .media-list em { grid-column: auto; }
  .festival-hero-v5 .festival-page-hero-content h1 { font-size: 52px; }
}


/* V6 — 21ª edição do Festival, cartaz integral e sem recorte */
.festival-next-chip { width: fit-content; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 14px; color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.28); background: rgba(4,26,20,.36); backdrop-filter: blur(8px); }
.festival-next-chip span { color: var(--sun); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.festival-next-chip strong { font-size: 13px; font-weight: 700; }
.festival-current-edition { padding: clamp(74px,9vw,132px) 0; color: var(--ink); background: #e8dcc5; border-bottom: 1px solid rgba(11,23,19,.12); }
.current-edition-grid { display: grid; grid-template-columns: minmax(320px,.82fr) minmax(420px,1.18fr); gap: clamp(50px,8vw,120px); align-items: center; }
.current-edition-poster { margin: 0; padding: 14px; background: rgba(255,255,255,.34); border: 1px solid rgba(11,23,19,.17); box-shadow: 0 24px 70px rgba(44,31,17,.14); }
.current-edition-poster img { width: 100%; height: auto; display: block; object-fit: contain; }
.current-edition-copy h2 { max-width: 780px; margin: 0; font: 700 clamp(44px,5.4vw,76px)/.95 var(--serif); letter-spacing: -.045em; }
.current-edition-lead { max-width: 730px; margin: 25px 0 0; color: #42534a; font: 400 clamp(20px,2vw,27px)/1.48 var(--serif); }
.current-edition-facts { margin: 38px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(11,23,19,.18); }
.current-edition-facts div { padding: 20px 20px 20px 0; border-bottom: 1px solid rgba(11,23,19,.16); }
.current-edition-facts div:nth-child(odd) { border-right: 1px solid rgba(11,23,19,.16); }
.current-edition-facts div:nth-child(even) { padding-left: 20px; }
.current-edition-facts dt { color: var(--clay); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.current-edition-facts dd { margin: 8px 0 0; color: var(--ink); font: 700 18px/1.35 var(--serif); }
.current-edition-note { max-width: 660px; margin: 24px 0 28px; color: #607068; font-size: 13px; }
.edition-card-current { border-color: rgba(236,177,67,.65); background: rgba(236,177,67,.08); }
.edition-card-current .edition-year { color: var(--sun); }
.edition-card-current .edition-status { margin: 0 0 7px; color: var(--sun); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.edition-card-current a { display: inline-block; margin-top: 12px; color: var(--sun); font-size: 12px; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 900px) {
  .current-edition-grid { grid-template-columns: 1fr; }
  .current-edition-poster { width: min(100%,620px); justify-self: center; }
}
@media (max-width: 620px) {
  .festival-next-chip { align-items: flex-start; flex-direction: column; }
  .current-edition-facts { grid-template-columns: 1fr; }
  .current-edition-facts div, .current-edition-facts div:nth-child(even) { padding: 17px 0; border-right: 0; }
  .current-edition-copy h2 { font-size: 43px; }
}
