:root {
    --paper: #fff6e8;
    --paper-strong: #f4e5d1;
    --paper-soft: #fffdf8;
    --panel: rgba(255, 252, 246, 0.88);
    --panel-strong: rgba(255, 246, 233, 0.96);
    --line: rgba(120, 82, 45, 0.18);
    --line-strong: rgba(120, 82, 45, 0.28);
    --ink: #33261f;
    --muted: #685445;
    --accent: #ff8d23;
    --accent-deep: #cd6125;
    --accent-soft: #ffd3a0;
    --earth: #7a4a30;
    --shadow-lg: 0 28px 70px rgba(97, 61, 30, 0.16);
    --shadow-md: 0 14px 34px rgba(97, 61, 30, 0.12);
    --shadow-sm: 0 10px 22px rgba(97, 61, 30, 0.08);
    --shadow-panel: 0 22px 54px rgba(97, 61, 30, 0.13);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-section: 88px;
    --header-height: 88px;
    --container: min(1160px, calc(100vw - 32px));
    --measure: 620px;
    --measure-narrow: 560px;
    --transition-base: 0.24s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 208, 143, 0.36), transparent 32%),
        radial-gradient(circle at bottom right, rgba(244, 161, 98, 0.18), transparent 28%),
        linear-gradient(180deg, #fff9ef 0%, #fff3e0 100%);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

code {
    padding: 0.12rem 0.46rem;
    border-radius: 999px;
    background: rgba(122, 74, 48, 0.08);
    font-size: 0.88em;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    background: transparent;
}

main,
section[id] {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: var(--space-section) 0;
}

.section-paper {
    position: relative;
}

.section-paper::before {
    content: "";
    position: absolute;
    inset: 26px 18px;
    border-radius: 40px;
    /* background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(120, 82, 45, 0.08); */
    z-index: -1;
}

.section-accent {
    background:
        linear-gradient(135deg, rgba(255, 140, 35, 0.08), rgba(205, 97, 37, 0.05)),
        linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 242, 223, 0.96));
}

.section-heading {
    display: grid;
    gap: 20px;
    max-width: 740px;
    margin-bottom: var(--space-xl);
}

.section-heading h2 {
    font-family: "League Spartan", sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.section-heading p:last-child {
    /* color: var(--muted); */
    font-size: 1.05rem;
    max-width: var(--measure);
    line-height: 1.72;
}

.video-feature {
    max-width: 960px;
    margin: 0 auto clamp(28px, 5vw, 56px);
}

.video-frame {
    padding: 16px;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 245, 231, 0.8));
    border: 1px solid rgba(120, 82, 45, 0.12);
    box-shadow: var(--shadow-panel);
}

.video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 22px;
    background: #000;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-deep);
    font-family: "League Spartan", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: "League Spartan", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.button-primary {
    color: #fff7ef;
    background: linear-gradient(135deg, #ff972d 0%, var(--accent-deep) 100%);
    box-shadow: 0 18px 32px rgba(205, 97, 37, 0.28);
}

.button-secondary {
    color: var(--earth);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(120, 82, 45, 0.18);
    box-shadow: var(--shadow-sm);
}

.button-ghost {
    color: var(--earth);
    background: rgba(255, 255, 255, 0.28);
    border: 1px dashed var(--line-strong);
}

.button:active {
    transform: translateY(0);
}

.button-primary:hover,
.button-primary:focus-visible {
    box-shadow: 0 22px 38px rgba(205, 97, 37, 0.32);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: rgba(205, 97, 37, 0.28);
}

.text-link {
    font-family: "League Spartan", sans-serif;
    font-weight: 700;
    color: var(--accent-deep);
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent-deep);
    color: #fff;
    transition: top 0.18s ease;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1200;
    padding: 16px 0;
    transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 248, 238, 0.86);
    box-shadow: 0 10px 30px rgba(78, 49, 23, 0.08);
    border-bottom: 1px solid rgba(120, 82, 45, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-kicker {
    font-family: "League Spartan", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.brand-title {
    font-family: "Allura", cursive;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1;
    color: var(--earth);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav > a {
    position: relative;
    padding: 10px 8px;
    border-radius: 999px;
    font-family: "League Spartan", sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--muted);
    transition: color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.site-nav > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
    color: var(--earth);
    background: rgba(255, 255, 255, 0.52);
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after,
.site-nav > a.is-active::after {
    transform: scaleX(1);
}

.site-nav > a.is-active {
    color: var(--earth);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
}

.nav-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(120, 82, 45, 0.14);
    color: var(--earth);
    transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.nav-social a:hover,
.nav-social a:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 241, 224, 0.95);
    border-color: rgba(205, 97, 37, 0.32);
}

.nav-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(120, 82, 45, 0.14);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--earth);
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 70px);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    z-index: -1;
}

.hero::before {
    width: 360px;
    height: 360px;
    top: 90px;
    left: -140px;
    background: radial-gradient(circle, rgba(255, 202, 129, 0.4), transparent 68%);
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -160px;
    top: 60px;
    background: radial-gradient(circle, rgba(255, 145, 51, 0.2), transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 54px);
}

.hero-copy,
.page-hero-copy {
    display: grid;
    align-content: start;
    gap: var(--space-md);
}

.hero-copy {
    max-width: 590px;
    padding: 22px 0;
}

.hero-intro {
    display: grid;
    gap: 12px;
}

.hero-heading-group {
    display: grid;
    gap: 18px;
    max-width: 620px;
}

.hero-copy h1,
.page-hero-copy h1 {
    font-family: "League Spartan", sans-serif;
    font-size: clamp(3.2rem, 4vw, 6.9rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.hero-copy h1 {
    display: grid;
    gap: 4px;
}

.hero-copy h1 span {
    display: block;
}

.hero-script {
    font-family: "Allura", cursive;
    font-size: clamp(2.6rem, 2.8vw, 4.8rem);
    color: var(--earth);
    line-height: 1;
}

.hero-focus {
    max-width: 28ch;
    font-family: "League Spartan", sans-serif;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-support,
.page-hero-copy p {
    max-width: var(--measure);
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.72;
}

.hero-badges,
.page-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badges span,
.page-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(120, 82, 45, 0.14);
    box-shadow: var(--shadow-sm);
    color: var(--earth);
    font-size: 0.94rem;
    font-weight: 600;
}

.hero-actions,
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-microcopy {
    color: var(--earth);
    font-family: "League Spartan", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.84;
}

.hero-visual,
.page-hero-card {
    display: flex;
    justify-content: center;
}

.hero-visual {
    align-items: center;
}

.page-hero-card,
.theme-board,
.contact-card,
.cta-panel,
.tool-panel,
.preview-frame,
.arquivo-item,
.docs-empty {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 82, 45, 0.12);
    box-shadow: var(--shadow-panel);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.hero-card {
    position: relative;
    width: min(100%, 640px);
    padding: 18px 18px 10px;
    min-height: 0;
    overflow: hidden;
    /* border-radius: clamp(30px, 4vw, 42px);
    background:
        radial-gradient(circle at top, rgba(255, 232, 194, 0.9), rgba(255, 247, 233, 0.72)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 243, 226, 0.24));
    border: 1px solid rgba(120, 82, 45, 0.08);
    box-shadow: 0 28px 78px rgba(97, 61, 30, 0.12); */
}

.hero-art {
    position: relative;
    width: min(100%, 560px);
    margin: 0 auto;
}

.hero-motif {
    position: absolute;
    pointer-events: none;
}

.hero-motif-cross {
    top: 42px;
    right: 10px;
    width: 132px;
    opacity: 0.26;
}

.hero-motif-houses {
    left: 18px;
    bottom: 26px;
    width: 180px;
    opacity: 0.64;
}

.theme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
    gap: clamp(26px, 3vw, 40px);
    align-items: center;
}

.theme-board {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 235, 0.78));
}

.theme-board img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 46px rgba(97, 61, 30, 0.13);
}

.topic-grid {
    display: grid;
    align-content: center;
    gap: 18px;
}

.sobre-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
    margin-bottom: 48px;
}

.sobre-copy p {
    color: var(--muted);
    font-size: 1.04rem;
    max-width: var(--measure-narrow);
    line-height: 1.74;
}

.sobre-copy p + p {
    margin-top: 0;
}

.sobre-copy {
    display: grid;
    gap: 18px;
}

.sobre-media img {
    width: 100%;
    min-height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center 36%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.metric-card {
    position: relative;
    display: grid;
    align-content: end;
    overflow: hidden;
    padding: 36px 28px 28px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(122, 74, 48, 0.96), rgba(89, 56, 35, 0.98));
    box-shadow: var(--shadow-sm);
    text-align: left;
    color: #fff7ef;
    justify-content: center;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: auto -18% -35% auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 177, 93, 0.22), transparent 72%);
    pointer-events: none;
    justify-content: center;
}

.metric-card h3 {
    font-family: "League Spartan", sans-serif;
    font-size: clamp(2.7rem, 5vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
    color: #ffb15d;
}

.metric-card p {
    color: rgba(255, 247, 239, 0.8);
    max-width: 16ch;
    font-size: 0.96rem;
    line-height: 1.5;
    justify-content: center;
}

.history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 30px;
    align-items: start;
}

.history-stack {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 22px;
}

.history-card {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 239, 0.78));
    border: 1px solid rgba(120, 82, 45, 0.1);
    box-shadow: var(--shadow-md);
}

.history-card img {
    width: 100%;
    height: 244px;
    object-fit: cover;
}

.history-card-featured img {
    height: 620px;
    object-position: center top;
}

.history-card-body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 28px 28px 30px;
}

.history-card-body h3 {
    font-family: "League Spartan", sans-serif;
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--earth);
}

.history-card-body p {
    color: var(--muted);
    line-height: 1.7;
}

.history-card-body p + p {
    margin-top: 0;
}

.history-card-featured {
    box-shadow: 0 24px 50px rgba(97, 61, 30, 0.14);
}

.programacao-section {
    position: relative;
    color: #fff7ef;
    background:
        linear-gradient(160deg, rgba(78, 47, 26, 0.98), rgba(117, 63, 24, 0.96)),
        radial-gradient(circle at top right, rgba(255, 177, 93, 0.22), transparent 30%);
    overflow: hidden;
}

.programacao-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 177, 93, 0.22), transparent 20%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 22%);
    pointer-events: none;
}

.programacao-section .container {
    position: relative;
    z-index: 1;
}

.programacao-heading {
    margin-bottom: var(--space-lg);
}

.programacao-heading .eyebrow {
    color: #ffcc94;
}

.programacao-heading .eyebrow::before {
    background: linear-gradient(90deg, #ffcc94, transparent);
}

.programacao-heading h2{
    color: #fff7ef;
}

.programacao-heading p {
    color: #fff7ef;
}

.programacao-shell {
    display: grid;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16);
}

.programacao-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 247, 239, 0.14);
}

.programacao-status {
    display: grid;
    gap: 8px;
}

.programacao-label {
    color: #ffcc94;
    font-family: "League Spartan", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.programacao-active-day {
    font-family: "League Spartan", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #fff9f3;
}

.programacao-active-count {
    max-width: 28ch;
    color: rgba(255, 247, 239, 0.82);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.55;
    text-align: right;
}

.programacao-tab-groups {
    display: grid;
    gap: 12px;
    justify-content: center;
}

.programacao-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
    justify-content: center;
}

.tab-btn {
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 247, 239, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #fff7ef;
    font-family: "League Spartan", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.tab-btn:hover,
.tab-btn:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.tab-btn.is-active {
    background: linear-gradient(135deg, #ff9d38, #cd6125);
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.programacao-content {
    margin-top: var(--space-lg);
    display: grid;
    gap: 18px;
    padding: 28px 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16);
}

.evento-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 24px 24px 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.evento-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    background: var(--tone, #ffb15d);
}

.evento-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--tone-soft, rgba(255, 255, 255, 0.12));
    border: 2px solid var(--tone, #ffb15d);
    font-size: 1.4rem;
}

.evento-body {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.evento-body h4 {
    display: grid;
    gap: 10px;
    font-family: "League Spartan", sans-serif;
    font-size: 1.24rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff9f3;
}

.evento-body h4::before {
    content: attr(data-hora);
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 211, 159, 0.12);
    border: 1px solid rgba(255, 211, 159, 0.22);
    color: #ffd39f;
    font-size: 0.82rem;
    font-weight: 700;
}

.evento-body h4.no-time::before {
    content: none;
}

.evento-body p {
    color: rgba(255, 247, 239, 0.86);
    max-width: 62ch;
}

.tone-amber {
    --tone: #f6b54f;
    --tone-soft: rgba(246, 181, 79, 0.14);
}

.tone-blue {
    --tone: #9fc2ff;
    --tone-soft: rgba(159, 194, 255, 0.14);
}

.tone-purple {
    --tone: #d0a5ff;
    --tone-soft: rgba(208, 165, 255, 0.14);
}

.tone-green {
    --tone: #91e6b2;
    --tone-soft: rgba(145, 230, 178, 0.14);
}

.topic-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 28px 28px 30px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 240, 0.78));
    border: 1px solid rgba(120, 82, 45, 0.1);
    box-shadow: var(--shadow-sm);
}

.topic-index {
    font-family: "League Spartan", sans-serif;
    color: var(--accent-deep);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.topic-card h3,
.contact-card h2,
.cta-panel h2,
.tool-panel h2,
.docs-section h2,
.page-hero-copy h1 {
    font-family: "League Spartan", sans-serif;
    line-height: 1;
    letter-spacing: -0.04em;
}

.topic-card h3 {
    font-size: 1.55rem;
}

.topic-card p:last-child {
    color: var(--muted);
}

.dual-cta,
.contact-grid,
.euvou-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.docs-section h2,
.tool-panel h2,
.contact-card h2,
.cta-panel h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 18px;
}

.cta-panel p,
.contact-card p,
.tool-panel p {
    color: var(--muted);
    max-width: var(--measure);
}

.cta-panel,
.contact-card,
.tool-panel,
.docs-empty {
    padding: 34px;
}

.cta-panel,
.contact-card,
.tool-panel,
.docs-empty,
.page-hero-card,
.arquivo-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 239, 0.76));
}

.cta-panel {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 100%;
}

.cta-panel .button {
    width: fit-content;
    margin-top: 6px;
}

.cta-panel-primary {
    background: linear-gradient(180deg, rgba(255, 247, 235, 0.96), rgba(255, 236, 212, 0.86));
}

.cta-panel-secondary {
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 246, 233, 0.9));
}

.contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.contact-card {
    display: grid;
    align-content: start;
    gap: 24px;
}

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

.contact-list article {
    display: grid;
    gap: 6px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(120, 82, 45, 0.1);
}

.contact-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent-deep);
    font-family: "League Spartan", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-list a:hover,
.contact-list a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .contact-list {
        grid-template-columns: 1fr;
    }
}

.contact-map {
    min-height: 100%;
    padding: 16px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 228, 0.74));
    border: 1px solid rgba(120, 82, 45, 0.12);
    box-shadow: var(--shadow-panel);
}

.map-frame {
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 82, 45, 0.12);
    box-shadow: var(--shadow-lg);
}

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

.site-footer {
    padding: 64px 0 30px;
    background:
        linear-gradient(180deg, rgba(114, 68, 42, 0.98), rgba(63, 39, 27, 0.99)),
        radial-gradient(circle at top right, rgba(255, 177, 93, 0.12), transparent 22%);
    color: rgba(255, 244, 232, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.78fr));
    gap: clamp(28px, 1vw, 48px);
    padding-bottom: 32px;
}

.footer-title {
    font-family: "League Spartan", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff7ef;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 244, 232, 0.1);
}

.footer-description {
    margin-top: 8px;
    margin-bottom: 8px;
    max-width: 34ch;
    color: rgba(255, 244, 232, 0.74);
    line-height: 1.7;
}

.footer-heading {
    font-family: "League Spartan", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffcc94;
}

.footer-links {
    display: grid;
    gap: 12px;
    font-family: "League Spartan", sans-serif;
    font-size: 1rem;
}

.footer-links a,
.footer-info p {
    color: rgba(255, 244, 232, 0.82);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 244, 232, 0.12);
    color: #fff1de;
    transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.footer-social a:hover,
.footer-social a:focus-visible {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 204, 148, 0.28);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 244, 232, 0.14);
    font-size: 0.94rem;
}

.page-hero {
    padding: calc(var(--header-height) + 56px) 0 var(--space-xl);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}

.page-hero-copy {
    max-width: 580px;
}

.page-hero-copy h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
}

.page-hero-card {
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.page-hero-card img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(97, 61, 30, 0.12);
}

.docs-page,
.euvou-page {
    padding-bottom: 60px;
}

.docs-section {
    padding-top: 0;
}

.docs-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: var(--space-sm);
    align-items: end;
    margin-bottom: var(--space-md);
}

.search-field {
    display: grid;
    gap: 10px;
}

.search-field span,
.filter-group-title,
.tool-label {
    font-family: "League Spartan", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--earth);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.search-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(120, 82, 45, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.search-field input:hover,
.search-field input:focus-visible {
    border-color: rgba(205, 97, 37, 0.26);
    box-shadow: 0 14px 26px rgba(97, 61, 30, 0.1);
}

.filter-group {
    display: grid;
    gap: 10px;
}

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

.filter-chip {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(120, 82, 45, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-family: "League Spartan", sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: transparent;
    color: #fff7ef;
}

.docs-list {
    display: grid;
    gap: var(--space-sm);
}

.arquivo-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
}

.arquivo-item[hidden] {
    display: none;
}

.arquivo-badge {
    display: grid;
    place-items: center;
    min-width: 68px;
    min-height: 68px;
    padding: 0 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 141, 35, 0.18), rgba(205, 97, 37, 0.16));
    color: var(--accent-deep);
    font-family: "League Spartan", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.arquivo-info {
    min-width: 0;
}

.arquivo-nome {
    font-family: "League Spartan", sans-serif;
    font-size: 1.45rem;
    line-height: 1.02;
    margin-bottom: 12px;
}

.arquivo-desc {
    color: var(--muted);
    margin-bottom: 12px;
}

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

.arquivo-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 249, 239, 0.86);
    border: 1px solid rgba(120, 82, 45, 0.12);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-download {
    white-space: nowrap;
}

.docs-empty {
    margin-top: 18px;
    text-align: center;
    display: grid;
    gap: 12px;
}

.docs-empty[hidden] {
    display: none;
}

.docs-empty h2 {
    font-family: "League Spartan", sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.docs-empty p {
    color: var(--muted);
}

.euvou-layout {
    align-items: stretch;
}

.tool-panel {
    display: grid;
    gap: 20px;
}

.tool-panel .page-chip-list {
    margin: 0;
}

.tool-actions {
    margin-top: 4px;
}

.tool-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.tool-section {
    display: grid;
    gap: 12px;
}

.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.preview-frame {
    position: relative;
    padding: 20px;
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(255, 220, 173, 0.5), rgba(255, 246, 233, 0.82)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 241, 219, 0.92));
}

.preview-frame canvas {
    width: 100%;
    height: auto;
    border-radius: 26px;
    box-shadow: 0 18px 34px rgba(78, 49, 23, 0.16);
    background: #f1dbc2;
    touch-action: none;
}

.preview-placeholder {
    position: absolute;
    inset: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    color: rgba(51, 38, 31, 0.58);
    font-family: "League Spartan", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.preview-placeholder.is-hidden {
    opacity: 0;
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1400;
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(51, 38, 31, 0.94);
    color: #fff6e8;
    box-shadow: var(--shadow-md);
    transform: translate(-50%, 18px);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@supports (content-visibility: auto) {
    .site-home .section:not(.hero),
    .docs-section,
    .euvou-page .section {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }

    .docs-list .arquivo-item {
        content-visibility: auto;
        contain-intrinsic-size: 1px 148px;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal="left"] {
    transform: translateX(-28px);
}

[data-reveal="right"] {
    transform: translateX(28px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.topic-card:hover,
.metric-card:hover,
.history-card:hover,
.cta-panel:hover,
.contact-card:hover,
.tool-panel:hover,
.arquivo-item:hover,
.docs-empty:hover,
.theme-board:hover,
.preview-frame:hover,
.page-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(97, 61, 30, 0.14);
    border-color: rgba(205, 97, 37, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(205, 97, 37, 0.28);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .theme-layout,
    .sobre-layout,
    .history-grid,
    .dual-cta,
    .contact-grid,
    .page-hero-grid,
    .euvou-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-right: 0;
        max-width: 100%;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-card {
        min-height: auto;
        max-width: 620px;
        margin: 0 auto;
    }

    .history-card-featured img {
        height: 340px;
    }

    .programacao-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .programacao-active-count {
        max-width: none;
        text-align: left;
    }

    .map-frame iframe {
        min-height: 340px;
    }

    .docs-toolbar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .site-nav {
        position: fixed;
        top: calc(var(--header-height) - 8px);
        right: 16px;
        width: min(320px, calc(100vw - 32px));
        padding: 18px;
        display: grid;
        gap: 10px;
        align-items: start;
        background: rgba(255, 248, 238, 0.96);
        border: 1px solid rgba(120, 82, 45, 0.12);
        border-radius: 26px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
        backdrop-filter: blur(16px);
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav > a {
        padding: 10px 6px;
    }

    .nav-social {
        margin-left: 0;
        padding-top: 8px;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 76px 0;
    }

    .hero {
        padding-top: calc(var(--header-height) + 40px);
    }

    .hero-copy,
    .page-hero-copy {
        gap: 20px;
    }

    .hero-intro,
    .hero-heading-group {
        gap: 14px;
    }

    .hero-actions,
    .tool-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .programacao-tabs {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .programacao-shell,
    .programacao-content {
        padding: 22px;
    }

    .tab-btn {
        flex: 0 0 auto;
        justify-content: center;
    }

    .evento-card {
        align-items: flex-start;
    }

    .evento-body h4::before {
        display: block;
        margin-bottom: 4px;
    }

    .arquivo-item {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .btn-download {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-copy {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    :root {
        --container: min(1160px, calc(100vw - 32px));
    }

    .site-header {
        padding: 12px 0;
    }

    .brand-title {
        font-size: 2rem;
    }

    .hero-copy h1,
    .page-hero-copy h1 {
        font-size: clamp(2.6rem, 18vw, 4.3rem);
    }

    .hero-script {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-focus {
        font-size: 1.2rem;
    }

    .hero-heading-group {
        gap: 12px;
    }

    .hero-card,
    .page-hero-card {
        padding: 18px;
    }

    .hero-card,
    .contact-card,
    .cta-panel,
    .tool-panel,
    .preview-frame,
    .arquivo-item,
    .docs-empty,
    .theme-board,
    .video-frame,
    .contact-map,
    .programacao-shell,
    .programacao-content {
        border-radius: 24px;
    }

    .topic-card,
    .metric-card,
    .history-card-body {
        padding: 24px;
    }

    .cta-panel,
    .contact-card,
    .tool-panel,
    .docs-empty {
        padding: 24px;
    }

    .contact-map {
        padding: 12px;
    }

    .hero-motif-cross {
        width: 100px;
    }

    .hero-motif-houses {
        width: 132px;
    }

    .preview-placeholder {
        font-size: 1.05rem;
    }

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

    .history-card img,
    .history-card-featured img {
        height: 240px;
    }

    .evento-card {
        padding: 14px;
    }

    .evento-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .evento-body h4 {
        font-size: 1.05rem;
    }

    .footer-brand {
        align-items: center;
    }
}
