/* The homepage has six service links; switch to its existing menu sooner. */
@media (max-width: 1200px) {
  .xr-has-sites-nav .en-nav { display: none; }
  .xr-has-sites-nav .en-hamburger { display: flex; }
}
/* Shared CTA geometry also supports the English homepage's isolated styles. */
.xr-bento-grid--especiais .xr-ia-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff248e, #d4006e);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 50px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 28px #ff248e59;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.xr-bento-grid--especiais .xr-ia-btn:hover { transform: translateY(-2px); }
/* Dark variant shares the pink CTA's shape, spacing and responsive sizing. */
.xr-ia-btn.xr-ia-btn--dark {
  background: linear-gradient(135deg, #303030 0%, #080808 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 28px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.xr-ia-btn.xr-ia-btn--dark:hover {
  background: linear-gradient(135deg, #3c3c3c 0%, #111 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 10px 36px rgba(0, 0, 0, 0.5);
}

.xr-ia-btn.xr-ia-btn--dark:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Two compact text panels share the left side; one film cover anchors the right. */
.xr-bento-grid.xr-bento-grid--especiais {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "lead lead film" "story story film";
}
.xr-bento-grid--especiais .xr-bento-lead { padding: 30px 32px; }
.xr-bento-grid--especiais .xr-bento-lead .xr-ia-eyebrow { margin-bottom: 10px; }
.xr-bento-grid--especiais .xr-bento-lead h2 { margin-top: 12px; }
.xr-bento-grid--especiais .xr-bento-lead > p { max-width: none; margin-bottom: 20px; }
.xr-bento-grid--especiais .xr-bento-ctas { gap: 14px; }
.xr-bento-grid--especiais .xr-bento-lead .xr-ia-btn { font-size: 12px; padding: 15px 24px; }
.xr-special-video {
  grid-area: film;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 30px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  color: #fff;
  text-align: center;
  font: inherit;
}
.xr-special-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0009 0%, #0001 36%, #0002 55%, #000e 100%);
}
.xr-special-video > .xr-special-video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  transition: transform 600ms ease;
}
.xr-special-video:hover > .xr-special-video-cover { transform: scale(1.035); }
.xr-special-video, .xr-special-video:hover, .xr-special-video:focus { color: #fff !important; }
.xr-special-video-logo { display: block; align-self: center; width: min(100%, 250px); height: auto; object-fit: contain; filter: brightness(0) invert(1); }
.xr-special-video-play {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff248e, #d4006e);
  border-radius: 50%;
  box-shadow: 0 0 0 12px #ffffff15, 0 12px 40px #0006;
  transition: box-shadow 250ms ease;
}
.xr-special-video-play svg { width: 27px; height: 27px; margin-left: 5px; fill: currentColor; }
.xr-special-video:hover .xr-special-video-play { box-shadow: 0 0 0 17px #ffffff20, 0 12px 40px #0006; }
.xr-special-video-caption { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.xr-special-video-caption strong { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; text-wrap: balance; }
.xr-special-video-caption > span { font-size: 12px; color: #ffffffb3; line-height: 1.5; }
.xr-special-case { grid-area: story; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 26px 32px; }
.xr-special-case-eyebrow { color: #ff248e; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 12px; }
.xr-special-case h3 { color: #fff; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.xr-special-case > p:not(.xr-special-case-eyebrow) { color: #b3aeb7; font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.xr-special-case-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; width: 100%; border-top: 1px solid #ffffff1a; padding-top: 16px; }
.xr-special-case dl { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; }
.xr-special-case dt { color: #a6a0aa; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.xr-special-case dd { color: #fff; font-size: 13px; font-weight: 700; margin: 5px 0 0; }
.xr-special-case .xr-ia-btn { font-size: 11px; padding: 13px 20px; min-height: 46px; justify-content: center; white-space: normal; }
.xr-special-case .xr-ia-btn i { font-size: 13px; }
.xr-special-video:focus-visible { outline: 2px solid #ff80bb; outline-offset: 5px; }

.xr-project-video-dialog {
  width: min(460px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 12px;
  background: #0d0d0d;
  color: #fff;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  overflow: auto;
  box-shadow: 0 30px 100px #0009;
}
.xr-project-video-dialog:not([open]) { display: none; }
.xr-project-video-dialog::backdrop { background: #000d; backdrop-filter: blur(8px); }
.xr-project-video-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 10px 8px; }
.xr-project-video-head h2 { font-size: 14px; font-weight: 600; line-height: 1.4; color: #fff; margin: 0; }
.xr-project-video-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; background: #ffffff0d; border: 1px solid #ffffff26; border-radius: 50%; color: #fff; font: 28px/1 Arial, sans-serif; cursor: pointer; }
.xr-project-video-close:focus-visible { outline: 2px solid #ff248e; outline-offset: 3px; }
.xr-project-video-slot { display: flex; justify-content: center; background: #000; border-radius: 12px; overflow: hidden; }
.xr-project-video-slot video { display: block; width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; aspect-ratio: 9 / 16; }

@media (max-width: 1024px) {
  .xr-bento-grid.xr-bento-grid--especiais {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    grid-template-areas: "lead lead" "story film";
  }
}
@media (max-width: 768px) {
  .xr-bento-grid--especiais .xr-ia-btn { width: 100%; justify-content: center; font-size: 12px; padding: 14px 20px; }
  .xr-bento-grid.xr-bento-grid--especiais {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "lead" "film" "story";
  }
  .xr-bento-grid--especiais .xr-bento-lead, .xr-special-case { padding: 24px 22px; }
  .xr-special-video { height: 340px; min-height: 340px; aspect-ratio: auto; padding: 24px; }
  .xr-special-video-logo { width: min(100%, 220px); }
  .xr-special-video-caption strong { font-size: 24px; }
  .xr-special-case h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .xr-special-video, .xr-special-video-cover, .xr-special-video-play { transition: none !important; }
  .xr-special-video:hover > .xr-special-video-cover { transform: none; }
}
