/* BLOG 2 GRID */
.blog-2-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* SEARCH FORM styling */
.blog-2-search-form {
	background-color: #fcfcfc;
	border: 1px solid #eee;
	padding: 20px;
	margin-bottom: 40px;
}

.blog-2-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-end;
}

.blog-2-form-group {
	flex: 1 1 calc(20% - 15px);
	display: flex;
	flex-direction: column;
}

.blog-2-field-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 6px;
	letter-spacing: 0.5px;
	color: #000;
}

.blog-2-form-group input,
.blog-2-form-group select {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #ddd;
	background-color: #fff;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
}

.blog-2-date-row {
	display: flex;
	gap: 8px;
}

.blog-2-date-row select {
	width: 50%;
}

.blog-2-form-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1 1 calc(20% - 15px);
	height: 44px;
}

.b2-submit-btn,
.b2-reset-btn,
.b2-reset-placeholder {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 1px;
	border: none;
	cursor: pointer;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	box-sizing: border-box;
}

.b2-submit-btn {
	background-color: #000;
	color: #fff;
	padding: 0 25px;
}

.b2-reset-btn {
	color: #000;
	text-decoration: underline;
	background: none;
	padding: 0;
}

.b2-reset-placeholder {
	color: #ccc;
	text-decoration: none;
	cursor: default;
	background: none;
	padding: 0;
}

.limit-selector {
	flex: 1 1 100%;
	margin-top: 10px;
}

/* CARD LAYOUT - VERTICAL PORTRAIT */
.blog-2-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

/* IMAGE WITH PORTRAIT RATIO (Book Proportions) */
.blog-2-item-image {
	flex-shrink: 0;
	margin-bottom: 15px;
	width: 100%;
	aspect-ratio: 1 / 1.45; /* Proporzioni uniformi verticali copertina libro */
	overflow: hidden;
	background-color: #f9f9f9;
}

.blog-2-item-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.blog-2-item:hover .blog-2-item-image img {
	transform: scale(1.03);
}

.blog-2-item-image a {
	display: block;
	height: 100%;
}

/* METADATA TAGS */
.blog-2-item-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-2-cat-tag {
	font-size: 11px;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 5px;
	letter-spacing: 1px;
}

.blog-2-date {
	font-size: 12px;
	color: #aaa;
	margin-bottom: 8px;
}

/* TITLE */
.blog-2-title {
	font-size: 18px;
	font-weight: bold;
	line-height: 1.3;
	margin: 0 0 10px 0;
	flex-grow: 0;
}

.blog-2-title a {
	text-decoration: none;
	color: #000;
}

/* EXCERPT */
.blog-2-excerpt {
	font-size: 14px;
	color: #555;
	line-height: 1.5;
	margin-bottom: 15px;
}

/* BUTTON */
.blog-2-btn-wrap {
	margin-top: auto;
}

.blog-2-btn {
	display: inline-block;
	padding: 10px 20px;
	background-color: #000;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 1px;
	transition: background-color 0.3s ease;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.blog-2-btn:hover {
	background-color: #333;
}

/* NO RESULTS */
.blog-2-no-results {
	padding: 40px;
	text-align: center;
	background: #fdfdfd;
	border: 1px solid #eee;
}

/* PAGINATION */
.blog-2-pagination {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.blog-2-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #ddd;
	color: #000;
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.blog-2-pagination .page-numbers.current,
.blog-2-pagination .page-numbers:hover {
	background-color: #000;
	color: #fff;
	border-color: #000;
}

/* PLACEHOLDER */
.blog-2-placeholder-img {
	width: 100%;
	height: 100%;
	background: #f5f5f5;
}

/* RESPONSIVE */
@media (max-width: 991px) {
	.blog-2-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.blog-2-form-group {
		flex: 1 1 calc(50% - 15px);
	}
	.blog-2-form-actions {
		flex: 1 1 100%;
	}
}

@media (max-width: 767px) {
	.blog-2-grid {
		grid-template-columns: 1fr;
	}
	.blog-2-search-form {
		padding: 12px !important;
		margin-bottom: 15px !important;
	}
	.blog-2-form-row {
		display: flex !important;
		flex-direction: column !important;
		gap: 8px !important;
	}
	.blog-2-form-group.col-100 {
		width: 100% !important;
		flex: 1 1 100% !important;
		margin-bottom: 0px !important;
	}
	.blog-2-field-label {
		font-size: 12px !important;
		margin-bottom: 4px !important;
		font-weight: 600 !important;
		display: block !important;
	}
	.blog-2-form-group input,
	.blog-2-form-group select {
		height: 44px !important; /* Altezza uniforme 42-46px */
		padding: 0 10px !important;
		font-size: 14px !important;
		margin: 0 !important;
	}
	.blog-2-date-row {
		display: flex !important;
		gap: 8px !important;
		width: 100% !important;
	}
	.blog-2-date-row select {
		width: 50% !important;
	}
	.blog-2-form-actions.col-100 {
		width: 100% !important;
		flex: 1 1 100% !important;
		margin-top: 6px !important;
		margin-bottom: 6px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		height: 44px !important;
		gap: 0 !important;
	}
	.b2-submit-btn {
		order: 2 !important;
		width: auto !important;
		height: 44px !important;
		line-height: 44px !important;
		padding: 0 25px !important;
	}
	.b2-reset-btn,
	.b2-reset-placeholder {
		order: 1 !important;
		height: 44px !important;
		line-height: 44px !important;
		background: none !important;
		border: none !important;
		padding: 0 !important;
	}
	.b2-reset-btn {
		color: #000 !important;
		text-decoration: underline !important;
	}
	.limit-selector.col-100 {
		width: 100% !important;
		margin-top: 4px !important;
		margin-bottom: 10px !important;
	}
	.blog-2-pagination {
		margin-top: 20px !important;
		padding-top: 15px !important;
		gap: 8px !important;
	}
}
