/* BLOG */

/* Single */

body.single-post .deco-box {
	position: relative;
}

body.single-post .deco-box::before {
	top: -60px;
}

body.single-post .deco-box::after {
	bottom: -80px;
}

body.single-post #post-container {
	margin-top: 60px;
	margin-bottom: 80px;
	display: grid;
	grid-template-columns: minmax(600px, 768px) minmax(300px, 360px);
	gap: 40px;
	justify-content: space-between;
}

body.single-post .post-content .entry-content h2,
body.single-post .post-content .entry-content h3 {
	color: var(--color-1);
}

.single-post .post-content .entry-content :is(p, ol, ul) {
	line-height: 1.6;
}

body.single-post .post-content .entry-title {
	color: var(--color-2);
	font-size: 36px;
	font-weight: var(--weight-bold);
	margin-top: 0;
	margin-bottom: 30px;
	line-height: 1.2;
}

body.single-post .post-content .post-thumbnail img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 5px;
}

body.single-post .post-content .entry-meta {
	display: flex;
	line-height: 1.2;
}

body.single-post .post-content .entry-meta .posted-on {
	background-color: var(--color-1);
	color: #fff;
	font-weight: 500;
	display: inline-block;
	border-radius: 5px;
	font-size: 16px;
	padding: 11px 16px;
	margin: 0 24px 16px 0;
}

body.single-post .post-content .entry-meta .post-categories {
	margin: 0;
  	padding: 0;
  	list-style: none;
	display: inline-flex;
  	flex-wrap: wrap;
}

body.single-post .post-content .entry-meta .post-categories li {
  	margin: 0 10px 5px 0;
}

body.single-post .post-content .entry-meta .post-categories li a {
	font-weight: 500;
	color: var(--color-2);
	padding: 10px 16px;
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: 5px;
	font-size: 16px;
	transition: all 0.2s;
	display: block;
	line-height: 1.2;
}

body.single-post .post-content .entry-meta .post-categories li a:hover {
  color: #fff;
  background-color: var(--color-1);
  border-color: var(--color-1);
}

body.single-post .entry-tag {
	margin-top: 60px;
}

body.single-post .share-post {
  margin-top: 24px;
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  clear: both;
  background-color: #fff;
  border-radius: 5px;
  padding: 20px 24px;
}

body.single-post .share-post h3 {
	color: var(--color-2);
	font-size: 18px;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

body.single-post .share-post ul li {
  float: left;
  margin-left: 16px;
  line-height: 1;
}

body.single-post .share-post ul a {
	width: 32px;
	height: 32px;
	box-sizing: content-box;
	display: flex;
	justify-content: center;
	align-items: center;
}

body.single-post .share-post ul a::before {
	content: "";
	background-repeat: no-repeat;
	filter: contrast(60%);
	background-size: contain;
	background-position: center;
	display: inline-block;
	width: 20px;
	height: 20px;
}

body.single-post .share-post ul a:hover::before {
	filter: invert(19%) sepia(29%) saturate(7176%) hue-rotate(339deg) brightness(70%) contrast(83%);
}

body.single-post .share-post ul a[href^="https://www.facebook.com"]::before {
  background-image: url("../img/facebook-f.svg");
}

body.single-post .share-post ul a[href^="https://www.linkedin.com"]::before {
  background-image: url("../img/linkedin.svg");
}

body.single-post .share-post ul a[href^="https://www.twitter.com"]::before {
  background-image: url("../img/x-twitter.svg");
}

body.single-post .share-post ul a.ico-email::before {
  background-image: url("../img/icon_mail.svg");
}


body.single-post #secondary {
	background-color: #fff;
	border: 1px solid var(--color-border);
  	border-radius: 5px;
	padding: 20px 24px;
	height: fit-content;
}

body.single-post .widget-area .widget {
	margin-bottom: 60px;
}

body.single-post a {
	color: var(--color-2);
}

body.single-post a:hover {
	color: var(--color-1);
}

body.single-post .widget-area .wp-block-heading {
	color: var(--color-1);
	text-transform: uppercase;
	font-size: 18px;
	font-weight: var(--weight-bold);
	margin-top: 10px;
}

 body.single-post .widget-area .wp-block-categories-list li {
	 margin: 7px 0;
 }

  body.single-post .widget-area .wp-block-categories-list li a {
		transition: color 0.2s;
	}

 body.single-post .widget-area .wp-block-categories-list li a::before {
	 content: "";
	 border-style: solid;
	 border-width: 0 1px 1px 0;
	 display: inline-block;
	 padding: 3px;
	 transform: rotate(-45deg);
  position: relative;
  top: -1px;
  opacity: 0;
  transition: 0.2s;
}

body.single-post .widget-area .wp-block-categories-list li a:hover::before {
 margin-right: 10px;
 opacity: 1;
}

body.single-post .widget-area .wp-block-categories-list,
body.single-post .widget-area .wp-block-latest-posts__list,
body.single-post .share-post ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

body.single-post .widget-area .wp-block-latest-posts__list li {
	padding: 10px;
 	position: relative;
	margin: 0 0 10px;
	min-height: 80px;
	box-sizing: content-box;
	display: grid;
	grid-template-columns: 80px auto;
	grid-column-gap: 10px;
	background-color: var(--color-bg);
  	border-radius: 5px;
}

body.single-post .widget-area .wp-block-latest-posts__list li .wp-block-latest-posts__featured-image {
	grid-row: 1 / spin 2;
	height: 80px;
}

body.single-post .widget-area .wp-block-latest-posts__list li a {
	transition: color 0.2s;
}

body.single-post .widget-area .wp-block-latest-posts__list img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}

body.single-post .widget-area .wp-block-latest-posts__list .wp-block-latest-posts__post-title {
	line-height: 1.2;
	font-size: 17px;
	font-weight: var(--weight-bold);
	display: flex;
	align-items: flex-end;
}

body.single-post .widget-area .wp-block-latest-posts__list time {
	font-size: 13px;
	font-weight: 500;
  	margin-top: 2px;
	text-transform: uppercase;
}

body.single-post .entry-tag a,
body.single-post .widget-area .wp-block-tag-cloud a {
	background-color: #fff;
	color: var(--color-2);
	padding: 10px 15px 8px;
	margin-right: 10px;
	text-transform: uppercase;
	font-size: 14px;
	margin-bottom: 10px;
	display: inline-block;
	font-weight: var(--weight-bold);
	border-radius: 5px;
	transition: background-color 0.2s, color 0.2s;
}

body.single-post .widget-area .wp-block-tag-cloud a {
	background-color: var(--color-bg);
	padding: 10px 15px;
}

body.single-post .entry-tag a:hover,
body.single-post .widget-area .wp-block-tag-cloud a:hover {
	background-color: var(--color-1);
	color: #fff;
}

body.single-post #post-slider .blog-slider.slick-dotted.slick-slider {
	margin-bottom: 80px;
}


@media screen and (max-width: 1024px) {
	body.single-post #post-container {
	  grid-template-columns: minmax(auto, 768px);
		margin-bottom: 20px;
	}
	body.single-post .widget-area {
		width: 100%;
	}
}

@media screen and (max-width: 768px) {
	body.single-post .entry-title,
	body.single-post #post-slider .titolo h2 {
		font-size: 28px;
	}
	body.single-post .entry-meta {
  		flex-direction: column;
		margin-bottom: 10px;
	}
}

@media screen and (max-width: 480px) {
	body.single-post .share-post {
		align-items: flex-start;
		flex-direction: column;
	}
	 body.single-post .share-post ul {
		margin-top: 5px;
	 }
	 body.single-post .share-post ul li {
  	margin-left: 0;
  	margin-right: 20px;
	}
}


/* Archivio */

.blog-header .cat-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.blog-header .cat-list li {
	font-size: 16px;
	margin: 5px;
	display: inline-block;
}

.blog-header .cat-list li a {
	padding: 8px 18px;
	background-color: #fff;
	transition: 0.2s;
	display: inline-block;
	border-radius: 5px;
	font-weight: var(--weight-bold);
}

.blog-header .cat-list li a:hover {
	background-color: var(--color-2);
	color: #fff;
}

.blog-header .cat-list li a.active {
	background-color: var(--color-2);
	color: #fff;
}

.blog-header .tag-name {
	margin: 0;
	color: #fff;
  	font-size: 14px;
  	font-weight: var(--weight-bold);
}

.blog-header .tag-name span {
	font-size: 18px;
}

.blog-body {
	display: grid;
	gap: 50px 30px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	justify-items: center;
	padding-top: 80px;
	padding-bottom: 150px;
	position: relative;
}

.blog-body article.post {
	max-width: 480px;
}

@media screen and (max-width: 660px) {
	.blog-body {
		gap: 24px;
		padding-bottom: 80px;
	}
}


/* Paginazione */

@media screen and (min-width: 661px) {
	.blog-body .navigation.pagination {
		position: absolute;
		bottom: 70px;
	}
}