/*
Theme Name: OceanWP Child Theme
Theme URI: https://unitevianoiaugusta.it/
Description: OceanWP WordPress theme. Sample child theme.
Author: Elena
Author URI: https://unitevianoiaugusta.it/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

div.recent-posts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

div.post {
	width: 40%;
	border: 4px dotted #81BEDF;
	border-radius: 50px;
	margin: 20px;
}

.recent-posts .thumbnail {
	position: relative;
    width: 100%; /* Adatta alla larghezza del contenitore */
    height: 250px; /* Altezza fissa per le miniature */
    background-size: cover; /* Copre l'intero div */
    background-position: center; /* Centra l'immagine */
	border-radius: 46px 46px 0 0;
	transition: all 0.5s ease;
	border-bottom: 2.5px solid #81BEDF;
}

.overlay {
    position: absolute; /* Posizionamento assoluto per coprire l'immagine */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Colore di sovrapposizione scuro con trasparenza */
    opacity: 0; /* Inizialmente invisibile */
    transition: opacity 0.5s ease; /* Transizione per l'opacità */
	border-radius: 46px 46px 0 0;
}

.arrow {
    position: absolute; /* Posizionamento della freccia al centro */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra la freccia */
    color: white; /* Colore della freccia */
    font-size: 24px; /* Dimensione della freccia */
    opacity: 0; /* Inizialmente invisibile */
    transition: opacity 0.5s ease; /* Transizione per l'opacità */
}

.recent-posts .thumbnail:hover .overlay {
    opacity: 1; /* Rendi visibile l'overlay al passaggio del mouse */
}

.recent-posts .thumbnail:hover .arrow {
    opacity: 1; /* Rendi visibile la freccia al passaggio del mouse */
}

div.content {
	padding-left: 17px;
	padding-top: 10px;
	padding-right: 17px;
}

div.content h2 {
	margin-bottom: 5px;
	color: #0A046F;
	font-size: 20px;
}

div.content a {
	color: #0A046F;
}

div.content a:hover {
	color: #81BEDF;
	transition: opacity 0.5s ease;
}

div.content p{
	font-size: 16px;
}


@media only screen and (max-width: 768px) {
	div.recent-posts {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
		div.post {
		width: 82%;
	}
}
