/* * PONTO MEGA - CUSTOM CSS 2026 
 * Evolução: Design Tech, Profissionalismo e Fluidez
 */

:root {
    --pm-primary: #2563eb;       /* Azul Moderno (Indigo) */
    --pm-primary-hover: #1d4ed8;
    --pm-success: #10b981;      /* Esmeralda para Status Ativo */
    --pm-bg-body: #f1f5f9;      /* Cinza muito claro para destacar os cards brancos */
    --pm-text-main: #0f172a;    /* Slate quase preto */
    --pm-text-muted: #64748b;   /* Slate acinzentado */
    --pm-white: #ffffff;
    --pm-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --pm-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --pm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset e Base --- */
body {
    background-color: var(--pm-bg-body);
    color: var(--pm-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.main {
    min-height: 75vh;
    padding-top: 2rem;
}

/* --- Header & Navbar (Glassmorphism) --- */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-brand .logo {
    max-height: 55px;
    width: auto;
}



.nav-link {
    font-weight: 600;
    color: var(--pm-text-main) !important;
    font-size: 0.95rem;
    transition: var(--pm-transition);
}

.nav-link:hover {
    color: var(--pm-primary) !important;
}

/* --- Seletor de Idiomas --- */
.mod-languages__list {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mod-languages__list img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--pm-transition);
    filter: grayscale(40%);
}

.mod-languages__list li.lang-active img,
.mod-languages__list img:hover {
    filter: grayscale(0%);
}

/* --- Seção Welcome (Hero) --- */
.section-welcome {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at top, #ffffff 0%, var(--pm-bg-body) 100%);
}

.subtitle-bordered {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--pm-text-main);
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

#mod-custom119 p {
    font-size: 1.2rem;
    color: var(--pm-text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Listagem de Blog e Portfolio (Cards) --- */
.blog-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center; 
    gap: 2.5rem;
    background: var(--pm-white);
    padding: 1.5rem;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--pm-shadow);
    transition: var(--pm-transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.blog-item:hover {
    box-shadow: var(--pm-shadow-hover);
}

.blog-item .item-image {
    flex: 0 0 40%;
    margin: 0;
}

.blog-item .item-image a {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
}

.blog-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-item:hover .item-image img {
    transform: scale(1.08);
}

.blog-item .item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-item .page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-item .page-header h2 a {
    color: var(--pm-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-item .page-header h2 a:hover {
    color: var(--pm-primary);
}

/* Badge "Ativo" */
.field-entry.site-ativo {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: #166534 !important;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem !important;
    font-weight: 700;
    border: 1px solid #bbf7d0;
    margin-bottom: 1rem;
}

.field-entry.site-ativo::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--pm-success);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--pm-success);
}

/* --- Páginas Internas de Artigo e Snippets --- */
.item-page, .com-contact.contact {
    background: var(--pm-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--pm-shadow);
    margin-bottom: 3rem;
}

.item-page .page-header h1, .com-contact.contact h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--pm-text-main);
    margin-bottom: 1.5rem;
}

/* --- Formulário de Contato Otimizado --- */
#contact-form {
    max-width: 800px;
}

#contact-form fieldset {
    border: none;
    padding: 0;
}

#contact-form legend {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pm-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--pm-bg-body);
    padding-bottom: 10px;
    width: 100%;
}

#contact-form .control-group {
    margin-bottom: 1.5rem;
}

#contact-form .control-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--pm-text-main);
}

#contact-form .form-control {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--pm-transition);
    background-color: #f8fafc;
}

#contact-form .form-control:focus {
    outline: none;
    border-color: var(--pm-primary);
    background-color: var(--pm-white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Ajuste para Estrela de Campo Obrigatório */
#contact-form .star {
    color: #ef4444;
    margin-left: 4px;
}

#contact-form .red {
    color: #ef4444;
    font-size: 0.85rem;
}

/* Estilo para o Checkbox de Cópia */
.form-check-input:checked {
    background-color: var(--pm-primary);
    border-color: var(--pm-primary);
}

/* Reaproveitamento do botão estilizado */
#contact-form button[type="submit"] {
    margin-top: 1rem;
}

/* Estilização de Blocos de Código (Snippets) */
.com-content-article__body div[style*="font-family: Consolas"] {
    background-color: #1e1e1e !important;
    border-radius: 0.75rem !important;
    padding: 1.25rem !important;
    margin: 1.5rem 0 !important;
    border: 1px solid #333 !important;
    overflow-x: auto;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.com-content-article__body h4 {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--pm-text-main);
    border-left: 4px solid var(--pm-primary);
    padding-left: 15px;
}

/* Compartilhamento Social */
.sharesimple-container {
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0 !important;
    padding: 20px !important;
    margin-top: 40px !important;
}

.sharesimple-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sharesimple-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--pm-transition);
    text-decoration: none;
}

.sharesimple-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Botões Modernos */
/* Container do botão */
.readmore {
    text-align: center;
    margin: 40px 0 20px;
}

/* Estilo do botão */
.btn.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    padding: 14px 34px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    
    background-color: #00b2a9;           /* Cor teal moderna (Joomla vibe) */
    color: #ffffff;
    border: none;
    border-radius: 9999px;               /* Formato pílula moderno */
    
    box-shadow: 0 4px 15px rgba(0, 178, 169, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    text-decoration: none;
}

/* Hover - efeito premium */
.btn.btn-secondary:hover {
    background-color: #00998f;
    transform: translateY(-3px) translateX(8px);
    box-shadow: 0 10px 25px rgba(0, 178, 169, 0.4);
    color: #ffffff;
}

/* Animação do ícone */
.btn.btn-secondary .icon-chevron-right {
    font-size: 1.25rem;
    transition: transform 0.35s ease;
}

.btn.btn-secondary:hover .icon-chevron-right {
    transform: translateX(8px);
}

/* Foco para acessibilidade */
.btn.btn-secondary:focus-visible {
    outline: 3px solid #00b2a9;


/* --- Footer --- */
.footer {
    background-color: var(--pm-text-main);
    color: #94a3b8;
    padding: 60px 0 40px;
    margin-top: 4rem;
}

/* --- Botão Voltar ao Topo --- */
#back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--pm-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

/* --- Ajustes Responsivos --- */
@media (max-width: 991px) {
    .blog-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .blog-item .item-image {
        flex: 0 0 100%;
    }
    
    .subtitle-bordered {
        font-size: 2rem;
    }

    .item-page, .com-contact.contact {
        padding: 1.5rem;
    }
}