/* =====================================================
   Shortcode: [solucoes_cards]
   ===================================================== */

/* Zera padding do container Elementor que envolve o shortcode */
.elementor-widget-shortcode:has(.da-solucoes),
.elementor-widget-container:has(.da-solucoes),
.e-con:has(.da-solucoes),
.e-con-inner:has(.da-solucoes),
.elementor-section:has(.da-solucoes) .elementor-container,
.elementor-section:has(.da-solucoes) .elementor-column-wrap,
.elementor-section:has(.da-solucoes) .elementor-widget-wrap {
    padding: 0 !important;
}

/* Container do Elementor (boxed) que envolve o shortcode não pode limitar a largura */
.e-con:has(.da-solucoes),
.e-con-inner:has(.da-solucoes) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.da-solucoes {
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 59px;
    padding: 104px 80px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.da-solucoes__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    max-width: 1280px;
}

.da-solucoes__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    flex: 0 0 auto;
    max-width: 488px;
}

.da-solucoes__subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
    max-width: 507px;
}

/* Cards grid */
.da-solucoes__cards {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 1280px;
    align-items: center;
}

/* Card base */
.da-card {
    position: relative;
    flex: 1;
    height: 460px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 32px;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.da-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-12px);
    box-shadow: 0px 20px 20px 0px rgba(0, 0, 0, 0.1);
}

/* Background image */
.da-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.da-card:hover .da-card__bg {
    transform: scale(1.04);
}

/* Gradient overlay */
.da-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 45%);
    pointer-events: none;
    transition: backdrop-filter 0.35s ease, background-color 0.35s ease, opacity 0.35s ease;
}

.da-card:hover .da-card__overlay {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 45%);
}

/* Icon bubble */
.da-card__icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.da-card__icon img {
    width: 32px;
    height: 32px;
    display: block;
}

/* Card body (title + desc + link) */
.da-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.da-card__content {
    display: flex;
    flex-direction: column;
}

.da-card__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

/* Description: hidden by default, revealed on hover */
.da-card__desc {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.da-card:hover .da-card__desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 24px;
}

/* Saiba mais link: hidden by default, revealed on hover */
.da-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease 0.05s, opacity 0.4s ease 0.05s, margin-top 0.4s ease 0.05s;
}

.da-card:hover .da-card__link {
    max-height: 40px;
    opacity: 1;
    margin-top: 40px;
}

.da-card__link img {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.da-card__link span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    white-space: nowrap;
}

/* Badge bottom */
.da-solucoes__badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    border-radius: 100px;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.3), rgba(47, 53, 65, 0.3));
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.da-solucoes__badge-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.da-solucoes__badge-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.da-solucoes__badge p {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1280px) {
    .da-solucoes {
        padding: 80px 40px;
    }
}

@media (max-width: 1024px) {
    .da-solucoes__header {
        flex-direction: column;
        gap: 24px;
    }
    .da-solucoes__title,
    .da-solucoes__subtitle {
        max-width: 100%;
    }
    .da-solucoes__cards {
        flex-direction: column;
        align-items: stretch;
    }
    .da-card {
        height: auto;
        min-height: 320px;
        transform: none !important;
    }
    /* Sem hover no touch — deixa o blur/escurecimento sempre ativo pra manter a leitura do texto */
    .da-card__overlay {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 45%);
    }
    .da-card__desc,
    .da-card__link {
        max-height: none !important;
        opacity: 1 !important;
    }
    .da-card__desc {
        margin-top: 24px !important;
    }
    .da-card__link {
        margin-top: 40px !important;
    }
    .da-solucoes__badge p {
        white-space: normal;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .da-solucoes {
        padding: 60px 24px;
        gap: 40px;
    }
    .da-solucoes__title {
        font-size: 26px;
    }
    .da-solucoes__badge {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
        border-radius: 16px;
    }
}