/*
 * Tema Tebibyte – stili che completano theme.json.
 * Colori e dimensioni usano le variabili di theme.json: se cambi la palette
 * dall'editor, il sito si aggiorna di conseguenza.
 *
 * Indice: base · intestazione · elementi comuni · apertura · chi siamo ·
 * servizi · perché noi · invito a chiamare · FAQ · contatti · modulo ·
 * piè di pagina · barra mobile · movimento ridotto · stampa.
 */

:root {
	--tb-raggio: 20px;
	--tb-raggio-piccolo: 12px;
	--tb-ombra: 0 24px 48px -24px rgb(22 24 29 / 0.35);
	--tb-velo-chiaro: rgb(255 255 255 / 0.08);
	--tb-linea-chiara: rgb(255 255 255 / 0.14);
}

/* ---------- Base ---------- */

html {
	scroll-padding-top: 5.5rem;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

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

h1,
h2,
h3,
h4 {
	overflow-wrap: break-word;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

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

:focus-visible {
	outline: 2px solid var(--wp--preset--color--rosso);
	outline-offset: 2px;
}

::selection {
	background: var(--wp--preset--color--rosso);
	color: var(--wp--preset--color--bianco);
}

.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;
}

/* Le sezioni a tutta larghezza si toccano, senza spazi bianchi tra loro. */
body .wp-site-blocks > *,
main .tb-sezione,
main .entry-content > .tb-sezione {
	margin-block-start: 0;
	margin-block-end: 0;
}

.tb-sezione {
	position: relative;
	padding-block: var(--wp--preset--spacing--60);
}

/* ---------- Intestazione (vetro smerigliato) ---------- */

.wp-site-blocks > .tb-testata-parte {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

@media (max-width: 600px) {
	.wp-site-blocks > .tb-testata-parte {
		top: 0;
	}
}

.tb-testata {
	padding-block: 0.75rem;
	background-color: var(--wp--preset--color--nero);
	border-bottom: 1px solid rgb(255 255 255 / 0.06);
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.tb-testata {
		background-color: rgb(22 24 29 / 0.8);
		-webkit-backdrop-filter: saturate(1.6) blur(14px);
		backdrop-filter: saturate(1.6) blur(14px);
	}
}

.tb-scorrimento .tb-testata {
	box-shadow: 0 8px 30px rgb(0 0 0 / 0.25);
}

.tb-testata-riga {
	gap: 1.5rem;
	align-items: center;
}

.tb-testata .wp-block-site-logo img {
	display: block;
	max-height: 48px;
	width: auto;
}

.tb-testata-destra {
	gap: 1.75rem;
	align-items: center;
}

.tb-menu .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.35rem;
	color: rgb(255 255 255 / 0.82);
	transition: color 0.2s ease;
}

.tb-menu .wp-block-navigation-item__content:hover,
.tb-menu .wp-block-navigation-item__content.is-attivo {
	color: var(--wp--preset--color--bianco);
}

.tb-menu .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--rosso-chiaro);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.tb-menu .wp-block-navigation-item__content:hover::after,
.tb-menu .wp-block-navigation-item__content.is-attivo::after {
	transform: scaleX(1);
}

/* Menu a schermo intero su smartphone. */
.tb-menu .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
}

.tb-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.25rem;
	font-size: 1.5rem;
}

.tb-testata-tel {
	margin: 0;
	font-weight: 600;
	white-space: nowrap;
}

.tb-testata-tel a {
	color: inherit;
	text-decoration: none;
}

.tb-testata-tel a:hover {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-testata-cta .wp-block-button__link {
	padding: 0.6rem 1.15rem;
	font-size: 0.95rem;
	white-space: nowrap;
}

@media (max-width: 1100px) {
	.tb-testata-tel {
		display: none;
	}
}

@media (max-width: 1000px) {
	.tb-testata-cta {
		display: none;
	}
}

@media (min-width: 600px) and (max-width: 900px) {
	.tb-testata .wp-block-site-logo img {
		max-height: 40px;
	}

	.tb-menu .wp-block-navigation__container {
		gap: 0.9rem;
		font-size: 0.875rem;
	}
}

/* ---------- Elementi comuni ---------- */

/* Etichetta a "pillola" sopra i titoli di sezione. */
.tb-etichetta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	margin-bottom: 0.25rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgb(188 0 19 / 0.08);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--rosso);
}

.tb-etichetta::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: currentColor;
}

.tb-hero .tb-etichetta,
.tb-scura .tb-etichetta,
.tb-chiamaci .tb-etichetta {
	background: rgb(255 90 104 / 0.12);
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-rossa .tb-etichetta {
	background: rgb(255 255 255 / 0.16);
	color: var(--wp--preset--color--bianco);
}

.tb-intestazione-sezione {
	margin-bottom: var(--wp--preset--spacing--50);
}

/* Pulsanti a pillola; quello principale ha una freccia che si sposta al passaggio. */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	box-shadow: 0 10px 24px -12px rgb(188 0 19 / 0.7);
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.55rem;
	transition: transform 0.2s ease;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.wp-block-button__link:active,
.wp-element-button:active {
	transform: translateY(1px);
}

.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--rosso);
}

.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--rosso);
	border-color: var(--wp--preset--color--rosso);
	color: var(--wp--preset--color--bianco);
}

.tb-pulsante-chiaro > .wp-block-button__link {
	color: var(--wp--preset--color--bianco);
	border-color: rgb(255 255 255 / 0.45);
}

.tb-pulsante-chiaro > .wp-block-button__link:hover {
	background: var(--wp--preset--color--bianco);
	border-color: var(--wp--preset--color--bianco);
	color: var(--wp--preset--color--nero);
}

/* Sfondo a griglia sottile, usato su apertura e sezioni scure. */
.tb-hero::before,
.tb-card--scura::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
	background-size: 56px 56px;
	pointer-events: none;
}

/* ---------- Apertura (hero) ---------- */

.tb-hero {
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
}

.tb-hero::before {
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 10%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 10%, transparent 75%);
}

.tb-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -15%;
	top: -20%;
	width: 70vmax;
	height: 70vmax;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(188 0 19 / 0.4) 0%, transparent 62%);
	pointer-events: none;
}

.tb-hero-colonne {
	gap: clamp(2.5rem, 6vw, 5rem);
}

.tb-hero h1 {
	margin-block: 1rem 1.25rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.tb-hero h1 mark {
	background: none;
}

.tb-hero-testo {
	max-width: 38rem;
	color: rgb(255 255 255 / 0.78);
}

.tb-hero-pulsanti {
	margin-top: 2.25rem;
	gap: 0.75rem;
}

/* Illustrazioni animate (SVG originali in assets/illustrazioni). */
.tb-illustrazione {
	margin: 0;
}

.tb-illustrazione img {
	display: block;
	width: 100%;
	height: auto;
}

.tb-illustrazione-apertura img {
	max-width: 580px;
	margin-left: auto;
	aspect-ratio: 572 / 440;
	filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.35));
}

/* Pannello "terminale" decorativo. */
.tb-terminale {
	overflow: hidden;
	border: 1px solid var(--tb-linea-chiara);
	border-radius: var(--tb-raggio);
	background: rgb(10 11 14 / 0.82);
	box-shadow:
		0 40px 80px -30px rgb(0 0 0 / 0.75),
		0 0 0 1px rgb(188 0 19 / 0.2),
		0 0 60px -10px rgb(188 0 19 / 0.35);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (min-width: 782px) {
	.tb-terminale {
		transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
		transition: transform 0.6s ease;
	}

	.tb-terminale:hover {
		transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
	}
}

.tb-terminale-barra {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.08);
	background: rgb(255 255 255 / 0.03);
}

.tb-terminale-barra span {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: #3a3d45;
}

.tb-terminale-barra span:first-child {
	background: var(--wp--preset--color--rosso-chiaro);
}

.tb-terminale-barra em {
	margin-left: auto;
	font-size: 0.75rem;
	font-style: normal;
	color: #8a909b;
}

.tb-terminale-corpo {
	padding: 1.25rem 1.25rem 1.4rem;
}

.tb-terminale-corpo p {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0 0 0.5rem;
	color: #e3e6eb;
	white-space: nowrap;
}

.tb-terminale-corpo p:first-child {
	margin-bottom: 0.9rem;
	color: #9aa1ad;
}

.tb-t-prompt {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-t-ok {
	color: #4ade80;
}

.tb-t-punti {
	flex: 1;
	min-width: 1rem;
	border-bottom: 1px dotted rgb(255 255 255 / 0.22);
}

.tb-t-stato {
	color: #9aa1ad;
}

.tb-t-fine {
	margin-top: 0.9rem !important;
}

.tb-t-cursore {
	display: inline-block;
	width: 0.55rem;
	height: 1.05em;
	background: var(--wp--preset--color--rosso-chiaro);
	vertical-align: text-bottom;
	animation: tb-lampeggia 1.1s steps(1) infinite;
}

@keyframes tb-lampeggia {
	50% {
		opacity: 0;
	}
}

/* Le righe compaiono una alla volta quando il terminale entra nello schermo (effetti.js). */
@keyframes tb-riga {
	from {
		opacity: 0;
		transform: translateX(-10px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.tb-terminale.tb-digita .tb-terminale-corpo p {
	animation: tb-riga 0.35s ease-out both;
}

.tb-terminale.tb-digita .tb-terminale-corpo p:nth-child(2) { animation-delay: 0.45s; }
.tb-terminale.tb-digita .tb-terminale-corpo p:nth-child(3) { animation-delay: 0.75s; }
.tb-terminale.tb-digita .tb-terminale-corpo p:nth-child(4) { animation-delay: 1.05s; }
.tb-terminale.tb-digita .tb-terminale-corpo p:nth-child(5) { animation-delay: 1.35s; }
.tb-terminale.tb-digita .tb-terminale-corpo p:nth-child(6) { animation-delay: 1.65s; }
.tb-terminale.tb-digita .tb-terminale-corpo p:nth-child(7) { animation-delay: 1.95s; }

@media (max-width: 781px) {
	.tb-terminale {
		font-size: 0.8125rem;
	}
}

/* Fascia delle tecnologie. */
.tb-tecnologie {
	gap: 0.75rem 2.25rem;
	margin-top: var(--wp--preset--spacing--60) !important;
	padding-top: 1.75rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.tb-tecnologie p {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgb(255 255 255 / 0.55);
	transition: color 0.2s ease;
}

.tb-tecnologie p:hover {
	color: var(--wp--preset--color--bianco);
}

.tb-tecnologie .tb-tecnologie-titolo {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rosso-chiaro);
}

@media (max-width: 781px) {
	.tb-tecnologie .tb-tecnologie-titolo {
		flex-basis: 100%;
	}

	.tb-illustrazione-apertura img {
		max-width: 440px;
		margin-inline: auto;
	}
}

/* ---------- Chi siamo e metodo ---------- */

.tb-chi-siamo {
	gap: var(--wp--preset--spacing--50);
}

.tb-chi-siamo h2 {
	margin-top: 0.75rem;
}

.tb-illustrazione-cruscotto img {
	aspect-ratio: 560 / 420;
	filter: drop-shadow(0 24px 30px rgb(22 24 29 / 0.18));
}

/* Motto in grande. */
.tb-citazione {
	position: relative;
	margin-block: var(--wp--preset--spacing--60) !important;
	padding: var(--wp--preset--spacing--50) 0;
	border: 0;
	border-block: 1px solid var(--wp--preset--color--bordo);
	text-align: center;
}

.tb-citazione::before {
	content: "0 1";
	position: absolute;
	top: -0.85rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0 1rem;
	background: var(--wp--preset--color--bianco);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	color: var(--wp--preset--color--rosso);
}

.tb-citazione p {
	max-width: 26ch;
	margin-inline: auto;
	font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--nero);
}

.tb-citazione strong {
	color: var(--wp--preset--color--rosso);
}

/* Metodo su una linea del tempo. */
.tb-passi {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem;
}

.tb-passi > * {
	margin: 0 !important;
}

.tb-passi::before {
	content: "";
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--rosso), var(--wp--preset--color--bordo));
}

.tb-passo {
	position: relative;
	z-index: 1;
}

.tb-passo h3 {
	margin-top: 1.25rem;
}

.tb-passo p:last-child {
	margin-top: 0.5rem;
}

.tb-numero {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	border: 2px solid var(--wp--preset--color--rosso);
	border-radius: 50%;
	background: var(--wp--preset--color--bianco);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--wp--preset--color--rosso);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tb-passo:hover .tb-numero {
	background: var(--wp--preset--color--rosso);
	color: var(--wp--preset--color--bianco);
}

@media (max-width: 781px) {
	.tb-passi {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.tb-passi::before {
		top: 0.5rem;
		bottom: 0.5rem;
		left: 1.45rem;
		right: auto;
		width: 2px;
		height: auto;
		background: linear-gradient(180deg, var(--wp--preset--color--rosso), var(--wp--preset--color--bordo));
	}

	.tb-passo {
		padding-left: 4.5rem;
	}

	.tb-numero {
		position: absolute;
		top: 0;
		left: 0;
	}

	.tb-passo h3 {
		margin-top: 0.6rem;
	}
}

/* ---------- Servizi (griglia "bento") ---------- */

.tb-bento {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.tb-griglia.tb-bento > * {
	margin: 0;
}

.tb-card--larga {
	grid-column: span 2;
}

@media (max-width: 1000px) {
	.tb-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tb-bento {
		grid-template-columns: 1fr;
	}

	.tb-card--larga {
		grid-column: auto;
	}
}

.tb-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--wp--preset--color--bianco);
	border: 1px solid var(--wp--preset--color--bordo);
	border-radius: var(--tb-raggio);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tb-griglia .tb-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: var(--tb-ombra);
}

.tb-card > * {
	margin-block: 0;
}

.tb-card > * + * {
	margin-block-start: 0.6rem;
}

.tb-card h3 {
	margin-block-start: 0.25rem;
}

.tb-card h3 + p {
	font-size: 0.975rem;
}

.tb-icona {
	display: inline-grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1rem !important;
	border-radius: var(--tb-raggio-piccolo);
	background: rgb(188 0 19 / 0.08);
	transition: transform 0.25s ease;
}

.tb-card:hover .tb-icona {
	transform: rotate(-6deg) scale(1.06);
}

.wp-block-image.tb-icona img {
	width: 1.75rem;
	height: 1.75rem;
}

.tb-card-area {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grigio);
}

/* Illustrazione nelle schede larghe: a destra del testo sul computer, sotto su smartphone. */
.tb-card-illustrazione {
	max-width: 300px;
	margin-inline: auto;
}

.tb-card-illustrazione img {
	aspect-ratio: 320 / 260;
}

@media (min-width: 641px) {
	.tb-card--larga:has(> .tb-card-illustrazione) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
		column-gap: 1.5rem;
		align-content: start;
	}

	.tb-card--larga:has(> .tb-card-illustrazione) > * {
		grid-column: 1;
	}

	.tb-card--larga > .tb-card-illustrazione {
		grid-column: 2;
		grid-row: 1 / span 4;
		align-self: center;
		width: 100%;
		margin: 0 !important;
	}
}

/* Varianti delle schede. */
.tb-card--larga h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

.tb-card--larga h3 + p {
	max-width: 34rem;
	font-size: 1.0625rem;
}

.tb-card--scura,
.tb-card--rossa {
	border-color: transparent;
	color: rgb(255 255 255 / 0.82);
}

.tb-card--scura {
	background: linear-gradient(135deg, var(--wp--preset--color--nero), var(--wp--preset--color--grafite));
}

.tb-card--scura::before {
	-webkit-mask-image: linear-gradient(90deg, transparent 20%, #000);
	mask-image: linear-gradient(90deg, transparent 20%, #000);
}

.tb-card--rossa {
	background:
		radial-gradient(circle at 90% 0%, rgb(255 255 255 / 0.18), transparent 45%),
		linear-gradient(135deg, var(--wp--preset--color--rosso), var(--wp--preset--color--rosso-scuro));
}

.tb-card--scura h3,
.tb-card--rossa h3 {
	color: var(--wp--preset--color--bianco);
}

.tb-card--scura .tb-card-area {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-card--rossa .tb-card-area {
	color: rgb(255 255 255 / 0.75);
}

.tb-card--scura .tb-icona,
.tb-card--rossa .tb-icona {
	background: rgb(255 255 255 / 0.12);
}

.tb-card--scura .tb-icona img,
.tb-card--rossa .tb-icona img {
	filter: brightness(0) invert(1);
}

/* ---------- Perché noi (sezione rossa) ---------- */

.tb-rossa {
	overflow: hidden;
	isolation: isolate;
	background-image:
		radial-gradient(circle at 10% 10%, rgb(255 255 255 / 0.14), transparent 40%),
		linear-gradient(135deg, var(--wp--preset--color--rosso) 0%, var(--wp--preset--color--rosso-scuro) 100%);
}

.tb-rossa::after {
	content: "01";
	position: absolute;
	z-index: -1;
	right: -2rem;
	bottom: -6rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: clamp(12rem, 30vw, 26rem);
	font-weight: 700;
	line-height: 1;
	color: rgb(255 255 255 / 0.06);
	pointer-events: none;
}

.tb-perche {
	gap: var(--wp--preset--spacing--50);
}

.tb-perche-titolo h2 {
	margin-top: 0.75rem;
}

.tb-perche-titolo p:last-child {
	margin-top: 1rem;
	color: rgb(255 255 255 / 0.82);
}

@media (min-width: 782px) {
	.tb-perche-titolo {
		position: sticky;
		top: 7rem;
		align-self: flex-start;
	}
}

.tb-punti {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.tb-punti > * {
	margin: 0 !important;
}

.tb-punto {
	padding: 1.5rem;
	border: 1px solid rgb(255 255 255 / 0.18);
	border-radius: var(--tb-raggio);
	background: rgb(255 255 255 / 0.07);
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.tb-punto:hover {
	background: rgb(255 255 255 / 0.12);
	transform: translateY(-3px);
}

.tb-punto h3 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}

.tb-punto h3::before {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BC0013' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 0.9rem no-repeat,
		var(--wp--preset--color--bianco);
}

.tb-punto p {
	margin-top: 0.6rem;
	color: rgb(255 255 255 / 0.85);
}

@media (max-width: 640px) {
	.tb-punti {
		grid-template-columns: 1fr;
	}
}

/* ---------- Invito a chiamare ---------- */

.tb-chiamaci {
	overflow: hidden;
	isolation: isolate;
	padding-block: var(--wp--preset--spacing--50);
}

.tb-chiamaci::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -10%;
	top: 50%;
	width: 50vmax;
	height: 50vmax;
	transform: translateY(-50%);
	border-radius: 50%;
	background: radial-gradient(circle, rgb(188 0 19 / 0.35), transparent 60%);
	pointer-events: none;
}

.tb-chiamaci-riga {
	gap: 1.5rem 2rem;
}

.tb-chiamaci-sinistra {
	gap: 1.25rem;
	align-items: center;
}

.tb-illustrazione-telefono {
	flex: none;
	width: 88px;
}

.tb-illustrazione-telefono img {
	aspect-ratio: 1;
}

@media (max-width: 480px) {
	.tb-illustrazione-telefono {
		width: 64px;
	}
}

.tb-chiamaci-testo > * {
	margin: 0;
}

.tb-chiamaci-domanda {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-chiamaci-numero {
	margin-top: 0.25rem !important;
	font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.tb-chiamaci-numero a {
	color: var(--wp--preset--color--bianco);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tb-chiamaci-numero a:hover {
	color: var(--wp--preset--color--rosso-chiaro);
}

/* ---------- FAQ ---------- */

.tb-faq-colonne {
	gap: var(--wp--preset--spacing--50);
}

.tb-faq-titolo h2 {
	margin-top: 0.75rem;
}

.tb-faq-titolo .wp-block-buttons {
	margin-top: 1.5rem;
}

@media (min-width: 782px) {
	.tb-faq-titolo {
		position: sticky;
		top: 7rem;
		align-self: flex-start;
	}
}

.tb-faq > * {
	margin: 0 !important;
}

.tb-faq .wp-block-details {
	margin-bottom: 0.75rem !important;
	padding: 1.1rem 1.35rem;
	border: 1px solid var(--wp--preset--color--bordo);
	border-radius: var(--tb-raggio-piccolo);
	background: var(--wp--preset--color--bianco);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tb-faq .wp-block-details:hover {
	border-color: #c9cdd5;
}

.tb-faq .wp-block-details[open] {
	border-color: var(--wp--preset--color--rosso);
	box-shadow: 0 12px 30px -18px rgb(188 0 19 / 0.45);
}

.tb-faq summary {
	position: relative;
	padding-right: 2.5rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--nero);
	cursor: pointer;
	list-style: none;
}

.tb-faq summary::-webkit-details-marker {
	display: none;
}

.tb-faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 0;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var(--wp--preset--color--chiaro);
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--rosso);
	transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.tb-faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
	background: var(--wp--preset--color--rosso);
	color: var(--wp--preset--color--bianco);
}

.tb-faq details > p {
	margin-top: 0.75rem;
}

/* ---------- Contatti (sezione scura) ---------- */

.tb-scura a {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-contatti-sezione {
	overflow: hidden;
	isolation: isolate;
}

.tb-contatti-sezione::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: -20%;
	bottom: -40%;
	width: 60vmax;
	height: 60vmax;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(188 0 19 / 0.3), transparent 60%);
	pointer-events: none;
}

.tb-contatti {
	gap: var(--wp--preset--spacing--50);
}

.tb-contatti h2 {
	margin-top: 0.75rem;
}

.tb-recapiti {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.tb-recapiti li {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1.25rem;
}

.tb-recapiti strong {
	color: var(--wp--preset--color--nero);
}

.tb-recapiti-icona {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--wp--preset--color--bordo);
	border-radius: var(--tb-raggio-piccolo);
	background: var(--wp--preset--color--bianco);
	color: var(--wp--preset--color--rosso);
}

.tb-scura .tb-recapiti strong {
	color: var(--wp--preset--color--bianco);
}

.tb-scura .tb-recapiti-icona {
	border-color: var(--tb-linea-chiara);
	background: var(--tb-velo-chiaro);
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-card-modulo {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 0;
	color: var(--wp--preset--color--testo);
	box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6);
}

.tb-card-modulo a {
	color: var(--wp--preset--color--rosso);
}

/* ---------- Modulo ---------- */

.tb-modulo {
	display: grid;
	gap: 1rem;
}

.tb-modulo p {
	margin: 0;
}

.tb-modulo-griglia {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.tb-campo label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--nero);
}

.tb-campo input[type="text"],
.tb-campo input[type="email"],
.tb-campo input[type="tel"],
.tb-campo textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.8rem 0.95rem;
	/* 16px evita lo zoom automatico su iPhone. */
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--wp--preset--color--nero);
	background: var(--wp--preset--color--chiaro);
	border: 1px solid transparent;
	border-radius: var(--tb-raggio-piccolo);
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tb-campo input:hover,
.tb-campo textarea:hover {
	border-color: #c9cdd5;
}

.tb-campo textarea {
	min-height: 8rem;
	resize: vertical;
}

.tb-campo input:focus,
.tb-campo textarea:focus {
	outline: none;
	background: var(--wp--preset--color--bianco);
	border-color: var(--wp--preset--color--rosso);
	box-shadow: 0 0 0 4px rgb(188 0 19 / 0.12);
}

.tb-campo--spunta {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
}

.tb-campo--spunta input {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	accent-color: var(--wp--preset--color--rosso);
}

.tb-campo--spunta label {
	margin: 0;
	font-weight: 400;
	color: var(--wp--preset--color--testo);
}

.tb-modulo-invio {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.tb-modulo button[type="submit"] {
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 10px 24px -12px rgb(188 0 19 / 0.7);
}

.tb-modulo-nota {
	font-size: 0.875rem;
	color: var(--wp--preset--color--grigio);
}

.tb-modulo-avviso {
	padding: 0.9rem 1rem;
	border-radius: var(--tb-raggio-piccolo);
	font-weight: 600;
}

.tb-modulo-avviso--successo {
	background: #e7f6ec;
	color: #145c2e;
	border: 1px solid #b6e2c4;
}

.tb-modulo-avviso--errore {
	background: #fdecee;
	color: #8c000b;
	border: 1px solid #f5c2c7;
}

/* Campo trappola per i bot: invisibile alle persone. */
.tb-modulo-trappola {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Piè di pagina ---------- */

.tb-piede {
	padding-block: var(--wp--preset--spacing--60) 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.06);
	font-size: 0.9375rem;
}

.tb-piede a {
	color: var(--wp--preset--color--bianco);
	text-decoration: none;
}

.tb-piede a:hover {
	color: var(--wp--preset--color--rosso-chiaro);
	text-decoration: underline;
}

.tb-piede-colonne {
	gap: var(--wp--preset--spacing--50);
}

.tb-piede .wp-block-site-logo img {
	display: block;
	height: 40px;
	width: auto;
}

.tb-piede-titolo {
	margin-bottom: 1rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-piede-fondo {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.6);
}

.tb-piede-fondo p {
	margin: 0;
}

/* ---------- Articoli e pagine interne ---------- */

.tb-data {
	color: var(--wp--preset--color--grigio);
	font-size: 0.9375rem;
}

/* ---------- Barra contatti su smartphone ---------- */

.tb-barra-mobile {
	display: none;
}

@media (max-width: 781px) {
	body {
		padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
	}

	.tb-barra-mobile {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: var(--wp--preset--color--nero);
		box-shadow: 0 -4px 16px rgb(0 0 0 / 0.2);
	}

	.tb-barra-mobile a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.2rem;
		min-height: 4rem;
		font-size: 0.75rem;
		font-weight: 600;
		color: var(--wp--preset--color--bianco);
		text-decoration: none;
	}

	.tb-barra-mobile a + a {
		border-left: 1px solid rgb(255 255 255 / 0.1);
	}

	.tb-barra-mobile a:first-child {
		background: var(--wp--preset--color--rosso);
	}
}

/* =========================================================================
 * Versione 4 – scelte più audaci: tipografia gigante, sezioni oblique,
 * schede in vetro, luce che segue il mouse, ingressi allo scorrimento.
 * Gli effetti interattivi sono in assets/js/effetti.js.
 * ====================================================================== */

/* Barra di avanzamento della lettura, in cima alla finestra. */
.tb-progresso {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 1000;
	height: 3px;
	background: linear-gradient(90deg, var(--wp--preset--color--rosso), var(--wp--preset--color--rosso-chiaro));
	box-shadow: 0 0 12px rgb(255 90 104 / 0.7);
	transform: scaleX(var(--tb-progresso, 0));
	transform-origin: left;
	pointer-events: none;
}

@media (max-width: 600px) {
	.tb-progresso {
		top: 0;
	}
}

/* Intestazione che si assottiglia scorrendo. */
.tb-testata {
	transition: padding 0.3s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tb-scorrimento .tb-testata {
	padding-block: 0.45rem;
}

/* Titoli giganti. */
.tb-hero h1 {
	font-size: clamp(2.6rem, 1.1rem + 5.2vw, 5.75rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
}

main .tb-sezione h2 {
	font-size: clamp(2rem, 1.1rem + 3.2vw, 3.75rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
}

/* "per aziende a Milano" con un riflesso che scorre. */
.tb-hero h1 mark.has-inline-color {
	background: linear-gradient(90deg, #FF5C66 0%, #FFB3B8 25%, #FF5C66 50%, #FFB3B8 75%, #FF5C66 100%) 0 0 / 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	animation: tb-riflesso 6s linear infinite;
}

@keyframes tb-riflesso {
	to {
		background-position: -200% 0;
	}
}

/* Ingresso dell'apertura al caricamento (solo CSS: nessun lampeggio). */
@keyframes tb-sali {
	from {
		opacity: 0;
		transform: translateY(32px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.tb-hero-contenuto > * {
	animation: tb-sali 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tb-hero-contenuto > :nth-child(2) {
	animation-delay: 0.08s;
}

.tb-hero-contenuto > :nth-child(3) {
	animation-delay: 0.16s;
}

.tb-hero-contenuto > :nth-child(4) {
	animation-delay: 0.24s;
}

.tb-illustrazione-apertura {
	animation: tb-sali 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Terminale dell'apertura: entra dal basso (con "translate", per non annullare l'inclinazione). */
@keyframes tb-sali-pannello {
	from {
		opacity: 0;
		translate: 0 40px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

.tb-hero .tb-terminale {
	animation: tb-sali-pannello 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Su computer il terminale si orienta verso il mouse. */
@media (min-width: 782px) {
	.tb-hero .tb-terminale {
		transform: perspective(1400px) rotateY(calc(-7deg + var(--tb-px, 0) * 14deg)) rotateX(calc(2deg - var(--tb-py, 0) * 10deg));
		transition: transform 0.35s ease-out;
	}

	.tb-hero .tb-terminale:hover {
		transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
	}
}

/* Luce rossa che segue il mouse nell'apertura; l'illustrazione si sposta in parallasse. */
.tb-hero::after {
	inset: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	background: radial-gradient(700px circle at var(--tb-mx, 72%) var(--tb-my, 35%), rgb(188 0 19 / 0.45), transparent 62%);
}

.tb-illustrazione-apertura img {
	transform: translate3d(calc(var(--tb-px, 0) * -18px), calc(var(--tb-py, 0) * -18px), 0);
	transition: transform 0.4s ease-out;
}

/* Tecnologie su un nastro che scorre (attivato da effetti.js). */
.tb-tecnologie.tb-nastro {
	flex-wrap: nowrap;
	align-items: center;
}

.tb-nastro-finestra {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tb-nastro-pista {
	display: flex;
	width: max-content;
	animation: tb-nastro 32s linear infinite;
}

.tb-nastro:hover .tb-nastro-pista {
	animation-play-state: paused;
}

.tb-nastro-pista p {
	display: flex;
	align-items: center;
	white-space: nowrap;
	font-size: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
}

.tb-nastro-pista p::after {
	content: "✦";
	margin-inline: 1.75rem;
	font-size: 0.7em;
	color: var(--wp--preset--color--rosso-chiaro);
}

@keyframes tb-nastro {
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 781px) {
	.tb-tecnologie.tb-nastro {
		flex-wrap: wrap;
	}

	.tb-nastro-finestra {
		flex-basis: 100%;
	}
}

/* Motto: le lettere si "decodificano" da 0 e 1 (effetti.js). */
.tb-citazione .tb-decodifica {
	font-variant-ligatures: none;
}

/* Servizi su fondo nero con schede in vetro. */
.tb-servizi-scuri {
	background-image:
		radial-gradient(900px circle at 85% 0%, rgb(188 0 19 / 0.28), transparent 60%),
		radial-gradient(700px circle at 0% 100%, rgb(188 0 19 / 0.12), transparent 60%);
}

.tb-servizi-scuri .tb-intestazione-sezione p:last-child {
	color: rgb(255 255 255 / 0.72);
}

.tb-servizi-scuri .tb-card:not(.tb-card--rossa):not(.tb-card--scura) {
	background: rgb(255 255 255 / 0.04);
	border-color: rgb(255 255 255 / 0.1);
	color: rgb(255 255 255 / 0.72);
}

.tb-servizi-scuri .tb-card h3 {
	color: var(--wp--preset--color--bianco);
}

.tb-servizi-scuri .tb-card-area {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-servizi-scuri .tb-card--rossa .tb-card-area {
	color: rgb(255 255 255 / 0.75);
}

.tb-servizi-scuri .tb-icona {
	background: var(--wp--preset--color--rosso);
	box-shadow: 0 10px 24px -10px rgb(188 0 19 / 0.9);
}

.tb-servizi-scuri .tb-icona img {
	filter: brightness(0) invert(1);
}

.tb-servizi-scuri .tb-card--rossa .tb-icona {
	background: rgb(255 255 255 / 0.16);
	box-shadow: none;
}

.tb-servizi-scuri .tb-griglia .tb-card:hover {
	border-color: rgb(255 90 104 / 0.45);
	box-shadow: 0 30px 60px -30px rgb(188 0 19 / 0.7);
}

/* Scheda nera con bordo luminoso che gira. */
@property --tb-angolo {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

.tb-servizi-scuri .tb-card--scura {
	border: 1.5px solid transparent;
	background:
		linear-gradient(135deg, #1d2027, #111317) padding-box,
		conic-gradient(from var(--tb-angolo), rgb(255 255 255 / 0.08) 0 55%, var(--wp--preset--color--rosso-chiaro) 72%, rgb(255 255 255 / 0.08) 88%) border-box;
	animation: tb-gira 6s linear infinite;
}

@keyframes tb-gira {
	to {
		--tb-angolo: 360deg;
	}
}

/* Luce che segue il puntatore su schede e punti di forza. */
.tb-punto {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.tb-card::after,
.tb-punto::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(360px circle at var(--tb-x, 50%) var(--tb-y, 50%), rgb(255 90 104 / 0.18), transparent 60%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.tb-punto::after {
	background: radial-gradient(360px circle at var(--tb-x, 50%) var(--tb-y, 50%), rgb(255 255 255 / 0.2), transparent 60%);
}

.tb-card:hover::after,
.tb-punto:hover::after {
	opacity: 1;
}

.tb-card-modulo::after {
	display: none;
}

.tb-card,
.tb-punto {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
	will-change: transform;
}

/* Perché noi: sezione obliqua che invade quelle vicine. */
.tb-rossa {
	--tb-obliquo: clamp(2rem, 5vw, 5rem);
	z-index: 2;
	margin-block: calc(var(--tb-obliquo) * -1) !important;
	padding-block: calc(var(--wp--preset--spacing--60) + var(--tb-obliquo));
	clip-path: polygon(0 var(--tb-obliquo), 100% 0, 100% calc(100% - var(--tb-obliquo)), 0 100%);
	background-image:
		repeating-linear-gradient(115deg, rgb(255 255 255 / 0.035) 0 2px, transparent 2px 26px),
		radial-gradient(circle at 10% 10%, rgb(255 255 255 / 0.14), transparent 40%),
		linear-gradient(135deg, var(--wp--preset--color--rosso) 0%, var(--wp--preset--color--rosso-scuro) 100%);
}

.tb-sezione:has(+ .tb-rossa) {
	padding-bottom: calc(var(--wp--preset--spacing--60) + clamp(2rem, 5vw, 5rem));
}

.tb-rossa + .tb-sezione {
	padding-top: calc(var(--wp--preset--spacing--50) + clamp(2rem, 5vw, 5rem));
}

.tb-rossa::after {
	animation: tb-fluttua 10s ease-in-out infinite alternate;
}

@keyframes tb-fluttua {
	to {
		transform: translate(-3rem, -2rem) rotate(-6deg);
	}
}

/* Numero di telefono con sottolineatura che si allunga. */
.tb-chiamaci-numero a {
	background: linear-gradient(90deg, var(--wp--preset--color--rosso-chiaro), var(--wp--preset--color--rosso-chiaro)) 0 100% / 0 4px no-repeat;
	transition: color 0.2s ease, background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tb-chiamaci-numero a:hover {
	background-size: 100% 4px;
}

.tb-chiamaci::before {
	animation: tb-respira 7s ease-in-out infinite alternate;
}

@keyframes tb-respira {
	to {
		transform: translateY(-50%) scale(1.25);
		opacity: 0.7;
	}
}

/* Pulsanti principali con riflesso di luce. */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s ease;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::before {
	transform: translateX(120%);
}

/* Contatti: aloni di luce che si muovono lentamente. */
.tb-contatti-sezione::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -15%;
	top: -35%;
	width: 55vmax;
	height: 55vmax;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(255 90 104 / 0.2), transparent 60%);
	animation: tb-aurora 18s ease-in-out infinite alternate;
	pointer-events: none;
}

.tb-contatti-sezione::after {
	animation: tb-aurora2 22s ease-in-out infinite alternate;
}

@keyframes tb-aurora {
	to {
		transform: translate(-22vw, 18vh) scale(1.15);
	}
}

@keyframes tb-aurora2 {
	to {
		transform: translate(18vw, -14vh) scale(1.2);
	}
}

/* Piè di pagina con il nome gigante in filigrana. */
.tb-piede {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-bottom: clamp(5rem, 14vw, 12rem);
}

.tb-piede::after {
	content: "tebibyte";
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: -0.2em;
	transform: translateX(-50%);
	font-size: clamp(5rem, 22vw, 20rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.06em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1.5px rgb(255 90 104 / 0.22);
	pointer-events: none;
}

/* Ingressi legati allo scorrimento, dove il browser li supporta (Chrome, Edge, Safari recenti). */
@supports (animation-timeline: view()) {
	@keyframes tb-entra {
		from {
			opacity: 0;
			translate: 0 56px;
			scale: 0.96;
		}

		to {
			opacity: 1;
			translate: 0 0;
			scale: 1;
		}
	}

	.tb-griglia .tb-card,
	.tb-punto,
	.tb-passo,
	.tb-faq .wp-block-details,
	.tb-citazione p,
	.tb-illustrazione-cruscotto {
		animation: tb-entra linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 28%;
	}

	.tb-servizi-scuri .tb-card--scura {
		animation: tb-gira 6s linear infinite, tb-entra linear both;
		animation-timeline: auto, view();
		animation-range: normal, entry 0% cover 28%;
	}

	/* La linea del metodo si riempie mentre scorri. */
	.tb-passi::after {
		content: "";
		position: absolute;
		top: 1.5rem;
		left: 1.5rem;
		right: 1.5rem;
		height: 2px;
		background: var(--wp--preset--color--rosso);
		box-shadow: 0 0 10px rgb(255 90 104 / 0.8);
		transform-origin: left;
		animation: tb-riempi linear both;
		animation-timeline: view();
		animation-range: entry 60% cover 60%;
	}

	@keyframes tb-riempi {
		from {
			transform: scaleX(0);
		}

		to {
			transform: scaleX(1);
		}
	}

	@media (max-width: 781px) {
		.tb-passi::after {
			top: 0.5rem;
			bottom: 0.5rem;
			left: 1.45rem;
			right: auto;
			width: 2px;
			height: auto;
			transform-origin: top;
			animation-name: tb-riempi-verticale;
		}

		@keyframes tb-riempi-verticale {
			from {
				transform: scaleY(0);
			}

			to {
				transform: scaleY(1);
			}
		}
	}
}

/* =========================================================================
 * Versione 5 – parte dalla v4 e aggiunge profondità 3D reale ed eleganza:
 * scena a più piani nell'apertura, illustrazione in prospettiva, grana
 * sulle superfici scure, tipografia e dettagli più curati.
 * ====================================================================== */

/* Tipografia più raffinata: meno peso, più tensione. */
.tb-hero h1 {
	font-weight: 700;
	letter-spacing: -0.05em;
}

main .tb-sezione h2 {
	font-weight: 700;
	letter-spacing: -0.04em;
}

/* Etichette sottili, solo contorno. */
.tb-etichetta,
.tb-hero .tb-etichetta,
.tb-scura .tb-etichetta,
.tb-chiamaci .tb-etichetta,
.tb-rossa .tb-etichetta {
	padding: 0.3rem 0.8rem;
	background: transparent;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 40%, transparent);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
}

.tb-etichetta::before {
	width: 0.35rem;
	height: 0.35rem;
	box-shadow: 0 0 10px currentColor;
}

/* Pulsanti con luce interna, ombra più morbida. */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 10px 24px -14px rgb(188 0 19 / 0.8);
}

/* Intestazione più leggera sopra l'apertura scura. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.tb-testata {
		background-color: rgb(11 12 15 / 0.62);
	}
}

/* Apertura a tutto schermo, con grana fine sulla luce. */
.tb-hero {
	min-height: min(100svh, 920px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tb-hero > * {
	width: 100%;
}

.tb-hero::after {
	background:
		radial-gradient(700px circle at var(--tb-mx, 72%) var(--tb-my, 35%), rgb(188 0 19 / 0.38), transparent 62%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tb-hero-colonne {
	gap: clamp(2rem, 4vw, 4rem);
}

/* ---------- Scena 3D a più piani ---------- */

/* La colonna della scena contiene solo elementi posizionati: le diamo sempre tutta la larghezza disponibile. */
.tb-hero-scena {
	width: 100%;
	align-self: stretch;
}

.tb-scena {
	width: 100%;
}


.tb-scena {
	position: relative;
	height: clamp(400px, 40vw, 580px);
	perspective: 1800px;
	perspective-origin: 50% 35%;
}

.tb-scena-mondo {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transform: rotateX(calc(9deg - var(--tb-py, 0) * 12deg)) rotateY(calc(-17deg + var(--tb-px, 0) * 20deg));
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tb-scena-livello {
	position: absolute;
	transform-style: preserve-3d;
}

/* Pavimento a griglia che scorre verso chi guarda. */
.tb-scena-pavimento {
	position: absolute;
	left: -35%;
	right: -35%;
	bottom: -6%;
	height: 90%;
	overflow: hidden;
	transform: translateZ(-160px) rotateX(84deg);
	transform-origin: 50% 100%;
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 20%, transparent 75%);
}

.tb-scena-pavimento::before {
	content: "";
	position: absolute;
	inset: -60px 0 0;
	background-image:
		linear-gradient(rgb(255 90 104 / 0.55) 1.5px, transparent 1.5px),
		linear-gradient(90deg, rgb(255 90 104 / 0.35) 1.5px, transparent 1.5px);
	background-size: 60px 60px;
	animation: tb-pavimento 3s linear infinite;
}

@keyframes tb-pavimento {
	to {
		transform: translateY(60px);
	}
}

/* Piani: dal più lontano al più vicino. */
.tb-scena-cruscotto {
	top: 0;
	right: -6%;
	width: 74%;
	transform: translateZ(-150px);
}

.tb-scena-cruscotto img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 50px 60px rgb(0 0 0 / 0.6));
}

.tb-scena-server {
	top: 12%;
	left: -8%;
	width: 34%;
	padding: 0.5rem;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 18px;
	background: rgb(18 20 24 / 0.8);
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8);
	transform: translateZ(-30px);
}

.tb-scena-server img {
	display: block;
	width: 100%;
	height: auto;
}

.tb-scena-terminale {
	left: 2%;
	right: 12%;
	bottom: 4%;
	transform: translateZ(100px);
}

.tb-scena-notifica {
	top: 3%;
	right: 4%;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 1rem 0.7rem 0.75rem;
	border-radius: 14px;
	background: rgb(255 255 255 / 0.94);
	box-shadow: 0 24px 50px -16px rgb(0 0 0 / 0.7);
	font-size: 0.78rem;
	line-height: 1.3;
	color: var(--wp--preset--color--testo);
	transform: translateZ(180px);
}

.tb-scena-notifica strong {
	font-weight: 700;
	color: var(--wp--preset--color--nero);
}

.tb-scena-spunta {
	flex: none;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: #22A35A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* Il terminale vive nella scena: niente inclinazione propria. */
.tb-hero .tb-scena .tb-terminale,
.tb-hero .tb-scena .tb-terminale:hover {
	transform: none;
	animation: none;
}

/* Ingresso dei piani uno dopo l'altro, poi fluttuano a ritmi diversi. */
@keyframes tb-appare {
	from {
		opacity: 0;
		scale: 0.9;
	}

	to {
		opacity: 1;
		scale: 1;
	}
}

@keyframes tb-galleggia {
	0%,
	100% {
		translate: 0 0;
	}

	50% {
		translate: 0 -12px;
	}
}

.tb-scena-cruscotto {
	animation: tb-appare 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both, tb-galleggia 9s 1.2s ease-in-out infinite;
}

.tb-scena-server {
	animation: tb-appare 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both, tb-galleggia 7s 1.4s ease-in-out infinite;
}

.tb-scena-terminale {
	animation: tb-appare 1s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both, tb-galleggia 8s 1.6s ease-in-out infinite;
}

.tb-scena-notifica {
	animation: tb-appare 0.8s 1.4s cubic-bezier(0.3, 1.4, 0.5, 1) both, tb-galleggia 6s 2.2s ease-in-out infinite;
}

@media (max-width: 781px) {
	.tb-scena {
		height: 440px;
		margin-top: 1rem;
	}

	.tb-scena-mondo {
		transform: rotateX(8deg) rotateY(-6deg);
	}

	.tb-scena-server {
		display: none;
	}

	.tb-scena-cruscotto {
		right: -4%;
		width: 88%;
	}

	.tb-scena-terminale {
		left: 3%;
		right: 5%;
		bottom: 0;
	}

	.tb-scena-notifica {
		top: 0;
		right: 0;
		font-size: 0.72rem;
	}
}

/* Le parti in prospettiva non devono allargare la pagina (clip non blocca gli elementi "sticky"). */
main .tb-sezione {
	overflow-x: clip;
}

/* Chi siamo: l'illustrazione è uno schermo in prospettiva che si raddrizza. */
.tb-illustrazione-prospettiva {
	perspective: 1400px;
}

.tb-illustrazione-prospettiva img {
	aspect-ratio: 572 / 440;
	padding: 5%;
	border-radius: 24px;
	background: linear-gradient(135deg, #16181D, #23262D);
	box-shadow: 0 50px 80px -40px rgb(22 24 29 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.08);
	transform: rotateX(14deg) rotateY(-16deg);
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tb-illustrazione-prospettiva:hover img {
	transform: none;
}

/* Grana fine anche sulle superfici scure dei servizi e del piè di pagina. */
.tb-servizi-scuri {
	background-image:
		radial-gradient(900px circle at 85% 0%, rgb(188 0 19 / 0.24), transparent 60%),
		radial-gradient(700px circle at 0% 100%, rgb(188 0 19 / 0.1), transparent 60%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Schede: inclinazione più contenuta, bordo che si accende. */
.tb-servizi-scuri .tb-griglia .tb-card:hover {
	border-color: rgb(255 90 104 / 0.35);
}

@supports (animation-timeline: view()) {
	@keyframes tb-raddrizza {
		from {
			transform: rotateX(28deg) rotateY(-22deg) scale(0.9);
		}

		to {
			transform: rotateX(0deg) rotateY(0deg) scale(1);
		}
	}

	.tb-illustrazione-prospettiva img {
		animation: tb-raddrizza linear both;
		animation-timeline: view();
		animation-range: entry 10% cover 55%;
	}

	@keyframes tb-scena-esce {
		to {
			opacity: 0.35;
			scale: 0.9;
			translate: 0 -40px;
		}
	}

	.tb-scena {
		animation: tb-scena-esce linear both;
		animation-timeline: view();
		animation-range: exit 0% exit 90%;
	}
}

/* =========================================================================
 * Versione 6 – colori omogenei: tutte le sezioni sono scure e sfumano
 * dal nero verso il rosso del logo (#BC0013), con lo stesso fondo di base.
 * ====================================================================== */

:root {
	--tb-fondo: #0F1013;
	--tb-fondo-2: #15161A;
	--tb-rosso-velato: rgb(188 0 19 / 0.22);
	--tb-linea-scura: rgb(255 255 255 / 0.12);
}

/* Sfumature di ogni sezione: tutte partono e finiscono sul fondo comune,
   così i passaggi tra una sezione e l'altra sono continui. */
.tb-hero.has-notte-gradient-background {
	background:
		radial-gradient(ellipse 70% 60% at 85% 15%, rgb(188 0 19 / 0.32), transparent 65%),
		linear-gradient(180deg, var(--tb-fondo-2) 0%, var(--tb-fondo) 100%) !important;
}

.tb-chi-siamo-sezione.has-nero-background-color {
	background:
		radial-gradient(ellipse 55% 50% at 0% 25%, var(--tb-rosso-velato), transparent 70%),
		radial-gradient(ellipse 45% 40% at 100% 90%, rgb(188 0 19 / 0.12), transparent 70%),
		var(--tb-fondo) !important;
}

.tb-servizi-scuri {
	background-image:
		radial-gradient(ellipse 60% 45% at 100% 0%, var(--tb-rosso-velato), transparent 70%),
		radial-gradient(ellipse 50% 40% at 0% 100%, rgb(188 0 19 / 0.1), transparent 70%),
		linear-gradient(var(--tb-fondo), var(--tb-fondo));
}

/* "Perché noi": rosso del logo, ma scurito verso il nero. */
.tb-rossa {
	background-image:
		repeating-linear-gradient(115deg, rgb(255 255 255 / 0.025) 0 2px, transparent 2px 26px),
		radial-gradient(ellipse 60% 70% at 15% 20%, rgb(188 0 19 / 0.55), transparent 70%),
		linear-gradient(135deg, #3A0610 0%, #200A0D 55%, var(--tb-fondo) 100%);
}

.tb-chiamaci.has-nero-background-color {
	background:
		radial-gradient(ellipse 40% 120% at 0% 50%, rgb(188 0 19 / 0.4), transparent 70%),
		linear-gradient(90deg, #1A0B0E 0%, var(--tb-fondo) 70%) !important;
}

.tb-chiamaci::before {
	display: none;
}

.tb-faq-sezione.has-nero-background-color {
	background:
		radial-gradient(ellipse 50% 60% at 100% 40%, var(--tb-rosso-velato), transparent 70%),
		var(--tb-fondo) !important;
}

.tb-contatti-sezione.has-notte-gradient-background {
	background:
		radial-gradient(ellipse 60% 55% at 0% 100%, rgb(188 0 19 / 0.3), transparent 70%),
		linear-gradient(180deg, var(--tb-fondo) 0%, #140B0D 100%) !important;
}

.tb-contatti-sezione::after {
	display: none;
}

.tb-piede.has-nero-background-color {
	background:
		radial-gradient(ellipse 50% 80% at 50% 0%, rgb(188 0 19 / 0.14), transparent 70%),
		linear-gradient(180deg, #140B0D 0%, #0B0B0D 100%) !important;
	border-top: 1px solid rgb(188 0 19 / 0.35);
}

/* Testi e titoli chiari in tutte le sezioni scure. */
.tb-scura h2,
.tb-scura h3 {
	color: var(--wp--preset--color--bianco);
}

.tb-scura p {
	color: rgb(255 255 255 / 0.78);
}

.tb-scura .tb-etichetta {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-scura .is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--bianco);
	border-color: rgb(255 255 255 / 0.4);
}

.tb-scura .is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--rosso);
	border-color: var(--wp--preset--color--rosso);
}

/* Chi siamo su fondo scuro. */
.tb-chi-siamo-sezione .has-large-font-size {
	color: var(--wp--preset--color--bianco);
}

.tb-chi-siamo-sezione .tb-citazione {
	border-block-color: var(--tb-linea-scura);
}

.tb-chi-siamo-sezione .tb-citazione::before {
	background: var(--tb-fondo);
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-chi-siamo-sezione .tb-citazione p {
	color: var(--wp--preset--color--bianco);
}

.tb-chi-siamo-sezione .tb-citazione strong {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-chi-siamo-sezione .tb-passi::before {
	background: linear-gradient(90deg, var(--wp--preset--color--rosso), var(--tb-linea-scura));
}

.tb-chi-siamo-sezione .tb-numero {
	background: var(--tb-fondo);
	border-color: var(--wp--preset--color--rosso);
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-chi-siamo-sezione .tb-passo:hover .tb-numero {
	background: var(--wp--preset--color--rosso);
	color: var(--wp--preset--color--bianco);
}

@media (max-width: 781px) {
	.tb-chi-siamo-sezione .tb-passi::before {
		background: linear-gradient(180deg, var(--wp--preset--color--rosso), var(--tb-linea-scura));
	}
}

.tb-chi-siamo-sezione .tb-illustrazione-prospettiva img {
	background: linear-gradient(135deg, #1A1B20, #24161A);
	box-shadow: 0 50px 80px -40px rgb(0 0 0 / 0.8), 0 0 0 1px var(--tb-linea-scura);
}

/* FAQ su fondo scuro. */
.tb-faq-sezione .tb-faq .wp-block-details {
	border-color: var(--tb-linea-scura);
	background: rgb(255 255 255 / 0.03);
}

.tb-faq-sezione .tb-faq .wp-block-details:hover {
	border-color: rgb(255 255 255 / 0.22);
}

.tb-faq-sezione .tb-faq .wp-block-details[open] {
	border-color: var(--wp--preset--color--rosso);
	box-shadow: 0 16px 40px -24px rgb(188 0 19 / 0.7);
}

.tb-faq-sezione .tb-faq summary {
	color: var(--wp--preset--color--bianco);
}

.tb-faq-sezione .tb-faq summary:hover {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-faq-sezione .tb-faq summary::after {
	background: rgb(255 255 255 / 0.08);
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-faq-sezione .tb-faq a {
	color: var(--wp--preset--color--rosso-chiaro);
}

/* Modulo contatti in vetro scuro, come le schede dei servizi. */
.tb-card-modulo {
	border: 1px solid var(--tb-linea-scura);
	background: rgb(255 255 255 / 0.04);
	color: rgb(255 255 255 / 0.78);
	box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8);
}

.tb-card-modulo .tb-campo label {
	color: var(--wp--preset--color--bianco);
}

.tb-card-modulo .tb-campo input[type="text"],
.tb-card-modulo .tb-campo input[type="email"],
.tb-card-modulo .tb-campo input[type="tel"],
.tb-card-modulo .tb-campo textarea {
	background: rgb(255 255 255 / 0.06);
	border-color: rgb(255 255 255 / 0.08);
	color: var(--wp--preset--color--bianco);
}

.tb-card-modulo .tb-campo input:hover,
.tb-card-modulo .tb-campo textarea:hover {
	border-color: rgb(255 255 255 / 0.2);
}

.tb-card-modulo .tb-campo input:focus,
.tb-card-modulo .tb-campo textarea:focus {
	background: rgb(255 255 255 / 0.09);
	border-color: var(--wp--preset--color--rosso-chiaro);
	box-shadow: 0 0 0 4px rgb(188 0 19 / 0.25);
}

.tb-card-modulo .tb-campo--spunta label,
.tb-card-modulo .tb-modulo-nota {
	color: rgb(255 255 255 / 0.65);
}

.tb-card-modulo a {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-card-modulo .tb-modulo-avviso--successo {
	background: rgb(34 163 90 / 0.15);
	border-color: rgb(34 163 90 / 0.4);
	color: #9BE7B8;
}

.tb-card-modulo .tb-modulo-avviso--errore {
	background: rgb(188 0 19 / 0.15);
	border-color: rgb(188 0 19 / 0.45);
	color: #FFB3BA;
}

/* =========================================================================
 * Versione 7 – meno effetti, più autorevolezza. Restano tre elementi
 * caratteristici: scena 3D dell'apertura, sezione rossa obliqua, terminale.
 * ====================================================================== */

/* Niente riflesso che scorre sul titolo: colore pieno. */
.tb-hero h1 mark.has-inline-color {
	background: none;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	color: var(--wp--preset--color--rosso-chiaro) !important;
	animation: none;
}

/* Luce dell'apertura ferma. */
.tb-hero::after {
	background: radial-gradient(700px circle at 72% 30%, rgb(188 0 19 / 0.32), transparent 62%);
}

/* Pulsanti senza riflesso di luce né freccia animata. */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::before {
	display: none;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::after {
	transform: none;
}

/* Schede senza luce sotto il puntatore e senza inclinazione. */
.tb-card::after,
.tb-punto::after {
	display: none;
}

.tb-griglia .tb-card:hover,
.tb-punto:hover {
	transform: none;
}

.tb-card,
.tb-punto {
	will-change: auto;
}

/* Icone e numeri fermi al passaggio del mouse. */
.tb-card:hover .tb-icona {
	transform: none;
}

/* Elementi decorativi fermi. */
.tb-rossa::after,
.tb-chiamaci::before,
.tb-contatti-sezione::before {
	animation: none;
}

/* ---------- Pagine dei servizi ---------- */

.tb-hero-pagina {
	padding-block: calc(var(--wp--preset--spacing--70) * 0.8) var(--wp--preset--spacing--60);
}

.tb-hero-pagina h1 {
	max-width: 22ch;
	margin-block: 1rem 1.25rem;
	font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.045em;
	color: var(--wp--preset--color--bianco);
}

.tb-hero-pagina .tb-hero-testo {
	max-width: 42rem;
}

.tb-percorso {
	margin: 0;
	font-size: 0.85rem;
	color: rgb(255 255 255 / 0.6);
}

.tb-percorso a {
	color: rgb(255 255 255 / 0.8);
	text-decoration: none;
}

.tb-percorso a:hover {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-dettagli {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.tb-dettagli > * {
	margin: 0 !important;
}

.tb-dettaglio {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--tb-linea-scura);
	border-radius: var(--tb-raggio);
	background: rgb(255 255 255 / 0.04);
}

.tb-dettaglio > * {
	margin-block: 0;
}

.tb-dettaglio > * + * {
	margin-block-start: 0.75rem;
}

.tb-dettaglio .tb-icona {
	background: var(--wp--preset--color--rosso);
}

.tb-dettaglio .tb-icona img {
	filter: brightness(0) invert(1);
}

.tb-dettaglio ul {
	margin: 0.75rem 0 0;
	padding-left: 1.1rem;
	color: rgb(255 255 255 / 0.78);
}

.tb-dettaglio li + li {
	margin-top: 0.35rem;
}

.tb-dettaglio:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

@media (max-width: 781px) {
	.tb-dettagli {
		grid-template-columns: 1fr;
	}
}

/* Collegamenti alle altre aree, in fondo alla sezione servizi e alle pagine. */
.tb-aree {
	gap: 0.75rem;
	margin-top: var(--wp--preset--spacing--50) !important;
}

/* ---------- Ultime guide in home ---------- */

.tb-guide .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-guide .wp-block-post {
	margin: 0;
	padding: 1.75rem;
	border: 1px solid var(--tb-linea-scura);
	border-radius: var(--tb-raggio);
	background: rgb(255 255 255 / 0.04);
	transition: border-color 0.25s ease;
}

.tb-guide .wp-block-post:hover {
	border-color: rgb(255 90 104 / 0.45);
}

.tb-guide .wp-block-post-title {
	margin: 0.5rem 0 0.75rem;
	font-size: var(--wp--preset--font-size--large);
}

.tb-guide .wp-block-post-title a {
	color: var(--wp--preset--color--bianco);
	text-decoration: none;
}

.tb-guide .wp-block-post-title a:hover {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-guide .wp-block-post-date {
	font-size: 0.8rem;
	color: rgb(255 255 255 / 0.55);
}

.tb-guide .wp-block-post-excerpt p {
	margin: 0;
	font-size: 0.95rem;
}

.tb-guide .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.75rem;
	color: var(--wp--preset--color--rosso-chiaro);
}

@media (max-width: 900px) {
	.tb-guide .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tb-guide .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

/* ---------- Guide e archivio delle guide: stessa veste scura del sito ---------- */

/* Apertura: data della guida sotto il sommario. */
.tb-hero-pagina .tb-data {
	margin-top: 1.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.55);
}

.tb-hero-pagina .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.tb-articolo {
	padding-top: var(--wp--preset--spacing--50);
}

/* Testo della guida: colonna di lettura stretta, chiaro su scuro. */
.tb-articolo .wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: rgb(255 255 255 / 0.8);
}

.tb-articolo .wp-block-post-content p,
.tb-articolo .wp-block-post-content li {
	color: rgb(255 255 255 / 0.8);
}

.tb-articolo .wp-block-post-content strong {
	color: var(--wp--preset--color--bianco);
}

.tb-articolo .wp-block-post-content h2 {
	margin-top: 2.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--bianco);
}

.tb-articolo .wp-block-post-content ul,
.tb-articolo .wp-block-post-content ol {
	padding-left: 1.25rem;
}

.tb-articolo .wp-block-post-content li + li {
	margin-top: 0.5rem;
}

.tb-articolo .wp-block-post-content li::marker {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-articolo .wp-block-post-featured-image img {
	border-radius: var(--tb-raggio);
}

/* Pagine semplici (Privacy, Cookie Policy…): percorso con il titolo della pagina. */
.tb-percorso.is-layout-flex,
.tb-percorso.wp-block-group {
	gap: 0.35em;
}

.tb-percorso > * {
	margin: 0 !important;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
	color: inherit;
}

.tb-pagina .tb-hero-pagina {
	padding-bottom: var(--wp--preset--spacing--50);
}

/* Tabelle su fondo scuro (per esempio i cookie della Cookie Policy). */
.tb-articolo .wp-block-table {
	overflow-x: auto;
}

.tb-articolo .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.tb-articolo .wp-block-table th,
.tb-articolo .wp-block-table td {
	padding: 0.65rem 0.8rem;
	border: 1px solid rgb(255 255 255 / 0.12);
	text-align: left;
	vertical-align: top;
	color: rgb(255 255 255 / 0.8);
}

.tb-articolo .wp-block-table th {
	background: rgb(255 255 255 / 0.06);
	color: var(--wp--preset--color--bianco);
}

.tb-articolo .wp-block-table td:first-child {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	white-space: nowrap;
}

.tb-articolo .tb-data {
	margin-top: var(--wp--preset--spacing--50);
	color: rgb(255 255 255 / 0.55);
}

/* Guida precedente e successiva. */
.tb-navigazione-guide {
	gap: 1rem 2rem;
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
	font-size: 0.95rem;
}

.tb-navigazione-guide a {
	color: var(--wp--preset--color--bianco);
	text-decoration: none;
}

.tb-navigazione-guide a:hover {
	color: var(--wp--preset--color--rosso-chiaro);
}

.tb-navigazione-guide .post-navigation-link-next {
	margin-left: auto;
	text-align: right;
}

/* Archivio: titoli delle schede in h2, stessa misura della home. */
.tb-archivio .tb-guide .wp-block-post-title {
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.tb-archivio .wp-block-query-pagination {
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--50);
}

.tb-archivio .wp-block-query-pagination a,
.tb-archivio .wp-block-query-pagination .current {
	padding: 0.35rem 0.75rem;
	border: 1px solid rgb(255 255 255 / 0.15);
	border-radius: 999px;
	color: var(--wp--preset--color--bianco);
	text-decoration: none;
}

.tb-archivio .wp-block-query-pagination .current {
	border-color: var(--wp--preset--color--rosso);
	background: var(--wp--preset--color--rosso);
}

.tb-invito-articolo {
	margin-top: var(--wp--preset--spacing--50) !important;
	box-sizing: border-box;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--tb-raggio);
	border: 1px solid rgb(188 0 19 / 0.35);
	background:
		radial-gradient(ellipse 60% 120% at 0% 50%, rgb(188 0 19 / 0.45), transparent 70%),
		var(--tb-fondo);
}

.tb-invito-articolo h2.wp-block-heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--bianco);
}

.tb-invito-articolo p {
	color: rgb(255 255 255 / 0.78);
}

/* Sottomenu "Servizi" nell'intestazione scura. */
.tb-menu .wp-block-navigation__submenu-container {
	min-width: 15rem !important;
	padding: 0.5rem !important;
	border: 1px solid var(--tb-linea-scura) !important;
	border-radius: 12px;
	background: #15161A !important;
	box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.8);
}

.tb-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 0.75rem !important;
	border-radius: 8px;
	color: rgb(255 255 255 / 0.85);
}

.tb-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: rgb(255 255 255 / 0.06);
	color: var(--wp--preset--color--bianco);
}

.tb-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

/* Nelle sezioni scure i link diventano rosso chiaro: i pulsanti pieni restano bianchi. */
.tb-scura .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.tb-invito-articolo .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	color: var(--wp--preset--color--bianco);
}

/* ---------- Servizi in home: tre aree, ognuna collegata alla sua pagina ---------- */

.tb-aree-griglia {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.tb-aree-griglia > .tb-area {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.tb-area-illustrazione {
	width: 100%;
	max-width: 280px;
	margin: 0 auto 0.75rem !important;
}

.tb-area-illustrazione img {
	width: 100%;
	height: auto;
	aspect-ratio: 320 / 260;
}

.tb-area h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

.tb-area h3 a {
	color: inherit;
	text-decoration: none;
}

.tb-area h3 a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

/* Elenco dei servizi compresi nell'area. */
.tb-area-servizi {
	margin-block-start: 1rem !important;
	padding: 1rem 0 0;
	list-style: none;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	font-size: 0.975rem;
}

.tb-area-servizi li {
	position: relative;
	padding-left: 1.4rem;
}

.tb-area-servizi li + li {
	margin-top: 0.4rem;
}

.tb-area-servizi li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0.15rem;
	width: 0.55rem;
	height: 0.3rem;
	border-left: 2px solid var(--wp--preset--color--rosso-chiaro);
	border-bottom: 2px solid var(--wp--preset--color--rosso-chiaro);
	transform: rotate(-45deg);
}

.tb-card--rossa .tb-area-servizi {
	border-top-color: rgb(255 255 255 / 0.25);
}

.tb-card--rossa .tb-area-servizi li::before {
	border-color: var(--wp--preset--color--bianco);
}

/* Il pulsante resta in fondo alla scheda, allineato fra le tre aree. */
.tb-area-pulsante {
	margin-top: auto !important;
	padding-top: 1.5rem;
}

.tb-card--rossa .is-style-outline > .wp-block-button__link {
	border-color: rgb(255 255 255 / 0.6);
}

.tb-card--rossa .is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--bianco);
	border-color: var(--wp--preset--color--bianco);
	color: var(--wp--preset--color--rosso-scuro);
}

@media (max-width: 1000px) {
	.tb-aree-griglia {
		grid-template-columns: 1fr;
	}

	/* Su tablet: illustrazione a destra del testo. */
	.tb-aree-griglia > .tb-area {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
		column-gap: 1.5rem;
	}

	.tb-aree-griglia > .tb-area > * {
		grid-column: 1;
	}

	.tb-aree-griglia > .tb-area > .tb-area-illustrazione {
		grid-column: 2;
		grid-row: 1 / span 6;
		align-self: center;
		margin: 0 !important;
	}
}

@media (max-width: 640px) {
	.tb-aree-griglia > .tb-area {
		display: flex;
	}

	.tb-aree-griglia > .tb-area > .tb-area-illustrazione {
		max-width: 240px;
		margin: 0 auto 0.75rem !important;
	}
}

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation: none !important;
	}

	.tb-griglia .tb-card:hover,
	.tb-punto:hover,
	.tb-terminale,
	.tb-terminale:hover,
	.tb-card,
	.tb-punto,
	.tb-illustrazione-apertura img {
		transform: none !important;
	}

	.tb-card::after,
	.tb-punto::after {
		display: none;
	}
}

/* ---------- Stampa ---------- */

@media print {
	.tb-testata-parte,
	.tb-barra-mobile,
	.tb-modulo,
	.tb-terminale,
	.tb-scena,
	.tb-illustrazione,
	.tb-progresso,
	.tb-piede::after,
	.tb-hero::before,
	.tb-hero::after,
	.tb-rossa::after {
		display: none !important;
	}

	.tb-hero,
	.tb-scura,
	.tb-rossa,
	.tb-chiamaci,
	.tb-piede,
	.tb-card--scura,
	.tb-card--rossa {
		background: none !important;
		color: #000 !important;
	}

	.tb-hero h1,
	.tb-scura h2,
	.tb-rossa h2,
	.tb-rossa h3,
	.tb-card h3 {
		color: #000 !important;
	}
}
