@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/wp-content/uploads/xavier-fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/wp-content/uploads/xavier-fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.xavier-campanhas-carousel {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  left: 50%;
  margin: 0 0 0 -50vw;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  background: #0f1713;
  overflow: hidden;
}

.xavier-campanhas-secundario {
  height: clamp(360px, 38vw, 520px);
  min-height: 0;
  margin-top: 36px;
  margin-bottom: 56px;
}

.xavier-campanhas-scroll {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.xavier-campanhas-scroll::-webkit-scrollbar {
  display: none;
}

.xavier-campanhas-item {
  position: relative;
  flex: 0 0 50%;
  height: 100%;
  snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.xavier-campanhas-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.xavier-campanhas-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.xavier-campanhas-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .62) 100%);
  pointer-events: none;
}

.xavier-campanhas-conteudo {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(34px, 6vw, 84px);
  left: clamp(24px, 4vw, 64px);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.xavier-campanhas-conteudo h2 {
  max-width: 680px;
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(34px, 4.2vw, 66px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}

.xavier-campanhas-conteudo p {
  max-width: 580px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.45;
}

.xavier-campanhas-botao {
  display: inline-flex;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #12291f !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.xavier-campanhas-botao:hover,
.xavier-campanhas-botao:focus-visible {
  background: #12291f;
  color: #fff !important;
}

.xavier-campanhas-botao:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .9);
  outline-offset: 3px;
}

.xavier-campanhas-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.xavier-campanhas-carousel:hover .xavier-campanhas-arrow {
  opacity: 1;
}

.xavier-campanhas-arrow:hover {
  background: #f0f0f0;
}

.xavier-campanhas-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.xavier-campanhas-arrow-left {
  left: 16px;
}

.xavier-campanhas-arrow-right {
  right: 16px;
}

.xavier-campanhas-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #333;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .xavier-campanhas-secundario {
    height: min(138vw, 560px);
    min-height: 440px;
    margin-top: 24px;
    margin-bottom: 44px;
  }
  .xavier-campanhas-item {
    flex: 0 0 100%;
  }

  .xavier-campanhas-conteudo {
    right: 24px;
    bottom: 42px;
    left: 24px;
  }

  .xavier-campanhas-conteudo h2 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .xavier-campanhas-conteudo p {
    margin-top: 12px;
    font-size: 15px;
  }

  .xavier-campanhas-botao {
    min-height: 46px;
    margin-top: 18px;
  }
}
