/*
Theme Name:     Bspacy Clean (Hello Elementor Child)
Description:    Tema base da Bspacy para novos projetos em WPBakery. Inclui Customizer (logótipos, contactos, redes sociais, elementos teimosos), animações GSAP + ScrollSmoother, Swiper e widgets Bakery.
Author:         Bspacy
Template:       hello-elementor
Version:        2.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    bspacy
*/

/* --------------------- BASE CONFIGURATIONS --------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--white);
}

html.disableScroll {
  overflow-y: hidden;
}

img {
  max-width: 100%;
}

/* Hide elements that have GSAP classes before they animate */
/* ── Esconde elementos GSAP antes da animação ── */
.gsap-fade-in,
.gsap-slide-left,
.gsap-slide-right,
.gsap-slide-up,
.gsap-slide-down,
.gsap-zoom-in,
.gsap-zoom-out,
.gsap-blur-in,
.gsap-skew-up,
[class*="gsap-stagger-children"] > * {
  visibility: hidden;
}

/* Estado inicial das palavras — cinzento, "por preencher".
   O JS troca a cor via inline style quando o scroll avança. */
.gsap-fill-word {
  color: var(--black);
}
.bold .gsap-fill-word {
  font-weight: 700;
}
/* --------------------- LINK RESET --------------------- */
a,
a:hover,
a:focus,
a:active {
  text-decoration: none;
  color: var(--black);
  cursor: pointer;
  overflow-wrap: anywhere;
}
/* --------------------- TYPOGRAPHY SMOOTHING --------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
input,
select,
option,
a,
span,
li {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* ========================================================================== */
/*                         FORM COMPONENTS & STYLES                           */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. RESET & NATIVE INPUT ADJUSTMENTS                                       */
/* -------------------------------------------------------------------------- */

/* Autofill Background/Color Overrides */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #fbf2eb inset !important;
  -webkit-text-fill-color: var(--black) !important;
}

/* Remove Number Input Spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove Default Focus Outline */
input:focus,
select:focus {
  outline: none !important;
}

/* Remove Native Select Arrows */
.quform-input select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* -------------------------------------------------------------------------- */
/* 2. GLOBAL INPUTS & LABELS                                                 */
/* -------------------------------------------------------------------------- */

/* General Inputs (Underline Style) */
.inputForm,
form
  input:not(
    input[type="button"],
    input[type="checkbox"],
    input[type="submit"]
  ) {
  width: 100%;
  padding: 10px 20px !important;
  background-color: var(--white) !important;
  color: var(--green) !important;
  border: 0px !important;
  border-bottom: 1px solid var(--green) !important;
  border-radius: 0px !important;
  outline: unset;
}

/* Global Placeholders & Field Labels */
input::placeholder,
textarea::placeholder,
.wpcf7 label,
.quform .quform-label-text,
.quform-required {
  color: var(--green) !important;
  opacity: 1;
}

.quform-required {
  margin: 0px !important;
}

/* -------------------------------------------------------------------------- */
/* 3. QUFORM SPECIFIC FIELDS                                                 */
/* -------------------------------------------------------------------------- */

/* Standard Text/Select Fields Setup */
.quform .quform-field-captcha,
.quform .quform-field-date,
.quform .quform-field-email,
.quform .quform-field-file,
.quform .quform-field-multiselect,
.quform .quform-field-password,
.quform .quform-field-select,
.quform .quform-field-text,
.quform .quform-field-textarea,
.quform .quform-field-time,
.quform .select2-container--quform .select2-selection,
.quform .quform-element-textarea .quform-label * {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1.201px;
  text-transform: uppercase;
}

/* Textarea Customization */
.quform textarea {
  padding: 17px 20px !important;
  background-color: var(--white);
  color: var(--green) !important;
  border: 1px solid var(--green) !important;
  border-radius: 5px !important;
  resize: none;
  text-transform: uppercase;
}

.quform .quform-field-textarea {
  height: 80px;
}

.quform .quform-element-textarea .quform-label {
  margin-left: 20px;
  margin-bottom: 10px;
}

/* Field Spacing */
.quform-element:not(:has(textarea)) {
  margin-bottom: 5px;
}

.quform-element:has(textarea) {
  margin-bottom: 11px;
}

.quform-spacer:has(textarea) {
  padding: 0px !important;
}

.quform-1 .quform-spacer,
.quform-1 .quform-element-group.quform-group-style-bordered > .quform-spacer,
.quform-1 .quform-group-style-bordered > .quform-child-elements {
  padding-bottom: 5px !important;
}

/* -------------------------------------------------------------------------- */
/* 4. CHECKBOX / ACCEPTANCE & TERMOS                                         */
/* -------------------------------------------------------------------------- */

.quform-option:has(.acceptanceInput) label {
  font-size: unset;
  line-height: unset;
}

.quform-option:has(.acceptanceInput) span,
.quform-option:has(.acceptanceInput) span a {
  color: var(--green) !important;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* 5. SUBMIT BUTTON                                                          */
/* -------------------------------------------------------------------------- */

.quform-element-submit {
  display: flex;
  justify-content: flex-start;
}

.quform-element-submit button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 50px;
  background-color: var(--white);
  border: 1px solid var(--orange);
  border-radius: 20px;
  font-size: unset;
  line-height: unset;
  transition: background-color 0.3s ease;
}

.quform-element-submit button span {
  color: var(--orange) !important;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.452px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Submit Hover States */
.quform-element-submit button:hover {
  background-color: var(--orange);
}

.quform-element-submit button:hover span {
  color: var(--white) !important;
}

/* -------------------------------------------------------------------------- */
/* CUSTOM SELECT ARROW                                                        */
/* -------------------------------------------------------------------------- */

/* Aplica nos selects gerais e nos do Quform */
select,
.quform-input select,
.quform .quform-field-select {
  /* Esconde a seta padrão dos browsers */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  /* Adiciona o teu SVG como imagem de fundo */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="11" viewBox="0 0 14 11" fill="none"><path d="M7.40527 10.7383L7.40527 10.7422L5.71777 10.7422L5.71777 10.7363L5.71289 10.7393L-3.69242e-08 0.844726L1.46191 -5.09511e-07L6.55957 8.82812L11.6562 -6.39023e-08L13.1182 0.84375L7.40527 10.7383Z" fill="%23E0935A"/></svg>') !important;

  /* Posicionamento e tamanho do ícone */
  background-repeat: no-repeat !important;
  background-position: right 11px center !important; /* Distância de 15px da borda direita */
  background-size: 12px auto !important;

  /* Espaço à direita para o texto não cobrir a seta */
  padding-right: 40px !important;
}

/* Remove a seta nativa especificamente no Internet Explorer / Edge antigo */
select::-ms-expand {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* CUSTOM CHECKBOX                                                            */
/* -------------------------------------------------------------------------- */

/* Estilo base da caixa */
input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  width: 13px !important;
  height: 13px !important;
  border-radius: 5px !important;
  border: 1px solid var(--black) !important;
  background-color: transparent;
  padding: 0px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  margin: 0 8px 0 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* Estado Ativo / Selecionado (Adiciona o "X" no meio) */
input[type="checkbox"]:checked {
  background-color: var(--black) !important;

  /* SVG desenhando o "X" em branco */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="9" viewBox="0 0 10 10" fill="none"><path d="M1 1L9 9M9 1L1 9" stroke="%23ffffff" stroke-width="2" stroke-linecap="round"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 7px 7px !important;
}

/* Estado Focus para acessibilidade via teclado */
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--black) !important;
  outline-offset: 2px;
}

.quform-option {
  display: flex;
    align-items: center;
  min-height: 0px !important;

}

.quform-options-simple .quform-option .quform-option-label {
    display: flex;
}
/* -------------------------------------------------------------------------- */
/* 6. FORM FEEDBACK (SUCCESS & ERROR MESSAGES)                                */
/* -------------------------------------------------------------------------- */

/* Error States */
.quform-error > .quform-error-inner {
  max-width: 100%;
  padding: 0px;
  margin: 0;
  background-color: transparent;
  border-left: 0px;
  color: red;
}

.quform-error * {
  color: var(--green) !important;
}

/* Success States */
.quform-success-message {
  position: relative;
  padding: 0px;
  margin: 0px;
  background-color: transparent;
  border-left: unset;
  color: #000;
}

.quform-success-message-icon {
  display: none;
}

.quform-success-message-content {
  color: var(--green) !important;
  padding: 0px !important;
  margin-bottom: 10px !important;
}

.quform-success-message-animate * {
  font-family: "Darker Grotesque";
  color: var(--black) !important;
}
/********* Alterar o scroll bar **********/
html {
  scrollbar-width: thin; /* Adjust the width of the scrollbar */
  scrollbar-color: var(--brown) transparent; /* Adjust the color of the scrollbar */
}

/* Define the style for the scrollbar track */
html::-webkit-scrollbar {
  width: 4px; /* Adjust the width of the scrollbar */
}

/* Define the style for the scrollbar thumb */
html::-webkit-scrollbar-thumb {
  background-color: var(--brown); /* Adjust the color of the scrollbar thumb */
  border-radius: 4px; /* Adjust the border radius of the scrollbar thumb */
}

/* Style for scrollbar track (background) */
html::-webkit-scrollbar-track {
  background-color: var(--white); /* Background color of the scrollbar track */
}
/********* FIM DE Alterar o scroll bar **********/

/* --------------------- RESET ELEMENT MARGINS --------------------- */
/* remover espaçamentos */
.wpb_button,
.wpb_content_element,
ul.wpb_thumbnails-fluid > li,
.vc_btn3-container {
  margin-bottom: 0px !important;
}
header ul,
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Wrapper criado pelo script das pausas — é ele que fica fixo durante o pin */
.pausa-pin-wrap {
  display: block;
  margin: 0;
  padding: 0;
}

/* --------------------- FONT DEFINITIONS --------------------- */
/* @font-face {
  font-family: "Avenir",sans-serif;
  src: url("assets/fonts/avenir/Avenir-Medium.woff2") format("woff2"),
    url("assets/fonts/avenir/Avenir-Medium.woff2") format("opentype"),
    url("assets/fonts/avenir/Avenir-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
} */

h1,
h2 {
  font-family: "Avenir", sans-serif;
  font-size: 44px;
  color: var(--black);
}

h3,
h4,
h5 {
  font-family: "Avenir", sans-serif;
  font-size: 14px;
  line-height: 1;
  color: var(--black);
}

p,
a,
label,
input,
select,
textarea,
option,
li,
span,

button {
	font-family: "Avenir", sans-serif;
  font-size: 16px;
  resize: none;
  color: var(--black);
}


p:not(.backgroundVideo p, header p) {
  margin-bottom: 18px;
}
#to_top_scrollup span,
#to_top_scrollup::before {
  font-family: "dashicons";
  line-height: 1;
}

/* --------------------- VARIABLES --------------------- */
:root {
  --black: #2b2b2b;
  --white: #ffffff;
  --beige: #fffcf8;
  --blue: #396472;
  --brown: #c27338;
  --light-brown: #c2733812;
  --lighter-brown: #d8a863;
  --header-height: 62px;
  --padding-inline: 120px;
  --paddingVert: 120px;
  --container-width: 1200px;
  --compensateHeader: calc(var(--header-height) + 40px);
  --adminbar: 30px;
}

/* --------------------- UTILITY CLASSES --------------------- */
.noPadding {
  padding-left: 0;
  padding-right: 0;
}

.pagePaddings {
  padding-left: var(--padding-inline);
  padding-right: var(--padding-inline);
}
.verticalPadding {
  padding-top: var(--paddingVert);
  padding-bottom: var(--paddingVert);
}
.mainHeroTopPadding {
  padding-top: var(--compensateHeader);
}
body:has(#wpadminbar) .mainHeroTopPadding {
  padding-top: calc(var(--compensateHeader) - var(--adminbar));
}
.pageHeroSection > .vc_column_container,
.pageHeroSection .vc_column-inner,
.pageHeroSection .wpb_wrapper {
  position: relative;
  z-index: 2;
}
.backgroundOverlay {
  content: "";
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1 !important;
  pointer-events: none;
}

.backgroundOverlay.red {
  background: #5b0b2ce5;
  background: linear-gradient(90deg, #5b0b2cb8 0%, #5b0b2cb8 100%);
}

.backgroundOverlay .vc_column-inner {
  display: none !important;
}

.backgroundVideo
  *:not(
    .heroSectionContent,
    .heroSectionContent *,
    #heroFixedLogo,
    #heroFixedLogo *
  ) {
  height: 100%;
  overflow: hidden;
}

.backgroundVideo .vc_column-inner {
  padding: 0px !important;
}
.backgroundVideo .container-video {
  height: 100%;
  width: 100%;
}
.backgroundVideo .container-video video,
.backgroundVideo .container-video img {
  max-height: 100dvh;
  width: 100%;
  object-fit: cover;
  position: relative;
  display: block;
}

#main {
  min-height: 100vh;
}
#to_top_scrollup {
  width: fit-content !important;
}
#to_top_scrollup img {
  width: 40px;
  height: 40px;
  transform: rotate(270deg);
}

/* --------------------- PROJECT-SPECIFIC RULES --------------------- */
/* Hide reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Hide WPML footer badge */
.otgs-development-site-front-end {
  display: none;
}

/************************ HEADER ************************/
.burguer {
  display: none;
}
/* hamburguer menu */
.menu-mobile {
  display: none;
}

header {
  padding: 35px var(--padding-inline);
  position: fixed;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: 9990;
  transition: all 300ms linear;
}

header.header-colored {
  background-color: #00000026;
  transition: all 300ms linear;
}

/* wrapper com elementos do header */
.wrapper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 9999;
}
.headerMenuWrapper,
.headerMenuWrapper ul {
  display: flex;
  gap: 42px;
  align-items: center;
}

.headerMenuWrapper a,
.headerMenuWrapper span,
.headerMenuWrapper p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}
/* animação de underline nos a */
.gsap-underline li a {
  position: relative;
  text-decoration: none;
  z-index: 1;
}

.gsap-underline li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: currentColor;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: none;
  pointer-events: none;
}

.gsap-underline li a::after {
  transform: scaleX(var(--underline-scale, 0));
  transition: transform 0.2s ease;
}
.gsap-underline .current_page_item > a::after {
  transform: scaleX(1);
}

.wpcf7-spinner {
  display: none;
}
/************************ FOOTER ************************/
footer {
  position: relative;
}

/* ========================================================================== */
/*                             	Legal Pages    		                          */
/* ========================================================================== */

.legalPage {
  padding-bottom: 100px;
  padding-top: 80px;
}
.legalPage .vc_column-inner .wpb_wrapper {
  max-width: 1200px;
  margin-inline: auto;
}

.legalPage h2 {
  font-size: 32px;
  line-height: 42px;
  margin: 24px 0px;
}


/* ========================================================================== */
/*                             	OUTRAS X    		                          */
/* ========================================================================== */

/****************************** MEDIA QUERIES ************************************/
/* PARA ECRAS 4k - criar container para nao ir para as pontas */
@media (min-width: 2100px) {
  :root {
    --bigpage-container: 1440px;
    --padding-inline: calc((100% - var(--bigpage-container)) / 2);
  }
  /* colocar esta classe onde quiser limitar o crescimento em divs genéricas */
  .bigscreen-limit {
    max-width: var(--bigpage-container);
    margin-inline: auto;
  }
  /*Colocar esta classe nas rows principais das páginas para forçar o container*/
  .vc_row_bigscreen-limit {
    padding-left: calc((100% - var(--bigpage-container)) / 2);
    padding-right: calc((100% - var(--bigpage-container)) / 2);
    box-sizing: border-box;
  }
}

/* Intermédio 2 */
@media print, screen and (max-width: 1750px) {
}

@media print, screen and (max-width: 1550px) {
}

@media only screen and (max-width: 1440px) {
}

/* Media query para menu hamburguer */
@media print, screen and (max-width: 1200px) {
}

/*tablet landscape or old laptop */
@media print, screen and (max-width: 1024px) {
  /************************ HEADER ************************/
  .main-menu-wrapper,
  .fakeIdioma:not(.menu-mobile .fakeIdioma) {
    display: none;
  }

  .menu-mobile .fakeIdioma {
    color: var(--white);
    font-size: 18px;
    line-height: 1;
  }

  /* MENU NORMAL */
  .burguer {
    height: 20px;
    width: 20px;
    display: block;
    transition: all 300ms linear;
    position: relative;
  }

  .burguer.open {
    height: 25px;
    width: 25px;
  }

  .burguer .line {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 2px;
    width: 100%;
    background-color: var(--white);
    transition: all linear 300ms;
    border-radius: var(--border-radius);
  }

  .burguer .line:nth-child(1),
  .burguer .line:nth-child(2),
  .burguer .line:nth-child(3) {
    top: 0%;
    opacity: 1;
  }

  .burguer .line:nth-child(2) {
    top: 50%;
  }

  .burguer .line:nth-child(3) {
    top: 100%;
  }

  /* QUANDO SE ADICIONA A CLASSE - colocar os dois traços que cruzam a 50% e apenas dar rotação para ficarem o X */
  /* hambuerguer aberto */
  .burguer.open .line:nth-child(1) {
    width: 100%;
    top: 50%;
    transform: rotate(45deg);
  }

  .burguer.open .line:nth-child(2) {
    opacity: 0;
  }

  .burguer.open .line:nth-child(3) {
    width: 100%;
    top: 50%;
    transform: rotate(-45deg);
  }

  /* menu mobile */
  .menu-mobile {
    display: block;
    position: fixed;
    top: 0px;
    right: 0px;
    height: 100dvh;
    width: 100%;
    z-index: 9980;
    background-color: var(--blue);
    transform: translate(0%, -100%);
    transition: all 500ms linear;
    padding: var(--padding-inline);
    padding-top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .menu-mobile.open {
    transform: translateY(0%);
    transition: all 500ms linear;
  }

  .menu-mobile ul {
    display: grid;
    gap: 20px;
  }

  .menu-mobile ul li {
    width: fit-content;
  }

  .menu-mobile ul li a {
    font-size: 22px;
    line-height: 1.1;
    color: var(--white);
    display: block;
  }
}

/* Size considerado para Tablet */
@media only screen and (max-width: 991px) {
  .backgroundVideo .container-video video,
  .backgroundVideo .container-video img {
    max-height: unset;
    height: 100dvh !important;
    min-height: unset;
  }
}
/* Size considerado para Tablet modo portrait*/
@media only screen and (max-width: 767.5px) {

  /* ========================================================================== */
  /*                             	Legal Pages    		                          */
  /* ========================================================================== */
  .legalPage {
    padding-bottom: 70px;
    padding-top: calc(var(--header-height) + 40px);
  }
  .legalPage h2 {
    font-size: 20px;
    line-height: 1.3;
    margin: 18px 0px;
  }
}

@media only screen and (max-width: 600px) {
}
@media only screen and (max-width: 500px) {
}
/* Size considerado Mobile - 430px*/
@media only screen and (max-width: 430px) {
}
/* smartphones plus */
@media only screen and (max-width: 414px) {
}
/* smartphones normais  */
@media only screen and (max-width: 378px) {
}
/* iphone 5 <=  */
@media only screen and (max-width: 320px) {
}
