/* ============================================================
   EVENTO SINGLE — SE AGRÍCOLA
============================================================ */

.sa-evento-single {
    --ev-primary: var(--primary-color, #17663a);
    --ev-primary-dark: #0e4d2b;
    --ev-primary-soft: #eaf5ee;
    --ev-accent: var(--accent-color, #d4a33f);
    --ev-accent-soft: #fff5dc;

    --ev-text: #17251e;
    --ev-muted: #66756d;
    --ev-border: #dce7e0;
    --ev-surface: #ffffff;
    --ev-background: #f5f8f6;

    --ev-shadow: 0 16px 45px rgba(21, 65, 40, 0.08);
    --ev-shadow-hover: 0 22px 55px rgba(21, 65, 40, 0.14);

    color: var(--ev-text);
    background: var(--ev-background);
    min-height: 75vh;
}

/* ============================================================
   TOPO E BREADCRUMB
============================================================ */

.sa-evento-top {
    padding: 20px 0;
    border-bottom: 1px solid var(--ev-border);
    background: var(--ev-surface);
}

.sa-evento-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--ev-muted);
    font-size: 0.8rem;
}

.sa-evento-breadcrumb a,
.sa-evento-breadcrumb span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.sa-evento-breadcrumb a {
    flex-shrink: 0;
    color: var(--ev-muted);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sa-evento-breadcrumb a:hover {
    color: var(--ev-primary);
}

.sa-evento-breadcrumb > span {
    overflow: hidden;
    color: var(--ev-text);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-evento-breadcrumb svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

.sa-evento-content {
    padding: 44px 0 76px;
}

/* ============================================================
   CONTEÚDO PRINCIPAL
============================================================ */

.sa-evento-article {
    overflow: hidden;
    border: 1px solid var(--ev-border);
    border-radius: 24px;
    background: var(--ev-surface);
    box-shadow: var(--ev-shadow);
}

/* ============================================================
   IMAGEM
============================================================ */

.sa-evento-cover {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    background: #dce6df;
}

.sa-evento-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-evento-cover__overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    to bottom,
                    rgba(8, 32, 19, 0.02) 35%,
                    rgba(8, 32, 19, 0.52) 100%
            );
}

.sa-evento-date-card {
    position: absolute;
    top: 22px;
    left: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 78px;
    min-height: 91px;
    padding: 10px 7px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 17px;
    color: var(--ev-text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.17);
    backdrop-filter: blur(8px);
}

.sa-evento-date-card strong {
    font-size: 2rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.sa-evento-date-card span {
    margin-top: 5px;
    color: var(--ev-primary);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.sa-evento-date-card small {
    margin-top: 2px;
    color: #728078;
    font-size: 0.63rem;
    font-weight: 800;
}

.sa-evento-status {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 850;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.sa-evento-status svg {
    width: 16px;
    height: 16px;
}

.sa-evento-status.is-upcoming,
.sa-evento-related figure .is-upcoming {
    color: #16522f;
    background: rgba(235, 248, 240, 0.96);
}

.sa-evento-status.is-today,
.sa-evento-related figure .is-today {
    color: #714a00;
    background: rgba(255, 242, 202, 0.97);
}

.sa-evento-status.is-ended,
.sa-evento-related figure .is-ended {
    color: #59655e;
    background: rgba(241, 244, 242, 0.96);
}

.sa-evento-status.is-pending,
.sa-evento-related figure .is-pending {
    color: #4f5b54;
    background: rgba(243, 246, 244, 0.96);
}

/* ============================================================
   CABEÇALHO
============================================================ */

.sa-evento-header {
    padding: 31px 34px 26px;
}

.sa-evento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sa-evento-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(23, 102, 58, 0.14);
    border-radius: 999px;
    color: var(--ev-primary);
    background: var(--ev-primary-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.sa-evento-tag svg {
    width: 15px;
    height: 15px;
}

.sa-evento-tag--featured {
    color: #775009;
    border-color: rgba(212, 163, 63, 0.25);
    background: var(--ev-accent-soft);
}

.sa-evento-header h1 {
    max-width: 850px;
    margin: 0;
    color: var(--ev-text);
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.sa-evento-header__lead {
    max-width: 720px;
    margin: 17px 0 0;
    color: var(--ev-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================================
   RESUMO
============================================================ */

.sa-evento-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 34px 12px;
    padding: 20px;
    border: 1px solid var(--ev-border);
    border-radius: 18px;
    background: #f8faf9;
}

.sa-evento-summary__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 12px;
}

.sa-evento-summary__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--ev-primary);
    background: var(--ev-primary-soft);
}

.sa-evento-summary__icon svg {
    width: 20px;
    height: 20px;
}

.sa-evento-summary__item div {
    min-width: 0;
}

.sa-evento-summary__item small,
.sa-evento-info small,
.sa-evento-contact small {
    display: block;
    margin-bottom: 3px;
    color: var(--ev-muted);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.03em;
}

.sa-evento-summary__item strong {
    display: block;
    color: var(--ev-text);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.45;
}

/* ============================================================
   SEÇÕES
============================================================ */

.sa-evento-section {
    margin: 0 34px;
    padding: 32px 0;
    border-bottom: 1px solid var(--ev-border);
}

.sa-evento-section:last-child {
    border-bottom: 0;
}

.sa-evento-section__header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.sa-evento-section__header > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    color: var(--ev-primary);
    background: var(--ev-primary-soft);
}

.sa-evento-section__header svg {
    width: 21px;
    height: 21px;
}

.sa-evento-section__header small {
    display: block;
    margin-bottom: 2px;
    color: var(--ev-primary);
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sa-evento-section__header h2 {
    margin: 0;
    color: var(--ev-text);
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.sa-evento-description {
    color: #45564c;
    font-size: 0.98rem;
    line-height: 1.85;
}

/* ============================================================
   GRADE DE INFORMAÇÕES
============================================================ */

.sa-evento-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sa-evento-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid var(--ev-border);
    border-radius: 15px;
    background: #fafcfb;
}

.sa-evento-info > svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--ev-primary);
}

.sa-evento-info strong {
    display: block;
    color: var(--ev-text);
    font-size: 0.86rem;
    line-height: 1.45;
}

/* ============================================================
   LOCALIZAÇÃO
============================================================ */

.sa-evento-location {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 22px;
    border: 1px solid var(--ev-border);
    border-radius: 18px;
    background:
            linear-gradient(
                    135deg,
                    #f8fbf9,
                    var(--ev-primary-soft)
            );
}

.sa-evento-location__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    color: #ffffff;
    background: var(--ev-primary);
}

.sa-evento-location__icon svg {
    width: 25px;
    height: 25px;
}

.sa-evento-location__content h3 {
    margin: 0;
    color: var(--ev-text);
    font-size: 1.05rem;
    font-weight: 850;
}

.sa-evento-location__content p {
    margin: 7px 0 0;
    color: var(--ev-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.sa-evento-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    margin-top: 15px;
    padding: 0 15px;
    border: 1px solid rgba(23, 102, 58, 0.25);
    border-radius: 11px;
    color: var(--ev-primary);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease;
}

.sa-evento-outline-button:hover {
    color: #ffffff;
    border-color: var(--ev-primary);
    background: var(--ev-primary);
}

.sa-evento-outline-button svg {
    width: 17px;
    height: 17px;
}

/* ============================================================
   CONTATOS
============================================================ */

.sa-evento-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sa-evento-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--ev-border);
    border-radius: 15px;
    color: var(--ev-text);
    background: #fafcfb;
    text-decoration: none;
    transition:
            transform 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.sa-evento-contact:hover {
    transform: translateY(-2px);
    color: var(--ev-text);
    border-color: rgba(23, 102, 58, 0.32);
    box-shadow: 0 10px 26px rgba(21, 65, 40, 0.08);
}

.sa-evento-contact > svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    color: var(--ev-primary);
}

.sa-evento-contact div {
    min-width: 0;
}

.sa-evento-contact strong {
    display: block;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   SIDEBAR
============================================================ */

.sa-evento-sidebar {
    position: sticky;
    top: 95px;
    display: grid;
    gap: 18px;
}

.sa-evento-cta,
.sa-evento-share,
.sa-evento-related {
    border: 1px solid var(--ev-border);
    border-radius: 20px;
    background: var(--ev-surface);
    box-shadow: var(--ev-shadow);
}

.sa-evento-cta {
    overflow: hidden;
    padding: 26px;
}

.sa-evento-cta::before {
    content: "";
    display: block;
    width: 54px;
    height: 5px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: var(--ev-accent);
}

.sa-evento-cta__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ev-primary);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sa-evento-cta__label svg {
    width: 16px;
    height: 16px;
}

.sa-evento-cta h2 {
    margin: 13px 0 0;
    color: var(--ev-text);
    font-size: 1.38rem;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.sa-evento-cta__details {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding: 18px 0;
    border-top: 1px solid var(--ev-border);
    border-bottom: 1px solid var(--ev-border);
}

.sa-evento-cta__details > div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.sa-evento-cta__details > div > svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    color: var(--ev-primary);
}

.sa-evento-cta__details span {
    min-width: 0;
}

.sa-evento-cta__details small {
    display: block;
    margin-bottom: 2px;
    color: var(--ev-muted);
    font-size: 0.67rem;
    font-weight: 750;
}

.sa-evento-cta__details strong {
    display: block;
    color: var(--ev-text);
    font-size: 0.8rem;
    line-height: 1.45;
}

.sa-evento-primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 51px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 13px;
    color: #ffffff;
    background: var(--ev-primary);
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(23, 102, 58, 0.2);
    transition:
            transform 0.2s ease,
            background-color 0.2s ease,
            box-shadow 0.2s ease;
}

.sa-evento-primary-button:hover {
    transform: translateY(-2px);
    color: #ffffff;
    background: var(--ev-primary-dark);
    box-shadow: 0 16px 32px rgba(23, 102, 58, 0.28);
}

.sa-evento-primary-button svg {
    width: 19px;
    height: 19px;
}

.sa-evento-cta__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 19px;
    padding: 13px;
    border-radius: 11px;
    color: var(--ev-muted);
    background: #f6f9f7;
    font-size: 0.76rem;
    line-height: 1.5;
}

.sa-evento-cta__notice svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: var(--ev-primary);
}

/* ============================================================
   COMPARTILHAMENTO
============================================================ */

.sa-evento-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
}

.sa-evento-share small,
.sa-evento-related__header small {
    display: block;
    margin-bottom: 2px;
    color: var(--ev-primary);
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sa-evento-share h3,
.sa-evento-related__header h3 {
    margin: 0;
    color: var(--ev-text);
    font-size: 1rem;
    font-weight: 850;
}

.sa-evento-share__buttons {
    display: flex;
    gap: 7px;
}

.sa-evento-share__buttons a,
.sa-evento-share__buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--ev-border);
    border-radius: 11px;
    color: var(--ev-primary);
    background: #ffffff;
    cursor: pointer;
    transition:
            color 0.2s ease,
            border-color 0.2s ease,
            background-color 0.2s ease;
}

.sa-evento-share__buttons a:hover,
.sa-evento-share__buttons button:hover {
    color: #ffffff;
    border-color: var(--ev-primary);
    background: var(--ev-primary);
}

.sa-evento-share__buttons svg {
    width: 18px;
    height: 18px;
}

.sa-evento-copy-message {
    width: 100%;
    color: var(--ev-primary);
    font-size: 0.72rem;
    font-weight: 750;
}

/* ============================================================
   EVENTOS RELACIONADOS
============================================================ */

.sa-evento-related {
    padding: 21px;
}

.sa-evento-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.sa-evento-related__header > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    color: var(--ev-primary);
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
}

.sa-evento-related__header > a svg {
    width: 15px;
    height: 15px;
}

.sa-evento-related__list {
    display: grid;
    gap: 13px;
}

.sa-evento-related__item {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    color: var(--ev-text);
    text-decoration: none;
}

.sa-evento-related__item figure {
    position: relative;
    overflow: hidden;
    height: 84px;
    margin: 0;
    border-radius: 12px;
    background: #dce6df;
}

.sa-evento-related__item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sa-evento-related__item:hover figure img {
    transform: scale(1.06);
}

.sa-evento-related__item figure span {
    position: absolute;
    right: 5px;
    bottom: 5px;
    max-width: calc(100% - 10px);
    padding: 4px 6px;
    border-radius: 999px;
    font-size: 0.52rem;
    font-weight: 850;
    white-space: nowrap;
}

.sa-evento-related__item > div {
    min-width: 0;
}

.sa-evento-related__item h4 {
    display: -webkit-box;
    overflow: hidden;
    margin: 1px 0 7px;
    color: var(--ev-text);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.sa-evento-related__item:hover h4 {
    color: var(--ev-primary);
}

.sa-evento-related__item > div > span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--ev-muted);
    font-size: 0.65rem;
    font-weight: 650;
}

.sa-evento-related__item > div > span svg {
    width: 13px;
    height: 13px;
    color: var(--ev-primary);
}

.sa-evento-related__empty {
    display: grid;
    justify-items: center;
    padding: 25px 15px;
    color: var(--ev-muted);
    text-align: center;
}

.sa-evento-related__empty svg {
    width: 30px;
    height: 30px;
    margin-bottom: 9px;
    color: var(--ev-primary);
}

.sa-evento-related__empty p {
    margin: 0;
    font-size: 0.78rem;
}

/* ============================================================
   RESPONSIVIDADE
============================================================ */

@media (max-width: 991.98px) {
    .sa-evento-sidebar {
        position: static;
    }

    .sa-evento-content {
        padding-top: 34px;
    }
}

@media (max-width: 767.98px) {
    .sa-evento-content {
        padding: 25px 0 55px;
    }

    .sa-evento-article {
        border-radius: 19px;
    }

    .sa-evento-header {
        padding: 25px 22px 21px;
    }

    .sa-evento-summary {
        grid-template-columns: 1fr;
        margin: 0 22px 8px;
        padding: 11px;
    }

    .sa-evento-summary__item {
        padding: 10px;
    }

    .sa-evento-section {
        margin: 0 22px;
        padding: 27px 0;
    }

    .sa-evento-info-grid,
    .sa-evento-contact-grid {
        grid-template-columns: 1fr;
    }

    .sa-evento-cover {
        aspect-ratio: 4 / 3;
    }

    .sa-evento-date-card {
        top: 14px;
        left: 14px;
        width: 67px;
        min-height: 78px;
    }

    .sa-evento-date-card strong {
        font-size: 1.65rem;
    }

    .sa-evento-status {
        right: 13px;
        bottom: 13px;
        padding: 7px 10px;
        font-size: 0.67rem;
    }
}

@media (max-width: 575.98px) {
    .sa-evento-breadcrumb > span {
        display: none;
    }

    .sa-evento-location {
        flex-direction: column;
    }

    .sa-evento-cta {
        padding: 22px;
    }

    .sa-evento-related__item {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-evento-primary-button,
    .sa-evento-contact,
    .sa-evento-related__item figure img,
    .sa-evento-share__buttons a,
    .sa-evento-share__buttons button {
        transition: none;
    }
}