/*
Theme Name: TSB Trasporti
Theme URI: https://www.tsbtrasporti.it
Author: Alessandro Vecchiato
Description: Tema a blocchi su misura per TSB Trasporti — consegne dedicate e urgenti. Solo Gutenberg e funzionalità native di WordPress.
Version: 1.4.2
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsb
*/

/* ---------------------------------------------------------------
 * Base
 * ------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Anchor targets clear the sticky header */
:where(.wp-site-blocks) [id] { scroll-margin-top: 110px; }

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

/* Italic accent inside headings → speed accent in brand red */
:where(h1, h2, h3, .wp-block-heading) em {
	font-style: italic;
	color: var(--wp--preset--color--primary);
}
.has-primary-background-color :where(h1, h2, h3) em,
.has-primary-dark-background-color :where(h1, h2, h3) em { color: var(--wp--preset--color--ink); }

a[href^="tel:"] { white-space: nowrap; }

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part { top: 0; }
}
.tsb-header__bar {
	box-shadow: 0 1px 0 var(--wp--preset--color--line), 0 6px 18px rgba(18, 19, 20, 0.06);
}
.tsb-header__logo img { width: auto; max-height: 58px; }
@media (max-width: 781px) {
	.tsb-header__logo img { max-height: 46px; }
	.tsb-topbar .tsb-topbar__mail { display: none; }
}
.tsb-topbar a { color: inherit; text-decoration: none; }
.tsb-topbar a:hover { text-decoration: underline; }

/* pulsing "live" dot = available now */
.tsb-live::before {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	margin-right: 0.55em;
	border-radius: 50%;
	background: #2ecc71;
	box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
	animation: tsb-pulse 1.8s infinite;
	vertical-align: 0.08em;
}
@keyframes tsb-pulse {
	0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
	70% { box-shadow: 0 0 0 0.6em rgba(46, 204, 113, 0); }
	100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
@media (prefers-reduced-motion: reduce) { .tsb-live::before { animation: none; } }

/* Mobile nav overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
	font-size: 2rem;
}

/* ---------------------------------------------------------------
 * Block style: "Linee di velocità" (group/cover)
 * The striped motif from the logo, drawn bottom-right.
 * ------------------------------------------------------------- */
.is-style-tsb-speed { position: relative; overflow: hidden; }
.is-style-tsb-speed::before {
	content: "";
	position: absolute;
	right: -4%;
	bottom: 8%;
	width: min(46vw, 560px);
	height: 120px;
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 100% 14px no-repeat,
		linear-gradient(currentColor, currentColor) 18% 35px / 82% 14px no-repeat,
		linear-gradient(currentColor, currentColor) 36% 70px / 64% 14px no-repeat,
		linear-gradient(currentColor, currentColor) 54% 105px / 46% 14px no-repeat;
	opacity: 0.08;
	transform: skewX(-20deg);
	pointer-events: none;
}
.is-style-tsb-speed > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------
 * Block style: "Kicker" (heading) – small label with speed lines
 * ------------------------------------------------------------- */
.is-style-tsb-kicker {
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--small) !important;
	letter-spacing: 0.16em !important;
	font-weight: 700 !important;
	color: var(--wp--preset--color--primary);
}
.is-style-tsb-kicker::before {
	content: "";
	flex: 0 0 auto;
	width: 34px;
	height: 12px;
	background:
		linear-gradient(currentColor, currentColor) 0 0 / 100% 3px no-repeat,
		linear-gradient(currentColor, currentColor) 8px 50% / 26px 3px no-repeat,
		linear-gradient(currentColor, currentColor) 16px 100% / 18px 3px no-repeat;
	transform: skewX(-20deg);
}
.has-text-align-center.is-style-tsb-kicker { justify-content: center; }
.has-primary-background-color .is-style-tsb-kicker,
.has-ink-background-color .is-style-tsb-kicker,
.has-asphalt-background-color .is-style-tsb-kicker { color: inherit; }
.has-ink-background-color .is-style-tsb-kicker,
.has-asphalt-background-color .is-style-tsb-kicker { color: var(--wp--preset--color--primary); }

/* ---------------------------------------------------------------
 * Block style: "Card" (group) – white card, red top bar
 * ------------------------------------------------------------- */
.is-style-tsb-card {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border-top: 4px solid var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}
.is-style-tsb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(18,19,20,0.08), 0 16px 36px rgba(18,19,20,0.12);
}
@media (prefers-reduced-motion: reduce) { .is-style-tsb-card, .is-style-tsb-card:hover { transition: none; transform: none; } }
.wp-block-columns > .wp-block-column > .is-style-tsb-card { height: 100%; }

/* Card-like columns stretch equally */
.tsb-equal > .wp-block-column { display: flex; flex-direction: column; }
.tsb-equal > .wp-block-column > * { flex: 1 1 auto; }

/* Icons */
.tsb-icon img { width: 56px; height: 56px; }

/* ---------------------------------------------------------------
 * Block style: "Bianco contorno" (button) – for dark/red backgrounds
 * ------------------------------------------------------------- */
.wp-block-button.is-style-tsb-light .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-tsb-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary-dark);
	border-color: currentColor;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary);
}
/* dark button on red bands */
.wp-block-button.is-style-tsb-dark .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-tsb-dark .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

/* WhatsApp button (green, white label + icon) */
.wp-block-button.is-style-tsb-whatsapp .wp-block-button__link {
	background: #1A9E4B;
	border-color: #1A9E4B;
	color: #FFFFFF;
}
.wp-block-button.is-style-tsb-whatsapp .wp-block-button__link:hover {
	background: #138A43;
	border-color: #138A43;
	color: #FFFFFF;
}
.wp-block-button.is-style-tsb-whatsapp .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	margin-right: 0.5em;
	vertical-align: -0.18em;
	background: currentColor;
	-webkit-mask: url("assets/icons/whatsapp.svg") center / contain no-repeat;
	mask: url("assets/icons/whatsapp.svg") center / contain no-repeat;
}

/* Phone button: small icon before the label */
.tsb-btn-phone .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.5em;
	vertical-align: -0.12em;
	background: currentColor;
	-webkit-mask: url("assets/icons/phone.svg") center / contain no-repeat;
	mask: url("assets/icons/phone.svg") center / contain no-repeat;
}

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */
.tsb-hero .wp-block-cover__image-background { object-position: 60% 60%; }
.tsb-hero h1 { text-wrap: balance; }
.tsb-badges { gap: 0.5rem 1.5rem !important; }
.tsb-badges p {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 1.05rem;
}
.tsb-badges p::before {
	content: "";
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-right: 0.45em;
	vertical-align: -0.1em;
	background: var(--wp--preset--color--primary);
	-webkit-mask: url("assets/icons/check.svg") center / contain no-repeat;
	mask: url("assets/icons/check.svg") center / contain no-repeat;
}

/* ---------------------------------------------------------------
 * Values (Velocità / Precisione / Affidabilità)
 * ------------------------------------------------------------- */
.tsb-values > .wp-block-column {
	border-left: 3px solid rgba(255, 255, 255, 0.55);
	padding-left: 1.25rem;
}
.tsb-values p { margin: 0; }

/* ---------------------------------------------------------------
 * Fleet spec lines
 * ------------------------------------------------------------- */
.tsb-spec {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--primary-dark);
}

/* Mission steps numbers */
.tsb-step-num {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.tsb-footer a { color: inherit; text-decoration: none; }
.tsb-footer a:hover { color: var(--wp--preset--color--white); text-decoration: underline; }
.tsb-footer .tsb-footer__phone a { color: var(--wp--preset--color--white); }
.tsb-footer__logo img { max-height: 70px; width: auto; }
.tsb-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
/* 4 footer columns → 2×2 grid on tablets */
@media (min-width: 782px) and (max-width: 1100px) {
	.tsb-footer .wp-block-columns { flex-wrap: wrap !important; }
	.tsb-footer .wp-block-columns > .wp-block-column { flex: 0 0 calc(50% - var(--wp--preset--spacing--40)) !important; }
}

/* ---------------------------------------------------------------
 * Forms (comment/search/any plugin form) – baseline
 * ------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="search"], select, textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.7rem 0.85rem;
	font: inherit;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	border: 1px solid #c9c9c6;
	border-radius: 2px;
}
input:focus, select:focus, textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--primary);
}
input[type="submit"], button[type="submit"] {
	cursor: pointer;
	padding: 0.85rem 1.8rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 2px;
}
input[type="submit"]:hover, button[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }
label { font-weight: 600; }

/* Hero overlay: directional gradient for readability (keeps the editor overlay as fallback) */
.tsb-hero .wp-block-cover__background.has-ink-background-color {
	background: linear-gradient(100deg, rgba(18,19,20,0.94) 0%, rgba(18,19,20,0.78) 45%, rgba(18,19,20,0.3) 100%) !important;
	opacity: 1 !important;
}

/* ---------------------------------------------------------------
 * Ninja Forms – "Richiesta preventivo" (.nf-form-cont)
 * Layout via field "Container" classes: tsb-half, tsb-wide, tsb-narrow, tsb-quarter
 * ------------------------------------------------------------- */
.nf-form-cont { --tsb-gap: 1.25rem; }
.nf-form-cont .nf-form-fields-required { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--steel); margin-bottom: 1rem; }
.nf-form-cont nf-fields-wrap {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--tsb-gap);
}
.nf-form-cont nf-field { grid-column: span 12; }
.nf-form-cont nf-field:has(> .tsb-half) { grid-column: span 6; }
.nf-form-cont nf-field:has(> .tsb-wide) { grid-column: span 6; }
.nf-form-cont nf-field:has(> .tsb-narrow) { grid-column: span 6; }
.nf-form-cont nf-field:has(> .tsb-quarter) { grid-column: span 3; }
@media (max-width: 700px) {
	.nf-form-cont nf-field:has(> .tsb-half),
	.nf-form-cont nf-field:has(> .tsb-wide),
	.nf-form-cont nf-field:has(> .tsb-narrow) { grid-column: span 12; }
	.nf-form-cont nf-field:has(> .tsb-quarter) { grid-column: span 6; }
}

.nf-form-cont .nf-field-container { margin-bottom: 1.1rem; }
.nf-form-cont .nf-field-label label {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}
.nf-form-cont .ninja-forms-req-symbol,
.nf-form-cont .nf-form-fields-required .ninja-forms-req-symbol { color: var(--wp--preset--color--primary); }

/* Section titles */
.nf-form-cont .tsb-form-section {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.5rem 0 0.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--large);
}
.nf-form-cont nf-field:first-child .tsb-form-section { border-top: 0; padding-top: 0; margin-top: 0; }
.nf-form-cont .tsb-form-section::before {
	content: "";
	flex: 0 0 auto;
	width: 30px;
	height: 12px;
	background:
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) 0 0 / 100% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) 8px 50% / 22px 3px no-repeat,
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) 16px 100% / 14px 3px no-repeat;
	transform: skewX(-20deg);
}
.nf-form-cont .tsb-form-section + p { color: var(--wp--preset--color--steel); font-size: var(--wp--preset--font-size--small); margin-top: 0.25rem; }

/* Date + time on one line: [ date ][ hh ][ mm ] */
.nf-form-cont .date-container .nf-field-element {
	display: flex;
	align-items: stretch;
	gap: 0.4rem;
}
.nf-form-cont .date-container .pikaday__container { flex: 1 1 auto; min-width: 0; }
.nf-form-cont .date-container .time-wrap {
	float: none !important;
	flex: 0 0 4.6rem;
	padding: 0;
}
.nf-form-cont .date-container .time-wrap select { width: 100%; height: 100%; padding-left: 0.5rem; padding-right: 0.3rem; }
.nf-form-cont .date-container .time-wrap + .time-wrap { position: relative; }
.nf-form-cont .date-container .time-wrap + .time-wrap::before {
	content: ":";
	position: absolute;
	left: -0.38rem;
	top: 50%;
	translate: 0 -55%;
	font-weight: 700;
	color: var(--wp--preset--color--steel);
}

/* Repeater ("Colli"): one compact card per package, 4 fields in a row */
.nf-form-cont .repeater-container { margin-bottom: 0.5rem; }
.nf-form-cont .nf-repeater-fieldsets fieldset {
	position: relative;
	margin: 0 0 0.75rem;
	padding: 2.6rem 1.1rem 0.1rem;
	min-width: 0;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 2px;
}
.nf-form-cont .nf-repeater-fieldsets legend {
	position: absolute;
	top: 0.75rem;
	left: 1.1rem;
	padding: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--primary);
}
.nf-form-cont .nf-repeater-fieldset { display: block; }
.nf-form-cont .nf-repeater-fieldset nf-fields-wrap { column-gap: 0.75rem; }
.nf-form-cont .nf-repeater-fieldset .nf-field-container { margin-bottom: 0.9rem; }
.nf-form-cont .nf-repeater-fieldset .nf-field-label { margin-bottom: 0.3rem; }
.nf-form-cont .nf-repeater-fieldset .nf-field-label label { font-size: 0.85rem; color: var(--wp--preset--color--steel); }
.nf-form-cont .nf-remove-fieldset {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	float: none;
	margin: 0;
	width: 1.9rem;
	height: 1.9rem;
	padding: 0;
	font-size: 1.3rem;
	line-height: 1;
	color: var(--wp--preset--color--steel);
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	cursor: pointer;
}
.nf-form-cont .nf-remove-fieldset:hover,
.nf-form-cont .nf-remove-fieldset:focus-visible { color: var(--wp--preset--color--white); background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.nf-form-cont .nf-add-fieldset {
	margin: 0.25rem 0 0.75rem;
	padding: 0.6rem 1.2rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--white);
	border: 2px dashed currentColor;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nf-form-cont .nf-add-fieldset:hover,
.nf-form-cont .nf-add-fieldset:focus-visible { color: var(--wp--preset--color--white); background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); border-style: solid; }
@media (max-width: 700px) {
	.nf-form-cont .nf-repeater-fieldset nf-field:has(> .tsb-quarter) { grid-column: span 6; }
}

/* Checkbox (privacy) */
.nf-form-cont .checkbox-container .nf-field-element { display: flex; align-items: flex-start; }
.nf-form-cont .checkbox-container .nf-field-label label { font-weight: 400; }
.nf-form-cont input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--wp--preset--color--primary); }

/* Errors & messages */
.nf-form-cont .nf-error-msg, .nf-form-cont .ninja-forms-req-symbol { color: var(--wp--preset--color--primary-dark); }
.nf-form-cont .nf-error .ninja-forms-field { border-color: var(--wp--preset--color--primary-dark); }
.nf-form-cont .nf-response-msg {
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--paper);
	border-left: 4px solid #1A9E4B;
}
.nf-form-cont .submit-container input[type="button"],
.nf-form-cont .submit-container input[type="submit"] {
	cursor: pointer;
	padding: 0.95rem 2.2rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.3rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 2px;
}
.nf-form-cont .submit-container input:hover { background: var(--wp--preset--color--primary-dark); }

/* ---------------------------------------------------------------
 * Preventivo / Contatti pages (two-column section in page content)
 * ------------------------------------------------------------- */
.tsb-form-card { border-top-style: solid; }
.tsb-form-card > :first-child { margin-top: 0; }
/* Intro column stays in view while filling the form (only where it fits the screen) */
@media (min-width: 782px) and (min-height: 820px) {
	.tsb-sticky { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px); align-self: flex-start; }
}
.tsb-quote-intro { border-top: 4px solid var(--wp--preset--color--primary); }
.tsb-quote-intro .tsb-steps { padding: 0.25rem 0 0.5rem; }
.tsb-quote-intro .tsb-step + .tsb-step { padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tsb-quote-intro .tsb-urgent { margin-left: calc(-1 * var(--wp--preset--spacing--30) + 0.5rem); margin-right: calc(-1 * var(--wp--preset--spacing--30) + 0.5rem); }
/* Header benefits: stacked list with red ticks */
.tsb-badges--stack p { font-size: 1.15rem; }
.tsb-urgent .wp-block-buttons { gap: 0.5rem; }
.tsb-urgent .wp-block-button__link { font-size: 1.05rem; padding: 0.65rem 1.1rem; }
.tsb-urgent a { color: inherit; text-decoration: none; }
.tsb-urgent__phone a:hover { text-decoration: underline; }
.tsb-urgent .tsb-live::before { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation-name: tsb-pulse-white; }
@keyframes tsb-pulse-white {
	0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
	70% { box-shadow: 0 0 0 0.6em rgba(255,255,255,0); }
	100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.tsb-step .tsb-step-num { margin: 0; min-width: 2.2ch; }
.tsb-step h3 { margin: 0.15rem 0 0; }
.tsb-step p { margin: 0; }
.tsb-badges--dark p { color: var(--wp--preset--color--ink); font-size: 0.95rem; }

/* Contatti page */
.tsb-contact-rows { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tsb-contact-row { padding: 0.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.tsb-contact-row p { margin: 0; }
.tsb-contact-row__label {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--primary);
}
.tsb-contact-row__value { font-weight: 600; overflow-wrap: anywhere; }
.tsb-contact-row__value a { color: var(--wp--preset--color--white); text-decoration: none; }
.tsb-contact-row__value a:hover { text-decoration: underline; }
.tsb-crosslink { background: rgba(255, 255, 255, 0.04); }

/* ---------------------------------------------------------------
 * La nostra flotta (pattern tsb/flotta)
 * ------------------------------------------------------------- */
.tsb-fleet__item { position: relative; }
/* "Road": vehicles sit on a soft floor shadow, all the same height */
.tsb-fleet__img {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: clamp(150px, 16vw, 210px);
	margin: 0 0 1.25rem;
	padding-bottom: 6px;
}
.tsb-fleet__img img {
	position: relative;
	z-index: 1;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	transition: transform 0.5s var(--tsb-ease, ease);
}
.tsb-fleet__img::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 0;
	height: 18px;
	background: radial-gradient(closest-side, rgba(18, 19, 20, 0.22), transparent);
}
/* hover: vehicle "pulls forward" with speed lines behind it */
.tsb-fleet__img::before {
	content: "";
	position: absolute;
	left: 0;
	top: 42%;
	width: 26%;
	height: 26px;
	background:
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) 100% 0 / 100% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) 100% 50% / 70% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) 100% 100% / 45% 3px no-repeat;
	transform: skewX(-20deg) scaleX(0);
	transform-origin: right;
	opacity: 0;
	transition: transform 0.45s var(--tsb-ease, ease), opacity 0.3s ease;
}
.tsb-fleet__item:hover .tsb-fleet__img img { transform: translateX(14px); }
.tsb-fleet__item:hover .tsb-fleet__img::before { transform: skewX(-20deg) scaleX(1); opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
	.tsb-fleet__img img, .tsb-fleet__img::before { transition: none; }
	.tsb-fleet__item:hover .tsb-fleet__img img { transform: none; }
}
.tsb-fleet__item h3 { margin: 0 0 0.6rem; padding-top: 0.9rem; border-top: 3px solid var(--wp--preset--color--primary); }
.tsb-fleet__specs p { margin: 0; padding: 0.4rem 0; border-bottom: 1px solid var(--wp--preset--color--line); display: flex; justify-content: space-between; gap: 1rem; }
.tsb-fleet__label {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--steel);
}
.tsb-fleet__specs strong { text-align: right; }
