/*
 * TAF Machinery – Blog: archivi (blog, categoria, tag) e articolo singolo.
 * Solo grafica: il markup arriva dagli shortcode del plugin OpenRosetta Blog
 * ([blog_sidebar], [articolo_completo], [side_bar_only], [autore_box_completo]),
 * che non vengono modificati. Stile derivato da css/taf-pages.css del sito
 * principale: Manrope, #1e1e1e, arancio #e65100, fondo #f7f6f5, raggi 20px.
 */

:root {
	/* Token usati dal CSS del plugin e non definiti dal tema */
	--color-quaternary: #f7f6f5;
	--font-button: 18px;
	--font-weight-button: 700;
	--line-height-button: 28px;

	--taf-dark: #1e1e1e;
	--taf-text: #000000;
	--taf-muted: #5f6b72;
	--taf-accent: #e65100;
	--taf-accent-hover: #c94600;
	--taf-highlight: #ffb509;
	--taf-soft: #f7f6f5;
	--taf-line: #e1e1e1;
	--taf-radius: 20px;
	--taf-blog-gutter: clamp(20px, 6.25vw, 120px);
	--taf-blog-max: 1432px;
}

/* ===================================================================
 * Contenitori: stessa larghezza delle pagine interne del sito principale
 * ================================================================= */
.elementor-location-single > .e-con > .e-con-inner,
.elementor-location-archive > .e-con > .e-con-inner {
	width: 100% !important;
	max-width: calc(var(--taf-blog-max) + 2 * var(--taf-blog-gutter)) !important;
	margin: 0 auto !important;
	padding-left: var(--taf-blog-gutter) !important;
	padding-right: var(--taf-blog-gutter) !important;
	box-sizing: border-box;
}

.elementor-location-single > .e-con,
.elementor-location-archive > .e-con {
	padding-top: 40px !important;
	padding-bottom: 0 !important;
}

.elementor-location-single > .e-con:last-child,
.elementor-location-archive > .e-con:last-child {
	padding-bottom: 90px !important;
}

/* Articolo: contenuto + sidebar affiancati */
.elementor-location-single > .e-con:first-child > .e-con-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: clamp(32px, 4vw, 80px) !important;
}

.elementor-location-single > .e-con:first-child > .e-con-inner > .elementor-widget-shortcode:not(.blog-sidebar) {
	flex: 1 1 0 !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
}

.elementor-location-single > .e-con:first-child > .e-con-inner > .elementor-widget-shortcode.blog-sidebar {
	flex: 0 0 360px !important;
	width: 360px !important;
	max-width: 100% !important;
	position: sticky;
	top: calc(var(--taf-header-h, 94px) + 24px);
}

/* ===================================================================
 * Breadcrumbs, data, titolo
 * ================================================================= */
body #breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 6px;
	margin: 0 0 24px !important;
	padding: 0 !important;
	border: 0 !important;
	width: auto !important;
	font-family: 'Manrope', sans-serif !important;
	font-size: 16px !important;
	line-height: 28px !important;
	color: var(--taf-text) !important;
}

body #breadcrumbs a {
	font-family: 'Manrope', sans-serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 28px !important;
	color: var(--taf-text) !important;
	text-decoration: none !important;
}

body #breadcrumbs a:hover,
body #breadcrumbs a:focus-visible {
	color: var(--taf-accent) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

body #breadcrumbs span {
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 28px !important;
	color: var(--taf-text) !important;
}

body .post-meta-date {
	margin: 0 0 8px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--taf-muted);
}

/* Il titolo è già l'H1 del banner: il secondo titolo dello shortcode resta nel
   codice ma non viene mostrato due volte. */
body .elementor-location-single h2.post-title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ===================================================================
 * Contenuto dell'articolo
 * ================================================================= */
body .elementor-location-single .elementor-shortcode p {
	margin: 0 0 22px;
	font-size: 18px !important;
	line-height: 1.6 !important;
	color: var(--taf-text) !important;
}

body .elementor-location-single .elementor-shortcode h2.wp-block-heading,
body.single-post .elementor-location-single .elementor-shortcode h2.wp-block-heading {
	margin: 48px 0 16px !important;
	font-size: clamp(24px, 18px + 1vw, 32px) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--taf-dark) !important;
}

body .elementor-location-single .elementor-shortcode h3.wp-block-heading,
body.single-post .elementor-location-single .elementor-shortcode h3.wp-block-heading {
	margin: 36px 0 12px !important;
	font-size: clamp(20px, 17px + 0.5vw, 24px) !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: var(--taf-dark) !important;
}

body .elementor-location-single .elementor-shortcode p a,
body .elementor-location-single .elementor-shortcode li a {
	font-size: inherit !important;
	font-weight: 700 !important;
	line-height: inherit !important;
	color: var(--taf-accent) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

body .elementor-location-single .elementor-shortcode p a:hover,
body .elementor-location-single .elementor-shortcode li a:hover {
	color: var(--taf-accent-hover) !important;
}

body .elementor-location-single .elementor-shortcode ul.wp-block-list,
body .elementor-location-single .elementor-shortcode ol.wp-block-list {
	margin: 0 0 24px;
	padding-left: 1.3em;
}

body .elementor-location-single .elementor-shortcode ul.wp-block-list li,
body .elementor-location-single .elementor-shortcode ol.wp-block-list li {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--taf-text);
}

body .elementor-location-single .elementor-shortcode ul.wp-block-list li::marker {
	color: var(--taf-accent);
}

body .elementor-location-single .elementor-shortcode blockquote.wp-block-quote {
	margin: 36px 0;
	padding: 24px 32px;
	background: var(--taf-soft);
	border: 0;
	border-left: 4px solid var(--taf-highlight);
	border-radius: 0 var(--taf-radius) var(--taf-radius) 0;
}

body .elementor-location-single .elementor-shortcode blockquote.wp-block-quote p {
	margin: 0 !important;
	font-size: 21px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	color: var(--taf-dark) !important;
}

body .elementor-location-single .elementor-shortcode figure.wp-block-image img,
body img.post-image-content {
	border-radius: var(--taf-radius);
}

body img.post-image-content {
	height: clamp(240px, 30vw, 450px) !important;
	margin: 40px 0 !important;
}

/* Riassunto */
body .riassunto-articolo-openrosetta {
	margin: 24px 0 32px;
	padding: 32px 32px 32px 72px;
	background: var(--taf-soft);
	border-radius: var(--taf-radius);
}

body .riassunto-articolo-openrosetta::before {
	top: 18px;
	left: 26px;
	font-family: Georgia, serif;
	font-size: 64px;
	line-height: 1;
	color: var(--taf-accent);
	opacity: 1;
}

body .riassunto-articolo-openrosetta p {
	margin: 0 !important;
	font-size: 19px !important;
	font-weight: 500 !important;
	line-height: 1.55 !important;
	color: var(--taf-dark) !important;
}

/* Takeaway */
body .box-takeaway-articolo-openrosetta {
	margin: 0 0 40px;
	padding: 28px 32px;
	background: #ffffff;
	border: 2px solid var(--taf-highlight);
	border-radius: var(--taf-radius);
}

body .box-takeaway-articolo-openrosetta h3.tit-takeaway {
	margin: 0 0 14px !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 20px !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--taf-accent) !important;
}

body .takeaway-articolo-openrosetta ul {
	margin: 0;
	padding: 0 0 0 1.2em;
}

body .takeaway-articolo-openrosetta li {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.55;
	color: var(--taf-dark);
}

body .takeaway-articolo-openrosetta li::marker {
	color: var(--taf-accent);
}

/* FAQ */
body .faq-articolo-openrosetta {
	margin: 48px 0 0;
	padding: 32px;
	background: var(--taf-soft);
	border-radius: var(--taf-radius);
}

body .faq-articolo-openrosetta h3.faq-tit {
	margin: 0 0 16px !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 20px !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--taf-accent) !important;
}

body .faq-articolo-openrosetta h4 {
	margin: 0 !important;
	padding: 18px 0 8px;
	border-top: 1px solid var(--taf-line);
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--taf-dark) !important;
}

body .faq-articolo-openrosetta h4:first-of-type {
	border-top: 0;
	padding-top: 0;
}

body .faq-articolo-openrosetta p {
	margin: 0 0 10px !important;
	font-size: 17px !important;
}

/* Box autore: nascosto se l'autore non ha nome né immagine */
body .box-autore-completo {
	margin: 0;
	padding: 32px;
	background: var(--taf-soft);
	border-radius: var(--taf-radius);
	box-shadow: none;
	gap: 32px;
}

body .box-autore-completo:not(:has(.box-immagine)):not(:has(h3)):not(:has(p)) {
	display: none;
}

body .box-immagine {
	flex: 0 0 140px;
}

body .box-immagine img {
	display: block;
	width: 140px;
	height: 140px;
	padding: 10px;
	object-fit: contain;
	background: #ffffff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(161, 161, 161, 0.25);
}

body .box-testo p {
	margin: 0 0 6px !important;
	font-size: 17px !important;
	line-height: 1.55 !important;
}

body .box-testo h3 {
	font-size: 21px !important;
	color: var(--taf-dark) !important;
}

body .social-links-list a {
	padding: 6px 16px;
	background: #ffffff;
	border: 1px solid var(--taf-line);
	border-radius: var(--taf-radius);
	color: var(--taf-dark) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

body .social-links-list a:hover {
	background: var(--taf-accent);
	border-color: var(--taf-accent);
	color: #ffffff !important;
}

/* ===================================================================
 * Sidebar
 * ================================================================= */
body .blog-sidebar {
	margin-top: 0 !important;
}

body .blog-sidebar .widget {
	margin: 0 0 24px;
	padding: 28px;
	background: var(--taf-soft);
	border: 0;
	border-radius: var(--taf-radius);
	box-shadow: none;
}

body .blog-sidebar .widget h4 {
	margin: 0 0 20px !important;
	padding: 0 0 12px;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--taf-dark) !important;
}

body .blog-sidebar .widget h4::after {
	width: 40px;
	height: 3px;
	background: var(--taf-accent);
}

/* Box CTA: scuro con pulsante arancione (come "Richiedi un preventivo") */
body .blog-sidebar .widget.cta-box {
	padding: 32px 28px;
	background: var(--taf-dark);
	text-align: left;
}

body .blog-sidebar .widget.cta-box h4 {
	color: #ffffff !important;
	font-size: 21px !important;
}

body .blog-sidebar .cta-box h4::after {
	left: 0;
	transform: none;
	background: var(--taf-highlight);
}

body .blog-sidebar .cta-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	padding: 14px 28px;
	background: var(--taf-accent);
	border: 0;
	border-radius: var(--taf-radius);
	color: #ffffff !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 28px !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

body .blog-sidebar .cta-button::after {
	content: '';
	width: 27px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 15'%3E%3Cpath d='M0 7.5h25M19 1.5l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 15'%3E%3Cpath d='M0 7.5h25M19 1.5l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

body .blog-sidebar .cta-button:hover,
body .blog-sidebar .cta-button:focus {
	background: var(--taf-accent-hover);
	border: 0;
	color: #ffffff !important;
	transform: none;
	box-shadow: none;
}

/* Articoli più letti */
body .popular-post-item a {
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	text-decoration: none !important;
}

body .popular-thumb {
	flex: 0 0 96px;
	width: 96px;
}

body .popular-thumb img {
	width: 96px !important;
	height: 72px !important;
	border-radius: 10px;
}

body .popular-thumb:empty {
	height: 72px;
	background: #e9e7e4;
	border-radius: 10px;
}

body .popular-title {
	width: auto;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--taf-dark) !important;
}

body .popular-post-item a:hover .popular-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tag e categorie */
body .tag-cloud a {
	margin: 0 6px 10px 0;
	padding: 6px 14px;
	background: #ffffff;
	border: 1px solid var(--taf-line);
	border-radius: var(--taf-radius);
	color: var(--taf-dark) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	text-decoration: none !important;
}

body .tag-cloud a:hover {
	background: var(--taf-accent);
	border-color: var(--taf-accent);
	color: #ffffff !important;
}

/* ===================================================================
 * Archivio: filtro e card degli articoli
 * ================================================================= */
body .blog-layout {
	gap: clamp(32px, 4vw, 80px);
	padding: 0;
	font-family: 'Manrope', sans-serif;
}

body .blog-main {
	flex: 1 1 0;
	min-width: 0;
}

body .blog-layout > .blog-sidebar {
	flex: 0 0 360px;
	width: 360px;
	max-width: 100%;
}

body .blog-filter {
	gap: 16px;
	margin: 0 0 32px;
	padding: 10px 10px 10px 22px;
	background: var(--taf-soft);
	backdrop-filter: none;
	border: 0;
	border-radius: var(--taf-radius);
	box-shadow: none;
}

body .blog-filter label {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--taf-dark) !important;
	letter-spacing: 0;
}

body .blog-filter select {
	padding: 10px 40px 10px 16px;
	background-color: #ffffff;
	border: 1px solid var(--taf-line);
	border-radius: 10px;
	color: var(--taf-dark);
	font-size: 16px;
	font-weight: 500;
}

body .blog-filter select:focus {
	border-color: var(--taf-accent);
	box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.15);
}

body .blog-post {
	margin-bottom: 32px;
	background: #ffffff;
	border: 1px solid var(--taf-line);
	border-radius: var(--taf-radius);
	box-shadow: none;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

body .blog-post:hover {
	transform: none;
	border-color: #cfcfcf;
	box-shadow: 0 4px 15px rgba(161, 161, 161, 0.25);
}

body .post-thumbnail {
	flex: 0 0 38%;
	min-height: 260px;
}

body .blog-post:hover .post-thumbnail img {
	transform: scale(1.03);
}

body .post-category {
	padding: clamp(24px, 3vw, 40px);
}

body .category-labels {
	gap: 8px;
	margin-bottom: 16px;
}

body .category-labels a.category-label {
	margin: 0;
	padding: 4px 12px;
	background: var(--taf-dark);
	border-radius: var(--taf-radius);
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	letter-spacing: 0.04em;
	text-decoration: none !important;
}

body .category-labels a.category-label.tag-label {
	background: var(--taf-highlight);
	color: var(--taf-dark) !important;
}

body .post-category h3 {
	margin: 0 0 12px !important;
	line-height: 1.3 !important;
}

body .post-category h3 a.blog-post-link {
	font-family: 'Manrope', sans-serif !important;
	font-size: clamp(21px, 18px + 0.6vw, 26px) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--taf-dark) !important;
	text-decoration: none !important;
}

body .blog-post:hover h3 a.blog-post-link {
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

body .post-category p {
	margin: 0 0 20px;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	color: var(--taf-text) !important;
}

body .post-category span.read-more-btn {
	gap: 10px;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 24px !important;
	letter-spacing: 0;
	text-transform: none;
	color: var(--taf-accent) !important;
}

body .read-more-btn::after {
	content: '→';
}

/* Paginazione */
body .pagination li a {
	width: 46px;
	height: 46px;
	border: 1px solid var(--taf-line);
	border-radius: 10px;
	color: var(--taf-dark) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

body .pagination li a:hover,
body .pagination li a.active {
	background: var(--taf-accent);
	border-color: var(--taf-accent);
	color: #ffffff !important;
}

/* Focus visibile */
body .blog-layout a:focus-visible,
body .elementor-location-single a:focus-visible,
body .blog-filter select:focus-visible {
	outline: 2px solid var(--taf-accent);
	outline-offset: 3px;
}

/* ===================================================================
 * Pagina 404 ([taf_404]) – come la 404 del sito principale
 * (taf-pages.css: .taf-404, .taf-btn-row; taf-home.css: .taf-cat-grid)
 * ================================================================= */

/* In produzione la 404 non ha banner */
body.error404 .above-the-fold {
	display: none !important;
}

.elementor-location-single.elementor-404-wrap > .e-con,
body.error404 .taf-shortcode-wrap,
body.error404 .elementor-location-single > .e-con,
body.error404 .elementor-location-single > .e-con:last-child {
	padding: 0 !important;
}

.taf-404 {
	--taf-gutter: clamp(20px, 6.25vw, 120px);
	padding: 64px 0 120px;
	font-family: 'Manrope', sans-serif;
	color: #000000;
}

.taf-404 *,
.taf-404 *::before,
.taf-404 *::after {
	box-sizing: border-box;
}

.taf-404__inner {
	width: 100%;
	max-width: calc(1432px + 2 * var(--taf-gutter));
	margin: 0 auto;
	padding: 0 var(--taf-gutter);
}

.taf-404__intro {
	max-width: 760px;
	margin: 0;
	font-size: 18px;
	line-height: 28px;
}

.taf-404 .taf-404__heading {
	margin: 0 0 16px;
	padding: 0;
	font-family: 'Manrope', sans-serif;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.36;
	color: #1e1e1e;
}

.taf-404__intro p {
	margin: 0;
	font-size: 18px;
	line-height: 28px;
	color: #000000;
}

/* Pulsanti: primario arancio con freccia, secondario con bordo scuro */
.taf-404 .taf-btn-row {
	display: flex;
	flex-wrap: wrap;
	margin: 32px 0 72px;
}

.taf-404 .taf-btn,
.taf-404 .taf-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px;
	margin: 0 12px 12px 0;
	padding: 10px 30px;
	border: 0;
	border-radius: 20px;
	background-color: #e65100;
	color: #ffffff;
	text-decoration: none;
	font-family: 'Manrope', sans-serif;
	font-size: 18.67px;
	font-weight: 700;
	line-height: 28px;
	transition: background-color 0.2s ease;
}

.taf-404 .taf-btn::after {
	content: '';
	flex: 0 0 auto;
	width: 27px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='15' viewBox='0 0 27 15'%3E%3Cpath d='M0 7.5h25M19 1.5l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='15' viewBox='0 0 27 15'%3E%3Cpath d='M0 7.5h25M19 1.5l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform 0.2s ease;
}

.taf-404 .taf-btn:hover,
.taf-404 .taf-btn:focus-visible {
	background-color: #c24400;
	color: #ffffff;
}

.taf-404 .taf-btn:hover::after {
	transform: translateX(3px);
}

.taf-404 .taf-btn:focus-visible {
	outline: 2px solid #1e1e1e;
	outline-offset: 3px;
}

.taf-404 .taf-btn--secondary,
.taf-404 .taf-btn--secondary:visited {
	background-color: transparent;
	color: #1e1e1e;
	box-shadow: inset 0 0 0 2px #1e1e1e;
}

.taf-404 .taf-btn--secondary:hover,
.taf-404 .taf-btn--secondary:focus-visible {
	background-color: #1e1e1e;
	color: #ffffff;
}

/* "Le nostre attrezzature" */
.taf-404 .taf-404__title {
	margin: 0 0 40px;
	font-family: 'Manrope', sans-serif;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.36;
	text-align: center;
	color: #1e1e1e;
}

/* Griglia categorie */
.taf-404 .taf-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 37px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.taf-404 .taf-cat-card {
	margin: 0;
	padding: 0;
	list-style: none;
}

.taf-404 .taf-cat-card__link,
.taf-404 .taf-cat-card__link:visited {
	display: block;
	color: #1e1e1e;
	text-decoration: none;
	border-radius: 20px;
}

.taf-404 .taf-cat-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 453 / 275;
	border-radius: 20px;
	background: #f7f6f5;
}

.taf-404 .taf-cat-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.taf-404 .taf-cat-card__title {
	min-height: 2.72em;
	margin: 15px 0 0;
	padding: 0;
	font-family: 'Manrope', sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.36;
	color: #1e1e1e;
}

.taf-404 .taf-cat-card__link:hover .taf-cat-card__title,
.taf-404 .taf-cat-card__link:focus-visible .taf-cat-card__title {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.taf-404 .taf-cat-card__link:hover .taf-cat-card__img {
	transform: scale(1.04);
}

.taf-404 .taf-cat-card__link:focus-visible {
	outline: 2px solid #e65100;
	outline-offset: 4px;
}

@media (max-width: 1499px) {
	.taf-404 .taf-cat-card__title {
		font-size: 24px;
	}
}

@media (max-width: 1199px) {
	.taf-404 .taf-404__heading,
	.taf-404 .taf-404__title {
		font-size: 36px;
	}
}

@media (max-width: 1023px) {
	.taf-404 .taf-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.taf-404 .taf-cat-card__title {
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.taf-404 {
		padding: 32px 0 56px;
	}

	.taf-404 .taf-404__heading,
	.taf-404 .taf-404__title {
		font-size: 30px;
	}

	.taf-404 .taf-btn-row {
		margin-bottom: 48px;
	}

	.taf-404 .taf-btn {
		width: 100%;
		margin-right: 0;
	}

	.taf-404 .taf-cat-grid {
		gap: 24px 16px;
	}

	.taf-404 .taf-cat-card__media {
		border-radius: 14px;
	}

	.taf-404 .taf-cat-card__title {
		margin-top: 8px;
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.taf-404 .taf-btn,
	.taf-404 .taf-btn::after,
	.taf-404 .taf-cat-card__img {
		transition: none;
	}

	.taf-404 .taf-cat-card__link:hover .taf-cat-card__img {
		transform: none;
	}
}

/* ===================================================================
 * Responsive
 * ================================================================= */
@media (max-width: 1100px) {
	.elementor-location-single > .e-con:first-child > .e-con-inner {
		flex-direction: column !important;
	}

	.elementor-location-single > .e-con:first-child > .e-con-inner > .elementor-widget-shortcode.blog-sidebar {
		flex: 1 1 auto !important;
		width: 100% !important;
		position: static;
	}

	body .blog-layout {
		flex-direction: column;
	}

	body .blog-layout > .blog-sidebar {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.elementor-location-single > .e-con,
	.elementor-location-archive > .e-con {
		padding-top: 28px !important;
	}

	body .blog-post {
		flex-direction: column;
	}

	body .post-thumbnail {
		flex: 0 0 220px;
		min-height: 220px;
	}

	body .blog-filter {
		flex-wrap: wrap;
		width: 100%;
	}

	body .riassunto-articolo-openrosetta {
		padding: 56px 22px 22px;
	}

	body .box-takeaway-articolo-openrosetta,
	body .faq-articolo-openrosetta,
	body .box-autore-completo {
		padding: 22px;
	}

	body .elementor-location-single .elementor-shortcode p,
	body .elementor-location-single .elementor-shortcode ul.wp-block-list li {
		font-size: 17px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .blog-post,
	body .blog-post .post-thumbnail img,
	body .blog-sidebar .cta-button {
		transition: none;
	}
}
