/**
 * TILT//SHIFT — skin “indexalt” per tutte le pagine *new (body.tt-page-newsite).
 * Caricare dopo site-custom.css. Le pagine indexaltnew (anche tt-page-indexalt)
 * usano le regole comuni “solo .tt-page-newsite”; le regole :not(.tt-page-indexalt)
 * evitano conflitti con il markup dedicato della home proposta.
 */

/* -------------------------------------------------------------------------- */
/* Token palette (allineati a indexalt in site-custom)                        */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite {
  --tt-alt-bg: #fafbfc;
  --tt-alt-band: #e4e7ec;
  --tt-alt-band-border: #d5d9e0;
  --tt-alt-ink: #0c0d10;
  --tt-alt-ink-soft: #0f1014;
  --tt-alt-muted: #3a3b45;
  --tt-alt-body: #33333c;
  --tt-alt-card-border: #cfd4dc;
  --tt-alt-card-shadow: 0 4px 18px rgba(15, 20, 30, 0.06);
  --tt-alt-radius: 12px;
  --tt-alt-radius-sm: 10px;
  --tt-alt-accent: #40c1b8;
}

body.tt-page-newsite {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--tt-alt-bg);
  /* Riduce il “salto” visivo finché Google Fonts non arriva */
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
 * Stabilizzazione scrollbar verticale.
 * Durante le transizioni di pagina (Animsition + font-lock) il wrapper
 * .animsition parte con opacity 0: il <body> resta praticamente vuoto per
 * un istante, la scrollbar verticale sparisce e la viewport si allarga di
 * ~15px. L'header fixed con menu allineato a destra "scivola" lateralmente
 * e poi torna in posizione quando il contenuto rientra. Riservando sempre
 * lo spazio della scrollbar il salto orizzontale sparisce.
 * -------------------------------------------------------------------------- */
html:has(body.tt-page-newsite) {
  scrollbar-gutter: stable;
  overflow-y: scroll; /* fallback per browser senza scrollbar-gutter */
}

/* -------------------------------------------------------------------------- */
/* Layout globale: cassa 1180, sfondo, barra, header                         */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite #body-content > .alt-preview-banner.tt-wrap,
body.tt-page-newsite #body-content > section .tt-wrap,
body.tt-page-newsite .call-to-action-inner.tt-wrap {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5.5vw, 52px);
  padding-right: clamp(20px, 5.5vw, 52px);
  box-sizing: border-box;
}

body.tt-page-newsite .header-inner.tt-wrap {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5.5vw, 52px);
  padding-right: clamp(20px, 5.5vw, 52px);
  box-sizing: border-box;
}

body.tt-page-newsite #header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(248, 250, 255, 0.76) 100%
  );
  backdrop-filter: saturate(1.45) blur(28px);
  -webkit-backdrop-filter: saturate(1.45) blur(28px);
  border-bottom: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 54px rgba(15, 16, 20, 0.16);
  /* Evita che theme.css (transition: all + #FFF su header-filled) interpoli il fondo → flash bianco */
  transition-property: transform, opacity, top, box-shadow, padding, border-color, border-bottom-width;
  transition-duration: 0.4s;
  transition-timing-function: ease-in-out;
}

body.tt-page-newsite .tt-main-menu .tt-menu-tools > ul > li.tt-tools-theme {
  display: inline-block;
  vertical-align: middle;
}

/* Light + header trasparente (portfolio, ecc.): testi e logo scuri su barra vetro */
@media (min-width: 992px) {
  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent {
    background-color: transparent !important;
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(246, 248, 253, 0.72) 100%
    ) !important;
    backdrop-filter: saturate(1.45) blur(28px);
    -webkit-backdrop-filter: saturate(1.45) blur(28px);
    border-bottom: 0;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.92) inset,
      0 18px 50px rgba(15, 16, 20, 0.16);
  }

  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent .tt-menu-nav > li > a,
  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent .tt-menu-tools > ul > li > a {
    color: #121218 !important;
    text-shadow: none;
  }

  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent .tt-menu-nav > li > a:hover,
  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent .tt-menu-tools > ul > li > a:hover {
    color: #0a0a0c !important;
  }

  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent #logo .logo-dark {
    display: block !important;
  }

  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent #logo .logo-light {
    display: none !important;
  }

  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent.header-filled {
    background-color: transparent !important;
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(252, 253, 255, 0.94) 100%
    ) !important;
  }

  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent.header-filled .tt-menu-nav > li > a,
  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent.header-filled .tt-menu-tools > ul > li > a {
    color: #121218 !important;
  }
}

html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header #tt-m-menu-toggle-btn span {
  background-color: #121218 !important;
}

@media (max-width: 991px) {
  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent .tt-menu-nav > li > a,
  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent .tt-menu-tools > ul > li > a {
    color: #121218 !important;
    text-shadow: none;
  }

  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent #logo .logo-dark,
  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent #logo .logo-dark-m {
    display: block !important;
  }

  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent #logo .logo-light,
  html:not([data-tt-dark-boot="1"]) body.tt-page-newsite:not(.tt-dark-mode) #header.header-transparent #logo .logo-light-m {
    display: none !important;
  }
}

body.tt-page-newsite #body-content {
  background: var(--tt-alt-bg);
}

/* Transizioni pagina: Animsition solo su #tt-animsition-root, header resta fuori */
body.tt-page-newsite #tt-animsition-root.animsition {
  position: relative;
  display: block;
  min-height: 100vh;
  padding-top: 0;
  background: #0a0a0a;
}

/* Portfolio: nessuno spazio tra header e barra "Benvenuto nel nuovo sito". */
body.tt-page-newsite.tt-page-portfolio #tt-animsition-root.animsition {
  padding-top: 0 !important;
}

@media (max-width: 991px) {
  body.tt-page-newsite #tt-animsition-root.animsition {
    padding-top: 0;
  }
}

/* Lezioni: elimina la fascia vuota sotto l'header. */
body.tt-page-newsite.tt-page-lezioni #tt-animsition-root.animsition {
  padding-top: 0 !important;
}

body.tt-page-newsite .alt-preview-banner {
  background: #121214;
  color: #e8e8ec;
  font-size: 13px;
  padding: 12px 0;
  text-align: center;
  border-bottom: 1px solid #2a2a30;
  border-radius: 10px 10px 0 0;
}

body.tt-page-newsite .alt-preview-banner a {
  color: #fff;
  text-decoration: underline;
  margin-left: 8px;
}

body.tt-page-newsite .alt-lessons-cta {
  padding-top: 8px;
}

body.tt-page-newsite .alt-section.alt-lessons {
  position: relative;
  overflow: hidden;
}

body.tt-page-newsite .alt-section.alt-lessons::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: url("../img/blog/single/img-1.jpg") center/cover no-repeat;
  filter: blur(8px);
  transform: scaleX(-1) scale(1.04);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}

body.tt-page-newsite .alt-section.alt-lessons::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.22);
  z-index: 0;
  pointer-events: none;
}

body.tt-page-newsite .alt-section.alt-lessons > .tt-wrap {
  position: relative;
  z-index: 1;
}

body.tt-page-newsite #body-content .alt-lessons-superprof-kicker {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fa2b2;
}

body.tt-page-newsite #body-content .alt-lessons-superprof-wordmark {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #ff6363 !important;
  text-decoration: none;
}

body.tt-page-newsite #body-content .alt-lessons-superprof-wordmark:hover,
body.tt-page-newsite #body-content .alt-lessons-superprof-wordmark:focus {
  color: #ff7a7a !important;
  text-decoration: none;
}

body.tt-page-newsite .alt-lessons-program-btn {
  display: block;
  width: fit-content;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  body.tt-page-newsite .alt-lessons .row {
    display: flex;
    align-items: flex-end;
  }

  body.tt-page-newsite .alt-lessons .col-md-8 {
    position: relative;
    top: 12px;
    padding-bottom: 0;
  }

  body.tt-page-newsite .alt-lessons-cta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0;
  }

  body.tt-page-newsite .alt-lessons-program-btn {
    margin-top: 8px;
  }
}

body.tt-page-newsite .call-to-action-section .tt-heading-inner.tt-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none;
}

body.tt-page-newsite #body-content > section .tt-heading-inner.tt-wrap,
body.tt-page-newsite #body-content .contact-section-inner.tt-wrap,
body.tt-page-newsite #body-content .about-me-inner.tt-wrap,
body.tt-page-newsite #body-content .prices-section-inner.tt-wrap,
body.tt-page-newsite #body-content .page-header-inner.tt-wrap {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5.5vw, 52px);
  padding-right: clamp(20px, 5.5vw, 52px);
  box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/* Tipografia & link (come indexalt)                                          */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite .text-gray {
  color: var(--tt-alt-body) !important;
}

body.tt-page-newsite .text-gray.small,
body.tt-page-newsite p.small.text-gray {
  color: #45454f !important;
}

body.tt-page-newsite .tt-heading-title,
body.tt-page-newsite #page-header .ph-caption-title,
body.tt-page-newsite #page-header .page-header-title {
  color: var(--tt-alt-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.tt-page-newsite .tt-heading-subtitle,
body.tt-page-newsite #page-header .ph-caption-subtitle,
body.tt-page-newsite #page-header .page-header-description {
  color: var(--tt-alt-muted) !important;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  max-width: 40em;
}

body.tt-page-newsite #body-content a:not(.btn):not(.btn-floating):not(.btn-social-min) {
  color: #0a6b63;
}

body.tt-page-newsite #body-content .alt-preview-banner a {
  color: #fff !important;
}

body.tt-page-newsite #logo a {
  color: inherit;
}

body.tt-page-newsite #body-content a:not(.btn):not(.btn-floating):not(.btn-social-min):hover,
body.tt-page-newsite #body-content a:not(.btn):not(.btn-floating):not(.btn-social-min):focus {
  color: #078f84;
}

body.tt-page-newsite #body-content .alt-preview-banner a:hover,
body.tt-page-newsite #body-content .alt-preview-banner a:focus {
  color: #fff !important;
}

body.tt-page-newsite h1,
body.tt-page-newsite h2,
body.tt-page-newsite h3,
body.tt-page-newsite h4 {
  color: var(--tt-alt-ink-soft);
}

body.tt-page-newsite hr.hr-short {
  border-color: rgba(15, 16, 20, 0.12);
  max-width: 72px;
}

/* -------------------------------------------------------------------------- */
/* Pulsanti (indexalt)                                                        */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite .btn:not(.btn-floating):not(.btn-social-min) {
  border-radius: var(--tt-alt-radius-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

body.tt-page-newsite .btn-primary {
  box-shadow: 0 4px 14px rgba(64, 193, 184, 0.25);
}

body.tt-page-newsite .btn-primary:hover,
body.tt-page-newsite .btn-primary:focus {
  box-shadow: 0 6px 20px rgba(64, 193, 184, 0.35);
}

body.tt-page-newsite .btn-white-bordered {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

body.tt-page-newsite .btn-white-bordered:hover,
body.tt-page-newsite .btn-white-bordered:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

body.tt-page-newsite .alt-section.alt-services-merged {
  padding-top: clamp(22px, 2.6vw, 34px) !important;
  padding-bottom: clamp(20px, 2.4vw, 32px) !important;
}

body.tt-page-newsite .alt-services-portfolio-btn {
  background: #0f1014 !important;
  border-color: #0f1014 !important;
  color: #fff !important;
}

body.tt-page-newsite .alt-services-portfolio-btn:hover,
body.tt-page-newsite .alt-services-portfolio-btn:focus {
  background: #1a1d26 !important;
  border-color: #1a1d26 !important;
  color: #fff !important;
}

body.tt-dark-mode.tt-page-newsite .alt-services-portfolio-btn {
  background: #fff !important;
  border-color: #fff !important;
  color: #0f1014 !important;
}

body.tt-dark-mode.tt-page-newsite .alt-services-portfolio-btn:hover,
body.tt-dark-mode.tt-page-newsite .alt-services-portfolio-btn:focus {
  background: #eceff6 !important;
  border-color: #eceff6 !important;
  color: #0f1014 !important;
}

body.tt-page-newsite .alt-case-section {
  position: relative;
}

body.tt-page-newsite .alt-case-section > .tt-wrap {
  position: relative;
}

body.tt-page-newsite .alt-case-nav {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

body.tt-page-newsite .alt-case-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 12, 18, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

body.tt-page-newsite .alt-case-arrow-prev {
  left: clamp(-14px, -1.2vw, -8px);
}

body.tt-page-newsite .alt-case-arrow-next {
  right: clamp(-14px, -1.2vw, -8px);
}

body.tt-page-newsite .alt-case-arrow:hover,
body.tt-page-newsite .alt-case-arrow:focus-visible {
  background: rgba(120, 1, 2, 0.78);
  border-color: rgba(120, 1, 2, 0.9);
}

body.tt-page-newsite .alt-case-arrow:focus:not(:focus-visible),
body.tt-page-newsite .alt-case-arrow:active {
  background: rgba(10, 12, 18, 0.55);
  border-color: rgba(255, 255, 255, 0.24);
}

body.tt-page-newsite .alt-case-img {
  background: transparent;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-case-img {
  background: #d3d9e6;
}

body.tt-page-newsite .alt-case-img img {
  transition: transform 520ms ease, opacity 520ms ease;
}

body.tt-page-newsite .alt-case-copy-col .alt-case-kicker,
body.tt-page-newsite .alt-case-copy-col .alt-case-title,
body.tt-page-newsite .alt-case-copy-col .alt-case-text,
body.tt-page-newsite .alt-case-copy-col .alt-case-list,
body.tt-page-newsite .alt-case-copy-col .alt-case-list li {
  transition: transform 520ms ease, opacity 520ms ease;
}

body.tt-page-newsite .alt-case-copy-col .alt-case-btn {
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    box-shadow 240ms ease;
}

body.tt-page-newsite .alt-case-section.is-sliding-right .alt-case-img img {
  transform: scale(1.015);
  opacity: 0.2;
}

body.tt-page-newsite .alt-case-section.is-sliding-right .alt-case-copy-col .alt-case-kicker,
body.tt-page-newsite .alt-case-section.is-sliding-right .alt-case-copy-col .alt-case-title,
body.tt-page-newsite .alt-case-section.is-sliding-right .alt-case-copy-col .alt-case-text,
body.tt-page-newsite .alt-case-section.is-sliding-right .alt-case-copy-col .alt-case-list,
body.tt-page-newsite .alt-case-section.is-sliding-right .alt-case-copy-col .alt-case-list li {
  transform: translateX(24px);
  opacity: 0.2;
}

body.tt-page-newsite .alt-faq-section .tt-heading {
  margin-bottom: 20px !important;
}

body.tt-page-newsite .alt-faq-marquee-wrap {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.tt-page-newsite .alt-faq-marquee {
  --faq-scroll-ms: 82000ms;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

body.tt-page-newsite .alt-faq-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-left: 0;
  padding-right: 0;
  animation: altFaqScrollRight var(--faq-scroll-ms) linear infinite;
  will-change: transform;
}

body.tt-page-newsite .alt-faq-item {
  width: min(700px, 94vw);
}

body.tt-page-newsite .alt-faq-a {
  max-width: 58ch;
  white-space: normal;
  line-height: 1.7;
}

@keyframes altFaqScrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 991px) {
  body.tt-page-newsite .alt-faq-track { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.tt-page-newsite .alt-faq-track {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Home classica *new: hero video + sezioni a fasce (no indexalt markup)       */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro.video-intro {
  margin: 0;
  padding: 0;
}

body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .tt-intro-inner {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #0a0a0c;
}

body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .tt-intro-inner .video-js.videoContainer,
body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .tt-intro-inner .video-js.videoContainer.video-js {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  overflow: hidden;
  padding-top: 0 !important;
  z-index: 1;
}

body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .video-js .vjs-tech {
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .video-js .vjs-control-bar,
body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .video-js .vjs-big-play-button {
  background-color: rgba(43, 51, 63, 0) !important;
}

body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .intro-caption {
  position: relative;
  z-index: 4;
}

body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .intro-description {
  color: #f2f2f6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  line-height: 1.6;
}

body.tt-page-newsite:not(.tt-page-indexalt) #body-content > section {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(48px, 8vw, 88px);
}

body.tt-page-newsite:not(.tt-page-indexalt) #body-content > section#tt-intro {
  padding-top: 0;
  padding-bottom: 0;
}

body.tt-page-newsite:not(.tt-page-indexalt) #body-content > section#about-me-section,
body.tt-page-newsite:not(.tt-page-indexalt) #body-content > section#prices-section {
  background: var(--tt-alt-band);
  border-top: 1px solid var(--tt-alt-band-border);
  border-bottom: 1px solid var(--tt-alt-band-border);
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 96px);
}

body.tt-page-newsite:not(.tt-page-indexalt) .call-to-action-section {
  margin-top: 0 !important;
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 96px);
  border-top: 1px solid var(--tt-alt-band-border);
  border-bottom: 1px solid var(--tt-alt-band-border);
  background: var(--tt-alt-band) !important;
}

body.tt-page-newsite:not(.tt-page-indexalt) .call-to-action-section .full-cover {
  opacity: 0.35;
}

/* -------------------------------------------------------------------------- */
/* Split box / about / price (card indexalt)                                  */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite:not(.tt-page-indexalt) .split-box .split-box-1,
body.tt-page-newsite:not(.tt-page-indexalt) .split-box .split-box-2 {
  border-radius: var(--tt-alt-radius);
  overflow: hidden;
}

body.tt-page-newsite:not(.tt-page-indexalt) .split-box [class*="split-box-content"] {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

body.tt-page-newsite:not(.tt-page-indexalt) .about-me-inner,
body.tt-page-newsite:not(.tt-page-indexalt) .prices-section-inner {
  border-radius: var(--tt-alt-radius);
}

body.tt-page-newsite .price-box {
  border-radius: var(--tt-alt-radius);
  box-shadow: var(--tt-alt-card-shadow);
  border: 1px solid var(--tt-alt-card-border);
  overflow: hidden;
  background: #fff;
}

body.tt-page-newsite .price-box .pr-box {
  border-color: rgba(15, 16, 20, 0.06);
}

body.tt-page-newsite .price-box .price-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------- */
/* Portfolio / private portfolio                                              */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite.tt-page-portfolio #gallery-single-section {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0;
  margin-right: 0;
}

body.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.tt-page-newsite.tt-page-portfolio .isotope.col-4 .isotope-items-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.tt-page-newsite.tt-page-portfolio.tt-boxed #gallery-single-section .isotope-items-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.tt-page-newsite.tt-page-portfolio .isotope-top-content {
  padding: 8px clamp(16px, 4vw, 40px) 8px;
}

/* Griglia portfolio dark *new: sfondo #111 tra le schede (hero gestito da dark-mode-overrides) */
body.tt-dark-mode.tt-page-newsite.tt-page-portfolio #gallery-single-section,
body.tt-dark-mode.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-wrap,
body.tt-dark-mode.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-items-wrap,
body.tt-dark-mode.tt-page-newsite.tt-page-portfolio #gallery,
body.tt-dark-mode.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope {
  background-color: #111111 !important;
}

/* Specificità > #gallery-single-section .isotope-item in site-custom (padding: 0).
   Stesso respiro orizzontale e verticale; rapporto anteprime resta 1728:1280 in site-custom. */
body.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-item {
  box-sizing: border-box;
  padding: clamp(10px, 2vw, 16px) !important;
}

body.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-item > a.gallery-single-item {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

body.tt-dark-mode.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-item > a.gallery-single-item {
  background-color: #111111 !important;
  box-shadow: none !important;
}

body.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-item .gs-item-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

body.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-item > a.gallery-single-item:hover .gs-item-image,
body.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-item > a.gallery-single-item:focus .gs-item-image {
  transform: scale(1.04);
}

/* -------------------------------------------------------------------------- */
/* Contatti / form                                                            */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite.tt-page-contact .contact-section-inner,
body.tt-page-newsite .contact-simple {
  border-radius: var(--tt-alt-radius);
}

body.tt-page-newsite .form-control,
body.tt-page-newsite input[type="text"],
body.tt-page-newsite input[type="email"],
body.tt-page-newsite input[type="tel"],
body.tt-page-newsite textarea {
  border-radius: var(--tt-alt-radius-sm);
  border-color: rgba(15, 16, 20, 0.12);
}

body.tt-page-newsite .form-control:focus {
  border-color: var(--tt-alt-accent);
  box-shadow: 0 0 0 3px rgba(64, 193, 184, 0.2);
}

/* -------------------------------------------------------------------------- */
/* CV / lezioni: blocchi, carousel, blockquote                                */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite:not(.tt-page-indexalt) blockquote {
  border-radius: var(--tt-alt-radius-sm);
  border: 1px solid var(--tt-alt-card-border);
  box-shadow: var(--tt-alt-card-shadow);
  background: #fff;
}

body.tt-page-newsite:not(.tt-page-indexalt) .owl-carousel .owl-dots .owl-dot span {
  border-radius: 999px;
  opacity: 0.45;
}

body.tt-page-newsite:not(.tt-page-indexalt) .owl-carousel .owl-dots .owl-dot.active span {
  opacity: 1;
  background: var(--tt-alt-accent);
}

/* -------------------------------------------------------------------------- */
/* Footer *new: stile header (vetro, bordo, ombre)                           */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite footer.bg-dark {
  margin-top: clamp(16px, 2.5vw, 28px);
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(252, 253, 255, 0.9) 100%
  );
  backdrop-filter: saturate(1.25) blur(20px);
  -webkit-backdrop-filter: saturate(1.25) blur(20px);
  border-top: 1px solid rgba(15, 16, 20, 0.1);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -8px 28px rgba(15, 16, 20, 0.06);
  color: #121218 !important;
}

body.tt-page-newsite footer.bg-dark .container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 40px) !important;
  padding-right: clamp(16px, 4vw, 40px) !important;
  padding-top: 12px !important;
  padding-bottom: 4px !important;
}

body.tt-page-newsite footer.bg-dark .container.p-4 {
  padding-top: 12px !important;
  padding-bottom: 4px !important;
}

body.tt-page-newsite footer.bg-dark section.mb-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin-bottom: 0.35rem !important;
}

body.tt-page-newsite footer.bg-dark .btn-floating.m-1 {
  margin: 0.2rem !important;
}

body.tt-page-newsite footer.bg-dark .text-white,
body.tt-page-newsite footer.bg-dark span.text-white {
  color: #3a3b45 !important;
}

body.tt-page-newsite footer.bg-dark .btn-outline-light {
  border-width: 1px;
  border-color: rgba(15, 16, 20, 0.18);
  color: #121218 !important;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.tt-page-newsite footer.bg-dark .btn-outline-light:hover,
body.tt-page-newsite footer.bg-dark .btn-outline-light:focus {
  border-color: rgba(64, 193, 184, 0.65);
  color: #0a0a0c !important;
  background: rgba(64, 193, 184, 0.14);
  transform: translateY(-1px);
}

body.tt-page-newsite footer.bg-dark .btn-floating {
  width: 2.35rem;
  height: 2.35rem;
  line-height: 2.35rem;
  font-size: 0.9rem;
}

body.tt-page-newsite footer.bg-dark .text-center.p-3 {
  background: rgba(15, 16, 20, 0.04) !important;
  border-top: 1px solid rgba(15, 16, 20, 0.08);
  color: #45454f !important;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

body.tt-page-newsite footer.bg-dark .text-center.p-3 .text-white {
  color: #45454f !important;
}

body.tt-page-newsite footer.bg-dark .footer-v2-top {
  padding-top: 20px !important;
  padding-bottom: 14px !important;
}

body.tt-page-newsite footer.bg-dark .footer-v2-demos {
  margin-bottom: 14px;
}

body.tt-page-newsite footer.bg-dark .footer-v2-row,
body.tt-page-newsite footer.bg-dark .footer-v2-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

body.tt-page-newsite footer.bg-dark .footer-v2-brand {
  font-size: 20px;
  letter-spacing: 0.02em;
}

body.tt-page-newsite footer.bg-dark .footer-v2-cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.tt-page-newsite footer.bg-dark .footer-v2-kicker {
  margin: 0;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.tt-page-newsite footer.bg-dark .footer-v2-contact {
  color: inherit;
  text-decoration: none;
}

body.tt-page-newsite footer.bg-dark .footer-v2-contact:hover,
body.tt-page-newsite footer.bg-dark .footer-v2-contact:focus {
  text-decoration: underline;
}

body.tt-page-newsite footer.bg-dark .footer-v2-bottom .mb-4 {
  margin-bottom: 0 !important;
}

/* Footer scelto (demo variante 02) */
body.tt-page-newsite footer.bg-dark.footer-v2-selected {
  margin-top: clamp(16px, 2.5vw, 28px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(120, 1, 2, 0.25) 0%, rgba(120, 1, 2, 0) 55%), #12141c !important;
  box-shadow: none;
  color: #ececf2 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: 100%;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(16px, 4vw, 40px) !important;
  width: 100%;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .ft {
  padding: 24px 20px;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .g2 {
  background: transparent !important;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .muted {
  color: #b3b5c2;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-brand {
  color: #ececf2 !important;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .cta-kicker {
  margin: 0;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-cta-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #780102;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .line {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 14px 0 0;
  padding-top: 14px;
  color: #b3b5c2 !important;
  font-size: 12px;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-contact {
  color: inherit !important;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .social {
  display: flex;
  gap: 8px;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  background: transparent;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .dot i {
  font-size: 14px;
  color: inherit;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .dot:hover,
body.tt-page-newsite footer.bg-dark.footer-v2-selected .dot:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-demos {
  margin-bottom: 14px;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-demo-link {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  margin-right: 8px;
  margin-top: 6px;
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-demo-link:hover,
body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-demo-link:focus {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

body.tt-page-newsite footer.bg-dark.footer-v2-selected .text-center.p-3 {
  background: transparent !important;
  border-top: 0;
  padding: 0 !important;
}

@media (max-width: 991px) {
  body.tt-page-newsite footer.bg-dark.footer-v2-selected .ft {
    padding: 22px 14px;
  }

  body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-cta-btn {
    padding: 10px 14px;
  }
}

@media (max-width: 767px) {
  body.tt-page-newsite footer.bg-dark.footer-v2-selected .split {
    flex-direction: column;
    align-items: flex-start;
  }

  body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-cta-btn {
    width: 100%;
    text-align: center;
  }

  body.tt-page-newsite footer.bg-dark.footer-v2-selected .social {
    width: 100%;
  }

  body.tt-page-newsite footer.bg-dark.footer-v2-selected .footer-v2-demo-link {
    margin-right: 6px;
  }
}

/* Footer scelto definitivo (copia della demo 02) */
body.tt-page-newsite footer.footer-chosen {
  margin-top: clamp(16px, 2.5vw, 28px);
  background: linear-gradient(90deg, rgba(120, 1, 2, 0.25) 0%, rgba(120, 1, 2, 0) 55%), #12141c;
  color: #ececf2;
  width: 100%;
}

body.tt-page-newsite.tt-page-lezioni footer.footer-chosen,
body.tt-page-newsite.tt-page-lezioni footer.bg-dark {
  margin-top: 0 !important;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-main {
  padding: 24px 20px;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-kicker {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #780102;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-line {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 14px 0 0;
  padding-top: 14px;
  font-size: 12px;
  color: #b3b5c2;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-contact {
  color: inherit;
  text-decoration: none;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-contact:hover,
body.tt-page-newsite footer.footer-chosen .footer-chosen-contact:focus {
  text-decoration: underline;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-social {
  display: flex;
  gap: 8px;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  background: transparent;
}

body.tt-page-newsite footer.footer-chosen .footer-chosen-dot i {
  font-size: 14px;
}

@media (max-width: 767px) {
  body.tt-page-newsite footer.footer-chosen .footer-chosen-split {
    flex-direction: column;
    align-items: flex-start;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-btn {
    width: 100%;
    text-align: center;
  }
}

body.tt-page-newsite #footer {
  border-top: 1px solid rgba(15, 16, 20, 0.08);
}

body.tt-page-newsite #page-header .page-header-caption {
  border-radius: 0;
}

/* -------------------------------------------------------------------------- */
/* Modali                                                                     */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite .modal-content {
  border-radius: var(--tt-alt-radius);
  overflow: hidden;
  border: 1px solid var(--tt-alt-card-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

body.tt-page-newsite .lg-outer .lg-actions .lg-prev {
  left: clamp(28px, 14vw, 230px) !important;
}

body.tt-page-newsite .lg-outer .lg-actions .lg-next {
  right: clamp(28px, 14vw, 230px) !important;
}

/* -------------------------------------------------------------------------- */
/* Admin panel *new                                                           */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite .admin-newsite-banner.alt-preview-banner {
  border-radius: 0;
  margin: 0;
}

body.tt-page-newsite .admin-app,
body.tt-page-newsite .admin-login {
  font-family: "Poppins", system-ui, sans-serif;
}

/* -------------------------------------------------------------------------- */
/* Dark mode                                                                  */
/* -------------------------------------------------------------------------- */

body.tt-dark-mode.tt-page-newsite #header {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(30, 32, 40, 0.88) 0%, rgba(15, 16, 22, 0.74) 100%);
  backdrop-filter: saturate(1.35) blur(30px);
  -webkit-backdrop-filter: saturate(1.35) blur(30px);
  border-bottom: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 20px 56px rgba(0, 0, 0, 0.52);
  transition-property: transform, opacity, top, box-shadow, padding, border-color, border-bottom-width;
  transition-duration: 0.4s;
  transition-timing-function: ease-in-out;
}

body.tt-dark-mode.tt-page-newsite #body-content {
  background: #090909;
}

body.tt-dark-mode.tt-page-newsite {
  background-color: #090909;
}

body.tt-dark-mode.tt-page-lezioni.tt-page-newsite #body-content {
  background: #141418 !important;
}

body.tt-dark-mode.tt-page-lezioni.tt-page-newsite #body-content > section:not(.lessons-v2-hero):not(.call-to-action-section) {
  background: #141418 !important;
  border-top-color: #2a2b34 !important;
  border-bottom-color: #2a2b34 !important;
}


body.tt-dark-mode.tt-page-newsite .alt-preview-banner {
  background: linear-gradient(180deg, #3d4254 0%, #323746 100%) !important;
  color: #f2f3f8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  border-radius: 10px 10px 0 0;
}

body.tt-dark-mode.tt-page-newsite .alt-preview-banner a {
  color: #e8f0ff !important;
  text-decoration: underline;
}

body.tt-dark-mode.tt-page-newsite .text-gray,
body.tt-dark-mode.tt-page-newsite .text-gray.small,
body.tt-dark-mode.tt-page-newsite p.small.text-gray {
  color: #d4d4dc !important;
}

body.tt-dark-mode.tt-page-newsite .tt-heading-title,
body.tt-dark-mode.tt-page-newsite #page-header .ph-caption-title,
body.tt-dark-mode.tt-page-newsite #page-header .page-header-title,
body.tt-dark-mode.tt-page-newsite h1,
body.tt-dark-mode.tt-page-newsite h2,
body.tt-dark-mode.tt-page-newsite h3,
body.tt-dark-mode.tt-page-newsite h4 {
  color: #f2f2f6 !important;
}

body.tt-dark-mode.tt-page-newsite .tt-heading-subtitle,
body.tt-dark-mode.tt-page-newsite #page-header .ph-caption-subtitle,
body.tt-dark-mode.tt-page-newsite #page-header .page-header-description {
  color: #b8b9c4 !important;
}

body.tt-dark-mode.tt-page-newsite #body-content a:not(.btn):not(.btn-floating):not(.btn-social-min) {
  color: #7fd4ea;
}

body.tt-dark-mode.tt-page-newsite #body-content .alt-preview-banner a {
  color: #e8f0ff !important;
}

body.tt-dark-mode.tt-page-newsite #logo a {
  color: inherit;
}

body.tt-dark-mode.tt-page-newsite:not(.tt-page-indexalt) #body-content > section#about-me-section,
body.tt-dark-mode.tt-page-newsite:not(.tt-page-indexalt) #body-content > section#prices-section {
  background: #141418;
  border-top-color: #2a2b34;
  border-bottom-color: #2a2b34;
}

body.tt-dark-mode.tt-page-newsite:not(.tt-page-indexalt) .call-to-action-section {
  background: #1c1d24 !important;
  border-top-color: #2a2b34;
  border-bottom-color: #2a2b34;
}

body.tt-dark-mode.tt-page-newsite:not(.tt-page-indexalt) [class*="split-box-content"] {
  background-color: #1a1b22;
}

body.tt-dark-mode.tt-page-newsite .price-box {
  background: #22232c;
  border-color: #353640 !important;
  box-shadow: none;
}

body.tt-dark-mode.tt-page-newsite:not(.tt-page-indexalt) blockquote {
  background: #22232c;
  border-color: #353640 !important;
  color: #e8e8ec;
}

body.tt-dark-mode.tt-page-newsite .form-control,
body.tt-dark-mode.tt-page-newsite input[type="text"],
body.tt-dark-mode.tt-page-newsite input[type="email"],
body.tt-dark-mode.tt-page-newsite input[type="tel"],
body.tt-dark-mode.tt-page-newsite textarea {
  background: #1c1d24;
  border-color: #353640;
  color: #f2f2f6;
}

body.tt-dark-mode.tt-page-newsite footer.bg-dark {
  margin-top: clamp(16px, 2.5vw, 28px);
  background-image: linear-gradient(
    180deg,
    rgba(32, 33, 40, 0.96) 0%,
    rgba(20, 20, 26, 0.94) 100%
  ) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -8px 28px rgba(0, 0, 0, 0.35);
  color: #e8e8ec !important;
}

body.tt-dark-mode.tt-page-newsite footer.bg-dark .text-white,
body.tt-dark-mode.tt-page-newsite footer.bg-dark span.text-white {
  color: #c4c5d0 !important;
}

body.tt-dark-mode.tt-page-newsite footer.bg-dark .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0f0f5 !important;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

body.tt-dark-mode.tt-page-newsite footer.bg-dark .btn-outline-light:hover,
body.tt-dark-mode.tt-page-newsite footer.bg-dark .btn-outline-light:focus {
  border-color: rgba(127, 212, 234, 0.55);
  color: #fff !important;
  background: rgba(127, 212, 234, 0.12);
}

body.tt-dark-mode.tt-page-newsite footer.bg-dark .text-center.p-3 {
  background: rgba(0, 0, 0, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #a8a9b8 !important;
  font-size: 11px;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

body.tt-dark-mode.tt-page-newsite footer.bg-dark .text-center.p-3 .text-white {
  color: #a8a9b8 !important;
}

body.tt-dark-mode.tt-page-newsite #footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.tt-dark-mode.tt-page-newsite.tt-page-portfolio #gallery-single-section .isotope-item > a.gallery-single-item {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------------------------------- */
/* Menu principale (header)                                                   */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite .tt-main-menu .tt-menu-nav > li > a {
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
}

body.tt-page-newsite .tt-menu-tools > ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

body.tt-page-newsite .tt-menu-tools > ul > li.tt-tools-lang {
  flex: 0 0 70px;
}

body.tt-page-newsite .tt-menu-tools > ul > li.tt-tools-lang > a,
body.tt-page-newsite .tt-menu-tools > ul > li.tt-tools-lang > span {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  padding: 10px 5px;
  line-height: 1.5;
  font-size: 15px;
  font-weight: 400;
  box-sizing: border-box;
  white-space: nowrap;
}

body.tt-page-newsite .tt-menu-tools > ul > li.tt-tools-lang img {
  width: 16px;
  height: auto;
  margin-right: 6px;
}

/* Lezioni (e fallback generale): evita qualsiasi caret/separatore accidentale
   nel blocco lingua del menu tools. Non tocca il marker rosso del menu nav. */
body.tt-page-newsite #header .tt-menu-tools .tt-tools-lang .tt-caret,
body.tt-page-newsite #header .tt-menu-tools .tt-tools-lang .tt-caret::before,
body.tt-page-newsite #header .tt-menu-tools .tt-tools-lang .tt-caret::after,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang::before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang::after,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > a::before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > a::after,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > span::before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > span::after {
  content: none !important;
  display: none !important;
}

/* FIX: rimuove il trattino separatore tra menu nav e blocco lingua/tema.
   NON tocca il marker rosso sotto la voce attiva del menu. */
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang:before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang:after,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang::before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang::after,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-theme:before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-theme:after,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-theme::before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-theme::after,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > a:before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > a:after,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > a::before,
body.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > a::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.tt-page-newsite .tt-menu-tools > ul > li.tt-tools-theme {
  flex: 0 0 122px;
  margin-left: 0 !important;
}

body.tt-page-newsite .tt-menu-tools > ul > li.tt-tools-theme #tt-dark-toggle {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  /* Spazio costante tra icona SVG e label, indipendente da qualunque
     risorsa esterna. */
  gap: 8px;
  column-gap: 8px;
}

/* Icona del toggle: SVG inline (path di "fa-adjust"). Dimensioni fisse in
   pixel, no dipendenza da font esterni → niente "salto" o "ingrandimento"
   quando i font finiscono di caricare. */
body.tt-page-newsite #tt-dark-toggle .tt-dark-toggle-icon,
body.tt-page-newsite .tt-tools-theme > button .tt-dark-toggle-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  flex: 0 0 14px;
  fill: currentColor;
  color: inherit;
  vertical-align: middle;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
 * Dark toggle: tipografia esplicita per evitare il "salto" di peso/dimensione.
 * Il <button> non eredita font da default browser: senza queste regole il
 * primo paint mostra Arial 13px peso normale, poi cambia quando arriva il
 * boot CSS, poi cambia di nuovo quando il woff2 di Poppins finisce di
 * caricarsi. Bloccando font-weight/size/style/letter-spacing dal primo
 * frame il rendering resta stabile. Peso 500 e line-height 1.5 per matchare
 * .tt-menu-nav > li > a (così "Light mode" è allineato a Home/Bio/...).
 * -------------------------------------------------------------------------- */
body.tt-page-newsite #tt-dark-toggle,
body.tt-page-newsite .tt-tools-theme > button {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
}

body.tt-page-newsite .tt-main-menu .tt-menu-tools > ul > li.tt-tools-theme {
  vertical-align: baseline;
}

body.tt-page-newsite #tt-dark-toggle .tt-dark-toggle-label,
body.tt-page-newsite .tt-tools-theme > button .tt-dark-toggle-label {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}


body.tt-page-newsite .tt-main-menu .tt-menu-nav > li > a:hover,
body.tt-page-newsite .tt-main-menu .tt-menu-nav > li > a:focus {
  background: rgba(120, 1, 2, 0.1);
}

body.tt-dark-mode.tt-page-newsite .tt-main-menu .tt-menu-nav > li > a:hover,
body.tt-dark-mode.tt-page-newsite .tt-main-menu .tt-menu-nav > li > a:focus {
  background: rgba(120, 1, 2, 0.18);
}

/* Hover header: usa tint rosso (non chiaro) su menu e tools. */
body.tt-page-newsite #header .tt-main-menu .tt-menu-nav > li > a:hover,
body.tt-page-newsite #header .tt-main-menu .tt-menu-nav > li > a:focus-visible,
body.tt-page-newsite #header .tt-menu-tools > ul > li > a:hover,
body.tt-page-newsite #header .tt-menu-tools > ul > li > a:focus-visible,
body.tt-page-newsite #header #tt-dark-toggle:hover,
body.tt-page-newsite #header #tt-dark-toggle:focus-visible {
  background: rgba(120, 1, 2, 0.22) !important;
}

body.tt-dark-mode.tt-page-newsite #header .tt-main-menu .tt-menu-nav > li > a:hover,
body.tt-dark-mode.tt-page-newsite #header .tt-main-menu .tt-menu-nav > li > a:focus-visible,
body.tt-dark-mode.tt-page-newsite #header .tt-menu-tools > ul > li > a:hover,
body.tt-dark-mode.tt-page-newsite #header .tt-menu-tools > ul > li > a:focus-visible,
body.tt-dark-mode.tt-page-newsite #header #tt-dark-toggle:hover,
body.tt-dark-mode.tt-page-newsite #header #tt-dark-toggle:focus-visible {
  background: rgba(120, 1, 2, 0.28) !important;
}

body.tt-page-newsite #header #tt-dark-toggle:focus:not(:focus-visible) {
  background: transparent !important;
}

/* Lezioni usa <span> per la lingua (EN): forza colore uguale ai link header. */
body.tt-dark-mode.tt-page-newsite #header .tt-menu-tools > ul > li.tt-tools-lang > span {
  color: #fff !important;
  text-shadow: none !important;
}

/* Home "Come lavoriamo": manteniamo numeri/testi e cambiamo solo sfondo card. */
body.tt-page-newsite .alt-step-card {
  position: relative;
  width: 100%;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: 50% 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: stretch;
}

body.tt-page-newsite .alt-step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.62) 100%);
}

body.tt-page-indexalt.tt-page-newsite .alt-about-me .alt-bio-photo {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  box-shadow: none;
}

body.tt-page-indexalt.tt-page-newsite .alt-about-me .alt-bio-photo img {
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 56vh, 620px);
  object-fit: cover;
  object-position: 50% 26%;
}

body.tt-page-indexalt.tt-page-newsite .indexnew-cta-title,
body.tt-page-indexalt.tt-page-newsite .indexnew-cta-subtitle {
  white-space: nowrap;
  text-align: center;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  max-width: none !important;
}

body.tt-page-indexalt.tt-page-newsite .call-to-action-section .tt-heading-inner.tt-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.tt-page-indexalt.tt-page-newsite .alt-reviews blockquote.alt-review-card::before,
body.tt-page-indexalt.tt-page-newsite .alt-reviews blockquote.alt-review-card::after {
  content: none !important;
  display: none !important;
}

body.tt-page-indexalt.tt-page-newsite .alt-reviews .alt-review-quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  max-height: 7em;
}

body.tt-page-indexalt.tt-page-newsite .alt-reviews .alt-review-card.is-expanded .alt-review-quote {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  max-height: none;
}

body.tt-page-indexalt.tt-page-newsite .alt-reviews .alt-review-readmore {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0;
  margin: 0 0 14px;
  cursor: pointer;
  text-decoration: underline;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------------------------------- */
/* Index pubblica - light mode tuning richiesto                               */
/* -------------------------------------------------------------------------- */
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-section.alt-lessons::before {
  opacity: 0.58;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-section.alt-lessons::after {
  background: rgba(10, 10, 12, 0.44);
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) blockquote.alt-review-card {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.16) 0%, rgba(120, 1, 2, 0) 46%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.14) 0%, rgba(64, 193, 184, 0) 52%),
    linear-gradient(145deg, #eef1f7 0%, #dde3ee 54%, #d3d9e6 100%);
  border-color: #b8bec9;
  border-left-color: #b8bec9;
  box-shadow: 0 8px 24px rgba(15, 20, 30, 0.12);
}

body.tt-dark-mode.tt-page-indexalt.tt-page-newsite blockquote.alt-review-card {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.22) 0%, rgba(120, 1, 2, 0) 48%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.18) 0%, rgba(64, 193, 184, 0) 54%),
    linear-gradient(145deg, #2a2d38 0%, #222632 54%, #1c202b 100%);
  border-color: #353640 !important;
  border-left-color: #353640 !important;
  box-shadow: none;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-reviews .alt-review-readmore {
  color: #0c0d10;
  text-shadow: none;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-review-submit-panel {
  background: #eceff5;
  border: 1px solid rgba(15, 20, 30, 0.14);
  box-shadow: 0 12px 30px rgba(15, 20, 30, 0.16);
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .call-to-action-section {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.16) 0%, rgba(120, 1, 2, 0) 46%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.14) 0%, rgba(64, 193, 184, 0) 52%),
    linear-gradient(145deg, #eef1f7 0%, #dde3ee 54%, #d3d9e6 100%) !important;
  border-top-color: #cfd6e3 !important;
  border-bottom: 0 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-section.alt-services-merged {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.16) 0%, rgba(120, 1, 2, 0) 46%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.14) 0%, rgba(64, 193, 184, 0) 52%),
    linear-gradient(145deg, #eef1f7 0%, #dde3ee 54%, #d3d9e6 100%) !important;
  border-top-color: #cfd6e3 !important;
  border-bottom: 0 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .call-to-action-section {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.16) 0%, rgba(120, 1, 2, 0) 46%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.14) 0%, rgba(64, 193, 184, 0) 52%),
    linear-gradient(145deg, #eef1f7 0%, #dde3ee 54%, #d3d9e6 100%) !important;
  border-top-color: #cfd6e3 !important;
  border-bottom: 0 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-section.alt-about-me {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.16) 0%, rgba(120, 1, 2, 0) 46%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.14) 0%, rgba(64, 193, 184, 0) 52%),
    linear-gradient(145deg, #eef1f7 0%, #dde3ee 54%, #d3d9e6 100%) !important;
  border-top-color: #cfd6e3 !important;
  border-bottom-color: #cfd6e3 !important;
}

body.tt-page-cv.tt-page-newsite:not(.tt-dark-mode) .alt-section.alt-bg {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.16) 0%, rgba(120, 1, 2, 0) 46%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.14) 0%, rgba(64, 193, 184, 0) 52%),
    linear-gradient(145deg, #eef1f7 0%, #dde3ee 54%, #d3d9e6 100%) !important;
  border-top-color: #cfd6e3 !important;
  border-bottom-color: #cfd6e3 !important;
}

body.tt-dark-mode.tt-page-indexalt.tt-page-newsite .alt-section.alt-about-me,
body.tt-dark-mode.tt-page-indexalt.tt-page-newsite .alt-section.alt-services-merged,
body.tt-dark-mode.tt-page-indexalt.tt-page-newsite .alt-case-section {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.22) 0%, rgba(120, 1, 2, 0) 48%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.18) 0%, rgba(64, 193, 184, 0) 54%),
    linear-gradient(145deg, #2a2d38 0%, #222632 54%, #1c202b 100%) !important;
  border-top-color: #353640 !important;
  border-bottom-color: #353640 !important;
}

body.tt-dark-mode.tt-page-indexalt.tt-page-newsite .call-to-action-section {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.22) 0%, rgba(120, 1, 2, 0) 48%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.18) 0%, rgba(64, 193, 184, 0) 54%),
    linear-gradient(145deg, #2a2d38 0%, #222632 54%, #1c202b 100%) !important;
  border-top-color: #353640 !important;
  border-bottom: 0 !important;
}

body.tt-dark-mode.tt-page-indexalt.tt-page-newsite .alt-section.alt-services-merged {
  border-bottom: 0 !important;
}

body.tt-dark-mode.tt-page-indexalt.tt-page-newsite .alt-case-section {
  background:
    radial-gradient(120% 140% at 92% 0%, rgba(89, 102, 255, 0.24) 0%, rgba(89, 102, 255, 0) 50%),
    radial-gradient(95% 120% at 0% 100%, rgba(74, 214, 255, 0.2) 0%, rgba(74, 214, 255, 0) 56%),
    linear-gradient(215deg, #273041 0%, #1f2737 54%, #192130 100%) !important;
}


body.tt-dark-mode.tt-page-cv.tt-page-newsite .alt-section.alt-bg {
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(120, 1, 2, 0.22) 0%, rgba(120, 1, 2, 0) 48%),
    radial-gradient(95% 120% at 100% 100%, rgba(64, 193, 184, 0.18) 0%, rgba(64, 193, 184, 0) 54%),
    linear-gradient(145deg, #2a2d38 0%, #222632 54%, #1c202b 100%) !important;
  border-top-color: #353640 !important;
  border-bottom-color: #353640 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .indexnew-cta-title {
  color: #0c0d10 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .indexnew-cta-subtitle {
  color: #33333c !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark.footer-v2-selected,
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.footer-chosen {
  margin-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(208, 214, 226, 0.95) 0%, rgba(176, 185, 202, 0.93) 100%) !important;
  border-top: 0 !important;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -10px 28px rgba(12, 16, 24, 0.12) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  color: #1a1e28 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark.footer-v2-selected,
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark.footer-v2-selected *,
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.footer-chosen,
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.footer-chosen * {
  color: #111111 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark.footer-v2-selected .muted,
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.footer-chosen .footer-chosen-line {
  color: #2f3440 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark.footer-v2-selected .dot,
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.footer-chosen .footer-chosen-dot {
  border-color: rgba(26, 30, 40, 0.22);
  color: #111111 !important;
  background: rgba(255, 255, 255, 0.35);
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) #footer {
  border-top: 0 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark {
  border-top: 0 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark.footer-v2-selected .line,
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.footer-chosen .footer-chosen-line {
  border-top: 1px solid #000 !important;
}

body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark.footer-v2-selected .footer-v2-cta-btn,
body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) footer.footer-chosen .footer-chosen-btn {
  color: #ffffff !important;
}

body.tt-page-contact.tt-page-newsite:not(.tt-dark-mode) .contact-demo-form-section {
  background: #fafbfc !important;
  border-top-color: #d5d9e0 !important;
  border-bottom-color: #d5d9e0 !important;
}

body.tt-dark-mode.tt-page-contact.tt-page-newsite .contact-demo-form-section {
  background: #141418 !important;
  border-top-color: #353640 !important;
  border-bottom-color: #353640 !important;
}

body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.bg-dark,
body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.footer-chosen {
  margin-top: 0 !important;
  background: linear-gradient(180deg, rgba(208, 214, 226, 0.95) 0%, rgba(176, 185, 202, 0.93) 100%) !important;
  border-top: 0 !important;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -10px 28px rgba(12, 16, 24, 0.12) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.bg-dark,
body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.bg-dark *,
body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.footer-chosen,
body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.footer-chosen * {
  color: #111 !important;
}

body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.bg-dark .line,
body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.footer-chosen .footer-chosen-line {
  border-top: 1px solid #000 !important;
}

body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.bg-dark .footer-v2-cta-btn,
body.tt-page-newsite:not(.tt-page-indexalt):not(.tt-dark-mode) footer.footer-chosen .footer-chosen-btn {
  color: #fff !important;
}

body.tt-page-portfolio.tt-page-newsite:not(.tt-dark-mode) #page-header .page-header-title {
  color: #ffffff !important;
}

body.tt-page-portfolio.tt-page-newsite:not(.tt-dark-mode) .isotope-top-content {
  background: #f0f0f0 !important;
}

body.tt-page-portfolio.tt-page-newsite:not(.tt-dark-mode) .tt-heading.bg-gray-3 {
  background: #f0f0f0 !important;
}

body.tt-page-portfolio.tt-page-newsite:not(.tt-dark-mode) .portfolio-private-cta {
  background-color: #f0f0f0 !important;
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.tt-page-portfolio.tt-page-newsite:not(.tt-dark-mode) footer.bg-dark {
  margin-top: 0 !important;
}

body.tt-page-portfolio.tt-page-newsite:not(.tt-dark-mode) .tt-heading.padding-on2.text-center.bg-gray-3:empty,
body.tt-page-portfolio.tt-page-newsite:not(.tt-dark-mode) .tt-heading.padding-on2.text-center.bg-gray-3 .tt-heading-title:empty,
body.tt-page-portfolio.tt-page-newsite:not(.tt-dark-mode) .tt-heading.padding-on2.text-center.bg-gray-3 .tt-heading-subtitle:empty {
  display: none !important;
}

body.tt-page-indexalt.tt-page-newsite .alt-reviews .alt-review-readmore.is-hidden {
  display: none;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-wrap {
  margin-top: 10px;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-panel {
  margin: 16px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(18, 20, 26, 0.72);
  padding: 16px;
  max-width: 920px;
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-panel.is-hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  margin-top: 0;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-avatar-upload img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-stars button {
  border: 0;
  background: transparent;
  color: #f4c765;
  font-size: 20px;
  padding: 0;
  line-height: 1;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-panel .portfolio-item-detail__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-panel #home-review-name,
body.tt-page-indexalt.tt-page-newsite .alt-review-submit-panel #home-review-text {
  display: block;
  width: 100%;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-submit-panel #home-review-text {
  min-height: 108px;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-avatar-upload .alt-review-avatar-btn,
body.tt-page-indexalt.tt-page-newsite .alt-review-avatar-upload .alt-review-avatar-btn.btn,
body.tt-page-indexalt.tt-page-newsite .alt-review-avatar-upload .alt-review-avatar-btn.btn-default {
  width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #111111 !important;
  font-weight: 600;
}

body.tt-page-indexalt.tt-page-newsite .alt-review-avatar-upload .alt-review-avatar-btn:hover,
body.tt-page-indexalt.tt-page-newsite .alt-review-avatar-upload .alt-review-avatar-btn:focus {
  background: #f0f2f7 !important;
  border-color: #f0f2f7 !important;
  color: #111111 !important;
}

body.tt-page-indexalt.tt-page-newsite #home-review-avatar-file {
  display: none !important;
}

@media (max-width: 767px) {
  body.tt-page-indexalt.tt-page-newsite .alt-review-submit-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  body.tt-page-indexalt.tt-page-newsite .indexnew-cta-title,
  body.tt-page-indexalt.tt-page-newsite .indexnew-cta-subtitle {
    white-space: normal;
  }
}

body.tt-page-indexalt.tt-page-newsite footer.bg-dark,
body.tt-page-indexalt.tt-page-newsite footer.footer-chosen {
  margin-top: 0 !important;
}

body.tt-page-indexalt.tt-page-newsite #alt-hero .alt-hero-btn-outline.btn,
body.tt-page-indexalt.tt-page-newsite #alt-hero .alt-hero-btn-outline.btn.btn-default {
  background: #fff !important;
  border-color: #fff !important;
  color: #0f1014 !important;
  font-weight: 600;
}

body.tt-page-indexalt.tt-page-newsite #alt-hero .alt-hero-btn-outline.btn:hover,
body.tt-page-indexalt.tt-page-newsite #alt-hero .alt-hero-btn-outline.btn:focus {
  background: #edf1f8 !important;
  border-color: #edf1f8 !important;
  color: #0f1014 !important;
}

@media (max-width: 767px) {
  body.tt-page-indexalt.tt-page-newsite .alt-about-me .alt-bio-photo {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-about-me .alt-bio-photo img {
    min-height: clamp(280px, 44vh, 460px);
  }

  body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-about-me .col-md-7 p {
    text-align: center;
  }

  body.tt-page-indexalt.tt-page-newsite:not(.tt-dark-mode) .alt-about-me .col-md-7 p .btn {
    margin-left: 4px !important;
    margin-right: 4px !important;
  }

  body.tt-page-indexalt.tt-page-newsite.tt-dark-mode .alt-about-me .col-md-7 p {
    text-align: left;
  }

  body.tt-page-indexalt.tt-page-newsite #alt-lessons-heading {
    text-align: center;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-reviews .row {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-reviews .row > [class*="col-"] {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 12px !important;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-reviews .alt-review-card {
    padding: 16px 14px;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-reviews .alt-review-quote {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 13px;
    line-height: 1.45;
    max-height: 4.6em;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .row::before,
  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .row::after {
    display: none !important;
    content: none !important;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .row > [class*="col-"] {
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .alt-step-card {
    min-height: 210px;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .alt-step-card-inner {
    min-height: 210px;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .alt-step-card p.text-gray {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .row > [class*="col-"]:nth-child(5) {
    grid-column: 1 / -1;
    width: min(calc(50% - 5px), 320px);
    justify-self: center;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 991px) {
  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > strong {
    flex: 0 0 auto;
    text-align: left;
    width: auto;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > .footer-chosen-split {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-kicker {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-btn {
    width: auto;
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 12px;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-line .footer-chosen-split {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-line .footer-chosen-split > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-social {
    margin-left: 0;
    justify-content: flex-end;
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split {
    gap: 10px;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > .footer-chosen-split {
    justify-content: flex-end;
    text-align: right;
    min-width: 0;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-kicker {
    font-size: 11px;
  }
}

@media (max-width: 500px) {
  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > strong {
    text-align: center;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > .footer-chosen-split {
    text-align: right;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-line .footer-chosen-split > span {
    white-space: normal;
    text-align: left;
  }
}

/* Keep footer in-row until very narrow screens; avoid early centering/stacking around 766/445px */
@media (max-width: 767px) {
  body.tt-page-newsite footer.footer-chosen .footer-chosen-split {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-btn {
    width: auto !important;
  }
}

@media (max-width: 445px) {
  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > strong {
    font-size: 22px;
    letter-spacing: 0.02em;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > .footer-chosen-split {
    flex-wrap: nowrap;
    min-width: 0;
    justify-content: flex-end;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-kicker {
    white-space: nowrap;
  }
}

@media (max-width: 475px) {
  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .row {
    grid-template-columns: 1fr;
  }

  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .row > [class*="col-"],
  body.tt-page-indexalt.tt-page-newsite .alt-services-merged .row > [class*="col-"]:nth-child(5) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 520px) {
  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split {
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center;
    gap: 8px;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > strong {
    width: 100%;
    text-align: center;
    font-size: 23px;
    letter-spacing: 0.02em;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > .footer-chosen-split {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-kicker {
    white-space: normal;
    text-align: center;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-btn {
    white-space: nowrap;
  }
}

@media (max-width: 991px) {
  body.tt-page-contact.tt-page-newsite .contact-demo-step {
    padding: 10px 10px 8px;
  }

  body.tt-page-contact.tt-page-newsite .contact-demo-step .text-gray.small {
    line-height: 1.35;
  }

  body.tt-page-contact.tt-page-newsite .contact-demo-step .margin-bottom-0 {
    margin-bottom: 0 !important;
  }

  body.tt-page-contact.tt-page-newsite .contact-demo-card {
    padding: 16px 14px;
  }

  body.tt-page-contact.tt-page-newsite .contact-demo-grid > .contact-demo-card:first-child {
    order: 2;
  }

  body.tt-page-contact.tt-page-newsite .contact-demo-grid > .contact-demo-card:nth-child(2) {
    order: 1;
  }
}

@media (max-width: 412px) {
  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > strong {
    font-size: 22px;
    letter-spacing: 0.02em;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-main > .footer-chosen-split > .footer-chosen-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    width: 100%;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-kicker {
    white-space: normal;
    text-align: right;
    max-width: none;
    font-size: 12px;
    grid-column: 1 / 2;
    justify-self: end;
  }

  body.tt-page-newsite footer.footer-chosen .footer-chosen-btn {
    grid-column: 2 / 3;
    justify-self: start;
  }
}

body.tt-page-newsite .alt-step-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 260px;
  padding: 0 16px;
  color: #fff;
  text-align: center;
}

body.tt-page-newsite .alt-step-card h4 {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(50% + 34px);
  color: #fff;
  margin: 0;
}

body.tt-page-newsite .alt-step-card p.text-gray {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(50% + 68px);
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0;
}

body.tt-page-newsite .alt-step-card .alt-step-num {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Hero index: logo landing                                                   */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite:not(.tt-page-indexalt) #tt-intro .intro-title img {
  max-width: min(520px, 88vw);
  height: auto;
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.45));
}

/* -------------------------------------------------------------------------- */
/* Scroll top / misc                                                          */
/* -------------------------------------------------------------------------- */

body.tt-page-newsite #scrolltotop {
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

body.tt-page-newsite:not(.tt-page-indexalt) .page-header-image {
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 0 -50px 90px rgba(0, 0, 0, 0.22);
}

body.tt-page-newsite:not(.tt-page-indexalt) #page-header {
  overflow: hidden;
}

body.tt-dark-mode.tt-page-newsite:not(.tt-page-indexalt) .page-header-image {
  box-shadow: inset 0 -60px 100px rgba(0, 0, 0, 0.55);
}
