/* Campanya de Nadal. Retira aquest full d’estils per desactivar la decoració. */
.announcement {
  justify-content: center;
  background: linear-gradient(100deg, #8c080b, #b30e17 55%, #8c080b);
}
.announcement .announcement-track { display: none; }
.announcement .mc-nadal-banner[hidden] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 2vw, 27px);
  padding: 0 10px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 950;
  letter-spacing: .16em;
}
.mc-nadal-banner b { color: #ffedce; font-size: 1.15em; line-height: 1; }
.site-header .brand, .mc-nadal-interior .header .brand { position: relative; isolation: isolate; }
.mc-nadal-decor[hidden] { display: block; pointer-events: none; user-select: none; }
.mc-nadal-hat {
  position: absolute;
  width: clamp(42px, 5.4vw, 71px);
  height: clamp(37px, 4.2vw, 56px);
  top: -.89em;
  left: -.69em;
  z-index: -1;
  background: url(hat.webp) center / contain no-repeat;
}
:root { --mc-garland-height: clamp(95px, 12vw, 170px); }
main#top > .hero {
  padding-top: calc(var(--mc-garland-height) + 22px);
}
.mc-nadal-garland {
  position: absolute;
  inset: -3px 0 auto;
  height: var(--mc-garland-height);
  z-index: 5;
  background: url(garland.webp) center top / auto 100% repeat-x;
}
.mc-nadal-art {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.mc-nadal-art::before,
.mc-nadal-art::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
}
.mc-nadal-art::before {
  top: -3%;
  left: -2%;
  width: 38%;
  height: 39%;
  background-image: url(corner.webp);
  background-position: left top;
}
.mc-nadal-art::after {
  top: 1%;
  right: 3%;
  width: 25%;
  height: 24%;
  background-image: url(snowman.webp);
  background-position: right top;
}
.mc-nadal-flakes {
  position: absolute;
  z-index: 0;
  inset: var(--mc-garland-height) 0 1% 0;
  background:
    url(flake.svg) calc(100% - 15px) 13% / 41px no-repeat,
    url(flake.svg) 2.1% 24% / 32px no-repeat,
    url(flake.svg) 49% 52% / 45px no-repeat,
    url(flake.svg) calc(100% - 13px) 89% / 34px no-repeat,
    url(flake.svg) 46% 94% / 37px no-repeat;
  opacity: .88;
}
@media (max-width: 1080px) {
  .mc-nadal-flakes {
    background:
      url(flake.svg) calc(100% - 12px) 4% / 27px no-repeat,
      url(flake.svg) 1% 76% / 27px no-repeat,
      url(flake.svg) calc(100% - 12px) 91% / 29px no-repeat;
  }
}
@media (max-width: 760px) {
  main#top > .hero {
    padding-top: calc(var(--mc-garland-height) + 6px);
  }
  .mc-nadal-garland { background-size: auto 100%; }
  .mc-nadal-hat { left: -.54em; top: -.89em; }
  .mc-nadal-art::before { width: 34%; height: 27%; }
  .mc-nadal-art::after { top: 2%; width: 24%; height: 21%; }
}
@media (min-width: 1081px) {
  :root { --mc-garland-height: clamp(112px, 10.2vw, 150px); }
  main#top > .hero h1 { font-size: clamp(75px, 7.35vw, 106px); }
}
@media (max-width: 760px) {
  :root { --mc-garland-height: clamp(66px, 20vw, 112px); }
}
@media (max-width: 360px) {
  .site-header .brand { font-size: 21px; }
  .site-header .header-actions { gap: 7px; }
}

/* Every band uses the hero artwork at the same size, with no stretching. */
.mc-nadal-page-strip[hidden] { display: block; }
.mc-nadal-page-strip,
[data-mc-nadal-section]::before,
[data-mc-nadal-footer]::before,
.mc-nadal-ribbon::before {
  height: var(--mc-garland-height);
  background: url(garland.webp) center top / auto 100% repeat-x;
  pointer-events: none;
}
.mc-nadal-interior .announce { background: #8b1219; }
[data-mc-nadal-section], [data-mc-nadal-footer] {
  position: relative;
  padding-top: calc(var(--mc-garland-height) + 32px);
}
.adviento-drop[data-mc-nadal-section],
.mc-nadal-interior .legal-footer[data-mc-nadal-footer] {
  padding-top: calc(var(--mc-garland-height) + 32px);
}
[data-mc-nadal-section]::before, [data-mc-nadal-footer]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  border-radius: 0;
}
@media (max-width: 860px) {
  .mc-nadal-interior main > .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .mc-nadal-interior .hero .hero-img { margin: 0; }
  .mc-nadal-interior .hero h1 {
    font-size: clamp(33px, 9.7vw, 54px);
    overflow-wrap: anywhere;
  }
}

/* Ornaments appear at different edges, rather than flanking every band. */
[data-mc-nadal-peek]::after {
  content: "";
  position: absolute;
  top: calc(var(--mc-garland-height) - 53px);
  right: 0;
  width: clamp(52px, 8vw, 124px);
  height: clamp(53px, 6.1vw, 85px);
  background: var(--mc-peek) right -9px bottom / auto 100% no-repeat;
  pointer-events: none;
}
[data-mc-nadal-peek$="-left"]::after {
  left: 0;
  right: auto;
  background-position: left -9px bottom;
}
[data-mc-nadal-peek*="-bottom-"]::after { top: auto; bottom: 5px; }
[data-mc-nadal-peek^="santa"] { --mc-peek: url(santa.webp); }
[data-mc-nadal-peek^="snowman"] { --mc-peek: url(snowman.webp); }
[data-mc-nadal-peek^="reindeer"] { --mc-peek: url(reindeer.webp); }
[data-mc-nadal-peek^="gingerbread"] { --mc-peek: url(gingerbread.webp); }
[data-mc-nadal-peek^="hat"] { --mc-peek: url(hat.webp); }
[data-mc-nadal-peek^="hat"]::after { background-size: auto 76%; }
@media(max-width:760px) {
  [data-mc-nadal-peek]::after { top: calc(var(--mc-garland-height) - 29px); height: 56px; }
  [data-mc-nadal-peek*="-bottom-"]::after { top: auto; }
}

.mc-nadal-ribbon[hidden] {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  margin: clamp(20px, 4vw, 56px) 0;
  min-height: 295px;
  padding: calc(var(--mc-garland-height) + 18px) clamp(75px, 18vw, 290px) 47px;
  color: #fff9ed;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 2%, #c52d36, transparent 75%),
    linear-gradient(115deg, #7a0e1a, #a01522 51%, #7a0e1a);
  border-block: 2px solid #e5af69;
  box-shadow: 0 16px 40px #5e17232b;
}
.mc-nadal-ribbon::before, .mc-nadal-ribbon::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  pointer-events: none;
}
.mc-nadal-ribbon::after { inset: 0; }
.mc-nadal-ribbon--gifts::after {
  background:
    url(santa.webp) left -8px bottom 17px / auto clamp(75px, 13vw, 205px) no-repeat,
    url(reindeer.webp) right -10px bottom 27px / auto clamp(70px, 12vw, 190px) no-repeat;
}
.mc-nadal-ribbon--cookies::after {
  background:
    url(gingerbread.webp) left -7px bottom 40px / auto clamp(72px, 12vw, 190px) no-repeat,
    url(snowman.webp) right -12px bottom 12px / auto clamp(69px, 12vw, 190px) no-repeat;
}
.mc-nadal-ribbon-copy { width: min(100%, 690px); }
.mc-nadal-ribbon-copy > span {
  display: block;
  margin-bottom: 9px;
  color: #ffe1a7;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .19em;
}
.mc-nadal-ribbon-copy > strong {
  display: block;
  font-size: clamp(27px, 4.2vw, 61px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.mc-nadal-ribbon-copy > p {
  margin: 10px auto 16px;
  color: #fff4e5;
  font-size: clamp(13px, 1.4vw, 17px);
}
.mc-nadal-ribbon-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 17px;
  border-radius: 50px;
  background: #fff4df;
  color: #681722;
  font-size: 13px;
  font-weight: 850;
}
.mc-nadal-ribbon-copy > a:focus-visible { outline: 3px solid #ffdb92; outline-offset: 4px; }
@media(max-width: 760px) {
  .mc-nadal-ribbon[hidden] { min-height: 260px; padding: calc(var(--mc-garland-height) + 15px) 55px 33px; }
  .mc-nadal-ribbon--gifts::after {
    background:
      url(santa.webp) left -6px bottom 9px / auto 75px no-repeat,
      url(reindeer.webp) right -7px bottom 9px / auto 66px no-repeat;
  }
  .mc-nadal-ribbon--cookies::after {
    background:
      url(gingerbread.webp) left -6px bottom 9px / auto 72px no-repeat,
      url(snowman.webp) right -8px bottom 9px / auto 63px no-repeat;
  }
}
