/*
 * TFCM Minisito – cineoroscopo ([tfcm_cineoroscopo], includes/cineoroscopo-vista.php), 0.10.0 (ultimo ritocco 0.10.2).
 *
 * Nessun colore né carattere proprio: testo e caratteri vengono dal tema / Elementor, bordi ed evidenze da
 * currentColor (colore del testo) più o meno trasparente. Gli sfondi pastello delle card, il colore d'accento, le
 * tipografie e i colori globali scelti in Cineoroscopo › Impostazioni arrivano come CSS in linea dopo questo file
 * (includes/cineoroscopo-stile.php, selettori "body .tfcm-cineo …"). Classi con il prefisso tfcm-cineo__ (blocco
 * tfcm-cineo, stati con il modificatore --).
 *
 * Ritocchi senza toccare il plugin (CSS del tema child o di Elementor), es.:
 *   .tfcm-cineo { --tfcm-cineo-spazio: 1.5rem; --tfcm-cineo-raggio: 0 20px 20px 20px; }
 *
 * Variabili (tra parentesi il valore predefinito):
 *   --tfcm-cineo-blocchi-spazio (1.5rem)    spazio tra selettore della vista, navigazione e segni;
 *   --tfcm-cineo-spazio (1rem)              spazio tra le card della griglia;
 *   --tfcm-cineo-elenco-spazio (.375rem)    spazio tra le righe dell'elenco;
 *   --tfcm-cineo-elenco-testa (17rem)       larghezza di simbolo + nome nell'elenco (13rem su tablet);
 *   --tfcm-cineo-card-spazio (1.25rem 1.25rem 1.4rem)  padding delle card;
 *   --tfcm-cineo-raggio (0 30px 30px 30px, dalla 0.10.1; prima 0) angoli delle card, angolo vivo in alto a sinistra;
 *   --tfcm-cineo-raggio-elenco (= --tfcm-cineo-raggio) angoli delle righe dell'elenco (0.10.1);
 *   --tfcm-cineo-simbolo (3.5rem)           larghezza del pallino del simbolo (3rem nell'elenco, --tfcm-cineo-simbolo-elenco);
 *   --tfcm-cineo-simbolo-raggio (0 50% 50% 50%, dalla 0.10.1; prima 50%) forma del pallino: goccia con l'angolo
 *                                            in alto a sinistra vivo (50% = cerchio);
 *   --tfcm-cineo-simbolo-bordo (1.5px)      bordo del pallino;
 *   --tfcm-cineo-sollevamento (3px)         quanto sale la card al passaggio del mouse; bordo della card e pallino
 *                                            prendono intanto il colore della card al 100% (--tfcm-cineo-colore, 0.10.1);
 *   --tfcm-cineo-nome-dimensione (1.5em), --tfcm-cineo-settimana-dimensione (1.75em);
 *   --tfcm-cineo-intensita (30%, dalle impostazioni) quanto colore della palette nello sfondo delle card;
 *   --tfcm-cineo-miscela (#fff)             colore con cui si mescola la palette (il bianco del brief);
 *   --tfcm-cineo-colore (dalle impostazioni, per ogni tfcm-cineo__segno--{chiave}) colore della palette del segno al
 *                                            100%: sfondo (mescolato con l'intensità), bordo e pallino al passaggio del mouse;
 *   --tfcm-cineo-accento, --tfcm-cineo-accento-testo  colore d'accento e colore sopra l'accento (dalle impostazioni;
 *                                            predefiniti: --tfcm-arancio del tema, poi il Primario del Kit; Testo del Kit):
 *                                            pulsanti, frecce, settimane della striscia e del pannello, badge "Questa
 *                                            settimana"; per le card solo senza palette (dalla 0.10.1);
 *   --tfcm-cineo-freccia-dimensione (2.9em), --tfcm-cineo-freccia-spostamento (3px);
 *   --tfcm-cineo-pulsante-raggio-prec (50px 0 50px 50px), --tfcm-cineo-pulsante-raggio-succ (0 50px 50px 50px),
 *   --tfcm-cineo-pulsante-raggio-pillola (0 50px 50px 50px), --tfcm-cineo-pulsante-raggio-vista (0 50px 50px 50px):
 *                                            angoli dei pulsanti, come quelli del calendario delle ricorrenze;
 *   --tfcm-cineo-pulsante-ombra (0 15px 30px, colore del testo al 15%);
 *   --tfcm-cineo-ease (var(--tfcm-ease) del tema, poi cubic-bezier(.65, 0, .35, 1)) curva del riempimento.
 *
 * Breakpoint dello schermo come Elementor e come il calendario delle ricorrenze (0.8.2): griglia a 3 colonne,
 * 2 fino a 1024px, 1 fino a 767px. Sul telefono (fino a 767px, dalla 0.10.2) il selettore Griglia / Elenco è
 * nascosto e la vista è sempre la griglia; da 768px in su (tablet compreso) tutto come prima.
 *
 * Animazioni: solo con JavaScript (classe tfcm-cineo--anim, messa da cineoroscopo.js) e senza "riduci movimento".
 * Senza, tutto è visibile e fermo. Stati messi dallo script: tfcm-cineo__segni--attesa (card in attesa di entrare
 * nello schermo, già leggibili), tfcm-cineo__segni--entra (entrata a cascata), tfcm-cineo__corpo--esce (uscita
 * al cambio di settimana), tfcm-cineo__corpo--entra; tfcm-cineo__archivio--aperto (pannello aperto con lo script;
 * senza script si apre con :target).
 */

.tfcm-cineo {
	--tfcm-cineo-bordo-colore: color-mix(in srgb, currentColor 22%, transparent);
	--tfcm-cineo-evidenza-colore: color-mix(in srgb, currentColor 8%, transparent);
	--tfcm-cineo-ombra: var(--tfcm-cineo-pulsante-ombra, 0 15px 30px color-mix(in srgb, currentColor 15%, transparent));
	--tfcm-cineo-accento-colore: var(--tfcm-cineo-accento, var(--tfcm-arancio, var(--e-global-color-primary, CanvasText)));
	--tfcm-cineo-accento-testo-colore: var(--tfcm-cineo-accento-testo, var(--e-global-color-text, Canvas));
	--tfcm-cineo-curva: var(--tfcm-cineo-ease, var(--tfcm-ease, cubic-bezier(.65, 0, .35, 1)));
	--tfcm-cineo-curva-out: var(--tfcm-ease-out, cubic-bezier(.2, .8, .2, 1));
	display: flex;
	flex-direction: column;
	gap: var(--tfcm-cineo-blocchi-spazio, 1.5rem);
	min-width: 0;
}

/* Browser senza color-mix(): bordi pieni del colore del testo, niente evidenza né ombra. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.tfcm-cineo {
		--tfcm-cineo-bordo-colore: currentColor;
		--tfcm-cineo-evidenza-colore: transparent;
		--tfcm-cineo-ombra: var(--tfcm-cineo-pulsante-ombra, none);
	}
}

.tfcm-cineo [hidden] {
	display: none !important;
}

.tfcm-cineo__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.tfcm-cineo__contenuto,
.tfcm-cineo__corpo,
.tfcm-cineo__nav {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tfcm-cineo__corpo {
	gap: var(--tfcm-cineo-blocchi-spazio, 1.5rem);
}

.tfcm-cineo__nav {
	gap: 1rem;
}

.tfcm-cineo__contenuto[aria-busy="true"] {
	cursor: progress;
}

/* ---------- Settimana mostrata ---------- */

.tfcm-cineo__barra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tfcm-cineo__centro {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .45rem;
	min-width: 0;
	text-align: center;
}

.tfcm-cineo .tfcm-cineo__settimana {
	margin: 0;
	color: inherit;
	font-size: var(--tfcm-cineo-settimana-dimensione, 1.75em);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.tfcm-cineo .tfcm-cineo__settimana:focus {
	outline: none; /* riceve il focus dallo script (tabindex="-1"), non è un controllo */
}

.tfcm-cineo .tfcm-cineo__stato {
	margin: 0;
}

.tfcm-cineo .tfcm-cineo__badge {
	display: inline-block;
	padding: .15em .65em;
	border: 1px solid currentColor;
	font-size: .72em;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* 0,3,0: sopra il colore scelto per i badge nelle impostazioni (body …, 0,2,1). */
.tfcm-cineo .tfcm-cineo__stato .tfcm-cineo__badge--corrente {
	border-color: var(--tfcm-cineo-accento-colore);
	background: var(--tfcm-cineo-accento-colore);
	color: var(--tfcm-cineo-accento-testo-colore);
}

.tfcm-cineo .tfcm-cineo__badge--anteprima {
	border-style: dashed;
}

.tfcm-cineo .tfcm-cineo__badge--archivio {
	opacity: .75;
}

/* ---------- Pulsanti: frecce, settimane vicine, Griglia / Elenco ----------
 * Come le frecce del calendario delle ricorrenze (0.5.5): bordo, ombra, un angolo vivo, riempimento del colore
 * d'accento che scorre da sinistra. Le regole valgono anche in :hover e :focus, dove i pulsanti e i link del tema e del
 * Kit cambiano colori, bordi e sfondo. */

.tfcm-cineo .tfcm-cineo__freccia,
.tfcm-cineo .tfcm-cineo__freccia:hover,
.tfcm-cineo .tfcm-cineo__freccia:focus,
.tfcm-cineo .tfcm-cineo__pillola,
.tfcm-cineo .tfcm-cineo__pillola:hover,
.tfcm-cineo .tfcm-cineo__pillola:focus,
.tfcm-cineo .tfcm-cineo__vista,
.tfcm-cineo .tfcm-cineo__vista:hover,
.tfcm-cineo .tfcm-cineo__vista:focus {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow: hidden;
	isolation: isolate;
	background: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color .35s ease, border-color .2s ease .3s;
}

.tfcm-cineo .tfcm-cineo__freccia,
.tfcm-cineo .tfcm-cineo__freccia:hover,
.tfcm-cineo .tfcm-cineo__freccia:focus,
.tfcm-cineo .tfcm-cineo__pillola,
.tfcm-cineo .tfcm-cineo__pillola:hover,
.tfcm-cineo .tfcm-cineo__pillola:focus {
	border: 1px solid currentColor;
	box-shadow: var(--tfcm-cineo-ombra);
}

.tfcm-cineo .tfcm-cineo__freccia,
.tfcm-cineo .tfcm-cineo__freccia:hover,
.tfcm-cineo .tfcm-cineo__freccia:focus {
	flex: none;
	width: var(--tfcm-cineo-freccia-dimensione, 2.9em);
	height: var(--tfcm-cineo-freccia-dimensione, 2.9em);
	padding: 0;
}

.tfcm-cineo .tfcm-cineo__freccia--prec,
.tfcm-cineo .tfcm-cineo__freccia--prec:hover,
.tfcm-cineo .tfcm-cineo__freccia--prec:focus {
	border-radius: var(--tfcm-cineo-pulsante-raggio-prec, 50px 0 50px 50px);
}

.tfcm-cineo .tfcm-cineo__freccia--succ,
.tfcm-cineo .tfcm-cineo__freccia--succ:hover,
.tfcm-cineo .tfcm-cineo__freccia--succ:focus {
	border-radius: var(--tfcm-cineo-pulsante-raggio-succ, 0 50px 50px 50px);
}

.tfcm-cineo .tfcm-cineo__freccia--disattiva,
.tfcm-cineo .tfcm-cineo__freccia--disattiva:hover {
	opacity: .35;
	box-shadow: none;
	cursor: not-allowed;
}

.tfcm-cineo__freccia-icona {
	display: block;
	width: 1.15em;
	height: 1.15em;
	transition: transform .4s var(--tfcm-cineo-curva);
}

.tfcm-cineo .tfcm-cineo__pillola,
.tfcm-cineo .tfcm-cineo__pillola:hover,
.tfcm-cineo .tfcm-cineo__pillola:focus {
	padding: .5em 1.05em;
	border-radius: var(--tfcm-cineo-pulsante-raggio-pillola, 0 50px 50px 50px);
	font-size: .85em;
	font-variant-numeric: tabular-nums;
}

/* Riempimento da sinistra: l'overflow del pulsante lo taglia al bordo; il bordo prende l'accento a fine corsa. */
.tfcm-cineo .tfcm-cineo__freccia::before,
.tfcm-cineo .tfcm-cineo__pillola::before,
.tfcm-cineo .tfcm-cineo__vista::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	background: var(--tfcm-cineo-accento-colore);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--tfcm-cineo-curva);
}

.tfcm-cineo .tfcm-cineo__freccia--disattiva::before {
	content: none;
}

/* 0,4,x: sopra il colore scelto per i pulsanti nelle impostazioni (body … :hover, 0,3,1): con il riempimento il testo
 * prende il colore sopra l'accento. */
.tfcm-cineo .tfcm-cineo__barra a.tfcm-cineo__freccia:hover,
.tfcm-cineo .tfcm-cineo__barra a.tfcm-cineo__freccia:focus-visible,
.tfcm-cineo .tfcm-cineo__pillole .tfcm-cineo__pillola:hover,
.tfcm-cineo .tfcm-cineo__pillole .tfcm-cineo__pillola:focus-visible,
.tfcm-cineo .tfcm-cineo__pillole .tfcm-cineo__pillola[aria-current="true"] {
	border-color: var(--tfcm-cineo-accento-colore);
	color: var(--tfcm-cineo-accento-testo-colore);
}

.tfcm-cineo a.tfcm-cineo__freccia:hover::before,
.tfcm-cineo a.tfcm-cineo__freccia:focus-visible::before,
.tfcm-cineo .tfcm-cineo__pillola:hover::before,
.tfcm-cineo .tfcm-cineo__pillola:focus-visible::before,
.tfcm-cineo .tfcm-cineo__pillola[aria-current="true"]::before {
	transform: scaleX(1);
}

.tfcm-cineo .tfcm-cineo__freccia--prec:hover .tfcm-cineo__freccia-icona,
.tfcm-cineo .tfcm-cineo__freccia--prec:focus-visible .tfcm-cineo__freccia-icona {
	transform: translateX(calc(-1 * var(--tfcm-cineo-freccia-spostamento, 3px)));
}

.tfcm-cineo a.tfcm-cineo__freccia--succ:hover .tfcm-cineo__freccia-icona,
.tfcm-cineo a.tfcm-cineo__freccia--succ:focus-visible .tfcm-cineo__freccia-icona {
	transform: translateX(var(--tfcm-cineo-freccia-spostamento, 3px));
}

.tfcm-cineo .tfcm-cineo__freccia--disattiva .tfcm-cineo__freccia-icona {
	transform: none !important;
}

.tfcm-cineo a:focus-visible,
.tfcm-cineo button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Con il riempimento il testo cambia colore: il contorno del focus prende l'accento per restare visibile. */
.tfcm-cineo .tfcm-cineo__barra a.tfcm-cineo__freccia:focus-visible,
.tfcm-cineo .tfcm-cineo__pillole .tfcm-cineo__pillola:focus-visible,
.tfcm-cineo .tfcm-cineo__viste .tfcm-cineo__vista:focus-visible {
	outline-color: var(--tfcm-cineo-accento-colore);
}

/* ---------- Selettore Griglia / Elenco ---------- */

.tfcm-cineo__viste {
	align-self: flex-end;
	display: inline-flex;
	overflow: hidden;
	border: 1px solid currentColor;
	border-radius: var(--tfcm-cineo-pulsante-raggio-vista, 0 50px 50px 50px);
	box-shadow: var(--tfcm-cineo-ombra);
}

.tfcm-cineo .tfcm-cineo__vista,
.tfcm-cineo .tfcm-cineo__vista:hover,
.tfcm-cineo .tfcm-cineo__vista:focus {
	padding: .6em 1.3em;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tfcm-cineo .tfcm-cineo__vista + .tfcm-cineo__vista {
	border-left: 1px solid var(--tfcm-cineo-bordo-colore);
}

.tfcm-cineo .tfcm-cineo__viste .tfcm-cineo__vista:hover,
.tfcm-cineo .tfcm-cineo__viste .tfcm-cineo__vista:focus-visible,
.tfcm-cineo .tfcm-cineo__viste .tfcm-cineo__vista[aria-pressed="true"] {
	color: var(--tfcm-cineo-accento-testo-colore);
}

.tfcm-cineo .tfcm-cineo__vista:hover::before,
.tfcm-cineo .tfcm-cineo__vista:focus-visible::before,
.tfcm-cineo .tfcm-cineo__vista[aria-pressed="true"]::before {
	transform: scaleX(1);
}

.tfcm-cineo .tfcm-cineo__viste .tfcm-cineo__vista:focus-visible {
	outline-offset: -4px;
}

/* ---------- Striscia: settimane vicine, "Torna a…", "Tutte le settimane" ---------- */

.tfcm-cineo__striscia {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
}

.tfcm-cineo .tfcm-cineo__pillole {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tfcm-cineo .tfcm-cineo__pillole li {
	margin: 0;
	padding: 0;
}

.tfcm-cineo .tfcm-cineo__azioni {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	margin: 0 0 0 auto;
}

.tfcm-cineo .tfcm-cineo__link,
.tfcm-cineo .tfcm-cineo__link:hover,
.tfcm-cineo .tfcm-cineo__link:focus {
	padding: .35em 0;
	color: inherit;
	font-size: .85em;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	box-shadow: none;
	transition: text-decoration-color .2s ease, text-decoration-thickness .2s ease;
}

.tfcm-cineo .tfcm-cineo__azioni .tfcm-cineo__link:hover,
.tfcm-cineo .tfcm-cineo__azioni .tfcm-cineo__link[aria-expanded="true"] {
	text-decoration-color: var(--tfcm-cineo-accento-colore);
	text-decoration-thickness: 2px;
}

/* ---------- Pannello "Tutte le settimane" ---------- */

.tfcm-cineo__archivio {
	display: none;
	grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
	gap: 1.25rem 1.75rem;
	padding: 1.25rem;
	border: 1px solid var(--tfcm-cineo-bordo-colore);
}

/* Senza JavaScript si apre con il link (àncora); con JavaScript lo apre lo script. */
.tfcm-cineo__archivio:target,
.tfcm-cineo__archivio--aperto {
	display: grid;
}

.tfcm-cineo__archivio:focus {
	outline: none;
}

.tfcm-cineo .tfcm-cineo__mese-titolo {
	margin: 0 0 .45rem;
	color: inherit;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.tfcm-cineo .tfcm-cineo__voci {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tfcm-cineo .tfcm-cineo__voci li {
	margin: 0;
	padding: 0;
}

.tfcm-cineo .tfcm-cineo__voce,
.tfcm-cineo .tfcm-cineo__voce:hover,
.tfcm-cineo .tfcm-cineo__voce:focus {
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	padding: .35em .6em;
	color: inherit;
	font-size: .9em;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease;
}

.tfcm-cineo .tfcm-cineo__voce:hover {
	background: var(--tfcm-cineo-evidenza-colore);
}

/* 0,4,0: sopra il colore scelto per le settimane del pannello (body …, 0,2,1). */
.tfcm-cineo .tfcm-cineo__voci .tfcm-cineo__voce[aria-current="true"] {
	background: var(--tfcm-cineo-accento-colore);
	color: var(--tfcm-cineo-accento-testo-colore);
}

.tfcm-cineo .tfcm-cineo__voce-stato {
	align-self: center;
	font-size: .78em;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .75;
}

/* ---------- Segni: griglia ---------- */

.tfcm-cineo__segni {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--tfcm-cineo-spazio, 1rem);
}

/* Senza palette (core non attivo) la card resta trasparente: lo sfondo lo mette lo stile delle impostazioni. */
.tfcm-cineo__segno {
	display: flex;
	flex-direction: column;
	gap: .8rem;
	min-width: 0;
	padding: var(--tfcm-cineo-card-spazio, 1.25rem 1.25rem 1.4rem);
	border: 1px solid transparent;
	border-radius: var(--tfcm-cineo-raggio, 0 30px 30px 30px); /* 0.10.1: angolo vivo in alto a sinistra */
	transition: transform .25s ease, border-color .25s ease;
}

.tfcm-cineo__intestazione {
	display: flex;
	align-items: center;
	gap: .9rem;
	min-width: 0;
}

.tfcm-cineo__simbolo {
	flex: none;
	display: grid;
	place-items: center;
	width: var(--tfcm-cineo-simbolo, 3.5rem);
	height: var(--tfcm-cineo-simbolo, 3.5rem);
	border: var(--tfcm-cineo-simbolo-bordo, 1.5px) solid currentColor;
	border-radius: var(--tfcm-cineo-simbolo-raggio, 0 50% 50% 50%); /* 0.10.1: goccia, come le miniature del calendario */
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.tfcm-cineo__svg {
	display: block;
	width: 60%;
	height: 60%;
	overflow: visible;
}

.tfcm-cineo__titoli {
	min-width: 0;
}

.tfcm-cineo .tfcm-cineo__nome {
	margin: 0;
	color: inherit;
	font-size: var(--tfcm-cineo-nome-dimensione, 1.5em);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: .02em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.tfcm-cineo .tfcm-cineo__periodo {
	margin: .25em 0 0;
	font-size: .78em;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	opacity: .8;
}

.tfcm-cineo .tfcm-cineo__testo {
	margin: 0;
	text-wrap: pretty;
}

/* Passaggio del mouse (0.10.1): bordo della card e pallino pieni del colore della card al 100%, cioè --tfcm-cineo-colore
 * (il colore della palette messo dallo stile delle impostazioni su ogni tfcm-cineo__segno--{chiave}, prima della
 * miscela con l'intensità), non lo sfondo già mescolato. Il simbolo resta del colore del testo (currentColor). Senza
 * palette il colore d'accento, come nella 0.10.0: il bordo non diventa mai trasparente. Vale anche nell'elenco. */
@media (hover: hover) {
	.tfcm-cineo .tfcm-cineo__segno:hover {
		transform: translateY(calc(-1 * var(--tfcm-cineo-sollevamento, 3px)));
		border-color: var(--tfcm-cineo-colore, var(--tfcm-cineo-accento-colore));
	}

	.tfcm-cineo .tfcm-cineo__segno:hover .tfcm-cineo__simbolo {
		border-color: var(--tfcm-cineo-colore, var(--tfcm-cineo-accento-colore));
		background: var(--tfcm-cineo-colore, var(--tfcm-cineo-accento-colore));
	}
}

/* ---------- Segni: elenco (stessa card, una riga per segno, stesso sfondo) ---------- */

.tfcm-cineo__segni--elenco {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tfcm-cineo-elenco-spazio, .375rem);
}

.tfcm-cineo__segni--elenco .tfcm-cineo__segno {
	flex-direction: row;
	align-items: center;
	gap: 1.5rem;
	padding: .9rem 1.25rem;
	/* 0.10.1: raggio proprio dell'elenco (righe basse), predefinito uguale a quello della griglia. */
	border-radius: var(--tfcm-cineo-raggio-elenco, var(--tfcm-cineo-raggio, 0 30px 30px 30px));
}

.tfcm-cineo__segni--elenco .tfcm-cineo__intestazione {
	flex: none;
	width: var(--tfcm-cineo-elenco-testa, 17rem);
}

.tfcm-cineo__segni--elenco .tfcm-cineo__simbolo {
	width: var(--tfcm-cineo-simbolo-elenco, 3rem);
	height: var(--tfcm-cineo-simbolo-elenco, 3rem);
}

.tfcm-cineo__segni--elenco .tfcm-cineo__testo {
	flex: 1 1 auto;
	min-width: 0;
}

@media (hover: hover) {
	.tfcm-cineo .tfcm-cineo__segni--elenco .tfcm-cineo__segno:hover {
		transform: none;
	}
}

/* ---------- Messaggi ---------- */

.tfcm-cineo .tfcm-cineo__vuoto {
	margin: 0;
	padding: 1.5rem 0;
	text-align: center;
}

.tfcm-cineo .tfcm-cineo__errore {
	margin: 0;
}

/* ---------- Tablet e telefono (breakpoint di Elementor) ---------- */

@media (max-width: 1024px) {
	.tfcm-cineo__segni {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tfcm-cineo__segni--elenco {
		grid-template-columns: minmax(0, 1fr);
	}

	.tfcm-cineo__segni--elenco .tfcm-cineo__intestazione {
		width: var(--tfcm-cineo-elenco-testa, 13rem);
	}
}

@media (max-width: 767px) {
	.tfcm-cineo__segni {
		grid-template-columns: minmax(0, 1fr);
	}

	.tfcm-cineo__barra {
		gap: .5rem;
	}

	.tfcm-cineo .tfcm-cineo__azioni {
		margin-left: 0;
	}

	/* 0.10.2: sul telefono niente Griglia / Elenco, la vista è sempre la griglia. Lo script mostra la griglia e non
	 * tocca la scelta salvata (torna valida da 768px in su); qui il selettore sparisce e, se l'elenco arriva dal
	 * server (vista="elenco" nello shortcode, prima dello script o senza script), ha lo stesso aspetto della griglia. */
	.tfcm-cineo .tfcm-cineo__viste {
		display: none;
	}

	.tfcm-cineo__segni--elenco {
		gap: var(--tfcm-cineo-spazio, 1rem);
	}

	.tfcm-cineo__segni--elenco .tfcm-cineo__segno {
		flex-direction: column;
		align-items: stretch;
		gap: .8rem;
		padding: var(--tfcm-cineo-card-spazio, 1.25rem 1.25rem 1.4rem);
		border-radius: var(--tfcm-cineo-raggio, 0 30px 30px 30px);
	}

	.tfcm-cineo__segni--elenco .tfcm-cineo__intestazione {
		flex: 0 1 auto;
		width: auto;
	}

	.tfcm-cineo__segni--elenco .tfcm-cineo__simbolo {
		width: var(--tfcm-cineo-simbolo, 3.5rem);
		height: var(--tfcm-cineo-simbolo, 3.5rem);
	}

	.tfcm-cineo__segni--elenco .tfcm-cineo__testo {
		flex: 0 1 auto;
	}
}

/* Elenco con l'aspetto della griglia (sopra): anche il sollevamento al passaggio del mouse, come in griglia. */
@media (max-width: 767px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
	.tfcm-cineo .tfcm-cineo__segni--elenco .tfcm-cineo__segno:hover {
		transform: translateY(calc(-1 * var(--tfcm-cineo-sollevamento, 3px)));
	}
}

/* ---------- Animazioni (solo con lo script e senza "riduci movimento") ---------- */

@media (prefers-reduced-motion: no-preference) {
	/* In attesa di entrare nello schermo: già leggibili, solo più chiare e un po' più in basso. */
	.tfcm-cineo--anim .tfcm-cineo__segni--attesa .tfcm-cineo__segno {
		opacity: .35;
		transform: translateY(12px);
	}

	/* Entrata a cascata; nessun fill "forwards": a fine corsa non resta nessuna trasformazione. */
	.tfcm-cineo--anim .tfcm-cineo__segni--entra .tfcm-cineo__segno {
		animation: tfcm-cineo-entra .5s var(--tfcm-cineo-curva-out) backwards;
		animation-delay: calc(var(--tfcm-cineo-i, 0) * 45ms);
	}

	/* Cambio di settimana: uscita breve di settimana e segni, poi entrata del nuovo contenuto. */
	.tfcm-cineo--anim .tfcm-cineo__corpo--esce .tfcm-cineo__centro,
	.tfcm-cineo--anim .tfcm-cineo__corpo--esce .tfcm-cineo__segni,
	.tfcm-cineo--anim .tfcm-cineo__corpo--esce .tfcm-cineo__vuoto {
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity .2s ease, transform .2s ease;
	}

	.tfcm-cineo--anim .tfcm-cineo__corpo--entra .tfcm-cineo__centro {
		animation: tfcm-cineo-sfuma .35s ease backwards;
	}
}

@keyframes tfcm-cineo-entra {
	from {
		opacity: .35;
		transform: translateY(12px);
	}
}

@keyframes tfcm-cineo-sfuma {
	from {
		opacity: 0;
	}
}

/* Movimento ridotto: niente spostamenti; il riempimento dei pulsanti compare senza scorrere. */
@media (prefers-reduced-motion: reduce) {
	.tfcm-cineo__segno,
	.tfcm-cineo__simbolo,
	.tfcm-cineo__freccia-icona,
	.tfcm-cineo .tfcm-cineo__freccia::before,
	.tfcm-cineo .tfcm-cineo__pillola::before,
	.tfcm-cineo .tfcm-cineo__vista::before {
		transition: none;
	}

	.tfcm-cineo .tfcm-cineo__segno:hover,
	.tfcm-cineo .tfcm-cineo__freccia:hover .tfcm-cineo__freccia-icona,
	.tfcm-cineo .tfcm-cineo__freccia:focus-visible .tfcm-cineo__freccia-icona {
		transform: none;
	}
}
