/**
 * Extras (no SCSS source in this repo): header "Boletos" link, home blog
 * carousel, lead form box on articles and Originador/Empresa lead form.
 */

/* Header: Boletos */
.menu-desk {
  align-items: center;
}
.menu-desk .boletos-link {
  margin: 0 30px 0 auto;
  color: #4A4A4A;
  font-size: 0.8em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Keep each menu item on one line (the extra link left too little room) */
.menu-desk ul li {
  white-space: nowrap;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  header .menu-desk ul li {
    margin-right: 14px;
  }
  header .menu-desk .boletos-link {
    margin-right: 14px;
  }
}
@media (min-width: 1200px) {
  header .menu-desk ul li {
    margin-right: 22px;
  }
}
.menu-desk .boletos-link:hover {
  color: #005087;
  text-decoration: none;
}
.menu-desk .cta {
  white-space: nowrap;
}
.menu-mobile .boletos-link {
  display: block;
  margin: 2rem 0 0;
  padding: 12px;
  border: 1px solid #005087;
  color: #005087;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}
.menu-mobile .boletos-link + .cta {
  margin-top: 1rem !important;
}
.menu-mobile .boletos-link:hover {
  text-decoration: none;
}

/* Header: language flags (after "Financie o seu projeto") */
.lang-flags {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-flags .lang-flag {
  display: block;
  line-height: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.lang-flags .lang-flag:hover,
.lang-flags .lang-flag:focus,
.lang-flags .lang-flag.active {
  opacity: 1;
}
.lang-flags img {
  display: block;
  width: 24px;
  height: auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.menu-desk .lang-flags {
  margin-left: 24px;
  flex-shrink: 0;
}
.menu-mobile .lang-flags {
  justify-content: center;
  gap: 24px;
  padding-top: 1rem;
}
.menu-mobile .lang-flags img {
  width: 32px;
}

/* Home: Blog Fortesec */
.home-blog {
  padding: 60px 0;
  background: #FFFFFF;
}
.home-blog h2 {
  color: #005087;
  margin-bottom: 32px;
}
.home-blog-carousel {
  margin: 0 -12px;
}
.home-blog-cell {
  width: 33.3333%;
  padding: 0 12px;
}
.home-blog-card {
  display: block;
  color: #002D55;
}
.home-blog-card:hover {
  color: #005087;
  text-decoration: none;
}
.home-blog-thumbnail {
  position: relative;
  overflow: hidden;
  padding-top: 62%;
  background: #E8E7E8;
}
.home-blog-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.home-blog-thumbnail img.logo {
  object-fit: contain;
  padding: 20%;
}
.home-blog-card:hover .home-blog-thumbnail img {
  transform: scale(1.04);
}
.home-blog-title {
  margin: 16px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}
.home-blog .flickity-page-dots {
  position: static;
  margin-top: 24px;
}
.home-blog .flickity-prev-next-button {
  top: 31%;
}
.home-blog-footer {
  margin-top: 24px;
}
.home-blog-footer .btn-darkblue {
  display: inline-block;
}
@media (max-width: 767px) {
  .home-blog {
    padding: 40px 0;
  }
  .home-blog-cell {
    width: 85%;
  }
}

/* Articles: Financie seu projeto conosco */
.lead-form-box {
  margin-top: 48px;
  margin-bottom: 48px;
  max-width: 880px;
}
.lead-form-box-header {
  background: linear-gradient(90deg, #002D55 0%, #005087 100%);
  padding: 24px 32px;
}
.lead-form-box-header h2 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.8rem;
  text-transform: uppercase;
}
.lead-form-box .page-fullpage {
  padding-top: 0;
}
.lead-form-box .page-fullpage .form-lead {
  margin-top: 2rem;
}

/* Lead form: Originador / Empresa */
.form-lead .form-lead-heading {
  margin-bottom: 1.5rem;
}
.form-lead .form-lead-heading p {
  margin: 0;
  color: #4A4A4A;
}
.form-lead .form-lead-perfil {
  background: #EEF3F8;
  padding: 1rem 1.25rem;
}
.form-lead .form-lead-perfil .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  border: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.form-lead .form-lead-perfil .wpcf7-list-item {
  margin: 0;
}
.form-lead .form-lead-perfil label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.form-lead .form-lead-perfil .wpcf7-list-item-label {
  font-size: 1.1rem;
}
.form-lead .form-lead-company-only[hidden] {
  display: none !important;
}
.form-lead .form-lead-buttons .wpcf7-submit {
  width: 100%;
  border: 0;
  background-color: #002D55;
  color: #FFFFFF;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}
.form-lead .form-lead-buttons .wpcf7-submit:hover {
  background-color: #005087;
}

/* Boleto: empreendimentos cards grow with their text (the fixed height and
   the absolutely positioned button made long names/addresses overlap it) */
@media (min-width: 768px) {
  .page-boleto section.empreendimentos .border-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
  }
  .page-boleto section.empreendimentos .border-box img.logo-none {
    align-self: center;
    max-width: 100%;
    object-fit: contain;
  }
  .page-boleto section.empreendimentos .border-box p.limit-height {
    height: auto;
    overflow: visible;
  }
  .page-boleto section.empreendimentos .border-box a {
    position: static;
    margin-top: auto;
    padding-top: 12px;
  }
}
