.meu-projeto-container{
    overflow: hidden;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100svh; /* usa o "safe" viewport height */
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 3rem;
    padding: 0;
}

.meu-projeto:first-of-type{
    margin-top: 9rem;
}

.meu-projeto:last-of-type{
    margin-bottom: 9rem;
}

.meu-projeto{
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 8px;
    padding: 1rem;
}

.mockup-projeto img{
    max-width: 100%;
}

.conteudo-projeto{
    justify-content: flex-start;
    text-align: left;
}

.conteudo-projeto h3{
    font-size: clamp(1.25rem, 2.5vw, 1.375rem);
    margin-bottom: 8px;
    color: var(--color-text-destaque);
}

.ferramentas-tecnologias{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ferramentas-tecnologias-label{
    font-size: 0.7rem;
    text-transform: uppercase;
    background-color: var(--white);
    padding: 0.2rem;
}

.projetos-tecnologias{
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.projetos-tecnologias img{
    width: 24px;
    height: 24px;
}

.projetos-links{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2px;
}

.projetos-links a{
    color: var(--color-primary);
    padding: 20px 0;
}

.projetos-links a:hover{
    text-decoration: underline;
}

.projetos-links a:focus{
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* --- Estilos da Página de Projeto Individual (single-projetos.php) --- */
.project-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
}

.estudo-de-caso-projeto {
    max-width: 1100px;
    margin: 120px auto;
    padding: 0 20px;
}

.projeto-header {
    text-align: center;
    margin-bottom: 40px;
}

.projeto-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.projeto-imagem-hero {
    margin-bottom: 40px;
    background-color: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.projeto-imagem-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.projeto-layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.projeto-conteudo {
    flex: 2; /* Ocupa 2/3 do espaço */
    min-width: 300px; /* Para responsividade */
}

.projeto-meta-sidebar {
    flex: 1; /* Ocupa 1/3 do espaço */
    min-width: 280px;
}

.projeto-meta-widget {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.projeto-meta-widget.widget-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.meta-item {
    margin-bottom: 15px;
}

.meta-item strong {
    display: block;
    color: #555;
    margin-bottom: 5px;
}

.lista-tecnologias {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lista-tecnologias li {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.9rem;
}

.icone-tech {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.projeto-links.button-link-projeto {
    display: block;
    background-color: var(--color-primary, #0073aa); /* Usa sua variável ou um azul padrão */
    color: #fff;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: background-color 0.2s ease-in-out;
}

.projeto-links.button-link-projeto:hover {
    background-color: var(--color-primary-dark, #005a87); /* Sugestão para cor no hover */
    text-decoration: none;
}

/* --- Design Responsivo para a Página Individual --- */
@media (max-width: 768px) {
  .projeto-layout-container {
        flex-direction: column;
    }

  .projeto-titulo {
        font-size: 2rem;
    }
}

/* =============================================
   PÁGINA SINGLE DE PROJETOS (NOVO LAYOUT)
   ============================================= */

.projeto-single-moderno {
    width: 100%;
    overflow-x: hidden;
}

/* --- 1. Hero Section Split --- */
.projeto-hero-split {
    position: relative;
    padding: 180px 0 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
}

.hero-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.projeto-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;

    min-width: 0; /* Para evitar que o conteúdo quebre o layout */
}

.projeto-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.projeto-subtitulo {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    text-transform: lowercase;
}

.projeto-titulo-principal {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--color-text-destaque);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.btn-hero-projeto {
    padding: 0.8rem 4rem;
    font-size: 1.125rem;
    border-radius: 8px;
    background: var(--degrade);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.btn-hero-projeto:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    color: var(--white);
}

/* --- Galeria do Hero (Preparada para várias imagens) --- */
.projeto-hero-gallery {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    
    /* Permite que role para o lado se você colocar muitas imagens */
    overflow-x: auto;
    padding-bottom: 20px;
    
    /* Essencial para forçar o scroll dentro do Grid */
    min-width: 0;

    /* Habilita rolagem suave nos celulares */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Barra de rolagem visível e fina para Desktop (Firefox) */
    scrollbar-width: thin; 
    scrollbar-color: var(--color-primary) transparent;
}

/* Barra de rolagem visível e fina para Desktop (Chrome, Safari, Edge) */
.projeto-hero-gallery::-webkit-scrollbar {
    height: 8px; /* Altura da barra horizontal */
}

.projeto-hero-gallery::-webkit-scrollbar-track {
    background: transparent; 
}

.projeto-hero-gallery::-webkit-scrollbar-thumb {
    background-color: var(--color-primary); /* Barrinha na sua cor laranja */
    border-radius: 10px; 
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    
    /* Tamanhos fixos flexíveis para não espremer as imagens */
    flex: 0 0 auto; 
    width: clamp(250px, 30vw, 400px); /* Ajusta baseado no tamanho da tela */
    height: auto;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- 2. Conteúdo Centralizado --- */
.projeto-conteudo-wrapper {
    background-color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.projeto-conteudo-centralizado {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--color-text);
}

.projeto-conteudo-centralizado p {
    margin-bottom: var(--spacing-md);
}

/* Suporte para imagens Full Width do Gutenberg dentro do conteúdo */
.projeto-conteudo-centralizado .alignwide,
.projeto-conteudo-centralizado .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.projeto-conteudo-centralizado .alignfull img {
    width: 100%;
    border-radius: 0;
}

/* --- 3. Outros Projetos --- */
.outros-projetos-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-escuro);
}

/* --- Imagem Full Width (Separador) --- */
.projeto-imagem-full {
    width: 100%;
    height: 600px; /* Altura fixa solicitada */
    background-color: var(--color-bg-escuro); /* Cor de fundo enquanto a imagem carrega */
    overflow: hidden;
    display: block;
}

.projeto-imagem-full img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* A mágica: preenche os 600px sem distorcer a imagem */
    object-position: center; /* Mantém o corte sempre focado no centro da imagem */
    display: block;
}

/* Ajuste fino de UX para celulares */
@media (max-width: 768px) {
    .projeto-imagem-full {
        /* Em celulares, 600px ocupa mais que a tela inteira. 
           Reduzir para 400px mantém a proporção elegante. */
        height: 400px; 
    }
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .projeto-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .projeto-hero-text {
        align-items: center;
    }

    .projeto-hero-gallery {
        justify-content: center;
        margin-top: var(--spacing-md);
    }
}