/*
Theme Name: Tomobiki
Theme URI: https://www.tiktok.com/@tomobiki.exp
Author: Togo360 Soc. Coop.
Author URI: https://togo360.it
Description: Tema a blocchi editoriale per Tomobiki Exp. Titoli in Bricolage Grotesque ospitato in locale, colore per categoria, mirino come firma, modalità scura e chiara. Richiede il plugin Tomobiki Editorial 1.5 per sezioni, fonti, video e blocchi dinamici.
Version: 1.2.1
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: tomobiki
*/

/* ---------------------------------------------------------------
   Token. Modalità scura predefinita (coerente con il canale),
   chiara su scelta del lettore. Header, footer e "Dal canale"
   restano scuri in entrambe le modalità.
   --c-* = colore grafico della categoria, --t-* = colore per il testo.
   --------------------------------------------------------------- */
:root,
.tmb-scuro {
	--tmb-bg: #0C0E12;
	--tmb-surface: #171B22;
	--tmb-surface-2: #1F242D;
	--tmb-text: #F4F2ED;
	--tmb-muted: #A9AEB8;
	--tmb-border: #303640;
	--tmb-accent: #EE6B54;
	--tmb-accent-text: #EE6B54;

	--tmb-c-anime: #FF7A63;
	--tmb-c-ai: #3FD0E0;
	--tmb-c-orologi: #F2A93B;
	--tmb-c-sport: #4CC66B;
	--tmb-c-cultura: #A98BFA;
	--tmb-c-lab: #F2D33D;
	--tmb-t-anime: #FF8A75;
	--tmb-t-ai: #5AD8E6;
	--tmb-t-orologi: #F5B65A;
	--tmb-t-sport: #62D07F;
	--tmb-t-cultura: #B9A0FB;
	--tmb-t-lab: #F2D33D;

	--tmb-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
	--tmb-titoli: var(--wp--preset--font-family--titoli, "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif);
	--tmb-grana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
	color-scheme: dark;
}

:root[data-tema="chiaro"] {
	--tmb-bg: #F5F3EE;
	--tmb-surface: #ECE9E2;
	--tmb-surface-2: #E3DFD6;
	--tmb-text: #171B22;
	--tmb-muted: #4D5562;
	--tmb-border: #D9D6D0;
	--tmb-accent: #EE6B54;
	--tmb-accent-text: #A8402C;

	--tmb-c-anime: #F0624A;
	--tmb-c-ai: #19A9BA;
	--tmb-c-orologi: #E39A24;
	--tmb-c-sport: #33A853;
	--tmb-c-cultura: #8A66F0;
	--tmb-c-lab: #D8B600;
	--tmb-t-anime: #B5361F;
	--tmb-t-ai: #0A6E7C;
	--tmb-t-orologi: #8F5300;
	--tmb-t-sport: #23753A;
	--tmb-t-cultura: #6A43C7;
	--tmb-t-lab: #6F5B00;
	color-scheme: light;
}

/* Le sezioni scure ridichiarano i valori anche dentro la modalità chiara. */
:root[data-tema="chiaro"] .tmb-scuro {
	--tmb-bg: #0C0E12;
	--tmb-surface: #171B22;
	--tmb-surface-2: #1F242D;
	--tmb-text: #F4F2ED;
	--tmb-muted: #A9AEB8;
	--tmb-border: #303640;
	--tmb-accent-text: #EE6B54;
	--tmb-c-anime: #FF7A63;
	--tmb-c-ai: #3FD0E0;
	--tmb-c-orologi: #F2A93B;
	--tmb-c-sport: #4CC66B;
	--tmb-c-cultura: #A98BFA;
	--tmb-c-lab: #F2D33D;
	--tmb-t-anime: #FF8A75;
	--tmb-t-ai: #5AD8E6;
	--tmb-t-orologi: #F5B65A;
	--tmb-t-sport: #62D07F;
	--tmb-t-cultura: #B9A0FB;
	--tmb-t-lab: #F2D33D;
	color-scheme: dark;
}

/* Colore per categoria: classi del tema (tmb-cat-*) e classi del core sugli articoli (category-*). */
.tmb-cat-anime-manga, .category-anime-manga { --tmb-cat: var(--tmb-c-anime); --tmb-cat-testo: var(--tmb-t-anime); }
.tmb-cat-ai-tecnologia, .category-ai-tecnologia { --tmb-cat: var(--tmb-c-ai); --tmb-cat-testo: var(--tmb-t-ai); }
.tmb-cat-orologi-oggetti, .category-orologi-oggetti { --tmb-cat: var(--tmb-c-orologi); --tmb-cat-testo: var(--tmb-t-orologi); }
.tmb-cat-sport-pratica, .category-sport-pratica { --tmb-cat: var(--tmb-c-sport); --tmb-cat-testo: var(--tmb-t-sport); }
.tmb-cat-cultura-collezioni, .category-cultura-collezioni { --tmb-cat: var(--tmb-c-cultura); --tmb-cat-testo: var(--tmb-t-cultura); }
.tmb-cat-laboratorio, .category-laboratorio { --tmb-cat: var(--tmb-c-lab); --tmb-cat-testo: var(--tmb-t-lab); }

.tmb-scuro {
	background-color: var(--tmb-bg);
	color: var(--tmb-text);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Grana leggera sul fondo scuro: sta sotto i contenuti, mai sopra le foto. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: var(--tmb-grana);
	opacity: .045;
}

:root[data-tema="chiaro"] body::before {
	display: none;
}

img {
	max-width: 100%;
	height: auto;
}

:where(a, button, input, summary):focus-visible {
	outline: 2px solid var(--tmb-cat, var(--tmb-accent));
	outline-offset: 2px;
	border-radius: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

mark {
	background: #FFE7A3;
	color: #171B22;
	padding: 0 .2em;
}

/* Titoli: Bricolage Grotesque stretta e pesante, mai nel testo corrente. */
:where(h1, h2, h3, h4, h5, h6, .wp-block-post-title) {
	font-family: var(--tmb-titoli);
	font-stretch: 86%;
	font-optical-sizing: auto;
}

/* ---------------------------------------------------------------
   Mirino: quattro angoli, la firma ricorrente del sito.
   Si regola con --mi (rientro), --ml (lunghezza), --mt (spessore).
   --------------------------------------------------------------- */
.tmb-apertura__griglia > li:first-child .tmb-apertura__img::after,
.is-style-tmb-in-breve::before,
.tmb-video__frame::before,
.wp-block-gallery.is-style-tmb-galleria::after,
.tmb-link__sigla::after {
	content: "";
	position: absolute;
	inset: var(--mi, 0);
	z-index: 2;
	pointer-events: none;
	--mc: var(--tmb-cat, var(--tmb-accent));
	background:
		linear-gradient(var(--mc) 0 0) 0 0 / var(--ml, 18px) var(--mt, 2px),
		linear-gradient(var(--mc) 0 0) 0 0 / var(--mt, 2px) var(--ml, 18px),
		linear-gradient(var(--mc) 0 0) 100% 0 / var(--ml, 18px) var(--mt, 2px),
		linear-gradient(var(--mc) 0 0) 100% 0 / var(--mt, 2px) var(--ml, 18px),
		linear-gradient(var(--mc) 0 0) 0 100% / var(--ml, 18px) var(--mt, 2px),
		linear-gradient(var(--mc) 0 0) 0 100% / var(--mt, 2px) var(--ml, 18px),
		linear-gradient(var(--mc) 0 0) 100% 100% / var(--ml, 18px) var(--mt, 2px),
		linear-gradient(var(--mc) 0 0) 100% 100% / var(--mt, 2px) var(--ml, 18px);
	background-repeat: no-repeat;
}

/* ---------------------------------------------------------------
   Elementi comuni
   --------------------------------------------------------------- */
.tmb-kicker {
	margin: 0;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tmb-accent-text);
}

.tmb-kicker a {
	color: var(--tmb-cat-testo, inherit);
	text-decoration: none;
}

.tmb-kicker a:hover {
	text-decoration: underline;
}

.tmb-kicker .wp-block-post-terms__separator {
	color: var(--tmb-muted);
}

/* Badge delle rubriche, ciascuna con il suo simbolo. */
.tmb-badges {
	margin: 0;
	font-size: 0;
}

.tmb-badges .wp-block-post-terms__separator {
	display: none;
}

.tmb-badge,
.tmb-badges a,
.tmb-etichetta__rubrica {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	padding: .1875rem .5rem .1875rem .4375rem;
	border: 1px solid var(--tmb-border);
	border-radius: 2px;
	background: var(--tmb-surface);
	font-family: var(--tmb-titoli);
	font-size: .75rem;
	font-weight: 700;
	font-stretch: 100%;
	letter-spacing: .06em;
	line-height: 1.2;
	color: var(--tmb-text);
	text-decoration: none;
}

.tmb-badge::before,
.tmb-badges a::before,
.tmb-etichetta__rubrica::before {
	content: "";
	width: .75rem;
	height: .75rem;
	flex: none;
	background: var(--tmb-cat, var(--tmb-accent));
	-webkit-mask: var(--tmb-simbolo, none) center / contain no-repeat;
	mask: var(--tmb-simbolo, none) center / contain no-repeat;
}

.tmb-badge:hover,
.tmb-badges a:hover,
.tmb-etichetta__rubrica:hover {
	border-color: var(--tmb-muted);
}

.tmb-rubrica--detail,
.tmb-etichetta__rubrica[href*="/detail/"] {
	--tmb-simbolo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M0 0h4v1.5H1.5V4H0zM8 0h4v4h-1.5V1.5H8zM0 8h1.5v2.5H4V12H0zM10.5 8H12v4H8v-1.5h2.5z'/%3E%3Ccircle cx='6' cy='6' r='1.5'/%3E%3C/svg%3E");
}

.tmb-rubrica--build,
.tmb-etichetta__rubrica[href*="/build/"] {
	--tmb-simbolo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M0 0h5v5H0zM7 0h5v5H7zM0 7h5v5H0zM7 7h5v5H7z'/%3E%3C/svg%3E");
}

.tmb-rubrica--practice,
.tmb-etichetta__rubrica[href*="/practice/"] {
	--tmb-simbolo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0l6 12H0z'/%3E%3C/svg%3E");
}

.tmb-rubrica--crossover,
.tmb-etichetta__rubrica[href*="/crossover/"] {
	--tmb-simbolo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.4 0L6 4.6 10.6 0 12 1.4 7.4 6 12 10.6 10.6 12 6 7.4 1.4 12 0 10.6 4.6 6 0 1.4z'/%3E%3C/svg%3E");
}

.tmb-card__titolo,
.tmb-riga__titolo,
.tmb-scelti__titolo,
.tmb-canale__titolo,
.tmb-ultimora__titolo {
	margin: 0;
	text-wrap: balance;
}

.tmb-card__titolo a,
.tmb-riga__titolo a,
.tmb-scelti__titolo a,
.tmb-canale__titolo a,
.tmb-ultimora__titolo a {
	color: var(--tmb-text);
	text-decoration: none;
}

.tmb-card__titolo a:hover,
.tmb-riga__titolo a:hover,
.tmb-scelti__titolo a:hover,
.tmb-canale__titolo a:hover,
.tmb-ultimora__titolo a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--tmb-cat, var(--tmb-accent));
	text-underline-offset: .15em;
	color: var(--tmb-text);
}

.tmb-card__data,
.tmb-riga__ora,
.tmb-riga__giorno,
.tmb-ultimora__ora,
.tmb-apertura__data {
	margin: 0;
	font-family: var(--tmb-mono);
	font-variant-numeric: tabular-nums;
	font-size: .8125rem;
	color: var(--tmb-muted);
}

.tmb-card__testo {
	display: flex;
	flex-direction: column;
	gap: .375rem;
	align-items: flex-start;
}

.tmb-card__testo > * {
	margin-block: 0;
}

.tmb-card__sommario,
.tmb-riga__sommario {
	color: var(--tmb-muted);
	font-size: 1rem;
	line-height: 1.5;
}

.tmb-card__sommario p,
.tmb-riga__sommario p {
	margin: 0;
}

.wp-block-post-featured-image {
	margin: 0;
	background: var(--tmb-surface);
	overflow: hidden;
}

.wp-block-post-featured-image img {
	width: 100%;
	display: block;
	object-position: center;
}

.wp-block-post-featured-image a:hover img {
	filter: brightness(1.06);
}

.wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-post-template > li {
	margin-block: 0;
}

/* Titoli di sezione con l'angolo di inquadratura nel colore della sezione. */
.tmb-sezione__titolo {
	position: relative;
	margin: 0 0 1.25rem;
	padding: .5rem 0 0 .875rem;
	font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
	font-weight: 780;
	font-stretch: 80%;
}

.tmb-sezione__titolo::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: .625rem;
	height: .625rem;
	border-top: 2px solid var(--tmb-cat, var(--tmb-accent));
	border-left: 2px solid var(--tmb-cat, var(--tmb-accent));
}

.tmb-sezione__titolo a {
	color: inherit;
	text-decoration: none;
}

.tmb-sezione__titolo a:hover {
	text-decoration: underline;
	text-decoration-color: var(--tmb-cat, var(--tmb-accent));
	color: inherit;
}

.tmb-sezione__titolo--piccolo {
	font-size: 1.25rem;
}

/* Barra delle schede: 3px nel colore della categoria dell'articolo. */
.tmb-sezione__griglia > li,
.tmb-correlati__griglia > li,
.tmb-approfondimenti__griglia > li {
	border-top: 3px solid var(--tmb-cat, var(--tmb-border));
	padding-top: .75rem;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.tmb-header-part {
	position: relative;
	z-index: 10;
}

.tmb-header {
	padding-block: .75rem 0;
	border-bottom: 1px solid var(--tmb-border);
	background-image: var(--tmb-grana);
	background-blend-mode: soft-light;
}

.tmb-header__barra {
	min-height: 48px;
	gap: 1rem;
}

.tmb-logo img {
	max-height: 44px;
	width: auto;
}

.tmb-titolo-sito {
	margin: 0;
	font-family: var(--tmb-titoli);
	font-size: 1.5rem;
	font-weight: 800;
	font-stretch: 78%;
	letter-spacing: -.01em;
}

.tmb-titolo-sito a {
	color: var(--tmb-text);
	text-decoration: none;
}

.tmb-header__strumenti {
	gap: .5rem;
	align-items: center;
}

.tmb-cerca .wp-block-search__button,
.tmb-tema {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid var(--tmb-border);
	border-radius: 2px;
	background: transparent;
	color: var(--tmb-text);
	cursor: pointer;
}

.tmb-cerca .wp-block-search__button svg {
	fill: currentColor;
}

.tmb-cerca .wp-block-search__input {
	background: var(--tmb-surface);
	color: var(--tmb-text);
	border: 1px solid var(--tmb-border);
	border-radius: 2px;
	min-height: 44px;
	padding-inline: .75rem;
}

.tmb-tema:hover,
.tmb-cerca .wp-block-search__button:hover {
	border-color: var(--tmb-muted);
}

.tmb-social {
	margin: 0;
}

.tmb-social .wp-social-link {
	color: var(--tmb-text);
}

.tmb-social .wp-social-link a {
	padding: 10px;
}

/* Categorie: riga scorrevole su mobile, ogni voce con il suo colore. */
.tmb-nav {
	display: flex;
	gap: .25rem 1.5rem;
	margin: .5rem 0 0;
	padding: 0 0 .25rem;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

.tmb-nav::-webkit-scrollbar {
	display: none;
}

.tmb-nav li {
	margin: 0;
}

.tmb-nav .children {
	display: none;
}

.tmb-nav a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .625rem 0 .75rem;
	font-size: .9375rem;
	font-weight: 650;
	color: var(--tmb-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.tmb-nav li[class*="tmb-cat-"] > a::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--tmb-cat);
}

.tmb-nav a:hover,
.tmb-nav .current-cat > a {
	color: var(--tmb-text);
	border-bottom-color: var(--tmb-cat, var(--tmb-accent));
}

/* ---------------------------------------------------------------
   Barra di avanzamento della lettura
   --------------------------------------------------------------- */
.tmb-progresso {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: 3px;
	pointer-events: none;
}

.admin-bar .tmb-progresso {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.tmb-progresso span {
	display: block;
	height: 100%;
	background: var(--tmb-cat, var(--tmb-accent));
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ---------------------------------------------------------------
   Homepage
   --------------------------------------------------------------- */
.tmb-home {
	--tmb-pad: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem));
	padding-top: 0;
	padding-bottom: 3rem;
}

.tmb-home > * + * {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.tmb-home > .screen-reader-text + * {
	margin-top: 0;
}

.tmb-home > .tmb-ultimora + .tmb-apertura {
	margin-top: 0;
}

/* In una sezione di categoria la categoria è già nel titolo. */
.tmb-sezione .tmb-kicker {
	display: none;
}

/* Striscia Ultim'ora: le notizie delle ultime 24 ore, scorrevole. */
.tmb-ultimora {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding-inline: max(var(--tmb-pad), calc((100% - 80rem) / 2));
	border-bottom: 1px solid var(--tmb-border);
	background: var(--tmb-surface);
	font-size: .9375rem;
}

.tmb-ultimora__etichetta {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex: none;
	margin: 0;
	padding-right: 1rem;
	font-family: var(--tmb-titoli);
	font-weight: 800;
	font-stretch: 80%;
	font-size: 1rem;
	color: var(--tmb-text);
}

.tmb-ultimora__etichetta::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tmb-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tmb-accent) 30%, transparent);
}

.tmb-ultimora__lista {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	min-width: 0;
}

.tmb-ultimora__lista::-webkit-scrollbar {
	display: none;
}

.tmb-ultimora__lista > li {
	display: flex;
	align-items: baseline;
	gap: .625rem;
	flex: none;
	max-width: 24rem;
	padding: .75rem 1.25rem;
	border-left: 1px solid var(--tmb-border);
	scroll-snap-align: start;
}

.tmb-ultimora__ora {
	color: var(--tmb-cat-testo, var(--tmb-accent-text));
	font-weight: 700;
}

.tmb-ultimora__titolo {
	font-family: inherit;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Apertura a tutta larghezza con il titolo sopra la foto, poi due notizie affiancate. */
.tmb-apertura__griglia {
	display: grid;
	grid-template-columns: [full-start] minmax(var(--tmb-pad), 1fr) [content-start] minmax(0, 40rem) minmax(0, 40rem) [content-end] minmax(var(--tmb-pad), 1fr) [full-end];
	row-gap: 1.5rem;
}

.tmb-apertura__griglia > li:first-child {
	grid-column: full;
	position: relative;
	display: grid;
	min-height: 22rem;
	background: var(--tmb-surface);
	isolation: isolate;
}

.tmb-apertura__griglia > li:first-child > * {
	grid-area: 1 / 1;
}

.tmb-apertura__griglia > li:first-child .tmb-apertura__img {
	position: relative;
	height: clamp(30rem, 72vh, 46rem);
	--mi: clamp(14px, 2.5vw, 28px);
	--ml: clamp(22px, 3vw, 40px);
	--mt: 3px;
}

.tmb-apertura__griglia > li:first-child .tmb-apertura__img img {
	height: 100%;
	object-fit: cover;
}

.tmb-apertura__griglia > li:first-child .tmb-apertura__img.tmb-grafica::after {
	display: none;
}

/* Velatura per la leggibilità del titolo, solo nella metà bassa. */
.tmb-apertura__griglia > li:first-child .tmb-apertura__img::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 9, 12, 0) 35%, rgba(8, 9, 12, .55) 62%, rgba(8, 9, 12, .92) 100%);
}

.tmb-apertura__griglia > li:first-child .tmb-apertura__testo {
	position: relative;
	z-index: 3;
	align-self: end;
	justify-self: center;
	width: min(80rem, 100% - 2 * var(--tmb-pad));
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
	pointer-events: none;
	--tmb-text: #F4F2ED;
	--tmb-muted: #C9CCD2;
	color: var(--tmb-text);
}

.tmb-apertura__griglia > li:first-child .tmb-apertura__testo a {
	pointer-events: auto;
}

.tmb-apertura__griglia > li:first-child .tmb-kicker a {
	color: var(--tmb-cat, var(--tmb-accent));
}

.tmb-apertura__titolo {
	margin: .5rem 0 0;
	max-width: 22ch;
	font-size: clamp(2.25rem, 1.1rem + 4.6vw, 5rem);
	font-weight: 800;
	font-stretch: 76%;
	line-height: .98;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.tmb-apertura__titolo a {
	color: inherit;
	text-decoration: none;
}

.tmb-apertura__titolo a:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--tmb-cat, var(--tmb-accent));
	text-underline-offset: .12em;
}

.tmb-apertura__sommario {
	max-width: 42rem;
	margin: .875rem 0 0;
	font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
	line-height: 1.45;
	color: var(--tmb-muted);
}

.tmb-apertura__sommario p {
	margin: 0;
}

.tmb-apertura__data {
	margin-top: .75rem;
	color: var(--tmb-muted);
}

/* Senza foto l'apertura resta un blocco tipografico. */
.tmb-apertura__griglia > li:first-child:not(:has(.tmb-apertura__img)) .tmb-apertura__testo {
	padding-top: 4rem;
}

.tmb-apertura__griglia > li:not(:first-child) {
	grid-column: content;
	display: grid;
	grid-template-columns: 8rem minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	padding-top: .875rem;
	border-top: 3px solid var(--tmb-cat, var(--tmb-border));
}

.tmb-apertura__griglia > li:not(:first-child):not(:has(.tmb-apertura__img)) {
	grid-template-columns: minmax(0, 1fr);
}

.tmb-apertura__griglia > li:not(:first-child) .tmb-apertura__img img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.tmb-apertura__griglia > li:not(:first-child) .tmb-apertura__testo > * {
	margin: 0;
}

.tmb-apertura__griglia > li:not(:first-child) .tmb-apertura__testo {
	display: grid;
	gap: .375rem;
}

.tmb-apertura__griglia > li:not(:first-child) .tmb-apertura__titolo {
	max-width: none;
	font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem);
	font-weight: 750;
	font-stretch: 86%;
	line-height: 1.15;
	letter-spacing: 0;
}

.tmb-apertura__griglia > li:not(:first-child) .tmb-apertura__titolo a {
	color: var(--tmb-text);
}

.tmb-apertura__griglia > li:not(:first-child) .tmb-apertura__sommario {
	display: none;
}

@media (min-width: 900px) {
	.tmb-apertura__griglia {
		column-gap: 0;
	}

	.tmb-apertura__griglia > li:nth-child(2) {
		grid-column: 2 / 3;
		margin-right: 1rem;
	}

	.tmb-apertura__griglia > li:nth-child(3) {
		grid-column: 3 / 4;
		margin-left: 1rem;
	}

	.tmb-apertura__griglia > li:not(:first-child) {
		grid-template-columns: 11rem minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.tmb-apertura__griglia > li:first-child .tmb-apertura__img {
		height: min(78vh, 34rem);
	}
}

/* Colonne: ultime notizie e lato. */
.tmb-colonne {
	display: grid;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.tmb-colonne {
		grid-template-columns: minmax(0, 1fr) 20rem;
		gap: 4rem;
	}

	.tmb-colonne__lato {
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}
}

.tmb-colonne__lato > * + * {
	margin-top: 2.5rem;
}

/* Righe compatte (archivi, ricerca). */
.tmb-righe > li {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid var(--tmb-border);
	align-items: start;
}

.tmb-righe > li:not(:has(> .tmb-riga__img)) {
	grid-template-columns: minmax(0, 1fr);
}

.tmb-riga__testo {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: .75rem;
	row-gap: .25rem;
	align-items: baseline;
}

.tmb-riga__testo > * {
	margin: 0;
}

.tmb-riga__titolo,
.tmb-riga__sommario {
	grid-column: 1 / -1;
}

.tmb-riga__titolo {
	font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
	font-weight: 720;
	line-height: 1.2;
}

.tmb-riga__sommario {
	display: none;
}

@media (min-width: 640px) {
	.tmb-righe > li:has(> .tmb-riga__img) {
		grid-template-columns: 11rem minmax(0, 1fr);
		gap: 1.25rem;
	}

	.tmb-riga__sommario {
		display: block;
	}
}

/* Ultime notizie: orario in monospace in prima colonna, filo nel colore della categoria. */
.tmb-righe--orario > li,
.tmb-righe--orario > li:has(> .tmb-riga__img),
.tmb-righe--orario > li:not(:has(> .tmb-riga__img)) {
	grid-template-columns: 3.75rem minmax(0, 1fr) 5.5rem;
	grid-template-areas: "quando testo img";
	gap: .875rem;
}

.tmb-righe--orario .tmb-riga__quando {
	grid-area: quando;
	display: grid;
	gap: .125rem;
	padding-left: .625rem;
	border-left: 3px solid var(--tmb-cat, var(--tmb-border));
}

.tmb-righe--orario .tmb-riga__quando > * {
	margin: 0;
}

.tmb-righe--orario .tmb-riga__ora {
	font-size: 1rem;
	font-weight: 700;
	color: var(--tmb-text);
}

.tmb-righe--orario .tmb-riga__giorno {
	font-size: .75rem;
}

.tmb-righe--orario .tmb-riga__img {
	grid-area: img;
}

.tmb-righe--orario .tmb-riga__testo {
	grid-area: testo;
	grid-template-columns: auto auto 1fr;
}

@media (min-width: 640px) {
	.tmb-righe--orario > li,
	.tmb-righe--orario > li:has(> .tmb-riga__img),
	.tmb-righe--orario > li:not(:has(> .tmb-riga__img)) {
		grid-template-columns: 4.25rem 11rem minmax(0, 1fr);
		grid-template-areas: "quando img testo";
		gap: 1.25rem;
	}

	.tmb-righe--orario > li:not(:has(> .tmb-riga__img)) {
		grid-template-areas: "quando testo testo";
	}
}

.tmb-paginazione {
	margin-top: 1.5rem;
	font-weight: 650;
	font-size: 1rem;
}

.tmb-paginazione a {
	color: var(--tmb-text);
}

/* Scelti dalla redazione. */
.tmb-scelti__lista {
	counter-reset: scelti;
}

.tmb-scelti__lista > li {
	padding: .875rem 0;
	border-top: 1px solid var(--tmb-border);
	display: grid;
	gap: .25rem;
}

.tmb-scelti__lista > li > * {
	margin: 0;
}

.tmb-scelti__titolo {
	font-size: 1.125rem;
	font-weight: 720;
	line-height: 1.2;
}

/* Rubriche. */
.tmb-rubriche__lista {
	display: grid;
	gap: .875rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmb-rubriche__lista li {
	display: grid;
	gap: .375rem;
	justify-items: start;
}

.tmb-rubriche__desc {
	font-size: .9375rem;
	line-height: 1.45;
	color: var(--tmb-muted);
}

/* Sezioni tematiche: due composizioni alternate. */
.tmb-sezione {
	border-top: 1px solid var(--tmb-border);
	padding-top: 1.5rem;
}

.tmb-sezione__griglia {
	display: grid;
	gap: 1.5rem;
}

.tmb-sezione__griglia > li {
	display: flex;
	flex-direction: column;
	gap: .625rem;
}

.tmb-sezione__griglia .tmb-card__titolo {
	font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem);
	font-weight: 720;
	line-height: 1.18;
}

@media (min-width: 640px) {
	.tmb-sezione__griglia {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.tmb-sezione--b .tmb-sezione__griglia {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tmb-sezione--a .tmb-sezione__griglia {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		grid-auto-rows: auto;
		column-gap: 2rem;
	}

	.tmb-sezione--a .tmb-sezione__griglia > li:first-child {
		grid-row: 1 / span 3;
	}

	.tmb-sezione--a .tmb-sezione__griglia > li:first-child .tmb-card__titolo {
		font-size: 2rem;
		font-weight: 800;
		font-stretch: 80%;
		line-height: 1.05;
	}

	.tmb-sezione--a .tmb-sezione__griglia > li:not(:first-child) {
		display: grid;
		grid-template-columns: 8.5rem minmax(0, 1fr);
		gap: 1rem;
		align-items: start;
	}
}

/* Dal canale: copertine verticali dentro una cornice da smartphone. */
.tmb-canale {
	padding-block: clamp(2.5rem, 5vw, 4rem);
	padding-inline: var(--wp--style--root--padding-left, 1rem);
	background-image: var(--tmb-grana);
	background-blend-mode: soft-light;
}

.tmb-canale > * {
	max-width: 80rem;
	margin-inline: auto;
}

.tmb-canale__intro {
	margin-top: -.5rem;
	color: var(--tmb-muted);
	font-size: 1rem;
}

.tmb-canale__griglia {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(10.5rem, 12.5rem);
	gap: 1.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: .5rem .25rem 1rem;
}

.tmb-canale__griglia > li {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: .875rem;
}

.tmb-canale__cover {
	position: relative;
	padding: 7px;
	border-radius: 26px;
	background: #1A1E25;
	box-shadow: inset 0 0 0 1px #3A404B, 0 18px 40px -18px rgba(0, 0, 0, .7);
}

.tmb-canale__cover img {
	border-radius: 19px;
	object-fit: cover;
}

/* Fotocamera frontale. */
.tmb-canale__cover::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 50%;
	z-index: 2;
	width: 30%;
	height: 13px;
	border-radius: 8px;
	background: #0A0C10;
	transform: translateX(-50%);
}

/* Tasto play. */
.tmb-canale__cover::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F4F2ED' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 26px no-repeat,
		rgba(12, 14, 18, .62);
	box-shadow: inset 0 0 0 2px rgba(244, 242, 237, .85);
}

.tmb-canale__titolo {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
}

/* Approfondimenti: contenuti durevoli. */
.tmb-approfondimenti__griglia {
	display: grid;
	gap: 2rem;
}

.tmb-approfondimenti__griglia .tmb-card__titolo {
	font-size: clamp(1.3125rem, 1.15rem + .55vw, 1.625rem);
	font-weight: 760;
	line-height: 1.12;
}

.tmb-approfondimenti__griglia > li {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

@media (min-width: 900px) {
	.tmb-approfondimenti__griglia {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------
   Archivi, ricerca, pagine
   --------------------------------------------------------------- */
.tmb-elenco,
.tmb-pagina {
	padding-block: clamp(1.5rem, 4vw, 3rem) 4rem;
}

.tmb-elenco__titolo,
.tmb-pagina__titolo {
	margin-bottom: .5rem;
	font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
	font-weight: 800;
	font-stretch: 78%;
}

body[class*="tmb-cat-"] .tmb-elenco__titolo {
	text-decoration: underline;
	text-decoration-color: var(--tmb-cat);
	text-decoration-thickness: 4px;
	text-underline-offset: .18em;
}

.tmb-elenco__descrizione {
	color: var(--tmb-muted);
}

.tmb-ricerca-pagina .wp-block-search__input {
	background: var(--tmb-surface);
	color: var(--tmb-text);
	border: 1px solid var(--tmb-border);
	min-height: 48px;
}

/* ---------------------------------------------------------------
   Articolo
   --------------------------------------------------------------- */
.tmb-articolo {
	padding-block: clamp(1.5rem, 4vw, 3rem) 4rem;
}

.tmb-articolo__testa > * + * {
	margin-top: 1rem;
}

.tmb-articolo__kicker {
	gap: .5rem 1rem;
	align-items: center;
}

.tmb-articolo__titolo {
	font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem);
	font-weight: 800;
	font-stretch: 76%;
	line-height: 1;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.tmb-articolo__sommario {
	font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
	line-height: 1.45;
	color: var(--tmb-muted);
}

.tmb-articolo__sommario p {
	margin: 0;
}

.tmb-articolo__byline {
	gap: .25rem 1.25rem;
	align-items: baseline;
	font-size: .9375rem;
	color: var(--tmb-muted);
	padding-top: .75rem;
	border-top: 1px solid var(--tmb-border);
}

.tmb-articolo__autore {
	font-weight: 700;
	color: var(--tmb-text);
}

.tmb-articolo__autore a {
	color: inherit;
	text-decoration: none;
}

.tmb-lettura-tempo {
	font-family: var(--tmb-mono);
	font-size: .8125rem;
	padding: .125rem .5rem;
	border: 1px solid var(--tmb-border);
	border-radius: 2px;
}

.tmb-articolo__media {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.tmb-articolo__img img {
	max-height: 80vh;
	object-fit: contain;
	background: var(--tmb-surface);
}

.tmb-articolo__corpo {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
	font-size: clamp(1.125rem, 1.08rem + .2vw, 1.25rem);
	line-height: 1.65;
}

.tmb-articolo__corpo > * {
	max-width: 42rem;
}

.tmb-articolo__corpo h2 {
	font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem);
	font-weight: 780;
	font-stretch: 82%;
	margin-top: 2.5rem;
}

.tmb-articolo__corpo h3 {
	font-size: 1.375rem;
	margin-top: 1.75rem;
}

.tmb-articolo__corpo a {
	text-decoration-thickness: 1px;
	text-decoration-color: var(--tmb-cat, currentColor);
	text-underline-offset: .15em;
}

.tmb-articolo__corpo a:hover {
	text-decoration-thickness: 2px;
}

.tmb-articolo__corpo figure figcaption,
.tmb-articolo__corpo .wp-element-caption {
	color: var(--tmb-muted);
	font-size: .875rem;
}

.tmb-articolo__corpo ul li::marker,
.tmb-articolo__corpo ol li::marker {
	color: var(--tmb-cat, var(--tmb-accent));
}

.tmb-articolo__coda {
	margin-top: 3rem;
}

.tmb-articolo__coda > * + * {
	margin-top: 2rem;
}

/* Citazioni: virgolette grandi nel colore della categoria. */
.wp-block-quote {
	position: relative;
	margin-block: 2rem;
	padding: .25rem 0 .25rem 1.25rem;
	border-left: 3px solid var(--tmb-cat, var(--tmb-accent));
}

.wp-block-quote p {
	font-size: 1.1875rem;
	line-height: 1.5;
}

.wp-block-quote cite {
	display: block;
	margin-top: .5rem;
	font-size: .875rem;
	font-style: normal;
	color: var(--tmb-muted);
}

.wp-block-quote.is-style-tmb-citazione {
	padding: 2.75rem 0 0;
	border-left: 0;
	border-top: 1px solid var(--tmb-border);
}

.wp-block-quote.is-style-tmb-citazione::before {
	content: "\201C";
	position: absolute;
	top: -.15em;
	left: 0;
	font-family: var(--tmb-titoli);
	font-size: 5.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--tmb-cat, var(--tmb-accent));
}

.wp-block-quote.is-style-tmb-citazione p {
	font-family: var(--tmb-titoli);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 650;
	font-stretch: 88%;
	line-height: 1.2;
	text-wrap: balance;
}

.wp-block-pullquote {
	border-block: 3px solid var(--tmb-cat, var(--tmb-accent));
	padding: 1.5rem 0;
	font-family: var(--tmb-titoli);
	font-stretch: 86%;
}

/* Riquadri editoriali (stili del gruppo). */
.tmb-box__titolo,
.wp-block-group[class*="is-style-tmb-"] > .wp-block-heading:first-child {
	margin: 0 0 .75rem;
	font-family: var(--tmb-titoli);
	font-size: 1.0625rem !important;
	font-weight: 800;
	font-stretch: 86%;
	letter-spacing: .01em;
	color: var(--tmb-cat-testo, var(--tmb-accent-text));
}

.wp-block-group.is-style-tmb-in-breve {
	position: relative;
	margin-block: 0 2rem;
	padding: 1.25rem 1.5rem 1rem;
	background: var(--tmb-surface);
	--mi: 0;
	--ml: 16px;
}

.wp-block-group.is-style-tmb-in-breve ul {
	margin: 0;
	padding-left: 1.125rem;
	list-style: square;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.wp-block-group.is-style-tmb-in-breve li + li {
	margin-top: .5rem;
}

.wp-block-group.is-style-tmb-in-breve li::marker {
	color: var(--tmb-cat, var(--tmb-accent));
}

.wp-block-group.is-style-tmb-lettura {
	margin-block: 2.5rem;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--tmb-cat, var(--tmb-accent));
	background: color-mix(in srgb, var(--tmb-cat, var(--tmb-accent)) 7%, var(--tmb-surface));
}

.wp-block-group.is-style-tmb-lettura > p:last-child {
	margin-bottom: 0;
}

.wp-block-group.is-style-tmb-lettura p {
	font-style: italic;
}

.wp-block-group.is-style-tmb-scheda {
	margin-block: 2rem;
	padding: 1.25rem 1.5rem .5rem;
	border: 1px solid var(--tmb-border);
	border-top: 3px solid var(--tmb-cat, var(--tmb-accent));
}

.wp-block-table.is-style-tmb-scheda {
	margin: 0 0 1rem;
	font-size: 1rem;
}

.wp-block-group.is-style-tmb-scheda .wp-block-table.is-style-tmb-scheda {
	margin-bottom: .75rem;
}

.wp-block-table.is-style-tmb-scheda table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.wp-block-table.is-style-tmb-scheda th,
.wp-block-table.is-style-tmb-scheda td {
	padding: .625rem .5rem .625rem 0;
	border: 0;
	border-bottom: 1px solid var(--tmb-border);
	text-align: left;
	vertical-align: top;
}

.wp-block-table.is-style-tmb-scheda tr:last-child th,
.wp-block-table.is-style-tmb-scheda tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.is-style-tmb-scheda th,
.wp-block-table.is-style-tmb-scheda td:first-child {
	width: 40%;
	font-weight: 600;
	color: var(--tmb-muted);
}

/* Galleria con il mirino. */
.wp-block-gallery.is-style-tmb-galleria {
	position: relative;
	gap: 4px;
	padding: 10px;
	--mi: 0;
	--ml: 22px;
}

.wp-block-gallery.is-style-tmb-galleria .wp-block-image img {
	border-radius: 0;
}

/* ---------------------------------------------------------------
   Incorporamenti
   --------------------------------------------------------------- */
.tmb-video {
	margin-block: 2rem;
}

.tmb-video-articolo {
	margin-top: 1.5rem;
}

.tmb-video-articolo .tmb-video {
	margin: 0;
}

.tmb-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--tmb-cat, var(--tmb-accent)) 22%, #171B22), #0C0E12 70%);
	color: #F4F2ED;
	overflow: hidden;
	--mi: 14px;
	--ml: 26px;
	--mt: 3px;
}

.tmb-video--verticale .tmb-video__frame {
	aspect-ratio: 9 / 16;
	max-width: 340px;
}

.tmb-video__frame.is-loaded {
	background: #000;
}

.tmb-video__frame.is-loaded::before {
	display: none;
}

.tmb-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tmb-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .875rem;
	padding: 2rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: center;
	cursor: pointer;
}

.tmb-video__icona {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230C0E12' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") 55% 50% / 36px no-repeat, #F4F2ED;
	transition: transform .15s ease;
}

.tmb-video__play:hover .tmb-video__icona,
.tmb-video__play:focus-visible .tmb-video__icona {
	transform: scale(1.06);
}

.tmb-video__titolo {
	max-width: 30ch;
	font-family: var(--tmb-titoli);
	font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem);
	font-weight: 750;
	font-stretch: 86%;
	line-height: 1.15;
	text-wrap: balance;
}

.tmb-video__azione {
	font-size: .875rem;
	font-weight: 650;
}

.tmb-video__nota {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.25rem;
	margin: 0;
	padding-inline: 2.5rem;
	font-size: .75rem;
	text-align: center;
	color: #A9AEB8;
	pointer-events: none;
}

.wp-block-embed {
	margin-block: 2rem;
}

.wp-block-embed iframe {
	max-width: 100%;
}

/* Scheda link: solo testo, nessuna immagine del sito di destinazione. */
.tmb-link {
	margin-block: 2rem;
}

.tmb-link__a {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	padding: 1rem 1.25rem;
	border: 1px solid var(--tmb-border);
	background: var(--tmb-surface);
	color: var(--tmb-text);
	text-decoration: none !important;
}

.tmb-link__a:hover {
	border-color: var(--tmb-cat, var(--tmb-accent));
}

.tmb-link__sigla {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	font-family: var(--tmb-titoli);
	font-size: 1.625rem;
	font-weight: 800;
	color: var(--tmb-cat-testo, var(--tmb-accent-text));
	--ml: 9px;
}

.tmb-link__testo {
	display: grid;
	gap: .25rem;
	min-width: 0;
}

.tmb-link__sito {
	font-size: .8125rem;
	font-weight: 650;
	color: var(--tmb-muted);
}

.tmb-link__ufficiale {
	margin-left: .375rem;
	padding: 0 .375rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	font-size: .6875rem;
	color: var(--tmb-cat-testo, var(--tmb-accent-text));
}

.tmb-link__titolo {
	font-family: var(--tmb-titoli);
	font-size: 1.1875rem;
	font-weight: 750;
	font-stretch: 88%;
	line-height: 1.2;
}

.tmb-link__desc {
	font-size: .9375rem;
	line-height: 1.45;
	color: var(--tmb-muted);
}

.tmb-link__dominio {
	font-family: var(--tmb-mono);
	font-size: .75rem;
	color: var(--tmb-muted);
}

.tmb-embed-bloccato {
	padding: .75rem 1rem;
	border: 1px dashed var(--tmb-accent);
	font-size: .875rem;
	color: var(--tmb-accent-text);
}

/* Etichetta di certezza e rubrica. */
.tmb-etichetta {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin: 0;
}

.tmb-etichetta__certezza {
	display: inline-block;
	padding: .1875rem .5rem;
	border: 1px solid var(--tmb-border);
	border-radius: 2px;
	font-size: .8125rem;
	font-weight: 650;
	color: var(--tmb-text);
	text-decoration: none;
}

.tmb-etichetta--indiscrezione,
.tmb-etichetta--inchiesta {
	border-color: var(--tmb-accent);
}

/* Date. */
.tmb-date {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	margin: 0;
}

.tmb-date__upd {
	color: var(--tmb-text);
	font-weight: 600;
}

/* Credito immagine. */
.tmb-credito {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	margin: .625rem 0 0;
	font-size: .875rem;
	color: var(--tmb-muted);
}

.tmb-credito__didascalia {
	color: var(--tmb-text);
}

/* Fonti e verifica. */
.tmb-fonti {
	padding: 1.25rem 1.25rem 1rem;
	background: var(--tmb-surface);
	border-top: 3px solid var(--tmb-cat, var(--tmb-accent));
	font-size: 1rem;
}

.tmb-fonti__titolo,
.tmb-cronologia__titolo,
.tmb-tiktok__titolo {
	margin: 0 0 .75rem;
	font-size: 1.25rem;
	font-weight: 780;
}

.tmb-fonti__lista {
	margin: 0 0 1rem;
	padding-left: 1.125rem;
}

.tmb-fonti__lista li + li {
	margin-top: .375rem;
}

.tmb-fonti__meta {
	color: var(--tmb-muted);
	font-size: .9375rem;
}

.tmb-fonti__date {
	display: grid;
	gap: .5rem 1.5rem;
	margin: 0 0 1rem;
}

@media (min-width: 640px) {
	.tmb-fonti__date {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tmb-fonti__date dt {
	font-size: .875rem;
	color: var(--tmb-muted);
}

.tmb-fonti__date dd {
	margin: 0;
	font-weight: 600;
}

.tmb-fonti__nota {
	margin: 0;
	font-size: .9375rem;
	color: var(--tmb-muted);
}

/* Cronologia. */
.tmb-cronologia__precedente {
	font-size: 1rem;
	color: var(--tmb-muted);
}

.tmb-cronologia__lista {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
}

.tmb-cronologia__lista li {
	display: grid;
	gap: .125rem;
	padding: .75rem 0;
	border-top: 1px solid var(--tmb-border);
}

.tmb-cronologia__lista li time {
	font-family: var(--tmb-mono);
	font-size: .8125rem;
	color: var(--tmb-muted);
}

.tmb-cronologia--correzione strong {
	color: var(--tmb-accent-text);
}

/* Correlati. */
.tmb-correlati {
	margin-top: 4rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tmb-border);
}

.tmb-correlati__griglia {
	display: grid;
	gap: 1.5rem;
}

.tmb-correlati__griglia > li {
	display: flex;
	flex-direction: column;
	gap: .625rem;
}

.tmb-correlati__griglia .tmb-card__titolo {
	font-size: 1.25rem;
	font-weight: 740;
	line-height: 1.18;
}

@media (min-width: 768px) {
	.tmb-correlati__griglia {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Video TikTok verticale, mai a tutto schermo su desktop. */
.tmb-articolo__video {
	margin-top: 3rem;
}

.tmb-tiktok__frame {
	box-sizing: border-box;
	position: relative;
	width: min(100%, 340px);
	aspect-ratio: 9 / 16;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	padding: 1.5rem;
	background: var(--tmb-surface);
	border: 7px solid #1A1E25;
	border-radius: 26px;
	box-shadow: inset 0 0 0 1px #3A404B;
	text-align: center;
}

.tmb-tiktok__frame.is-loaded {
	padding: 0;
	background: #000;
	overflow: hidden;
}

.tmb-tiktok__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.tmb-tiktok__load {
	min-height: 44px;
	padding: .625rem 1.25rem;
	border: 0;
	border-radius: 2px;
	background: var(--tmb-text);
	color: var(--tmb-bg);
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.tmb-tiktok__nota {
	margin: 0;
	font-size: .875rem;
	color: var(--tmb-muted);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.tmb-footer {
	padding-block: 3rem 2.5rem;
	border-top: 1px solid var(--tmb-border);
	font-size: 1rem;
	background-image: var(--tmb-grana);
	background-blend-mode: soft-light;
}

.tmb-footer__griglia {
	display: grid;
	gap: 2rem;
}

@media (min-width: 900px) {
	.tmb-footer__griglia {
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: 3rem;
	}
}

.tmb-footer__titolo {
	margin: 0 0 .5rem;
	font-family: var(--tmb-titoli);
	font-size: 1.5rem;
	font-weight: 800;
	font-stretch: 78%;
}

.tmb-footer__titolo a {
	color: var(--tmb-text);
	text-decoration: none;
}

.tmb-footer p {
	color: var(--tmb-muted);
}

.tmb-footer__etichetta {
	margin: 0 0 .75rem;
	font-size: 1rem;
	color: var(--tmb-muted);
}

.tmb-footer__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmb-footer__lista li {
	margin: 0 0 .375rem;
}

.tmb-footer__lista a {
	color: var(--tmb-text);
	text-decoration: none;
}

.tmb-footer__lista a:hover {
	text-decoration: underline;
}

.tmb-placeholder {
	color: #FFE7A3;
	font-style: italic;
}

/* ---------------------------------------------------------------
   Movimento ridotto
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.tmb-progresso {
		display: none;
	}
}

/* Su schermi stretti il player resta essenziale: icona, titolo e provider. */
@media (max-width: 600px) {
	.tmb-video__nota {
		display: none;
	}

	.tmb-video__play {
		gap: .5rem;
		padding: 1.25rem;
	}

	.tmb-video__icona {
		width: 56px;
		height: 56px;
		background-size: 28px, auto;
	}

	.tmb-video__titolo {
		font-size: 1rem;
	}
}

/* ---------------------------------------------------------------
   1.2.0 — Copertine generate e video in testa
   --------------------------------------------------------------- */
/* Le copertine hanno il soggetto a sinistra: nei ritagli più stretti si perde il lato destro. */
.wp-block-post-featured-image img.tmb-copertina {
	object-position: 0 50%;
}

.tmb-canale__cover img.tmb-copertina {
	object-position: 50% 50%;
}

/* In apertura la copertina è mostrata senza scritte (sfondo puro): si inquadra l'illustrazione. */
.tmb-apertura__img img.tmb-copertina {
	object-position: 78% 50%;
}

/* Video in testa all'articolo: la copertina fa da anteprima, nessuna immagine da YouTube o Vimeo. */
.tmb-video__frame.has-poster {
	background:
		linear-gradient(180deg, rgb(12 14 18 / .1), rgb(12 14 18 / .55)),
		var(--tmb-poster) 0 50% / cover no-repeat,
		#0C0E12;
}

.tmb-video__frame.has-poster.is-loaded {
	background: #000;
}

.tmb-video__frame.has-poster .tmb-video__titolo {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.tmb-video__frame.has-poster .tmb-video__play {
	justify-content: flex-end;
	align-items: flex-end;
	padding: 2rem 2rem 3.25rem;
}

.tmb-video__frame.has-poster .tmb-video__azione {
	padding: .25rem .625rem;
	background: rgb(12 14 18 / .7);
}

.tmb-video__frame.has-poster .tmb-video__nota {
	text-align: right;
	text-shadow: 0 1px 2px rgb(0 0 0 / .8);
}

.tmb-video-articolo--testa {
	margin-top: 0;
}

.tmb-video .wp-element-caption {
	margin-top: .5rem;
	font-size: .8125rem;
	color: var(--tmb-muted, inherit);
}

@media (max-width: 600px) {
	.tmb-video__frame.has-poster .tmb-video__play {
		padding: 1rem;
	}
}

/* Anteprima da YouTube: play al centro, come sul player. */
.tmb-video__frame.has-poster--yt {
	background:
		linear-gradient(rgb(12 14 18 / .15), rgb(12 14 18 / .35)),
		var(--tmb-poster) 50% 50% / cover no-repeat,
		#0C0E12;
}

.tmb-video__frame.has-poster--yt .tmb-video__play,
.tmb-video__frame.has-poster--yt .tmb-video__play:where(*) {
	justify-content: center;
	align-items: center;
	padding: 2rem;
}

.tmb-video__frame.has-poster--yt .tmb-video__nota {
	text-align: center;
}
