/* ==========================================================================
   Transpolesana Service - stili del tema (mobile first)
   Valori presi dall'originale (karsfix + Elementor post-108): vedi EFFETTI-ORIGINALE.md
   Font: il font Gotham (Gotham-Black) e' stato tolto per scelta dell'utente: sull'originale il
   file non si caricava e i titoli si vedevano in Sora. Titoli = Sora 700 (600 dove l'originale lo usa).
   ========================================================================== */

/* --- Font self-hosted (Raleway e Sora variabili, licenza OFL in assets/fonts/OFL.txt) --- */
@font-face { font-family: "Raleway"; src: url("../fonts/1Ptug8zYS_SKggPNyC0ITw.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwV6-x.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* --- Stili di base --- */
:root {
	--ts-blue: #2158a8;          /* colore globale */
	--ts-blue-rgb: 33, 88, 168;
	--ts-navy: #041e42;          /* secondario, titoli */
	--ts-navy-rgb: 4, 30, 66;
	--ts-black: #151313;         /* "blackish" */
	--ts-black-rgb: 21, 19, 19;
	--ts-text: #565656;
	--ts-light: #f0f2f4;
	--ts-white: #fff;
	--ts-border: #dddddd;
	--ts-font-head: "Sora", sans-serif;
	--ts-font-body: "Raleway", sans-serif;
	--ts-font-btn: "Sora", sans-serif;
	--ts-radius: 30px;
	--ts-container: 1140px;
	--ts-section: 60px;          /* 100 desktop, 80 tablet, 60 mobile */
	--ts-edge: 10px;             /* margine dei riquadri a tutta larghezza */
	--ts-ease: cubic-bezier(.22, .61, .36, 1);
	--ts-back: cubic-bezier(.34, 1.56, .64, 1);
	--ts-header-h: 80px;
}
@media (min-width: 768px) { :root { --ts-section: 80px; } }
@media (min-width: 1025px) { :root { --ts-section: 100px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ts-white); color: var(--ts-text); font-family: var(--ts-font-body); font-size: 15px; line-height: 24px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ts-navy); text-decoration: none; transition: color .3s; }
a:hover { color: var(--ts-blue); }
h1, h2, h3, h4 { font-family: var(--ts-font-head); font-weight: 700; color: var(--ts-navy); text-transform: uppercase; margin: 0; }
p { margin: 0 0 25px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 3px; }
.ts-icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex: none; }
.ts-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--ts-white); padding: 10px 16px; }
.ts-skip:focus { left: 10px; }
.ts-container { width: 100%; max-width: calc(var(--ts-container) + 30px); margin: 0 auto; padding: 0 15px; }

/* Titoli di sezione: soprattitolo "/ TESTO /" + titolo con parole in evidenza (em) */
.ts-heading { margin-bottom: 40px; }
.ts-heading--center { text-align: center; }
.ts-sub { font-family: var(--ts-font-head); font-weight: 700; font-size: 13px; line-height: 24px; letter-spacing: .5px; text-transform: uppercase; color: var(--ts-blue); margin: 0 0 5px; }
.ts-sub::before { content: "/ "; }
.ts-sub::after { content: " /"; }
.ts-title { font-size: 30px; line-height: 34px; letter-spacing: -1px; color: var(--ts-navy); }
.ts-title em { font-style: normal; color: var(--ts-blue); }
.ts-heading--light .ts-title, .ts-title--light { color: var(--ts-white); }
@media (min-width: 768px) { .ts-title { font-size: 40px; line-height: 44px; } }
@media (min-width: 1025px) { .ts-title { font-size: 48px; line-height: 50px; letter-spacing: -2px; } }

/* Pulsante unico (Sora 15/600, pillola blu, freccia a destra) */
.ts-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ts-font-btn); font-size: 15px; font-weight: 600; line-height: 25px; text-transform: capitalize; color: var(--ts-white); background: var(--ts-blue); padding: 18px 30px; border-radius: 50px; transition: all .3s; }
.ts-btn:hover { color: var(--ts-white); background: var(--ts-navy); }
.ts-btn__icon { display: inline-flex; width: 14px; height: 14px; }
.ts-btn__icon img, .ts-btn__icon .ts-icon { width: 14px; height: 14px; }
.ts-btn--white { color: var(--ts-black); background: var(--ts-white); }
.ts-btn--white:hover { color: var(--ts-white); background: var(--ts-blue); }

/* ==========================================================================
   Testata
   ========================================================================== */
.ts-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; padding: 20px var(--ts-edge) 0; }
.ts-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--ts-header-h); padding: 0 20px; }
.ts-header__left, .ts-header__right { display: flex; align-items: center; gap: 30px; }
.ts-logo img { height: 40px; width: auto; }
.ts-logo__sticky, .ts-scania__sticky { display: none !important; }
.ts-hbtn { display: none; position: relative; padding-left: 50px; color: var(--ts-white); line-height: 1.2; transition: all .1s ease-in-out; }
.ts-hbtn:hover { color: var(--ts-white); }
.ts-hbtn__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--ts-blue); color: var(--ts-white); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ts-hbtn__t1 { display: block; font-size: 12px; opacity: .8; }
.ts-hbtn__t2 { display: block; font-family: var(--ts-font-btn); font-size: 14px; font-weight: 700; }
.ts-hbtn2 { display: none; align-items: center; gap: 8px; font-family: var(--ts-font-btn); font-size: 15px; font-weight: 600; line-height: 25px; color: var(--ts-black); background: var(--ts-white); padding: 16px 20px; border-radius: 30px; transition: all .1s ease-in-out; }
.ts-hbtn2:hover { color: var(--ts-white); background: var(--ts-blue); }
.ts-hbtn2 .ts-icon { width: 14px; height: 14px; }
.ts-scania { display: none; }
.ts-scania img { height: 40px; width: auto; }
.ts-burger { background: none; border: 0; color: var(--ts-white); font-size: 28px; padding: 6px; display: flex; }

/* Menu mobile: pannello laterale */
.ts-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--ts-white); z-index: 200; padding: 70px 25px 30px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ts-ease), visibility .4s; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); }
.ts-nav.is-open { transform: none; visibility: visible; }
.ts-nav__close { position: absolute; top: 20px; right: 20px; background: none; border: 0; font-size: 24px; color: var(--ts-navy); display: flex; }
.ts-menu > li { border-bottom: 1px solid rgba(var(--ts-black-rgb), .1); }
.ts-menu a { display: block; padding: 12px 0; font-family: var(--ts-font-head); font-weight: 700; font-size: 15px; letter-spacing: -.25px; text-transform: uppercase; color: var(--ts-navy); }
.ts-menu .current-menu-item > a, .ts-menu a:hover { color: var(--ts-blue); }
.ts-menu .sub-menu { padding: 0 0 10px 12px; }
.ts-menu .sub-menu a { font-family: var(--ts-font-btn); font-size: 13px; line-height: 20px; font-weight: 700; text-transform: none; padding: 7px 0; }
body.ts-menu-open { overflow: hidden; }

@media (min-width: 768px) {
	.ts-hbtn { display: block; }
}
@media (min-width: 1200px) {
	.ts-header { padding: 20px var(--ts-edge) 0; }
	.ts-header__bar { height: 110px; padding: 0 30px; }
	.ts-header__left, .ts-header__right { flex: 1; }
	.ts-header__right { justify-content: flex-end; }
	.ts-hbtn2, .ts-scania { display: inline-flex; }
	.ts-burger, .ts-nav__close { display: none; }
	/* Linguetta bianca del menu appesa in alto, angoli bassi arrotondati */
	.ts-nav { position: relative; top: -15px; transform: none; visibility: visible; width: auto; padding: 0 30px; overflow: visible; box-shadow: none; background: var(--ts-white); border-radius: 0 0 30px 30px; z-index: auto; align-self: flex-start; }
	.ts-menu { display: flex; align-items: center; }
	.ts-menu > li { border: 0; position: relative; display: flex; align-items: center; }
	.ts-menu > li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ts-blue); margin: 0 18px; }
	.ts-menu > li > a { padding: 0; line-height: 90px; font-size: 15px; transition: .3s; }
	/* Sottomenu chiuso di base: si apre solo con hover o focus da tastiera */
	.ts-menu .sub-menu { display: none; position: absolute; top: 100%; left: -30px; min-width: 300px; padding: 20px 0; background: var(--ts-white); border-radius: 0 0 20px 20px; box-shadow: 0 15px 40px rgba(0, 0, 0, .08); z-index: 10; }
	.ts-menu > li:hover > .sub-menu, .ts-menu > li:focus-within > .sub-menu { display: block; animation: ts-submenu .3s ease both; }
	.ts-menu .sub-menu a { padding: 6px 30px; color: var(--ts-navy); transition: color .3s, padding .3s; }
	.ts-menu .sub-menu a:hover { color: var(--ts-blue); padding-left: 36px; }
}

/* Testata fissa allo scroll: bianca, loghi blu, appuntamento scuro */
.ts-header.is-fixed { position: fixed; padding: 0; background: var(--ts-white); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); animation: ts-slide-down .4s var(--ts-ease) both; }
.ts-header.is-fixed .ts-header__bar { height: 90px; }
.ts-header.is-fixed .ts-logo__main, .ts-header.is-fixed .ts-scania__main { display: none !important; }
.ts-header.is-fixed .ts-logo__sticky, .ts-header.is-fixed .ts-scania__sticky { display: block !important; }
.ts-header.is-fixed .ts-hbtn, .ts-header.is-fixed .ts-hbtn:hover { color: var(--ts-black); }
.ts-header.is-fixed .ts-hbtn2 { color: var(--ts-white); background: var(--ts-black); }
.ts-header.is-fixed .ts-hbtn2:hover { background: var(--ts-blue); }
.ts-header.is-fixed .ts-burger { color: var(--ts-navy); }
@media (min-width: 1200px) {
	.ts-header.is-fixed .ts-nav { top: 0; margin: 0; align-self: center; border-radius: 0; }
	.ts-header.is-fixed .ts-menu > li > a { line-height: 90px; }
}
@keyframes ts-submenu { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes ts-slide-down { from { transform: translateY(-100%); } to { transform: none; } }

/* ==========================================================================
   S0 Slider (era Revolution Slider: dissolvenza, 9 s per slide, frecce)
   ========================================================================== */
.ts-hero { position: relative; margin: 20px var(--ts-edge) 0; height: clamp(520px, 57vw, 820px); border-radius: var(--ts-radius); overflow: hidden; background: var(--ts-navy); }
.ts-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.ts-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ts-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 9s linear; }
.ts-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .25), rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .35)); }
.ts-hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px 20px 40px; color: var(--ts-white); }
.ts-hero__title { color: var(--ts-white); font-size: 34px; line-height: 1.05; letter-spacing: -1px; margin-bottom: 20px; }
.ts-hero__sub { font-family: var(--ts-font-body); font-weight: 600; font-size: 14px; line-height: 22px; max-width: 760px; margin-bottom: 30px; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.ts-hero__btn .ts-icon { width: 14px; height: 14px; }
/* Entrata dei testi della slide attiva */
.ts-hero__title, .ts-hero__sub, .ts-hero__btn { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s var(--ts-ease); }
.ts-hero__slide.is-active .ts-hero__title, .ts-hero__slide.is-active .ts-hero__sub, .ts-hero__slide.is-active .ts-hero__btn { opacity: 1; transform: none; }
.ts-hero__slide.is-active .ts-hero__title { transition-delay: .5s; }
.ts-hero__slide.is-active .ts-hero__sub { transition-delay: .8s; }
.ts-hero__slide.is-active .ts-hero__btn { transition-delay: 1.1s; }
.ts-hero__arrow { position: absolute; top: 50%; z-index: 5; transform: translateY(-50%); width: 40px; height: 50px; border: 0; background: rgba(0, 0, 0, .5); color: var(--ts-white); font-size: 18px; display: none; align-items: center; justify-content: center; transition: background .3s; }
.ts-hero__arrow:hover { background: var(--ts-black); }
.ts-hero__arrow--prev { left: 0; border-radius: 0 6px 6px 0; }
.ts-hero__arrow--next { right: 0; border-radius: 6px 0 0 6px; }
@media (min-width: 768px) {
	.ts-hero__title { font-size: 56px; }
	.ts-hero__sub { font-size: 16px; line-height: 24px; }
	.ts-hero__arrow { display: flex; }
}
@media (min-width: 1200px) {
	.ts-hero { height: clamp(640px, 57vw, 820px); }
	.ts-hero__title { font-size: 75px; line-height: 75px; }
}

/* ==========================================================================
   S1 Contatori (numeri contornati, suffisso blu, conteggio all'ingresso)
   ========================================================================== */
.ts-counters { padding: var(--ts-section) 0; border-bottom: 1px solid var(--ts-border); }
.ts-counters__grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: none; padding: 0 30px; }
.ts-counter { text-align: center; }
.ts-counter__num { font-family: var(--ts-font-head); font-weight: 700; font-size: 55px; line-height: 55px; margin-bottom: 20px; white-space: nowrap; }
.ts-counter__digits { color: var(--ts-white); text-shadow: 1px 1px 0 var(--ts-black), -1px -1px 0 var(--ts-black), 1px -1px 0 var(--ts-black), -1px 1px 0 var(--ts-black); }
.ts-counter__suffix { font-size: .8em; line-height: 1; color: var(--ts-blue); vertical-align: baseline; position: relative; top: 0; margin-left: 4px; }
.ts-counter__title { font-size: 15px; line-height: 22px; margin-bottom: 8px; }
.ts-counter__text { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ts-black); margin: 0; }
@media (min-width: 768px) { .ts-counters__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; } .ts-counter__num { font-size: 70px; line-height: 70px; } }
@media (min-width: 1025px) { .ts-counters__grid { grid-template-columns: repeat(4, 1fr); } .ts-counter__num { font-size: 100px; line-height: 100px; } }

/* ==========================================================================
   S2 Carosello servizi (3 card + porzione, spazio 40px, frecce sopra)
   ========================================================================== */
.ts-services { padding: var(--ts-section) 0; overflow: hidden; }
.ts-navpill { display: inline-flex; gap: 4px; margin-top: 25px; padding: 4px; border: 1px solid rgba(var(--ts-black-rgb), .2); border-radius: 30px; }
.ts-navpill__btn { width: 34px; height: 30px; border: 0; border-radius: 20px; background: transparent; color: var(--ts-black); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .3s; }
.ts-navpill__btn:hover { background: var(--ts-blue); color: var(--ts-white); }
.ts-navpill--dark { background: var(--ts-navy); border-color: var(--ts-navy); }
.ts-navpill--dark .ts-navpill__btn { color: var(--ts-white); }
.ts-carousel { display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 var(--ts-edge) 10px; scrollbar-width: none; }
.ts-carousel::-webkit-scrollbar { display: none; }
.ts-scard { position: relative; flex: 0 0 85%; scroll-snap-align: start; padding-bottom: 10px; }
.ts-scard__media { display: block; position: relative; overflow: hidden; border-radius: var(--ts-radius); aspect-ratio: 370 / 290; }
.ts-scard__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(var(--ts-black-rgb), .61) 0%, rgba(var(--ts-black-rgb), .61) 13%, rgba(var(--ts-black-rgb), 0) 52%); }
.ts-scard__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ts-radius); transition: transform .4s ease-in-out; }
.ts-scard:hover .ts-scard__media img { transform: scale(1.05); }
.ts-scard__title { font-weight: 600; position: absolute; left: 30px; bottom: 50px; z-index: 6; width: 65%; font-size: 20px; line-height: 24px; text-transform: capitalize; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-scard__title a { color: var(--ts-white); }
.ts-scard__title a:hover { color: var(--ts-blue); }
/* Incavo bianco con il pulsante tondo */
.ts-scard__notch { position: absolute; right: 50px; bottom: 0; z-index: 2; padding: 8px 8px 0; border-radius: 50px 50px 0 0; background: var(--ts-white); }
.ts-scard__notch::before, .ts-scard__notch::after { content: ""; position: absolute; bottom: 10px; height: 40px; width: 20px; background: transparent; box-shadow: 0 20px 0 0 var(--ts-white); }
.ts-scard__notch::before { left: -19px; border-bottom-right-radius: 20px; }
.ts-scard__notch::after { right: -19px; border-bottom-left-radius: 20px; }
.ts-scard__btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--ts-white); background: var(--ts-black); transition: all .25s ease-in-out; }
.ts-scard:hover .ts-scard__btn { background: var(--ts-blue); color: var(--ts-white); }
@media (min-width: 768px) { .ts-scard { flex-basis: calc((100% - 40px) / 2.2); } .ts-scard__title { font-size: 24px; line-height: 28px; left: 40px; } }
@media (min-width: 1200px) { .ts-scard { flex-basis: calc((100% - 120px) / 3.3); } }

/* ==========================================================================
   S3 Perche' sceglierci (foto a sinistra, testo + 4 punti a destra)
   ========================================================================== */
.ts-why { display: grid; grid-template-columns: 1fr; padding: 0 0 var(--ts-section); }
.ts-why__media { margin: 0 var(--ts-edge); border-radius: var(--ts-radius); overflow: hidden; min-height: 360px; }
.ts-why__media img { width: 100%; height: 100%; object-fit: cover; }
.ts-why__body { padding: 0 30px 50px; }
/* Mobile e tablet: come l'originale, prima i testi e poi la foto */
@media (max-width: 1024px) {
	.ts-why__media { order: 2; }
	.ts-testi__media { order: 2; border-radius: 0 0 var(--ts-radius) var(--ts-radius); }
	.ts-testi__box { border-radius: var(--ts-radius) var(--ts-radius) 0 0; }
}
.ts-why__text { margin-bottom: 40px; }
.ts-why__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.ts-ibox__icon { display: inline-flex; font-size: 50px; line-height: 50px; color: var(--ts-blue); margin-bottom: 5px; transition: transform .25s ease-out; }
.ts-ibox:hover .ts-ibox__icon { transform: translateY(-5px); }
.ts-ibox__title { font-size: 20px; line-height: 24px; margin-bottom: 15px; }
.ts-ibox__text { margin: 0; }
.ts-why__btn { margin-top: 30px; }
@media (min-width: 768px) { .ts-why__grid { grid-template-columns: 1fr 1fr; } .ts-why__btn { margin-top: 70px; } }
@media (min-width: 1025px) {
	.ts-why { grid-template-columns: 1fr 1fr; padding: 0 40px; }
	.ts-why__media { margin: 0; min-height: 0; }
	.ts-why__body { padding: 70px 0 70px 80px; }
	.ts-ibox__title { font-size: 24px; line-height: 28px; margin-bottom: 25px; }
}

/* ==========================================================================
   S4 Parole che scorrono (testo contornato, riempimento blu all'hover)
   ========================================================================== */
.ts-marquee { padding: var(--ts-section) 0; overflow: hidden; }
.ts-marquee__track { display: flex; width: max-content; animation: ts-marquee 90s linear infinite; }
.ts-marquee__list { display: flex; flex: none; }
.ts-marquee__item { display: flex; align-items: center; gap: 50px; padding-left: 50px; white-space: nowrap; }
.ts-marquee__star { font-size: 30px; color: var(--ts-blue); }
.ts-marquee__text { position: relative; font-family: var(--ts-font-head); font-weight: 700; font-size: 50px; line-height: 70px; letter-spacing: -1px; text-transform: uppercase; color: transparent; -webkit-text-fill-color: var(--ts-white); text-shadow: 1px 1px 0 rgba(var(--ts-black-rgb), .2), -1px -1px 0 rgba(var(--ts-black-rgb), .2), 1px -1px 0 rgba(var(--ts-black-rgb), .2), -1px 1px 0 rgba(var(--ts-black-rgb), .2); transition: text-shadow .3s; }
.ts-marquee__text::before { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; max-width: 0; overflow: hidden; white-space: nowrap; -webkit-text-fill-color: var(--ts-blue); text-shadow: none; transition: max-width .8s var(--ts-ease); }
.ts-marquee__text:hover { text-shadow: 1px 1px 0 rgba(var(--ts-blue-rgb), .2), -1px -1px 0 rgba(var(--ts-blue-rgb), .2), 1px -1px 0 rgba(var(--ts-blue-rgb), .2), -1px 1px 0 rgba(var(--ts-blue-rgb), .2); }
.ts-marquee__text:hover::before { max-width: 100%; }
@keyframes ts-marquee { to { transform: translateX(-50%); } }
@media (min-width: 1025px) {
	.ts-marquee__item { gap: 100px; padding-left: 50px; }
	.ts-marquee__star { font-size: 60px; }
	.ts-marquee__text { font-size: 90px; line-height: 120px; }
}

/* ==========================================================================
   S5 Come lavoriamo (riquadro blu scuro, fisarmonica orizzontale delle 4 fasi)
   ========================================================================== */
.ts-steps-wrap { padding: 0 var(--ts-edge); }
.ts-steps-box { background: var(--ts-navy) var(--ts-steps-bg, none) top left no-repeat; border-radius: var(--ts-radius); padding: 60px 30px 30px; color: rgba(255, 255, 255, .7); }
.ts-steps { display: flex; flex-direction: column; gap: 30px; }
.ts-step { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--ts-radius); padding: 30px; transition: flex .7s ease-in-out; }
.ts-step__closed { display: none; }
.ts-step__open { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.ts-step__img { border-radius: var(--ts-radius); overflow: hidden; height: 220px; }
.ts-step__img img { width: 100%; height: 100%; object-fit: cover; }
.ts-step__content { position: relative; }
.ts-step__num { letter-spacing: -1px; font-family: var(--ts-font-head); font-weight: 600; font-size: 16px; line-height: 20px; color: var(--ts-blue); }
.ts-step__num--abs { position: absolute; top: 0; right: 0; }
.ts-step__icon { display: flex; font-size: 60px; line-height: 60px; padding-bottom: 20px; color: var(--ts-blue); }
.ts-step__title { letter-spacing: -1px; font-size: 24px; line-height: 28px; color: var(--ts-white); margin-bottom: 15px; }
.ts-step__text { margin: 0; max-width: 250px; }
@media (min-width: 1025px) {
	.ts-steps-box { padding: 100px 40px 70px; }
	.ts-steps { flex-direction: row; height: 430px; --ts-sgap: 30px; gap: var(--ts-sgap); }
	/* larghezze proporzionali 1:1:1:6 sulla larghezza del box (come l'originale: attivo 816, chiusi 136 a 1920), padding compreso */
	.ts-step { flex: none; width: calc((100% - 3 * var(--ts-sgap)) / 9); transition: width .7s ease-in-out; }
	.ts-step.is-active { width: calc((100% - 3 * var(--ts-sgap)) * 6 / 9); }
	.ts-step { padding: 40px; cursor: pointer; }
	.ts-step.is-active { cursor: default; }
	.ts-step__closed { display: grid; height: 100%; grid-template-rows: auto 1fr; justify-items: center; }
	.ts-step__vtitle { align-self: end; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--ts-font-head); font-weight: 700; font-size: 24px; line-height: 28px; text-transform: uppercase; color: var(--ts-white); max-height: 250px; }
	.ts-step.is-active .ts-step__closed { display: none; }
	.ts-step__open { position: absolute; inset: 40px; grid-template-columns: 1fr 1fr; gap: 0; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; min-width: 640px; }
	.ts-step.is-active .ts-step__open { opacity: 1; visibility: visible; transition-delay: .35s; }
	.ts-step__img { height: 100%; }
	.ts-step__content { padding: 60px 0 60px 70px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
	.ts-step__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ==========================================================================
   S6 Testimonianze (foto a sinistra, riquadro chiaro con recensioni a destra)
   ========================================================================== */
.ts-testi { display: grid; grid-template-columns: 1fr; padding: var(--ts-section) var(--ts-edge); }
.ts-testi__media { border-radius: var(--ts-radius) var(--ts-radius) 0 0; overflow: hidden; min-height: 300px; }
.ts-testi__media img { width: 100%; height: 100%; object-fit: cover; }
.ts-testi__box { background: var(--ts-light); border-radius: 0 0 var(--ts-radius) var(--ts-radius); padding: 40px 30px; min-width: 0; }
/* Una recensione alla volta, scorrimento orizzontale. La finestra e' 12px piu' larga per lato
   e ogni slide ha 12px di margine interno: le lettere ai bordi (virgolette, L) non vengono tagliate. */
.ts-tslider { position: relative; overflow: hidden; margin: 0 -12px; }
.ts-tslider__track { display: flex; will-change: transform; }
.ts-tslide { flex: 0 0 100%; min-width: 0; margin: 0; padding: 0 12px; }
.ts-tslide__quote { width: 40px; height: 32px; color: var(--ts-blue); display: block; }
.ts-tslide__text { font-family: var(--ts-font-btn); font-size: 20px; line-height: 30px; font-weight: 600; color: var(--ts-black); margin: 0; padding: 30px 0; }
.ts-tslide__name { display: block; font-family: var(--ts-font-head); font-weight: 600; font-size: 20px; line-height: 24px; text-transform: uppercase; color: var(--ts-blue); }
.ts-tslide__place { display: block; font-size: 13px; color: var(--ts-text); }
.ts-tslider__nav { position: absolute; right: 12px; bottom: 6px; z-index: 3; margin: 0; }
@media (min-width: 1025px) {
	.ts-testi { grid-template-columns: 1fr 1fr; gap: 40px; padding: var(--ts-section) 40px; }
	.ts-testi__media, .ts-testi__box { border-radius: var(--ts-radius); }
	.ts-testi__box { padding: 100px 160px 100px 100px; }
	.ts-tslide__text { font-size: 24px; line-height: 36px; padding: 60px 0 40px; }
}

/* ==========================================================================
   S7 Invito finale (foto con velo blu 75%, linguetta telefono ruotata a destra)
   ========================================================================== */
.ts-cta { padding: 0 var(--ts-edge) 100px; }
.ts-cta__box { position: relative; border-radius: var(--ts-radius); overflow: hidden; background: var(--ts-navy) var(--ts-cta-bg, none) center / cover no-repeat; padding: 60px 30px; }
.ts-cta__box::before { content: ""; position: absolute; inset: 0; background: var(--ts-navy); opacity: .75; }
.ts-cta__body { position: relative; z-index: 1; max-width: 965px; }
.ts-cta__body .ts-title { margin-bottom: 30px; }
/* Linguetta telefono (icon-heading-style-7 + rotazione Elementor -90deg, origine in basso a destra):
   nell'originale esiste solo da 1025px in su (display none su tablet e mobile) */
.ts-cta__tab { display: none; }
@media (min-width: 1025px) {
	.ts-cta__box { padding: 130px 0 100px 60px; }
	.ts-cta__body .ts-title { margin-bottom: 0; }
	.ts-cta__body .ts-btn { margin-top: 20px; }
	.ts-cta__tab { display: block; position: absolute; z-index: 2; right: -4px; top: 113px; transform-origin: right bottom; transform: translateY(-100%) rotate(-90deg); white-space: nowrap; }
	/* riquadro bianco: padding 20/40/0, angoli alti 20px, raccordi concavi ai lati della base */
	.ts-cta__phone { position: relative; display: flex; align-items: center; padding: 20px 40px 0; border-radius: 20px 20px 0 0; background: var(--ts-white); color: var(--ts-navy); }
	.ts-cta__phone::before, .ts-cta__phone::after { content: ""; position: absolute; bottom: 0; width: 20px; height: 40px; background: transparent; box-shadow: 0 15px 0 0 var(--ts-white); }
	.ts-cta__phone::before { right: 100%; border-bottom-right-radius: 15px; }
	.ts-cta__phone::after { left: 100%; border-bottom-left-radius: 15px; }
	.ts-cta__phone-icon { display: flex; padding-right: 15px; font-size: 25px; line-height: 25px; color: var(--ts-blue); transform: rotate(45deg); }
	.ts-cta__phone-num { font-family: var(--ts-font-head); padding: 2px 0; font-size: 18px; line-height: 18px; font-weight: 700; letter-spacing: -1px; text-transform: uppercase; color: var(--ts-navy); transition: color .3s; }
	.ts-cta__phone:hover .ts-cta__phone-num { color: var(--ts-blue); }
}

/* ==========================================================================
   Footer (sfumatura blu, logo centrato, 3 colonne + riga copyright)
   ========================================================================== */
.ts-footer { position: relative; margin: 0 var(--ts-edge); border-radius: var(--ts-radius) var(--ts-radius) 0 0; overflow: hidden; color: var(--ts-white); font-size: 14px; line-height: 22.4px; background: linear-gradient(to right, var(--ts-navy), var(--ts-blue)); padding-top: 60px; }
.ts-footer a { color: rgba(255, 255, 255, .85); }
.ts-footer a:hover { color: var(--ts-white); }
.ts-footer__brand { text-align: center; padding-bottom: 40px; }
.ts-footer__logo { width: 540px; max-width: 80%; margin: 0 auto 30px; }
.ts-social { display: flex; justify-content: center; gap: 24px; }
.ts-social a { font-size: 22px; display: flex; color: var(--ts-white); transition: transform .3s; }
.ts-social a:hover { transform: scale(.9); }
.ts-footer__cols { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 50px; text-align: center; }
.ts-footer__title { font-size: 18px; line-height: 24px; color: var(--ts-white); margin-bottom: 20px; }
.ts-footer__list li { margin-bottom: 6px; }
.ts-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: 18px 0; text-align: center; font-size: 12px; line-height: 20px; }
.ts-footer__bottom p { margin: 0; }
@media (min-width: 768px) {
	.ts-footer__cols { grid-template-columns: 2fr 1fr 1fr; text-align: left; }
	.ts-footer__list--2 { columns: 2; column-gap: 30px; }
}

/* Torna su: cerchio con anello di avanzamento dello scroll */
.ts-totop { position: fixed; right: 30px; bottom: 30px; z-index: 90; width: 50px; height: 50px; border-radius: 50px; background: var(--ts-white); box-shadow: inset 0 0 0 2px rgba(var(--ts-black-rgb), .1); display: flex; align-items: center; justify-content: center; color: var(--ts-blue); font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all .2s linear; }
.ts-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.ts-totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ts-totop__ring path { fill: none; stroke: var(--ts-blue); stroke-width: 4; stroke-dasharray: 307.9; stroke-dashoffset: 307.9; transition: stroke-dashoffset 10ms linear; }

/* Pagine di riserva */
.ts-page { padding: 200px 15px var(--ts-section); }


/* ==========================================================================
   Pagine interne (fase 3a parte 2): testata, Chi siamo, Servizi, Contatti,
   singolo servizio, pagine legali. Valori misurati sull'originale vivo.
   ========================================================================== */

/* Testata pagine interne (titlebar karsfix): riquadro 400px, raggio 30, margine 10, velo nero 20% */
.ts-titlebar { position: relative; margin: 20px var(--ts-edge) 0; min-height: 300px; border-radius: var(--ts-radius); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: 110px 20px 40px; background: var(--ts-titlebar-bg, none) center / cover no-repeat, linear-gradient(to right, var(--ts-navy) 30%, var(--ts-blue)); }
/* nell'originale la sfumatura blu copre tutta la testata (l'immagine di sfondo non si vede) */
.ts-titlebar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--ts-navy) 30%, var(--ts-blue)); }
.ts-titlebar__inner { position: relative; z-index: 1; }
.ts-titlebar__sub { font-family: var(--ts-font-head); font-weight: 700; font-size: 14px; line-height: 24px; letter-spacing: -1px; text-transform: uppercase; color: var(--ts-white); margin: 0 0 10px; }
.ts-titlebar__title { font-size: 34px; line-height: 38px; letter-spacing: -1px; color: var(--ts-white); }
@media (min-width: 768px) { .ts-titlebar__title { font-size: 48px; line-height: 50px; } }
@media (min-width: 1025px) {
	.ts-titlebar { height: 400px; padding: 85px 20px 0; }
	.ts-titlebar__sub { font-size: 18px; margin-bottom: 20px; }
	.ts-titlebar__title { font-size: 60px; line-height: 60px; }
}

/* --- Chi siamo: mission (titolo a sinistra, testo a destra) + 3 foto con linguetta --- */
.ts-mission { padding: var(--ts-section) 0 0; }
.ts-mission__head { display: grid; gap: 0 30px; max-width: none; padding: 0 20px; }
.ts-mission__text { font-size: 16px; line-height: 25.6px; }
.ts-mission__cards { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 10px 20px 0; }
.ts-mcard { position: relative; margin: 0; border-radius: var(--ts-radius); overflow: hidden; }
.ts-mcard img { width: 100%; aspect-ratio: 447 / 335; object-fit: cover; border-radius: var(--ts-radius); }
/* linguetta bianca centrata in basso con raccordi concavi (come le card servizi) */
.ts-mcard__tab { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 15px 30px 0; background: var(--ts-white); border-radius: 20px 20px 0 0; white-space: nowrap; }
.ts-mcard__tab::before, .ts-mcard__tab::after { content: ""; position: absolute; bottom: 0; width: 20px; height: 40px; background: transparent; box-shadow: 0 20px 0 0 var(--ts-white); }
.ts-mcard__tab::before { right: 100%; border-bottom-right-radius: 20px; }
.ts-mcard__tab::after { left: 100%; border-bottom-left-radius: 20px; }
.ts-mcard__title { font-size: 16px; line-height: 24px; letter-spacing: -1px; text-align: center; }
@media (min-width: 768px) { .ts-mission__cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1025px) {
	.ts-mission__head { grid-template-columns: 812fr 588fr; }
	.ts-mission__cards { padding-top: 0; }
	.ts-mcard__title { font-size: 20px; }
}

/* --- Chi siamo: traguardi (riquadro blu scuro, carosello 3 per volta, anni contornati) --- */
.ts-timeline-wrap { padding: var(--ts-section) var(--ts-edge) 0; }
.ts-timeline { background: var(--ts-navy) var(--ts-timeline-bg, none) top right no-repeat; border-radius: var(--ts-radius); padding: 60px 12px; overflow: hidden; }
.ts-timeline .ts-heading { margin-bottom: 30px; }
.ts-navpill--bare { border: 0; }
.ts-navpill--bare .ts-navpill__btn { color: var(--ts-white); }
.ts-timeline__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.ts-timeline__track::-webkit-scrollbar { display: none; }
.ts-tstep { flex: 0 0 100%; scroll-snap-align: start; position: relative; padding-right: 30px; }
.ts-tstep__year { font-family: var(--ts-font-btn); font-size: 60px; line-height: 60px; font-weight: 700; letter-spacing: -1px; margin: 0; -webkit-text-fill-color: var(--ts-navy); text-shadow: 1px 1px 0 var(--ts-blue), -1px -1px 0 var(--ts-blue), 1px -1px 0 var(--ts-blue), -1px 1px 0 var(--ts-blue); }
/* linea orizzontale con il pallino bianco (steps-dot: 10px, margine 30/0/50) */
.ts-tstep__dot { display: block; position: relative; height: 10px; margin: 30px 0 50px; }
.ts-tstep__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .15); }
.ts-tstep__dot::after { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ts-white); }
.ts-tstep__title { font-size: 22px; line-height: 26px; letter-spacing: -1px; font-weight: 600; color: var(--ts-white); margin-bottom: 15px; max-width: 365px; }
.ts-tstep__text { font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .6); margin: 0; max-width: 365px; }
@media (min-width: 768px) { .ts-tstep { flex-basis: 50%; } }
@media (min-width: 1025px) {
	.ts-timeline-wrap { padding: var(--ts-section) 40px 0; }
	.ts-timeline { padding: 100px 12px 95px; }
	.ts-tstep { flex-basis: 33.333%; }
	.ts-tstep__title { font-size: 26px; line-height: 30px; }
}

/* --- Chi siamo: officina (foto a sinistra, riquadro chiaro a destra) --- */
.ts-about { display: grid; grid-template-columns: 1fr; gap: 30px; padding: var(--ts-section) var(--ts-edge); }
.ts-about__media { border-radius: var(--ts-radius); overflow: hidden; min-height: 360px; }
.ts-about__media img { width: 100%; height: 100%; object-fit: cover; }
.ts-about__box { background: var(--ts-light); border-radius: var(--ts-radius); padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; }
.ts-about__text p:last-child { margin-bottom: 0; }
@media (min-width: 1025px) {
	.ts-about { grid-template-columns: 1fr 1fr; gap: 40px; padding: var(--ts-section) 40px; }
	.ts-about__media { min-height: 0; }
	.ts-about__box { padding: 65px 60px 100px; justify-content: space-between; }
}
/* loghi clienti (compare solo con la galleria compilata): scorrimento continuo */
.ts-clients { padding: 0 40px var(--ts-section); overflow: hidden; }
.ts-clients__track { display: flex; width: max-content; animation: ts-marquee 40s linear infinite; }
.ts-clients__list { display: flex; flex: none; align-items: center; }
.ts-clients__list li { width: 220px; padding: 0 30px; }
.ts-clients__list img { max-height: 80px; width: auto; margin: 0 auto; }

/* Chi siamo fino a 1024px: nell'originale titoli e testi sono centrati */
@media (max-width: 1024px) {
	.ts-mission__head, .ts-mission__head .ts-heading, .ts-about__box, .ts-tstep { text-align: center; }
	.ts-tstep { padding: 0 15px; }
	.ts-tstep__title, .ts-tstep__text { margin-left: auto; margin-right: auto; }
	.ts-tstep__dot::after { left: calc(50% - 5px); }
}

/* --- Servizi: griglia 2 colonne (service-style-1) --- */
.ts-slist { padding: var(--ts-section) 20px; }
.ts-slist__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.ts-sitem { position: relative; border: 1px solid rgba(var(--ts-black-rgb), .15); border-radius: var(--ts-radius); overflow: hidden; }
.ts-sitem__media { display: block; overflow: hidden; }
.ts-sitem__media img { width: 100%; aspect-ratio: 683 / 404; object-fit: cover; transition: transform .4s ease-in-out; }
.ts-sitem:hover .ts-sitem__media img { transform: scale(1.05); }
/* pulsante tondo blu nell'incavo bianco, a cavallo tra foto e testo */
.ts-sitem__notch { position: relative; float: right; right: auto; margin: -58px 50px 0 0; }
.ts-sitem__notch .ts-scard__btn { background: var(--ts-blue); }
.ts-sitem:hover .ts-sitem__notch .ts-scard__btn { background: var(--ts-navy); }
.ts-sitem__body { padding: 40px 35px 30px; clear: both; }
.ts-sitem__title { font-size: 20px; line-height: 24px; letter-spacing: -1px; font-weight: 600; margin-bottom: 10px; }
.ts-sitem__title a { color: var(--ts-navy); }
.ts-sitem__title a:hover { color: var(--ts-blue); }
.ts-sitem__text { margin: 0 0 20px; }
@media (min-width: 768px) { .ts-slist__grid { grid-template-columns: 1fr 1fr; } .ts-sitem__title { font-size: 24px; line-height: 28px; } }

/* --- Contatti --- */
.ts-cintro { position: relative; padding: var(--ts-section) 20px 0; overflow: hidden; }
.ts-cintro__deco { position: absolute; left: -137px; top: calc(var(--ts-section) + 10px); width: 427px; max-width: 70%; pointer-events: none; opacity: .5; }
.ts-cintro .ts-heading { position: relative; margin-bottom: 30px; }
.ts-cintro__text { position: relative; max-width: 1400px; margin: 0 auto; text-align: center; font-size: 15px; line-height: 26px; color: var(--ts-black); }
.ts-cboxes { display: grid; grid-template-columns: 1fr; gap: 30px; padding: var(--ts-section) 20px 0; }
.ts-cbox { border: 1px solid #e5e5e5; border-radius: var(--ts-radius); padding: 30px 40px; display: flex; flex-direction: column; transition: all .25s ease-out; }
.ts-cbox__title { font-size: 24px; line-height: 28px; letter-spacing: -1px; margin-bottom: 15px; }
.ts-cbox__text { margin: 0 0 40px; }
.ts-cbox__text a { color: var(--ts-text); }
.ts-cbox__text a:hover { color: var(--ts-blue); }
.ts-cbox__icon { margin-top: auto; width: 70px; height: 70px; border-radius: 20px; background: var(--ts-light); color: var(--ts-blue); font-size: 40px; display: flex; align-items: center; justify-content: center; transition: transform .25s ease-out; }
.ts-cbox:hover .ts-cbox__icon { transform: translateY(-5px); }
.ts-map { padding-top: var(--ts-section); line-height: 0; }
.ts-map iframe { width: 100%; height: 450px; border: 0; }
@media (min-width: 768px) { .ts-cboxes { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
@media (min-width: 1025px) { .ts-cbox { padding: 40px; min-height: 322px; } .ts-map iframe { height: 600px; } }

/* --- Singolo servizio: testo a sinistra, foto a destra --- */
.ts-sdetail { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 80px 8px 0; align-items: center; }
.ts-sdetail__text p { text-align: justify; }
.ts-sdetail__media img { width: 100%; border-radius: var(--ts-radius); }
@media (min-width: 1025px) { .ts-sdetail { grid-template-columns: 540fr 834fr; gap: 40px; } .ts-sdetail__text { padding-left: 0; } }
/* invito finale centrato (titolo 40/40) */
.ts-cta--center .ts-cta__body { margin: 0 auto; max-width: none; text-align: center; }
.ts-cta--center .ts-title { font-size: 26px; line-height: 30px; letter-spacing: -1px; }
@media (min-width: 768px) { .ts-cta--center .ts-title { font-size: 34px; line-height: 36px; } }
@media (min-width: 1025px) {
	.ts-cta--center .ts-cta__box { padding: 130px 40px 100px; }
	.ts-cta--center .ts-title { font-size: 40px; line-height: 40px; }
}

/* --- Pagine legali e di riserva --- */
.ts-legal { padding: var(--ts-section) 0; }
.ts-content h2 { font-size: 24px; line-height: 28px; letter-spacing: -1px; margin: 40px 0 15px; }
.ts-content h3 { font-size: 20px; line-height: 24px; letter-spacing: -1px; margin: 30px 0 10px; }
.ts-content ul { list-style: disc; padding-left: 20px; margin: 0 0 25px; }
.ts-content hr { border: 0; border-top: 1px solid var(--ts-border); margin: 30px 0; }
.ts-content a { color: var(--ts-blue); }
.ts-404 { text-align: center; }

/* ==========================================================================
   Animazioni di entrata (come Elementor: 1,25 s) e titoli lettera per lettera
   Attive solo con JS e senza "riduci movimento".
   ========================================================================== */
.ts-js [data-ts-anim] { opacity: 0; }
.ts-js [data-ts-anim].is-in { opacity: 1; animation: 1.25s both; }
.ts-js [data-ts-anim="fadeInLeft"].is-in { animation-name: ts-fadeInLeft; }
.ts-js [data-ts-anim="fadeInRight"].is-in { animation-name: ts-fadeInRight; }
.ts-js [data-ts-anim="fadeInUp"].is-in { animation-name: ts-fadeInUp; }
.ts-js [data-ts-anim="zoomIn"].is-in { animation-name: ts-zoomIn; }
.ts-js [data-ts-anim="fadeIn"].is-in { animation-name: ts-fadeIn; }
@keyframes ts-fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes ts-fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes ts-fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes ts-zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ts-fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ts-split-w { display: inline-block; white-space: nowrap; }
.ts-split-c { display: inline-block; }
.ts-js [data-ts-split] .ts-split-c { opacity: 0; transform: translateX(50px); transition: opacity 1s ease, transform 1s var(--ts-back); }
.ts-js [data-ts-split].is-in .ts-split-c { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.ts-js [data-ts-anim], .ts-js [data-ts-split] .ts-split-c { opacity: 1 !important; transform: none !important; animation: none !important; }
	.ts-marquee__track { animation: none; }
	.ts-hero__bg { transition: none; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Ritocchi misurati sul vivo (2026-11-12): linguetta menu, footer, carosello, mappa
   ========================================================================== */
/* Linguetta menu: nell'originale parte 10px sopra la barra, alta 90px, voci alte 80px (testo piu' in basso) */
@media (min-width: 1200px) {
	.ts-nav { top: -10px; padding-top: 10px; }
	.ts-menu > li > a { line-height: 80px; }
	.ts-header.is-fixed .ts-nav { padding-top: 0; }
	.ts-header.is-fixed .ts-menu > li > a { line-height: 90px; }
}
/* Pulsante tondo delle card servizi: #041e42 (karsfix service-style-2), hover blu */
.ts-scard__btn { background: var(--ts-navy); }
/* Footer: colonne a tutta larghezza (2/1/1), titoli Gotham 24/24, social pieni 50x50, striscia bianca del copyright */
.ts-footer { padding-top: 65px; }
.ts-footer > .ts-container { max-width: none; padding: 0 22px; }
.ts-footer__title { font-size: 24px; line-height: 24px; letter-spacing: -1px; margin-bottom: 20px; }
.ts-footer__list li { line-height: 20px; }
.ts-footer__cols { padding-bottom: 60px; }
.ts-social { gap: 5px; }
.ts-social a { width: 50px; height: 50px; align-items: center; justify-content: center; font-size: 25px; border-radius: 10%; }
.ts-footer__bottom { margin: 0 10px; border: 0; border-radius: var(--ts-radius) var(--ts-radius) 0 0; background: var(--ts-white); color: var(--ts-text); padding: 20px 0; }
.ts-footer__bottom a { color: var(--ts-navy); }
.ts-footer__bottom a:hover { color: var(--ts-blue); }
@media (min-width: 768px) {
	.ts-footer__cols { gap: 0; padding-bottom: 100px; }
	.ts-footer__col { padding: 10px 10px 0; }
	.ts-footer__list--2 { column-gap: 0; }
}
/* Mappa contatti: 100px prima del footer */
.ts-map { padding-bottom: var(--ts-section); }
/* righe footer come il vivo: link 14/20 con 14px tra le righe, copyright 14px */
.ts-footer__list li { margin-bottom: 14px; }
.ts-footer__bottom { font-size: 14px; line-height: 22px; }

/* ==========================================================================
   Fedelta' sugli schermi larghi (misure CDP 1920/1680/1440/1366, 2026-11-12,
   tabelle in riferimento/misure/). Originale: contenitore Elementor 1424px,
   contenuto "boxed" 1400px, margine dei riquadri a tutta larghezza variabile:
   0 fino a 1400px, 10px fino a 1600, 30px fino a 1800, 40px oltre.
   ========================================================================== */
:root { --ts-top: 20px; --ts-wide: 1424px; --ts-boxed: 1400px; }
@media (min-width: 1025px) { :root { --ts-edge: 0px; } }
@media (min-width: 1401px) { :root { --ts-edge: 10px; } }
@media (min-width: 1601px) { :root { --ts-edge: 30px; --ts-top: 30px; } }
@media (min-width: 1801px) { :root { --ts-edge: 40px; } }
.ts-header { padding: var(--ts-top) var(--ts-edge) 0; }
.ts-hero, .ts-titlebar { margin-top: var(--ts-top); }
.ts-sub { margin: 1px 0 5px; }
@media (min-width: 1025px) {
	/* slider: proporzione 1920x1080 di Revolution Slider, massimo 820px */
	.ts-hero { height: min(56.25vw, 820px); }
	/* contatori: contenitore 1424, 4 colonne, 15px di respiro tra le colonne */
	.ts-counters__grid { max-width: var(--ts-wide); margin: 0 auto; padding: 0; gap: 0; }
	.ts-counter { padding: 0 15px; }
	.ts-counter:first-child { padding-left: 0; }
	.ts-counter:last-child { padding-right: 0; }
	.ts-counter__num { font-size: 75px; line-height: 100px; letter-spacing: -1px; }
	.ts-counter__title { font-size: 20px; line-height: 30px; letter-spacing: -1px; margin-bottom: 0; }
	.ts-counter__text { font-size: 15px; line-height: 24px; }
	/* carosello servizi: parte dal bordo del contenitore 1424 e arriva al bordo destro, 3,6 card visibili */
	.ts-services { --ts-cl: max(0px, (100vw - var(--ts-wide)) / 2); --ts-cw: calc(100vw - var(--ts-cl)); }
	.ts-services .ts-heading { margin-bottom: 50px; }
	.ts-services .ts-navpill { margin-top: 50px; }
	.ts-carousel { margin-left: var(--ts-cl); width: var(--ts-cw); padding: 0 0 10px; }
	.ts-scard { flex-basis: calc((var(--ts-cw) - 104px) / 3.6); }
	.ts-scard__media { aspect-ratio: 432 / 309; }
	.ts-scard__title { left: 40px; bottom: 30px; letter-spacing: -1px; }
	/* perche' sceglierci */
	.ts-why .ts-heading { margin-bottom: 25px; }
	.ts-why__text { font-size: 16px; line-height: 26px; margin-bottom: 50px; }
	.ts-why__grid { gap: 15px 30px; }
	.ts-ibox__icon { margin-bottom: 13px; }
	.ts-ibox__title { letter-spacing: -1px; }
	.ts-why__media, .ts-testi__media, .ts-about__media { position: relative; }
	.ts-why__media img, .ts-testi__media img, .ts-about__media img { position: absolute; inset: 0; }
	/* come lavoriamo: riquadro largo al massimo 1424, fasi 6:1 con 40px tra le fasi */
	.ts-steps-wrap { padding: 0; }
	.ts-steps-box { max-width: var(--ts-wide); margin: 0 auto; padding: 100px 40px 70px; }
	.ts-steps-box .ts-heading { width: 600px; max-width: 100%; margin: 0 0 90px auto; text-align: left; }
	.ts-steps { height: 434px; --ts-sgap: 40px; gap: var(--ts-sgap); margin-bottom: 40px; }
	.ts-step__open { grid-template-columns: 1fr 390px; }
	.ts-step__content { padding: 60px 70px; }
	/* testimonianze: colonne 50% -30 / 50% -10 con 40px in mezzo */
	.ts-testi { grid-template-columns: calc(50% - 30px) calc(50% - 10px); }
	.ts-testi .ts-heading { margin-bottom: 50px; }
	/* invito finale: riquadro boxed 1400 (12px di margine sotto i 1424) */
	.ts-cta { padding: 0 12px 100px; }
	.ts-cta__box { max-width: var(--ts-boxed); margin: 0 auto; }
}
@media (min-width: 1025px) {
	/* slider: titolo 72/72 a 440/820 dell'altezza, sottotitolo 18/24 */
	.ts-hero__content { justify-content: flex-start; padding-top: min(30.2vw, 440px); }
	/* come lo slider originale: sotto i 1465px di larghezza il testo si riduce in proporzione */
	.ts-hero__title { font-size: min(72px, 4.915vw); line-height: min(72px, 4.915vw); margin-bottom: 12px; }
	.ts-hero__sub { font-size: min(18px, 1.245vw); line-height: min(24px, 1.64vw); max-width: 640px; margin-bottom: 0; }
	/* come lavoriamo: il titolo sta su 2 righe come l'originale */
	.ts-steps-box .ts-title { margin-right: -40px; }
	/* testimonianze: virgolette (32px) + 28px = 60px sopra il testo come l'originale */
	.ts-tslide__text { padding-top: 28px; }
	.ts-tslide__name { letter-spacing: -1px; }
	.ts-tslide__place { font-size: 14px; line-height: 24px; }
}
@media (min-width: 1025px) { .ts-services { --ts-cw: calc(100vw - var(--ts-cl) - 12px); } }
/* Testata: gli elementi non si restringono; spazi del menu e del logo come l'originale per fascia di larghezza */
@media (min-width: 1200px) {
	.ts-logo, .ts-hbtn, .ts-hbtn2, .ts-scania { flex-shrink: 0; white-space: nowrap; }
	.ts-header { --ts-lipad: 18px; --ts-logogap: 10px; }
	.ts-header__left { gap: var(--ts-logogap); }
	.ts-nav { padding-left: calc(10px + var(--ts-lipad)); padding-right: calc(10px + var(--ts-lipad)); }
	.ts-menu > li + li::before { margin: 0 calc(var(--ts-lipad) - 3px); }
	.ts-hbtn2 { padding: 13px 20px; }
	.ts-logo img { width: 246px; height: auto; }
}
@media (min-width: 1401px) { .ts-header { --ts-lipad: 20px; --ts-logogap: 20px; } }
@media (min-width: 1601px) {
	.ts-header { --ts-lipad: 25px; --ts-logogap: 80px; }
	.ts-hbtn2 { padding: 15px 35px; }
	.ts-logo img { width: auto; height: 40px; }
	.ts-menu > li > a { line-height: 80px; }
}
@media (min-width: 1801px) { .ts-header { --ts-lipad: 27px; } }
/* frecce del carosello servizi: pillola 100x50 con bordo scuro */
.ts-services .ts-navpill { padding: 0; gap: 0; border-color: var(--ts-black); border-radius: 25px; }
.ts-services .ts-navpill__btn { width: 49px; height: 48px; border-radius: 25px; }
.ts-footer__list li { margin-bottom: 15px; }
/* Pagine interne: nell'originale il contenuto sta nel riquadro "boxed" da 1400px (12px di margine sotto i 1424) */
@media (min-width: 1025px) {
	.ts-mission__head, .ts-mission__cards, .ts-cintro, .ts-cboxes, .ts-sdetail, .ts-slist { max-width: var(--ts-boxed); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; box-sizing: content-box; }
	.ts-mission__head, .ts-mission__cards, .ts-cintro, .ts-cboxes, .ts-sdetail, .ts-slist { width: calc(100% - 24px); max-width: var(--ts-boxed); box-sizing: border-box; }
	.ts-slist__grid { column-gap: 34px; }
	/* singolo servizio: testo 540, foto 834x455 */
	.ts-sdetail { gap: 26px; }
	.ts-sdetail__media img { aspect-ratio: 834 / 455; object-fit: cover; }
	.ts-cta--center .ts-cta__box { max-width: var(--ts-wide); padding-bottom: 110px; }
}
/* Card della pagina Servizi: come l'originale l'incavo scende 10px sotto la foto, cosi' i raccordi
   finiscono esattamente sul bordo della foto (prima restavano 10px sopra e si vedevano le "orecchie") */
.ts-sitem__notch { margin: -48px 50px -10px 0; }
.ts-sitem__notch::before { left: -20px; }
.ts-sitem__notch::after { right: -20px; left: auto; }
/* Frecce delle testimonianze: due quadrati 50x50 blu scuro a destra, 15px sopra il fondo del carosello */
.ts-tslider__nav { padding: 0; gap: 0; border: 0; border-radius: 0; background: none; bottom: 15px; z-index: 5; }
.ts-tslider__nav .ts-navpill__btn { width: 50px; height: 50px; border-radius: 0; background: var(--ts-navy); color: var(--ts-white); font-size: 16px; }
.ts-tslider__nav .ts-navpill__btn:hover { background: var(--ts-blue); }
@media (min-width: 1200px) {
	.ts-hbtn { padding-left: 60px; }
	.ts-hbtn__t1 { line-height: 18px; }
	.ts-hbtn__t2 { font-size: 15px; line-height: 20px; }
	.ts-header__right { gap: 20px; }
	.ts-hbtn2 { gap: 6px; }
	.ts-hbtn2 .ts-icon { width: 17px; height: 12px; }
	.ts-scania { padding-right: 30px; }
	.ts-scania img { height: 46px; }
}
@media (min-width: 1200px) {
	/* linguetta del menu: allineata alla barra, alta 80px (misurata a tutte le larghezze) */
	.ts-nav { top: 0; padding-top: 0; }
	.ts-menu > li > a { line-height: 80px; }
	/* fasi: le colonne chiuse non devono allargarsi oltre 1/9 */
	.ts-step { min-width: 0; }
}
@media (min-width: 1401px) and (max-width: 1600px) { .ts-hbtn__t2 { font-size: 16px; } }
/* Footer: contenitore 1424 con 12px di margine interno, striscia del copyright larga 1400 */
.ts-footer > .ts-container { max-width: var(--ts-wide); padding: 0 12px; }
.ts-footer__brand { padding: 10px 0 30px; }
.ts-footer__logo { margin-bottom: 20px; }
.ts-footer__bottom { width: calc(100% - 24px); max-width: var(--ts-boxed); margin: 0 auto; padding: 20px 35px; }
.ts-footer__bottom > .ts-container { max-width: none; padding: 0; }

/* ==========================================================================
   Chi siamo: fedelta' misurata (CDP 1920/1680/1440/1366, 2026-11-12)
   ========================================================================== */
@media (min-width: 1025px) {
	/* mission: colonne 812/588 senza spazio, titolo + 50px, foto subito sotto */
	.ts-mission { padding-bottom: 0; }
	.ts-mission__head { grid-template-columns: 812fr 588fr; gap: 0; }
	.ts-mission__head .ts-heading { margin-bottom: 50px; }
	.ts-mission__text { margin: 0; align-self: start; }
	.ts-mcard__tab { padding: 20px 25px 5px; border-radius: 25px 25px 0 0; }
	/* traguardi: riquadro a 40px dai bordi a ogni larghezza, contenuto boxed 1400, 3 colonne da 1/3 */
	.ts-timeline-wrap { margin-top: 95px; padding: 0 40px; }
	.ts-timeline { padding: 100px max(12px, calc((100% - var(--ts-boxed)) / 2)); }
	.ts-timeline .ts-heading { margin-bottom: 50px; }
	.ts-timeline .ts-navpill { margin-top: 80px; padding: 0; gap: 0; }
	.ts-timeline .ts-navpill__btn { width: 50px; height: 50px; }
	.ts-tstep { padding-right: 0; }
	.ts-tstep__title, .ts-tstep__text { max-width: none; margin-right: 80px; }
	.ts-tstep__title { margin-bottom: 10px; }
	/* officina: 40px a sinistra e 60 a destra a ogni larghezza (come Elementor), testo 16/26 */
	.ts-about { padding: var(--ts-section) 60px var(--ts-section) 40px; }
	.ts-about__box { padding: 60px 60px 110px; justify-content: flex-start; }
	.ts-about__box .ts-heading { margin-bottom: 25px; }
	.ts-about__text { font-size: 16px; line-height: 26px; font-weight: 500; color: #151313; }
	.ts-about__text p { margin: 0 0 26px; }
}
/* fascia loghi clienti vuota: occupa lo stesso spazio dell'originale (widget senza loghi) */
.ts-clients--empty { height: 104px; padding: 0; margin-bottom: var(--ts-section); }

/* ==========================================================================
   Contatti: fedelta' misurata (CDP 1920/1680/1440/1366, 2026-11-12)
   ========================================================================== */
@media (min-width: 1025px) {
	.ts-cintro { padding: 0 0 50px; margin-top: var(--ts-section); overflow: visible; }
	.ts-cintro__deco { top: 10px; left: -175px; }
	.ts-cintro .ts-heading { margin-bottom: 25px; }
	.ts-cintro__text { font-size: 16px; }
	.ts-cboxes { padding-bottom: 40px; }
	.ts-cbox { padding: 66px 40px 41px; }
	.ts-cbox__text { min-height: 72px; margin-bottom: 30px; }
	.ts-cbox__text a { color: var(--ts-navy); }
}

/* ==========================================================================
   Servizi: fedelta' misurata (CDP 1920/1680/1440/1366, 2026-11-12)
   ========================================================================== */
@media (min-width: 1025px) {
	/* griglia: 2 card da 685px con 30px in mezzo nel contenuto boxed 1400 */
	.ts-slist__grid { column-gap: 30px; }
	.ts-sitem__media img { aspect-ratio: 683 / 404; }
}
/* card: come l'originale la foto ha i 4 angoli arrotondati (30px), l'incavo poggia sul fondo della foto */
.ts-sitem__media { border-radius: var(--ts-radius); }
.ts-sitem__media img { border-radius: var(--ts-radius); transition: transform .25s ease-in-out; }
/* karsfix service-style-1: riassunto su 2 righe con i puntini, all'hover foto 1.02 e pulsante quasi nero */
.ts-sitem__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-sitem:hover .ts-sitem__media img { transform: scale(1.02); }
.ts-sitem:hover .ts-sitem__notch .ts-scard__btn { background: var(--ts-black); }
/* freccia del pulsante tondo (tutte le card servizi): glifo da 24px come l'originale */
.ts-scard__btn { font-size: 24px; }

/* ==========================================================================
   Singolo servizio: fedelta' misurata (CDP 1920/1680/1440/1366, 2026-11-12)
   ========================================================================== */
@media (min-width: 1025px) {
	/* testo 540 e foto 834 con 40px in mezzo nel contenitore 1424 (10px a destra), 80px sotto la testata, 10px sopra e sotto */
	.ts-sdetail { width: 100%; max-width: var(--ts-wide); margin: 80px auto 0; padding: 10px 10px 10px 0; gap: 40px; grid-template-columns: minmax(0, 540fr) minmax(0, 834fr); }
	/* carosello servizi (home e singolo): 10px in meno sotto le card, la sezione misura come l'originale */
	.ts-services { padding-bottom: calc(var(--ts-section) - 10px); }
	/* invito finale: riquadro largo fino a 1424 senza margini laterali, testo con 60px a sinistra, 180px prima del footer */
	.ts-cta--center { padding: 0 0 180px; }
	.ts-cta--center .ts-cta__box { width: 100%; padding: 130px 0 110px 60px; }
}
/* carosello servizi fino a 1600px: arriva fino al bordo destro dello schermo (come Swiper nell'originale) */
@media (min-width: 1025px) and (max-width: 1600px) { .ts-services { --ts-cw: calc(100vw - var(--ts-cl)); } }

/* ==========================================================================
   Footer comune tra 1025 e 1399px: come l'originale le voci dei servizi hanno 10px
   a destra (colonna interna da 316px), cosi' le voci lunghe vanno a capo
   ========================================================================== */
@media (min-width: 1025px) and (max-width: 1399px) {
	.ts-footer__list--2 li { padding-right: 10px; break-inside: avoid; }
}

/* ==========================================================================
   Fedelta' mobile e tablet (fase 7, misure CDP 360/390/414/768/1024 con emulazione mobile)
   Solo sotto i 1025px: il desktop non viene toccato.
   ========================================================================== */
@media (max-width: 1024px) {
	/* originale: i riquadri sono a tutta larghezza, senza margine laterale */
	:root { --ts-edge: 0px; }
	.ts-header { padding-top: 0; }
	.ts-hero { margin-top: 0; height: 94vw; min-height: 0; border-radius: 0 0 var(--ts-radius) var(--ts-radius); }
	.ts-hero__content { padding-top: 34vw; justify-content: flex-start; }
	.ts-hero__title { font-size: 7.5vw; line-height: 8.4vw; letter-spacing: 0; max-width: 77%; margin-bottom: 12px; }
	.ts-hero__sub { font-size: 14px; line-height: 22px; margin-bottom: 20px; }
	.ts-hero__btn { padding: 12px 24px; }
	/* contatori */
	.ts-counter__num { font-size: 75px; line-height: 80px; letter-spacing: -1px; }
	.ts-counter__title { font-size: 20px; line-height: 30px; letter-spacing: -1px; }
	/* carosello servizi: una card a tutta larghezza */
	.ts-scard { flex-basis: 100%; }
	.ts-scard__title { font-size: 24px; line-height: 28px; letter-spacing: -1px; left: 40px; }
	/* perche' sceglierci */
	.ts-why__media { margin: 0; min-height: 520px; }
	.ts-why__body { padding: 0 10px 50px; }
	.ts-why__text { font-size: 16px; line-height: 26px; }
	.ts-ibox__title { font-size: 24px; line-height: 28px; letter-spacing: -1px; margin-bottom: 25px; }
	/* come lavoriamo */
	.ts-step__img { height: auto; aspect-ratio: 1 / 1; }
	/* testimonianze */
	.ts-tslide__text { font-size: 24px; line-height: 36px; }
	.ts-tslide__name { letter-spacing: -1px; }
	.ts-tslide__place { font-size: 14px; }
	/* pagine interne: testata a tutta larghezza senza angoli arrotondati */
	.ts-titlebar { margin: 0; border-radius: 0; }
	/* singolo servizio: testi centrati */
	.ts-sdetail__text p, .ts-sdetail__text { text-align: center; }
}
/* Fase 7, seconda passata: affinamenti per fascia (mobile < 768, tablet 768-1024) */
@media (max-width: 1024px) {
	.ts-why__media { height: 520px; min-height: 0; }
	.ts-why__body { padding: 0 30px 50px; }
	.ts-testi__media { min-height: 0; height: 350px; }
	.ts-footer > .ts-container { padding: 0 30px; }
	.ts-footer__col { padding: 10px 10px 0; }
	.ts-footer__bottom { width: auto; margin: 0 30px; }
}
@media (max-width: 767px) {
	.ts-step { padding: 40px 30px 29px; }
	.ts-step__text { max-width: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.ts-hero__content { padding-top: calc(132px + (100vw - 768px) * .69); }
	.ts-hero__title { font-size: calc(47px + (100vw - 768px) * .0117); line-height: calc(49px + (100vw - 768px) * .004); }
	.ts-hero__sub { font-size: 17px; line-height: 24px; }
	.ts-scard { flex-basis: calc((100% - 40px) / 2.2); }
	.ts-counter__num { line-height: 100px; letter-spacing: -1px; }
	.ts-why__media { margin: 0 40px; }
	.ts-why__body { padding: 0 70px 50px; }
	.ts-step__open { grid-template-columns: 236px 1fr; gap: 70px; }
	.ts-step__img { height: 352px; aspect-ratio: auto; }
	.ts-step { padding: 40px; }
	.ts-step__text { max-width: 250px; }
	.ts-testi__media { height: 550px; }
	.ts-footer__cols { grid-template-columns: 1fr 1fr; text-align: left; padding-bottom: 60px; }
	.ts-footer__col:first-child { grid-column: 1 / -1; }
}
/* Fase 7, terza passata: Contatti e Chi siamo sotto i 1025px */
@media (max-width: 1024px) {
	/* Contatti: riquadri a tutta larghezza, uno sotto l'altro, come l'originale */
	.ts-cintro { padding: 0 30px 50px; margin-top: var(--ts-section); overflow: visible; }
	.ts-cintro .ts-heading { margin-bottom: 25px; }
	.ts-cintro__text { font-size: 16px; }
	.ts-cboxes { grid-template-columns: 1fr; gap: 0; padding: 0; }
	.ts-cbox { padding: 30px; min-height: 277px; }
	/* Chi siamo */
	.ts-mission__head { padding: 0 30px; }
	.ts-mission__cards { padding: 10px 0 0; }
	.ts-mcard__title { font-size: 20px; }
	.ts-timeline { padding: 60px 20px; }
	.ts-tstep { padding: 0; }
	.ts-tstep__title { font-size: 26px; line-height: 30px; }
	.ts-about__media { min-height: 0; height: 350px; }
	.ts-about__text { font-size: 16px; line-height: 26px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.ts-cbox { min-height: 322px; }
}
/* Fase 7, quarta passata: testata interna, Contatti, singolo servizio, mission */
@media (max-width: 1024px) {
	.ts-titlebar { min-height: 0; height: 350px; padding: 110px 20px 0; }
	.ts-cboxes { padding-top: var(--ts-section); }
	.ts-sdetail { padding: 80px 30px 0; }
	.ts-sdetail__media { margin: 0 10px; }
	.ts-sdetail__media img { aspect-ratio: 834 / 455; object-fit: cover; }
	.ts-cta--center { padding: 0 30px 100px; }
}
@media (max-width: 767px) {
	.ts-cta--center .ts-title { font-size: 23px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.ts-titlebar { height: 400px; }
	.ts-cbox { padding: 66px 40px 41px; }
	.ts-cta--center .ts-cta__box { padding-left: 60px; padding-right: 60px; }
	.ts-mission__cards { padding: 10px 30px 0; }
}
/* Fase 7, quinta passata: carosello servizi mobile, griglia Servizi, Contatti, singolo servizio */
@media (max-width: 1024px) {
	.ts-cboxes { gap: 40px; padding-bottom: var(--ts-section); }
	.ts-sdetail { padding-top: 0; margin-top: 80px; }
}
@media (max-width: 767px) {
	/* originale: sul telefono il carosello si scorre con il dito, senza pillola di frecce */
	.ts-services .ts-navpill { display: none; }
	.ts-services .ts-title { font-size: 24px; line-height: 28px; }
	.ts-services .ts-heading { margin-bottom: 16px; }
	.ts-sitem__body { padding-bottom: 55px; }
}

/* ==========================================================================
   Fase 7b: scroll orizzontale e menu mobile (come l'originale: pannello da 300px,
   velo nero 90% su tutto lo schermo, sottomenu che si apre col tap sulla freccia)
   Solo sotto i 1200px: il desktop non viene toccato.
   ========================================================================== */
@media (max-width: 1199px) {
	/* i titoli a lettere partono 50px a destra: si ritagliano senza creare uno scroll */
	.ts-main { overflow-x: clip; }
	/* l'animazione con riempimento "both" teneva una trasformazione attiva sulla testata: il pannello fisso restava alto come la testata (100px) */
	.ts-header.is-fixed { animation-fill-mode: backwards; }
	.ts-nav { width: 300px; max-width: 100vw; padding: 90px 0 30px; box-shadow: none; }
	.ts-nav__close { top: 25px; right: 25px; }
	.ts-menu > li { position: relative; }
	.ts-menu a { padding: 15px 25px; color: var(--ts-black); line-height: 25px; }
	.ts-menu .current-menu-item > a, .ts-menu a:hover { color: var(--ts-blue); }
	.ts-menu .sub-menu { display: none; padding: 0; }
	.ts-menu li.is-open > .sub-menu { display: block; }
	.ts-menu .sub-menu a { padding: 15px 25px 15px 40px; color: var(--ts-black); line-height: 24px; }
	.ts-subtoggle { position: absolute; top: 15px; right: 25px; width: 21px; height: 25px; padding: 0; border: 0; background: none; color: var(--ts-black); display: flex; align-items: center; justify-content: center; cursor: pointer; }
	.ts-subtoggle svg { width: 12px; height: 12px; transition: transform .3s; }
	li.is-open > .ts-subtoggle svg { transform: rotate(90deg); }
	/* velo scuro dietro il pannello */
	body::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 99; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
	body.ts-menu-open::after { opacity: 1; visibility: visible; }
}
@media (min-width: 1200px) { .ts-subtoggle { display: none; } }

/* Fase 7b: Chi siamo su tablet (768-1024): traguardi a 3 colonne da 342px, linguette a 2 righe, foto alta 550 */
@media (min-width: 768px) and (max-width: 1024px) {
	.ts-timeline { padding: 60px 42px; }
	.ts-timeline .ts-heading { margin-bottom: 135px; }
	.ts-tstep__title, .ts-tstep__text { max-width: 262px; }
	.ts-mcard__tab { white-space: normal; width: 216px; box-sizing: border-box; padding: 15px 25px 10px; }
	.ts-about__media { height: 550px; }
}

/* Fase 7b: Contatti, mappa alta 600px come l'originale anche sotto i 1025px (+61px di aria sopra) */
@media (max-width: 1024px) {
	.ts-map iframe { height: 600px; }
	.ts-map { padding-top: calc(var(--ts-section) + 61px); }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.ts-about__box { padding: 18px 30px; }
}

/* Fase 7c: footer a 1024px come l'originale (colonne da 235px) */
@media (min-width: 1024px) and (max-width: 1024px) {
	.ts-footer__cols { grid-template-columns: 235px 235px; justify-content: start; }
	.ts-footer__col:first-child { max-width: 470px; }
	.ts-footer__cols { margin-top: -66px; row-gap: 10px; padding-bottom: 81px; }
}

/* Fase 7c: a 1024px esatti nella HOME l'originale ha slider, fascia scorrevole e fisarmonica come il desktop (le altre sezioni restano in versione tablet) */
@media (min-width: 1024px) and (max-width: 1024px) {
	body.home .ts-marquee__item { gap: 100px; padding-left: 50px; }
	body.home .ts-marquee__star { font-size: 60px; }
	body.home .ts-marquee__text { font-size: 90px; line-height: 120px; }
	body.home .ts-steps-box { padding: 100px 40px 70px; }
	body.home .ts-steps { flex-direction: row; height: 430px; --ts-sgap: 30px; gap: var(--ts-sgap); }
	body.home .ts-step { flex: none; width: calc((100% - 3 * var(--ts-sgap)) / 9); transition: width .7s ease-in-out; }
	body.home .ts-step.is-active { width: calc((100% - 3 * var(--ts-sgap)) * 6 / 9); }
	body.home .ts-step { padding: 40px; cursor: pointer; }
	body.home .ts-step.is-active { cursor: default; }
	body.home .ts-step__closed { display: grid; height: 100%; grid-template-rows: auto 1fr; justify-items: center; }
	body.home .ts-step__vtitle { align-self: end; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--ts-font-head); font-weight: 700; font-size: 24px; line-height: 28px; text-transform: uppercase; color: var(--ts-white); max-height: 250px; }
	body.home .ts-step.is-active .ts-step__closed { display: none; }
	body.home .ts-step__open { position: absolute; inset: 40px; grid-template-columns: 1fr 1fr; gap: 0; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; min-width: 640px; }
	body.home .ts-step.is-active .ts-step__open { opacity: 1; visibility: visible; transition-delay: .35s; }
	body.home .ts-step__img { height: 100%; }
	body.home .ts-step__content { padding: 60px 0 60px 70px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
	body.home .ts-step__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	body.home .ts-hero { height: min(56.25vw, 820px); }
	body.home .ts-steps-wrap { padding: 0; }
	body.home .ts-steps-box { max-width: var(--ts-wide); margin: 0 auto; padding: 100px 40px 70px; }
	body.home .ts-steps-box .ts-heading { width: 600px; max-width: 100%; margin: 0 0 90px auto; text-align: left; }
	body.home .ts-steps { height: 434px; --ts-sgap: 40px; gap: var(--ts-sgap); margin-bottom: 40px; }
	body.home .ts-step__open { grid-template-columns: 1fr 390px; }
	body.home .ts-step__content { padding: 60px 70px; }
	body.home .ts-hero__content { justify-content: flex-start; padding-top: min(30.2vw, 440px); }
	body.home .ts-hero__title { font-size: min(72px, 4.915vw); line-height: min(72px, 4.915vw); margin-bottom: 12px; }
	body.home .ts-hero__sub { font-size: min(18px, 1.245vw); line-height: min(24px, 1.64vw); max-width: 640px; margin-bottom: 0; }
	body.home .ts-steps-box .ts-title { margin-right: -40px; }
	body.home .ts-step__open { grid-template-columns: 91px 1fr; }
	body.home .ts-steps-box { padding: 80px 30px 54px; }
	body.home .ts-step__content { padding: 60px 0 60px 70px; }
	body.home .ts-counter__num { line-height: 80px; }
	body.home .ts-marquee { padding: 100px 0; }
	body.home .ts-services .ts-heading { margin-bottom: 50px; }
	body.home .ts-carousel { padding: 0 30px 10px; }
	body.home .ts-scard { flex-basis: 397px; }
	body.home .ts-testi { padding-bottom: calc(var(--ts-section) + 20px); }
	body.home .ts-step__title { max-width: 250px; }
	body.home .ts-step__open { min-width: 0; }
	body.home .ts-services { padding-bottom: 69px; }
	body.home .ts-why .ts-heading { margin-bottom: 79px; }
	body.home .ts-why__text { margin-bottom: 17px; }
}
/* Fase 7c: testi della fase 250px anche su tablet e telefono come l'originale */
@media (max-width: 1024px) {
	.ts-step__title, .ts-step__text { max-width: 250px; }
}
/* Fase 7d: Come lavoriamo su tablet (768-1023): numero all'altezza della foto, titolo 69px piu' sotto, distanze come l'originale */
@media (min-width: 768px) and (max-width: 1023px) {
	.ts-step__open { align-items: start; }
	.ts-step__content { padding-top: 69px; }
	.ts-steps { gap: 40px; }
	.ts-steps-box .ts-heading { margin-bottom: 106px; }
	.ts-steps-box { padding-bottom: 90px; }
}
/* Fase 7d: home tablet - slider alto 543px a 768 (575 a 1024), fascia scorrevole con 100px sopra e sotto, testimonianze piu' alte di 16px */
@media (min-width: 768px) and (max-width: 1023px) {
	body.home .ts-hero { height: calc(543px + (100vw - 768px) * .125); }
	body.home .ts-marquee { padding: 100px 0; }
	body.home .ts-testi { padding-bottom: calc(var(--ts-section) + 16px); }
}
/* Fase 7d: tablet - parole della fascia scorrevole 90/120 come l'originale, invito finale +25px, footer -50px */
@media (min-width: 768px) and (max-width: 1023px) {
	body.home .ts-marquee__item { gap: 100px; padding-left: 50px; }
	body.home .ts-marquee__star { font-size: 60px; }
	body.home .ts-marquee__text { font-size: 90px; line-height: 120px; }
	body.home .ts-cta { margin-bottom: 25px; }
	.ts-footer__cols { margin-top: -50px; }
}
/* Fase 7d: telefono (<768) - misure delle sezioni della home come l'originale */
@media (max-width: 767px) {
	.ts-step__title { max-width: none; }
	body.home .ts-marquee { padding: 70px 0; }
	body.home .ts-marquee__item { gap: 100px; padding-left: 50px; }
	body.home .ts-marquee__star { font-size: 60px; }
	body.home .ts-marquee__text { font-size: 90px; line-height: 120px; }
	body.home .ts-why .ts-heading { margin-bottom: 75px; }
	body.home .ts-why { padding-bottom: calc(var(--ts-section) + 82px); }
	body.home .ts-services { margin-bottom: 11px; }
	body.home .ts-steps-box .ts-heading { margin-bottom: 20px; }
	body.home .ts-cta { margin-bottom: 31px; }
	.ts-steps { gap: 39px; }
	.ts-footer__cols { margin-top: -33px; }
}
/* Fase 7d: telefono - dal confronto visivo: slider senza sottotitolo e senza angoli, testo "perche sceglierci" scuro, passi centrati */
@media (max-width: 767px) {
	.ts-hero { border-radius: 0; }
	.ts-hero__sub { display: none; }
	.ts-why__text { color: #151313; }
	.ts-step__content { text-align: center; }
	.ts-step__icon { justify-content: center; }
}
/* Fase 7d: testo scuro in "Perche sceglierci" sotto i 1025px; a 1024 esatti l'originale non mostra il telefono nell'header e lo slider ha gli angoli dritti */
@media (max-width: 1024px) {
	.ts-why__text { color: #151313; }
}
@media (min-width: 1024px) and (max-width: 1024px) {
	.ts-hbtn { display: none; }
	.ts-hero { border-radius: 0; }
}
/* Fase 7e: telefono - Come lavoriamo: titolo e testo 9px piu in basso (387px dalla foto), 174px fino alla foto successiva, come l originale a 390 */
@media (max-width: 767px) {
	.ts-steps { gap: 40px; }
	.ts-step__title, .ts-step__text { position: relative; top: 9px; }
}
/* Fase 7f: footer su tablet (768-1023) come l'originale: logo 310px, social sotto, titolo Servizi centrato */
@media (min-width: 768px) and (max-width: 1023px) {
	.ts-footer__brand { padding-top: 22px; }
	.ts-footer__logo { width: 310px; margin-bottom: 20px; }
	.ts-footer__cols { margin-top: 0; }
	.ts-footer__col:first-child .ts-footer__title { text-align: center; }
	.single-ts_servizio .ts-scard { flex-basis: 319px; }
}
/* Fase 7f: servizio singolo su tablet - carosello con margini, card 1.4:1, invito con titolo 40px e 180px sotto, foto 10px piu' distante */
@media (min-width: 768px) and (max-width: 1024px) {
	.single-ts_servizio .ts-carousel { padding-left: 30px; padding-right: 30px; }
	.single-ts_servizio .ts-scard__media { aspect-ratio: 1.4; height: auto; }
	.single-ts_servizio .ts-scard__media img { width: 100%; height: 100%; object-fit: cover; }
	.single-ts_servizio .ts-cta--center .ts-title { font-size: 40px; line-height: 40px; }
	.single-ts_servizio .ts-cta--center { padding-bottom: 180px; }
	.single-ts_servizio .ts-sdetail { gap: 40px; }
	.single-ts_servizio .ts-sdetail__media { margin-bottom: 10px; }
}
/* Fase 7f: a 1024 esatti - box contatti bassi (277px), footer con logo 203px nella colonna sinistra da 470px */
@media (min-width: 1024px) and (max-width: 1024px) {
	.single-ts_servizio .ts-scard { flex-basis: 383px; }
	.ts-cintro { margin-top: calc(var(--ts-section) + 21px); }
	.ts-cbox { padding: 30px; min-height: 277px; }
	.ts-cbox__text { margin-bottom: 20px; }
	.ts-cboxes { padding-bottom: calc(var(--ts-section) - 31px); }
	.ts-footer__brand { max-width: 470px; margin-top: -15px; }
	.ts-footer__logo { width: 203px; margin-bottom: 18px; }
	.ts-footer__cols { margin-top: 2px; }
}
/* Fase 7f: servizio singolo - spazio sotto il carosello come l'originale (sezione 620px a 768, 670px a 1024) */
@media (min-width: 768px) and (max-width: 1023px) {
	.single-ts_servizio .ts-carousel { margin-bottom: 23px; }
}
@media (min-width: 1024px) and (max-width: 1024px) {
	.single-ts_servizio .ts-carousel { margin-bottom: 27px; }
}
/* Fase 7f: chi siamo su tablet - testi dei traguardi a inizio colonna, riquadro Chi siamo senza spazio sopra */
@media (min-width: 768px) and (max-width: 1024px) {
	.ts-tstep__title, .ts-tstep__text { margin-left: 0; }
	.ts-about__box { padding: 0 30px 36px; }
}
/* Fase 7f: chi siamo a 1024 esatti - misure dell'originale */
@media (min-width: 1024px) and (max-width: 1024px) {
	.ts-counter__num { line-height: 80px; }
	.ts-mcard__tab { width: 263px; }
	.ts-mission__text { margin-top: 14px; }
	.ts-mission__cards { padding-top: 30px; }
	.ts-tstep__title, .ts-tstep__text { max-width: 390px; }
	.ts-about__box { padding: 0 30px 69px; }
}
/* Fase 7f: fascia traguardi alta come l'originale (750px a 768, 702px a 1024), riquadro Chi siamo 9px piu' su a 768 */
@media (min-width: 768px) and (max-width: 1023px) {
	.ts-timeline { padding-bottom: 75px; }
	.ts-about { row-gap: 21px; }
}
@media (min-width: 1024px) and (max-width: 1024px) {
	.ts-timeline { padding-bottom: 79px; }
	.ts-mcard__tab { white-space: nowrap; }
}

/* ==== PAGINE LEGALI (privacy, cookie) – 2026-11-13 ====
   Le icone +/- delle vecchie schede Elementor restano nel testo della policy MG senza dimensioni:
   il testo ora e' tutto aperto, quindi si nascondono. */
.ts-legal svg[viewBox="0 0 448 512"] { display: none !important; }
.ts-legal { color: var(--ts-black); font-family: var(--ts-font-body); font-size: 15px; line-height: 1.75; }
.ts-legal .ts-container { max-width: var(--ts-container); }
.ts-legal h2, .ts-legal h3, .ts-legal h4, .ts-legal h5 { font-family: var(--ts-font-head); color: var(--ts-navy); font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.ts-legal h2 { font-size: 28px; margin: 48px 0 16px; }
.ts-legal h3 { font-size: 22px; margin: 36px 0 14px; }
.ts-legal h4 { font-size: 18px; margin: 28px 0 10px; }
.ts-legal h5 { font-size: 16px; margin: 24px 0 8px; color: var(--ts-blue); }
.ts-legal > .ts-container > :first-child, .ts-legal h2:first-child { margin-top: 0; }
.ts-legal p { margin: 0 0 14px; }
.ts-legal p:empty { display: none; }
.ts-legal ul, .ts-legal ol { margin: 0 0 16px; padding-left: 22px; }
.ts-legal li { margin-bottom: 6px; }
.ts-legal a { color: var(--ts-blue); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.ts-legal a:hover { color: var(--ts-navy); }
.ts-legal hr { border: 0; border-top: 1px solid var(--ts-border); margin: 32px 0; }
.ts-legal strong { font-weight: 600; }
@media (max-width: 767px) {
  .ts-legal { font-size: 14px; }
  .ts-legal h2 { font-size: 22px; margin-top: 36px; }
  .ts-legal h3 { font-size: 19px; }
  .ts-legal h4 { font-size: 17px; }
}

/* Pagine legali: fisarmonica */
.ts-legal .ts-acc { border-bottom: 1px solid var(--ts-border); }
.ts-legal .ts-acc:first-of-type { border-top: 1px solid var(--ts-border); }
.ts-legal .ts-acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--ts-font-head); font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ts-navy); transition: color .2s var(--ts-ease); }
.ts-legal .ts-acc__btn::after { content: "+"; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ts-light); color: var(--ts-blue); font-size: 22px; font-weight: 400; line-height: 1; transition: background-color .2s var(--ts-ease), color .2s var(--ts-ease); }
.ts-legal .ts-acc__btn[aria-expanded="true"]::after { content: "\2212"; background: var(--ts-blue); color: #fff; }
.ts-legal .ts-acc__btn:hover, .ts-legal .ts-acc__btn:focus-visible { color: var(--ts-blue); }
.ts-legal .ts-acc__btn:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 4px; }
.ts-legal .ts-acc__panel { padding: 0 0 20px; }
.ts-legal .ts-acc__panel > :first-child { margin-top: 0; }
@media (max-width: 767px) { .ts-legal .ts-acc__btn { font-size: 15px; padding: 15px 0; } }
