/* Agência RC Digital: original editorial artwork and consistent native page heroes. */
.ss-page-header.rc-editorial-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 34vw, 480px);
  margin-bottom: clamp(1.7rem, 3vw, 2.8rem);
  padding: clamp(3rem, 5vw, 5rem) 0;
  overflow: hidden;
  color: #fff;
  border: 0;
  background: linear-gradient(118deg, #07172d 0%, #0b2b4d 63%, #103c67 100%);
}
.ss-page-header.rc-editorial-hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 19, 39, .94) 0%, rgba(6, 19, 39, .72) 48%, rgba(6, 19, 39, .08) 100%);
}
.ss-page-header.rc-editorial-hero > .ss-container {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1200px);
  max-width: 1200px !important;
  margin-inline: auto;
}
.ss-page-header.rc-editorial-hero h1,
body.page:not(.home) .ss-page-header.rc-editorial-hero h1 {
  max-width: 17ch;
  margin: .4rem 0 1rem;
  color: #fff;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  line-height: 1.09;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.ss-page-header.rc-editorial-hero p,
.ss-page-header.rc-editorial-hero .rc-lead,
.ss-page-header.rc-editorial-hero .ss-eyebrow {
  position: relative;
  z-index: 2;
  max-width: 58ch;
  color: #e5f0fa !important;
}
.ss-page-header.rc-editorial-hero .ss-eyebrow {color: #8bd4ff !important;}
.ss-page-header.rc-editorial-hero .rc-actions {position: relative;z-index: 2;}
.ss-page-header.rc-editorial-hero .ss-btn-secondary {color:#fff;border-color:#b9d2ea;background:transparent;}
.rc-editorial-hero-art {
  position: absolute;
  z-index: 1;
  right: max(-1.5rem, calc((100vw - 1340px) / 2));
  bottom: -8%;
  width: min(49vw, 650px);
  height: auto;
  max-height: 112%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18));
}

/* The approved home headline remains intact. The visual takes the right side. */
.ss-hero.rc-hero-refresh {background: #eaf3fb;}
.rc-hero-refresh .ss-hero-art {
  inset: 0;
  background: url('../img/rc-art-home.webp') right -2.5rem bottom / auto 110% no-repeat;
  opacity: .26;
}
.rc-hero-refresh .ss-hero-copy {position:relative;z-index:2;}

/* The method image is a transparent cutout, never a cropped rectangle. */
.marca-hero-figure img {aspect-ratio: auto;object-fit: contain;border-radius: 0;}
.marca-hero-figure figcaption {font-size: .82rem;}

/* Blog introduction stands independently of the number of published posts. */
.rc-blog-editorial-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(330px, 32vw, 440px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg,#07172d,#0f3b67);
}
.rc-blog-editorial-hero::before {content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#07172d 0%,rgba(7,23,45,.8) 52%,transparent 100%);}
.rc-blog-editorial-hero .ss-container {position:relative;z-index:2;width:min(100% - 2rem,1200px);padding-block:3.5rem;}
.rc-blog-editorial-hero h1 {max-width:15ch;margin:0 0 1rem;color:#fff;font-size:clamp(2.5rem,4.2vw,4rem);line-height:1.08;letter-spacing:-.03em;}
.rc-blog-editorial-hero p {max-width:56ch;margin:0;color:#e3effb;font-size:clamp(1rem,1.3vw,1.2rem);line-height:1.65;}
.rc-blog-editorial-hero .rc-editorial-hero-art {z-index:0;right:max(-1rem,calc((100vw - 1320px) / 2));bottom:-10%;width:min(48vw,630px);}

/* CookieYes notice follows the agency palette. */
#cookie-law-info-bar {background:#07172d !important;color:#f2f7fc !important;box-shadow:0 8px 28px rgba(2,12,28,.24) !important;}
#cookie-law-info-bar a:not(.cli-plugin-button) {color:#9bd9ff !important;text-underline-offset:3px;}
#cookie-law-info-bar .cli-plugin-button,
#cookie-law-info-bar .cli_action_button {border-radius:10px !important;font-weight:700 !important;}

@media(max-width: 767px) {
  .ss-page-header.rc-editorial-hero,
  body.page:not(.home) .ss-page-header.rc-editorial-hero {
    min-height: 570px;
    align-items: flex-start;
    padding: 2.8rem 0 10rem;
    background: #081c35;
  }
  .ss-page-header.rc-editorial-hero::before {z-index:2;background:linear-gradient(180deg,rgba(5,17,35,.97) 0%,rgba(5,17,35,.91) 45%,rgba(5,17,35,.18) 100%);}
  .ss-page-header.rc-editorial-hero > .ss-container {z-index:3;}
  .ss-page-header.rc-editorial-hero h1,
  body.page:not(.home) .ss-page-header.rc-editorial-hero h1 {font-size:clamp(2.2rem,9vw,3.25rem);max-width:22ch;}
  .ss-page-header.rc-editorial-hero p {font-size:1rem !important;line-height:1.6 !important;}
  .ss-page-header.rc-editorial-hero .rc-actions {display:flex;flex-wrap:wrap;gap:.7rem;}
  .ss-page-header.rc-editorial-hero .rc-actions .ss-btn {min-height:46px;}
  .ss-page-header.rc-editorial-hero .rc-editorial-hero-art {z-index:1;right:-15%;bottom:-5%;width:105%;max-height:58%;opacity:.88;}

  .ss-hero.rc-hero-refresh {min-height:650px;padding:3rem 0 12rem !important;background:#081c35;color:#fff;}
  .rc-hero-refresh .ss-hero-art {inset:0;background:url('../img/rc-art-home.webp') right -6rem bottom -2rem / auto 60% no-repeat;opacity:.85;}
  .ss-hero.rc-hero-refresh::after {content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#081c35 0%,rgba(8,28,53,.95) 48%,rgba(8,28,53,.16) 100%);pointer-events:none;}
  .rc-hero-refresh .ss-container {z-index:2 !important;}
  .rc-hero-refresh .ss-hero-h1 {color:#fff !important;}
  .rc-hero-refresh .ss-hero-h1-accent {color:#8ed4ff !important;}
  .rc-hero-refresh .ss-hero-copy p.ss-lead {color:#e5f0fa !important;}
  .rc-hero-refresh .ss-hero-portrait-col {display:none;}
  .rc-hero-refresh .ss-hero-btn-primary,
  .rc-hero-refresh .ss-hero-btn-primary:hover,
  .rc-hero-refresh .ss-hero-btn-primary:focus-visible {background:#a8dfff !important;color:#07172d !important;border-color:#a8dfff !important;}
  .rc-hero-refresh .ss-hero-btn-primary span {color:#07172d !important;}
  .rc-hero-refresh .ss-hero-btn-sec,
  .rc-hero-refresh .ss-hero-btn-sec:hover,
  .rc-hero-refresh .ss-hero-btn-sec:focus-visible {background:transparent !important;color:#fff !important;border-color:#b7d6ea !important;}

  .rc-blog-editorial-hero {min-height:560px;align-items:flex-start;}
  .rc-blog-editorial-hero::before {z-index:2;background:linear-gradient(180deg,#07172d 0%,rgba(7,23,45,.95) 43%,rgba(7,23,45,.12) 100%);}
  .rc-blog-editorial-hero .ss-container {z-index:3;padding-block:3rem 10rem;}
  .rc-blog-editorial-hero .rc-editorial-hero-art {right:-15%;bottom:-4%;width:110%;max-height:62%;opacity:.88;}
  .marca-hero {position:relative;isolation:isolate;min-height:590px;overflow:hidden;}
  .marca-hero-grid {display:block;}
  .marca-hero-copy {position:relative;z-index:3;}
  .marca-hero-figure {position:absolute;z-index:1;right:-18%;bottom:-4%;width:115%;max-width:none;opacity:.85;}
  .marca-hero::after {content:'';position:absolute;z-index:2;inset:0;background:linear-gradient(180deg,#071426 0%,rgba(7,20,38,.92) 48%,rgba(7,20,38,.12) 100%);pointer-events:none;}
  .marca-hero-figure figcaption {display:none;}
  .marca-hero-copy>p {color:#e6f0fa;}
}

@media(prefers-reduced-motion:reduce) {
  .rc-editorial-hero-art {scroll-behavior:auto;}
}
