/* ==========================================================================
   TerPack — design system
   Palette dal marchio (CMYK → RGB), tipografia Poppins come nel catalogo.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: italic; font-weight: 200; font-display: swap; src: url("../fonts/poppins-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }

:root {
	/* Marchio */
	--tp-red: #EE2851;
	--tp-teal: #207167;
	--tp-teal-dark: #134A43;
	--tp-teal-light: #2F9283;

	/* Neutri (carta del catalogo) */
	--tp-bg: #F3F4F1;
	--tp-paper: #FFFFFF;
	--tp-ink: #151615;
	--tp-ink-2: #4A4F4C;
	--tp-muted: #8C928F;
	--tp-faint: #D5DDDA;
	--tp-line: #151615;
	--tp-line-soft: #D7DBD7;

	/* Tipografia */
	--tp-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tp-fs-body: clamp(16px, 0.35vw + 15px, 18px);
	--tp-fs-lead: clamp(19px, 0.8vw + 15px, 26px);
	--tp-fs-h3: clamp(22px, 1.4vw + 14px, 36px);
	--tp-fs-h2: clamp(34px, 3.6vw + 14px, 76px);
	--tp-fs-display: clamp(44px, 6.4vw + 10px, 128px);

	/* Layout */
	--tp-gutter: clamp(16px, 4vw, 72px);
	--tp-max: 1680px;
	--tp-header-h: 88px;
	--tp-radius-pill: 999px;
	--tp-ease: cubic-bezier(.22, .8, .2, 1);
}

@media (max-width: 767px) {
	:root { --tp-header-h: 68px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.tp-site {
	margin: 0;
	background: var(--tp-bg);
	color: var(--tp-ink);
	font-family: var(--tp-font);
	font-size: var(--tp-fs-body);
	font-weight: 300;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

.tp-site h1, .tp-site h2, .tp-site h3, .tp-site h4, .tp-site h5, .tp-site h6 {
	font-family: var(--tp-font);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: inherit;
	margin-top: 0;
}

.tp-site a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.tp-site a:hover { color: var(--tp-teal); }
.tp-site ::selection { background: var(--tp-teal); color: var(--tp-bg); }
.tp-site :focus-visible { outline: 2px solid var(--tp-red); outline-offset: 3px; }

/* Pagine non-Elementor (blog, policy…): spazio per l'header fisso */
.tp-site:not(.elementor-page) .site-main { padding-top: calc(var(--tp-header-h) + 40px); padding-bottom: 80px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Utility per Elementor (Avanzate → Classi CSS)
   -------------------------------------------------------------------------- */

/* Titoli */
.tp-display, .tp-display .elementor-heading-title {
	font-size: var(--tp-fs-display) !important; font-weight: 300 !important;
	line-height: 0.98 !important; letter-spacing: -0.035em !important;
}
.tp-h2, .tp-h2 .elementor-heading-title {
	font-size: var(--tp-fs-h2) !important; font-weight: 300 !important;
	line-height: 1.05 !important; letter-spacing: -0.03em !important;
}
.tp-h3, .tp-h3 .elementor-heading-title {
	font-size: var(--tp-fs-h3) !important; font-weight: 400 !important; line-height: 1.2 !important;
}
.tp-italic, .tp-italic .elementor-heading-title { font-style: italic !important; font-weight: 200 !important; }
.tp-teal, .tp-teal .elementor-heading-title { color: var(--tp-teal) !important; }
.tp-red, .tp-red .elementor-heading-title { color: var(--tp-red) !important; }

/* Testi */
.tp-lead, .tp-lead p { font-size: var(--tp-fs-lead); line-height: 1.45; font-weight: 300; color: var(--tp-ink-2); }
.tp-muted, .tp-muted p { color: var(--tp-muted); }

/* Linee del catalogo */
.tp-rule-top { border-top: 1px solid var(--tp-line) !important; }
.tp-rule-bottom { border-bottom: 1px solid var(--tp-line) !important; }
.tp-rule-left { border-left: 1px solid var(--tp-line) !important; }
.tp-rule-soft { border-color: var(--tp-line-soft) !important; }
.tp-dark .tp-rule-top, .tp-dark .tp-rule-bottom { border-color: color-mix(in srgb, var(--tp-bg) 28%, transparent) !important; }
.tp-card-link.tp-rule-top:last-child { border-bottom: 1px solid var(--tp-line) !important; }
.tp-site .tp-card-link, .tp-site .tp-card-link:hover { text-decoration: none; }

/* Sezioni */
.tp-hero { min-height: 100svh; padding-top: var(--tp-header-h); box-sizing: border-box; }
.tp-pad-header { padding-top: calc(var(--tp-header-h) + 24px) !important; }
.tp-dark { background: var(--tp-teal-dark); color: var(--tp-bg); }
.tp-dark .tp-label, .tp-dark .tp-lead, .tp-dark .tp-lead p { color: var(--tp-bg); }
.tp-paper { background: var(--tp-paper); }

/* Etichetta di sezione: «Numeri [01]» */
.tp-label {
	display: inline-flex; align-items: baseline; gap: 0.5em;
	margin: 0 0 1.2em;
	font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--tp-teal);
}
.tp-label > span:first-child:not(.tp-label__num) { color: var(--tp-muted); }
.tp-label__num { color: var(--tp-red); letter-spacing: 0.04em; }

/* Pulsante pill (anche sul widget Pulsante: classe tp-pill) */
a.tp-pill, button.tp-pill, .elementor-widget.tp-pill .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
	padding: 1.05em 2.1em;
	border: 1px solid currentColor; border-radius: var(--tp-radius-pill);
	background: transparent; color: var(--tp-teal);
	font-family: var(--tp-font); font-size: clamp(16px, 0.5vw + 14px, 21px); font-weight: 400; line-height: 1;
	text-decoration: none; cursor: pointer;
	transition: background-color .35s var(--tp-ease), color .35s var(--tp-ease), border-color .35s var(--tp-ease);
}
a.tp-pill:hover, button.tp-pill:hover, .elementor-widget.tp-pill .elementor-button:hover {
	background: var(--tp-teal); border-color: var(--tp-teal); color: var(--tp-bg);
}
.tp-pill--sm, a.tp-pill--sm, button.tp-pill--sm { padding: 0.8em 1.4em; font-size: 15px; }
.tp-dark a.tp-pill, .tp-dark .elementor-widget.tp-pill .elementor-button { color: var(--tp-bg); }
.tp-dark a.tp-pill:hover, .tp-dark .elementor-widget.tp-pill .elementor-button:hover { background: var(--tp-bg); border-color: var(--tp-bg); color: var(--tp-teal-dark); }

/* Immagini prodotto scontornate */
img.tp-cutout, .tp-cutout img { filter: drop-shadow(0 30px 40px rgba(21, 22, 21, 0.16)); }

/* Corsivo d'accento nei titoli: <em> */
.tp-display em, .tp-h2 em, .tp-h3 em { font-style: italic; font-weight: 200; color: var(--tp-teal); }
.tp-dark .tp-display em, .tp-dark .tp-h2 em, .tp-dark .tp-h3 em { color: #F7B6C4; }
.tp-dark .tp-display, .tp-dark .tp-h2, .tp-dark .tp-h3 { color: var(--tp-bg) !important; }

/* Shortcode dentro i paragrafi Elementor: niente paragrafi vuoti */
.elementor p:empty { display: none; margin: 0; }
.tp-anchor { display: block; height: 0; scroll-margin-top: var(--tp-header-h); }

/* Animazioni: stato iniziale solo se il JS è attivo (e mai nell'editor) */
html.tp-js .tp-reveal { opacity: 0; transform: translateY(28px); }
html.tp-js .tp-split .tp-word { display: inline-block; opacity: 0; transform: translateY(0.5em); }
body.elementor-editor-active .tp-reveal,
body.elementor-editor-active .tp-split .tp-word { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	html.tp-js .tp-reveal, html.tp-js .tp-split .tp-word { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.tp-header {
	position: fixed; z-index: 1000; top: 0; left: 0; right: 0;
	height: var(--tp-header-h);
	transition: transform .5s var(--tp-ease), background-color .4s, box-shadow .4s;
}
.admin-bar .tp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tp-header { top: 46px; } }

.tp-header.is-scrolled {
	background: color-mix(in srgb, var(--tp-bg) 88%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--tp-line-soft);
}
.tp-header.is-hidden { transform: translateY(-110%); }
.tp-menu-open .tp-header { transform: none; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.tp-header__inner {
	box-sizing: border-box; height: 100%;
	max-width: none; margin: 0 auto; padding: 0 var(--tp-gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.tp-logo { display: inline-flex; align-items: center; line-height: 0; }
.tp-logo svg, .tp-logo img { height: 46px; width: auto; display: block; }
@media (max-width: 767px) { .tp-logo svg, .tp-logo img { height: 36px; } }
.tp-menu-open .tp-header .tp-logo path { fill: var(--tp-bg); transition: fill .3s; }

.tp-header__actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); }
.tp-header__link {
	font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--tp-teal) !important; text-decoration: none;
}
.tp-header__link:hover { color: var(--tp-red) !important; }
@media (max-width: 767px) { .tp-header__link, .tp-header__cta { display: none !important; } }
.tp-menu-open .tp-header__link, .tp-menu-open .tp-header__cta { opacity: 0; pointer-events: none; }

.tp-burger {
	position: relative; width: 44px; height: 44px; padding: 0;
	border: 0; background: transparent; cursor: pointer; color: var(--tp-teal);
}
.tp-burger:hover, .tp-burger:focus { background: transparent; color: var(--tp-red); }
.tp-burger__line {
	position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor;
	transition: transform .45s var(--tp-ease), top .45s var(--tp-ease);
}
.tp-burger__line:nth-child(1) { top: 17px; }
.tp-burger__line:nth-child(2) { top: 26px; }
.tp-menu-open .tp-burger { color: var(--tp-bg); }
.tp-menu-open .tp-burger__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.tp-menu-open .tp-burger__line:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Overlay menu */
.tp-menu {
	position: fixed; inset: 0; z-index: 999;
	background: var(--tp-teal); color: var(--tp-bg);
	clip-path: circle(0% at calc(100% - var(--tp-gutter) - 22px) calc(var(--tp-header-h) / 2));
	visibility: hidden;
	transition: clip-path .8s var(--tp-ease), visibility 0s linear .8s;
	overflow-y: auto;
}
.tp-menu-open .tp-menu {
	clip-path: circle(150% at calc(100% - var(--tp-gutter) - 22px) calc(var(--tp-header-h) / 2));
	visibility: visible; transition: clip-path .8s var(--tp-ease), visibility 0s;
}
.tp-menu-open { overflow: hidden; }

.tp-menu__inner {
	box-sizing: border-box; min-height: 100%;
	max-width: var(--tp-max); margin: 0 auto;
	padding: calc(var(--tp-header-h) + 5vh) var(--tp-gutter) 40px;
	display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr auto; gap: 40px 6vw;
}
@media (max-width: 900px) { .tp-menu__inner { grid-template-columns: 1fr; } }
.tp-menu .tp-label, .tp-menu .tp-label > span:first-child { color: color-mix(in srgb, var(--tp-bg) 65%, transparent); }

.tp-menu ul { list-style: none; margin: 0; padding: 0; }
.tp-menu a { color: var(--tp-bg); text-decoration: none; }
.tp-menu a:hover { color: var(--tp-bg); }

.tp-menu__big li { border-top: 1px solid color-mix(in srgb, var(--tp-bg) 25%, transparent); }
.tp-menu__big li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--tp-bg) 25%, transparent); }
.tp-menu__big a {
	display: block; padding: 0.18em 0;
	font-size: clamp(34px, 4.6vw, 80px); font-weight: 300; line-height: 1.15; letter-spacing: -0.03em;
	transition: transform .5s var(--tp-ease), color .3s;
}
.tp-menu__big a:hover { transform: translateX(0.3em); color: #FFD3DC; }

.tp-menu__list a { display: inline-block; padding: 0.2em 0; font-size: clamp(20px, 1.8vw, 30px); font-weight: 300; }
.tp-menu__list a:hover { font-style: italic; }

.tp-menu__foot {
	grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 40px;
	padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--tp-bg) 25%, transparent);
	font-size: 15px;
}

/* Voci del menu che entrano in sequenza */
.tp-menu li { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--tp-ease); }
.tp-menu-open .tp-menu li { opacity: 1; transform: none; }
.tp-menu-open .tp-menu li:nth-child(1) { transition-delay: .25s; }
.tp-menu-open .tp-menu li:nth-child(2) { transition-delay: .30s; }
.tp-menu-open .tp-menu li:nth-child(3) { transition-delay: .35s; }
.tp-menu-open .tp-menu li:nth-child(4) { transition-delay: .40s; }
.tp-menu-open .tp-menu li:nth-child(5) { transition-delay: .45s; }
.tp-menu-open .tp-menu li:nth-child(n+6) { transition-delay: .5s; }

/* --------------------------------------------------------------------------
   [tp_scroll_hint] e [tp_index] — hero
   -------------------------------------------------------------------------- */

.tp-scroll-hint {
	display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
	color: var(--tp-teal); text-decoration: none;
	font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
}
.tp-scroll-hint__arrow svg { width: 20px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.tp-scroll-hint__arrow { animation: tp-bob 2.2s var(--tp-ease) infinite; }
@keyframes tp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .tp-scroll-hint__arrow { animation: none; } }

.tp-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tp-index a {
	display: inline-flex; align-items: baseline; gap: 0.15em;
	font-size: 15px; font-weight: 400; text-decoration: none; color: var(--tp-ink);
}
.tp-index__b { color: var(--tp-muted); transition: color .3s; }
.tp-index__n { font-size: 0.7em; color: var(--tp-red); margin-right: 0.35em; }
.tp-index a:hover { color: var(--tp-teal); }
.tp-index a:hover .tp-index__b { color: var(--tp-teal); }

/* --------------------------------------------------------------------------
   [tp_stats]
   -------------------------------------------------------------------------- */

.tp-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	border-top: 1px solid var(--tp-line);
}
.tp-stats__item { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--tp-line-soft); }
@media (max-width: 767px) {
	.tp-stats { grid-template-columns: 1fr 1fr; column-gap: 20px; }
	.tp-stats__item { padding: 22px 0 24px; }
}
.tp-stats__img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.tp-stats__value {
	margin: 0; display: flex; align-items: baseline; gap: 0.08em;
	font-size: clamp(52px, 5.4vw, 104px); font-weight: 300; line-height: 1; letter-spacing: -0.04em;
}
.tp-stats__value small { font-size: 0.42em; color: var(--tp-teal); letter-spacing: 0; }
.tp-stats__label { margin: 12px 0 0; color: var(--tp-ink-2); font-size: 16px; }

/* --------------------------------------------------------------------------
   [tp_stage] — titolone + oggetto 3D
   -------------------------------------------------------------------------- */

.tp-stage {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	min-height: min(100svh, 1000px);
	padding: clamp(60px, 12vh, 160px) 0 clamp(120px, 20vh, 220px);
	box-sizing: border-box;
	isolation: isolate;
}
.tp-site .tp-stage__title {
	margin: 0; text-align: center; white-space: nowrap;
	font-size: min(10.2vw, 230px) !important; font-weight: 500 !important;
	line-height: 0.9 !important; letter-spacing: -0.035em !important; text-transform: uppercase;
	background: linear-gradient(100deg, var(--tp-teal-light) 0%, var(--tp-teal) 35%, var(--tp-teal-dark) 55%, var(--tp-teal) 75%, var(--tp-teal-light) 100%);
	-webkit-background-clip: text; background-clip: text;
	color: transparent !important; -webkit-text-fill-color: transparent;
	position: relative; z-index: 1;
}
.tp-stage__word { display: inline-block; }
@media (max-width: 767px) {
	.tp-site .tp-stage__title { white-space: normal; font-size: 16vw !important; }
	.tp-stage__word { display: block; }
}

.tp-stage__object {
	position: absolute; z-index: 2; left: 50%; top: 46%;
	width: min(54vw, 760px); aspect-ratio: 1 / 1;
	transform: translate(-50%, -50%);
	pointer-events: none;
	will-change: transform;
}
@media (max-width: 767px) { .tp-stage__object { width: 92vw; top: 44%; } }
.tp-stage__model { width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
.tp-stage__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(21, 22, 21, 0.22)); }
.tp-stage__ar { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); pointer-events: auto; background: var(--tp-bg) !important; }

.tp-stage__cta { position: absolute !important; z-index: 3; left: 0; bottom: clamp(32px, 7vh, 90px); }
@media (max-width: 767px) { .tp-stage__cta { left: 50%; transform: translateX(-50%); white-space: nowrap; } }

/* --------------------------------------------------------------------------
   [tp_lines] — griglia linee prodotto
   -------------------------------------------------------------------------- */

.tp-lines {
	position: relative;
	display: flex; flex-wrap: wrap;
	border-top: 1px solid var(--tp-line-soft);
}
.tp-lines__item {
	flex: 1 1 30%; box-sizing: border-box;
	display: flex; align-items: center; justify-content: center;
	padding: clamp(18px, 2.4vw, 34px) clamp(24px, 3.4vw, 64px);
	border-bottom: 1px solid var(--tp-line-soft);
	border-right: 1px solid var(--tp-line-soft);
	text-decoration: none !important;
	font-size: clamp(34px, 4.6vw, 88px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em;
	color: var(--tp-faint) !important;
	transition: color .45s var(--tp-ease), background-color .45s var(--tp-ease);
}
.tp-lines__item:nth-of-type(3n), .tp-lines__item:last-of-type { border-right: 0; }
.tp-lines__item.is-active, .tp-lines__item:hover, .tp-lines__item:focus-visible { color: var(--tp-teal) !important; }
.tp-lines:hover .tp-lines__item.is-active:not(:hover) { color: var(--tp-faint) !important; }
.tp-lines__item span { display: inline-block; transition: transform .45s var(--tp-ease); }
.tp-lines__item:hover span { transform: translateY(-4px); }
@media (max-width: 767px) {
	.tp-lines__item { flex-basis: 100%; justify-content: flex-start; border-right: 0; }
}

.tp-lines__preview {
	position: fixed; z-index: 50; top: 0; left: 0;
	width: clamp(160px, 16vw, 260px); aspect-ratio: 1 / 1;
	background: center / contain no-repeat;
	pointer-events: none; opacity: 0;
	transform: translate(-50%, -50%) scale(0.85);
	transition: opacity .3s, transform .4s var(--tp-ease);
	filter: drop-shadow(0 24px 30px rgba(21, 22, 21, 0.2));
}
.tp-lines__preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .tp-lines__preview { display: none; } }

/* --------------------------------------------------------------------------
   [tp_services_list] — elenco numerato 001…
   -------------------------------------------------------------------------- */

.tp-services { border-top: 1px solid var(--tp-line); }
.tp-services__row {
	display: grid; grid-template-columns: 72px 28px minmax(0, 1fr) minmax(0, 1.2fr) 40px;
	align-items: center; gap: 0 20px;
	padding: clamp(20px, 2.4vw, 34px) 12px;
	border-bottom: 1px solid var(--tp-line-soft);
	text-decoration: none !important; color: var(--tp-ink) !important;
	position: relative; overflow: hidden;
	transition: color .4s var(--tp-ease);
}
.tp-services__row::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--tp-teal); transform: scaleY(0); transform-origin: bottom;
	transition: transform .5s var(--tp-ease);
}
.tp-services__row:hover { color: var(--tp-bg) !important; }
.tp-services__row:hover::before { transform: scaleY(1); }
.tp-services__num { font-size: 14px; font-weight: 400; color: var(--tp-red); letter-spacing: 0.08em; }
.tp-services__row:hover .tp-services__num { color: var(--tp-bg); }
.tp-services__mark { width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; position: relative; }
.tp-services__mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: currentColor; }
.tp-services__title { font-size: var(--tp-fs-h3); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; }
.tp-services__desc { color: var(--tp-ink-2); font-size: 16px; transition: color .4s; }
.tp-services__row:hover .tp-services__desc { color: color-mix(in srgb, var(--tp-bg) 80%, transparent); }
.tp-services__arrow { font-size: 24px; justify-self: end; transition: transform .45s var(--tp-ease); }
.tp-services__row:hover .tp-services__arrow { transform: translateX(6px); }
@media (max-width: 767px) {
	.tp-services__row { grid-template-columns: 48px minmax(0, 1fr) 28px; gap: 6px 12px; }
	.tp-services__mark { display: none; }
	.tp-services__desc { grid-column: 2 / 3; font-size: 15px; }
	.tp-services__arrow { grid-row: 1; grid-column: 3; }
}

/* --------------------------------------------------------------------------
   Pagina Servizi: [tp_service_nav] + contenitori .tp-service
   -------------------------------------------------------------------------- */

.tp-service-nav {
	position: sticky; z-index: 20; top: 0;
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	padding: 14px 0;
	background: color-mix(in srgb, var(--tp-bg) 92%, transparent);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--tp-line-soft);
	transition: top .5s var(--tp-ease);
}
.tp-service-nav::-webkit-scrollbar { display: none; }
body:not(.tp-header-hidden) .tp-service-nav { top: var(--tp-header-h); }
.admin-bar .tp-service-nav { margin-top: 0; }
.tp-service-nav a {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 18px; border: 1px solid var(--tp-line-soft); border-radius: var(--tp-radius-pill);
	font-size: 14px; font-weight: 400; color: var(--tp-ink-2) !important; text-decoration: none !important; white-space: nowrap;
	transition: background-color .3s, color .3s, border-color .3s;
}
.tp-service-nav a small { color: var(--tp-red); font-size: 11px; letter-spacing: 0.08em; }
.tp-service-nav a:hover { border-color: var(--tp-teal); color: var(--tp-teal) !important; }
.tp-service-nav a.is-active { background: var(--tp-teal); border-color: var(--tp-teal); color: var(--tp-bg) !important; }
.tp-service-nav a.is-active small { color: #FFD3DC; }

.tp-service { scroll-margin-top: calc(var(--tp-header-h) + 90px); border-top: 1px solid var(--tp-line); }

/* Elenchi "voce in grassetto + descrizione" dentro i servizi (widget Editor di testo) */
.tp-checklist ul { list-style: none; margin: 0; padding: 0; }
.tp-checklist li { padding: 16px 0 16px 34px; border-top: 1px solid var(--tp-line-soft); position: relative; }
.tp-checklist li::before {
	content: ""; position: absolute; left: 0; top: 24px; width: 12px; height: 12px;
	border: 1px solid var(--tp-teal); border-radius: 50%;
}
.tp-checklist li strong { display: block; font-weight: 500; color: var(--tp-ink); }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.tp-marquee { overflow: hidden; white-space: nowrap; }
.tp-marquee__track { display: inline-flex; animation: tp-marquee 38s linear infinite; }
.tp-marquee__item {
	display: inline-flex; align-items: center; gap: 0.35em; padding-right: 0.35em;
	font-size: clamp(48px, 8vw, 150px); font-weight: 300; font-style: italic; line-height: 1.15; letter-spacing: -0.03em;
}
.tp-marquee__icon { width: 0.42em; height: 0.28em; fill: var(--tp-red); flex: 0 0 auto; }
@keyframes tp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tp-marquee__track { animation: none; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.tp-footer { background: var(--tp-teal-dark); color: var(--tp-bg); padding: clamp(40px, 6vw, 80px) 0 28px; }
.tp-footer a { color: var(--tp-bg) !important; text-decoration: none; }
.tp-footer a:hover { color: #FFD3DC !important; }
.tp-marquee--footer { padding-bottom: clamp(32px, 5vw, 72px); border-bottom: 1px solid color-mix(in srgb, var(--tp-bg) 22%, transparent); }

.tp-footer__grid, .tp-footer__bottom {
	box-sizing: border-box; max-width: var(--tp-max); margin: 0 auto; padding: 0 var(--tp-gutter);
}
.tp-footer__grid {
	display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
	padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 900px) { .tp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tp-footer__grid { grid-template-columns: 1fr; } }

.tp-logo--footer svg path { fill: var(--tp-bg); }
.tp-logo--footer svg, .tp-logo--footer img { height: 64px; }
.tp-footer__company { margin: 24px 0 6px; font-weight: 500; }
.tp-footer__legal { margin: 0; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--tp-bg) 70%, transparent); }
.tp-footer__title { margin: 0 0 16px; font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--tp-bg) 60%, transparent); }
.tp-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 16px; }

.tp-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
	padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--tp-bg) 22%, transparent);
	font-size: 13px; color: color-mix(in srgb, var(--tp-bg) 65%, transparent);
}
.tp-footer__policies { display: flex; gap: 24px; }
