/**
 * Blog card shortcode [blog_card] styles
 */

/**
 * Blog card shortcode [blog_card] styles
 */

/* ----- Toolbar: Filtri button + Search bar ----- */
.dch-blog-cards__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 80px;
	flex-wrap: wrap;
}

.dch-blog-cards__filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 30px;
	background: #fff;
	border: 2px solid #33a0ff;
	border-radius: 999px;
	color: #33a0ff;
	font-size: 20px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background 0.2s,
		border-color 0.2s,
		color 0.2s;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
	min-width: 146px;
	justify-content: center;
}

.dch-blog-cards__filter-btn:hover {
	background: #f0f7ff;
	border-color: #33a0ff;
	color: #33a0ff;
}

.dch-blog-cards__filter-btn--active {
	background: #33a0ff;
	border-color: #33a0ff;
	color: #fff;
}
.dch-blog-cards__filter-btn--active img {
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(272deg) brightness(105%) contrast(104%);
}
.dch-blog-cards__toolbar-filters {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

#dch-blog-cards-container #dch-blog-filter-clear {
	display: none !important;
	background: none;
	border: none;
	padding: 0;
	color: #33a0ff;
	font-size: 20px;
	font-weight: 500;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
}

#dch-blog-cards-container #dch-blog-filter-clear:hover {
	text-decoration: underline;
}

#dch-blog-cards-container #dch-blog-filter-clear.dch-blog-cards__filter-clear--visible {
	display: inline-block !important;
	text-decoration: underline;
}

.dch-blog-cards__filter-icon {
	flex-shrink: 0;
}

.dch-blog-cards__search-wrap {
	position: relative;
	flex: 1;
	width: 100%;
	max-width: 423px;
}

.dch-blog-cards__search-clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	width: 27px;
	padding: 0;
	display: none;
}

.dch-blog-cards__search-clear--visible {
	display: block;
}

.dch-blog-cards__search-icon {
	position: absolute;
	left: 30px;
	top: 50%;
	transform: translateY(-50%);
	color: #33a0ff;
	pointer-events: none;
	width: 22px;
	height: 22px;
}

.dch-blog-cards--category .content-card--equal .content-card-description {
	-webkit-line-clamp: 4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dch-blog-cards__toolbar .dch-blog-cards__search-input {
	width: 100%;
	padding: 12px 30px 12px 68px;
	background: #fff;
	border: 2px solid #33a0ff;
	border-radius: 999px;
	font-size: 20px;
	font-weight: 500;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
	color: #33a0ff;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

.dch-blog-cards__toolbar .dch-blog-cards__search-input::placeholder {
	color: #33a0ff;
}

.dch-blog-cards__toolbar .dch-blog-cards__search-input:focus {
	outline: none;
	box-shadow: none;
	color: #33a0ff;
	border: 2px solid #33a0ff;
}

/* ----- Sidebar backdrop ----- */
.dch-blog-cards__sidebar-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.dch-blog-cards--sidebar-open .dch-blog-cards__sidebar-backdrop {
	opacity: 0.4;
	visibility: visible;
}

/* ----- Filter sidebar ----- */
.dch-blog-cards__sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 385px;
	height: 100vh;
	background: #fff;
	border-radius: 0;
	z-index: 9999;
	padding: 40px;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	flex-direction: column;
	display: flex;
	justify-content: space-between;
}

.dch-blog-cards--sidebar-open .dch-blog-cards__sidebar {
	transform: translateX(0);
}

.dch-blog-cards__sidebar-title {
	font-size: 25px;
	font-weight: 700;
	color: #33a0ff;
	margin-bottom: 40px;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
	padding-bottom: 0;
}

.dch-blog-cards__sidebar-form {
	display: flex;
	flex-direction: column;
	gap: 30px;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
}

.dch-blog-cards__sidebar-option {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

/* Checkbox: rounded-full circle; unchecked = ring only; checked = ring + 5px rounded-full inner dot */
.dch-blog-cards__sidebar-checkbox {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none !important;
	margin: 0;
	border: 1px solid #33a0ff;
	border-radius: 50%;
	background: #fff;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

.dch-blog-cards__sidebar-checkbox:checked {
	border: 1px solid #33a0ff;
}

.dch-blog-cards__sidebar-checkbox:checked::after {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #33a0ff;
}

.dch-blog-cards__sidebar-option-text {
	font-size: 20px;
	font-weight: 400;
	color: #000;
	transition: all 0.3s ease;
}

.dch-blog-cards__sidebar-option-text:hover {
	color: #33a0ff;
}

.dch-blog-cards__sidebar-submit {
	margin-top: 40px;
	padding: 10px 24px;
	background: #33a0ff;
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 20px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background 0.2s,
		transform 0.1s;
	width: 100%;
	transition: all 0.8s ease;
	border: 2px solid #33a0ff;
}

.dch-blog-cards__sidebar-submit:hover {
	background: #fff;
	color: #33a0ff;
	border: 2px solid #33a0ff;
}

.dch-blog-cards__sidebar-submit:active {
	transform: scale(0.98);
}

/* Content wrap: blur when sidebar open */
.dch-blog-cards__content-wrap {
	transition: filter 0.3s ease;
}

.dch-blog-cards--sidebar-open .dch-blog-cards__content-wrap {
	filter: blur(2px);
}

/* Ensure container is positioning context for fixed sidebar on this section only */
#dch-blog-cards-container {
	position: relative;
}

.dch-blog-cards .content-card-image-wrap {
	width: 100%;
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 15px;
}

.dch-blog-cards .content-card-image-link {
	display: block;
	width: 100%;
	position: relative;
	z-index: 0;
}

.dch-blog-cards .full-blog-card .content-card-image-wrap {
	min-height: 356px;
	border-radius: 15px;
	overflow: hidden;
}

.small-blog-card .content-card-image-wrap img,
.small-blog-card .content-card-image-link img {
	height: 153px;
	width: 100%;
	display: block;
	object-fit: cover;
	border-radius: 15px;
	transition: ease all 0.3s;
}

.content-card-image-wrap:hover .content-card-title {
	text-decoration: underline;
	color: #33a0ff;
}

.content-card-image-wrap:before {
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background: linear-gradient(0deg, #a4d1ffb3 0%, #e6e7e845 50%) !important;
	border-radius: 15px;
	z-index: 1;
	pointer-events: none;
}

.dch-blog-cards .content-card {
	padding: 30px;
	background: #fff;
	overflow: hidden;
	max-width: 100%;
	border-radius: 15px;
	box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.2);
}

.dch-blog-cards .content-card-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	color: #fff;
	padding: 20px;
	z-index: 2;
	transition: all 0.3s ease;
	margin: 0;
	font-size: 25px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
}

/* Category line below image */
.dch-blog-cards .content-card-title-below a,
.content-card-title-below a {
	font-size: 25px;
	font-weight: 400;
	display: block;
	margin: 0 0 10px 0;
	line-height: 1.2;
	color: #000;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
}

#dch-blog-cards-container .content-card-title-below {
	margin: 0 0 10px 0;
}

.content-card-image-wrap:hover .content-card-image-link img,
.content-card-image-wrap:hover img {
	transform: scale(1.1);
}

.dch-blog-cards .full-blog-card .content-card-image-wrap img,
.dch-blog-cards .full-blog-card .content-card-image-link img {
	height: 396px;
	border-radius: 15px;
	transition: all 0.3s ease;
	display: block;
	object-fit: cover;
	width: 100%;
}

.dch-blog-cards .content-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 31px;
}

/* ----- Mosaic layout: two columns, cards stack with fixed gap (no grid row holes) ----- */
#dch-blog-cards-container .dch-blog-cards__posts-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

#dch-blog-cards-container .dch-blog-cards__grid-heading {
	min-width: 0;
	width: 100%;
}

#dch-blog-cards-container .dch-blog-cards__mosaic {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 25px;
	width: 100%;
}

#dch-blog-cards-container .dch-blog-cards__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#dch-blog-cards-container .dch-blog-cards__grid-item {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

#dch-blog-cards-container .content-card-image-wrap {
	position: relative;
}

#dch-blog-cards-container .content-card-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	margin: 0;
}

.dch-blog-cards .content-card-body {
	padding-top: 25px;
}

body .dch-blog-cards .content-card-category a {
	font-size: 23px !important;
	font-weight: 700;
	color: #000;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
}

.dch-blog-cards .small-blog-card {
	margin-bottom: 0;
}

#dch-blog-cards-container .dch-blog-cards__featured-small-wrap .small-blog-card {
	margin-bottom: 0;
}

.dch-blog-cards .content-card-description,
.dch-blog-cards .content-card-full-description {
	font-size: 25px;
	font-weight: 400;
	color: #494949;
	line-height: 1.2;
	margin: 0;
}

.full-blog-card .content-card-full-description {
	display: -webkit-box;
	-webkit-line-clamp: 7;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.small-blog-card .content-card-description {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ----- No results message under cards ----- */
.dch-blog-cards__no-results {
	display: none;
	margin-top: 32px;
	font-size: 20px;
	font-weight: 500;
	color: #8a8a8a;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
	text-align: center;
	padding: 16px 24px;
	border-radius: 999px;
	background: #f4f8ff;
	border: 1px solid #d0e2ff;
}

.dch-blog-cards__no-results--visible {
	display: block !important;
}

/* ----- Vedi di più button ----- */
.dch-blog-cards__vedi-piu-wrap {
	text-align: center;
	margin-top: 40px;
	margin-bottom: 0px;
}

.dch-blog-cards__vedi-piu {
	background: none;
	border: none;
	padding: 0;
	font-size: 30px;
	font-weight: 500;
	color: #33a0ff;
	cursor: pointer;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
	transition: color 0.2s;
}

.dch-blog-cards__vedi-piu:hover {
	color: #2280dd;
	text-decoration: underline;
}

.dch-blog-cards .main-blog-title h2 {
	font-size: 40px;
	font-weight: 700;
	margin-bottom: 40px;
	padding-bottom: 0 !important;
	font-family: "Inter", Helvetica, Arial, Lucida, sans-serif;
	line-height: 1.2;
}

.dch-blog-cards .main-blog-title .dch-blog-cards__post-count {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: #555;
	margin-top: -32px;
	margin-bottom: 40px;
}

.dch-blog-cards.compare-card {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.dch-blog-cards .content-card-title a {
	color: inherit;
	text-decoration: none;
}

/* ========== Category + Blog layout (Trend & Mercato style) ========== */

.dch-blog-cards.dch-blog-cards--category {
	margin-bottom: 105px !important;
}

.dch-blog-cards.dch-blog-cards--category:last-of-type {
	margin-bottom: 0 !important;
}

.dch-blog-cards__category-arrow {
	display: flex;
	align-items: center;
}

.dch-blog-cards__category-header {
	align-items: center;
	background: linear-gradient(270deg,
			rgb(164 209 255) 60%,
			rgb(220 237 255) 100%) !important;
	display: inline-flex;
	padding: 16px 50px;
	font-size: 25px;
	font-weight: 700;
	color: #000;
	max-width: 568px;
	width: 100%;
	justify-content: space-between;
	position: relative;
	padding-right: 0;
	z-index: 9;
	margin-bottom: 40px;
}

/* Make category section title behave like the original label (no underline). */
.dch-blog-cards__category-title-link {
	text-decoration: none;
	color: inherit;
}

.dch-blog-cards__category-header:before {
	content: "";
	position: absolute;
	right: -38px;
	top: 0;
	width: 70px;
	height: 100%;
	transform: skewX(-30deg);
	border-radius: 0 10px 10px 0;
	background: #a4d1ff;
	z-index: -1;
}

.dch-blog-cards__category-header .dch-blog-cards__post-count {
	font-size: 0.75em;
	font-weight: 600;
	opacity: 0.85;
	margin-left: 12px;
}

/* 3 equal cards in a row */
.dch-blog-cards--category .content-cards--equal {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 13px;
	/* padding-right:60px;
	padding-left:60px; */
	width: 100%;
}

.dch-blog-cards--category .content-card--equal .content-card-image-wrap {
	min-height: 200px;
	overflow: hidden;
	border-radius: 15px;
	height: 200px;
}

.dch-blog-cards--category .content-card--equal .content-card-image-wrap img,
.dch-blog-cards--category .content-card--equal .content-card-image-link img {
	height: 200px;
	width: 100%;
	object-fit: cover;
	border-radius: 15px;
	transition: ease all 0.3s;
}

@media (max-width: 1200px) {
	.dch-blog-cards--category .content-cards--equal {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 1024px) {
	.dch-blog-cards .content-cards {
		grid-template-columns: 1fr;
	}

	.dch-blog-cards .content-card-description,
	.dch-blog-cards .content-card-full-description {
		font-size: 20px;
	}

	.dch-blog-cards--category .content-cards--equal {
		grid-template-columns: 1fr;
	}

	.dch-blog-cards--category .content-cards--equal {
		grid-template-columns: 1fr 1fr;
	}

	.dch-blog-cards.dch-blog-cards--category {
		margin-bottom: 60px !important;
	}
}

@media (max-width: 767px) {
	#dch-blog-cards-container .dch-blog-cards__mosaic {
		flex-direction: column;
	}

	#dch-blog-cards-container .dch-blog-cards__col {
		display: contents;
	}

	.dch-blog-cards--category .content-cards--equal {
		grid-template-columns: 1fr;
	}

	.dch-blog-cards .content-card-title {
		font-size: 20px;
		padding: 12px;
	}

	.scopri-gali-section {
		padding-right: 20px !important;
		padding-left: 20px !important;
	}

	.dch-blog-cards__category-header {
		max-width: fit-content;
	}

	.dch-blog-cards__category-header {
		max-width: fit-content;
		padding-left: 20px;
		gap: 21px;
		font-size: 20px;
	}

	.dch-blog-cards .main-blog-title h2 {
		font-size: 25px;
		margin-bottom: 20px;
	}
}