/*
Theme Name: diTerra
*/

.home-img {
	position: relative;
	margin-bottom: 30px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 40%);
}
.home-img img {
	display: block;
    border-radius: 2px;
    height: 600px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.home-img-txt {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	color: #fff;
	padding: 40px;
	text-shadow: 1px 1px 3px #000;
	font-size: 26px;
	line-height: 1.4;
}
.home-img-txt h1,
.home-img-txt h2 {
	color: #fff;
	font-size: 34px;
	line-height: 1.4;
	font-weight: inherit;
}
.white {
    background: #fff;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    border-radius: 2px;
    margin-bottom: 15px;
}
.white .intro {
	font-size: 1.3em;
	padding: 20px 0 !important;
}
.white.min-100 {
	min-height: 100vh;
}
/*
.white img {
	display: block;
	width: 100% !important;
	height: auto !important;
	border-radius: 2px;
	padding: 20px 0 !important;
}
*/
.white h1 {
	font-size: 32px;
}
.white h2 {
	font-size: 22px;
}
.wp-block-preformatted {
	font-size: 1.1em;
    font-family: inherit;
    font-weight: bold;
	padding-bottom: 20px;
}

.side-banner {
    display: block;
    padding: 10px;
    height: 120px;
    margin-bottom: 15px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #eee;

    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    border-radius: 2px;
}

.side-banner span {
	display: inline-block;
	font-weight: bold;
	font-size: 13px;
	color: #FFF;
	padding: 4px 10px;
	float: left;
	background: rgba(0,0,0,0.5);
}

/* CAT */
.post {
	display: block;
	position: relative;
	background: #fff;
	margin-bottom: 15px;
	min-height: 400px;

	box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    border-radius: 2px;

	background-size: cover;
	background-position: center;
}

.post-image {
	position: relative;
	width: 120px;
	margin-right: 30px;
	display: block;
	z-index: 3;
}
.post-image img {
	width: 100%;
	height: auto;
	-moz-box-shadow: 0 1px 2px #000;
	-webkit-box-shadow: 0 1px 2px #000;
	box-shadow: 0 1px 2px #000;
}
.post-category {
	color: #fff;
	position: absolute;
    bottom: 0px;
    left: 0px;
    padding: 40px;
    text-shadow: 1px 1px 3px #000;
}
.post-titolo {
    color: #fff;
    font-size: 26px;
    line-height: 1.4;
    font-weight: 300;
    margin: 0 0 10px 0;
    padding: 40px;
    text-shadow: 1px 1px 3px #000;
}


.single-thumb {
    position: relative;
	height: 300px;
    overflow: hidden;
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    line-height: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    border-radius: 2px;
    z-index: -1;
}

.single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.single-data {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
    color: #FFF;
    padding: 15px;
    background: rgba(0,0,0,0.5);
}

.single .wp-block-image img {
    padding: 0;
}
.single .wp-block-image .alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
    width: 40%;
}
.single .wp-block-image .alignright {
    float: right;
    margin: 0.5em 0em 0.5em 1em;
    width: 40%;
}
.single .wp-block-image .aligncenter {
    margin-top: 1em;
    margin-bottom: 1em;
    width: 40%;
}

@media (max-width: 768px) {
	.single .wp-block-image .alignleft,
	.single .wp-block-image .alignright,
	.single .wp-block-image .aligncenter {
		width: 100%;
	}
}

/* FOOTER */
#footer {
	width: 100%;
	background: #fff;
	font-size: 14px;
	line-height: 1.4em;
	color: #999;
	padding: 40px 0;
	margin-top: 80px;
	text-align: center;
}
#footer a {
	color: #000;
}
.cane {
	max-width: 80px;
    width: 100%;
    margin-bottom: 10px;
}


/* 404 */
.page404 {
	text-align: center;
	font-size: 160px;
	line-height: 120%;
	font-weight: bold;
}
.page404 span {
	display: block;
	font-weight: bold;
	font-size: 40px;
	line-height: 140%;
}
.page404 small {
	font-size: 18px;
}


/* MD - meno di 1200px */
@media (max-width: 1200px) {

}

/* SM - meno di 992px */
@media (max-width: 992px) {

}

/* XS - meno di 768px */
@media (max-width: 768px) {

	.white {
		padding: 20px;
		font-size: 14px;
	}
	.post {
		min-height: 240px;
	}
	.post-titolo {
		font-size: 22px;
    	line-height: 1.2;
	}
	.post-category {
		padding: 20px 40px;
	}
	.post-image {
		display: none;
	}
	.post-content {
		padding: 15px 25px;
	}

}
