/* ========================================
   BLOG PERAGNOLI - CSS DEDICATO
   Tipografia allineata al tema Porto/Open Sans
   ======================================== */

/* --- RESET BLOG NAMESPACE --- */
.blog-article *,
.blog-article *::before,
.blog-article *::after {
	box-sizing: border-box;
}

/* --- HERO ARTICLE --- */
.blog-hero {
	position: relative;
	width: 100%;
	min-height: 520px;
	background-color: #111;
	background-size: cover;
	background-position: center 40%;
	overflow: hidden;
}

.blog-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.15) 0%,
		rgba(0, 0, 0, 0.70) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 60px 20px 50px;
}

.blog-hero-inner {
	max-width: 860px;
	margin: 0 auto;
	width: 100%;
}

.blog-hero-category {
	display: inline-block;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #fff;
	background: #c0392b;
	padding: 5px 14px;
	margin-bottom: 18px;
	border-radius: 2px;
}

.blog-hero h1 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(28px, 5vw, 46px);
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 18px;
	letter-spacing: -0.5px;
}

.blog-hero-subtitle {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(15px, 2.2vw, 19px);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.55;
	margin: 0 0 22px;
	max-width: 680px;
}

.blog-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.blog-hero-meta i {
	margin-right: 5px;
	font-size: 11px;
}

/* --- ARTICLE BODY --- */
.blog-body {
	max-width: 860px;
	margin: 0 auto;
	padding: 50px 20px 60px;
}

.blog-body p {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	color: #333;
	margin: 0 0 22px;
}

.blog-body p strong {
	font-weight: 700;
	color: #1a1a1a;
}

.blog-body h2 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(22px, 3.5vw, 30px);
	font-weight: 800;
	color: #1a1a1a;
	margin: 55px 0 20px;
	padding-top: 30px;
	border-top: 3px solid #e8e8e8;
	line-height: 1.25;
}

.blog-body h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.blog-body h3 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #222;
	margin: 35px 0 12px;
	line-height: 1.35;
}

/* --- LEAD PARAGRAPH --- */
.blog-lead {
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.75 !important;
	color: #222 !important;
	border-left: 4px solid #c0392b;
	padding-left: 22px;
	margin-bottom: 35px !important;
}

/* --- FULL WIDTH IMAGE BREAK --- */
.blog-img-break {
	margin: 45px -20px;
	position: relative;
}

.blog-img-break img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0;
}

.blog-img-caption {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	color: #888;
	text-align: center;
	padding: 10px 20px 0;
	font-style: italic;
}

@media (min-width: 900px) {
	.blog-img-break {
		margin-left: -80px;
		margin-right: -80px;
		border-radius: 6px;
		overflow: hidden;
	}
	.blog-img-break img {
		border-radius: 6px;
	}
}

/* --- SPEC HIGHLIGHT CARD --- */
.blog-spec-card {
	background: #f7f7f7;
	border-radius: 8px;
	padding: 32px 28px;
	margin: 35px 0;
	border: 1px solid #eee;
}

.blog-spec-card-title {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #888;
	margin: 0 0 20px;
}

.blog-spec-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
}

.blog-spec-item {
	text-align: center;
}

.blog-spec-value {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 28px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.1;
	display: block;
}

.blog-spec-value small {
	font-size: 16px;
	font-weight: 600;
}

.blog-spec-label {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 5px;
	display: block;
}

/* Varianti colore per brand */
.blog-spec-card.brand-volvo  { border-left: 4px solid #003057; }
.blog-spec-card.brand-lotus  { border-left: 4px solid #1a1a1a; }
.blog-spec-card.brand-subaru { border-left: 4px solid #0058A9; }
.blog-spec-card.brand-lynkco { border-left: 4px solid #00c8c8; }

.blog-spec-card.brand-volvo  .blog-spec-value { color: #003057; }
.blog-spec-card.brand-lotus  .blog-spec-value { color: #1a1a1a; }
.blog-spec-card.brand-subaru .blog-spec-value { color: #0058A9; }
.blog-spec-card.brand-lynkco .blog-spec-value { color: #00a0a0; }

/* --- INLINE CTA --- */
.blog-cta-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 30px 0 40px;
}

.blog-cta-inline a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 12px 24px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.25s ease;
}

.blog-cta-primary {
	background: #c0392b;
	color: #fff !important;
}
.blog-cta-primary:hover {
	background: #a93226;
	color: #fff !important;
}

.blog-cta-outline {
	background: transparent;
	color: #333 !important;
	border: 2px solid #ccc;
}
.blog-cta-outline:hover {
	border-color: #333;
	color: #1a1a1a !important;
}

/* --- PULLQUOTE --- */
.blog-pullquote {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 300;
	font-style: italic;
	color: #555;
	text-align: center;
	padding: 40px 30px;
	margin: 45px 0;
	border-top: 2px solid #e0e0e0;
	border-bottom: 2px solid #e0e0e0;
	line-height: 1.5;
}

/* --- COMPARISON TABLE --- */
.blog-comparison {
	width: 100%;
	overflow-x: auto;
	margin: 35px 0 40px;
	-webkit-overflow-scrolling: touch;
}

.blog-comparison table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
}

.blog-comparison thead th {
	background: #1a1a1a;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	padding: 14px 16px;
	text-align: left;
	white-space: nowrap;
}

.blog-comparison tbody td {
	padding: 13px 16px;
	border-bottom: 1px solid #eee;
	color: #333;
	vertical-align: middle;
}

.blog-comparison tbody tr:hover {
	background: #f9f9f9;
}

.blog-comparison tbody td:first-child {
	font-weight: 700;
	color: #1a1a1a;
	white-space: nowrap;
}

.blog-comparison .highlight-value {
	font-weight: 700;
	color: #c0392b;
}

/* --- BOTTOM CTA SECTION --- */
.blog-bottom-cta {
	background: #1a1a1a;
	padding: 60px 20px;
	text-align: center;
	margin-top: 20px;
}

.blog-bottom-cta-inner {
	max-width: 700px;
	margin: 0 auto;
}

.blog-bottom-cta h2 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 800;
	color: #fff;
	margin: 0 0 15px;
	border: none;
	padding: 0;
}

.blog-bottom-cta p {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.65;
	margin: 0 0 30px;
}

.blog-bottom-cta .cta-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.blog-bottom-cta .cta-buttons a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 14px 28px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.25s ease;
}

.blog-bottom-cta .btn-cta-red {
	background: #c0392b;
	color: #fff !important;
}
.blog-bottom-cta .btn-cta-red:hover {
	background: #e74c3c;
	color: #fff !important;
}

.blog-bottom-cta .btn-cta-white {
	background: transparent;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, 0.4);
}
.blog-bottom-cta .btn-cta-white:hover {
	border-color: #fff;
	color: #fff !important;
}

/* --- SHARE BAR --- */
.blog-share {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 0;
	margin: 40px 0 0;
	border-top: 2px solid #eee;
}

.blog-share-label {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #999;
}

.blog-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f0f0f0;
	color: #555;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.blog-share a:hover {
	background: #1a1a1a;
	color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
	.blog-hero {
		min-height: 450px;
	}
	.blog-hero-overlay {
		padding: 50px 16px 35px;
	}
	.blog-body {
		padding: 35px 16px 45px;
	}
	.blog-spec-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.blog-spec-value {
		font-size: 24px;
	}
	.blog-cta-inline {
		flex-direction: column;
	}
	.blog-cta-inline a {
		justify-content: center;
		width: 100%;
	}
	.blog-bottom-cta .cta-buttons {
		flex-direction: column;
		align-items: center;
	}
	.blog-bottom-cta .cta-buttons a {
		width: 100%;
		max-width: 320px;
		justify-content: center;
	}
	.blog-pullquote {
		font-size: 18px;
		padding: 30px 16px;
	}
	.blog-img-break {
		margin-left: -16px;
		margin-right: -16px;
	}
}

/* ========================================
   BLOG INDEX — Aggiungi in coda a blog.css
   ======================================== */

/* --- INDEX HERO --- */
.blog-index-hero {
	background: #111;
	padding: 60px 20px 50px;
	text-align: center;
}

.blog-index-hero-inner {
	max-width: 700px;
	margin: 0 auto;
}

.blog-index-hero h1 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
	letter-spacing: -0.5px;
}

.blog-index-hero p {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* --- INDEX WRAPPER --- */
.blog-index-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

/* --- FEATURED CARD (TOP) --- */
.blog-card-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	color: inherit;
	margin-bottom: 40px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card-featured:hover {
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
	transform: translateY(-3px);
	color: inherit;
	text-decoration: none;
}

.blog-card-featured-img {
	position: relative;
	overflow: hidden;
	min-height: 320px;
}

.blog-card-featured-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.blog-card-featured:hover .blog-card-featured-img img {
	transform: scale(1.04);
}

.blog-card-featured-body {
	padding: 40px 35px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.blog-card-featured-body h2 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: clamp(20px, 2.5vw, 26px);
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.25;
	margin: 0 0 14px;
	border: none;
	padding: 0;
}

.blog-card-featured-body p {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: #555;
	line-height: 1.6;
	margin: 0 0 18px;
}

/* --- TAG BADGE (shared) --- */
.blog-card-tag {
	display: inline-block;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #c0392b;
	background: rgba(192, 57, 43, 0.08);
	padding: 4px 10px;
	border-radius: 3px;
	margin-bottom: 12px;
	align-self: flex-start;
}

/* --- META (shared) --- */
.blog-card-meta {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #999;
	letter-spacing: 0.3px;
}

.blog-card-meta i {
	margin-right: 3px;
	font-size: 11px;
}

/* --- CARD GRID --- */
.blog-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* --- SINGLE CARD --- */
.blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
	color: inherit;
	text-decoration: none;
}

.blog-card-img {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.blog-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
	transform: scale(1.06);
}

.blog-card-body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card-body h3 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.35;
	margin: 0 0 10px;
}

.blog-card-body p {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #666;
	line-height: 1.55;
	margin: 0 0 16px;
	flex: 1;
}

/* --- PAGINATION --- */
.blog-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 50px;
	padding-top: 30px;
	border-top: 2px solid #eee;
}

.blog-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #333;
	background: #f5f5f5;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.blog-page-link:hover {
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
}

.blog-page-link.active {
	background: #c0392b;
	color: #fff;
	cursor: default;
}

/* --- RESPONSIVE INDEX --- */
@media (max-width: 991px) {
	.blog-card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

@media (max-width: 767px) {
	.blog-card-featured {
		grid-template-columns: 1fr;
	}
	.blog-card-featured-img {
		min-height: 220px;
	}
	.blog-card-featured-body {
		padding: 24px 20px 28px;
	}
	.blog-card-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.blog-index-hero {
		padding: 45px 16px 35px;
	}
	.blog-index-wrap {
		padding: 30px 16px 45px;
	}
}
