/* ===== Portfolio Isolado by Marcio v3.4.1 (estável) ===== */

.elementor-widget-pibm_portfolio .pibm-portfolio-wrap {
    --pibm-columns-desktop: 3;
    --pibm-columns-tablet: 2;
    --pibm-columns-mobile: 1;
    --pibm-gap: 24px;
    --pibm-radius: 6px;
    --pibm-overlay-bg: rgba(0, 0, 0, 0.75);
    --pibm-border-color: rgba(255, 255, 255, 0.08);
    --pibm-transition: 0.3s ease-out;
    box-sizing: border-box;
}

/* Filtro */
.elementor-widget-pibm_portfolio .pibm-portfolio-filter {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.elementor-widget-pibm_portfolio .pibm-filter-button {
    border-radius: 999px;
    border: 1px solid var(--pibm-border-color);
    padding: 6px 14px;
    background: transparent;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: #ffffff;
    transition: background var(--pibm-transition), color var(--pibm-transition), border-color var(--pibm-transition);
}

.elementor-widget-pibm_portfolio .pibm-filter-button.is-active,
.elementor-widget-pibm_portfolio .pibm-filter-button:hover {
    background: #ff7300;
    border-color: #ff7300;
    color: #000000;
}

/* Grid responsivo */
.elementor-widget-pibm_portfolio .pibm-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(var(--pibm-columns-desktop), minmax(0, 1fr));
    gap: var(--pibm-gap);
}

@media (max-width: 1024px) {
    .elementor-widget-pibm_portfolio .pibm-portfolio-grid {
        grid-template-columns: repeat(var(--pibm-columns-tablet), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .elementor-widget-pibm_portfolio .pibm-portfolio-grid {
        grid-template-columns: repeat(var(--pibm-columns-mobile), minmax(0, 1fr));
    }
}

/* Item */
.elementor-widget-pibm_portfolio .pibm-portfolio-item {
    position: relative;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--pibm-radius);
    background: #000000;
}

/* Thumb */
.elementor-widget-pibm_portfolio .pibm-portfolio-thumb {
    position: relative;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform var(--pibm-transition);
}

/* Overlay */
.elementor-widget-pibm_portfolio .pibm-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: var(--pibm-overlay-bg);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--pibm-transition);
}

.elementor-widget-pibm_portfolio .pibm-portfolio-hover-inner {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--pibm-transition), transform var(--pibm-transition);
}

.elementor-widget-pibm_portfolio .pibm-portfolio-item-inner:hover .pibm-portfolio-overlay {
    opacity: 1;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-item-inner:hover .pibm-portfolio-hover-inner {
    opacity: 1;
    transform: translateY(0);
}

.elementor-widget-pibm_portfolio .pibm-portfolio-item-inner:hover .pibm-portfolio-thumb img {
    transform: scale(1.05);
}

/* Icons overlay */
.elementor-widget-pibm_portfolio .pibm-portfolio-icons {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 10px;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-icon {
    text-decoration: none;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-icon-inner {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #ff7300;
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: transform var(--pibm-transition), box-shadow var(--pibm-transition), background-color var(--pibm-transition), color var(--pibm-transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.elementor-widget-pibm_portfolio .pibm-portfolio-icon-inner i,
.elementor-widget-pibm_portfolio .pibm-portfolio-icon-inner svg,
.elementor-widget-pibm_portfolio .pibm-portfolio-icon-inner img {
    max-width: 20px;
    max-height: 20px;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-icon-inner:hover {
    transform: translateY(-2px);
}

/* Texto no hover */
.elementor-widget-pibm_portfolio .pibm-portfolio-text {
    color: #ffffff;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-title {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-title a {
    color: #ffffff;
    text-decoration: none;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-title a:hover {
    text-decoration: underline;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-cats {
    font-size: 12px;
    text-transform: uppercase;
    color: #dddddd;
}

/* Conteúdo extra abaixo (opcional) */
.elementor-widget-pibm_portfolio .pibm-portfolio-content {
    padding: 10px 14px 14px;
    background: #111111;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-excerpt {
    font-size: 13px;
    color: #cccccc;
}

/* Paginação */
.elementor-widget-pibm_portfolio .pibm-portfolio-pagination {
    margin-top: 24px;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 6px;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-pagination a,
.elementor-widget-pibm_portfolio .pibm-portfolio-pagination span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #333333;
    font-size: 13px;
    text-decoration: none;
    color: #ffffff;
}

.elementor-widget-pibm_portfolio .pibm-portfolio-pagination .current {
    background: #ff7300;
    border-color: #ff7300;
    color: #000000;
}

/* Mensagem vazia */
.elementor-widget-pibm_portfolio .pibm-portfolio-message {
    padding: 16px 18px;
    background: #222222;
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
}


/* ===== Single em_portfolio (layout isolado) ===== */

.pibm-single-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pibm-single-title {
    font-size: 2.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.pibm-single-content {
    font-size: 1rem;
    line-height: 1.7;
}

/* Botão de retorno */
.pibm-back-wrapper {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.pibm-back-link {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid currentColor;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Navegação Previous / Next */
.pibm-single-navigation {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
}

.pibm-single-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.pibm-nav-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 4px;
}

.pibm-nav-title {
    display: block;
    font-size: 0.95rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .pibm-single-wrapper {
        padding: 25px 15px;
    }

    .pibm-single-title {
        font-size: 2rem;
    }

    .pibm-single-navigation .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

