/* ================================================================
   VOISPEED.CSS  –  TeamSystem Brand System
   Foglio di stile condiviso per tutte le landing VOIspeed.
   Versione 1.0
   ================================================================ */

/* ── TOKENS ── */
:root {
  /* Colori brand */
  --blue-dark:    #164194;
  --blue:         #0073C0;
  --blue-sky:     #00A0DC;
  --blue-light:   #61BEEB;
  --magenta-dark: #C40075;
  --magenta:      #EE3B7A;
  --orange:       #F37053;
  --yellow:       #FBB040;
  --yellow-bright:#FFD540;

  /* UI neutrals */
  --ink:          #17243a;
  --body:         #354961;
  --muted:        #637086;
  --bg:           #f6f9fc;
  --white:        #ffffff;
  --line:         #dde8f4;

  /* Tipografia */
  --font: 'Roboto', Arial, Verdana, sans-serif;

  /* Geometria */
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  /* Ombre */
  --shadow-sm:  0 2px 12px rgba(22,65,148,0.08);
  --shadow:     0 8px 32px rgba(22,65,148,0.12);
  --shadow-lg:  0 22px 60px rgba(22,65,148,0.15);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); color: var(--body); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--blue); }

/* ── MULTICOLOR BAND ── */
.ts-band {
  width: 100%; height: 6px;
  background: linear-gradient(to right,
    #61BEEB 0% 12.5%, #0073C0 12.5% 25%, #00A0DC 25% 37.5%,
    #164194 37.5% 50%, #C40075 50% 62.5%, #EE3B7A 62.5% 75%,
    #F37053 75% 87.5%, #FBB040 87.5% 100%);
}
.ts-band--thick { height: 10px; }

/* ── LAYOUT ── */
.ts-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
.ts-h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
}
.ts-h2 {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--blue-dark);
}
.ts-h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-dark);
}
.ts-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  line-height: 1.65;
}
.ts-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.ts-section-header .ts-lead {
  margin-top: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BUTTONS ── */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--magenta-dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(196,0,117,0.28);
  white-space: nowrap;
}
.ts-btn:hover {
  background: #a0005f;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196,0,117,0.38);
}
.ts-btn--full  { width: 100%; }
.ts-btn--ghost {
  background: transparent;
  color: var(--blue-dark);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.ts-btn--ghost:hover { background: var(--bg); transform: none; box-shadow: none; }

/* Back link */
.ts-back {
  background: none; border: none;
  color: var(--muted); font-family: var(--font);
  font-size: 13px; cursor: pointer;
  text-decoration: underline; margin-top: 10px;
}
.ts-back:hover { color: var(--blue-dark); }

/* ── HEADER ── */
.ts-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.ts-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.ts-nav__logo img  { height: 36px; width: auto; }
.ts-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ts-nav__menu a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.ts-nav__menu a:hover { color: var(--blue); }

/* ── HERO ── */
.ts-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(238,59,122,0.18), transparent 30%),
    radial-gradient(circle at 74% 80%, rgba(97,190,235,0.32), transparent 30%),
    linear-gradient(135deg, #eef8ff 0%, #fff 50%, #f5f0ff 100%);
  padding: 72px 0 80px;
}
.ts-hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 52px;
  align-items: start;
}
.ts-hero__kicker {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-sky);
  margin-bottom: 14px;
}
.ts-hero__bullets {
  list-style: none;
  margin: 20px 0 24px;
}
.ts-hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--body);
  margin-bottom: 10px;
}
.ts-hero__bullets li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-sky);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.ts-hero__subtext {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.ts-hero__proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.ts-avatars { display: flex; }
.ts-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ts-avatar:first-child { margin-left: 0; }
.ts-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ts-stars { color: var(--yellow); font-size: 15px; letter-spacing: 2px; }
.ts-proof-text { font-size: 13px; color: var(--muted); }
.ts-proof-text strong { color: var(--blue-dark); }
.ts-hero__image {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ts-hero__image img { width: 100%; display: block; }

/* ── FORM CARD ── */
.ts-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ts-form-card__head {
  background: var(--blue-dark);
  color: var(--white);
  padding: 20px 28px 16px;
}
.ts-form-card__head h2 { font-size: 18px; font-weight: 700; margin-bottom: 3px; color: var(--white); }
.ts-form-card__head p  { font-size: 12px; color: rgba(255,255,255,0.68); }
.ts-form-card__body { padding: 22px 28px 28px; }

/* ── STEP DOTS ── */
.ts-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.ts-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: background 0.2s;
}
.ts-dot--active { background: var(--blue); }
.ts-dot--done   { background: var(--magenta-dark); }

/* ── POSTAZIONI GRID ── */
.ts-posti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 18px;
}
.ts-pb {
  padding: 14px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.3;
}
.ts-pb small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}
.ts-pb:hover  { border-color: var(--blue); background: #f0f7ff; }
.ts-pb--sel   { border-color: var(--blue); background: #e8f3ff; color: var(--blue-dark); font-weight: 700; }

/* ── PRICE BOX ── */
.ts-price-box {
  background: linear-gradient(135deg, #eaf4ff, #f4f8ff);
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.ts-price-box__label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue);
  font-weight: 700; margin-bottom: 6px;
}
.ts-price-box__amount {
  font-size: 32px; font-weight: 900;
  color: var(--blue-dark); line-height: 1; margin-bottom: 3px;
}
.ts-price-box__amount small { font-size: 15px; font-weight: 500; }
.ts-price-box__note { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.ts-price-box__includes { list-style: none; font-size: 13px; color: var(--body); }
.ts-price-box__includes li { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 4px; }
.ts-price-box__includes li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ── ENTERPRISE BOX ── */
.ts-ent-box {
  background: #f0f7ff;
  border: 1.5px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--body);
  line-height: 1.65;
}

/* ── FORM FIELDS ── */
.ts-fg { margin-bottom: 13px; }
.ts-fg label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--blue-dark); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ts-fg input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px;
  color: var(--ink); outline: none;
  transition: border-color 0.15s; background: var(--white);
}
.ts-fg input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,115,192,0.10);
}
.ts-fg input::placeholder { color: #b0bcc8; }
.ts-fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── PRIVACY / CONSENT ── */
.ts-privacy { font-size: 11px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.ts-privacy a { color: var(--blue); }
.ts-consent { margin-bottom: 10px; }
.ts-consent__title {
  font-size: 11px; font-weight: 700; color: var(--blue-dark);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px;
}
.ts-consent__label {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12px; color: var(--body); cursor: pointer; line-height: 1.5;
}
.ts-consent__label input[type="checkbox"] {
  margin-top: 2px; accent-color: var(--blue); flex-shrink: 0;
}

/* ── SPINNER / LOADING ── */
.ts-spinner {
  display: none; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%;
  animation: ts-spin 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes ts-spin { to { transform: rotate(360deg); } }
.ts-loading .ts-spinner { display: inline-block; }
.ts-loading .ts-btn-label { display: none; }

/* ── ERROR ── */
.ts-err {
  background: #fff0f0; border: 1px solid #fca5a5;
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 12px; color: #991b1b;
  margin-bottom: 12px; display: none;
}
.ts-err--show { display: block; }

/* ── SUCCESS ── */
.ts-success { text-align: center; padding: 10px 0 6px; }
.ts-success__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #fff; font-size: 26px;
}
.ts-success h3 { font-size: 18px; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.ts-success p  { font-size: 13px; color: var(--body); line-height: 1.65; }
.ts-redirect-note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ── SECTION PADDING ── */
.ts-section { padding: 80px 0; }
.ts-section--alt { background: var(--bg); }
.ts-section--dark { background: linear-gradient(135deg, var(--blue-dark), #0d2e73); color: #fff; }
.ts-section--dark .ts-h2 { color: #fff; }

/* ── BENEFIT CARDS ── */
.ts-ben-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.ts-ben-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.ts-ben-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.ts-ben-card__icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.ts-ben-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.ts-ben-card h4 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.ts-ben-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.ts-t-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ts-t-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.ts-t-card img {
  width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover;
  margin-bottom: 14px;
  border: 2px solid var(--line);
}
.ts-t-card blockquote {
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
  margin-bottom: 16px;
}
.ts-t-card blockquote::before {
  content: '\201C';
  font-size: 32px;
  color: var(--blue-light);
  line-height: 0;
  vertical-align: -12px;
  margin-right: 2px;
  font-style: normal;
}
.ts-t-name { font-size: 14px; font-weight: 700; color: var(--blue-dark); }
.ts-t-role { font-size: 12px; color: var(--muted); }

/* ── FEATURE ROWS ── */
.ts-feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
}
.ts-feat-row:last-child { margin-bottom: 0; }
.ts-feat-row--rev { direction: rtl; }
.ts-feat-row--rev > * { direction: ltr; }
.ts-feat-txt p { font-size: 15px; color: var(--body); line-height: 1.78; margin-bottom: 24px; }
.ts-feat-txt p strong { color: var(--blue-dark); }
.ts-feat-img { border-radius: var(--radius-lg); overflow: hidden; }
.ts-feat-img img { width: 100%; display: block; }

/* ── STATS (dentro section--dark) ── */
.ts-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.ts-stat {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
}
.ts-stat__num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.ts-stat__lbl { font-size: 15px; color: rgba(255,255,255,0.75); }

/* ── MODAL ── */
.ts-modal-ov {
  display: none;
  position: fixed; inset: 0;
  background: rgba(22,65,148,0.52);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ts-modal-ov--open { display: flex; }
.ts-modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,0.25);
}
.ts-modal-hd {
  background: var(--blue-dark); color: var(--white);
  padding: 20px 26px 16px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
}
.ts-modal-hd h2 { font-size: 18px; font-weight: 700; margin-bottom: 3px; color: var(--white); }
.ts-modal-hd p  { font-size: 12px; color: rgba(255,255,255,0.68); }
.ts-modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  color: rgba(255,255,255,0.65); font-size: 20px;
  cursor: pointer; line-height: 1;
}
.ts-modal-close:hover { color: #fff; }
.ts-modal-bd { padding: 22px 26px 28px; }

/* ── FOOTER ── */
.ts-footer { background: #061735; color: rgba(255,255,255,0.55); font-size: 12px; }
.ts-footer__inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 36px 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.ts-footer__inner img { height: 30px; width: auto; }
.ts-footer__legal { max-width: 700px; line-height: 1.65; }
.ts-footer__links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.ts-footer__links a { color: rgba(255,255,255,0.65); text-decoration: none; }
.ts-footer__links a:hover { color: #fff; }

/* ── MOBILE CTA BAR ── */
.ts-mobile-cta {
  display: none;
  padding: 14px 20px;
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ── ANIMATIONS ── */
@keyframes ts-fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.ts-anim  { animation: ts-fadeUp 0.5s ease both; }
.ts-anim-d{ animation: ts-fadeUp 0.5s 0.15s ease both; }

/* ── UTILITIES ── */
.ts-cta-center { text-align: center; margin-top: 14px; }
.ts-text-center { text-align: center; }
.ts-mb-sm  { margin-bottom: 12px; }
.ts-mb-md  { margin-bottom: 24px; }
.ts-mb-lg  { margin-bottom: 40px; }
.ts-step-title { font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.ts-step-sub   { font-size: 12px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .ts-hero__inner     { grid-template-columns: 1fr; }
  .ts-hero-form-card  { display: none; }
  .ts-ben-grid        { grid-template-columns: 1fr 1fr; }
  .ts-t-grid          { grid-template-columns: 1fr 1fr; }
  .ts-feat-row        { grid-template-columns: 1fr; gap: 32px; }
  .ts-feat-row--rev   { direction: ltr; }
  .ts-stats-grid      { grid-template-columns: 1fr 1fr; }
  .ts-mobile-cta      { display: block; }
  .ts-nav__menu       { display: none; }
  .ts-header-proof    { display: none; }
  .ts-fg-row          { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ts-ben-grid   { grid-template-columns: 1fr; }
  .ts-t-grid     { grid-template-columns: 1fr; }
  .ts-stats-grid { grid-template-columns: 1fr; }
  .ts-posti-grid { grid-template-columns: 1fr; }
  .ts-hero { padding: 48px 0 56px; }
}