:root {
  --ibati-blue: #014aff; /* Azul Royal */
  --ibati-blue-90: rgba(1, 73, 255, 0.9);
  --ibati-blue-40: rgba(1, 73, 255, 0.4);
  --ibati-blue-30: rgba(1, 73, 255, 0.2);
  --ibati-light-blue: #08b9ff; /* Azul Céu Brilhante */
  --ibati-weak-light-blue: #C2EEFF; /* Azul fraco */
  --ibati-soft-blue: #eaf6fe; /* Azul Bebê Suave */
  --ibati-deep-blue: #001e52; /* Azul Profundo */
  --ibati-dark-blue: #2c3849; /* Azul Chumbo */
  --ibati-black-blue: #101223; /* Azul Marinho Escuro */
  --ibati-green: #00d3aa; /* Verde Água Neon */
  --ibati-orange: #ff4a02; /* Laranja Chama */
  --ibati-gray: #707070; /* Cinza Médio */
  --ibati-light-gray: #d2d4da; /* Cinza Neve */
  --ibati-mid-gray: #b5b5b5; /* Cinza Claro */
  --ibati-white: #f3f4f8; /* Branco Azulado */
  --ibati-white-variation: #f5fbff; /* Branco Gelo (Valor igual a --ibati-light-green) */
  --ibati-black: #000000; /* Preto */
}

/* --- TIPOGRAFIA PADRÃO --- */
h1, h2, h3 {
  font-family: 'Atkinson Hyperlegible', sans-serif;
}

p, span {
  font-family: 'Figtree', sans-serif;
}

/* --- ESTILOS DE MENU --- */
.menu-active {
  position: relative;
}

.menu-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50%;
  height: 3px;
  background-color: #0057ff;
  border-radius: 2px;
}

.menu-item:hover .secondary-menu {
  color: var(--ibati-blue);
}

.menu-item:hover .secondary-menu-svg {
  fill: var(--ibati-blue);
}

/* --- EFEITOS DE HOVER EM CARDS --- */
.div-savings-sa .savings-item:hover,
.div-savings-sa .sa-item:hover {
  transition: transform 0.4s ease;
}

.div-savings-sa .savings-item:hover {
  transform: perspective(1200px) translateY(30px);
}
.div-savings-sa .sa-item:hover {
  transform: perspective(1200px) translateY(-30px);
}

.hover-card {
  transform: perspective(2200px) rotateY(-30deg);
  transition: transform 0.3s ease, box-shadow .3s ease, filter .3s ease;
  will-change: transform;
}

.hover-card:hover,
.div-savings-sa:hover .hover-card,
.div-savings-sa .hover-card.hover-active {
  transform: perspective(2200px) rotateY(-30deg) translateY(-15px);
}

/* --- SEÇÃO DE BACKGROUND COM ZOOM --- */
.background-section {
  position: relative;
  overflow: hidden;
}

.background-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("imgs/new-website/system-dash-photo.png");
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 0;
}

.background-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--ibati-dark-blue);
  opacity: 0.9;
  z-index: 1;
}

.background-section:hover::before {
  transform: scale(1.05);
}

.background-content {
  position: relative;
  z-index: 2; 
}

/* --- ANIMAÇÃO DE HOVER #blue-layer-ibati --- */
#garage-background {
  transition: width 0.6s ease, transform 1s ease;
  transform-origin: right center;
}

@media(min-width:1024px) {
  #blue-layer-ibati:hover > #garage-background {
    transform: scale(1.3);
    width: 75%;
    z-index: 1;
  }
  #wave {
    transition: right 0.2s ease-in-out;
  }
  #blue-layer-ibati:hover #wave {
    right: 2px;
  }
}

/* --- EFEITO GRADIENTE MÁSCARA --- */
#blue-layer-ibati:hover .gradiente-1,
#blue-layer-ibati:hover .gradiente-2,
#blue-layer-ibati:hover .gradiente-3,
#blue-layer-ibati:hover .gradiente-4,
#blue-layer-ibati:hover .gradiente-5 {
  display: block;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.gradiente-1,
.gradiente-2,
.gradiente-3,
.gradiente-4,
.gradiente-5 {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Propriedades base para os pseudo-elementos */
.gradiente-1::before,
.gradiente-2::before,
.gradiente-3::before,
.gradiente-4::before,
.gradiente-5::before {
  content: '';
  position: absolute;
  background: var(--ibati-blue-30);
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  transform: rotate(0deg);
  transform-origin: 58% 113%;
  transition: transform 0.4s ease;
}

/* Estilo específico para .gradiente-5 (não é ::before) */
.gradiente-5 {
  position: absolute;
  background: var(--ibati-blue-40);
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  transform: rotate(4deg);
  transform-origin: -703% 362%;
  transition: transform 0.4s ease;
  height: 44rem;
  mask-image: radial-gradient(circle at 63% 43%, black 8%, black 19%, transparent 32%);
  -webkit-mask-image: radial-gradient(circle at 40% 40%, black 18%, black 1%, transparent 39%);
}

@media(max-width:570px) {
  .gradiente-5 {
    mask-image: radial-gradient(circle at 73% 38%, black 10%, black -1%, transparent 50%);
    left: -17rem;
    width: 70rem;
  }
}

.gradiente-4::before {
  mask-image: radial-gradient(circle at 75% 40%, black 8%, black 9%, transparent 20%);
  -webkit-mask-image: radial-gradient(circle at 75% 40%, black 8%, black 9%, transparent 20%);
}

.gradiente-3::before {
  mask-image: radial-gradient(circle at 73% 47%, black 8%, black 9%, transparent 23%);
  -webkit-mask-image: radial-gradient(circle at 73% 47%, black 8%, black 9%, transparent 23%);
  transform-origin: 85% 113%;
}

.gradiente-2::before {
  bottom: 3rem;
  mask-image: radial-gradient(circle at 80% 43%, black 8%, black 19%, transparent 32%);
  -webkit-mask-image: radial-gradient(circle at 63% 43%, black 8%, black 19%, transparent 32%);
}

.gradiente-1::before {
  mask-image: radial-gradient(ellipse at -4% 110%, black 0%, black 15%, transparent 40%);
  -webkit-mask-image: radial-gradient(ellipse at -4% 110%, black 0%, black 15%, transparent 40%);
  transform-origin: -3% 36%;
}

/* --- ÍCONES FLUTUANTES (ANIMAÇÃO) --- */
.float-balloon {
  position: absolute;
}

#scroll-container img {
  pointer-events: auto;
  user-drag: none;
  -webkit-user-drag: none;
}

.icon-container {
  position: absolute;
  z-index: 9999;
  transform-style: preserve-3d;
}

.circle-container, .specialist-container {
  isolation: auto !important;
}

@keyframes floatIconLeft {
  0% { transform: rotate(var(--rot)) translateY(-140px) translateX(var(--x)); }
  100% { transform: rotate(var(--rot)) translateY(-150px) translateX(calc(var(--x) + 0.5rem)); }
}

@keyframes floatIconRight {
  0% { transform: rotate(var(--rot)) translateY(-140px) translateX(var(--x)); }
  100% { transform: rotate(var(--rot)) translateY(-150px) translateX(calc(var(--x) - 0.5rem)); }
}

/* Conversão de @apply para CSS padrão */
.icon-left,
.icon-right {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  z-index: 999;
}

.icon-left img {
  --rot: 0deg;
  --x: 10px;
  animation: floatIconLeft 2.5s ease-in-out infinite alternate;
}

.icon-right img {
  --rot: 0deg;
  --x: -10px;
  animation: floatIconRight 2.5s ease-in-out infinite alternate;
}

.icon-left.rotate-\[-105deg\] img { --rot: 105deg; --x: 1px; }
.icon-left.rotate-\[-75deg\] img { --rot: 75deg; --x: 10px; }
.icon-left.rotate-\[-45deg\] img { --rot: 45deg; --x: 12px; }

.icon-right.rotate-\[45deg\] img { --rot: -45deg; --x: -12px; }
.icon-right.rotate-\[75deg\] img { --rot: -75deg; --x: -10px; }
.icon-right.rotate-\[105deg\] img { --rot: -105deg; --x: -1px; }

.icon-animation {
  width: 3rem;
  height: 3rem;
  transition: transform 0.3s;
}

@media (min-width: 640px) {
  .icon-animation {
    width: 3.5rem; /* sm:w-14 */
    height: 3.5rem; /* sm:h-14 */
  }
}

.group:hover .icon-animation {
  transform: scale(1.1);
}

/* --- ESPECIALISTA HOVER --- */
.anim-especialista {
  transition: transform 0.3s ease;
}

.group:hover .anim-especialista {
  transform: translateX(-50%) scale(0.9) translateY(2rem);
}

/* --- UTILITÁRIOS SCROLLBAR --- */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.no-scrollbar,
.scrollbar-hide {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}

/* --- ANIMAÇÃO CARD SUMINDO --- */
@keyframes disappearCard {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
  }
}

.card-disappear {
  animation: disappearCard 200ms ease forwards;
}

/* --- CARROSSÉIS (MARQUEE) --- */
@keyframes marquee {
  0% { transform: translateX(0); }
  /* Usando -50% para um loop infinito com 2x o conteúdo */
  100% { transform: translateX(-50%); } 
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  width: max-content;
}

.animate-marquee {
  animation: marquee 120s linear infinite;
  animation-delay: 0s;
}

@media (max-width: 768px) {
  .animate-marquee {
    animation-duration: 120s;
  }
}

/* --- ESTILOS AVATAR/ESPECIALISTA (UNIFICADOS) --- */
.avatar-item {
  flex-shrink: 0;
  margin: 0 1.5rem;
  transition: transform 0.3s ease;
}

.avatar-item img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-item:hover {
  transform: scale(1.1);
}

.btn-specialist {
  border: 1px solid #d2d4da;
  padding: 1.2rem 2.5rem;
  border-radius: 1.5rem;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--ibati-blue);
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
}

.btn-specialist:hover {
  background-color: var(--ibati-orange);
  color: white;
  border-color: var(--ibati-orange);
}

/* --- MEDIA QUERIES GERAIS E RESPONSIVIDADE --- */
@media (max-width: 768px) {
  .avatar-item img {
    width: 4rem;
    height: 4rem;
  }
  .avatar-item {
    margin: 0 1rem;
  }
  .btn-specialist {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media only screen and (min-width: 1024px) {
  .text-4xl.mt-4.mb-6.text-ibati-blue {
    font-size: 60px;
  }
}

@media(max-width: 1450px) {
  #grid-man-car-animated {
    grid-template-columns: 4fr 2fr;
  }
}

@media(max-width: 1300px) {
  #dev-png-2 {
    scale: 0.8;
    bottom: 35%;
  }
}

@media(max-width: 1150px) {
  #grid-man-car-animated {
    gap: 2rem
  }
  #grid-items-animated {
    gap: 1rem
  }
  #dev-png-2 {
    scale: 0.7;
    bottom: 28%;
  }
}

@media(min-width: 1075px) {
  #mobile-hand {
    top: 8.5rem;
  }
}

@media(max-width: 1075px) {
  #mobile-hand {
    top: 9.5rem;
  }
}

@media(max-width: 1023px) {
  #mobile-hand {
    top: 3.5rem;
    right: 3px
  }
  #grid-man-car-animated {
    display: block;
  }
  #dev-png {
    display: block;
  }
}

@media(max-width: 640px) {
  #grid-man-car-animated {
    display: block;
  }
  #div-item-car-man {
    width: 200px;
  }
}

@media(max-width:400px) {
  #man-six-icons {
    scale: 0.8;
    top: 2rem
  }
  #soluction-text-item {
    font-size: 16px;
    height: 12rem;
  }
  #btn-talk-with-us {
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  #mobile-hand {
    right: 0.2rem;
  }
}

@media(max-height:710px) {
  #mobile-menu {
    height: 500px
  }
  #item-top-menu {
    font-size: 18px
  }
  #first-top-menu {
    gap: 1rem;
  }
  #second-top-menu {
    gap: 0.5rem;
  }
}

/* Estilo global para <section> */
section {
  z-index: 1;
  position: relative;
  background-color: #fff;
}

/* Formatando informação das duvidas para o FAQ */

#faq-container {
  border: 0px solid red; /* linha de teste */
}

#faq-container p {
  margin-bottom: 1.5rem;
}

#faq-container ul {
  list-style: disc;
  margin-left: 1.3rem;
  margin-bottom: 2rem;
}
#faq-container ul li {
  margin-bottom: 0.5rem;
}

#faq-container h3 {
  font-weight: 700;
  font-family: "Figtree", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

#faq-container h4 {
  font-weight: 600;
  font-family: "Figtree", sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.skeleton-loader-title {
  background-color: rgba(1, 74, 255, 0.2);
  border-radius: 4px;
}

.skeleton-loader-text {
  background-color: rgb(112 112 112 / 0.4);
  border-radius: 4px;
}

.skeleton-loader-text.animate-pulse, .skeleton-loader-title.animate-pulse {
  animation: pulse 1s infinite;
}

.wp-element-caption {
  font-size: 0.85rem;
  color: var(--ibati-gray);
  margin-top: 0.5rem;
  text-align: left;
}

/* Formatando Conteúdo das postagens */

h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading
h4.wp-block-heading,
h5.wp-block-heading,
h6.wp-block-heading{
  font-family: "Figtree", sans-serif;
}

h1.wp-block-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ibati-blue);
}

h2.wp-block-heading {
  font-size: 2.1rem;
  font-weight: 700;
}

h3.wp-block-heading {
  font-size: 1.8rem;
  font-weight: 600;
}

h4.wp-block-heading {
  font-size: 1.5rem;
  font-weight: 600;
}

h5.wp-block-heading {
  font-size: 1.2rem;
  font-weight: 600;
}

h6.wp-block-heading {
  font-size: 1rem;
  font-weight: 600;
}

ul.wp-block-list {
  list-style-type: disc;
  margin-left: 1.5rem; 
}

ul.wp-block-list ul.wp-block-list {
  list-style-type: circle;
}

ul.wp-block-list ul.wp-block-list ul.wp-block-list{
  list-style-type: square;
}

ol.wp-block-list {
  list-style-type: decimal;
  margin-left: 1.5rem;
}

blockquote.wp-block-quote p {
  font-style: italic;
  background: #F3F4F8 0% 0% no-repeat padding-box;
  border-radius: 26px;
  opacity: 1;
  padding: 32px 55px;
}

details.wp-block-details p {
  padding-left: 2rem;
}

/* Teste de like dislike em postagem do blog */

/* div .crowdsignal-vote-wrapper {
  width: 100px;
  height: 100px;
  background-color: red;
  border: 1px solid blue;
  color: green;
} */

/* .danyel-teste {
  border: 1px solid red;
} */

.circle-decorative {
  filter: hue-rotate(-10deg) brightness(120%);
}

.bottom-fade-overlay {
  background-image: linear-gradient(to top,
  rgba(1,74,255,1),
  rgba(1, 74, 255, 0),
  rgba(1, 74, 255, 0)
  );
}

@media (max-width: 1023px) {
  .bottom-fade-overlay {
    background-image: linear-gradient(to top,
    rgba(1,74,255,1),
    rgba(1, 74, 255, 0),
    rgba(1, 74, 255, 0),
    rgba(1, 74, 255, 0)
    );
  }
}