/* BLOG */

/* Single */

body.single-post .site-main {
	margin-bottom: 60px;
}

body.single-post #post-container {
	margin-top: 60px;
	margin-bottom: 40px;
	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-1);
	font-size: 36px;
	margin-top: 0;
	margin-bottom: 30px;
	line-height: 1.2;
	text-transform: none;
}

body.single-post .post-content .post-thumbnail img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
}

body.single-post .post-content .entry-meta {
	display: flex;
	margin-top: 10px;
	font-weight: 500;
}

body.single-post .entry-meta a {
	font-weight: 500;
}

body.single-post .post-content .entry-meta .posted-on {
	font-style: italic;
	color: var(--color-2-plus);
	margin-right: 25px;
}

body.single-post .entry-tag {
	margin-top: 60px;
}

body.single-post .share-post {
  margin-top: 40px;
	margin-bottom: 60px;
  border-top: medium double #ccc;
  border-bottom: medium double #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  clear: both;
}

body.single-post .share-post h3 {
	color: var(--color-1);
  font-size: 26px;
  font-weight: 600;
	margin: 0;
	padding: 20px 0;
}

body.single-post .share-post ul li {
  float: left;
  margin-left: 20px;
  line-height: 1;
}

body.single-post .share-post ul a {
  display: inline-block;
  width: 26px;
  height: 26px;
	padding: 5px;
	box-sizing: content-box;
}

body.single-post .share-post ul a::before {
  content: "";
  background-repeat: no-repeat;
	filter: invert(25%) sepia(20%) saturate(780%) hue-rotate(89deg) brightness(96%) contrast(92%);
	background-size: contain;
	background-position: center;
  display: inline-block;
	width: 100%;
	height: 100%;
}

body.single-post .share-post ul a:hover::before {
	filter: invert(42%) sepia(87%) saturate(384%) hue-rotate(6deg) brightness(100%) contrast(96%);
}

body.single-post .share-post ul a[href^="https://www.facebook.com"]::before {
  background-image: url("../img/facebook.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/envelope.svg");
}


body.single-post .widget-area .widget {
	margin-bottom: 60px;
}

body.single-post .widget-area a {
	font-weight: 500;
}

body.single-post .widget-area .wp-block-heading {
	color: var(--color-1);
	text-transform: uppercase;
	font-size: 18px;
	font-weight: 600;
	border-bottom: medium double var(--color-2);
	padding-bottom: 15px;
	margin-top: 10px;
	font-style: normal;
}

 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: "";
	width: 6px;
	height: 2px;
	display: inline-block;
	background-color: var(--color-2);
  position: relative;
  top: -4px;
  opacity: 0;
  transition: 0.2s;
}

body.single-post .widget-area .wp-block-categories-list li a:hover::before {
 margin-right: 10px;
 opacity: 1;
 width: 12px;
}

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: 5px 10px 15px 0;
  position: relative;
  margin: 0 0 10px;
  border-bottom: medium double #e0e3e5;
	min-height: 80px;
  box-sizing: content-box;
	display: grid;
	grid-template-columns: 80px auto;
	grid-column-gap: 10px;
}

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;
}

body.single-post .widget-area .wp-block-latest-posts__list .wp-block-latest-posts__post-title {
	line-height: 1;
	font-size: 18px;
	display: flex;
	align-items: flex-end;
}

body.single-post .widget-area .wp-block-latest-posts__list time {
	color: var(--color-2-plus);
	font-size: 14px;
	font-weight: 500;
	margin: 5px 0 0;
	text-transform: uppercase;
}

body.single-post .entry-tag a,
body.single-post .widget-area .wp-block-tag-cloud a {
	background-color: var(--color-bg);
	padding: 8px 15px;
	margin-right: 10px;
	text-transform: uppercase;
	font-size: 16px;
	margin-bottom: 10px;
	display: inline-block;
	transition: background-color 0.2s, color 0.2s;
}

body.single-post .entry-tag a:hover,
body.single-post .widget-area .wp-block-tag-cloud a:hover {
	background-color: var(--color-2);
	color: #fff;
}

body.single-post #post-slider .blog-slider.slick-dotted.slick-slider {
	margin-bottom: 120px;
}

body.single-post #post-slider .titolo {
	text-align: center;
	margin-bottom: 40px;
}

@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;
	}
}

@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-bottom: 20px;
	 }
	 body.single-post .share-post ul li {
  	margin-left: 0;
  	margin-right: 20px;
	}
}

/* Archivio */

.blog-header {
	margin-top: 20px;
}

.blog-header .page-title {
	color: var(--color-1);
}

.blog-header .cat-list {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	text-align: center;
}

.blog-header .cat-list li {
	font-size: 18px;
	margin: 5px;
	display: inline-block;
}

.blog-header .cat-list li a {
	padding: 5px 15px;
	background-color: var(--color-bg);
	transition: 0.2s;
	display: inline-block;
	font-weight: 500;
}

.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-1);
	color: #fff;
}

.blog-header .tag-name {
	margin: 0;
	text-align: center;
  font-weight: 500;
}

.blog-header .tag-name span {
	color: var(--color-2);
}

.blog-body {
	display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
	margin-top: 40px;
	margin-bottom: 100px;
	position: relative;
	justify-items: center;
}

@media screen and (max-width: 580px) {
	.blog-body {
		grid-template-columns: 1fr;
	}
}

/* Paginazione */

.blog-body .navigation.pagination {
	position: absolute;
  bottom: 0px;
}

@media screen and (max-width: 768px) {
	.blog-body .navigation.pagination {
	  bottom: -50px;
	}
}
