:root {
    --agro-ink: #17221d;
    --agro-ink-soft: #27342e;
    --agro-forest: #184a38;
    --agro-moss: #587247;
    --agro-rust: #c8512d;
    --agro-rust-dark: #983a22;
    --agro-harvest: #e7b64f;
    --agro-straw: #ead9b7;
    --agro-paper: #f5efe2;
    --agro-white: #fffdf8;
    --agro-line: rgba(23, 34, 29, 0.16);
    --agro-display: "Arial Black", "Franklin Gothic Heavy", Impact, sans-serif;
    --agro-body: Inter, "Segoe UI", Arial, sans-serif;

    /* ---- Grid system -------------------------------------------------
       One container, one gutter, one column count. Sections that bleed
       full-width reuse --agro-gutter so their inner content still lands
       on the same alignment lines as the contained sections. */
    --agro-max: 1240px;
    --agro-gutter: clamp(1.25rem, 4vw, 2.5rem);
    --agro-bleed: max(var(--agro-gutter), calc((100vw - var(--agro-max)) / 2));
    --agro-cols: 12;
    --agro-gap: clamp(1rem, 2vw, 1.75rem);

    /* ---- Typography scale -------------------------------------------
       Seven levels. Every headline in the page maps to one of them, so
       scale is decided once instead of per-selector. Maxima are capped
       deliberately: impact comes from weight and spacing, not from size. */
    --agro-display-xl: clamp(3.4rem, 6.4vw, 6rem);
    --agro-display-lg: clamp(2.4rem, 3.6vw, 3.4rem);
    --agro-display-md: clamp(1.9rem, 2.8vw, 2.6rem);
    --agro-heading-lg: clamp(1.5rem, 2.2vw, 2.1rem);
    --agro-heading-md: clamp(1.15rem, 1.6vw, 1.45rem);
    --agro-body-text: clamp(0.95rem, 1.05vw, 1.05rem);
    --agro-small: 0.75rem;

    /* Letter spacing */
    --agro-ls-display: -0.055em;
    --agro-ls-heading: -0.035em;
    --agro-ls-body: 0.01em;
    --agro-ls-meta: 0.12em;

    /* Line heights — display levels keep room for accents (Ã, Ç, Õ). */
    --agro-lh-display: 1.02;
    --agro-lh-heading: 1.18;
    --agro-lh-body: 1.7;
    --agro-lh-meta: 1.35;

    /* Spacing scale */
    --agro-gap-xs: clamp(0.5rem, 1vw, 0.85rem);
    --agro-gap-sm: clamp(0.9rem, 1.6vw, 1.35rem);
    --agro-gap-md: clamp(1.4rem, 2.6vw, 2.25rem);
    --agro-gap-lg: clamp(2rem, 4vw, 3.5rem);
    --agro-gap-xl: clamp(3rem, 6vw, 5rem);
    --agro-gap-xxl: clamp(4.5rem, 8vw, 7rem);
    --agro-local-nav-height: 66px;
}

html {
    scroll-behavior: smooth;
    /* Header global medido + nav local medida. As seções não repetem o offset. */
    scroll-padding-top: calc(var(--sms-header-offset, 180px) + var(--agro-local-nav-height));
}

body.agrosamas-page {
    background: var(--agro-paper);
    color: var(--agro-ink);
    font-family: var(--agro-body);
    font-size: 16px;
}

.agrosamas-page main {
    overflow: visible;
}

.agrosamas-page h1,
.agrosamas-page h2,
.agrosamas-page h3,
.agrosamas-page p {
    margin: 0;
}

.agrosamas-page a:focus-visible,
.agrosamas-page button:focus-visible {
    outline: 3px solid var(--agro-harvest);
    outline-offset: 4px;
}

.agrosamas-page section[id] {
    scroll-margin-top: 0;
}

.agro-breadcrumb {
    margin: 0 auto;
    max-width: var(--agro-max);
    padding: 1rem 1.5rem;
}

.agro-breadcrumb ol {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
}

.agro-breadcrumb li {
    align-items: center;
    color: #59655f;
    display: flex;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.agro-breadcrumb li + li::before {
    color: var(--agro-rust);
    content: "/";
    margin-right: 0.45rem;
}

.agro-breadcrumb a {
    color: var(--agro-forest);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.agro-hero {
    background: var(--agro-ink);
    color: var(--agro-white);
    isolation: isolate;
    margin: 0 auto;
    max-width: 1520px;
    /* Reserve room for the global header + breadcrumb (231px measured) and
       for the countdown band, which now occupies real flow space at the
       bottom of the hero grid. */
    min-height: min(760px, calc(100vh - 380px));
    min-height: min(760px, calc(100svh - 380px));
    overflow: hidden;
    position: relative;
}

.agro-hero::before {
    background: var(--agro-harvest);
    content: "";
    height: 12px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 4;
}

.agro-hero::after {
    background: linear-gradient(90deg, var(--agro-rust) 0 52%, var(--agro-harvest) 52% 74%, var(--agro-moss) 74% 100%);
    bottom: 0;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 4;
}

.agro-hero__photo {
    background-image: linear-gradient(90deg, rgba(23, 34, 29, 0.98) 0%, rgba(23, 34, 29, 0.8) 34%, rgba(23, 34, 29, 0.08) 72%), url("../images/RUA_DO_MATHE.jpg");
    background-position: center, center;
    background-size: cover;
    inset: 0 0 0 38%;
    opacity: 0.75;
    position: absolute;
    z-index: -2;
}

.agro-hero__photo::after {
    background: linear-gradient(0deg, rgba(23, 34, 29, 0.94), transparent 52%);
    content: "";
    inset: 0;
    position: absolute;
}

.agro-hero__contours {
    border: 1px solid rgba(231, 182, 79, 0.22);
    border-radius: 48% 52% 63% 37%;
    height: 540px;
    position: absolute;
    right: -110px;
    top: -110px;
    transform: rotate(-16deg);
    width: 720px;
    z-index: -1;
}

.agro-hero__contours::before,
.agro-hero__contours::after {
    border: 1px solid rgba(231, 182, 79, 0.18);
    border-radius: inherit;
    content: "";
    inset: 42px;
    position: absolute;
}

.agro-hero__contours::after {
    inset: 88px;
}

.agro-hero__inner {
    align-items: end;
    display: grid;
    gap: clamp(1.5rem, 2.6vw, 2.5rem) clamp(2rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    margin: 0 auto;
    max-width: var(--agro-max);
    min-height: 0;
    padding: clamp(1.4rem, 2.2vw, 2rem) var(--agro-gutter) clamp(1.6rem, 2.4vw, 2.2rem);
    position: relative;
    z-index: 1;
}

.agro-portal-mark,
.agro-edition,
.agro-kicker {
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.agro-portal-mark {
    align-items: center;
    color: rgba(255, 253, 248, 0.78);
    display: flex;
    gap: 0.65rem;
    margin-bottom: clamp(0.9rem, 1.8vw, 1.4rem);
}

.agro-portal-mark span {
    background: var(--agro-harvest);
    border-radius: 50%;
    height: 9px;
    width: 9px;
}

.agro-edition {
    color: var(--agro-harvest);
    margin-bottom: 0.9rem;
}

.agro-title__verb {
    display: block;
    font-family: var(--agro-body);
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    font-weight: 650;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.agro-title__official-logo {
    display: block;
    height: auto;
    margin-top: 0.5rem;
    max-width: min(100%, 260px);
    object-fit: contain;
    width: clamp(170px, 18vw, 260px);
}

.agro-hero__lead {
    color: rgba(255, 253, 248, 0.82);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.5;
    margin-top: 0.9rem !important;
    max-width: 620px;
}

.agro-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.agro-button {
    align-items: center;
    border: 2px solid transparent;
    border-radius: 3px;
    display: inline-flex;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 850;
    justify-content: center;
    letter-spacing: 0.04em;
    min-height: 50px;
    padding: 0.8rem 1.15rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.agro-button:hover {
    transform: translateY(-3px);
}

.agro-button--primary {
    background: var(--agro-rust);
    color: #fff;
}

.agro-button--primary:hover {
    background: #e06037;
}

.agro-button--outline {
    border-color: rgba(255, 253, 248, 0.65);
    color: #fff;
}

.agro-button--outline:hover {
    background: var(--agro-white);
    color: var(--agro-ink);
}

.agro-button--dark {
    background: var(--agro-ink);
    color: #fff;
}

.agro-button--dark:hover {
    background: var(--agro-rust-dark);
}

.agro-button--light {
    background: var(--agro-white);
    color: var(--agro-ink);
}

.agro-date-block {
    border-left: 1px solid rgba(255, 253, 248, 0.3);
    padding-left: clamp(1.2rem, 3vw, 2.5rem);
}

.agro-date-block__range {
    align-items: center;
    display: flex;
    gap: clamp(0.65rem, 2vw, 1.2rem);
}

.agro-date-block__range span {
    font-family: var(--agro-display);
    font-size: clamp(3rem, 5vw, 4.4rem);
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.agro-date-block__range i {
    background: var(--agro-harvest);
    display: block;
    height: 4px;
    width: clamp(24px, 4vw, 60px);
}

.agro-date-block__meta {
    align-items: baseline;
    display: flex;
    gap: 0.7rem;
    margin-top: 0.7rem;
}

.agro-date-block__meta strong {
    color: var(--agro-harvest);
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    letter-spacing: 0.12em;
}

.agro-date-block__meta span {
    color: rgba(255, 253, 248, 0.7);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.agro-date-block__location {
    color: rgba(255, 253, 248, 0.82);
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    line-height: 1.6;
    margin-top: 1.6rem !important;
    text-transform: uppercase;
}

.agro-status {
    align-items: center;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.55rem;
    margin-top: 1.4rem !important;
}

.agro-status span {
    background: var(--agro-harvest);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(231, 182, 79, 0.18);
    height: 8px;
    width: 8px;
}

.agro-status b {
    font: inherit;
}

body[data-agro-temporal-state="EVENT_LIVE"] .agro-status span {
    animation: agro-pulse 1.8s ease-in-out infinite;
    background: #f06a3e;
}

body[data-agro-temporal-state="POST_EVENT"] .agro-status span {
    background: var(--agro-straw);
    box-shadow: none;
}

@keyframes agro-pulse {
    50% { box-shadow: 0 0 0 9px rgba(240, 106, 62, 0.08); }
}

/* The label column is sized to its content (auto) and the metrics take
   the remaining space, so the label never gets stretched into a wide,
   short box that wraps into four lines. */
/* The countdown is a normal flow row at the bottom of the hero grid, not an
   absolutely positioned overlay. That guarantees real vertical space between
   the CTAs and the band instead of relying on z-index stacking. */
.agro-countdown {
    align-items: stretch;
    background: var(--agro-harvest);
    color: var(--agro-ink);
    display: grid;
    gap: 0;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    margin: 0 auto;
    max-width: var(--agro-max);
    padding: 0;
    position: relative;
    width: calc(100% - (var(--agro-gutter) * 2));
    z-index: 3;
}

/* Intentional breathing room between the CTA row and the countdown band. */
.agro-hero__inner > .agro-countdown {
    margin-top: clamp(0.5rem, 1.2vw, 1rem);
}

.agro-countdown[hidden] {
    display: none;
}

.agro-countdown__label {
    align-self: center;
    border-right: 1px solid rgba(23, 34, 29, 0.22);
    font-size: var(--agro-small);
    font-weight: 850;
    letter-spacing: var(--agro-ls-meta);
    line-height: var(--agro-lh-meta);
    margin: 0;
    max-width: none;
    padding: clamp(1rem, 2vw, 1.4rem) clamp(1.1rem, 2.4vw, 1.8rem);
    text-transform: uppercase;
}

.agro-countdown__values {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Each metric is a stacked unit: number above, unit below. Consistent
   heights and a shared baseline make the three read as one rhythm. */
.agro-countdown__values > span {
    align-items: baseline;
    border-left: 1px solid rgba(23, 34, 29, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    justify-content: center;
    min-width: 96px;
    padding: clamp(0.85rem, 1.8vw, 1.2rem) clamp(1rem, 2.2vw, 1.7rem);
}

.agro-countdown__values > span:first-child {
    border-left: 0;
}

.agro-countdown__values strong {
    font-family: var(--agro-display);
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.agro-countdown__values small {
    font-size: var(--agro-small);
    font-weight: 800;
    letter-spacing: var(--agro-ls-meta);
    line-height: 1;
    text-transform: uppercase;
}

.agro-local-nav-slot {
    min-height: 53px;
}

.agro-local-nav {
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid var(--agro-line);
    box-shadow: 0 12px 32px rgba(23, 34, 29, 0.08);
    position: relative;
    z-index: 9000;
}

.agro-local-nav.is-fixed {
    left: 0;
    position: fixed;
    right: 0;
    top: var(--sms-header-offset, 180px);
}

.agro-local-nav__inner {
    display: flex;
    gap: 0.35rem;
    margin: 0 auto;
    max-width: var(--agro-max);
    overflow-x: auto;
    padding: 0.6rem 1.5rem;
    scrollbar-width: none;
}

.agro-local-nav__inner::-webkit-scrollbar {
    display: none;
}

.agro-local-nav a {
    border-radius: 999px;
    color: var(--agro-ink-soft);
    flex: 0 0 auto;
    font-size: 0.74rem;
    font-weight: 800;
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
}

.agro-local-nav a:hover,
.agro-local-nav a[aria-current="location"] {
    background: var(--agro-ink);
    color: #fff;
}

.agro-section {
    display: grid;
    gap: clamp(1.5rem, 3vw, 3rem);
    grid-template-columns: 56px minmax(0, 1.15fr) minmax(280px, 0.85fr);
    margin: 0 auto;
    max-width: var(--agro-max);
    padding: clamp(4.5rem, 8vw, 7rem) var(--agro-gutter);
}

.agro-section__number {
    color: var(--agro-rust);
    font-family: var(--agro-display);
    font-size: 1.4rem;
}

.agro-kicker {
    color: var(--agro-rust-dark);
    margin-bottom: 1rem !important;
}

.agro-section__heading h2,
.agro-program h2,
.agro-universe h2,
.agro-plan h2,
.agro-arrival h2,
.agro-info h2,
.agro-closing h2 {
    font-family: var(--agro-display);
    font-size: var(--agro-display-lg);
    letter-spacing: var(--agro-ls-display);
    line-height: var(--agro-lh-display);
    max-width: 26ch;
    text-wrap: balance;
    text-transform: uppercase;
}

.agro-intro__copy {
    border-top: 5px solid var(--agro-harvest);
    padding-top: 1.4rem;
}

.agro-intro__copy p {
    color: #4a554f;
    line-height: 1.7;
}

.agro-intro__copy p + p {
    margin-top: 1.1rem;
}

.agro-intro__lead {
    color: var(--agro-ink) !important;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 650;
    line-height: 1.45 !important;
}

.agro-text-link {
    color: var(--agro-rust-dark);
    display: inline-flex;
    font-weight: 850;
    gap: 0.5rem;
    margin-top: 1.5rem;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.agro-program {
    background: var(--agro-ink);
    color: var(--agro-white);
    padding: clamp(5rem, 9vw, 8rem) var(--agro-bleed);
}

.agro-program__header {
    align-items: end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.agro-program .agro-kicker {
    color: var(--agro-harvest);
}

.agro-program__availability {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    flex-direction: column;
    min-width: 190px;
    padding-left: 1rem;
}

.agro-program__availability span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.agro-program__availability strong {
    color: var(--agro-harvest);
    font-size: 1rem;
    margin-top: 0.3rem;
}

.agro-day-selector {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.agro-day-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: grid;
    font-family: inherit;
    gap: 0.1rem;
    min-height: 112px;
    padding: 1rem;
    text-align: left;
    transition: background-color 180ms ease, color 180ms ease;
}

.agro-day-tab strong {
    font-family: var(--agro-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.06em;
    line-height: 1;
}

.agro-day-tab span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Mobile: the full weekday name ("sexta-feira") wraps into several lines in
   a 390px tab strip. Show a concise visual label instead, while the full
   name stays in the DOM for screen readers via the tab's aria-label. */
.agro-day-tab__short {
    display: none;
}

@media (max-width: 560px) {
    .agro-day-tab__full {
        display: none;
    }

    .agro-day-tab__short {
        display: inline;
    }

    /* Keep "SET · SEX/SÁB/DOM/SEG" on a single line: tighten the tracking
       and forbid wrapping only on this label. */
    .agro-day-tab span {
        font-size: 0.66rem;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }

    .agro-day-tab {
        padding: 0.85rem 0.7rem;
    }
}

.agro-day-tab:hover,
.agro-day-tab[aria-selected="true"] {
    background: var(--agro-harvest);
    color: var(--agro-ink);
}

.agro-program__content {
    min-height: 315px;
}

.agro-program__fallback {
    align-items: center;
    background: var(--agro-paper);
    color: var(--agro-ink);
    display: grid;
    gap: 1.25rem 2rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 1px;
    min-height: 310px;
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
}

.agro-program__fallback::before {
    color: rgba(200, 81, 45, 0.12);
    content: "EM BREVE";
    font-family: var(--agro-display);
    font-size: clamp(4rem, 11vw, 10rem);
    letter-spacing: -0.08em;
    line-height: 0.75;
    position: absolute;
    right: 2rem;
    top: 1rem;
}

.agro-program__fallback > * {
    position: relative;
}

.agro-program__fallback h3 {
    font-family: var(--agro-display);
    font-size: clamp(1.8rem, 3.8vw, 3.6rem);
    letter-spacing: -0.065em;
    line-height: 1.05;
    max-width: 680px;
    text-transform: uppercase;
}

.agro-program__fallback p:not(.agro-kicker) {
    color: #536059;
    grid-column: 1;
    max-width: 620px;
}

.agro-program__fallback .agro-button {
    grid-column: 2;
    grid-row: 2 / 4;
}

.agro-program-list {
    display: grid;
    gap: 1px;
    list-style: none;
    margin-top: 1px;
}

.agro-program-item {
    align-items: start;
    background: rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    padding: 1.4rem;
}

.agro-program-item time {
    color: var(--agro-harvest);
    font-family: var(--agro-display);
    font-size: 1.5rem;
}

.agro-program-item h3 {
    font-size: 1.2rem;
}

.agro-program-item p,
.agro-program-item span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
}

.agro-program-item.is-featured {
    border-left: 5px solid var(--agro-harvest);
}

.agro-program-item--spotlight {
    align-items: center;
    background:
        radial-gradient(circle at 88% 18%, rgba(231, 182, 79, 0.22), transparent 26%),
        linear-gradient(115deg, rgba(200, 81, 45, 0.34), rgba(255, 255, 255, 0.08) 58%);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 285px;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    position: relative;
}

.agro-program-item--spotlight::after {
    border: 1px solid rgba(231, 182, 79, 0.28);
    border-radius: 50%;
    content: "";
    height: 280px;
    position: absolute;
    right: -95px;
    top: -120px;
    width: 280px;
}

.agro-program-item--spotlight > * {
    position: relative;
    z-index: 1;
}

/* Date is a compact stacked stamp — day over month — so it reads as a
   label, not as a second headline competing with the attraction. */
.agro-program-item--spotlight time {
    align-items: baseline;
    color: var(--agro-harvest);
    display: flex;
    flex-direction: column;
    font-family: var(--agro-display);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    letter-spacing: -0.03em;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.agro-program-item--spotlight h3 {
    font-family: var(--agro-display);
    font-size: clamp(2.6rem, 5.4vw, 5rem);
    letter-spacing: var(--agro-ls-display);
    line-height: var(--agro-lh-display);
    text-transform: uppercase;
}

.agro-program-item--spotlight > span {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--agro-white);
    font-size: var(--agro-small);
    font-weight: 800;
    justify-self: end;
    letter-spacing: var(--agro-ls-meta);
    padding: 0.6rem 0.8rem;
    text-transform: uppercase;
}

.agro-program__update-note {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 1.15rem 1.4rem 0;
}

.agro-universe {
    background: var(--agro-straw);
    padding: clamp(5rem, 10vw, 9rem) var(--agro-bleed);
}

.agro-universe__heading {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
}

.agro-universe__heading h2 {
    max-width: 940px;
}

.agro-universe__mosaic {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.agro-axis {
    background: var(--agro-white);
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: clamp(1.3rem, 2.4vw, 2rem);
    position: relative;
}

.agro-axis > span {
    color: var(--agro-rust);
    font-size: var(--agro-small);
    font-weight: 850;
    letter-spacing: var(--agro-ls-meta);
    text-transform: uppercase;
}

.agro-axis h3 {
    font-family: var(--agro-display);
    font-size: var(--agro-display-md);
    letter-spacing: var(--agro-ls-heading);
    line-height: var(--agro-lh-display);
    margin-top: auto !important;
    text-transform: uppercase;
}

.agro-axis p {
    color: #566159;
    font-size: 0.86rem;
    line-height: 1.6;
    margin-top: 0.8rem !important;
    max-width: 34ch;
}

/* Every module carries the same structural weight; the asymmetry lives
   in colour and in the city band, never in unpredictable spans. */
.agro-axis--field { background: var(--agro-rust); color: #fff; }
.agro-axis--field > span,
.agro-axis--field p { color: rgba(255, 255, 255, 0.82); }
.agro-axis--business { background: var(--agro-harvest); }
.agro-axis--music { background: var(--agro-ink); color: #fff; }
.agro-axis--music > span { color: var(--agro-harvest); }
.agro-axis--music p { color: rgba(255, 255, 255, 0.74); }
.agro-axis--city {
    background: var(--agro-forest);
    color: #fff;
    grid-column: 1 / -1;
    min-height: 200px;
}
.agro-axis--city > span { color: var(--agro-harvest); }
/* One line on desktop: the scale yields to the composition, not the
   other way round. Wrapping is only allowed once the viewport is narrow. */
.agro-axis--city h3 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: var(--agro-lh-display);
    white-space: nowrap;
}
.agro-axis--city p { color: rgba(255, 255, 255, 0.8); max-width: 62ch; }

.agro-plan {
    background: var(--agro-paper);
    padding: clamp(5rem, 10vw, 9rem) var(--agro-bleed);
}

.agro-plan__intro {
    display: grid;
    gap: 1.5rem 4rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
}

.agro-plan__intro .agro-kicker {
    grid-column: 1 / -1;
}

.agro-plan__intro p:last-child {
    color: #4b5750;
    font-size: 1.05rem;
    line-height: 1.7;
}

.agro-plan__links {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(3rem, 6vw, 5rem);
}

.agro-plan-card {
    background: var(--agro-white);
    color: var(--agro-ink);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 1.4rem;
    position: relative;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.agro-plan-card:hover {
    background: var(--agro-harvest);
    transform: translateY(-4px);
}

.agro-plan-card__index {
    color: var(--agro-rust-dark);
    font-size: 0.68rem;
    font-weight: 850;
}

.agro-plan-card strong {
    font-family: var(--agro-display);
    font-size: clamp(1.6rem, 2.5vw, 2.6rem);
    letter-spacing: -0.06em;
    line-height: 0.95;
    margin-top: auto;
    text-transform: uppercase;
}

.agro-plan-card small {
    color: #657068;
    font-size: 0.74rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.agro-plan-card i {
    font-size: 1.2rem;
    font-style: normal;
    position: absolute;
    right: 1.2rem;
    top: 1rem;
}

.agro-plan-card--stay,
.agro-plan-card--food,
.agro-plan-card--map {
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: 330px;
}

.agro-plan-card--stay {
    background-image: linear-gradient(rgba(23, 34, 29, 0.25), rgba(23, 34, 29, 0.88)), url("../images/WEBP/RUA-DO-MATHE-_1_.webp");
    grid-column: span 2;
}

.agro-plan-card--food {
    background-image: linear-gradient(rgba(23, 34, 29, 0.2), rgba(23, 34, 29, 0.9)), url("../images/rotas/rota-sabores-memorias.webp");
}

.agro-plan-card--map {
    background-image: linear-gradient(rgba(23, 34, 29, 0.16), rgba(23, 34, 29, 0.88)), url("../images/praca_rio_iguacu.jpg");
}

.agro-plan-card--stay .agro-plan-card__index,
.agro-plan-card--food .agro-plan-card__index,
.agro-plan-card--map .agro-plan-card__index,
.agro-plan-card--stay small,
.agro-plan-card--food small,
.agro-plan-card--map small {
    color: rgba(255, 255, 255, 0.82);
}

.agro-plan-card--stay:hover,
.agro-plan-card--food:hover,
.agro-plan-card--map:hover {
    background-color: transparent;
    color: #fff;
}

.agro-arrival {
    align-items: stretch;
    background: var(--agro-white);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.agro-arrival__media {
    min-height: 620px;
    overflow: hidden;
    position: relative;
}

.agro-arrival__media img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.agro-arrival__media::after {
    background: linear-gradient(0deg, rgba(23, 34, 29, 0.76), transparent 48%);
    content: "";
    inset: 0;
    position: absolute;
}

.agro-arrival__media span {
    bottom: 2rem;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 850;
    left: 2rem;
    letter-spacing: 0.12em;
    position: absolute;
    text-transform: uppercase;
    z-index: 1;
}

.agro-arrival h2 {
    font-size: var(--agro-display-md);
    max-width: 18ch;
}

.agro-arrival__copy {
    align-content: center;
    display: grid;
    gap: 1.5rem;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
}

.agro-arrival dl {
    border-bottom: 1px solid var(--agro-line);
    border-top: 1px solid var(--agro-line);
    margin: 2rem 0;
}

.agro-arrival dl > div {
    display: grid;
    gap: 1rem;
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 0.8rem 0;
}

.agro-arrival dl > div + div {
    border-top: 1px solid var(--agro-line);
}

.agro-arrival dt {
    color: var(--agro-rust-dark);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agro-arrival dd {
    font-weight: 750;
}

.agro-arrival__copy > p:not(.agro-kicker) {
    color: #566159;
    line-height: 1.7;
}

.agro-arrival .agro-button {
    align-self: flex-start;
    margin-top: 1.5rem;
}

.agro-info {
    margin: 0 auto;
    max-width: var(--agro-max);
    padding: clamp(4.5rem, 8vw, 7rem) var(--agro-gutter);
}

.agro-info > div:first-child {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(200px, 0.45fr) minmax(0, 1fr);
}

.agro-info__confirmed {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.agro-info__confirmed article {
    background: var(--agro-straw);
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.agro-info__confirmed span {
    color: var(--agro-rust-dark);
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 850;
    letter-spacing: var(--agro-ls-meta);
    text-transform: uppercase;
}

.agro-info__confirmed strong {
    font-family: var(--agro-display);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.35;
    margin-top: auto;
    text-transform: uppercase;
}

.agro-official {
    align-items: center;
    background: var(--agro-forest);
    color: #fff;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 1px;
    padding: clamp(2rem, 5vw, 4rem);
}

.agro-official .agro-kicker {
    color: var(--agro-harvest);
}

.agro-official h3 {
    font-family: var(--agro-display);
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 1;
    text-transform: uppercase;
}

.agro-official p:last-child {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
    margin-top: 0.8rem;
    max-width: 680px;
}

.agro-official .agro-button {
    flex: 0 0 auto;
}

.agro-closing {
    background: var(--agro-ink);
    color: #fff;
    min-height: 650px;
    overflow: hidden;
    position: relative;
}

.agro-closing__photo {
    background-image: linear-gradient(90deg, rgba(23, 34, 29, 0.98) 0%, rgba(23, 34, 29, 0.72) 50%, rgba(23, 34, 29, 0.2) 100%), url("../images/PONTE_SOB_O_RIO_IGUACU.jpg");
    background-position: center;
    background-size: cover;
    inset: 0;
    opacity: 0.8;
    position: absolute;
}

.agro-closing__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: var(--agro-max);
    min-height: 650px;
    padding: 5rem var(--agro-gutter);
    position: relative;
}

.agro-closing .agro-kicker {
    color: var(--agro-harvest);
}

.agro-closing p:not(.agro-kicker) {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    margin-top: 1.5rem;
    max-width: 620px;
}

.agro-closing .agro-button {
    align-self: flex-start;
    margin-top: 2rem;
}

.agro-footer {
    background: #0d1713;
    margin-top: 0;
    padding: 2.5rem 1.5rem;
}

.agro-footer__inner {
    margin: 0 auto;
    max-width: 1000px;
}

.agro-footer__inner > p + p {
    margin-top: 0.25rem;
}

.agro-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.agro-footer .footer-system-status {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 0.5rem 1.2rem;
    justify-content: center;
    margin-top: 1rem;
    opacity: 0.76;
}

.agro-motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 1050px) {
    .agro-plan__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .agro-plan-card--stay { grid-column: span 1; }
    .agro-arrival { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr); }
}

@media (max-width: 900px) {
    /* Six modules no longer fit three across without crushing the
       descriptions, so the mosaic drops to two columns. */
    .agro-universe__mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agro-axis--city h3 { white-space: normal; }
}

@media (max-width: 820px) {
    :root { --agro-local-nav-height: 62px; }
    html { scroll-padding-top: calc(var(--sms-header-offset, 164px) + var(--agro-local-nav-height)); }
    .agrosamas-page section[id] { scroll-margin-top: 0; }
    .agro-hero { min-height: auto; }
    .agro-hero__photo { inset: 0; opacity: 0.45; }
    .agro-hero__inner {
        align-items: start;
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 9.5rem;
    }
    .agro-portal-mark { margin-bottom: 2.5rem; }
    .agro-date-block { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); padding: 1.8rem 0 0; }
    .agro-date-block__range span { font-size: clamp(3.4rem, 12vw, 5rem); }
    .agro-countdown { grid-template-columns: 1fr; }
    .agro-countdown__label {
        border-bottom: 1px solid rgba(23, 34, 29, 0.22);
        border-right: 0;
        padding-bottom: 0.7rem;
        padding-top: 0.9rem;
    }
    .agro-countdown__values > span { padding-bottom: 0.9rem; padding-top: 0.9rem; }
    .agro-local-nav.is-fixed { top: var(--sms-header-offset, 164px); }
    .agro-section { grid-template-columns: 48px minmax(0, 1fr); }
    .agro-intro__copy { grid-column: 2; }
    .agro-universe__heading,
    .agro-plan__intro,
    .agro-info > div:first-child { grid-template-columns: 1fr; }
    .agro-axis { min-height: 240px; padding: clamp(1.2rem, 2vw, 1.6rem); }
    .agro-axis h3 { font-size: var(--agro-heading-lg); }
    .agro-axis--city { min-height: 190px; }
    .agro-axis--city h3 { font-size: var(--agro-display-md); }
    .agro-plan__intro .agro-kicker { grid-column: auto; }
    .agro-plan__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agro-arrival { grid-template-columns: 1fr; }
    .agro-arrival__media { min-height: 460px; }
    .agro-arrival__copy { padding: 4rem var(--agro-gutter); }
    .agro-info__confirmed { grid-template-columns: 1fr; }
    .agro-info__confirmed article { min-height: 130px; }
}

@media (max-width: 560px) {
    .agro-breadcrumb { padding-left: var(--agro-gutter); padding-right: var(--agro-gutter); }
    .agro-hero__inner { padding: 3.5rem var(--agro-gutter) 12rem; }
    .agro-hero__lead { font-size: 0.98rem; }
    .agro-hero__actions { align-items: stretch; flex-direction: column; }
    .agro-button { width: 100%; }
    .agro-countdown__values > span { min-width: 0; padding-left: 0.75rem; padding-right: 0.75rem; }
    .agro-countdown__values strong { font-size: clamp(1.5rem, 6vw, 2rem); }
    .agro-local-nav__inner { padding-left: 0.75rem; padding-right: 0.75rem; }
    .agro-local-nav a { font-size: 0.68rem; min-height: 38px; padding: 0.6rem 0.72rem; }
    .agro-section { gap: 1.2rem; grid-template-columns: 1fr; }
    .agro-section__number { font-size: 0.9rem; }
    .agro-intro__copy { grid-column: auto; }
    .agro-section__heading h2,
    .agro-universe h2,
    .agro-plan h2,
    .agro-arrival h2,
    .agro-info h2,
    .agro-closing h2,
    .agro-program h2 { font-size: var(--agro-display-md); }
    .agro-program__header { align-items: flex-start; flex-direction: column; }
    .agro-program__availability { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); padding: 0.8rem 0 0; width: 100%; }
    .agro-day-selector { gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
    .agro-day-tab { min-height: 96px; min-width: 102px; scroll-snap-align: start; }
    .agro-program__fallback { display: flex; flex-direction: column; align-items: flex-start; min-height: 390px; padding: 2rem 1.25rem; }
    .agro-program__fallback::before { right: 1rem; top: 1rem; }
    .agro-program__fallback .agro-button { align-self: stretch; }
    .agro-program-item { grid-template-columns: 72px minmax(0, 1fr); }
    .agro-program-item > span { grid-column: 2; }
    /* Date stamp moves above the name so the attraction keeps the full
       width of the card instead of being squeezed beside the date. */
    .agro-program-item--spotlight {
        align-items: start;
        gap: 1.25rem;
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 2rem 1.25rem;
    }
    .agro-program-item--spotlight time { flex-direction: row; gap: 0.5rem; }
    .agro-program-item--spotlight h3 { font-size: var(--agro-display-md); }
    .agro-program-item--spotlight > span { grid-column: 1; justify-self: start; }
    .agro-title__official-logo { width: min(100%, 300px); }
    .agro-universe__mosaic { grid-template-columns: 1fr; }
    .agro-axis { min-height: 200px; }
    .agro-axis--city { min-height: 180px; }
    .agro-axis--city h3 { font-size: var(--agro-heading-lg); }
    .agro-plan__links { grid-template-columns: 1fr; }
    .agro-plan-card,
    .agro-plan-card--stay,
    .agro-plan-card--food,
    .agro-plan-card--map { min-height: 190px; }
    .agro-plan-card--stay,
    .agro-plan-card--food,
    .agro-plan-card--map { min-height: 280px; }
    .agro-arrival__media { min-height: 360px; }
    .agro-arrival__media span { bottom: 1rem; left: 1rem; }
    .agro-arrival__copy { padding: 3.5rem var(--agro-gutter); }
    .agro-arrival dl > div { grid-template-columns: 1fr; gap: 0.25rem; }
    .agro-arrival .agro-button { align-self: stretch; }
    .agro-official { align-items: stretch; flex-direction: column; padding: 2rem 1.25rem; }
    .agro-official .agro-button { align-self: stretch; }
    .agro-closing,
    .agro-closing__content { min-height: 610px; }
    .agro-closing__content { padding-left: var(--agro-gutter); padding-right: var(--agro-gutter); }
    .agro-closing .agro-button { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body[data-agro-temporal-state="EVENT_LIVE"] .agro-status span { animation: none; }
    .agro-button,
    .agro-day-tab,
    .agro-plan-card,
    .agro-motion-ready [data-reveal] { transition: none; }
    .agro-button:hover,
    .agro-plan-card:hover { transform: none; }
    .agro-motion-ready [data-reveal] { opacity: 1; transform: none; }
}

body.high-contrast .agro-hero,
body.high-contrast .agro-program,
body.high-contrast .agro-axis,
body.high-contrast .agro-plan-card,
body.high-contrast .agro-arrival,
body.high-contrast .agro-info__confirmed article,
body.high-contrast .agro-official,
body.high-contrast .agro-closing,
body.high-contrast .agro-footer,
body.high-contrast .agro-local-nav {
    background: #000 !important;
    border-color: #ff0 !important;
    color: #ff0 !important;
}

body.high-contrast .agro-button,
body.high-contrast .agro-day-tab {
    border: 2px solid #ff0 !important;
}

body.high-contrast .agro-hero__photo,
body.high-contrast .agro-closing__photo {
    opacity: 0.22;
}

/* ---------------------------------------------------------------------------
   Anchor offset for the AgroSamas local navigation.

   nav-shared.js fornece o offset medido do header global. A página soma a
   altura medida da própria nav local, sem duplicar a geometria do shared header.
   --------------------------------------------------------------------------- */
@media (max-width: 820px) {
    html:has(.agrosamas-page) {
        scroll-padding-top: calc(var(--sms-header-offset, 164px) + var(--agro-local-nav-height)) !important;
    }
}

@media (max-width: 420px) {
    html:has(.agrosamas-page) {
        scroll-padding-top: calc(var(--sms-header-offset, 159px) + var(--agro-local-nav-height)) !important;
    }
}
