@media (min-width: 901px) {
    .legacy-nav {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.home-category-grid {
    gap: 9px 12px;
    align-items: stretch;
}

.home-category-card {
    min-height: 0;
    padding: 7px;
    display: flex;
    flex-direction: column;
}

.home-category-card h3 {
    margin-bottom: 4px;
    padding: 4px;
    font-size: 22px;
}

.home-category-image {
    height: 175px;
}

.home-category-card h4 {
    min-height: 0;
    margin: 4px 0 1px;
    font-size: 17px;
    line-height: 1.2;
}

.home-category-card .home-item-year {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
}

.home-forum-ad {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-forum-ad .home-lower-ad.catalog-ad {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 1;
}

.home-content .home-hero span {
    gap: 10px;
    padding: 15px;
}

.home-content .home-section-title {
    margin: 12px 0;
    padding: 4px 10px;
    line-height: 1.2;
}

.home-lower-grid,
.home-events-grid {
    gap: 15px;
    align-items: stretch;
}

.home-lower-grid > div,
.home-events-grid > div {
    min-width: 0;
}

.home-events-grid .home-calendar-panel {
    margin-top: 12px;
}

.home-events-grid > div:first-child {
    margin-top: 12px;
}

.home-content .home-events-grid .home-section-title {
    height: 48px;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-forum-tabs a {
    padding: 11px 14px;
    color: var(--teal);
    text-decoration: none;
}

.home-forum-tabs a:hover,
.home-forum-tabs a:focus {
    font-weight: bold;
}

.home-forum-tabs a.active {
    background: #fff;
    border: 1px solid #aaa;
    border-bottom: 0;
}

.home-empty {
    padding: 8px;
}

.home-partner-stores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

.home-partner-store {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    border: 1px solid #d4d4d4;
    background: #fff;
    color: var(--teal);
    text-decoration: none;
}

.home-partner-store img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease, filter .2s ease;
}

.home-partner-store:hover img,
.home-partner-store:focus img {
    transform: scale(1.02);
    filter: brightness(.94);
}

.home-partner-store span {
    display: grid;
    height: 100%;
    place-items: center;
    padding: 20px;
    text-align: center;
    font-size: 21px;
}

.home-partner-empty {
    grid-column: 1 / -1;
}

.home-event {
    gap: 3px;
    padding: 7px 8px;
}

.home-articles.article-grid {
    gap: 9px;
}

.home-articles .article-card h2 {
    margin: 6px 0;
    padding: 0 8px;
}

.home-articles .article-card p {
    margin: 6px 0;
    padding: 0 8px 8px;
}

.home-articles .article-card footer {
    padding: 5px 8px;
}

@media (max-width: 900px) {
    .home-category-image {
        height: 165px;
    }

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

@media (max-width: 600px) {
    .home-partner-stores {
        grid-template-columns: 1fr;
    }
}

/* Controles discretos do carrossel: mantém a área de clique sem exibir blocos coloridos. */
.home-hero-carousel .home-hero-arrow,
.home-hero-carousel .home-hero-arrow:hover,
.home-hero-carousel .home-hero-arrow:focus {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fff;
    outline: 0;
    text-shadow: 0 1px 6px #000, 0 0 2px #000;
}
