/* =============== CUSTOM HOME PAGE TEMPLATE =============== */

/* Hero Section */
.hero-section {
    background-color: var(--color-primary, #0073aa);
    /* Um degradê acolhedor com cores aconchegantes */
    background-image: linear-gradient(135deg, rgba(33, 47, 60, 0.85) 0%, rgba(30, 81, 100, 0.85) 100%);
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    margin-top: -60px; /* Para grudar suavemente por baixo do header caso header seja transparente depois */
    margin-bottom: 60px;
    border-radius: 0 0 60px 60px; /* Borda redondinha maravilhosa embaixo */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: #fff;
    color: var(--color-text-main, #333);
    padding: 16px 45px;
    border-radius: 40px;
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    color: var(--color-primary, #0073aa);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-stat-item {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 14px 12px;
}

.hero-stat-item strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.2;
}

.hero-stat-item span {
    display: block;
    margin-top: 4px;
    font-size: 0.84rem;
    opacity: 0.92;
}

/* Highlights */
.home-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 55px;
    margin-top: -100px; /* Sobrepõe levemente o banner para dar 3D */
    z-index: 10;
    position: relative;
}

.highlight-item {
    background: var(--color-surface, #fff);
    padding: 28px 24px;
    border-radius: 14px;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 8px 28px rgba(15, 31, 26, 0.06);
}

.highlight-item h3 {
    font-size: 1.24rem;
    margin: 0 0 10px;
    color: var(--color-text-main, #333);
}

.highlight-item p {
    color: var(--color-text-light, #777);
    font-size: 0.98rem;
    margin: 0;
    line-height: 1.6;
}

/* Categories */
.home-categories {
    margin-bottom: 70px;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
}

.section-heading p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 14px;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.category-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 122, 108, 0.35);
    background: #ffffff;
}

.category-chip-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.category-chip-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(79, 122, 108, 0.12);
    color: var(--color-primary);
}

.no-category-message {
    width: 100%;
    text-align: center;
    color: var(--color-text-muted);
}

/* Product Recommendation Note */
.home-product-note {
    margin-bottom: 72px;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf8 100%);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 8px 22px rgba(15, 31, 26, 0.05);
}

.product-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.product-note-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 16px;
}

.product-note-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--color-text-main);
}

.product-note-item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.product-note-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(79, 122, 108, 0.4);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.product-note-cta:hover {
    transform: translateY(-1px);
    background: rgba(79, 122, 108, 0.08);
}

/* Latest Posts Section */
.latest-posts-section {
    margin-bottom: 80px;
}

.latest-subtitle {
    text-align: center;
    margin: -24px 0 34px;
    color: var(--color-text-muted);
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-main, #333);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--color-primary, #0073aa);
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Responsivo Mobile */
@media screen and (max-width: 768px) {
    .hero-section {
        padding: 80px 20px;
        border-radius: 0 0 30px 30px;
        margin-top: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .home-highlights {
        margin-top: 30px; /* Tira a sobreposição no mobile pra não quebrar a tela */
        margin-bottom: 40px;
    }

    .highlight-item {
        padding: 22px 18px;
    }

    .home-categories {
        margin-bottom: 52px;
    }

    .home-product-note {
        padding: 20px 16px;
        margin-bottom: 52px;
    }

    .product-note-grid {
        grid-template-columns: 1fr;
    }

    .category-chip {
        padding: 9px 12px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}