/* Sidebar editoriale Tecno-Motori */
:root {
	--tm-sidebar: 320px;
}

body.single .tm-header__secondary {
	background: #171717;
	border-top: 1px solid #2b2b2b;
}

body.single .tm-nav--secondary a {
	display: block;
	padding: 0.45rem 0.65rem;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

body.single .tm-footer__copy a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* Pulsanti di condivisione articolo */
.tm-single .tm-share {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	margin: 18px 0;
	padding: 13px 15px;
	border: 1px solid #dde1e5;
	border-radius: 12px;
	background: #f7f8f8;
}

.tm-single .tm-share--top {
	margin-top: 4px;
}

.tm-single .tm-share__label {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 7px;
	align-items: center;
	margin: 0;
	color: #252a31;
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tm-single .tm-share__list {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-single .tm-share__list li {
	margin: 0;
}

.tm-single .tm-share__btn {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 11px;
	border: 0;
	border-radius: 8px;
	color: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 760;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
}

.tm-single .tm-share__btn svg {
	flex: 0 0 auto;
}

.tm-single .tm-share__btn--native {
	background: #bd1118;
}

.tm-single .tm-share__btn--facebook {
	background: #2854a5;
}

.tm-single .tm-share__btn--x {
	background: #111;
}

.tm-single .tm-share__btn--whatsapp {
	background: #157c3c;
}

.tm-single .tm-share__btn--telegram {
	background: #086b9d;
}

.tm-single .tm-share__btn--email {
	background: #4f5965;
}

.tm-sidebar {
	display: grid;
	gap: 18px;
	align-content: start;
}

.tm-side-panel {
	overflow: hidden;
	border: 1px solid #dde1e5;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(17, 23, 34, 0.07);
}

.tm-side-panel__header {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 18px 18px 16px;
	background: #111722;
	color: #fff;
}

.tm-side-panel__signal {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ff423b;
	box-shadow: 0 0 0 6px rgba(255, 66, 59, 0.17);
}

.tm-side-panel__header span:not(.tm-side-panel__signal),
.tm-side-panel__title-row > span {
	display: block;
	margin-bottom: 2px;
	color: #ff6b65;
	font-size: 0.67rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tm-side-panel__header h2,
.tm-side-panel__title-row h2 {
	margin: 0;
	color: inherit;
	font-size: 1.35rem;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.tm-side-news__lead {
	border-bottom: 1px solid #e5e7ea;
}

.tm-side-news__lead > a {
	display: block;
	color: #15171a;
}

.tm-side-news__lead figure {
	height: 170px;
	margin: 0;
	overflow: hidden;
	background: #eef0f2;
}

.tm-side-news__image,
.tm-side-news__lead .tm-placeholder-img,
.tm-side-news__lead .tm-placeholder-img svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-side-news__lead > a > div {
	padding: 15px 17px 17px;
}

.tm-side-news__lead div > span {
	color: #c9141b;
	font-size: 0.67rem;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tm-side-news__lead h3 {
	margin: 6px 0 8px;
	color: #15171a;
	font-size: 1.08rem;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.tm-side-news__lead time,
.tm-side-ranking time {
	display: block;
	color: #666c74;
	font-size: 0.69rem;
}

.tm-side-news__item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin-inline: 17px;
	padding: 13px 0;
	border-bottom: 1px solid #e5e7ea;
}

.tm-side-news__item:last-child {
	border-bottom: 0;
}

.tm-side-news__item > time {
	padding-top: 2px;
	color: #c9141b;
	font-size: 0.68rem;
	font-weight: 850;
}

.tm-side-news__item h3 {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.27;
	letter-spacing: -0.015em;
}

.tm-side-news__item h3 a {
	color: #1c2026;
}

.tm-side-panel__title-row {
	padding: 17px 18px 14px;
	color: #15171a;
	border-bottom: 2px solid #15171a;
}

.tm-side-panel__title-row > span {
	color: #c9141b;
}

.tm-side-ranking {
	margin: 0;
	padding: 2px 17px 8px;
	list-style: none;
}

.tm-side-ranking li {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 9px;
	padding: 14px 0;
	border-bottom: 1px solid #e5e7ea;
}

.tm-side-ranking li:last-child {
	border-bottom: 0;
}

.tm-side-ranking li > span {
	color: #c9141b;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1;
}

.tm-side-ranking a {
	display: block;
	margin-bottom: 5px;
	color: #1c2026;
	font-size: 0.86rem;
	font-weight: 760;
	line-height: 1.25;
}

.tm-side-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 17px;
	list-style: none;
}

.tm-side-categories li {
	margin: 0;
}

.tm-side-categories a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 11px;
	border: 1px solid #d8dce1;
	border-radius: 999px;
	background: #f7f8f8;
	color: #1c2026;
	font-size: 0.77rem;
	font-weight: 750;
}

.tm-side-categories .count {
	margin-left: 4px;
	color: #656b73;
	font-size: 0.67rem;
}

@media (hover: hover) {
	.tm-single .tm-share__btn:hover {
		color: #fff;
		filter: brightness(1.13);
		transform: translateY(-1px);
	}

	.tm-side-news__lead:hover h3,
	.tm-side-news__item a:hover,
	.tm-side-ranking a:hover {
		color: #b70f16;
	}

	.tm-side-news__lead img {
		transition: transform 180ms ease;
	}

	.tm-side-news__lead:hover img {
		transform: scale(1.035);
	}

	.tm-side-categories a:hover {
		border-color: #c9141b;
		background: #c9141b;
		color: #fff;
	}
}

@media (min-width: 700px) and (max-width: 1023px) {
	.tm-sidebar {
		grid-template-columns: 1fr 1fr;
	}

	.tm-side-panel--cats,
	.tm-ads--sidebar {
		grid-column: 1 / -1;
	}
}

@media (max-width: 899px) {
	body.single .tm-header__secondary {
		display: none;
	}
}

@media (max-width: 520px) {
	.tm-single .tm-share {
		align-items: flex-start;
	}

	.tm-single .tm-share__list {
		width: 100%;
	}

	.tm-single .tm-share__btn {
		min-width: 42px;
		padding-inline: 10px;
	}

	.tm-single .tm-share__btn span[aria-hidden="true"] {
		display: none;
	}
}

@media (min-width: 1024px) {
	.tm-layout--single {
		gap: 36px;
	}

	.tm-sidebar {
		top: calc(var(--tm-header-h) + 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tm-side-news__lead img {
		transition: none !important;
		transform: none !important;
	}
}
