/* ===== ESTILOS GLOBAIS DO PAGE BUILDER ===== */

/* Rich Editor */
.rich-content .color { color: var(--color, inherit); }
@media (prefers-color-scheme: dark) {
    .rich-content .color { color: var(--dark-color, var(--color, inherit)) !important; }
}
.rich-content span.color,
.rich-content span[data-color] { color: var(--color, inherit) !important; }
.rich-content span.color * { color: inherit !important; }
.rich-content p { margin-bottom: 1rem; line-height: 1.7; }
.rich-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.rich-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.rich-content h1:not([style*="font-weight"]),
.rich-content h2:not([style*="font-weight"]),
.rich-content h3:not([style*="font-weight"]),
.rich-content h4:not([style*="font-weight"]) {
    font-weight: 700;
}
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
    margin-bottom: 1rem; line-height: 1.3;
}
.rich-content h1:not([style*="font-size"]) { font-size: 2rem; }
.rich-content h2:not([style*="font-size"]) { font-size: 1.75rem; }
.rich-content h3:not([style*="font-size"]) { font-size: 1.5rem; }
.rich-content h1[style*="font-weight"],
.rich-content h2[style*="font-weight"],
.rich-content h3[style*="font-weight"] { font-weight: inherit; }
.rich-content strong { font-weight: 600; }

/* Alinhamento TipTap v5 */
.rich-content [style*="text-align: center"],
.rich-content .text-center { text-align: center; }
.rich-content [style*="text-align: right"],
.rich-content .text-right { text-align: right; }
.rich-content [style*="text-align: justify"],
.rich-content .text-justify { text-align: justify; }

/* Cores TipTap v5 - span com data-color */
.rich-content span[data-color] {
    color: attr(data-color) !important;
}
.rich-content a { text-decoration: underline; }

/* Galeria */
.gallery-item img { transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* Cards de features e testemunhos */
.feature-card, .testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover, .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* Contadores */
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Alpine */
[x-cloak] { display: none !important; }

/* Cards imagem */
.cards-imagem-card img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}
.cards-imagem-card:hover img { transform: scale(1.08); }
.cards-imagem-card .card-img-overlay { transition: background 0.4s ease; }
.cards-imagem-card:hover .card-img-overlay { background: rgba(10, 36, 99, 0.38) !important; }
.cards-imagem-card .card-arrow { transition: transform 0.3s ease; }
.cards-imagem-card:hover .card-arrow { transform: rotate(45deg); }
