/* ================================================================
   PATCH 21 — HOME V3 / REFERÊNCIA VISUAL 2026-09-15
   Hero visual, busca, destaques, atalhos Academy e CTA compacto.
   ================================================================ */

.home-hero-v3 {
    position: relative;
    overflow: hidden;
    padding: 34px 0 48px;
    border-bottom: 1px solid rgba(168, 205, 0, .14);
    background:
        radial-gradient(circle at 92% 18%, rgba(168, 205, 0, .20), transparent 30%),
        radial-gradient(circle at 5% 90%, rgba(168, 205, 0, .10), transparent 28%),
        linear-gradient(110deg, #fbfcfa 0%, #f5f8f1 52%, #eef8df 100%);
}

.home-hero-v3::before,
.home-hero-v3::after {
    position: absolute;
    border-radius: 999px;
    background: rgba(168, 205, 0, .08);
    content: "";
    pointer-events: none;
}

.home-hero-v3::before {
    top: -110px;
    right: -70px;
    width: 360px;
    height: 360px;
}

.home-hero-v3::after {
    bottom: -170px;
    left: -100px;
    width: 330px;
    height: 330px;
}

.home-hero-v3-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
    min-height: 360px;
}

.home-hero-v3-copy {
    max-width: 590px;
}

.home-hero-v3-copy h1 {
    max-width: 590px;
    margin: 13px 0 12px;
    font-size: clamp(3rem, 5.1vw, 5.15rem);
    line-height: .9;
    letter-spacing: -.065em;
}

.home-hero-v3-copy > p {
    max-width: 560px;
    margin: 0;
    color: #637068;
    font-size: 1.06rem;
    line-height: 1.56;
}

.home-hero-v3 .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 23px;
}

.home-hero-v3 .home-hero-actions .button {
    min-height: 46px;
    padding: 11px 23px;
}

.home-button-outline {
    border: 1px solid #a8cd00;
    background: rgba(255,255,255,.72);
    color: #3d5200;
}

.home-button-outline:hover {
    background: #fff;
}

.home-hero-visual {
    position: relative;
    min-height: 330px;
}

.home-hero-visual-stack {
    position: relative;
    width: 100%;
    height: 318px;
}

.home-hero-visual-card {
    position: absolute;
    display: block;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,.95);
    border-radius: 24px;
    background: #142229;
    box-shadow: 0 24px 60px rgba(7,19,27,.16);
    transform-origin: center bottom;
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-hero-visual-card:hover {
    z-index: 5;
    box-shadow: 0 30px 70px rgba(7,19,27,.23);
}

.home-hero-visual-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-visual-card:nth-child(1) {
    top: 48px;
    left: 0;
    z-index: 1;
    width: 34%;
    height: 225px;
    transform: rotate(-5deg);
}

.home-hero-visual-card:nth-child(1):hover {
    transform: rotate(-2deg) translateY(-4px);
}

.home-hero-visual-card:nth-child(2) {
    top: 4px;
    left: 30%;
    z-index: 3;
    width: 40%;
    height: 270px;
}

.home-hero-visual-card:nth-child(2):hover {
    transform: translateY(-5px);
}

.home-hero-visual-card:nth-child(3) {
    top: 40px;
    right: 0;
    z-index: 2;
    width: 34%;
    height: 230px;
    transform: rotate(5deg);
}

.home-hero-visual-card:nth-child(3):hover {
    transform: rotate(2deg) translateY(-4px);
}

.home-hero-visual-card:nth-child(2):last-child {
    right: 2%;
    left: auto;
    width: 44%;
    transform: rotate(4deg);
}

.home-hero-visual-card:only-child {
    top: 20px;
    left: 16%;
    width: 68%;
    height: 260px;
    transform: none;
}

.home-hero-visual-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #17262d, #a8cd00);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 950;
}

.home-hero-trustbar {
    position: absolute;
    right: 3%;
    bottom: 4px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid rgba(215,225,205,.92);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 36px rgba(7,19,27,.13);
    backdrop-filter: blur(10px);
}

.home-hero-trustbar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #223029;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}

.home-hero-trustbar svg {
    width: 17px;
    height: 17px;
    fill: #789900;
}

.home-search-section {
    position: relative;
    z-index: 4;
    background: #fff;
}

.home-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 930px);
    min-height: 58px;
    margin: -28px auto 0;
    padding: 7px 8px 7px 19px;
    border: 1px solid #e0e7da;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 15px 42px rgba(7,19,27,.11);
}

.home-search-form .home-search-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    fill: #1f2d25;
}

.home-search-form input[type="search"] {
    min-width: 0;
    min-height: 42px;
    padding: 0 4px;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #142029;
    font-size: .96rem;
}

.home-search-form input[type="search"]::placeholder {
    color: #7c8881;
}

.home-search-form button {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #a8cd00;
    cursor: pointer;
}

.home-search-form button svg {
    width: 21px;
    height: 21px;
    fill: #101d16;
}

.home-events-v3 {
    padding: 35px 0 54px !important;
    background: #fff;
}

.home-events-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: stretch;
    gap: 24px;
}

.home-events-main {
    min-width: 0;
}

.home-section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.home-events-v3 .section-heading,
.home-past-events-section .section-heading {
    margin: 0;
}

.home-events-v3 .section-heading h2,
.home-past-events-section .section-heading h2 {
    margin-top: 8px;
}

.home-section-copy {
    max-width: 690px;
    margin: 7px 0 0;
    color: #737e78;
    font-size: .93rem;
    line-height: 1.5;
}

.home-category-pills {
    display: flex;
    gap: 9px;
    max-width: 100%;
    margin-bottom: 17px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-category-pills::-webkit-scrollbar {
    display: none;
}

.home-category-pills a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 15px;
    border: 1px solid #dde5d7;
    border-radius: 999px;
    background: #fff;
    color: #55615a;
    font-size: .76rem;
    font-weight: 850;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.home-category-pills a:hover,
.home-category-pills a.is-active {
    border-color: #a8cd00;
    background: #a8cd00;
    color: #142000;
}

.home-events-v3 .home-event-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    align-items: stretch;
    gap: 16px;
}

.home-event-card-v3 {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e2e8dd;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(7,19,27,.055);
}

.home-event-card-v3 .event-card-image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.home-event-card-v3 .event-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    transition: transform .22s ease;
}

.home-event-card-v3:hover .event-image {
    transform: scale(1.018);
}

.home-event-image-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(232,248,185,.96);
    color: #314500;
    font-size: .66rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-card-v3 .event-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 14px 15px;
}

.home-event-card-v3 .event-card-body h3 {
    display: -webkit-box;
    min-height: 2.45em;
    margin: 0;
    overflow: hidden;
    color: #101e26;
    font-size: 1rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-event-meta {
    display: grid;
    gap: 7px;
    margin-top: 11px;
}

.home-event-meta span {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #707c75;
    font-size: .76rem;
    line-height: 1.35;
}

.home-event-meta svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    fill: #779a00;
}

.home-event-card-v3 .event-card-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.home-event-card-v3 .event-card-actions .price {
    min-width: 0;
    margin: 0;
    color: #24322a;
    font-size: .82rem;
    line-height: 1.25;
}

.home-event-card-v3 .event-card-actions .price small,
.home-event-card-v3 .event-card-actions .price strong {
    display: block;
}

.home-event-card-v3 .event-card-actions .price small {
    color: #7b877f;
    font-size: .67rem;
}

.home-event-card-v3 .event-card-actions .price strong {
    margin-top: 2px;
    font-size: .94rem;
}

.home-event-card-v3 .event-card-actions .button {
    flex: 0 0 auto;
    min-height: 38px;
    gap: 6px;
    padding: 8px 13px;
    font-size: .73rem;
}

.home-empty-state {
    min-height: 250px;
}

.home-product-rail {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 83px;
}

.home-product-card {
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 102px;
    min-height: 176px;
    border: 1px solid #e0e8d8;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(168,205,0,.15), transparent 44%),
        linear-gradient(135deg, #f9fbf7, #eef5e5);
    box-shadow: 0 8px 24px rgba(7,19,27,.045);
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(7,19,27,.08);
}

.home-product-card-copy {
    position: relative;
    z-index: 2;
    padding: 15px 0 15px 15px;
}

.home-product-icon {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 50%;
    background: #a8cd00;
}

.home-product-icon svg {
    width: 20px;
    height: 20px;
    fill: #112016;
}

.home-product-card h3 {
    margin: 10px 0 5px;
    color: #102029;
    font-size: 1rem;
}

.home-product-card p {
    max-width: 165px;
    margin: 0;
    color: #65726a;
    font-size: .72rem;
    line-height: 1.38;
}

.home-product-card strong {
    display: inline-block;
    margin-top: 10px;
    color: #4f6900;
    font-size: .72rem;
}

.home-product-card-media {
    position: relative;
    min-width: 0;
    background: linear-gradient(135deg, #dfead4, #eef4e7);
}

.home-product-card-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f5f9f0 0%, rgba(245,249,240,.22) 54%, transparent 100%);
    content: "";
}

.home-product-card-media img,
.home-product-card-placeholder {
    width: 100%;
    height: 100%;
}

.home-product-card-media img {
    display: block;
    object-fit: cover;
}

.home-product-card-placeholder {
    background:
        radial-gradient(circle at 70% 30%, rgba(168,205,0,.46), transparent 28%),
        linear-gradient(150deg, #dce8d2, #f2f6ee);
}

.home-promoter-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    margin-top: 22px;
    padding: 15px 18px;
    border: 1px solid #dce7d2;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 20%, rgba(168,205,0,.22), transparent 25%),
        linear-gradient(105deg, #f1f8e9 0%, #f9fbf7 56%, #edf7dc 100%);
}

.home-promoter-strip-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #a8cd00;
}

.home-promoter-strip-icon svg {
    width: 23px;
    height: 23px;
    fill: #102016;
}

.home-promoter-strip strong {
    display: block;
    color: #15242b;
    font-size: 1.08rem;
}

.home-promoter-strip p {
    margin: 3px 0 0;
    color: #69756e;
    font-size: .79rem;
    line-height: 1.35;
}

.home-promoter-strip .button {
    gap: 7px;
    min-height: 40px;
    padding: 9px 15px;
    font-size: .76rem;
}

.home-past-events-section {
    padding: 42px 0 58px !important;
    background: #f5f8f2;
}

.home-section-heading-row-past {
    margin-bottom: 18px;
}

.home-past-events-section .past-event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.home-past-events-section .past-event-card {
    overflow: hidden;
    border: 1px solid #e3e9de;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(7,19,27,.04);
}

.home-past-events-section .past-event-image-link {
    display: block;
    overflow: hidden;
}

.home-past-events-section .past-event-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-past-events-section .past-event-card-body {
    padding: 12px;
}

.home-past-events-section .past-event-card .badge {
    padding: 4px 7px;
    font-size: 9px;
}

.home-past-events-section .past-event-card h3 {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: #17262d;
    font-size: .9rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-past-events-section .event-card-date,
.home-past-events-section .past-event-location {
    margin: 7px 0 0;
    font-size: .73rem;
    line-height: 1.35;
}

@media (max-width: 1080px) {
    .home-hero-v3-grid {
        grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
        gap: 28px;
    }

    .home-hero-v3-copy h1 {
        font-size: clamp(2.8rem, 5.8vw, 4.4rem);
    }

    .home-events-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    .home-product-card {
        grid-template-columns: minmax(0, 1fr) 82px;
    }
}

@media (max-width: 960px) {
    .home-hero-v3-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-hero-v3-copy {
        max-width: 720px;
    }

    .home-hero-v3-copy h1,
    .home-hero-v3-copy > p {
        max-width: 680px;
    }

    .home-hero-visual {
        min-height: 285px;
    }

    .home-hero-visual-stack {
        width: min(720px, 100%);
        height: 270px;
        margin: 0 auto;
    }

    .home-hero-trustbar {
        right: 50%;
        transform: translateX(50%);
    }

    .home-events-layout {
        grid-template-columns: 1fr;
    }

    .home-product-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        padding-top: 0;
    }

    .home-product-card {
        grid-template-columns: minmax(0, 1fr) 128px;
    }

    .home-product-card p {
        max-width: 230px;
    }

    .home-past-events-section .past-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .home-hero-v3 {
        padding: 25px 0 43px;
    }

    .home-hero-v3-grid {
        min-height: 0;
    }

    .home-hero-v3-copy h1 {
        margin: 10px 0 10px;
        font-size: clamp(2.5rem, 11vw, 3.55rem);
        line-height: .94;
    }

    .home-hero-v3-copy > p {
        font-size: .94rem;
    }

    .home-hero-v3 .home-hero-actions {
        margin-top: 17px;
    }

    .home-hero-v3 .home-hero-actions .button {
        min-height: 43px;
        padding: 9px 16px;
    }

    .home-hero-visual {
        min-height: 245px;
    }

    .home-hero-visual-stack {
        height: 235px;
    }

    .home-hero-visual-card:nth-child(1) {
        top: 39px;
        width: 34%;
        height: 175px;
    }

    .home-hero-visual-card:nth-child(2) {
        width: 40%;
        height: 210px;
    }

    .home-hero-visual-card:nth-child(3) {
        top: 35px;
        width: 34%;
        height: 180px;
    }

    .home-hero-trustbar {
        bottom: -3px;
        gap: 10px;
        min-height: 42px;
        padding: 8px 12px;
    }

    .home-hero-trustbar span {
        font-size: .69rem;
    }

    .home-hero-trustbar svg {
        width: 15px;
        height: 15px;
    }

    .home-search-form {
        min-height: 53px;
        margin-top: -24px;
        padding-left: 15px;
    }

    .home-search-form button {
        flex-basis: 41px;
        width: 41px;
        height: 41px;
    }

    .home-events-v3 {
        padding: 28px 0 42px !important;
    }

    .home-events-v3 .section-heading h2,
    .home-past-events-section .section-heading h2 {
        font-size: clamp(1.75rem, 8.5vw, 2.25rem);
        line-height: 1.02;
    }

    .home-events-v3 .home-event-grid-v3 {
        display: flex !important;
        gap: 13px;
        width: 100%;
        max-width: 100%;
        margin: 0 -2px;
        padding: 2px 2px 15px;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-events-v3 .home-event-grid-v3::-webkit-scrollbar {
        display: none;
    }

    .home-events-v3 .home-event-grid-v3 > .home-event-card-v3 {
        flex: 0 0 min(82vw, 330px);
        max-width: min(82vw, 330px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .home-promoter-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-promoter-strip .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home-past-events-section {
        padding: 32px 0 43px !important;
    }

    .home-past-events-section .past-event-grid {
        display: flex;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        margin: 0 -2px;
        padding: 2px 2px 14px;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-past-events-section .past-event-grid::-webkit-scrollbar {
        display: none;
    }

    .home-past-events-section .past-event-grid > .past-event-card {
        flex: 0 0 min(72vw, 280px);
        max-width: min(72vw, 280px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

@media (max-width: 620px) {
    .home-hero-v3-copy h1 {
        font-size: clamp(2.25rem, 12.5vw, 3.15rem);
    }

    .home-hero-v3 .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-hero-v3 .home-hero-actions .button {
        width: 100%;
        padding-inline: 12px;
        text-align: center;
    }

    .home-hero-visual {
        min-height: 215px;
    }

    .home-hero-visual-stack {
        height: 205px;
    }

    .home-hero-visual-card {
        border-width: 3px;
        border-radius: 18px;
    }

    .home-hero-visual-card:nth-child(1) {
        top: 34px;
        height: 150px;
    }

    .home-hero-visual-card:nth-child(2) {
        height: 180px;
    }

    .home-hero-visual-card:nth-child(3) {
        top: 31px;
        height: 153px;
    }

    .home-hero-trustbar {
        width: calc(100% - 18px);
        justify-content: space-around;
        gap: 4px;
        padding-inline: 8px;
    }

    .home-hero-trustbar span {
        gap: 4px;
        font-size: .62rem;
    }

    .home-hero-trustbar svg {
        width: 13px;
        height: 13px;
    }

    .home-search-form {
        gap: 6px;
        padding-left: 12px;
    }

    .home-search-form .home-search-icon {
        width: 18px;
        height: 18px;
    }

    .home-search-form input[type="search"] {
        font-size: .85rem;
    }

    .home-product-rail {
        grid-template-columns: 1fr;
    }

    .home-product-card {
        min-height: 160px;
        grid-template-columns: minmax(0, 1fr) 120px;
    }

    .home-promoter-strip {
        gap: 12px;
        padding: 14px;
    }

    .home-promoter-strip-icon {
        width: 39px;
        height: 39px;
    }

    .home-promoter-strip strong {
        font-size: .96rem;
    }
}

@media (max-width: 420px) {
    .home-hero-v3 .home-hero-actions {
        grid-template-columns: 1fr;
    }

    .home-hero-visual-card:nth-child(1) {
        left: -2%;
        width: 38%;
    }

    .home-hero-visual-card:nth-child(2) {
        left: 28%;
        width: 44%;
    }

    .home-hero-visual-card:nth-child(3) {
        right: -2%;
        width: 38%;
    }

    .home-product-card {
        grid-template-columns: minmax(0, 1fr) 100px;
    }

    .home-event-card-v3 .event-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-event-card-v3 .event-card-actions .button {
        width: 100%;
    }
}
