/*
Theme Name: IV Criativa
Theme URI: https://ivcriativa.com.br
Author: IV Criativa
Author URI: https://ivcriativa.com.br
Description: Tema premium da IV Criativa - Agência de Marketing Digital. Completamente editável pelo painel WordPress.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ivcriativa
Tags: custom-logo, custom-menu, featured-images, full-width-template
*/

/* ===========================================================
   VARIÁVEIS GLOBAIS
=========================================================== */
:root {
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-color);
    color: #111;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===========================================================
   CONTAINER MAX-WIDTH (80%)
=========================================================== */
.iv-container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .iv-container {
        max-width: 95%;
    }
}

/* ===========================================================
   SCROLLBAR OCULTA
=========================================================== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===========================================================
   IMAGE REVEAL
=========================================================== */
.image-reveal-img { transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.group:hover .image-reveal-img { transform: scale(1.05); }

/* ===========================================================
   GLASSMORPHISM
=========================================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* ===========================================================
   ANIMAÇÕES FLOAT
=========================================================== */
@keyframes float-slow { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } }
@keyframes float-medium { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-30px) rotate(-15deg); } }
@keyframes float-fast { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-40px) rotate(20deg); } }

.shape-float-1 { animation: float-slow 8s ease-in-out infinite; }
.shape-float-2 { animation: float-medium 6s ease-in-out infinite; }
.shape-float-3 { animation: float-fast 10s ease-in-out infinite; }

/* ===========================================================
   PARALLAX LAYERS
=========================================================== */
.designer-bg { --mouse-x: 0px; --mouse-y: 0px; z-index: 0; }
.parallax-layer-1 { transform: translate(calc(var(--mouse-x) * -0.2), calc(var(--mouse-y) * -0.2)); transition: transform 0.2s cubic-bezier(0.1, 0, 0.2, 1); }
.parallax-layer-2 { transform: translate(calc(var(--mouse-x) * 0.4), calc(var(--mouse-y) * 0.4)); transition: transform 0.2s cubic-bezier(0.1, 0, 0.2, 1); }
.parallax-layer-3 { transform: translate(calc(var(--mouse-x) * -0.6), calc(var(--mouse-y) * -0.6)); transition: transform 0.2s cubic-bezier(0.1, 0, 0.2, 1); }

.pattern-dots {
    background-image: radial-gradient(rgba(0,0,0,0.1) 2px, transparent 2px);
    background-size: 30px 30px;
}

/* ===========================================================
   MARQUEE (MARCAS PARCEIRAS)
=========================================================== */
@keyframes scroll-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll-x {
    animation: scroll-x 40s linear infinite;
    display: flex;
    width: max-content;
}
.animate-scroll-x:hover {
    animation-play-state: paused;
}
.gradient-mask-x {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ===========================================================
   ACCORDION
=========================================================== */
.accordion-content { transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease; }

/* ===========================================================
   SEARCH INPUT (BLOG)
=========================================================== */
.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 1.5rem 1rem 3.5rem;
    border-radius: 9999px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.search-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.15);
}

/* ===========================================================
   PAGINAÇÃO (BLOG)
=========================================================== */
.page-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    pointer-events: none;
}

/* ===========================================================
   CARD ENTER ANIMATION
=========================================================== */
.card-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-enter-active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================================
   FILTROS PORTFOLIO
=========================================================== */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-btn.active {
    background: #111;
    color: white;
    border-color: #111;
}

/* ===========================================================
   FORM INPUTS (CONTATO)
=========================================================== */
.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 0;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
.form-input:focus {
    border-color: #8b5cf6;
}
.form-input::placeholder {
    color: #a1a1aa;
}

/* ===========================================================
   SINGLE POST — LAYOUT MOBILE-FIRST (sp-* prefix)
=========================================================== */

/* ── Containers ── */
.sp-main {
    position: relative;
    z-index: 10;
    padding-top: 7rem;
    padding-bottom: 5rem;
}
@media (min-width: 768px) {
    .sp-main { padding-top: 9rem; padding-bottom: 6rem; }
}

.sp-container {
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
@media (min-width: 640px) {
    .sp-container { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
    .sp-container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* Narrow container para o conteúdo do artigo */
.sp-container--narrow {
    max-width: 780px;
}

/* ── Hero ── */
.sp-hero {
    padding-bottom: 2rem;
}
@media (min-width: 768px) {
    .sp-hero { padding-bottom: 3rem; }
}

/* ── Breadcrumb ── */
.sp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a1a1aa;
    letter-spacing: 0.04em;
}
.sp-breadcrumb a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color .2s;
}
.sp-breadcrumb a:hover { color: #7c3aed; }
.sp-breadcrumb-current { color: #7c3aed; }

/* ── Categorias ── */
.sp-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}
.sp-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #7c3aed;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.sp-cat-badge:hover { background: #ede9fe; color: #5b21b6; }

/* ── Título ── */
.sp-title {
    font-size: clamp(1.75rem, 5.5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #111827;
    margin: 0 0 1.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ── Meta ── */
.sp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #71717a;
}
.sp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.sp-meta-item svg { flex-shrink: 0; color: #7c3aed; }
.sp-meta-dot { color: #d4d4d8; line-height: 1; }

/* ── Imagem destaque (nova estrutura sp-*) ── */
.sp-thumb-wrap {
    padding-bottom: 2rem;
}
@media (min-width: 768px) {
    .sp-thumb-wrap { padding-bottom: 3rem; }
}
.sp-thumb {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.10);
    margin: 0;
}
@media (min-width: 768px) {
    .sp-thumb { border-radius: 24px; }
}
.sp-thumb-img {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 520px;
    object-fit: cover;
    display: block;
}
.sp-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.15) 0%, transparent 55%);
    pointer-events: none;
}

/* ── Corpo do artigo ── */
.sp-body-wrap {
    padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .sp-body-wrap { padding-bottom: 3.5rem; }
}

/* ── Conteúdo tipográfico ── */
.sp-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.85;
    word-break: break-word;
    overflow-wrap: break-word;
}
@media (min-width: 480px) {
    .sp-content { font-size: 1.04rem; }
}
@media (min-width: 768px) {
    .sp-content { font-size: 1.1rem; }
}
@media (min-width: 1024px) {
    .sp-content { font-size: 1.15rem; }
}

.sp-content > * + * { margin-top: 1.35em; }
.sp-content p { margin: 1.2em 0; line-height: 1.85; }

/* Lead paragraph */
.sp-content > p:first-of-type {
    font-size: 1.06rem;
    line-height: 1.75;
    color: #1f2937;
    font-weight: 500;
}
@media (min-width: 480px) {
    .sp-content > p:first-of-type { font-size: 1.14rem; }
}
@media (min-width: 768px) {
    .sp-content > p:first-of-type { font-size: 1.22rem; }
}

/* Headings */
.sp-content h1,
.sp-content h2,
.sp-content h3,
.sp-content h4,
.sp-content h5,
.sp-content h6 {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #111827;
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.65em;
}
.sp-content h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.sp-content h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); }
.sp-content h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
.sp-content h4 { font-size: clamp(1rem, 2vw, 1.3rem); }
.sp-content h5,
.sp-content h6 { font-size: 1rem; }

/* Listas */
.sp-content ul,
.sp-content ol {
    padding-left: 1.4em;
    margin: 1.4em 0;
    line-height: 1.75;
}
.sp-content li { margin-bottom: 0.45em; }
.sp-content li::marker { color: #7c3aed; font-weight: 700; }

/* Blockquote */
.sp-content blockquote {
    margin: 1.8em 0;
    padding: 1.1rem 1.4rem;
    border-left: 4px solid #7c3aed;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg,#f5f3ff,#faf5ff);
    color: #5b21b6;
    font-style: italic;
    font-size: 1.02em;
    line-height: 1.65;
    box-shadow: 0 4px 18px rgba(124,58,237,.08);
}

/* Links */
.sp-content a {
    color: #5b21b6;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color .2s;
}
.sp-content a:hover { color: #7c3aed; }

/* Strong / em */
.sp-content strong { color: #111827; font-weight: 700; }
.sp-content em { color: #374151; }

/* HR */
.sp-content hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 2.5em 0;
}

/* Imagens */
.sp-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.6em 0;
    box-shadow: 0 14px 32px rgba(0,0,0,.09);
    display: block;
}
@media (min-width: 640px) {
    .sp-content img { border-radius: 16px; }
}
.sp-content figure { margin: 1.8em 0; }
.sp-content figure img { margin: 0; }
.sp-content figcaption {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    font-style: italic;
}

/* Tabela (scroll horizontal mobile) */
.sp-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.9em;
}
.sp-content table th,
.sp-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.85rem;
    text-align: left;
    white-space: nowrap;
}
.sp-content table th {
    background: #f9fafb;
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #111827;
}

/* Código */
.sp-content pre,
.sp-content code { font-family: "JetBrains Mono","Fira Code",Consolas,monospace; }
.sp-content pre {
    padding: 1.1rem 1.3rem;
    border-radius: 10px;
    background: #1f2937;
    color: #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.8em 0;
    font-size: 0.84em;
    line-height: 1.65;
}
.sp-content code {
    padding: .12em .38em;
    border-radius: .3em;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.87em;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    word-break: break-word;
}
.sp-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
    word-break: normal;
}

/* ── Share wrap ── */
.sp-share-wrap {
    padding-bottom: 2.5rem;
}

/* ── Share panel ── */
.sp-share-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
@media (min-width: 640px) {
    .sp-share-panel {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
    }
}

.sp-tags-group { flex: 1; min-width: 0; }
.sp-share-group { flex-shrink: 0; }

.sp-group-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: 8px;
}

.sp-tags-list { display: flex; flex-wrap: wrap; gap: 6px; }

.sp-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
    color: #5b21b6;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.sp-tag:hover {
    background: #ede9fe;
    color: #4c1d95;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(124,58,237,.14);
}

.sp-no-tags { font-size: 0.82rem; color: #a1a1aa; }

.sp-share-btns {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.sp-btn-share {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d4d4d8;
    background: #fff;
    color: #52525b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform .2s, color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.sp-btn-share:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.10); }
.sp-btn-facebook:hover { background:#1877f2; border-color:#1877f2; color:#fff; }
.sp-btn-x:hover        { background:#111827; border-color:#111827; color:#fff; }
.sp-btn-linkedin:hover { background:#0a66c2; border-color:#0a66c2; color:#fff; }
.sp-btn-whatsapp:hover { background:#25d366; border-color:#25d366; color:#fff; }
.sp-btn-copy:hover     { background:#7c3aed; border-color:#7c3aed; color:#fff; }

.sp-copy-msg {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7c3aed;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .22s, transform .22s;
    white-space: nowrap;
    pointer-events: none;
}
.sp-copy-msg--visible { opacity: 1; transform: translateY(0); }

/* ── Nav wrap ── */
.sp-nav-wrap {
    padding-bottom: 2.5rem;
}

.sp-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 420px) {
    .sp-nav-grid { grid-template-columns: 1fr; }
}

.sp-nav-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid #e4e4e7;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    transition: border-color .25s, box-shadow .25s, transform .25s, background .25s;
    min-width: 0;
}
a.sp-nav-card:hover {
    border-color: #c4b5fd;
    background: rgba(245,243,255,.95);
    box-shadow: 0 8px 24px rgba(124,58,237,.12);
    transform: translateY(-2px);
}
.sp-nav-next { justify-content: flex-end; }
.sp-nav-disabled { opacity: .45; pointer-events: none; }

.sp-nav-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0ecff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    transition: background .2s;
}
a.sp-nav-card:hover .sp-nav-icon { background: #e0d9ff; }
.sp-nav-icon--muted { background: #f4f4f5; color: #a1a1aa; }

.sp-nav-info { min-width: 0; flex: 1; }
.sp-nav-info--right { text-align: right; }

.sp-nav-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: 3px;
}
.sp-nav-ttl {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #27272a;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}
a.sp-nav-card:hover .sp-nav-ttl { color: #7c3aed; }
.sp-nav-ttl--muted { color: #a1a1aa; }

/* ── Related ── */
.sp-related-wrap { padding-bottom: 2rem; }

.sp-related-header { margin-bottom: 1.5rem; }

.sp-related-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.sp-related-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -.03em;
    color: #111827;
    margin: 0;
}

.sp-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 560px) {
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
    .sp-related-grid { grid-template-columns: repeat(3, 1fr); }
}

.sp-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.sp-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 12px 32px rgba(124,58,237,.13);
    transform: translateY(-3px);
}

.sp-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
    background: #f5f3ff;
    flex-shrink: 0;
}
.sp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.sp-card:hover .sp-card-img { transform: scale(1.04); }

.sp-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f3ff, #faf5ff);
    color: #c4b5fd;
}
.sp-card-cat {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(4px);
    font-size: 0.66rem;
    font-weight: 700;
    color: #27272a;
    letter-spacing: .04em;
}

.sp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.sp-card-date {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #a1a1aa;
}
.sp-card-title {
    font-size: 0.93rem;
    font-weight: 800;
    color: #18181b;
    line-height: 1.35;
    letter-spacing: -.01em;
    margin: 0;
}
.sp-card-title a { text-decoration: none; color: inherit; transition: color .2s; }
.sp-card-title a:hover { color: #7c3aed; }
.sp-card-exc {
    font-size: 0.8rem;
    color: #71717a;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
    margin-top: auto;
    padding-top: 6px;
    transition: gap .2s, color .2s;
}
.sp-card-link:hover { color: #5b21b6; gap: 8px; }

.sp-related-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 0;
    color: #a1a1aa;
    font-size: 0.9rem;
}
.sp-related-empty a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}
.sp-related-empty a:hover { color: #5b21b6; }

/* ── Botão voltar ao blog ── */
.sp-back-to-blog {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.sp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid #e4e4e7;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 700;
    color: #52525b;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.sp-back-btn:hover {
    border-color: #c4b5fd;
    color: #7c3aed;
    background: #f5f3ff;
    box-shadow: 0 4px 14px rgba(124,58,237,.10);
}

/* ── Backward compat (antigas classes mantidas) ── */
.iv-post-featured-media { max-width: 100%; margin-inline: auto; }
.iv-post-meta-panel { position: relative; }
.iv-post-tags-panel { position: relative; }
.iv-post-pagination { align-items: stretch; }
.iv-post-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
    color: #5b21b6;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.iv-post-tag-chip:hover { background: #ede9fe; color: #4c1d95; }

/* ===========================================================
   CURSOR INTERATIVO
=========================================================== */
@media (pointer: fine) {
    body, a, button, input, textarea, select, .cursor-pointer {
        cursor: none !important;
    }

    #cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 8px; height: 8px;
        background-color: #8b5cf6;
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease-out, background-color 0.3s;
    }

    #cursor-outline {
        position: fixed;
        top: 0; left: 0;
        width: 40px; height: 40px;
        border: 1.5px solid rgba(139, 92, 246, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    background-color 0.3s, border-color 0.3s;
    }

    #cursor-outline.hover {
        width: 60px !important;
        height: 60px !important;
        background-color: rgba(139, 92, 246, 0.1) !important;
        border-color: rgba(217, 70, 239, 0.8) !important;
        mix-blend-mode: normal !important;
    }

    #cursor-dot.hover {
        transform: translate(-50%, -50%) scale(0.5) !important;
        background-color: #d946ef !important;
        opacity: 1 !important;
    }

    #cursor-outline.hover-text {
        width: 100px;
        height: 100px;
        background-color: #ffffff;
        border-color: transparent;
        mix-blend-mode: difference;
        z-index: 99998;
    }

    #cursor-dot.hover-text {
        opacity: 0;
    }

    .cursor-hidden {
        opacity: 0;
    }

    /* Cursor customizado nos elementos do banner e botão voltar ao topo */
    .iv-cookie-btn,
    .iv-cookie-link,
    .iv-btt-btn {
        cursor: none !important;
    }
}

/* ===========================================================
   WP ADMIN BAR FIX
=========================================================== */
body.admin-bar #main-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar #main-header {
        top: 46px;
    }
}

/* ===========================================================
   SINGLE PORTFOLIO - HEADER SOBREPOSTO
=========================================================== */
body.single-iv_portfolio .hero-section {
    z-index: 10;
    position: relative;
    margin-top: -96px; /* Sobe para cobrir o header */
    padding-top: 0px; /* Compensa o conteúdo */
}

/* ===========================================================
   SINGLE PORTFOLIO - FUNDO INTERATIVO DAS SEÇÕES
=========================================================== */
.designer-bg-section {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.designer-bg-section .parallax-layer-1 {
    transition: transform 0.2s cubic-bezier(0.1, 0, 0.2, 1);
}

.designer-bg-section .parallax-layer-2 {
    transition: transform 0.3s cubic-bezier(0.1, 0, 0.2, 1);
}

.designer-bg-section .parallax-layer-3 {
    transition: transform 0.4s cubic-bezier(0.1, 0, 0.2, 1);
}

/* ===========================================================
   MARCAS PARCEIRAS - LOGOS
=========================================================== */
.animate-scroll-x img {
    max-height: 3rem; /* 48px */
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .animate-scroll-x img {
        max-height: 4.5rem; /* 72px */
    }
}

/* Garante que logos com diferentes alturas fiquem centralizados */
.animate-scroll-x .flex {
    min-height: 3rem; /* Altura mínima para mobile */
}

@media (min-width: 768px) {
    .animate-scroll-x .flex {
        min-height: 4.5rem; /* Altura mínima para desktop */
    }
}

/* ===========================================================
   ANTI-TAILWIND OVERRIDE — garante tipografia do sp-content
   O Tailwind (mesmo sem preflight) pode sobrescrever
   via utilitários. Este bloco usa especificidade extra.
=========================================================== */

/* Força visibilidade do conteúdo do post — sem opacity-0 */
.sp-main,
.sp-hero,
.sp-container,
.sp-content,
.sp-thumb-wrap,
.sp-body-wrap,
.sp-share-wrap,
.sp-nav-wrap,
.sp-related-wrap {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Headings dentro do artigo — força estilo tipográfico */
article.sp-content h1,
article.sp-content h2,
article.sp-content h3,
article.sp-content h4,
article.sp-content h5,
article.sp-content h6 {
    display: block !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    color: #111827 !important;
    line-height: 1.2 !important;
    margin-top: 2em !important;
    margin-bottom: 0.65em !important;
}
article.sp-content h1 { font-size: clamp(1.6rem, 4vw, 2.4rem) !important; }
article.sp-content h2 { font-size: clamp(1.35rem, 3.2vw, 2rem) !important; }
article.sp-content h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem) !important; }
article.sp-content h4 { font-size: clamp(1rem, 2vw, 1.3rem) !important; }
article.sp-content h5,
article.sp-content h6 { font-size: 1rem !important; }

/* Parágrafos */
article.sp-content p {
    display: block !important;
    margin: 1.2em 0 !important;
    line-height: 1.85 !important;
    color: #374151 !important;
    font-size: inherit !important;
}
article.sp-content > p:first-of-type {
    font-size: 1.06rem !important;
    line-height: 1.75 !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
}
@media (min-width: 480px) {
    article.sp-content > p:first-of-type { font-size: 1.14rem !important; }
}
@media (min-width: 768px) {
    article.sp-content > p:first-of-type { font-size: 1.22rem !important; }
}

/* Listas */
article.sp-content ul,
article.sp-content ol {
    display: block !important;
    padding-left: 1.4em !important;
    margin: 1.4em 0 !important;
    line-height: 1.75 !important;
    list-style: revert !important;
}
article.sp-content ul { list-style-type: disc !important; }
article.sp-content ol { list-style-type: decimal !important; }
article.sp-content li {
    display: list-item !important;
    margin-bottom: 0.45em !important;
}
article.sp-content li::marker { color: #7c3aed !important; font-weight: 700 !important; }

/* Strong / em */
article.sp-content strong { color: #111827 !important; font-weight: 700 !important; }
article.sp-content em { font-style: italic !important; }

/* Links */
article.sp-content a {
    color: #5b21b6 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    font-weight: 500 !important;
}
article.sp-content a:hover { color: #7c3aed !important; }

/* Blockquote */
article.sp-content blockquote {
    display: block !important;
    margin: 1.8em 0 !important;
    padding: 1.1rem 1.4rem !important;
    border-left: 4px solid #7c3aed !important;
    border-radius: 0 12px 12px 0 !important;
    background: linear-gradient(135deg,#f5f3ff,#faf5ff) !important;
    color: #5b21b6 !important;
    font-style: italic !important;
    font-size: 1.02em !important;
    line-height: 1.65 !important;
}

/* Imagens */
article.sp-content img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 1.6em 0 !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.09) !important;
}

