/**
 * TEAMWORK SP Elementor Child - Custom styles
 * Mirrors the React/TypeScript project design tokens exactly.
 */

/* =========================================================================
   CSS Variables (matching src/index.css)
   ========================================================================= */
:root {
  /* === PALETA OFICIAL TEAMWORK SP (Fonte e cores.png) === */
  --background: 0 0% 100%;
  --foreground: 230 25% 18%;
  /* #222639 – navy escuro (headings) */
  --card: 0 0% 100%;
  --primary: 223 57% 26%;
  /* #1D3268 – azul principal */
  --primary-foreground: 0 0% 100%;
  --secondary: 20 78% 45%;
  /* #CB5619 – laranja oficial */
  --secondary-foreground: 0 0% 100%;
  --muted: 220 25% 96%;
  --muted-foreground: 219 27% 24%;
  /* #2C374C – navy médio (body) */
  --accent: 219 27% 24%;
  /* #2C374C – navy médio */
  --border: 220 24% 88%;
  --ring: 223 57% 26%;
  /* #1D3268 */
  --radius: 0.375rem;
  --surface-soft: 220 22% 95%;
  --surface-blue: 223 35% 93%;
  --shadow-card: 0 4px 24px -4px hsl(223 57% 26% / 0.08);
  --shadow-card-hover: 0 12px 32px -8px hsl(223 57% 26% / 0.16);
  /* Cores em hex para uso direto */
  --color-primary-hex: #1D3268;
  --color-secondary-hex: #CB5619;
  --color-dark-hex: #222639;
  --color-body-hex: #2C374C;
}

/* =========================================================================
   Base & typography
   ========================================================================= */
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* =========================================================================
   Layout helpers
   ========================================================================= */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Native Elementor header overrides */
:root {
  --teamwork-header-offset: 72px;
}

.elementor-location-header,
.elementor-location-header>.elementor,
.elementor-location-header>.elementor>.e-con:first-child {
  background: #ffffff;
}

.elementor-location-header .teamwork-header {
  min-height: 88px;
  padding: 0 24px;
  gap: 20px;
}

.teamwork-native-header {
  flex-wrap: nowrap;
}

.teamwork-header-brand,
.teamwork-header-actions,
.teamwork-desktop-nav,
.teamwork-mobile-tools,
.teamwork-cta-switch {
  display: flex;
  align-items: center;
}

.teamwork-header-brand {
  flex: 0 0 auto;
  min-width: 0;
}

.teamwork-header-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.teamwork-desktop-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.teamwork-cta-switch {
  flex: 0 0 auto;
  gap: 14px;
}

.teamwork-mobile-tools {
  flex: 0 0 auto;
  gap: 12px;
  --teamwork-hamburger-size: 52px;
  --teamwork-hamburger-safe-gap: 12px;
  --teamwork-hamburger-menu-width: clamp(240px, 78vw, 360px);
}

.teamwork-site-logo {
  width: clamp(148px, 15.8vw, 214px);
  max-width: 100%;
}

.teamwork-site-logo img,
.nav-logo-img {
  width: 100% !important;
  max-width: 190px !important;
  height: auto !important;
  max-height: 52px !important;
  display: block !important;
  object-fit: contain !important;
  box-shadow: none !important;
  filter: none !important;
  background: transparent !important;
}

.teamwork-desktop-nav .elementor-widget-container,
.teamwork-mobile-tools .elementor-widget-container {
  display: flex;
  align-items: center;
}

.teamwork-desktop-nav .elementor-nav-menu--main {
  justify-content: flex-end;
}

.teamwork-desktop-nav .elementor-nav-menu {
  gap: 4px;
}

.teamwork-desktop-nav .elementor-item {
  color: hsl(var(--foreground));
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.teamwork-desktop-nav .elementor-item:hover,
.teamwork-desktop-nav .elementor-item:focus,
.teamwork-desktop-nav .elementor-item.elementor-item-active {
  color: hsl(var(--primary));
  background: transparent;
}

.teamwork-desktop-nav .elementor-item.elementor-item-active {
  box-shadow: inset 0 -2px 0 hsl(var(--secondary));
}

.teamwork-mobile-tools .elementor-menu-toggle {
  min-height: var(--teamwork-hamburger-size);
  min-width: var(--teamwork-hamburger-size);
  width: var(--teamwork-hamburger-size);
  max-width: var(--teamwork-hamburger-size);
  padding: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: #ffffff;
  color: hsl(var(--foreground));
}

.teamwork-mobile-tools .elementor-nav-menu--dropdown {
  margin-top: 14px !important;
  min-width: var(--teamwork-hamburger-menu-width) !important;
  width: var(--teamwork-hamburger-menu-width) !important;
  max-width: calc(100vw - (var(--teamwork-hamburger-safe-gap) * 2)) !important;
  left: auto !important;
  right: 0;
  transform: none !important;
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px -20px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(72vh, 520px);
}

.teamwork-mobile-tools .elementor-nav-menu--dropdown a {
  padding: 14px 18px;
  font-size: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid hsl(var(--border));
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.teamwork-mobile-tools .elementor-nav-menu--dropdown li:last-child a {
  border-bottom: 0;
}

.teamwork-header .elementor-button,
.teamwork-header .btn-cta {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.5);
}

.nav-lang {
  white-space: nowrap;
}

@media (min-width: 1025px) {
  /* Header principal: forçar uma linha horizontal */
  .elementor-location-header .teamwork-header.e-con-full,
  .elementor-location-header .teamwork-header > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
    min-height: 80px !important;
  }

  /* Logo: tamanho fixo, não cresce */
  .elementor-location-header .teamwork-header-brand,
  .elementor-location-header .teamwork-site-logo {
    flex: 0 0 auto !important;
    width: clamp(140px, 12vw, 190px) !important;
    max-width: 190px !important;
    margin: 0 !important;
    margin-left: 30px !important;
    margin-inline-start: 30px !important;
    --margin-left: 30px;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    overflow: hidden !important;
  }

  /* Logo inner: image constraints */
  .teamwork-header-brand .elementor-widget-container,
  .teamwork-header-brand a {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .teamwork-header-actions {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: flex-end;
    min-width: 0;
  }

  .teamwork-header-actions .e-con-inner {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    justify-content: flex-end;
    gap: 18px;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .teamwork-desktop-nav,
  .teamwork-cta-switch,
  .teamwork-desktop-nav.e-con,
  .teamwork-cta-switch.e-con {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .teamwork-desktop-nav {
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .teamwork-cta-switch {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    gap: 14px;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr004,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr005,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr006,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr008 {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  /* --- Logo Alignment and Content Width Constraint for Desktop Header --- */
  @media (min-width: 1401px) {
    .teamwork-header {
      padding-left: calc((100vw - 1400px) / 2) !important;
      padding-right: calc((100vw - 1400px) / 2) !important;
    }
  }

  .teamwork-header-brand {
    display: inline-flex !important;
  }

  .teamwork-header {
    /* max-width: 1400px !important; */
    margin: 0 auto !important;
    padding: 0 24px !important;
  }

  .teamwork-desktop-nav .elementor-widget-nav-menu,
  .teamwork-desktop-nav .elementor-widget-nav-menu.elementor-element,
  .teamwork-desktop-nav .elementor-widget-nav-menu .elementor-widget-container {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    display: flex !important;
  }

  .teamwork-desktop-nav .elementor-widget-nav-menu {
    flex: 1 1 auto;
  }

  .teamwork-desktop-nav .elementor-nav-menu--main {
    display: flex;
    justify-content: flex-end;
    width: auto !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr005 {
    flex: 1 1 auto !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr008 {
    flex: 0 0 auto !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 .elementor-widget-container,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 a {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
  }

  .teamwork-site-logo img,
  .nav-logo-img {
    display: block !important;
    width: 100% !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 52px !important;
    object-fit: contain !important;
  }

  .teamwork-mobile-tools {
    display: none !important;
  }
}

.teamwork-lang-pt,
.teamwork-lang-en,
.teamwork-desktop-only,
.teamwork-mobile-only {
  display: none !important;
}

html[lang^="pt"] .teamwork-desktop-nav .teamwork-lang-pt,
html[lang^="en"] .teamwork-desktop-nav .teamwork-lang-en {
  display: flex !important;
}

html[lang^="pt"] .teamwork-mobile-tools .teamwork-lang-pt,
html[lang^="en"] .teamwork-mobile-tools .teamwork-lang-en {
  display: block !important;
}

.elementor-location-header .teamwork-desktop-nav .teamwork-lang-pt,
.elementor-location-header .teamwork-desktop-nav .teamwork-lang-en {
  display: none !important;
}

.elementor-location-header .teamwork-mobile-tools .teamwork-lang-pt,
.elementor-location-header .teamwork-mobile-tools .teamwork-lang-en {
  display: none !important;
}

html[lang^="pt"] .elementor-location-header .teamwork-desktop-nav .teamwork-lang-pt,
html[lang^="en"] .elementor-location-header .teamwork-desktop-nav .teamwork-lang-en {
  display: flex !important;
}

html[lang^="pt"] .elementor-location-header .teamwork-mobile-tools .teamwork-lang-pt,
html[lang^="en"] .elementor-location-header .teamwork-mobile-tools .teamwork-lang-en {
  display: block !important;
}

@media (min-width: 1025px) {
  .teamwork-desktop-only {
    display: flex !important;
  }
}

@media (max-width: 1024px) {
  :root {
    --teamwork-header-offset: 116px;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr001 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 14px 18px 16px !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr002,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr004 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr002>.e-con-inner,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr004>.e-con-inner {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-location-header .teamwork-header {
    min-height: auto;
    padding: 14px 18px 16px;
    gap: 12px;
    justify-content: center;
  }

  .teamwork-native-header {
    flex-wrap: wrap;
  }

  .teamwork-header-brand,
  .teamwork-header-actions {
    width: 100%;
    justify-content: center;
  }

  .teamwork-header-brand {
    order: 1;
  }

  .teamwork-header-actions {
    order: 2;
  }

  .teamwork-header-brand .e-con-inner,
  .teamwork-header-brand .elementor-widget-container,
  .teamwork-header-brand a,
  .teamwork-header-actions .e-con-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .teamwork-mobile-only {
    display: flex !important;
  }

  .teamwork-cta-switch {
    display: none !important;
  }

  .teamwork-desktop-nav {
    display: none !important;
  }

  .teamwork-mobile-tools {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    position: relative;
    isolation: isolate;
  }

  .teamwork-mobile-tools .elementor-widget-shortcode,
  .teamwork-mobile-tools .elementor-widget-nav-menu,
  .teamwork-mobile-tools .elementor-widget-nav-menu .elementor-widget-container {
    display: flex;
    width: 100%;
    min-width: 0 !important;
    justify-content: center;
    position: static !important;
  }

  .teamwork-mobile-tools .elementor-widget-shortcode {
    order: 1;
    align-items: center;
  }

  .teamwork-mobile-tools .elementor-widget-nav-menu {
    order: 2;
    flex: 0 0 auto !important;
    position: static !important;
  }

  .teamwork-mobile-tools .elementor-nav-menu--main {
    display: none !important;
  }

  html[lang^="pt"] .teamwork-mobile-tools .elementor-element-hdr014,
  html[lang^="en"] .teamwork-mobile-tools .elementor-element-hdr013 {
    display: none !important;
  }

  html[lang^="pt"] .teamwork-mobile-tools .elementor-element-hdr013,
  html[lang^="en"] .teamwork-mobile-tools .elementor-element-hdr014 {
    display: flex !important;
  }

  .teamwork-mobile-tools .elementor-menu-toggle {
    margin: 0 !important;
    min-width: var(--teamwork-hamburger-size);
    min-height: var(--teamwork-hamburger-size);
    width: var(--teamwork-hamburger-size);
    max-width: var(--teamwork-hamburger-size);
  }

  .teamwork-mobile-tools .elementor-nav-menu--dropdown {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: var(--teamwork-hamburger-menu-width) !important;
    width: var(--teamwork-hamburger-menu-width) !important;
    max-width: calc(100vw - 24px) !important;
    margin-top: 10px !important;
  }

  .elementor-location-header .teamwork-native-header,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr001,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr011,
  .teamwork-mobile-tools,
  .teamwork-mobile-tools .elementor-widget-nav-menu,
  .teamwork-mobile-tools .elementor-widget-nav-menu .elementor-widget-container,
  .teamwork-mobile-tools .elementor-nav-menu--dropdown {
    overflow: visible !important;
  }

  .nav-lang {
    justify-content: center;
  }

  .teamwork-mobile-tools .nav-lang {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    color: #1D3268 !important;
    white-space: nowrap !important;
  }

  .teamwork-mobile-tools .nav-lang-link,
  .teamwork-mobile-tools .nav-lang-separator {
    color: #1D3268 !important;
    text-decoration: none !important;
  }

  .teamwork-site-logo {
    width: clamp(210px, 34vw, 300px);
    margin: 0 auto !important;
  }

  .teamwork-site-logo img,
  .nav-logo-img {
    max-height: 68px;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 .elementor-widget-container,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 img {
    max-width: min(320px, 72vw) !important;
    max-height: 72px !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    filter: none !important;
  }
}

@media (max-width: 767px) {
  :root {
    --teamwork-header-offset: 128px;
  }

  .elementor-location-header .teamwork-header {
    padding: 12px 14px 16px;
  }

  .teamwork-mobile-tools {
    gap: 10px;
  }

  .teamwork-site-logo {
    width: clamp(220px, 58vw, 320px);
  }

  .teamwork-site-logo img,
  .nav-logo-img {
    max-height: 78px;
  }
}

/* PT About intro should match the EN layout */
.page-id-7 .elementor-element-f068d35>.elementor-widget-container>div {
  max-width: 900px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.page-id-7 .elementor-element-f068d35 h1,
.page-id-7 .elementor-element-f068d35 p,
.page-id-7 .elementor-element-f068d35 .section-title {
  text-align: center !important;
}

.page-id-7 .elementor-element-f068d35 p {
  margin-left: auto !important;
  margin-right: auto !important;
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, hsl(216 64% 23%), hsl(213 94% 40%));
}

/* =========================================================================
   Section labels & headings
   ========================================================================= */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--secondary));
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: #CB5619;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.btn-cta:hover {
  background-color: #b94814;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.45);
  color: #ffffff !important;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(14, 30, 67, 0.42);
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #1D3268 !important;
  border-color: #ffffff;
  text-shadow: none;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.45);
}

/* =========================================================================
   Header / Navigation
   ========================================================================= */
/* Header: white fixed bar with centered inner content (Node-like) */
.teamwork-global-header-slot,
.elementor-location-header,
.elementor-location-header>.elementor>.elementor-section-wrap>.e-con:first-child,
.elementor-location-header .e-con:first-child {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.3s;
}

.teamwork-header,
#header.teamwork-header,
.elementor-location-header #header.teamwork-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 1400px !important;
  min-height: 80px;
  margin: 0 auto !important;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
  box-shadow: none !important;
}

/* Prevent overlap with the WordPress admin bar when logged in */
body.admin-bar {
  --teamwork-adminbar-offset: 32px;
}

body.admin-bar .teamwork-global-header-slot,
body.admin-bar .elementor-location-header,
body.admin-bar .elementor-location-header>.elementor>.elementor-section-wrap>.e-con:first-child,
body.admin-bar .elementor-location-header .e-con:first-child {
  top: var(--teamwork-adminbar-offset);
}

@media (max-width: 782px) {

  body.admin-bar {
    --teamwork-adminbar-offset: 46px;
  }

  body.admin-bar .teamwork-global-header-slot,
  body.admin-bar .elementor-location-header,
  body.admin-bar .elementor-location-header>.elementor>.elementor-section-wrap>.e-con:first-child,
  body.admin-bar .elementor-location-header .e-con:first-child {
    top: var(--teamwork-adminbar-offset);
  }
}

/* Header com scroll: sombra ligeiramente mais forte */
.header-scrolled,
.elementor-location-header.header-scrolled {
  box-shadow: 0 2px 16px -4px rgba(0, 0, 0, 0.18) !important;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Desktop nav links — match Node reference */
.nav-link {
  color: hsl(var(--foreground));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

/* Language switcher */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  font-family: 'Montserrat', sans-serif;
}

.nav-lang .nav-link {
  padding: 0;
  color: inherit;
}

.nav-lang .nav-link:hover {
  color: hsl(var(--primary));
}

.nav-lang .is-active {
  color: hsl(var(--primary));
  font-weight: 700;
}

/* Mobile menu toggle */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: hsl(var(--foreground));
  transition: color 0.2s;
  line-height: 0;
}

/* Desktop nav wrapper */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }
}

.teamwork-header .nav-desktop.hide-mobile {
  margin-left: auto;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
}

.teamwork-header .nav-desktop.hide-mobile>.nav-desktop {
  margin: 0 auto;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.15);
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Visibility helpers */
.hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile {
    display: flex !important;
  }
}

.show-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .show-mobile {
    display: none !important;
  }
}

/* =========================================================================
   Hero section background (dynamic URL injected via wp_head PHP action)
   ========================================================================= */
.teamwork-hero-bg {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Fallback hero styling when class is missing in Elementor section */
body.home #home {
  background-color: #1D3268 !important;
  background-image: linear-gradient(135deg, rgba(29, 50, 104, 0.94), rgba(34, 38, 57, 0.9));
  background-size: cover !important;
  background-position: center !important;
}

body.home #home h1,
body.home #home h2,
body.home #home h3,
body.home #home p,
body.home #home .section-label {
  color: #ffffff !important;
}

.teamwork-hero-bg::before {
  content: none;
}

.teamwork-hero-bg>* {
  position: relative;
  z-index: 1;
}

/* Ensure content sits above overlay inside nested containers */
.teamwork-hero-bg .e-con,
.teamwork-hero-bg .elementor-widget-wrap,
.teamwork-hero-bg .elementor-widget-container {
  position: relative;
  z-index: 1;
}

/* Push page content below fixed header */
.elementor-location-header~* .e-con:first-of-type,
body.elementor-page .e-full-width:first-of-type {
  margin-top: 0;
}

/* =========================================================================
   Cards
   ========================================================================= */
.teamwork-card {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}

.teamwork-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.teamwork-service-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.teamwork-service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.teamwork-service-card h3 {
  margin-bottom: 0.75rem;
}

/* =========================================================================
   List with checkmark icon
   ========================================================================= */
.list-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

.list-check-icon {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  border-radius: 9999px;
  background: hsl(var(--secondary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.list-check-icon svg {
  color: hsl(var(--secondary));
}

/* =========================================================================
   Grids
   ========================================================================= */
.teamwork-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .teamwork-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .teamwork-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teamwork-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .teamwork-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.teamwork-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .teamwork-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .teamwork-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================================
   Background utilities
   ========================================================================= */
.bg-muted {
  background-color: hsl(var(--muted));
}

.bg-background {
  background-color: hsl(var(--background));
}

.bg-surface-blue {
  background-color: hsl(var(--surface-blue));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.bg-foreground {
  background-color: hsl(var(--foreground));
}

.bg-card {
  background-color: hsl(var(--card));
}

/* Color utilities */
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.text-secondary {
  color: hsl(var(--secondary));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-foreground {
  color: hsl(var(--foreground));
}

/* Force TypeScript design text colors inside Elementor widgets */
.bg-background .elementor-widget-heading .elementor-heading-title,
.bg-muted .elementor-widget-heading .elementor-heading-title,
.bg-surface-blue .elementor-widget-heading .elementor-heading-title {
  color: hsl(var(--foreground));
}

.bg-background .elementor-widget-text-editor,
.bg-background .elementor-widget-text-editor p,
.bg-background .elementor-widget-text-editor li,
.bg-muted .elementor-widget-text-editor,
.bg-muted .elementor-widget-text-editor p,
.bg-muted .elementor-widget-text-editor li,
.bg-surface-blue .elementor-widget-text-editor,
.bg-surface-blue .elementor-widget-text-editor p,
.bg-surface-blue .elementor-widget-text-editor li {
  color: hsl(var(--muted-foreground));
}

.bg-background .elementor-widget-icon-box .elementor-icon-box-title,
.bg-background .elementor-widget-icon-box .elementor-icon-box-title a,
.bg-muted .elementor-widget-icon-box .elementor-icon-box-title,
.bg-muted .elementor-widget-icon-box .elementor-icon-box-title a,
.bg-surface-blue .elementor-widget-icon-box .elementor-icon-box-title,
.bg-surface-blue .elementor-widget-icon-box .elementor-icon-box-title a {
  color: hsl(var(--foreground));
}

.bg-background .elementor-widget-icon-box .elementor-icon-box-description,
.bg-muted .elementor-widget-icon-box .elementor-icon-box-description,
.bg-surface-blue .elementor-widget-icon-box .elementor-icon-box-description {
  color: hsl(var(--muted-foreground));
}

.bg-primary .elementor-widget-heading .elementor-heading-title,
.bg-primary .elementor-widget-text-editor,
.bg-primary .elementor-widget-text-editor p,
.bg-primary .elementor-widget-text-editor li,
.bg-primary .elementor-widget-text-editor a {
  color: hsl(var(--primary-foreground));
}

/* =========================================================================
   Footer
   ========================================================================= */
.teamwork-footer,
.elementor-location-footer {
  background: hsl(var(--foreground));
  color: rgba(255, 255, 255, 0.75);
}

.teamwork-footer h4,
.elementor-location-footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.teamwork-footer a,
.elementor-location-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.teamwork-footer a:hover,
.elementor-location-footer a:hover {
  color: hsl(var(--secondary));
}

.teamwork-footer ul,
.elementor-location-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.teamwork-footer ul li,
.elementor-location-footer ul li {
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
}

.footer-grid {
  padding: 2.5rem 1rem !important;
}

.footer-grid>.e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid>.e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .footer-grid>.e-con-inner {
    grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(160px, 1fr)) !important;
    gap: 2rem;
  }
}

.footer-grid>.e-con-inner>.e-con,
.footer-grid>.e-con-inner>.elementor-element {
  min-width: 0 !important;
  width: auto !important;
}

.teamwork-footer h4,
.elementor-location-footer h4 {
  margin-bottom: 0.65rem;
}

.teamwork-footer p,
.elementor-location-footer p {
  margin-bottom: 0.9rem !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Footer social icon buttons */
.footer-social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: hsl(var(--secondary));
  color: #ffffff;
}

/* =========================================================================
   WhatsApp floating button
   ========================================================================= */
.teamwork-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 998;
  width: 56px;
  height: 56px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform 0.2s;
  text-decoration: none;
}

.teamwork-whatsapp:hover {
  transform: scale(1.1);
}

.teamwork-whatsapp img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
}

/* =========================================================================
   Elementor overrides — reset conflicting defaults
   ========================================================================= */

/* Remove default Elementor page title */
h1.entry-title {
  display: none;
}

/* Ensure containers can be full-width */
.e-con.e-con-full-width,
.elementor-section.elementor-section-full_width>.elementor-container {
  max-width: 100%;
}

/* Shortcode widget: strip extra wrapper margin */
.elementor-widget-shortcode .elementor-widget-container {
  margin: 0;
  padding: 0;
}

/* HTML widget: strip Elementor wrapper spacing */
.elementor-widget-html .elementor-widget-container {
  margin: 0;
  padding: 0;
}

/* =========================================================================
   Animations
   ========================================================================= */
@keyframes teamworkFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: teamworkFadeUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-up-1 {
  animation-delay: 0.1s;
}

.animate-fade-up-2 {
  animation-delay: 0.2s;
}

.animate-fade-up-3 {
  animation-delay: 0.3s;
}

/* =========================================================================
   Contact Form 7
   ========================================================================= */
.wpcf7 {
  width: 100%;
}

.cf7-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cf7-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cf7-row {
    grid-template-columns: 1fr 1fr;
  }
}

.cf7-input,
.wpcf7-form-control.cf7-input,
.cf7-textarea,
.wpcf7-form-control.cf7-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid hsl(var(--border));
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.cf7-input:focus,
.wpcf7-form-control.cf7-input:focus,
.cf7-textarea:focus,
.wpcf7-form-control.cf7-textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.cf7-textarea,
.wpcf7-form-control.cf7-textarea {
  min-height: 140px;
  resize: vertical;
}

select.cf7-input,
.wpcf7-form-control.cf7-input[multiple],
.wpcf7-select.cf7-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

input.cf7-submit,
.wpcf7-submit.cf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2.5rem;
  background: hsl(var(--secondary));
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px -4px hsl(var(--secondary) / 0.4);
  width: max-content;
  min-width: 220px;
  margin-top: 1rem;
}

input.cf7-submit:hover,
.wpcf7-submit.cf7-submit:hover {
  background: hsl(21 88% 40%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px hsl(var(--secondary) / 0.5);
}

@media (max-width: 640px) {

  input.cf7-submit,
  .wpcf7-submit.cf7-submit {
    width: 100%;
    min-width: 0;
  }
}

/* Mensagens de status CF7 */
.wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  border: none;
}

.wpcf7.sent .wpcf7-response-output {
  background: #f0fdf4;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.wpcf7.failed .wpcf7-response-output,
.wpcf7.invalid .wpcf7-response-output {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7-not-valid.cf7-input,
.wpcf7-not-valid.cf7-textarea {
  border-color: #ef4444;
}

/* Loading spinner no botão */
.wpcf7-spinner {
  display: none;
}

.wpcf7.submitting input.cf7-submit {
  opacity: 0.7;
  pointer-events: none;
}

/* =========================================================================
   Client logos responsive grid
   ========================================================================= */
.teamwork-clients-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (min-width: 640px) {
  .teamwork-clients-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 768px) {
  .teamwork-clients-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .teamwork-clients-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* Inner pages spacing padding removed to allow Elementor structure to take over properly */
/* Page content offset for fixed header */
body.elementor-page {
  padding-top: var(--teamwork-header-offset, 80px);
}

body.admin-bar.elementor-page {
  padding-top: var(--teamwork-header-offset, 80px);
}

@media (max-width: 782px) {
  body.admin-bar.elementor-page {
    padding-top: var(--teamwork-header-offset, 80px);
  }
}

/* =========================================================================
   About page split with editable Elementor image widget (PT + EN)
   NOTE: Add CSS class "teamwork-page-about" to About page containers in Elementor.
         Add CSS class "teamwork-page-service" to service page containers.
         Add CSS class "teamwork-about-intro" to the intro section container.
         Add CSS class "teamwork-about-grid" to the grid inner container.
   ========================================================================= */
.teamwork-page-about .teamwork-about-intro {
  padding-top: 24px !important;
  padding-bottom: 56px !important;
  margin-top: 0 !important;
}

.teamwork-page-service>.e-con:first-child {
  margin-top: 0 !important;
  padding-top: 28px !important;
}

.teamwork-page-about .teamwork-about-grid>.e-con-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.teamwork-page-about .teamwork-about-grid .elementor-widget-html .elementor-widget-container>div {
  max-width: none !important;
}

.teamwork-about-photo,
.teamwork-about-photo .elementor-widget-container,
.teamwork-about-photo .elementor-image {
  height: 100%;
}

.teamwork-about-photo img {
  width: 100% !important;
  min-height: 520px;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 16px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {

  .teamwork-page-about .teamwork-about-intro {
    padding-top: 18px !important;
    padding-bottom: 36px !important;
    margin-top: 0 !important;
  }

  .teamwork-page-service>.e-con:first-child {
    margin-top: 0 !important;
    padding-top: 22px !important;
  }

  .teamwork-page-about .teamwork-about-grid>.e-con-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .teamwork-about-photo img {
    min-height: 300px;
  }
}

/* =========================================================================
   Header desktop final stabilization
   ========================================================================= */
@media (min-width: 1025px) {

  .elementor-location-header>.elementor,
  .elementor-location-header>.elementor>.e-con:first-child {
    max-width: none !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr001 {
    width: min(1200px, calc(100% - 32px)) !important;
    max-width: none !important;
    min-height: 88px !important;
    margin: 0 auto !important;
    padding: 0 20px 0 50px !important;
    display: grid !important;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr002 {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 280px !important;
    margin: 0 !important;
    margin-left: 30px !important;
    margin-inline-start: 30px !important;
    --margin-left: 30px;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr002>.e-con-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 88px !important;
    padding-top: 10px !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 .elementor-widget-container,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  /* Real desktop offset for active Elementor header logo */
  .elementor-location-header header[data-elementor-id="145"] .elementor-element.elementor-element-hdr003,
  .elementor-location-header header[data-elementor-id="145"] .elementor-element.elementor-element-hdr003 .elementor-widget-container,
  .elementor-location-header header[data-elementor-id="145"] .elementor-element.elementor-element-hdr003 a {
    margin-left: 50px !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 img {
    width: auto !important;
    max-width: 232px !important;
    max-height: 40px !important;
    height: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    border: 0 !important;
    transform: translateY(10px) !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr005 {
    grid-column: 2 !important;
    align-self: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr006,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr007 {
    width: 100% !important;
    max-width: none !important;
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-widget-container,
  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-nav-menu--main {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-nav-menu {
    justify-content: center !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-nav-menu>li {
    position: relative;
    padding: 0 8px;
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-nav-menu>li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: rgba(29, 50, 104, 0.18);
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-item {
    padding: 0.2rem 0.04rem !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    font-size: 0.84rem !important;
    line-height: 1.1 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1D3268 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.01em !important;
    border-bottom: 0 !important;
    transition: color 0.2s ease !important;
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-item:hover,
  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-item:focus {
    color: #CB5619 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-item.elementor-item-active {
    color: #1D3268 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
    outline: 0 !important;
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .current-menu-item>.elementor-item,
  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .current_page_item>.elementor-item,
  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .current-menu-ancestor>.elementor-item {
    color: #1D3268 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
  }

  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-item::before,
  .elementor-location-header .teamwork-native-header .teamwork-desktop-nav .elementor-item::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr008 {
    grid-column: 3 !important;
    align-self: center !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 14px !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr010 {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 {
    display: none !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr008 .elementor-widget-shortcode {
    display: flex !important;
    align-items: center !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .elementor-widget-container,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .elementor-shortcode {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .nav-lang {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.96rem !important;
    font-weight: 500 !important;
    color: #1D3268 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .nav-lang-link,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .nav-lang-separator {
    color: #1D3268 !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .nav-lang-link {
    padding: 0 !important;
    text-decoration: none !important;
    line-height: 1 !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .nav-lang-separator {
    display: none !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .nav-lang-link:hover,
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr009 .nav-lang-link.is-active {
    color: #1D3268 !important;
    font-weight: 700 !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr010 .btn-cta {
    min-width: 214px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    font-size: 0.92rem !important;
    white-space: nowrap !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr010 .teamwork-header-cta-pack {
    display: inline-flex !important;
    align-items: center !important;
    gap: 24px !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr010 .teamwork-header-cta-pack .nav-lang {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.96rem !important;
    font-weight: 500 !important;
    color: #1D3268 !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr010 .teamwork-header-cta-pack .nav-lang-link {
    color: #1D3268 !important;
    text-decoration: none !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr010 .teamwork-header-cta-pack .nav-lang-link.is-active {
    font-weight: 700 !important;
  }

  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr010 .teamwork-header-cta-pack .nav-lang-separator {
    display: none !important;
  }
}

/* Hard guard against duplicate language block in CTA pack */
.teamwork-header-cta-pack .teamwork-header-lang-inline,
.teamwork-header-cta-pack .nav-lang {
  display: none !important;
}

/* =========================================================================
   Active menu item indicator
   ========================================================================= */
.teamwork-desktop-nav .elementor-item.elementor-item-active,
.teamwork-desktop-nav .current-menu-item>.elementor-item,
.teamwork-desktop-nav .current_page_item>.elementor-item {
  font-weight: 600 !important;
  position: relative;
}

.teamwork-desktop-nav .elementor-item.elementor-item-active::after,
.teamwork-desktop-nav .current-menu-item>.elementor-item::after,
.teamwork-desktop-nav .current_page_item>.elementor-item::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 70% !important;
  height: 2px !important;
  background: hsl(var(--secondary)) !important;
  border-radius: 1px !important;
  opacity: 1 !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* =========================================================================
   Smooth scroll (respects reduced motion)
   ========================================================================= */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================================
   Back-to-top button
   ========================================================================= */
.teamwork-back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.teamwork-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.teamwork-back-to-top:hover,
.teamwork-back-to-top:focus {
  background: hsl(var(--secondary));
  outline: none;
}

.teamwork-back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =========================================================================
   LGPD Cookie consent banner
   ========================================================================= */
.teamwork-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #222639;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.teamwork-cookie-banner.visible {
  transform: translateY(0);
}

.teamwork-cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.teamwork-cookie-banner a {
  color: hsl(var(--secondary));
  text-decoration: underline;
}

.teamwork-cookie-banner-btn {
  background: #CB5619;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.teamwork-cookie-banner-btn:hover {
  background: #a84713;
}

@media (max-width: 600px) {
  .teamwork-cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 12px;
  }
}

/* REMOVIDO: regra .nav-logo nunca aplicava (classe inexistente no header) */
/* Logo margin agora controlada em .teamwork-header-brand (linha ~273) */

/* ------------------------------------------------------------------- */
/* --- QUEBRA E AJUSTE DOS BOTÕES LONGOS NO MOBILE (EX: WHATSAPP) --- */
/* Força os botões a usarem 100% da tela e a quebrarem o texto em linhas */
/* ------------------------------------------------------------------- */
@media (max-width: 767px) {

  .btn-cta,
  .btn-hero,
  .elementor-button,
  .elementor-widget-button .elementor-button-link,
  .cf7-submit {
    white-space: normal !important;
    height: auto !important;
    min-height: 48px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    line-height: 1.4 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
}

/* ------------------------------------------------------------------- */
/* --- GRID RESPONSIVO PARA O FORMULÁRIO DE CONTATO (CF7) --- */
/* ------------------------------------------------------------------- */
.cf7-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.cf7-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
}

.cf7-row .wpcf7-form-control-wrap {
  flex: 1;
  width: 100%;
}

.cf7-input,
.cf7-textarea {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .cf7-row {
    flex-direction: column;
    gap: 16px;
  }
}

/* ------------------------------------------------------------------- */
/* --- RESPONSIVIDADE DO CABEÇALHO CUSTOMIZADO (LOGO E MENU) --- */
/* Impede que o menu quebre de linha e sobreponha a logo em telas menores */
/* ------------------------------------------------------------------- */
.teamwork-header {
  flex-wrap: nowrap !important;
  align-items: center;
}

.nav-desktop {
  white-space: nowrap !important;
  flex-shrink: 1 !important;
}

/* Reduz o tamanho da logo dinamicamente para caber o menu sem quebrar */
@media (max-width: 1200px) {
  .nav-logo-img {
    height: auto !important;
    max-height: 32px !important;
    max-width: 150px !important;
    object-fit: contain !important;
  }

  .nav-desktop {
    gap: 12px !important;
    /* Reduz espaço entre os links */
  }

  .nav-desktop a.nav-link {
    font-size: 13px !important;
    padding: 0 4px !important;
  }

  .nav-desktop .btn-cta {
    padding: 0 12px !important;
    font-size: 13px !important;
    height: 38px !important;
  }
}

/* =========================================================================
   Critical Elementor/CF7 overrides (active site)
   ========================================================================= */

.elementor .wpcf7 form .cf7-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
  row-gap: 16px !important;
}

.elementor .wpcf7 form .cf7-row>* {
  width: 100% !important;
  min-width: 0 !important;
}

.elementor .wpcf7 form .cf7-row .wpcf7-form-control-wrap,
.elementor .wpcf7 form .cf7-row p,
.elementor .wpcf7 form .cf7-row label,
.elementor .wpcf7 form .cf7-row span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.elementor .wpcf7 form .cf7-input,
.elementor .wpcf7 form .cf7-textarea,
.elementor .wpcf7 form .wpcf7-form-control {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  .elementor .wpcf7 form .cf7-row {
    grid-template-columns: 1fr !important;
  }

  .elementor .elementor-widget-button .elementor-button,
  .elementor .btn-cta,
  .elementor .btn-hero,
  .elementor input.wpcf7-submit,
  .elementor .wpcf7-submit,
  .elementor a.elementor-button[href*="FGG-021"],
  .elementor a.btn-cta[href*="FGG-021"] {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 44px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    text-align: center !important;
  }
}

/* ---- Desktop header: force row layout via element IDs ---- */
@media (min-width: 1025px) {

  /* hdr001 outer + inner → single flex row */
  .elementor-element.elementor-element-hdr001,
  .elementor-element.elementor-element-hdr001>.e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    min-height: 72px !important;
  }

  /* hdr002: logo – fixed width, no grow */
  .elementor-element.elementor-element-hdr002 {
    flex: 0 0 auto !important;
    width: clamp(98px, 9.2vw, 142px) !important;
    max-width: 142px !important;
    align-items: center !important;
  }

  .elementor-element.elementor-element-hdr002 img {
    max-width: 142px !important;
    max-height: 44px !important;
    height: auto !important;
    transform: none !important;
  }

  /* hdr005: nav – grows to fill space */
  .elementor-element.elementor-element-hdr005 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* hdr008: CTA + lang – fixed, stays on same row */
  .elementor-element.elementor-element-hdr008 {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  /* hdr011: mobile tools – always hidden at desktop */
  .elementor-element.elementor-element-hdr011 {
    display: none !important;
  }
}

/* ---- Fluid nav font size as viewport narrows ---- */
@media (min-width: 1025px) and (max-width: 1366px) {
  .elementor-element.elementor-element-hdr002 {
    width: clamp(90px, 8.3vw, 122px) !important;
    max-width: 122px !important;
  }

  .elementor-element.elementor-element-hdr002 img {
    max-width: 122px !important;
    max-height: 40px !important;
  }

  .elementor-location-header .teamwork-desktop-nav .elementor-item {
    font-size: clamp(0.7rem, 0.84vw, 0.8rem) !important;
    padding: 0.3rem 0.38rem !important;
    letter-spacing: -0.01em !important;
  }

  .elementor-location-header .teamwork-header .elementor-button,
  .elementor-location-header .teamwork-header .btn-cta {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
}

/* ---- Mobile/tablet hamburger palette ---- */
@media (max-width: 1024px) {
  .teamwork-mobile-tools .elementor-menu-toggle {
    color: #1D3268 !important;
    border-color: rgba(29, 50, 104, 0.22) !important;
    background: #ffffff !important;
  }

  .teamwork-mobile-tools .elementor-menu-toggle:hover,
  .teamwork-mobile-tools .elementor-menu-toggle:focus-visible,
  .teamwork-mobile-tools .elementor-menu-toggle[aria-expanded="true"] {
    color: #ffffff !important;
    background: #CB5619 !important;
    border-color: #CB5619 !important;
  }

  .teamwork-mobile-tools .elementor-nav-menu--dropdown {
    border-color: rgba(29, 50, 104, 0.18) !important;
  }

  .teamwork-mobile-tools .elementor-nav-menu--dropdown .elementor-item {
    color: #1D3268 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
  }

  .teamwork-mobile-tools .elementor-nav-menu--dropdown .elementor-item:hover,
  .teamwork-mobile-tools .elementor-nav-menu--dropdown .elementor-item:focus,
  .teamwork-mobile-tools .elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
    color: #ffffff !important;
    background: #CB5619 !important;
  }

  .teamwork-mobile-tools .nav-lang-link,
  .teamwork-mobile-tools .nav-lang-separator {
    color: #1D3268 !important;
  }

  .teamwork-mobile-tools .nav-lang-link:hover,
  .teamwork-mobile-tools .nav-lang-link:focus,
  .teamwork-mobile-tools .nav-lang-link.is-active {
    color: #CB5619 !important;
  }
}

/* ---- Global: center boxed content on ALL pages (max 1200px) ---- */
.elementor[data-elementor-type="wp-page"] .e-con-boxed>.e-con-inner,
.elementor[data-elementor-type="wp-post"] .e-con-boxed>.e-con-inner {
  width: min(1200px, calc(100% - 32px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 767px) {
  .elementor[data-elementor-type="wp-page"] .e-con-boxed>.e-con-inner,
  .elementor[data-elementor-type="wp-post"] .e-con-boxed>.e-con-inner {
    width: min(1200px, calc(100% - 24px)) !important;
  }
}

/* ---- Tablet large guard: desktop nav on, mobile tools off ---- */
@media (min-width: 1025px) and (max-width: 1220px) {
  .elementor-location-header .elementor-element.elementor-element-hdr005 {
    display: flex !important;
  }

  .elementor-location-header .elementor-element.elementor-element-hdr008,
  .elementor-location-header .elementor-element.elementor-element-hdr009,
  .elementor-location-header .elementor-element.elementor-element-hdr010,
  .elementor-location-header .elementor-element.elementor-element-hdr010 .elementor-widget-container,
  .elementor-location-header .elementor-element.elementor-element-hdr010 .elementor-shortcode {
    display: flex !important;
  }

  .elementor-location-header .elementor-element.elementor-element-hdr011 {
    display: none !important;
  }
}

/* ---- Mobile/tablet real: prevent dropdown clipping ---- */
@media (max-width: 1024px) {
  .teamwork-mobile-tools,
  .teamwork-mobile-tools .elementor-widget-nav-menu,
  .teamwork-mobile-tools .elementor-widget-nav-menu .elementor-widget-container,
  .teamwork-mobile-tools .elementor-nav-menu--dropdown {
    overflow: visible !important;
  }

  .teamwork-mobile-tools .elementor-nav-menu--dropdown {
    z-index: 99999 !important;
  }
}


/* ---- Mobile/tablet UX fix: menu closes by default, language beside toggle ---- */
@media (max-width: 1024px) {
  .teamwork-mobile-tools {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .teamwork-mobile-tools .elementor-widget-shortcode {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .teamwork-mobile-tools .elementor-widget-nav-menu,
  .teamwork-mobile-tools .elementor-widget-nav-menu .elementor-widget-container {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .teamwork-mobile-tools .elementor-element-hdr012 .nav-lang {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
  }

  .teamwork-mobile-tools .elementor-nav-menu--dropdown {
    top: calc(100% + 8px) !important;
    margin-top: 0 !important;
    display: none !important;
  }

  .teamwork-mobile-tools .elementor-widget-nav-menu .elementor-menu-toggle.elementor-active~.elementor-nav-menu--dropdown,
  .teamwork-mobile-tools .elementor-widget-nav-menu .elementor-menu-toggle[aria-expanded="true"]~.elementor-nav-menu--dropdown {
    display: block !important;
  }

  .teamwork-mobile-tools .elementor-widget-nav-menu .elementor-menu-toggle:not(.elementor-active):not([aria-expanded="true"])~.elementor-nav-menu--dropdown {
    display: none !important;
  }

  main .elementor h1,
  main .elementor .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(1.85rem, 5.6vw, 2.65rem) !important;
    line-height: 1.15 !important;
  }

  main .elementor h2,
  main .elementor .elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(1.5rem, 4.6vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  main .elementor h3,
  main .elementor .elementor-widget-heading h3.elementor-heading-title {
    font-size: clamp(1.25rem, 3.6vw, 1.7rem) !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 767px) {
  main .elementor h1,
  main .elementor .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(1.55rem, 8vw, 2.1rem) !important;
  }

  main .elementor h2,
  main .elementor .elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(1.3rem, 6.6vw, 1.75rem) !important;
  }
}

/* Mobile header stack fix: keep language + hamburger below logo and above it */
@media (max-width: 1024px) {
  .elementor-location-header .elementor-element.elementor-element-hdr001.teamwork-native-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
  }

  .elementor-location-header .elementor-element.elementor-element-hdr001.teamwork-native-header>.elementor-element.elementor-element-hdr002,
  .elementor-location-header .elementor-element.elementor-element-hdr001.teamwork-native-header>.elementor-element.elementor-element-hdr004 {
    order: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    margin: 0 !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .elementor-location-header .elementor-element.elementor-element-hdr001.teamwork-native-header .elementor-element.elementor-element-hdr003 img {
    transform: translateY(-6px) !important;
  }

  .elementor-location-header .elementor-element.elementor-element-hdr001.teamwork-native-header>.elementor-element.elementor-element-hdr011 {
    order: 2 !important;
    position: relative !important;
    z-index: 30 !important;
    width: 100% !important;
    margin-top: 16px !important;
    display: flex !important;
    justify-content: center !important;
  }

  .elementor-location-header .elementor-element.elementor-element-hdr013 .elementor-menu-toggle,
  .elementor-location-header .elementor-element.elementor-element-hdr014 .elementor-menu-toggle {
    margin: 0 !important;
  }
}

/* REMOVIDO: seletor header[data-elementor-id="145"] nunca matchava (Elementor usa div, nao header) */
/* Logo margin agora controlada em .teamwork-header-brand (linha ~273) */

/* ---- Justificar texto na pagina Quem Somos ---- */
.teamwork-page-about .elementor-widget-text-editor p {
  text-align: justify;
}

/* ---- Padrao de botoes na pagina Quem Somos (PT/EN) ---- */
.elementor-page-7 .elementor-element-aboutpage004>.e-con-inner,
.elementor-page-125 .elementor-element-abouten004>.e-con-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.elementor-page-7 .elementor-element-aboutpage007 .elementor-button,
.elementor-page-125 .elementor-element-abouten007 .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  background-color: #CB5619;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.35);
}

.elementor-page-7 .elementor-element-aboutpage007 .elementor-button:hover,
.elementor-page-125 .elementor-element-abouten007 .elementor-button:hover {
  background-color: #b94814;
  color: #ffffff !important;
}

.elementor-page-7 .elementor-element-aboutpage008 .elementor-button,
.elementor-page-125 .elementor-element-abouten008 .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  background: transparent;
  color: #1D3268 !important;
  border: 2px solid #1D3268;
}

.elementor-page-7 .elementor-element-aboutpage008 .elementor-button:hover,
.elementor-page-125 .elementor-element-abouten008 .elementor-button:hover {
  background: #1D3268;
  color: #ffffff !important;
}

/* ---- Hero section: native Elementor widget styling ---- */
.teamwork-hero-bg .teamwork-hero-title .elementor-heading-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  line-height: 1.05 !important;
  color: #fff !important;
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  margin: 0 0 1.5rem !important;
}

.teamwork-hero-bg .teamwork-hero-text p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 1.75rem;
  max-width: 700px;
}

.teamwork-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.teamwork-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  line-height: 1;
}

/* ---- Header logo size normalization ---- */

@media (min-width: 1025px) {
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 {
    margin-left: 40px !important;
    margin-top: 22px !important;
  }
}

.elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003,
.elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 .elementor-widget-container,
.elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 a {
  padding-top: 0 !important;
}

.elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 img {
  width: auto !important;
  max-width: 210px !important;
  max-height: 34px !important;
  height: auto !important;
  object-fit: contain !important;
  transform: translateY(0) !important;
}

@media (max-width: 1200px) {
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 img {
    max-width: 190px !important;
    max-height: 31px !important;
  }
}

@media (max-width: 767px) {
  .elementor-location-header .teamwork-native-header .elementor-element.elementor-element-hdr003 img {
    max-width: 170px !important;
    max-height: 28px !important;
  }
}
