
.noticia-pagina-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 5% 60px 5%; /* Padding superior compensando o menu fixo */
    background-color: var(--branco, #ffffff);
}

.noticia-voltar-topo {
    margin-bottom: 1.5rem;
}

.noticia-voltar-topo a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--azul, #153d6a);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Efeito sutil ao passar o mouse: a seta vai levemente para a esquerda */
.noticia-voltar-topo a:hover {
    color: var(--amarelo-escuro, #e0ab00);
}

.noticia-voltar-topo a:hover i {
    transform: translateX(-4px);
}

.noticia-voltar-topo i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

/* Meta Dados do Topo */
.noticia-header-meta {
    margin-bottom: 2rem;
    text-align: left;
}

.noticia-tag-layout {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--amarelo-escuro, #e0ab00);
    letter-spacing: 2px;
}

.noticia-header-meta h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--azul, #153d6a);
    font-weight: 900;
    line-height: 1.2;
    margin: 0.5rem 0 1rem 0;
}

.meta-dados {
    font-size: 0.88rem;
    color: #666;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.meta-dados i {
    color: var(--azul, #153d6a);
}

/* Corpo do Texto Comum */
.conteudo-texto-noticia {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    margin: 2rem 0;
}

/* ─── ELEMENTOS DO TEMPLATE 1 & 3: CAPA PADRÃO ─── */
.capa-noticia {
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ─── ELEMENTOS DO TEMPLATE 2: INTERCALADO ─── */
.capa-noticia-mini {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.imagem-meio-texto {
    margin: 2.5rem 0;
    text-align: center;
}

.imagem-meio-texto img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.imagem-meio-texto figcaption {
    font-size: 0.88rem;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* ─── ELEMENTOS DO TEMPLATE 3: GRID DE GALERIA ─── */
.galeria-fotos-eventos {
    margin-top: 35px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.galeria-fotos-eventos h3 {
    font-size: 1.15rem;
    color: #153d6a; /* Azul institucional da Hallen Telecom */
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

.galeria-grid::-webkit-scrollbar {
    width: 6px;
}
.galeria-grid::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}
.galeria-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.galeria-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.foto-item {
    width: 100%;
    aspect-ratio: 4 / 3;     /* Mantém uma proporção padrão agradável para as fotos */
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #eaeaea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.foto-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 61, 106, 0.15);
    cursor: pointer;
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.foto-item img:hover {
    transform: scale(1.03);
}


/* Responsivo */
@media (max-width: 768px) {
    .capa-noticia { height: 250px; }
    .capa-noticia-mini { height: 180px; }
    .meta-dados { flex-direction: column; gap: 8px; }
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 380px;
    }
}

/* ─── MODAL DA GALERIA (TELA CHEIA) ─── */
.galeria-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}


.galeria-modal-conteudo {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomModal 0.25s ease-out;
}

/* Botão de fechar (X) */
.galeria-modal-fechar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.galeria-modal-fechar:hover {
    color: #cbd5e1;
}

/* Animação suave de abertura */
@keyframes zoomModal {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}