:root {
    --f-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --brand: #80c43c;
    --brand-deep: #619941;
    --charcoal: #231f20;
    --paper: #ffffff;
    --paper-2: #f4f7f1;
    --ink: #231f20;
    --card: #ffffff;
    --line: rgba(35, 31, 32, .14);
    --accent: var(--brand);
    --accent-d: var(--brand-deep);
    --sun: var(--brand-deep);
    --a1: rgba(128, 196, 60, .16);
    --a2: rgba(97, 153, 65, .12);
    --muted: #60655b;
    --err: #b3261e;
    --onacc: #231f20;
    --shadow: 0 24px 72px rgba(35, 31, 32, .11);
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --brand: #80c43c;
    --brand-deep: #619941;
    --charcoal: #231f20;
    --paper: #151914;
    --paper-2: #1d241b;
    --ink: #f2f4ed;
    --card: #20271e;
    --line: rgba(242, 244, 237, .13);
    --accent: var(--brand);
    --accent-d: var(--brand-deep);
    --sun: var(--brand);
    --a1: rgba(128, 196, 60, .16);
    --a2: rgba(97, 153, 65, .10);
    --muted: #b5beb0;
    --err: #ff9a8b;
    --onacc: #231f20;
    --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

:root[data-theme="light"] {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.62 var(--f-body);
    transition: background .35s ease, color .35s ease;
}

::selection {
    background: var(--sun);
    color: #16251d;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.in {
    width: min(calc(100% - 72px), 1500px);
    max-width: none;
    margin-inline: auto;
}

.wrap {
    width: min(calc(100% - 72px), 1060px);
    max-width: 1060px;
    margin-inline: auto;
}

body::before {
    position: fixed;
    inset: -20%;
    z-index: 0;
    content: "";
    pointer-events: none;
    background: radial-gradient(40% 35% at 20% 25%, var(--a1), transparent 70%), radial-gradient(35% 30% at 80% 70%, var(--a2), transparent 70%);
    animation: au 24s ease-in-out infinite alternate;
}

@keyframes au {
    to {
        transform: translate(6%, -4%) scale(1.15);
    }
}

#bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

nav,
header,
main,
section,
footer,
.mq {
    position: relative;
    z-index: 1;
}


/* Navegação: compacta, fixa e com realce animado do percurso. */

.top {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background .3s ease, box-shadow .3s ease;
}

.top.scrolled {
    box-shadow: 0 12px 36px rgba(0, 0, 0, .09);
}

.top .in {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex: 0 0 auto;
    margin-right: auto;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: block;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.brand:hover .brand-mark {
    transform: rotate(-7deg) scale(1.06);
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font: 800 1.22rem/1 var(--f-head);
    letter-spacing: .075em;
}

.brand-copy small {
    margin-top: .28rem;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(.8rem, 2vw, 1.8rem);
}

.top a.lk {
    position: relative;
    padding: .45rem 0;
    color: var(--muted);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
    transition: color .22s ease;
}

.top a.lk::after {
    position: absolute;
    right: 0;
    bottom: .13rem;
    left: 0;
    height: 2px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.top a.lk:hover,
.top a.lk[aria-current="location"] {
    color: var(--ink);
}

.top a.lk:hover::after,
.top a.lk[aria-current="location"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.ic {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: .4rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s, color .2s, transform .2s, background .2s;
}

.ic:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .62rem 1.1rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: var(--onacc) !important;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .22s, box-shadow .22s, background .22s;
}

.cta::after {
    content: "↗";
    font-size: 1rem;
    transition: transform .22s;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 26%, transparent);
    background: var(--accent-d);
}

.cta:hover::after {
    transform: translate(2px, -2px);
}

.menu-toggle {
    display: none;
}

#reading-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 50;
    width: 100%;
    height: 3px;
    background: var(--sun);
    transform: scaleX(var(--read-progress, 0));
    transform-origin: left center;
}


/* Hero editorial amplo, com globo digital transparente e pontos de ligação luminosos. */

.hero {
    min-height: min(780px, calc(100svh - 82px));
    display: grid;
    align-items: center;
    padding: clamp(3.25rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 7.5rem);
}

.hero .in {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1.2rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.45;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 27px;
    height: 1px;
    background: var(--sun);
    content: "";
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 1.35rem;
    font: 800 clamp(3rem, 6.2vw, 6.1rem)/.99 var(--f-head);
    letter-spacing: -.055em;
    text-wrap: balance;
}

.hero .lema {
    max-width: 58ch;
    margin: 0 0 1.8rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.5vw, 1.26rem);
    line-height: 1.62;
}

.btns {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 54px;
    padding: .82rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: transform .22s, box-shadow .22s, border-color .22s, background .22s;
}

.btn:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
}

.btn.p {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--onacc);
}

.btn.p::after {
    content: "↗";
    transition: transform .2s;
}

.btn.p:hover {
    background: var(--accent-d);
}

.btn.p:hover::after {
    transform: translate(2px, -2px);
}

.cd {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .7rem;
    margin-top: 2.25rem;
}

.cd div {
    min-width: 77px;
    padding: .65rem .8rem .55rem;
    border-left: 1px solid var(--line);
    text-align: center;
}

.cd div:first-child {
    border-left: 0;
}

.cd b {
    display: block;
    color: var(--ink);
    font: 800 1.85rem/.95 var(--f-head);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
}

.cd span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.cdl {
    align-self: center;
    width: 100%;
    margin: .15rem 0 0;
    color: var(--muted);
    font-size: .82rem;
}

.hero-visual {
    position: relative;
    min-height: 510px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: visible;
    isolation: isolate;
}

.globe-stage {
    position: relative;
    display: block;
    flex: 0 1 auto;
    width: 100%;
    max-width: 620px;
}

.hero-globe {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    overflow: visible;
}

.globe-sphere {
    fill: url(#globe-fill);
    stroke: color-mix(in srgb, var(--accent) 58%, transparent);
    stroke-width: 1.2;
}

.globe-sheen {
    fill: url(#globe-sheen);
}

.globe-grid {
    fill: none;
    stroke: var(--accent);
    stroke-width: .8;
    opacity: .18;
}

.globe-orbit {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.4;
    stroke-opacity: .48;
}

.orbit-back {
    stroke-opacity: .22;
    stroke-dasharray: 2 8;
}

.orbit-rotating {
    stroke-opacity: .33;
    stroke-dasharray: 110 14 20 14;
    transform-box: view-box;
    transform-origin: 310px 270px;
    animation: globeSpin 42s linear infinite;
}

.orbit-glow {
    fill: none;
    stroke: var(--accent);
    stroke-width: 10;
    stroke-opacity: .12;
    filter: url(#globe-glow);
}

.globe-float {
    transform-box: fill-box;
    transform-origin: center;
    animation: globeFloat 8s ease-in-out infinite;
}

.globe-node {
    --delay: 0s;
}

.globe-halo {
    fill: url(#globe-halo);
    opacity: .65;
    filter: url(#globe-glow);
    transform-box: fill-box;
    transform-origin: center;
    animation: beaconPulse 2.7s ease-in-out infinite;
    animation-delay: var(--delay);
}

.globe-core {
    fill: #edfff7;
    stroke: var(--accent);
    stroke-width: 2;
    filter: url(#globe-glow);
}

.globe-location-point {
    cursor: pointer;
    outline: none;
}

.globe-focus {
    fill: none;
    stroke: var(--sun);
    stroke-width: 2;
    opacity: 0;
}

.globe-hit {
    fill: transparent;
    stroke: transparent;
    pointer-events: all;
}

.globe-location-point:focus-visible .globe-focus {
    opacity: 1;
}

.globe-location-point:focus-visible .globe-core {
    stroke: var(--sun);
    stroke-width: 3;
}

.globe-caption {
    position: absolute;
    left: 2%;
    right: auto;
    bottom: .8rem;
    z-index: 2;
    width: min(300px, 48%);
    text-align: left;
}

.globe-location-card {
    display: grid;
    gap: .34rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 94%, transparent);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.globe-location-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.globe-location-card:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 4px;
}

.globe-location-kicker {
    color: var(--accent);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.globe-location-card strong {
    color: var(--ink);
    font: 700 1rem/1.2 var(--f-head);
}

.globe-location-meta {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
}

.globe-location-action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .1rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
}

.globe-location-action span {
    transition: transform .2s ease;
}

.globe-location-card:hover .globe-location-action span {
    transform: translate(2px, -2px);
}

@keyframes globeFloat {
    50% {
        transform: translateY(-9px);
    }
}

@keyframes globeSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes beaconPulse {
    0%,
    100% {
        opacity: .36;
        transform: scale(.72);
    }
    50% {
        opacity: .95;
        transform: scale(1.26);
    }
}


/* Friso móvel de temas. */

.mq {
    overflow: hidden;
    padding: 1rem 0;
    border-block: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper-2) 63%, transparent);
}

.mq>div {
    display: flex;
    width: max-content;
    gap: 2.25rem;
    animation: marquee 38s linear infinite;
    color: var(--muted);
    font: 700 clamp(1.15rem, 2.2vw, 1.75rem)/1.2 var(--f-head);
    white-space: nowrap;
}

.mq span::after {
    margin-left: 2.25rem;
    color: var(--sun);
    content: "✦";
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

section.sec,
main.sec {
    padding: clamp(4.5rem, 8vw, 8rem) 0;
}

#conferencia.sec {
    padding-bottom: clamp(4rem, 6vw, 6rem);
}

.t {
    margin: 0 0 1rem;
    font: 800 clamp(2.1rem, 4vw, 3.8rem)/1.03 var(--f-head);
    letter-spacing: -.045em;
    text-wrap: balance;
}

.lead {
    max-width: 68ch;
    margin: 0 0 2.5rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    line-height: 1.68;
}

.cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6.5rem);
    align-items: center;
}

.conference-copy {
    max-width: 680px;
}

.conference-copy .t {
    max-width: 13ch;
}

.conference-copy .lead {
    margin-bottom: 1.7rem;
}

.section-kicker {
    display: block;
    margin-bottom: .8rem;
    color: var(--accent);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.story-visual {
    position: relative;
    min-height: 420px;
    margin: 0;
}

.story-visual img {
    width: 100%;
    height: 420px;
    border-radius: 16px 140px 16px 16px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.story-visual figcaption {
    position: absolute;
    right: .7rem;
    bottom: .55rem;
    color: #fff;
    font-size: .68rem;
    text-shadow: 0 1px 4px #000;
}

.story-visual figcaption a {
    color: inherit;
}

.story-label {
    position: absolute;
    right: -16px;
    bottom: 28px;
    max-width: 245px;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
    font: 700 1rem/1.3 var(--f-head);
}

.story-label span {
    display: block;
    margin-bottom: .35rem;
    color: var(--accent);
    font-size: .67rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

#temas {
    padding-top: 1.5rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.2rem;
}

.section-head .t {
    max-width: 15ch;
    margin-bottom: 0;
}

.section-head .lead {
    max-width: 42ch;
    margin: 0;
    font-size: 1rem;
}

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

.card {
    position: relative;
    min-height: 195px;
    padding: clamp(1.25rem, 2.4vw, 2rem);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .018);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), border-color .28s, box-shadow .28s, background .28s;
}

.card:hover {
    z-index: 2;
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    box-shadow: var(--shadow);
}

.card::after {
    position: absolute;
    right: -28px;
    bottom: -40px;
    width: 130px;
    height: 130px;
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 50%;
    content: "";
    transition: transform .35s, background .35s;
}

.card:hover::after {
    transform: scale(1.18);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.card i {
    display: block;
    margin: 0 0 1rem;
    color: var(--accent);
    font: 700 .82rem/1 var(--f-head);
    font-style: normal;
    letter-spacing: .14em;
}

.card h3 {
    position: relative;
    z-index: 1;
    max-width: 18ch;
    margin: 0 0 .45rem;
    font: 700 clamp(1.15rem, 1.7vw, 1.4rem)/1.18 var(--f-head);
    letter-spacing: -.025em;
}

.card p {
    position: relative;
    z-index: 1;
    max-width: 44ch;
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
}

.topic-card {
    min-height: 0;
    padding: 0;
}

.topic-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: var(--paper-2);
}

.topic-photo::after {
    position: absolute;
    inset: 52% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .64));
    content: "";
}

.topic-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .8, .2, 1);
}

.topic-card:hover .topic-photo img {
    transform: scale(1.045);
}

.topic-credit {
    position: absolute;
    z-index: 1;
    right: .75rem;
    bottom: .6rem;
    color: #fff;
    font-size: .68rem;
    line-height: 1.3;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.topic-credit:hover {
    text-decoration: underline;
}

.topic-body {
    position: relative;
    z-index: 1;
    padding: clamp(1.25rem, 2.4vw, 2rem);
}

.topic-body i {
    margin-bottom: .8rem;
}

#participar .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#participar .card {
    min-height: 190px;
}

#participar .card h3 {
    padding-left: 2.8rem;
}

#participar .card h3::before {
    position: absolute;
    top: .06rem;
    left: 0;
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 13%, var(--paper));
    color: var(--accent);
    content: "↗";
    font: 700 .92rem/1 var(--f-body);
}


/* Pacotes comerciais e formulário. */

#comercial {
    background: var(--paper-2);
}

.pk {
    padding: clamp(1.5rem, 3vw, 2.7rem);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.pk h3.t {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.pk>p {
    max-width: 50ch;
    margin: 0 0 1rem;
    color: var(--muted);
}

.tier {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.tier b {
    font: 700 1.08rem var(--f-head);
}

.tier span {
    color: var(--accent);
    font: 800 1.2rem var(--f-head);
    white-space: nowrap;
}

.pk .btn {
    margin-top: 1.3rem;
}

main.sec .wrap {
    max-width: 1060px;
}

main.sec .t {
    max-width: 19ch;
}

main.sec .lead {
    max-width: 64ch;
}

.panel {
    padding: clamp(1.15rem, 3vw, 2.4rem);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
}

[hidden] {
    display: none !important;
}

.steps {
    display: flex;
    gap: .7rem;
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
}

.steps li {
    flex: 1;
    padding: .65rem 0 0;
    border-top: 3px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
}

.steps li.on,
.steps li.done {
    border-color: var(--accent);
}

.steps li.on {
    color: var(--ink);
}

fieldset[data-step="1"],
fieldset[data-branch] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
}

fieldset[data-step="1"]>h2,
fieldset[data-step="1"]>.hint,
fieldset[data-branch]>h2,
fieldset[data-branch]>.hint,
fieldset[data-branch]>.opt,
fieldset[data-branch] .field:has(textarea),
fieldset[data-branch] .field:has(.opts) {
    grid-column: 1 / -1;
}

h2 {
    font: 700 1.45rem/1.2 var(--f-head);
    letter-spacing: -.025em;
}

.hint,
.note {
    color: var(--muted);
    font-size: .93rem;
}

.field {
    margin: 0 0 1.15rem;
}

label,
.lbl {
    display: block;
    margin: 0 0 .35rem;
    font-weight: 600;
}

.req::after {
    color: var(--err);
    content: " *";
}

input[type=text],
input[type=email],
input[type=tel],
input[type=number],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: .66rem .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.opt:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--sun) 78%, transparent);
    outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
    border-color: var(--err);
}

.opts {
    display: grid;
    gap: .55rem;
}

.opts.two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.opt {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0;
    padding: .75rem .85rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    cursor: pointer;
    font-weight: 400;
    transition: border-color .2s, background .2s, transform .2s;
}

.opt:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.opt:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--card));
}

.opt input {
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
    margin: .28rem 0 0;
    accent-color: var(--accent);
}

.opt b {
    display: block;
    font-weight: 700;
}

.opt .price {
    margin-left: auto;
    padding-left: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.opt .sub {
    display: block;
    color: var(--muted);
    font-size: .88rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

button {
    padding: .78rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .2s, background .2s, border-color .2s;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.next,
.send {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--onacc);
}

.next:hover,
.send:hover {
    border-color: var(--accent-d);
    background: var(--accent-d);
}

.back {
    background: transparent;
    color: var(--ink);
}

button[disabled] {
    opacity: .58;
    cursor: wait;
}

.err-box {
    margin: 1rem 0 0;
    color: var(--err);
    font-weight: 700;
}

.done-card {
    text-align: left;
}

.done-card pre {
    max-height: 18rem;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-size: .82rem;
}


/* Entradas de conteúdo, com fallback visível e preferência de movimento respeitada. */

.rv {
    opacity: 1;
    transform: none;
}

.js .rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .72s ease, transform .72s cubic-bezier(.2, .7, .2, 1);
}

.js .rv.in {
    opacity: 1;
    transform: none;
}

.js .grid .rv:nth-child(3n + 2) {
    transition-delay: .08s;
}

.js .grid .rv:nth-child(3n) {
    transition-delay: .15s;
}


/* Rodapé institucional, com caminhos úteis e crédito das imagens. */

footer {
    --footer-text: var(--ink);
    --footer-muted: var(--muted);
    --footer-faint: color-mix(in srgb, var(--muted) 78%, transparent);
    --footer-border: var(--line);
    padding: clamp(3rem, 6vw, 5rem) 0 1.35rem;
    border-top: 1px solid var(--footer-border);
    background: var(--paper-2);
    color: var(--footer-text);
}

:root[data-theme="dark"] footer {
    --footer-text: #f7f9f4;
    --footer-muted: rgba(247, 249, 244, .72);
    --footer-faint: rgba(247, 249, 244, .55);
    --footer-border: rgba(255, 255, 255, .16);
    background: #10130f;
}

footer .in {
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--footer-text);
    text-decoration: none;
}

.footer-brand img {
    width: 46px;
    height: 46px;
}

.footer-brand strong {
    font: 800 1.25rem var(--f-head);
    letter-spacing: .08em;
}

.footer-intro {
    max-width: 42ch;
    margin: 1rem 0 1.2rem;
    color: var(--footer-muted);
    font-size: .95rem;
}

.footer-title {
    margin: .1rem 0 1rem;
    color: var(--footer-text);
    font: 700 .86rem var(--f-head);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.footer-nav {
    display: grid;
    gap: .55rem;
}

.footer-nav a,
footer .credit a {
    width: fit-content;
    color: var(--footer-muted);
    font-size: .93rem;
    text-decoration: none;
    transition: color .2s;
}

.footer-nav a:hover,
footer .credit a:hover {
    color: var(--sun);
}

.footer-event {
    max-width: 30ch;
    color: var(--footer-muted);
    font-size: .96rem;
}

.footer-event strong {
    display: block;
    margin-bottom: .6rem;
    color: var(--footer-text);
    font: 700 1.1rem/1.25 var(--f-head);
}

.footer-cta {
    display: inline-flex;
    margin-top: .9rem;
    padding: .58rem .9rem;
    border: 1px solid var(--footer-border);
    border-radius: 999px;
    color: var(--footer-text) !important;
    font-size: .85rem !important;
    font-weight: 700;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-faint);
    font-size: .78rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .credit {
    text-align: right;
}

.location-dialog {
    width: min(820px, calc(100vw - 2rem));
    max-width: none;
    max-height: min(92vh, 860px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
    border-radius: 20px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 40px 140px rgba(0, 0, 0, .4);
}

.location-dialog::backdrop {
    background: rgba(3, 12, 8, .72);
    backdrop-filter: blur(6px);
}

.location-dialog-shell {
    padding: clamp(1rem, 3vw, 1.6rem);
}

.location-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
}

.location-dialog-kicker {
    color: var(--accent);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.location-dialog-head h2 {
    margin: .22rem 0 0;
    font: 800 clamp(1.45rem, 3.5vw, 2.15rem)/1.08 var(--f-head);
    letter-spacing: -.035em;
}

.location-dialog-close {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}

.location-dialog-close:hover {
    transform: rotate(90deg);
    border-color: var(--accent);
}

.location-dialog-close:focus-visible,
.location-map-links a:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}

.location-dialog-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.location-dialog-description {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.5;
}

.location-map-frame {
    height: clamp(280px, 46vw, 470px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper-2);
}

.location-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.location-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1rem;
}

.location-map-links a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 42px;
    padding: .55rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.location-map-links a:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 9%, var(--card));
}

@media (max-width: 1120px) {
    .top .in {
        min-height: 74px;
        gap: 1rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .top a.lk {
        font-size: .87rem;
    }
    .hero .in {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr);
        gap: 3rem;
    }
    .hero-visual {
        min-height: 455px;
    }
    #participar .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .in,
    .wrap {
        width: min(calc(100% - 48px), 1500px);
    }
    .wrap {
        max-width: 1060px;
    }
    .top .in {
        min-height: 72px;
    }
    .menu-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: transparent;
        color: var(--ink);
    }
    .menu-toggle svg {
        width: 19px;
        height: 19px;
    }
    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: .55rem 1.25rem;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 14px 14px;
        background: var(--paper);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .24s, visibility .24s, transform .24s;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .top a.lk {
        width: 100%;
        padding: .78rem .15rem;
        border-bottom: 1px solid var(--line);
        font-size: .98rem;
    }
    .top a.lk:last-child {
        border-bottom: 0;
    }
    .top a.lk::after {
        right: auto;
        bottom: .45rem;
        width: 30px;
    }
    .hero {
        min-height: auto;
        padding: 4.2rem 0 5rem;
    }
    .hero .in {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .hero h1 {
        font-size: clamp(2.8rem, 6vw, 4.6rem);
    }
    .hero-visual {
        min-height: 410px;
    }
    .orb {
        width: min(80%, 340px);
    }
    .cols {
        gap: 2rem;
    }
    .story-visual,
    .story-visual img {
        min-height: 350px;
        height: 350px;
    }
    .grid,
    #participar .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 2rem;
    }
    .footer-event-col {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 78px;
    }
    body {
        font-size: 16px;
    }
    .in,
    .wrap {
        width: calc(100% - 36px);
    }
    .top .in {
        min-height: 66px;
        gap: .55rem;
    }
    .brand {
        gap: .5rem;
    }
    .brand-mark {
        width: 38px;
        height: 38px;
    }
    .brand-copy strong {
        font-size: 1.12rem;
    }
    .brand-copy small {
        font-size: .55rem;
    }
    .nav-tools {
        gap: .35rem;
    }
    .ic,
    .menu-toggle {
        min-width: 38px;
        width: 38px;
        height: 38px;
        padding: .35rem;
    }
    .cta {
        min-height: 40px;
        padding: .5rem .72rem;
        font-size: .81rem;
    }
    .cta::after {
        display: none;
    }
    .top .cta {
        display: none;
    }
    .hero {
        padding: 2.7rem 0 3.7rem;
    }
    .hero .in {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-copy {
        order: 0;
    }
    .hero-visual {
        order: 1;
        min-height: 390px;
        margin-inline: 0;
        flex-direction: column;
    }
    .hero-globe {
        width: 100%;
        max-width: 480px;
    }
    .globe-caption {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: min(100%, 480px);
        margin: .1rem auto 0;
    }
    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 4.25rem);
    }
    .hero .lema {
        font-size: 1.02rem;
    }
    .btns {
        display: grid;
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%;
        min-height: 50px;
    }
    .cd {
        gap: .3rem;
        margin-top: 1.6rem;
    }
    .cd div {
        min-width: 63px;
        padding: .6rem .48rem .45rem;
    }
    .cd b {
        font-size: 1.55rem;
    }
    .cd span {
        font-size: .59rem;
    }
    .mq {
        padding: .85rem 0;
    }
    .mq>div {
        gap: 1.4rem;
        animation-duration: 32s;
    }
    .mq span::after {
        margin-left: 1.4rem;
    }
    section.sec,
    main.sec {
        padding: 4.4rem 0;
    }
    .cols {
        grid-template-columns: 1fr;
        gap: 1.7rem;
    }
    .section-head {
        display: block;
        margin-bottom: 1.4rem;
    }
    .section-head .lead {
        margin-top: .8rem;
    }
    .story-visual,
    .story-visual img {
        min-height: 310px;
        height: 310px;
    }
    .story-visual img {
        border-top-right-radius: 105px;
    }
    .story-label {
        right: -4px;
        bottom: 20px;
        max-width: 210px;
        padding: .8rem .9rem;
        font-size: .9rem;
    }
    .grid,
    #participar .grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
    .card,
    #participar .card {
        min-height: 0;
        padding: 1.25rem;
    }
    .topic-card {
        padding: 0;
    }
    .card i {
        margin-bottom: .7rem;
    }
    .card h3 {
        font-size: 1.2rem;
    }
    #participar .card h3 {
        padding-left: 2.55rem;
    }
    .pk {
        padding: 1.25rem;
    }
    .tier {
        padding: .8rem 0;
    }
    .tier span {
        font-size: 1.08rem;
    }
    main.sec .wrap {
        width: calc(100% - 30px);
    }
    .panel {
        padding: 1.05rem;
        border-radius: 13px;
    }
    .steps {
        gap: .38rem;
    }
    .steps li {
        font-size: .72rem;
    }
    .opts.two {
        grid-template-columns: 1fr;
    }
    fieldset[data-step="1"],
    fieldset[data-branch] {
        grid-template-columns: 1fr;
    }
    .nav {
        flex-direction: column-reverse;
    }
    .nav button {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding-bottom: 1.7rem;
    }
    .footer-event-col {
        grid-column: auto;
    }
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }
    .footer-bottom .credit {
        text-align: left;
    }
    .location-dialog {
        width: calc(100vw - 1rem);
        max-height: 94vh;
        border-radius: 16px;
    }
    .location-map-frame {
        height: min(55vh, 380px);
        min-height: 250px;
    }
    .location-map-links {
        flex-direction: column;
    }
    .location-map-links a {
        justify-content: center;
    }
}

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


/* Refinamentos da identidade AMEPP */

.brand-mark,
.footer-brand img {
    flex: 0 0 auto;
    object-fit: contain;
    border: 1px solid color-mix(in srgb, var(--brand-deep) 22%, transparent);
    border-radius: 12px;
    background: #fff;
    padding: 2px;
}

.hero {
    position: relative;
    isolation: isolate;
    background: radial-gradient(ellipse at 88% 44%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 54%);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -12%;
    right: -2%;
    width: min(56vw, 720px);
    aspect-ratio: 1;
    background: url("../images/amepp-mark.png") center / contain no-repeat;
    opacity: .12;
    pointer-events: none;
}

.hero .in {
    position: relative;
    z-index: 1;
}

:root[data-theme="dark"] .hero::before {
    opacity: .16;
}

.eyebrow,
.section-kicker,
.globe-location-kicker,
.location-dialog-kicker {
    color: var(--brand-deep);
}

.eyebrow::before {
    height: 3px;
    border-radius: 3px;
    background: var(--brand);
}

.cta,
.btn.p,
.next,
.send {
    font-weight: 800;
}

.cta:hover,
.btn.p:hover,
.next:hover,
.send:hover {
    color: var(--charcoal) !important;
}

.pk {
    border-top: 4px solid var(--brand);
}

.tier span {
    color: var(--brand-deep);
}

.card::after {
    border-color: color-mix(in srgb, var(--brand-deep) 30%, transparent);
}

#comercial {
    background: var(--paper-2);
}

footer {
    border-top: 4px solid var(--brand);
}

.footer-cta:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 16%, transparent);
}

:focus-visible {
    scroll-margin-top: 110px;
}

@media (max-width: 640px) {
    .brand-mark {
        border-radius: 10px;
    }
    .hero-visual {
        background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand) 9%, transparent), transparent 68%);
    }
}

@media (max-width: 640px) {
    .hero::before {
        top: 0;
        right: -8%;
        width: min(92vw, 420px);
    }
     :root[data-theme="dark"] .hero::before {
        opacity: .25;
    }
}


/* Secção institucional: apresentação e compromissos da AMEPP. */

.about-amepp {
    border-block: 1px solid var(--line);
    background: var(--paper-2);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "cards" "pillars";
    gap: clamp(1.5rem, 3.2vw, 2.75rem);
    align-items: start;
}

.about-intro {
    grid-area: intro;
    display: grid;
    grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
    gap: clamp(1.4rem, 5vw, 5rem);
    align-items: start;
    margin-bottom: 0;
}

.about-intro .t {
    max-width: none;
    margin: 0;
}

.about-copy {
    display: grid;
    gap: 1rem;
}

.about-copy p {
    max-width: 82ch;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.75;
}

.institutional-grid {
    grid-area: cards;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.institutional-card {
    position: relative;
    padding: clamp(1.35rem, 2.8vw, 2.2rem);
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.institutional-card::after {
    position: absolute;
    right: -50px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.institutional-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 .9rem;
    color: var(--ink);
    font: 700 clamp(1.4rem, 2.2vw, 1.85rem)/1.15 var(--f-head);
    letter-spacing: -.025em;
}

.institutional-card p {
    position: relative;
    z-index: 1;
    max-width: 65ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.about-pillars {
    grid-area: pillars;
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(0, 2fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    padding: clamp(1.25rem, 2.6vw, 2rem);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 16px;
    background: color-mix(in srgb, var(--brand) 7%, var(--card));
}

.about-pillars-kicker {
    display: block;
    margin-bottom: .45rem;
    color: var(--brand-deep);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.about-pillars-heading h3 {
    margin: 0;
    color: var(--ink);
    font: 700 clamp(1.25rem, 2vw, 1.65rem)/1.15 var(--f-head);
    letter-spacing: -.025em;
}

.about-pillar-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-pillar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    align-items: start;
    padding-left: .9rem;
    border-left: 1px solid var(--line);
}

.about-pillar-number {
    color: var(--brand-deep);
    font: 800 .76rem/1.35 var(--f-head);
    letter-spacing: .06em;
}

.about-pillar h4 {
    margin: 0 0 .25rem;
    color: var(--ink);
    font: 700 .96rem/1.22 var(--f-head);
}

.about-pillar p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .about-intro {
        grid-template-columns: 1fr;
        row-gap: 1.25rem;
    }
    .about-intro .t {
        max-width: none;
    }
    .institutional-grid {
        grid-template-columns: 1fr;
    }
    .institutional-card {
        padding: 1.3rem;
    }
    .about-pillars {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .about-pillar-list {
        grid-template-columns: 1fr;
        gap: .9rem;
    }
}