/* Home — visual moderno (tema claro). Não altera header/menu/footer. */

.home-page {
    --home-ink: #0f172a;
    --home-muted: #64748b;
    --home-navy: #1e3a5f;
    --home-accent: #ea580c;
    --home-accent-soft: #fff7ed;
    --home-blue: #2563eb;
    --home-line: rgba(148, 163, 184, 0.28);
    --home-card: #ffffff;
    --home-radius: 18px;
    --home-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

/* Intro / hero editorial */
.home-intro {
    text-align: center;
    padding: 0.5rem 0.5rem 0.25rem;
    position: relative;
}

/* Hero: bloco único (stage + CTAs) — sem card */
.home-hero {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Respiro claro entre hero e "Soluções em destaque" */
.home-page > .home-pills {
    margin-top: 1.75rem;
}

.home-hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: center;
    width: 100%;
}

.home-hero-media {
    position: relative;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

/* Proporção 1536×1024 (3:2) — encaixa imagens no tamanho definido */
.home-hero-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1536 / 1024;
    background: transparent;
}

.home-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.home-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.home-hero-image-link {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.home-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    filter: none;
}

.home-hero-copy {
    min-width: 0;
    text-align: left;
}

.home-hero-copy .home-intro-badge {
    margin-bottom: 0.95rem;
}

.home-hero-title,
.home-intro-title.grad-ocean,
.home-intro-title.grad-navy,
.home-intro-title.grad-ember,
.home-intro-title.grad-mint {
    font-family: var(--home-font);
    font-size: clamp(1.95rem, 3.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 0.95rem;
    max-width: 18ch;
}

.home-hero-title {
    max-width: 17ch;
}

.home-hero-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--home-muted);
    margin: 0;
    max-width: 36rem;
}

/* CTAs centralizados — colados ao stage, dentro do bloco hero */
.home-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: 100%;
    padding-top: 0.15rem;
}

.home-hero-cta .home-intro-actions {
    justify-content: center;
    margin-bottom: 0;
}

.home-hero-cta .home-intro-trust {
    justify-content: center;
}

/* Degradês automáticos do título */
.grad-ocean,
.grad-navy,
.grad-ember,
.grad-mint {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.grad-ocean {
    background-image: linear-gradient(90deg, #0ea5e9 0%, #14b8a6 100%);
}

.grad-navy {
    background-image: linear-gradient(90deg, #1e3a5f 0%, #3b82f6 100%);
}

.grad-ember {
    background-image: linear-gradient(90deg, #ea580c 0%, #eab308 100%);
}

.grad-mint {
    background-image: linear-gradient(90deg, #059669 0%, #22d3ee 100%);
}

.home-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--home-navy);
    font-family: var(--home-font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(37, 99, 235, 0.18);
    margin-bottom: 1.1rem;
}

.home-intro-badge i {
    color: var(--home-blue);
    font-size: 0.85rem;
}

.home-intro-title {
    font-family: var(--home-font);
    font-size: clamp(1.75rem, 3.2vw, 2.55rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--home-ink);
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin: 0 auto 0.9rem;
}

.home-intro-title .accent {
    color: var(--home-blue);
}

.home-intro-text {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--home-muted);
    max-width: 40rem;
    margin: 0 auto 1.4rem;
}

.home-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1.25rem;
    border-radius: 12px;
    font-family: var(--home-font);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
}

.home-btn-primary {
    background: var(--home-navy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 58, 95, 0.22);
}

.home-btn-primary:hover {
    background: #16304f;
    color: #fff;
}

.home-btn-secondary {
    background: #fff;
    color: var(--home-navy);
    border: 1px solid var(--home-line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.home-btn-secondary:hover {
    color: var(--home-navy);
    border-color: rgba(30, 58, 95, 0.35);
}

.home-intro-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    color: var(--home-muted);
    font-size: 0.85rem;
}

.home-intro-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.home-intro-trust i {
    color: #16a34a;
    font-size: 0.8rem;
}

/* Pills de soluções */
.home-pills {
    text-align: center;
}

.home-pills-label {
    font-family: var(--home-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-muted);
    margin-bottom: 0.9rem;
}

.home-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--home-line);
    color: var(--home-ink);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--home-font);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-pill:hover {
    border-color: rgba(30, 58, 95, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    color: var(--home-ink);
}

a.home-pill-link {
    border-color: rgba(30, 58, 95, 0.28);
    background: #f8fafc;
}

a.home-pill-link:hover {
    border-color: rgba(30, 58, 95, 0.45);
    color: var(--home-navy);
}

.home-pill-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 3px;
    flex-shrink: 0;
}

.home-pill-dot.sites { background: #2563eb; }
.home-pill-dot.email { background: #ea580c; }
.home-pill-dot.ti { background: #0d9488; }
.home-pill-dot.loja { background: #ca8a04; }
.home-pill-dot.ssl { background: #7c3aed; }
.home-pill-dot.suporte { background: #dc2626; }

/* Features */
.home-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1100px) {
    .home-features {
        grid-template-columns: 1fr;
    }
}

.home-feature {
    background: var(--home-card);
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    padding: 1.35rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Cards com imagem: mídia à esquerda, título + texto à direita */
.home-feature:has(.home-feature-body) {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.95rem;
}

.home-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(30, 58, 95, 0.2);
}

.home-feature:focus-visible {
    outline: 2px solid var(--home-navy, #1e3a5f);
    outline-offset: 2px;
}

.home-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--home-navy);
    font-size: 1.1rem;
}

.home-feature-media {
    width: 7.5rem;
    height: 7.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(30, 58, 95, 0.08);
    flex-shrink: 0;
}

.home-feature-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
}

.home-feature-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-feature-title {
    font-family: var(--home-font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--home-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.home-feature-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--home-muted);
    margin: 0;
}

/* Card de destaque (serviços) */
.home-spotlight {
    position: relative;
    border-radius: calc(var(--home-radius) + 4px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(234, 88, 12, 0.45), rgba(30, 58, 95, 0.4));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.home-spotlight-inner {
    background: #fff;
    border-radius: inherit;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.home-spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--home-accent-soft);
    color: var(--home-accent);
    font-family: var(--home-font);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.home-spotlight-title {
    font-family: var(--home-font);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: var(--home-ink);
    letter-spacing: -0.02em;
    margin: 0 0 0.55rem;
}

.home-spotlight-text {
    max-width: 36rem;
    margin: 0 auto 1.25rem;
    color: var(--home-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-spotlight .home-btn-primary {
    background: #16a34a;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

.home-spotlight .home-btn-primary:hover {
    background: #15803d;
}

/* Blocos de seção (loja / populares) */
.home-block {
    background: var(--home-card);
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    padding: 1.5rem 1.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.home-block-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.15rem;
}

.home-block-kicker {
    font-family: var(--home-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--home-blue);
    margin: 0 0 0.25rem;
}

.home-block-title {
    font-family: var(--home-font);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--home-ink);
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.home-block-title i {
    color: var(--home-navy);
    font-size: 1.1rem;
}

.home-block-desc {
    margin: 0.35rem 0 0;
    color: var(--home-muted);
    font-size: 0.92rem;
    max-width: 36rem;
}

.home-block-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--home-font);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--home-navy);
    text-decoration: none;
    white-space: nowrap;
}

.home-block-link:hover {
    color: var(--home-blue);
}

/* Filtros dentro do bloco da home */
.home-block .filter-buttons {
    justify-content: flex-start;
    margin-bottom: 0.85rem;
}

.home-block .filter-btn {
    border-radius: 999px;
    border: 1px solid var(--home-line);
    background: #f8fafc;
    box-shadow: none;
    min-height: 40px;
    font-family: var(--home-font);
    font-weight: 600;
}

.home-block .filter-btn:hover,
.home-block .filter-btn:focus,
.home-block .filter-btn.active {
    background: var(--home-navy);
    color: #fff;
    border-color: var(--home-navy);
    box-shadow: none;
    transform: none;
}

.home-block .products-section {
    margin: 0;
}

.home-block .product-card {
    border: 1px solid var(--home-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.home-block .product-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

/* Slot 3:2 (1536×1024) — imagem completa sem corte */
.home-block .product-card > a:first-of-type {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 0;
}

.home-block .product-card > a:first-of-type img.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    display: block;
}

.home-block .product-image.no-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    background: linear-gradient(145deg, #eff6ff 0%, #e2e8f0 100%);
    border-radius: 0;
}

.home-block .btn-buy {
    border-radius: 10px;
    background: var(--home-navy);
}

.home-block .btn-buy:hover {
    background: #16304f;
}

/* Populares — lista limpa */
.home-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.home-popular-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--home-line);
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-popular-item:hover {
    background: #fff;
    border-color: rgba(30, 58, 95, 0.28);
    transform: translateY(-1px);
}

.home-popular-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

.home-popular-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.home-popular-info h4 {
    margin: 0 0 0.25rem;
    font-family: var(--home-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--home-ink);
}

.home-popular-price {
    font-weight: 700;
    color: #16a34a;
    font-size: 0.95rem;
}

/* Slider legado na home — desativado pelo novo hero */
.home-page .slider-container {
    display: none !important;
}

@media (max-width: 900px) {
    .home-hero {
        gap: 0.55rem;
    }

    .home-page > .home-pills {
        margin-top: 1.35rem;
    }

    .home-hero-stage {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .home-hero-slides {
        aspect-ratio: 1536 / 1024;
        max-height: 280px;
    }

    .home-hero-copy {
        text-align: center;
    }

    .home-hero-title {
        margin-left: auto;
        margin-right: auto;
        max-width: none;
    }

    .home-hero-text {
        margin-left: auto;
        margin-right: auto;
    }

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

    .home-feature:has(.home-feature-body) {
        flex-direction: row;
        align-items: flex-start;
    }

    .home-feature-media {
        width: 6rem;
        height: 6rem;
    }
}

@media (max-width: 420px) {
    .home-feature:has(.home-feature-body) {
        flex-direction: column;
    }

    .home-feature-media {
        width: 5.5rem;
        height: 5.5rem;
    }
}

@media (max-width: 768px) {
    .home-intro-title {
        max-width: none;
    }

    .home-block {
        padding: 1.2rem 1rem;
    }

    .home-spotlight-inner {
        padding: 1.4rem 1.1rem;
    }

    .home-block-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
