/* Ajustes adicionais da homepage solicitados pelo cliente */

/* HERO: compacto e com indicadores visíveis no primeiro ecrã */
.home-hero {
    min-height: min(86vh, 790px) !important;
}

.home-hero .page-hero-grid {
    min-height: min(86vh, 790px) !important;
    padding-top: clamp(112px, 12vh, 132px) !important;
    padding-bottom: clamp(38px, 4.5vh, 54px) !important;
}

.home-hero .page-hero-copy {
    grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr) !important;
    column-gap: clamp(34px, 4.5vw, 68px) !important;
    row-gap: 15px !important;
}

.home-hero .page-hero-copy > .eyebrow {
    margin-bottom: 2px !important;
}

.home-hero .page-hero-copy > h1 {
    width: 100% !important;
    max-width: 610px !important;
    font-size: clamp(2.95rem, 4.2vw, 4.65rem) !important;
    line-height: 1.01 !important;
    letter-spacing: -.052em !important;
    text-wrap: initial !important;
}

.home-hero .page-hero-copy > h1 br {
    display: block !important;
}

.home-hero .page-hero-copy > p {
    max-width: 690px !important;
    font-size: clamp(.94rem, 1.02vw, 1.06rem) !important;
    line-height: 1.52 !important;
}

.home-hero .hero-pillar-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 22px !important;
}

.home-hero .hero-pillar-list li {
    font-size: clamp(.75rem, .76vw, .86rem) !important;
    line-height: 1.32 !important;
}

.home-hero .hero-actions {
    gap: 11px !important;
    margin-top: 2px !important;
}

.home-hero .hero-actions .btn {
    min-height: 48px !important;
    padding: 0 21px !important;
    font-size: .84rem !important;
}

.stats-strip {
    position: relative;
    z-index: 5;
    margin-top: -12px !important;
}

.stats-strip-inner {
    min-height: 78px !important;
}

.stat-item {
    min-height: 78px !important;
    padding: 16px 18px !important;
}

/* Conteúdos inteligentes: retirar imagem e usar os seis itens no lado direito */
.ai-lab .ai-stack {
    grid-template-columns: 1fr !important;
}

.ai-lab .ai-stack > .reveal:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr) !important;
    grid-template-rows: auto auto auto !important;
    column-gap: clamp(48px, 6vw, 92px) !important;
    row-gap: 18px !important;
    align-items: start !important;
}

.ai-lab .ai-stack > .reveal:first-child > .section-kicker,
.ai-lab .ai-stack > .reveal:first-child > h2,
.ai-lab .ai-stack > .reveal:first-child > p {
    grid-column: 1 !important;
}

.ai-lab .ai-stack > .reveal:first-child > .section-kicker {
    grid-row: 1 !important;
}

.ai-lab .ai-stack > .reveal:first-child > h2 {
    grid-row: 2 !important;
    max-width: 650px !important;
}

.ai-lab .ai-stack > .reveal:first-child > p {
    grid-row: 3 !important;
    max-width: 660px !important;
}

.ai-lab .engine-wrap {
    display: none !important;
}

.ai-lab .content-pill-grid {
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    align-self: center !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: clamp(26px, 3vw, 38px) !important;
    background: linear-gradient(180deg, rgba(3, 25, 39, .92), rgba(2, 17, 28, .96)) !important;
    border: 1px solid rgba(121, 201, 66, .22) !important;
    border-radius: 22px !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.28) !important;
}

.ai-lab .content-pill-grid span {
    position: relative !important;
    display: block !important;
    min-height: auto !important;
    padding: 0 0 0 30px !important;
    color: rgba(255,255,255,.88) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: clamp(.92rem, 1vw, 1.05rem) !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

.ai-lab .content-pill-grid span::before {
    content: "";
    position: absolute;
    left: 0;
    top: .28em;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(121,201,66,.62);
    border-radius: 50%;
    background: radial-gradient(circle, var(--green) 0 34%, transparent 38%);
    box-shadow: 0 0 18px rgba(121,201,66,.42);
}

/* Fundos: conteúdo alinhado à esquerda e melhor aproveitamento horizontal */
.funds-section .funds-grid {
    grid-template-columns: 1fr !important;
    align-items: start !important;
}

.funds-section .funds-grid > .reveal:first-child {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 !important;
    text-align: left !important;
}

.funds-section .fund-logos,
.funds-section .fund-checks,
.funds-section .funds-actions {
    justify-content: flex-start !important;
}

.funds-section .fund-checks {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 34px !important;
    max-width: 980px !important;
}

/* Formulário mais compacto após remoção do campo pessoa de contacto */
.inquiry-section .contact-form .form-grid {
    gap: 20px 26px !important;
}

.inquiry-section .contact-form textarea {
    min-height: 126px !important;
}

.inquiry-section .privacy-row {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* O bloco CRM bónus passa a surgir imediatamente depois da secção principal de CRM */
.crm-section + .crm-bonus {
    margin-top: 0 !important;
}

@media (max-width: 1180px) {
    .home-hero,
    .home-hero .page-hero-grid {
        min-height: auto !important;
    }

    .home-hero .page-hero-grid {
        padding-top: 116px !important;
        padding-bottom: 66px !important;
    }

    .home-hero .page-hero-copy > h1 {
        max-width: 760px !important;
        font-size: clamp(3rem, 6.5vw, 4.9rem) !important;
    }

    .ai-lab .ai-stack > .reveal:first-child {
        grid-template-columns: 1fr !important;
    }

    .ai-lab .ai-stack > .reveal:first-child > .section-kicker,
    .ai-lab .ai-stack > .reveal:first-child > h2,
    .ai-lab .ai-stack > .reveal:first-child > p,
    .ai-lab .content-pill-grid {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .ai-lab .content-pill-grid {
        margin-top: 18px !important;
    }
}

@media (max-width: 760px) {
    .home-hero .page-hero-grid {
        padding-top: 98px !important;
        padding-bottom: 52px !important;
    }

    .home-hero .page-hero-copy > h1 {
        font-size: clamp(2.45rem, 10.5vw, 3.9rem) !important;
        line-height: 1.03 !important;
    }

    .home-hero .hero-pillar-list {
        grid-template-columns: 1fr !important;
    }

    .funds-section .fund-checks {
        grid-template-columns: 1fr !important;
    }

    .ai-lab .content-pill-grid {
        padding: 24px 20px !important;
    }
}
