/* ==========================================================================
   Page Builder – stile del frontend
   Tutto è sotto .tb-page: font e colori del testo arrivano dal template.
   ========================================================================== */

.tb-page {
	--tb-primary: #1e87f0;
	--tb-secondary: #222;
	--tb-muted-bg: #f8f8f8;
	--tb-container: 1200px;
	--tb-gutter: clamp(16px, 4vw, 40px);
	--tb-radius: 8px;
	--tb-heading: inherit;
	--tb-muted: #6b7280;
	--tb-border: rgba(0, 0, 0, .1);
	--tb-el-gap: 20px;
	position: relative;
	box-sizing: border-box;
}

.tb-page *,
.tb-page *::before,
.tb-page *::after {
	box-sizing: border-box;
}

/* Sezioni a tutta larghezza anche dentro al contenitore del template */
html:has(.tb-breakout) {
	overflow-x: clip;
}

.tb-breakout > .tb-section {
	width: var(--tb-vw, 100vw);
	margin-left: var(--tb-bo, calc(50% - var(--tb-vw, 100vw) / 2));
	margin-right: calc(50% - var(--tb-vw, 100vw) / 2);
}

/* Contenuto non centrato (es. colonna laterale del template): niente tutta larghezza */
.tb-breakout.tb-breakout-off > .tb-section {
	width: auto;
	margin-left: 0;
	margin-right: 0;
}

/* ========================================================== Sezione */
.tb-section {
	position: relative;
	display: flow-root;
	background-repeat: no-repeat;
	isolation: isolate;
}

.tb-style-muted     { background-color: var(--tb-muted-bg); }
.tb-style-primary   { background-color: var(--tb-primary); }
.tb-style-secondary { background-color: var(--tb-secondary); }
.tb-style-card      { background-color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }

/* Immagine di sfondo della sezione: livello separato, così può muoversi (parallasse/zoom) */
.tb-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	pointer-events: none;
}

.tb-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--tb-img);
	background-size: var(--tb-img-size, cover);
	background-position: var(--tb-img-pos, center);
	background-repeat: no-repeat;
	transform: translate3d(0, var(--tb-y, 0px), 0) scale(var(--tb-scale, 1));
	will-change: transform;
}

/* Parallasse: il livello è più alto della sezione e scorre più lentamente */
.tb-bg[data-tb-bg="parallax"]::before {
	top: calc(var(--tb-speed, 40) * -.5%);
	bottom: calc(var(--tb-speed, 40) * -.5%);
}

.tb-bg-fixed .tb-bg::before { background-attachment: fixed; will-change: auto; }

@media (hover: none) {
	.tb-bg-fixed .tb-bg::before { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
	.tb-bg::before { transform: none !important; }
}

.tb-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.tb-pad-none    { padding-block: 0; }
.tb-pad-xsmall  { padding-block: 20px; }
.tb-pad-small   { padding-block: var(--tb-pad-small, clamp(28px, 4vw, 40px)); }
.tb-pad-default { padding-block: var(--tb-pad-default, clamp(44px, 7vw, 80px)); }
.tb-pad-large   { padding-block: var(--tb-pad-large, clamp(64px, 10vw, 120px)); }
.tb-pad-xlarge  { padding-block: var(--tb-pad-xlarge, clamp(84px, 14vw, 170px)); }
.tb-pad-custom  { padding-top: var(--tb-pt, 80px); padding-bottom: var(--tb-pb, 80px); }

@media (max-width: 639.98px) {
	.tb-pad-custom { padding-top: calc(var(--tb-pt, 80px) * .6); padding-bottom: calc(var(--tb-pb, 80px) * .6); }
}

.tb-pad-remove-top    { padding-top: 0; }
.tb-pad-remove-bottom { padding-bottom: 0; }

.tb-vh {
	display: flex;
	flex-direction: column;
	min-height: var(--tb-vh, 100vh);
}

@media (max-width: 639.98px) {
	.tb-vh { min-height: var(--tb-vh-m, var(--tb-vh, 100vh)); }
}

.tb-vh-exact { padding-top: 0 !important; padding-bottom: 0 !important; }
.tb-vh > .tb-container { width: 100%; }
.tb-valign-top    { justify-content: flex-start; }
.tb-valign-middle { justify-content: center; }
.tb-valign-bottom { justify-content: flex-end; }

.tb-container {
	/* Margine laterale: quello della sezione se impostato, altrimenti automatico */
	--tb-g: var(--tb-g-d, var(--tb-gutter));
	width: 100%;
	max-width: calc(var(--tb-container) + 2 * var(--tb-g));
	margin-inline: auto;
	padding-inline: var(--tb-g);
}

@media (max-width: 639.98px) {
	.tb-container { --tb-g: var(--tb-g-m, min(var(--tb-g-d, var(--tb-gutter)), 24px)); }
}

.tb-container-small  { max-width: calc(900px + 2 * var(--tb-g)); }
.tb-container-large  { max-width: calc(1400px + 2 * var(--tb-g)); }
.tb-container-custom { max-width: calc(var(--tb-cw, 1100px) + 2 * var(--tb-g)); }
.tb-container-expand { max-width: none; }
.tb-container-none   { max-width: none; padding-inline: 0; }

/* Righe una sotto l'altra */
.tb-row + .tb-row { margin-top: clamp(32px, 5vw, 60px); }

/* ========================================================== Riga / colonne */
.tb-row {
	--tb-col-gap: 40px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: calc(var(--tb-col-gap) * .75) var(--tb-col-gap);
}

.tb-gap-none   { --tb-col-gap: 0px; }
.tb-gap-small  { --tb-col-gap: 20px; }
.tb-gap-medium { --tb-col-gap: 40px; }
.tb-gap-large  { --tb-col-gap: clamp(40px, 6vw, 80px); }

.tb-gap-none { row-gap: 0; }

/* Via lo spazio automatico tra righe (opzioni «Rimuovi lo spazio sopra/sotto») */
.tb-row.tb-row-notop, .tb-row-nobelow + .tb-row { margin-top: 0; }
.tb-row.tb-row-nobelow { margin-bottom: 0; }
.tb-row-w-small  { max-width: 760px; margin-inline: auto; }
.tb-row-w-medium { max-width: 960px; margin-inline: auto; }

.tb-row-top    { align-items: start; }
.tb-row-middle { align-items: center; }
.tb-row-bottom { align-items: end; }
.tb-row-stretch { align-items: stretch; }

@media (max-width: 639.98px)  { .tb-bp-s.tb-row-reverse > .tb-col:first-child { order: 2; } }
@media (max-width: 959.98px)  { .tb-bp-m.tb-row-reverse > .tb-col:first-child { order: 2; } }
@media (max-width: 1199.98px) { .tb-bp-l.tb-row-reverse > .tb-col:first-child { order: 2; } }

@media (min-width: 640px)  { .tb-bp-s { grid-template-columns: var(--tb-cols); } }
@media (min-width: 960px)  { .tb-bp-m { grid-template-columns: var(--tb-cols); } }
@media (min-width: 1200px) { .tb-bp-l { grid-template-columns: var(--tb-cols); } }

/* Divisori verticali tra colonne (solo quando affiancate) */
@media (min-width: 960px) {
	.tb-row-divider > .tb-col + .tb-col { position: relative; }
	.tb-row-divider > .tb-col + .tb-col::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: calc(var(--tb-col-gap) / -2);
		border-left: 1px solid var(--tb-border);
	}
}

.tb-col {
	min-width: 0;
	position: relative;
	display: flex;
	flex-direction: column;
}

.tb-col-inner { flex: 0 0 auto; }
.tb-row-stretch > .tb-col > .tb-col-inner,
.tb-col-panel > .tb-col-inner { flex: 1 1 auto; display: flex; flex-direction: column; }
.tb-col-middle > .tb-col-inner { justify-content: center; }
.tb-col-bottom > .tb-col-inner { justify-content: flex-end; }
.tb-col-middle, .tb-col-bottom { align-self: stretch; }

.tb-col-panel {
	border-radius: var(--tb-radius);
	background-size: cover;
	background-position: center;
}

.tb-col-pad-none    { padding: 0; }
.tb-col-pad-small   { padding: 20px; }
.tb-col-pad-default { padding: clamp(24px, 3.5vw, 40px); }
.tb-col-pad-large   { padding: clamp(32px, 5vw, 64px); }
.tb-col.tb-col-pt0 { padding-top: 0; }
.tb-col.tb-col-pb0 { padding-bottom: 0; }

/* ========================================================== Elementi */
.tb-el { position: relative; min-width: 0; }
.tb-el + .tb-el { margin-top: var(--tb-el-gap); }
.tb-el.tb-m-none   { margin-top: 0; }
.tb-el.tb-m-small  { margin-top: var(--tb-sp-small, 10px); }
.tb-el.tb-m-medium { margin-top: var(--tb-sp-medium, 30px); }
.tb-el.tb-m-large  { margin-top: var(--tb-sp-large, clamp(36px, 5vw, 50px)); }
.tb-el.tb-m-xlarge { margin-top: var(--tb-sp-xlarge, clamp(48px, 7vw, 70px)); }
.tb-el:first-child { margin-top: 0; }

.tb-el > :first-child { margin-top: 0; }
.tb-el > :last-child  { margin-bottom: 0; }

.tb-align-left   { text-align: left; }
.tb-align-center { text-align: center; }
.tb-align-right  { text-align: right; }
.tb-align-justify { text-align: justify; hyphens: auto; }
.tb-align-justify :is(p,li,h1,h2,h3,h4,h5,h6) { text-align: justify; }

/* Allineamento per dispositivo (tablet / smartphone) */
@media (max-width:1023.98px){
.tb-el.tb-at-left{text-align:left}
.tb-el.tb-at-left .tb-buttons,.tb-el.tb-at-left .tb-divider-dots{justify-content:flex-start}
.tb-el.tb-at-left .tb-image,.tb-el.tb-at-left .tb-deco-divider::after{margin-left:0;margin-right:auto}
.tb-el.tb-at-center{text-align:center}
.tb-el.tb-at-center .tb-buttons,.tb-el.tb-at-center .tb-divider-dots{justify-content:center}
.tb-el.tb-at-center .tb-image,.tb-el.tb-at-center .tb-deco-divider::after{margin-left:auto;margin-right:auto}
.tb-el.tb-at-right{text-align:right}
.tb-el.tb-at-right .tb-buttons,.tb-el.tb-at-right .tb-divider-dots{justify-content:flex-end}
.tb-el.tb-at-right .tb-image,.tb-el.tb-at-right .tb-deco-divider::after{margin-left:auto;margin-right:0}
.tb-el.tb-at-justify,.tb-el.tb-at-justify :is(p,li,h1,h2,h3,h4,h5,h6){text-align:justify}
}
@media (max-width:639.98px){
.tb-el.tb-am-left{text-align:left}
.tb-el.tb-am-left .tb-buttons,.tb-el.tb-am-left .tb-divider-dots{justify-content:flex-start}
.tb-el.tb-am-left .tb-image,.tb-el.tb-am-left .tb-divider-small,.tb-el.tb-am-left .tb-deco-divider::after{margin-left:0;margin-right:auto}
.tb-el.tb-am-center{text-align:center}
.tb-el.tb-am-center .tb-buttons,.tb-el.tb-am-center .tb-divider-dots{justify-content:center}
.tb-el.tb-am-center .tb-image,.tb-el.tb-am-center .tb-divider-small,.tb-el.tb-am-center .tb-deco-divider::after{margin-left:auto;margin-right:auto}
.tb-el.tb-am-right{text-align:right}
.tb-el.tb-am-right .tb-buttons,.tb-el.tb-am-right .tb-divider-dots{justify-content:flex-end}
.tb-el.tb-am-right .tb-image,.tb-el.tb-am-right .tb-divider-small,.tb-el.tb-am-right .tb-deco-divider::after{margin-left:auto;margin-right:0}
.tb-el.tb-am-justify,.tb-el.tb-am-justify :is(p,li,h1,h2,h3,h4,h5,h6){text-align:justify}
}

.tb-mw-small  { max-width: 420px; }
.tb-mw-medium { max-width: 600px; }
.tb-mw-large  { max-width: 800px; }
.tb-mw-xlarge { max-width: 1000px; }
.tb-mw-center { margin-inline: auto; }
.tb-align-right.tb-mw-small, .tb-align-right.tb-mw-medium, .tb-align-right.tb-mw-large, .tb-align-right.tb-mw-xlarge { margin-left: auto; }
/* Con una larghezza massima, l'allineamento posiziona anche il blocco (accordion, schede, tabelle, galleria…) */
.tb-el[class*="tb-mw-"].tb-align-center { margin-left: auto; margin-right: auto; }
.tb-el[class*="tb-mw-"].tb-align-left { margin-left: 0; margin-right: auto; }
.tb-el[class*="tb-mw-"].tb-align-right { margin-left: auto; margin-right: 0; }
@media (max-width: 1023.98px) {
	.tb-el[class*="tb-mw-"].tb-at-center { margin-left: auto; margin-right: auto; }
	.tb-el[class*="tb-mw-"].tb-at-left { margin-left: 0; margin-right: auto; }
	.tb-el[class*="tb-mw-"].tb-at-right { margin-left: auto; margin-right: 0; }
}
@media (max-width: 639.98px) {
	.tb-el[class*="tb-mw-"].tb-am-center { margin-left: auto; margin-right: auto; }
	.tb-el[class*="tb-mw-"].tb-am-left { margin-left: 0; margin-right: auto; }
	.tb-el[class*="tb-mw-"].tb-am-right { margin-left: auto; margin-right: 0; }
}

/* Titolo */
.tb-kicker {
	margin: 0 0 12px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tb-page .tb-heading {
	margin: 0;
	color: var(--tb-heading);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-wrap: balance;
}

.tb-page .tb-heading a { color: inherit; text-decoration: none; }
.tb-page .tb-heading a:hover { color: var(--tb-primary); }

.tb-heading-small  { font-size: 1.25rem; }
.tb-heading-medium { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.tb-heading-large  { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; }
.tb-heading-xlarge { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; }
.tb-heading-hero   { font-size: clamp(2.5rem, 7vw, 5.25rem); line-height: 1.02; letter-spacing: -.03em; }

.tb-uppercase { text-transform: uppercase; letter-spacing: .04em; }
.tb-color-primary { color: var(--tb-primary) !important; }
.tb-color-muted   { color: var(--tb-muted) !important; }

.tb-deco-divider::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: .45em;
	background: var(--tb-primary);
	border-radius: 2px;
}

.tb-align-center .tb-deco-divider::after { margin-inline: auto; }
.tb-align-right .tb-deco-divider::after { margin-left: auto; }

.tb-deco-bullet { position: relative; padding-left: 22px; }
.tb-deco-bullet::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	bottom: .15em;
	width: 4px;
	background: var(--tb-primary);
	border-radius: 2px;
}

.tb-deco-line { display: flex; align-items: center; gap: 20px; }
.tb-deco-line::before,
.tb-deco-line::after {
	content: "";
	flex: 1 1 0;
	border-top: 1px solid var(--tb-border);
}

.tb-deco-line::before { display: none; }
.tb-align-center .tb-deco-line::before,
.tb-align-right .tb-deco-line::before { display: block; }
.tb-align-right .tb-deco-line::after { display: none; }

/* Testo */
.tb-text { line-height: 1.7; }
.tb-text > :first-child { margin-top: 0; }
.tb-text > :last-child { margin-bottom: 0; }
.tb-text-xsmall { font-size: .8125rem; line-height: 1.5; }
.tb-text-small { font-size: .875rem; }
.tb-text-medium { font-size: 1.125rem; line-height: 1.6; }
.tb-text-xlarge { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.4; }
.tb-text-lead  { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }
.tb-text-large { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; }

@media (min-width: 960px) {
	.tb-text-cols-2 { columns: 2; column-gap: 40px; }
	.tb-text-cols-3 { columns: 3; column-gap: 40px; }
}

.tb-dropcap > p:first-of-type::first-letter {
	float: left;
	margin: .05em .12em 0 0;
	font-size: 3.4em;
	line-height: .85;
	font-weight: 600;
	color: var(--tb-primary);
}

/* Immagine */
.tb-image { margin: 0; display: block; }
.tb-align-center .tb-image, .tb-mw-center .tb-image { margin-inline: auto; }
.tb-align-right .tb-image { margin-left: auto; }

.tb-image-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--tb-img-radius, inherit);
}

.tb-image-frame[style*="padding"] img { border-radius: calc(var(--tb-img-radius, 0px) * .6); }
.tb-img-rounded .tb-image-frame[style*="padding"] img { border-radius: 8px; }
.tb-img-circle .tb-image-frame[style*="padding"] img { border-radius: 50%; }

.tb-filter-grayscale img { filter: grayscale(1); }
.tb-filter-sepia img     { filter: sepia(.75); }
.tb-filter-bright img    { filter: brightness(1.12) saturate(1.1); }
.tb-filter-contrast img  { filter: contrast(1.2) saturate(1.15); }
.tb-filter-soft img      { filter: saturate(.7) brightness(1.05); }
.tb-filter-grayscale.tb-hover-gray:hover img { filter: none; }

.tb-image img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	transition: transform .7s cubic-bezier(.2, .6, .3, 1), filter .4s ease;
}

.tb-image a { display: block; }
.tb-img-rounded, .tb-img-rounded .tb-image-frame { border-radius: 14px; }
.tb-img-circle,  .tb-img-circle .tb-image-frame  { border-radius: 50%; }

.tb-shadow-small  .tb-image-frame { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.tb-shadow-medium .tb-image-frame { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.tb-shadow-large  .tb-image-frame { box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }

.tb-hover-zoom:hover img { transform: scale(1.06); }
.tb-hover-lift .tb-image-frame { transition: transform .4s ease, box-shadow .4s ease; }
.tb-hover-lift:hover .tb-image-frame { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, .16); }
.tb-hover-gray img { filter: grayscale(1); }
.tb-hover-gray:hover img { filter: none; }

.tb-image figcaption {
	margin-top: 10px;
	font-size: .875rem;
	color: var(--tb-muted);
}

/* Pulsanti */
.tb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tb-align-center .tb-buttons { justify-content: center; }
.tb-align-right  .tb-buttons { justify-content: flex-end; }
.tb-buttons-full { flex-direction: column; }
.tb-buttons-full .tb-btn { width: 100%; justify-content: center; }

/* ------------------------------------------------------------------ Icone */
.tb-icons {
	display: grid;
	grid-template-columns: repeat(var(--tb-icons-cols, 4), minmax(0, 1fr));
	gap: var(--tb-icons-gap, 28px);
}

@media (max-width: 767.98px) {
	.tb-icons { grid-template-columns: repeat(min(3, var(--tb-icons-cols, 4)), minmax(0, 1fr)); }
}

@media (max-width: 479.98px) {
	.tb-icons { grid-template-columns: repeat(min(2, var(--tb-icons-cols, 4)), minmax(0, 1fr)); }
}

.tb-icons-align-center { justify-items: center; text-align: center; }
.tb-icons-align-left   { justify-items: start; text-align: left; }
.tb-icons-align-right  { justify-items: end; text-align: right; }

.tb-icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.tb-icons-label-right .tb-icon-item { flex-direction: row; align-items: center; text-align: left; }
.tb-icon-label { line-height: 1.3; }
.tb-icons-align-right.tb-icons-label-right .tb-icon-item { flex-direction: row-reverse; text-align: right; }
.tb-icons-label-hidden .tb-icon-label { display: none; }

a.tb-icon-item:hover .tb-icon-badge { transform: translateY(-2px); }

.tb-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform .18s ease;
}

.tb-icon-shape-circle { border-radius: 50%; }
.tb-icon-shape-square { border-radius: 16px; }

.tb-icon-svg { display: block; }
.tb-icon-font { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

.tb-icon-label { font-size: .95em; }

.tb-page a.tb-btn,
.tb-page button.tb-btn {
	--tb-btn-bg: var(--tb-primary);
	--tb-btn-fg: #fff;
	--tb-btn-bd: var(--tb-btn-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 26px;
	min-height: 46px;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	text-decoration: none;
	color: var(--tb-btn-fg);
	background: var(--tb-btn-bg);
	border: 1.5px solid var(--tb-btn-bd);
	border-radius: 6px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.tb-page a.tb-btn:hover,
.tb-page button.tb-btn:hover {
	transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); filter: brightness(1.06);
	background-color: var(--tb-btn-hbg, var(--tb-btn-bg));
	color: var(--tb-btn-hfg, var(--tb-btn-fg));
	border-color: var(--tb-btn-hbd, var(--tb-btn-bd));
}
.tb-page a.tb-btn:focus-visible,
.tb-page button.tb-btn:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 3px; }

.tb-page a.tb-btn-secondary,
.tb-page button.tb-btn-secondary { --tb-btn-bg: var(--tb-secondary); }
.tb-page a.tb-btn-outline,
.tb-page button.tb-btn-outline { --tb-btn-bg: transparent; --tb-btn-fg: currentColor; --tb-btn-bd: currentColor; }
.tb-page a.tb-btn-outline:hover,
.tb-page button.tb-btn-outline:hover { --tb-btn-bg: var(--tb-primary); --tb-btn-fg: #fff; --tb-btn-bd: var(--tb-primary); filter: none; }
.tb-page a.tb-btn-light { --tb-btn-bg: #fff; --tb-btn-fg: #111; --tb-btn-bd: #fff; }
.tb-page a.tb-btn-text {
	--tb-btn-bg: transparent;
	--tb-btn-bd: transparent;
	--tb-btn-fg: var(--tb-primary);
	padding-inline: 0;
	min-height: 0;
}

.tb-page a.tb-btn-text:hover { box-shadow: none; transform: none; }
.tb-page a.tb-btn-text .tb-btn-icon { transition: transform .2s ease; }
.tb-page a.tb-btn-text:hover .tb-btn-icon { transform: translateX(4px); }

/* Effetti al passaggio del mouse scelti per il singolo pulsante */
.tb-page a.tb-btn-fx-none:hover { transform: none; box-shadow: none; filter: none; }
.tb-page a.tb-btn-fx-grow:hover { transform: scale(1.06); box-shadow: 0 8px 20px rgba(0, 0, 0, .14); filter: none; }
.tb-page a.tb-btn-fx-glow:hover { transform: none; filter: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tb-btn-hbd, var(--tb-btn-bd)) 30%, transparent), 0 10px 28px rgba(0, 0, 0, .16); }
.tb-page a.tb-btn-fx-press:hover { transform: translateY(2px) scale(.98); box-shadow: none; filter: brightness(.95); }
.tb-page a.tb-btn-fx-fill {
	background-image: linear-gradient(var(--tb-btn-hbg, var(--tb-primary)), var(--tb-btn-hbg, var(--tb-primary)));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	transition: background-size .35s ease, color .25s ease, border-color .25s ease;
}
.tb-page a.tb-btn-fx-fill:hover { background-size: 100% 100%; background-color: var(--tb-btn-bg); transform: none; box-shadow: none; filter: none; }

.tb-page a.tb-btn-small { min-height: 36px; padding: 0 18px; font-size: .8125rem; }
.tb-page a.tb-btn-large { min-height: 56px; padding: 0 34px; font-size: 1.0625rem; }
.tb-page a.tb-btn-square { border-radius: 0; }
.tb-page a.tb-btn-pill { border-radius: 999px; }
.tb-btn-icon { flex: none; }

/* Elenco */
.tb-page .tb-list { margin: 0; padding: 0; list-style: none; counter-reset: tb-li; }
.tb-list.tb-list-small { font-size: .875rem; }
.tb-list.tb-list-large { font-size: 1.125rem; }

.tb-list > li {
	position: relative;
	padding-left: calc(max(var(--tb-mk-size, 20px), 20px) + var(--tb-mk-gap, 12px));
	break-inside: avoid;
}
.tb-list > li { color: var(--tb-li-color, inherit); font-size: var(--tb-li-size, inherit); }
/* Se il titolo ha un valore proprio, vince su regole del template o della tipografia generale */
.tb-page .tb-list[style*="--tb-li-size"] > li, .tb-page .tb-list[style*="--tb-li-size"] > li > .tb-li-text { font-size: var(--tb-li-size) !important; }
.tb-page .tb-list[style*="--tb-li-color"] > li, .tb-page .tb-list[style*="--tb-li-color"] > li > .tb-li-text { color: var(--tb-li-color) !important; }
.tb-page .tb-list[style*="--tb-note-size"] .tb-li-note { font-size: var(--tb-note-size) !important; }
.tb-page .tb-list[style*="--tb-note-color"] .tb-li-note { color: var(--tb-note-color) !important; }

.tb-list > li + li { margin-top: 10px; }
.tb-list-none > li { padding-left: 0; }
.tb-list-divider > li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tb-border); }

.tb-list > li::before {
	position: absolute;
	left: calc((max(var(--tb-mk-size, 20px), 20px) - var(--tb-mk-size, 20px)) / 2 + var(--tb-mk-x, 0px));
	top: calc(var(--tb-li-pt, 0px) + (1lh - var(--tb-mk-size, 20px)) / 2 + var(--tb-mk-y, 0px));
	width: var(--tb-mk-size, 20px);
	height: var(--tb-mk-size, 20px);
}

.tb-list-divider > li + li { --tb-li-pt: 12px; }
.tb-list-box { --tb-mk-size: 22px; }
.tb-list-number { --tb-mk-size: 22px; }
.tb-list-dot { --tb-mk-size: 8px; }

.tb-list-check > li::before {
	content: "";
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.tb-list-arrow > li::before {
	content: "";
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center / 90% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center / 90% no-repeat;
}

.tb-list-box > li::before {
	content: "";
	box-sizing: border-box;
	border: 2px solid var(--tb-marker, var(--tb-primary));
	border-radius: 4px;
}
.tb-li-note { display: block; margin-top: 2px; font-size: var(--tb-note-size, .8125em); line-height: 1.4; color: var(--tb-note-color, var(--tb-muted)); }
.tb-list-note-caps .tb-li-note { font-size: .72em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tb-list-dot > li::before { content: ""; border-radius: 50%; }
.tb-list-number > li { counter-increment: tb-li; }
.tb-list-number > li::before {
	content: counter(tb-li);
	display: grid;
	place-items: center;
	font-size: calc(var(--tb-mk-size, 22px) * .55);
	font-weight: 700;
	border-radius: 50%;
}

@media (min-width: 640px) {
	.tb-list-cols-2 { columns: 2; column-gap: 40px; }
	.tb-list-cols-3 { columns: 3; column-gap: 40px; }
	.tb-list-cols-2 > li, .tb-list-cols-3 > li { margin: 0 0 10px !important; }
	/* Con più colonne le linee stanno sotto ogni voce, così non cambiano all'inizio di una colonna */
	.tb-list-cols-2.tb-list-divider > li, .tb-list-cols-3.tb-list-divider > li {
		margin: 0 !important; padding-top: 12px; padding-bottom: 12px; --tb-li-pt: 12px; border-top: 0 !important; border-bottom: 1px solid var(--tb-border);
	}
}

/* Video */

/* Divisore e spaziatore */
/* Divisore: tutte le forme usano --tb-dc (colore linea), --tb-dm (colore simbolo), --tb-dt (spessore), --tb-dz (dimensione), --tb-dw (lunghezza) */
.tb-page .tb-divider { --tb-dc: var(--tb-border); margin: 0 auto 0 0; width: var(--tb-dw, 100%); max-width: 100%; box-sizing: border-box; color: inherit; }
.tb-align-center .tb-divider, .tb-el.tb-at-center .tb-divider, .tb-el.tb-am-center .tb-divider { margin-left: auto; margin-right: auto; }
.tb-align-right .tb-divider, .tb-el.tb-at-right .tb-divider, .tb-el.tb-am-right .tb-divider { margin-left: auto; margin-right: 0; }
.tb-el.tb-at-left .tb-divider, .tb-el.tb-am-left .tb-divider { margin-left: 0; margin-right: auto; }
.tb-page .tb-divider-line, .tb-page .tb-divider-small { height: 0; border-top: var(--tb-dt, 1px) solid var(--tb-dc); }
.tb-page .tb-divider-small { --tb-dc: currentColor; border-radius: 2px; opacity: .9; }
.tb-page .tb-divider-primary { opacity: 1; }
.tb-page .tb-dl-dashed.tb-divider-line, .tb-page .tb-dl-dashed.tb-divider-small { border-top-style: dashed; }
.tb-page .tb-dl-dotted.tb-divider-line, .tb-page .tb-dl-dotted.tb-divider-small { border-top-style: dotted; }
.tb-page .tb-dl-double.tb-divider-line, .tb-page .tb-dl-double.tb-divider-small { border-top-style: double; border-top-width: max(var(--tb-dt, 1px), 3px); }
.tb-page .tb-dl-fade.tb-divider-line, .tb-page .tb-dl-fade.tb-divider-small { border: 0; height: var(--tb-dt, 1px); background: linear-gradient(90deg, var(--tb-dc), transparent); }
.tb-page .tb-dl-fade2.tb-divider-line, .tb-page .tb-dl-fade2.tb-divider-small { border: 0; height: var(--tb-dt, 1px); background: linear-gradient(90deg, transparent, var(--tb-dc) 50%, transparent); }
.tb-page .tb-dl-gradient.tb-divider-line, .tb-page .tb-dl-gradient.tb-divider-small { border: 0; height: var(--tb-dt, 1px); border-radius: 99px; background: linear-gradient(90deg, var(--tb-primary), var(--tb-secondary, var(--tb-primary))); }
/* Puntini */
.tb-page .tb-divider-dots { --tb-dc: var(--tb-muted, currentColor); }
.tb-divider-dots { display: flex; gap: calc(var(--tb-dz, 10px) * .8); width: auto !important; }
.tb-align-center .tb-divider-dots, .tb-el.tb-at-center .tb-divider-dots { justify-content: center; width: var(--tb-dw, 100%) !important; }
.tb-align-right .tb-divider-dots, .tb-el.tb-at-right .tb-divider-dots { justify-content: flex-end; width: var(--tb-dw, 100%) !important; }
.tb-divider-dots span { width: var(--tb-dz, 10px); height: var(--tb-dz, 10px); border-radius: 50%; background: var(--tb-dc, currentColor); opacity: .45; }
.tb-divider-dots.tb-divider-primary span { opacity: 1; }
.tb-divider-dots span:nth-child(2) { opacity: .75; }
.tb-divider-dots span:nth-child(3) { opacity: 1; }
/* Onda e zig-zag: maschera SVG ripetuta, colorata con --tb-dc */
.tb-page .tb-divider-wave, .tb-page .tb-divider-zigzag { --tb-dc: var(--tb-primary); height: var(--tb-dz, 10px); background: var(--tb-dc); -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: calc(var(--tb-dz, 10px) * 4) 100%; mask-size: calc(var(--tb-dz, 10px) * 4) 100%; -webkit-mask-position: left center; mask-position: left center; }
.tb-divider-wave { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5C4 5 4 1 8 1S12 9 16 9 20 5 24 5' fill='none' stroke='%23000' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5C4 5 4 1 8 1S12 9 16 9 20 5 24 5' fill='none' stroke='%23000' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.tb-divider-zigzag { -webkit-mask-size: calc(var(--tb-dz, 10px) * 2) 100%; mask-size: calc(var(--tb-dz, 10px) * 2) 100%; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10' preserveAspectRatio='none'%3E%3Cpath d='M0 9L5 1 10 9 15 1 20 9' fill='none' stroke='%23000' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10' preserveAspectRatio='none'%3E%3Cpath d='M0 9L5 1 10 9 15 1 20 9' fill='none' stroke='%23000' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
/* Simbolo o testo al centro, con linee ai lati */
.tb-divider-symbol, .tb-divider-text { display: flex; align-items: center; gap: var(--tb-dgap, 16px); }
.tb-divider-symbol .tb-dv-line, .tb-divider-text .tb-dv-line { flex: 1 1 0; min-width: 12px; height: 0; border-top: var(--tb-dt, 1px) solid var(--tb-dc); }
.tb-divider-symbol .tb-dv-mark, .tb-divider-text .tb-dv-mark { flex: none; display: inline-flex; align-items: center; color: var(--tb-dm, var(--tb-dc, currentColor)); line-height: 1; }
.tb-divider-symbol:not(.tb-divider-primary) { --tb-dm: var(--tb-primary); }
.tb-divider-text .tb-dv-mark { font-size: .9em; letter-spacing: .08em; text-transform: uppercase; color: var(--tb-dm, var(--tb-muted, currentColor)); }
.tb-divider-symbol .tb-icon-svg { fill: currentColor; }
.tb-page .tb-divider-symbol.tb-dl-dashed .tb-dv-line, .tb-page .tb-divider-text.tb-dl-dashed .tb-dv-line { border-top-style: dashed; }
.tb-page .tb-divider-symbol.tb-dl-dotted .tb-dv-line, .tb-page .tb-divider-text.tb-dl-dotted .tb-dv-line { border-top-style: dotted; }
.tb-page .tb-divider-symbol.tb-dl-double .tb-dv-line, .tb-page .tb-divider-text.tb-dl-double .tb-dv-line { border-top-style: double; border-top-width: max(var(--tb-dt, 1px), 3px); }
.tb-page .tb-divider-symbol.tb-dl-fade .tb-dv-line, .tb-page .tb-divider-text.tb-dl-fade .tb-dv-line, .tb-page .tb-divider-symbol.tb-dl-fade2 .tb-dv-line, .tb-page .tb-divider-text.tb-dl-fade2 .tb-dv-line { border: 0; height: var(--tb-dt, 1px); background: linear-gradient(90deg, transparent, var(--tb-dc)); }
.tb-page .tb-divider-symbol.tb-dl-fade .tb-dv-line:last-child, .tb-page .tb-divider-text.tb-dl-fade .tb-dv-line:last-child, .tb-page .tb-divider-symbol.tb-dl-fade2 .tb-dv-line:last-child, .tb-page .tb-divider-text.tb-dl-fade2 .tb-dv-line:last-child { background: linear-gradient(270deg, transparent, var(--tb-dc)); }
.tb-page .tb-divider-symbol.tb-dl-gradient .tb-dv-line, .tb-page .tb-divider-text.tb-dl-gradient .tb-dv-line { border: 0; height: var(--tb-dt, 1px); background: linear-gradient(90deg, var(--tb-primary), var(--tb-secondary, var(--tb-primary))); }

.tb-spacer { height: var(--tb-h); }

@media (max-width: 639.98px) {
	.tb-spacer { height: var(--tb-hm); }
}

/* ========================================================== Testo chiaro / scuro
   Le variabili si risolvono sul contenitore più vicino, così una card chiara
   dentro una sezione scura (o viceversa) ha sempre i colori giusti. */
.tb-text-light {
	--tb-heading: #fff;
	--tb-muted: rgba(255, 255, 255, .72);
	--tb-border: rgba(255, 255, 255, .22);
	--tb-marker: #fff;
	--tb-marker-bg: rgba(255, 255, 255, .2);
	--tb-marker-fg: var(--tb-secondary);
	--tb-kicker: rgba(255, 255, 255, .85);
	--tb-link: #fff;
	color: rgba(255, 255, 255, .88);
}

.tb-text-dark {
	--tb-heading: #1a1a1a;
	--tb-muted: #6b7280;
	--tb-border: rgba(0, 0, 0, .1);
	--tb-marker: var(--tb-primary);
	--tb-marker-bg: var(--tb-primary);
	--tb-marker-fg: #fff;
	--tb-kicker: var(--tb-primary);
	--tb-link: var(--tb-primary);
	color: #444;
}

.tb-text-light :is(h1, h2, h3, h4, h5, h6),
.tb-text-dark :is(h1, h2, h3, h4, h5, h6) { color: var(--tb-heading); }

.tb-kicker { color: var(--tb-kicker, var(--tb-primary)); }
.tb-text a { color: var(--tb-link, var(--tb-primary)); }
.tb-list > li::before { color: var(--tb-marker, var(--tb-primary)); }
.tb-list-check > li::before { background-color: var(--tb-marker-bg, var(--tb-primary)); }
.tb-list-arrow > li::before, .tb-list-dot > li::before { background-color: var(--tb-marker, var(--tb-primary)); }
.tb-list-number > li::before { color: var(--tb-marker-fg, #fff); background: var(--tb-marker, var(--tb-primary)); }
.tb-text-light .tb-deco-divider::after { background: currentColor; }
.tb-text-dark .tb-deco-divider::after { background: var(--tb-primary); }
.tb-style-primary .tb-btn-primary { --tb-btn-bg: #fff; --tb-btn-fg: var(--tb-primary); --tb-btn-bd: #fff; }
.tb-style-primary .tb-color-primary { color: #fff !important; }
.tb-style-primary { --tb-kicker: #fff; --tb-marker-bg: rgba(255, 255, 255, .2); }

/* ========================================================== Visibilità */
@media (max-width: 639.98px) { .tb-page .tb-hide-mobile { display: none !important; } }
@media (min-width: 640px) and (max-width: 959.98px) { .tb-page .tb-hide-tablet { display: none !important; } }
@media (min-width: 960px) { .tb-page .tb-hide-desktop { display: none !important; } }

/* ========================================================== Animazioni */
.tb-js [data-tb-anim]:not([data-tb-anim="none"]) {
	opacity: 0;
	transition: opacity var(--tb-anim-dur, .8s) ease, transform var(--tb-anim-dur, .8s) cubic-bezier(.2, .65, .3, 1);
	transition-delay: var(--tb-delay, 0s);
}

.tb-js [data-tb-anim="slide-up"]    { transform: translateY(36px); }
.tb-js [data-tb-anim="slide-left"]  { transform: translateX(-48px); }
.tb-js [data-tb-anim="slide-right"] { transform: translateX(48px); }
.tb-js [data-tb-anim="scale"]       { transform: scale(.94); }
.tb-js [data-tb-anim="slide-down"]  { transform: translateY(-36px); }
.tb-js [data-tb-anim="zoom-out"]    { transform: scale(1.12); }
.tb-js [data-tb-anim="blur"]        { filter: blur(12px); transition-property: opacity, transform, filter; }
.tb-js [data-tb-anim="rotate"]      { transform: rotate(-4deg) translateY(24px); }
.tb-js [data-tb-anim="flip"]        { transform: perspective(900px) rotateX(18deg) translateY(24px); transform-origin: 50% 100%; }
.tb-js [data-tb-anim="blur"].tb-in  { filter: none; }
.tb-js [data-tb-anim].tb-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.tb-js [data-tb-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ========================================================== Lightbox */
.tb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 4vmin;
	background: rgba(10, 10, 12, .92);
	opacity: 0;
	transition: opacity .25s ease;
	cursor: zoom-out;
}

.tb-lightbox.tb-open { opacity: 1; }
.tb-lightbox img { max-width: 100%; max-height: 92vh; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.tb-lightbox button {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: none;
	border: 0;
	cursor: pointer;
}

/* ========================================================== Moduli dentro al builder */
.tb-el[class*="tb-el-mod_"] > .moduletable,
.tb-el[class*="tb-el-mod_"] > div:only-child { margin-bottom: 0; }
.tb-module-title { margin: 0 0 16px; }

/* ========================================================== Anteprima dell'editor */
.tb-preview .tb-placeholder {
	display: grid;
	place-items: center;
	min-height: 64px;
	padding: 16px;
	font: 500 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: .01em;
	color: #8a8f98;
	text-align: center;
	background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .025) 0 10px, transparent 10px 20px);
	border: 1.5px dashed rgba(0, 0, 0, .15);
	border-radius: 6px;
}

.tb-preview .tb-text-light .tb-placeholder { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .3); }
.tb-preview .tb-ph-column { min-height: 110px; }
.tb-preview .tb-ph-error { color: #b42318; border-color: #f3b4ae; background: #fff5f4; }

.tb-empty-page {
	display: grid;
	place-items: center;
	min-height: 60vh;
	padding: 40px;
	font: 500 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #8a8f98;
	text-align: center;
}

/* ==========================================================================
   Blocchi pronti: slideshow, galleria, portfolio, accordion, schede, contatori,
   testimonianze, team, prezzi, loghi, invito all'azione
   ========================================================================== */

/* ------------------------------------------------------------------ Slideshow e carosello */
.tb-slider { position: relative; overflow: hidden; touch-action: pan-y; }
.tb-slider-rounded { border-radius: 16px; }
.tb-slides { display: flex; transition: transform .65s cubic-bezier(.4, 0, .2, 1); }
.tb-slide { position: relative; flex: 0 0 100%; min-width: 0; }

.tb-slider-hero .tb-slide {
	height: var(--tb-slider-hm, 340px);
	color: #fff;
	background: linear-gradient(135deg, #334155, #0f172a);
}

@media (min-width: 768px) {
	.tb-slider-hero .tb-slide { height: var(--tb-slider-h, 480px); }
}

.tb-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tb-slide-body {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: clamp(24px, 5vw, 56px) clamp(52px, 8vw, 96px);
	background: rgba(0, 0, 0, var(--tb-slide-ov, .35));
}

.tb-slide-inner { width: 100%; max-width: 680px; }
.tb-slide-align-left   .tb-slide-body { justify-content: flex-start; text-align: left; }
.tb-slide-align-center .tb-slide-body { justify-content: center; text-align: center; }
.tb-slide-align-right  .tb-slide-body { justify-content: flex-end; text-align: right; }

.tb-slide-title { margin: 0 0 .4em; font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 700; line-height: 1.12; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.tb-slide-text { margin: 0 0 1.4em; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.55; }
.tb-slide-link { display: block; color: inherit; text-decoration: none; }

/* Dissolvenza: le slide sono sovrapposte */
.tb-slider-fade .tb-slides { display: block; position: relative; height: var(--tb-slider-hm, 340px); transition: none; }
.tb-slider-fade .tb-slide { position: absolute; inset: 0; height: auto; opacity: 0; z-index: 0; transition: opacity .8s ease; }
.tb-slider-fade .tb-slide.is-active { opacity: 1; z-index: 1; }

@media (min-width: 768px) {
	.tb-slider-fade .tb-slides { height: var(--tb-slider-h, 480px); }
}

.tb-slider-btn {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #111;
	background: rgba(255, 255, 255, .88);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .2s ease, transform .2s ease;
}

.tb-slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.tb-slider-pause { position: absolute; left: 14px; bottom: 12px; z-index: 4; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #111; cursor: pointer; padding: 0; }
.tb-slider-pause:hover { background: #fff; }
.tb-slider-pause:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 2px; }
.tb-slider-pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tb-slider-pause .tb-ico-play { display: none; fill: currentColor; }
.tb-slider-pause.is-paused .tb-ico-play { display: block; }
.tb-slider-pause.is-paused .tb-ico-pause { display: none; }
.tb-slider-btn:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 2px; }
.tb-slider-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-slider-prev { left: 12px; }
.tb-slider-next { right: 12px; }

.tb-slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.tb-slider-dot { width: 10px; height: 10px; padding: 0; background: rgba(255, 255, 255, .55); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.tb-slider-dot.is-active { background: #fff; transform: scale(1.3); }
.tb-slider-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 639.98px) {
	.tb-slider-btn { width: 36px; height: 36px; }
	.tb-slider-prev { left: 6px; }
	.tb-slider-next { right: 6px; }
}

/* Testimonianze a carosello */
.tb-slider-reviews { overflow: hidden; }
.tb-slider-reviews .tb-slide { padding: 6px clamp(48px, 7vw, 72px) 40px; }
.tb-slider-reviews .tb-slider-btn { top: calc(50% - 16px); }
.tb-slider-reviews .tb-slider-dot { background: rgba(0, 0, 0, .2); }
.tb-slider-reviews .tb-slider-dot.is-active { background: var(--tb-primary); }
.tb-slider-reviews .tb-slider-btn { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }

@media (prefers-reduced-motion: reduce) {
	.tb-slides, .tb-slider-fade .tb-slide { transition: none; }
}

/* ------------------------------------------------------------------ Galleria */
.tb-gallery { display: grid; grid-template-columns: repeat(var(--tb-gal-cols, 3), minmax(0, 1fr)); gap: var(--tb-gal-gap, 12px); }
.tb-gallery-masonry { display: block; column-count: var(--tb-gal-cols, 3); column-gap: var(--tb-gal-gap, 12px); }
.tb-gallery-masonry .tb-gal-item { break-inside: avoid; margin-bottom: var(--tb-gal-gap, 12px); }
.tb-gal-item { position: relative; min-width: 0; margin: 0; }
.tb-gal-link { position: relative; display: block; overflow: hidden; }
.tb-gal-rounded .tb-gal-link { border-radius: 12px; }
.tb-gal-item img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .6, .3, 1), opacity .3s ease; }
.tb-gallery-grid .tb-gal-item img { aspect-ratio: var(--tb-gal-ratio, 1/1); object-fit: cover; }
.tb-gal-hover-zoom .tb-gal-link:hover img { transform: scale(1.07); }
.tb-gal-hover-dim .tb-gal-link:hover img { opacity: .72; }
a.tb-gal-link { cursor: zoom-in; }

.tb-gal-cap { font-size: .875rem; line-height: 1.4; }

.tb-gal-cap-overlay .tb-gal-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 34px 14px 12px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, .68));
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}

.tb-gal-cap-overlay .tb-gal-item:hover .tb-gal-cap,
.tb-gal-cap-overlay .tb-gal-item:focus-within .tb-gal-cap { opacity: 1; transform: none; }

@media (hover: none) {
	.tb-gal-cap-overlay .tb-gal-cap { opacity: 1; transform: none; }
}

.tb-gal-cap-below .tb-gal-cap { padding: 8px 2px 0; color: var(--tb-muted); }

@media (max-width: 767.98px) {
	.tb-gallery-grid { grid-template-columns: repeat(var(--tb-gal-cols-t, 2), minmax(0, 1fr)); }
	.tb-gallery-masonry { column-count: var(--tb-gal-cols-t, 2); }
}

@media (max-width: 479.98px) {
	.tb-gallery-grid { grid-template-columns: repeat(var(--tb-gal-cols-m, 2), minmax(0, 1fr)); }
	.tb-gallery-masonry { column-count: var(--tb-gal-cols-m, 2); }
}

/* Lightbox con galleria */
.tb-lightbox figure { display: grid; gap: 12px; justify-items: center; max-width: 100%; margin: 0; cursor: default; }
.tb-lightbox figcaption { max-width: 70ch; color: #e5e7eb; font-size: .9375rem; line-height: 1.4; text-align: center; }
.tb-lightbox button.tb-lb-nav {
	top: 50%;
	width: 52px;
	height: 72px;
	font-size: 40px;
	transform: translateY(-50%);
	opacity: .8;
}

.tb-lightbox button.tb-lb-nav:hover { opacity: 1; }
.tb-lightbox button.tb-lb-prev { left: 6px; right: auto; }
.tb-lightbox button.tb-lb-next { right: 6px; }
.tb-lb-count { position: absolute; top: 20px; left: 20px; color: #cbd5e1; font-size: .875rem; }

/* ------------------------------------------------------------------ Portfolio */
.tb-pf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tb-pf-filters[hidden] { display: none; }
.tb-pf-filters-center { justify-content: center; }

.tb-pf-filter {
	padding: 8px 18px;
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	color: inherit;
	background: transparent;
	border: 1.5px solid var(--tb-border);
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tb-pf-filter:hover { color: var(--tb-primary); border-color: var(--tb-primary); }
.tb-pf-filter.is-active { color: #fff; background: var(--tb-primary); border-color: var(--tb-primary); }
.tb-pf-filter:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 2px; }

.tb-pf-grid { display: grid; grid-template-columns: repeat(var(--tb-pf-cols, 3), minmax(0, 1fr)); gap: var(--tb-pf-gap, 20px); }
.tb-pf-item { min-width: 0; animation: tb-pf-in .4s ease both; }
.tb-pf-item.is-hidden { display: none; }
.tb-pf-card { position: relative; display: block; color: inherit; text-decoration: none; }
.tb-pf-media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--tb-pf-ratio, 4/3); background: #e5e7eb; }
.tb-pf-rounded .tb-pf-media { border-radius: 12px; }
.tb-pf-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .6, .3, 1); }
a.tb-pf-card:hover .tb-pf-media img { transform: scale(1.06); }

.tb-pf-title { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.tb-pf-cat { display: block; margin-top: 2px; font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .8; }
.tb-pf-text { display: block; margin-top: 6px; font-size: .9rem; line-height: 1.5; color: var(--tb-muted); }

.tb-pf-cap-overlay .tb-pf-info {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px;
	color: #fff;
	background: linear-gradient(transparent 35%, rgba(0, 0, 0, .74));
	opacity: 0;
	transition: opacity .35s ease;
}

.tb-pf-rounded.tb-pf-cap-overlay .tb-pf-info { border-radius: 12px; }
.tb-pf-cap-overlay .tb-pf-card:hover .tb-pf-info,
.tb-pf-cap-overlay .tb-pf-card:focus-visible .tb-pf-info { opacity: 1; }

@media (hover: none) {
	.tb-pf-cap-overlay .tb-pf-info { opacity: 1; }
}

.tb-pf-cap-below .tb-pf-info { display: block; padding: 14px 2px 0; }

@keyframes tb-pf-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 959.98px) {
	.tb-pf-grid { grid-template-columns: repeat(min(2, var(--tb-pf-cols, 3)), minmax(0, 1fr)); }
}

@media (max-width: 559.98px) {
	.tb-pf-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.tb-pf-item { animation: none; }
}

/* ------------------------------------------------------------------ Accordion */
.tb-acc-item { border: 1px solid var(--tb-border); }
.tb-acc-boxed .tb-acc-item { margin-bottom: 10px; overflow: hidden; background: #fff; color: #1f2937; border-radius: 10px; }
.tb-acc-lines .tb-acc-item { border-width: 0 0 1px; }
.tb-acc-lines .tb-acc-item:first-child { border-top-width: 1px; }
.tb-acc-plain .tb-acc-item { border: 0; }

.tb-acc-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	transition: color .2s ease;
}

.tb-acc-lines .tb-acc-summary,
.tb-acc-plain .tb-acc-summary { padding-inline: 0; }

.tb-acc-summary::-webkit-details-marker { display: none; }
.tb-acc-summary:hover { color: var(--tb-primary); }
.tb-acc-summary:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: -2px; }

.tb-acc-icon { position: relative; flex: none; width: 14px; height: 14px; }
.tb-acc-icon::before,
.tb-acc-icon::after { content: ""; position: absolute; transition: transform .25s ease; }

.tb-acc-chevron .tb-acc-icon::before {
	top: 1px;
	left: 2px;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.tb-acc-chevron details[open] > summary .tb-acc-icon::before { transform: translateY(4px) rotate(-135deg); }

.tb-acc-plus .tb-acc-icon::before { top: 6px; left: 0; width: 14px; border-top: 2px solid currentColor; }
.tb-acc-plus .tb-acc-icon::after  { top: 0; left: 6px; height: 14px; border-left: 2px solid currentColor; }
.tb-acc-plus details[open] > summary .tb-acc-icon::after { transform: scaleY(0); }

.tb-acc-body { padding: 0 20px 20px; line-height: 1.7; }
.tb-acc-lines .tb-acc-body,
.tb-acc-plain .tb-acc-body { padding-inline: 0; }
.tb-acc-body > :first-child { margin-top: 0; }
.tb-acc-body > :last-child { margin-bottom: 0; }

@supports (interpolate-size: allow-keywords) {
	.tb-acc { interpolate-size: allow-keywords; }
	.tb-acc-item::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s ease allow-discrete; }
	.tb-acc-item[open]::details-content { block-size: auto; }
}

/* ------------------------------------------------------------------ Schede */
.tb-tabs-nav { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tb-tab:focus-visible { outline-offset: -3px; }
.tb-tabs-center .tb-tabs-nav { justify-content: center; }

.tb-tab {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	font: inherit;
	font-weight: 600;
	white-space: nowrap;
	color: var(--tb-muted);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tb-tab:hover,
.tb-tab.is-active { color: var(--tb-primary); }
.tb-tab:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 2px; }
.tb-tab-icon { display: inline-flex; }

/* La linea di base è disegnata dentro il contenitore (ombra interna) invece che con un bordo + margine negativo:
   quel margine faceva traboccare le schede di 1px e, con overflow-x, compariva una barra di scorrimento verticale. */
.tb-tabs-underline .tb-tabs-nav { gap: 0; box-shadow: inset 0 -1px 0 var(--tb-border); }
.tb-tabs-underline .tb-tab { border-bottom: 2px solid transparent; }
.tb-tabs-underline .tb-tab.is-active { border-bottom-color: var(--tb-primary); }

.tb-tabs-pills .tb-tab { border-radius: 999px; }
.tb-tabs-pills .tb-tab.is-active { color: #fff; background: var(--tb-primary); }

.tb-tabs-boxed .tb-tabs-nav { box-shadow: inset 0 -1px 0 var(--tb-border); }
.tb-tabs-boxed .tb-tab { border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; }
.tb-tabs-boxed .tb-tab.is-active { background: #fff; border-color: var(--tb-border); }

.tb-tabs-stretch .tb-tab { flex: 1 1 0; justify-content: center; }

.tb-tab-panel { line-height: 1.7; }
/* "Contenuto a filo": i blocchi nelle schede usano tutta la larghezza e non hanno spazio sopra e sotto */
.tb-tabs-flush .tb-tab-panel .tb-section { padding-block: 0; }
.tb-tabs-flush .tb-tab-panel .tb-container { max-width: none; padding-inline: 0; }
.tb-tab-panel[hidden] { display: none; }
.tb-tab-panel:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 4px; }
.tb-tab-panel > :first-child { margin-top: 0; }
.tb-tab-panel > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Percorso a passi */
.tb-steps { list-style: none; margin: 0; padding: 0; }
.tb-step { position: relative; min-width: 0; padding-left: calc(var(--tb-st-size, 40px) + 20px); padding-bottom: var(--tb-st-gap, 28px); }
.tb-step:last-child { padding-bottom: 0; }
.tb-step-marker {
	position: absolute; left: 0; top: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
	width: var(--tb-st-size, 40px); height: var(--tb-st-size, 40px);
	background: var(--tb-st-bg, var(--tb-primary)); color: var(--tb-st-fg, #fff);
	font-weight: 800; font-size: calc(var(--tb-st-size, 40px) * .42); line-height: 1;
}
.tb-step-marker svg { width: 50%; height: 50%; }
.tb-steps-circle .tb-step-marker { border-radius: 50%; }
.tb-steps-rounded .tb-step-marker { border-radius: 10px; }
.tb-step:not(:last-child)::before {
	content: ''; position: absolute; width: 2px; left: calc(var(--tb-st-size, 40px) / 2 - 1px);
	top: calc(var(--tb-st-size, 40px) + 6px); bottom: 6px;
	background: var(--tb-st-line, var(--tb-border));
}
.tb-steps-noline .tb-step::before { display: none; }
.tb-step-body { min-width: 0; padding-top: calc(var(--tb-st-size, 40px) / 2 - .75em); }
.tb-step-title { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.3; color: var(--tb-st-title, inherit); }
.tb-step-text { line-height: 1.7; color: var(--tb-st-text, inherit); }
.tb-step-badge {
	display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px;
	font-size: .8rem; font-weight: 700; line-height: 1.4;
	color: var(--tb-st-badge, var(--tb-primary));
	background: color-mix(in srgb, var(--tb-st-badge, var(--tb-primary)) 16%, transparent);
}

/* ------------------------------------------------------------------ Tabella */
.tb-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tb-table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--tb-tbl-fg, inherit); background: var(--tb-tbl-bg, transparent); }
.tb-table-auto { width: auto; }
.tb-table caption { padding: 0 0 10px; caption-side: top; text-align: left; font-weight: 700; }
.tb-table th, .tb-table td { padding: 12px 16px; line-height: 1.5; font-weight: inherit; }
.tb-table-pad-compact th, .tb-table-pad-compact td { padding: 6px 10px; }
.tb-table-pad-spacious th, .tb-table-pad-spacious td { padding: 18px 24px; }
.tb-table-small { font-size: .875rem; }
.tb-table-large { font-size: 1.125rem; }
.tb-table-align-left th, .tb-table-align-left td { text-align: left; }
.tb-table-align-center th, .tb-table-align-center td { text-align: center; }
.tb-table-align-right th, .tb-table-align-right td { text-align: right; }
.tb-table-first-left tr > :first-child { text-align: left; }
.tb-table-first-center tr > :first-child { text-align: center; }
.tb-table-v-top th, .tb-table-v-top td { vertical-align: top; }
.tb-table-v-middle th, .tb-table-v-middle td { vertical-align: middle; }
.tb-table thead th { background: var(--tb-tbl-hbg, var(--tb-muted-bg, #f1f5f9)); color: var(--tb-tbl-hfg, inherit); font-weight: 700; }
.tb-table-head-upper thead th { text-transform: uppercase; letter-spacing: .06em; font-size: .85em; }
.tb-table tbody th { font-weight: 700; }
.tb-table-striped tbody tr:nth-child(even) > * { background: var(--tb-tbl-stripe, rgba(0, 0, 0, .04)); }
.tb-table-hover tbody tr:hover > * { background: var(--tb-tbl-stripe, rgba(0, 0, 0, .06)); }
/* Bordi */
.tb-table-b-rows th, .tb-table-b-rows td,
.tb-table-b-all th, .tb-table-b-all td { border-bottom: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
.tb-table-b-cols th, .tb-table-b-cols td,
.tb-table-b-all th, .tb-table-b-all td { border-right: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
.tb-table-b-cols tr > :last-child, .tb-table-b-all tr > :last-child { border-right-width: var(--tb-tbl-bw, 1px); }
.tb-table-b-all tr > :first-child, .tb-table-b-cols tr > :first-child { border-left: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
.tb-table-b-all thead tr > *, .tb-table-b-outer thead tr > * { border-top: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
.tb-table-b-all:not(:has(thead)) tbody tr:first-child > *, .tb-table-b-outer:not(:has(thead)) tbody tr:first-child > *,
.tb-table-b-rows:not(:has(thead)) tbody tr:first-child > * { border-top: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
.tb-table-b-rows thead tr > * { border-top: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
.tb-table-b-outer tr > :first-child { border-left: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
.tb-table-b-outer tr > :last-child { border-right: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
.tb-table-b-outer tbody tr:last-child > * { border-bottom: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); }
/* Angoli arrotondati */
.tb-table thead tr:first-child > :first-child, .tb-table:not(:has(thead)) tbody tr:first-child > :first-child { border-top-left-radius: var(--tb-tbl-r, 0); }
.tb-table thead tr:first-child > :last-child, .tb-table:not(:has(thead)) tbody tr:first-child > :last-child { border-top-right-radius: var(--tb-tbl-r, 0); }
.tb-table tbody tr:last-child > :first-child { border-bottom-left-radius: var(--tb-tbl-r, 0); }
.tb-table tbody tr:last-child > :last-child { border-bottom-right-radius: var(--tb-tbl-r, 0); }

/* ------------------------------------------------------------------ Contatori */
.tb-counters { display: grid; grid-template-columns: repeat(var(--tb-cnt-cols, 3), minmax(0, 1fr)); gap: var(--tb-cnt-gap, 32px); }
.tb-counter { position: relative; min-width: 0; }
.tb-counters-center { text-align: center; }
.tb-counters-center .tb-counter-icon { justify-content: center; }
.tb-counter-icon { display: flex; margin-bottom: 12px; color: var(--tb-primary); }
.tb-counter-num { font-weight: 800; line-height: 1.05; color: var(--tb-primary); font-variant-numeric: tabular-nums; }
.tb-cnt-medium { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.tb-cnt-large  { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.tb-cnt-xlarge { font-size: clamp(3rem, 7vw, 5rem); }
.tb-cnt-affix { margin-inline: .06em; font-size: .72em; }
.tb-counter-label { margin-top: 8px; font-size: .95rem; line-height: 1.4; color: var(--tb-muted); }

@media (min-width: 768px) {
	.tb-counters-divider .tb-counter:not(:first-child)::before {
		content: "";
		position: absolute;
		top: 8%;
		bottom: 8%;
		left: calc(var(--tb-cnt-gap, 32px) / -2);
		border-left: 1px solid var(--tb-border);
	}
}

@media (max-width: 767.98px) {
	.tb-counters { grid-template-columns: repeat(min(2, var(--tb-cnt-cols, 3)), minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ Testimonianze */
.tb-reviews-grid { display: grid; grid-template-columns: repeat(var(--tb-rev-cols, 3), minmax(0, 1fr)); gap: var(--tb-rev-gap, 24px); }

@media (max-width: 959.98px) { .tb-reviews-grid { grid-template-columns: repeat(min(2, var(--tb-rev-cols, 3)), minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .tb-reviews-grid { grid-template-columns: minmax(0, 1fr); } }

.tb-review { display: flex; flex-direction: column; gap: 14px; height: 100%; margin: 0; }
.tb-reviews-card .tb-review { padding: 26px; color: #1f2937; background: #fff; border: 1px solid var(--tb-border); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .05); }
.tb-reviews-center .tb-review { align-items: center; text-align: center; }
.tb-review-quote { flex: 1; margin: 0; padding: 0; font-size: 1.0625rem; line-height: 1.65; border: 0; }
.tb-review-quote p { margin: 0; }
.tb-review-by { display: flex; align-items: center; gap: 12px; color: inherit; }
.tb-review-photo { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.tb-review-initials { display: grid; place-items: center; font-size: .9rem; font-weight: 700; color: var(--tb-primary); background: color-mix(in srgb, var(--tb-primary) 14%, #fff); }
.tb-review-id { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.tb-review-role { font-size: .85rem; color: var(--tb-muted); }
.tb-stars { display: flex; gap: 2px; }
.tb-reviews-center .tb-stars { justify-content: center; }
.tb-star { fill: #d1d5db; }
.tb-star.is-on { fill: #f59e0b; }

/* ------------------------------------------------------------------ Team */
.tb-team { display: grid; grid-template-columns: repeat(var(--tb-team-cols, 3), minmax(0, 1fr)); gap: var(--tb-team-gap, 28px); }

@media (max-width: 959.98px) { .tb-team { grid-template-columns: repeat(min(2, var(--tb-team-cols, 3)), minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .tb-team { grid-template-columns: minmax(0, 1fr); } }

.tb-person { min-width: 0; }
.tb-team-center .tb-person { text-align: center; }
.tb-team-card .tb-person { padding: 16px 16px 22px; color: #1f2937; background: #fff; border: 1px solid var(--tb-border); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .05); }

.tb-person-photo { display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; aspect-ratio: var(--tb-team-ratio, 1/1); background: #e5e7eb; }
.tb-team-shape-rounded .tb-person-photo { border-radius: 14px; }
.tb-team-shape-circle .tb-person-photo { max-width: 220px; aspect-ratio: 1/1; border-radius: 50%; }
.tb-team-center.tb-team-shape-circle .tb-person-photo { margin-inline: auto; margin-bottom: 16px; }
.tb-person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-person-initials { font-size: 2.4rem; font-weight: 700; color: var(--tb-primary); }
.tb-person-name { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.tb-person-role { margin-top: 2px; font-size: .9rem; font-weight: 600; color: var(--tb-primary); }
.tb-person-bio { margin: 10px 0 0; font-size: .95rem; line-height: 1.6; color: var(--tb-muted); }
.tb-person-links { display: flex; gap: 10px; margin-top: 14px; }
.tb-team-center .tb-person-links { justify-content: center; }

.tb-person-links a {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	color: var(--tb-muted);
	border: 1px solid var(--tb-border);
	border-radius: 50%;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.tb-person-links a:hover { color: #fff; background: var(--tb-primary); border-color: var(--tb-primary); }

/* ------------------------------------------------------------------ Prezzi */
.tb-pricing { display: grid; grid-template-columns: repeat(var(--tb-pr-cols, 3), minmax(0, 1fr)); gap: var(--tb-pr-gap, 24px); align-items: stretch; }

@media (max-width: 959.98px) { .tb-pricing { grid-template-columns: repeat(min(2, var(--tb-pr-cols, 3)), minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .tb-pricing { grid-template-columns: minmax(0, 1fr); } }

.tb-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; color: #1f2937; background: #fff; border: 1px solid var(--tb-border); border-radius: 16px; }
.tb-plan-hl { border: 2px solid var(--tb-pr-accent, var(--tb-primary)); box-shadow: 0 18px 44px rgba(0, 0, 0, .12); }

.tb-plan-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	padding: 4px 14px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	background: var(--tb-pr-accent, var(--tb-primary));
	border-radius: 999px;
	transform: translateX(-50%);
}

.tb-plan-name { margin: 0; font-size: 1.25rem; }
.tb-plan-desc { margin: 0; color: var(--tb-muted); }
.tb-plan-price { display: flex; align-items: baseline; gap: 6px; }
.tb-plan-amount { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; }
.tb-plan-period { color: var(--tb-muted); }
.tb-plan-features { display: grid; flex: 1; gap: 10px; margin: 6px 0 10px; padding: 0; list-style: none; text-align: left; }
.tb-plan-features li { position: relative; padding-left: 26px; line-height: 1.45; }

.tb-plan-features li::before {
	content: "";
	position: absolute;
	top: .3em;
	left: 1px;
	width: 13px;
	height: 7px;
	border-bottom: 2.5px solid var(--tb-pr-accent, var(--tb-primary));
	border-left: 2.5px solid var(--tb-pr-accent, var(--tb-primary));
	transform: rotate(-45deg);
}

.tb-pricing-center .tb-plan { text-align: center; }
.tb-pricing-center .tb-plan-price { justify-content: center; }
.tb-page .tb-plan a.tb-btn { align-self: stretch; justify-content: center; }
.tb-page .tb-plan a.tb-btn-outline { --tb-btn-fg: #1f2937; }
.tb-page .tb-plan a.tb-btn-outline:hover { --tb-btn-fg: #fff; }

/* ------------------------------------------------------------------ Loghi */
.tb-logos,
.tb-marquee-set { margin: 0; padding: 0; list-style: none; }

.tb-logos-grid { display: grid; grid-template-columns: repeat(var(--tb-logos-cols, 5), minmax(0, 1fr)); gap: var(--tb-logo-gap, 40px); align-items: center; }

@media (max-width: 767.98px) { .tb-logos-grid { grid-template-columns: repeat(min(3, var(--tb-logos-cols, 5)), minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .tb-logos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tb-logo { display: flex; align-items: center; justify-content: center; min-width: 0; }
.tb-logo a { display: flex; }
.tb-logo-img { display: block; width: auto; max-width: 100%; height: var(--tb-logo-h, 48px); object-fit: contain; transition: filter .3s ease, opacity .3s ease; }
.tb-logos-gray .tb-logo-img { filter: grayscale(1); opacity: .65; }
.tb-logos-gray .tb-logo:hover .tb-logo-img { filter: none; opacity: 1; }

.tb-logos-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tb-marquee-track { display: flex; width: max-content; animation: tb-marquee var(--tb-marquee, 30s) linear infinite; }
.tb-logos-marquee:hover .tb-marquee-track { animation-play-state: paused; }
.tb-marquee-set { display: flex; flex: none; align-items: center; gap: var(--tb-logo-gap, 40px); padding-inline: calc(var(--tb-logo-gap, 40px) / 2); }

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

@media (prefers-reduced-motion: reduce) {
	.tb-marquee-track { animation: none; }
	.tb-logos-marquee { overflow-x: auto; }
}

/* ------------------------------------------------------------------ Invito all'azione */
.tb-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: var(--tb-cta-pad, 40px); border-radius: var(--tb-cta-radius, 16px); }
.tb-cta-stacked { flex-direction: column; align-items: flex-start; justify-content: center; }
.tb-cta-stacked.tb-cta-center { align-items: center; text-align: center; }
.tb-cta-stacked.tb-cta-center .tb-cta-buttons { justify-content: center; }
.tb-cta-primary   { color: #fff; background: var(--tb-primary); }
.tb-cta-secondary { color: #fff; background: var(--tb-secondary); }
.tb-cta-muted     { background: var(--tb-muted-bg); }
.tb-cta-outline   { border: 2px solid var(--tb-primary); }
.tb-cta-text { flex: 1 1 320px; min-width: 0; }
.tb-page .tb-cta-title { margin: 0 0 .35em; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; color: inherit; }
.tb-cta-desc { margin: 0; font-size: 1.0625rem; line-height: 1.6; opacity: .92; }
.tb-cta-buttons { flex: none; }
.tb-page .tb-cta-primary a.tb-btn-text,
.tb-page .tb-cta-secondary a.tb-btn-text,
.tb-page .tb-cta-custom a.tb-btn-text { --tb-btn-fg: currentColor; }

/* ---- Video ---- */
.tb-video { margin: 0; max-width: 100%; }
.tb-video-frame { position: relative; aspect-ratio: var(--tb-video-ratio, 16/9); border-radius: var(--tb-video-radius, 0); overflow: hidden; background: #0b1220; }
.tb-video-shadow .tb-video-frame { box-shadow: 0 18px 44px rgba(15, 23, 42, .28); }
.tb-video-el, .tb-video-play, .tb-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tb-video-el { display: block; object-fit: cover; background: #000; }
.tb-video-play { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b, #0b1220); cursor: pointer; text-decoration: none; }
.tb-video-poster { object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.tb-video-play:hover .tb-video-poster { transform: scale(1.03); }
.tb-video-btn { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #0f172a; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); transition: transform .2s ease, background .2s ease; }
.tb-video-btn svg { margin-left: 4px; }
.tb-video-play:hover .tb-video-btn, .tb-video-play:focus-visible .tb-video-btn { transform: scale(1.09); background: #fff; }
.tb-video-play:focus-visible { outline: 3px solid var(--tb-primary, #2f7d4f); outline-offset: -3px; }
.tb-page .tb-video-caption { margin-top: .6em; font-size: .9rem; opacity: .75; text-align: center; }
@media (max-width: 640px) { .tb-video-btn { width: 60px; height: 60px; } }
.tb-video-portrait { max-width: 400px; margin-inline: auto; }

/* Blocco nel modulo mod_tbblock (larghezza adattata): colonne e griglie si impilano in base allo spazio del modulo */
.tb-block-fit { container-type: inline-size; }
@container (max-width: 600px) {
	.tb-block-fit .tb-row { grid-template-columns: minmax(0, 1fr) !important; }
	.tb-block-fit .tb-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 340px) {
	.tb-block-fit .tb-counters { grid-template-columns: minmax(0, 1fr); }
}

/* ========================================================== Effetti di scorrimento */
.tb-sticky { position: sticky; top: var(--tb-sticky-top, 20px); align-self: start; z-index: 2; }
[data-tb-parallax] { translate: 0 var(--tb-py, 0px); will-change: translate; }
@media (max-width: 959.98px) { .tb-col.tb-sticky { position: static; } }
@media (prefers-reduced-motion: reduce) { [data-tb-parallax] { translate: none; } }

.tb-progress { position: fixed; left: 0; right: 0; height: var(--tb-pg-h, 4px); z-index: 9998; pointer-events: none; }
.tb-progress-top { top: 0; }
.tb-progress-bottom { bottom: 0; }
.tb-progress i { display: block; height: 100%; background: var(--tb-pg-c, var(--tb-primary, #1e87f0)); transform-origin: 0 50%; transform: scaleX(0); }
body.admin-bar .tb-progress-top { top: 0; }

.tb-totop {
	position: fixed; bottom: 20px; z-index: 9997; width: 44px; height: 44px; border: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	background: var(--tb-tt-bg, var(--tb-primary, #1e87f0)); color: var(--tb-tt-fg, #fff);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
}
.tb-totop-right { right: 20px; }
.tb-totop-left { left: 20px; }
.tb-totop.is-visible { opacity: 1; transform: none; }
.tb-totop:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.tb-totop[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .tb-totop { transition: none; } }

/* ========================================================== Popup */
.tb-popup:not(.tb-popup-ready):not(.tb-popup-preview) { display: none; }
.tb-pop { position: fixed; inset: 0; z-index: 10000; display: flex; justify-content: center; align-items: center; padding: 16px; background: var(--tb-pop-overlay, rgba(0, 0, 0, .6)); opacity: 0; transition: opacity .2s; overflow-y: auto; overscroll-behavior: contain; }
.tb-pop[hidden] { display: none; }
.tb-pop.is-open { opacity: 1; }
.tb-pop-top { align-items: flex-start; }
.tb-pop-bottom { align-items: flex-end; }
.tb-pop-box { position: relative; width: 100%; max-width: var(--tb-pop-w, 640px); margin: auto 0; border-radius: 10px; overflow: hidden; background: var(--tb-bg, #fff); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); transform: translateY(14px) scale(.98); transition: transform .22s; }
.tb-pop.is-open .tb-pop-box { transform: none; }
.tb-pop-box > .tb-popup { display: block; margin: 0; }
.tb-pop-close { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(0, 0, 0, .55); color: #fff; }
.tb-pop-close:hover { background: rgba(0, 0, 0, .75); }
.tb-pop-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #1e87f0; }
html.tb-pop-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tb-pop, .tb-pop-box { transition: none; transform: none; } }

/* Anteprima nell'editor: la sezione resta visibile, con un'etichetta */
.tb-popup-preview { position: relative; outline: 2px dashed #7c3aed; outline-offset: -2px; }
.tb-popup-preview::before { content: attr(data-tb-popup-label); position: absolute; top: 6px; left: 6px; z-index: 5; background: #7c3aed; color: #fff; font: 600 11px/1 system-ui, sans-serif; padding: 5px 8px; border-radius: 4px; pointer-events: none; }

/* ========================================================== Modulo di contatto */
.tb-form-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.tb-ff { flex: 1 1 100%; min-width: 0; }
.tb-ff-half { flex: 1 1 calc(50% - 8px); min-width: 200px; }
.tb-ff label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92em; }
.tb-ff input[type=text], .tb-ff input[type=email], .tb-ff input[type=tel], .tb-ff select, .tb-ff textarea {
	width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit; color: inherit; background: var(--tb-input-bg, #fff);
	border: 1px solid rgba(0, 0, 0, .25); border-radius: 6px; transition: border-color .15s, box-shadow .15s;
}
.tb-ff textarea { resize: vertical; min-height: 120px; }
.tb-ff input:focus, .tb-ff select:focus, .tb-ff textarea:focus { outline: none; border-color: var(--tb-primary, #1e87f0); box-shadow: 0 0 0 3px rgba(30, 135, 240, .25); }
.tb-ff-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.tb-ff-check input { margin-top: .3em; flex: none; }
.tb-ff-req { color: #c0392b; }
.tb-form .tb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tb-form-actions { margin-top: 18px; }
.tb-form .tb-btn-block { width: 100%; justify-content: center; }
.tb-form button[disabled] { opacity: .65; cursor: progress; }
.tb-form-msg { margin-top: 14px; padding: 0; font-size: .95em; }
.tb-form-msg:not(:empty) { padding: 12px 14px; border-radius: 6px; border: 1px solid; }
.tb-form-msg.is-ok { background: #e8f6ec; color: #14532d; border-color: #86c79b; }
.tb-form-msg.is-err { background: #fdecea; color: #7f1d1d; border-color: #e5a29b; }
.tb-text-light .tb-ff input, .tb-text-light .tb-ff select, .tb-text-light .tb-ff textarea { color: #222; }
.tb-page button.tb-btn { font-family: inherit; }

/* ========================================================== Immagine hero */
.tb-heroimg { position: relative; overflow: hidden; width: 100%; margin-inline: auto; }
.tb-hi-img { display: block; width: 100%; max-width: 100%; object-fit: var(--tb-hi-fit, cover); object-position: var(--tb-hi-pos, center center); }
.tb-hi-height { height: var(--tb-hi-h, 480px); }
.tb-hi-ratio { aspect-ratio: var(--tb-hi-r, 21/9); }
.tb-hi-height .tb-hi-img, .tb-hi-ratio .tb-hi-img { height: 100%; }
.tb-hi-auto .tb-hi-img { height: auto; }
.tb-hi-ov { position: absolute; inset: 0; pointer-events: none; }
.tb-hi-link { display: block; color: inherit; }
@media (max-width: 1023.98px) {
	.tb-hi-height { height: var(--tb-hi-ht, var(--tb-hi-h, 480px)); }
}
@media (max-width: 639.98px) {
	.tb-hi-height { height: var(--tb-hi-hm, var(--tb-hi-ht, var(--tb-hi-h, 480px))); }
	.tb-hi-ratio { aspect-ratio: var(--tb-hi-rm, var(--tb-hi-r, 21/9)); }
	.tb-hi-img { object-position: var(--tb-hi-posm, var(--tb-hi-pos, center center)); }
}

/* ========================================================== Tabelle su smartphone */
@media (max-width: 639.98px) {
	/* Ridimensiona: la tabella resta nella larghezza disponibile, il testo va a capo */
	.tb-table-m-fit { table-layout: fixed; width: 100%; font-size: .85rem; }
	.tb-table-m-fit col { width: auto !important; }
	.tb-table-m-fit th, .tb-table-m-fit td { padding: 8px 6px; overflow-wrap: anywhere; hyphens: auto; }
	.tb-table-m-fit.tb-table-pad-spacious th, .tb-table-m-fit.tb-table-pad-spacious td { padding: 10px 8px; }
	.tb-table-wrap:has(.tb-table-m-fit) { overflow-x: visible; }

	/* Una scheda per riga: ogni cella mostra il titolo della sua colonna */
	.tb-table-m-stack, .tb-table-m-stack tbody { display: block; width: 100%; }
	.tb-table-m-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.tb-table-m-stack tr { display: block; margin-bottom: 14px; border: var(--tb-tbl-bw, 1px) solid var(--tb-tbl-bc, var(--tb-border)); border-radius: var(--tb-tbl-r, 6px); overflow: hidden; }
	.tb-table-m-stack th, .tb-table-m-stack td { display: flex; justify-content: space-between; gap: 16px; text-align: right !important; border: 0 !important; border-bottom: 1px solid var(--tb-tbl-bc, var(--tb-border)) !important; border-radius: 0 !important; }
	.tb-table-m-stack tr > :last-child { border-bottom: 0 !important; }
	.tb-table-m-stack td[data-label]::before { content: attr(data-label); font-weight: 700; text-align: left; flex: none; max-width: 45%; }
	.tb-table-m-stack td > *, .tb-table-m-stack td { overflow-wrap: anywhere; }
	.tb-table-wrap:has(.tb-table-m-stack) { overflow-x: visible; }
}

/* Tabelle inserite nei testi: mai oltre la larghezza del contenitore */
@media (max-width: 639.98px) {
	.tb-text table { width: 100% !important; max-width: 100%; table-layout: fixed; }
	.tb-text table td, .tb-text table th { overflow-wrap: anywhere; padding-inline: 6px; }
}

/* Accordion: titoli e risposte seguono l'allineamento scelto */
.tb-el-accordion.tb-align-center .tb-acc-title, .tb-el-accordion.tb-align-center .tb-acc-body { text-align: center; }
.tb-el-accordion.tb-align-right .tb-acc-title, .tb-el-accordion.tb-align-right .tb-acc-body { text-align: right; }
.tb-el-accordion.tb-align-center .tb-acc-title, .tb-el-accordion.tb-align-right .tb-acc-title { flex: 1; }
