<?php 
	
	global $post;
	$cor_post = get_field( "cor", $post->ID );
	$imagem = get_the_post_thumbnail_url( $post->ID, 'full' );

?>
<div class="post-item column large-6 medium-6 small-12 end zero-padding <?php echo $cor_post;?>">
	<div class="categoria alinha-post-item"><?php the_category(" "); ?></div>
	<?php if($imagem):?>
	<a href="<?php the_permalink();?>" class="img" style="background-image: url(<?php echo $imagem; ?>); "></a>
<?php endif; ?>
	<div class="alinha-post-item">
		<h2 class="type-g purple"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
		<?php the_excerpt(); ?>
		<a href="<?php the_permalink();?>" class="purple onepad type-ss">Continue lendo »</a>
	</div>
</div>