/* Estilos customizados — animações e ajustes que o Tailwind CDN não cobre sozinho */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-tap-highlight-color: transparent;
  top: 0 !important;
  position: static !important;
}

.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-spinner-pos {
  display: none !important;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.news-item {
  transition: all 0.7s ease-in-out;
}

.news-item.is-active {
  transform: translateY(0);
  opacity: 1;
  z-index: 10;
}

.news-item.is-prev {
  transform: translateY(-2rem);
  opacity: 0;
  pointer-events: none;
}

.news-item.is-next {
  transform: translateY(2rem);
  opacity: 0;
  pointer-events: none;
}

.eco-card-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.eco-card.is-open .eco-card-details {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.eco-card.is-open .eco-chevron-down {
  display: none;
}

.eco-card:not(.is-open) .eco-chevron-up {
  display: none;
}

#report-modal {
  display: none;
}

#report-modal.is-open {
  display: block;
}

#cookie-banner {
  display: none;
}

#cookie-banner.is-visible {
  display: flex;
}

#lang-menu {
  display: none;
}

#lang-menu.is-open {
  display: flex;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  top: -0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #001e78;
}

.form-field label {
  transition: all 0.2s ease;
}

.form-field input:placeholder-shown + label {
  top: 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
}

::selection {
  background-color: #001e78;
  color: #fff;
}

#site-header.is-scrolled {
  background-color: #fff;
  border-color: #e5e7eb;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#site-header:not(.is-scrolled) {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
