/* Shared transitions: shallow curves, with straight joins where requested. */
:root{--organic-wave:24px;--home-cream:#fcf3eb}
body.mobile .viewport{width:min(390px,100%)}
:is(#mapa,.mascot-game,.memory-game,.coloring,.intro + .products,.moment-hero + .intro,.notice,.finder-hero,.google-map-panel,.rep-copy){
  position:relative;
  -webkit-mask-image:url("assets/onda-mask.svg"),linear-gradient(#fff 0 0);
  mask-image:url("assets/onda-mask.svg"),linear-gradient(#fff 0 0);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:100% var(--organic-wave),100% calc(100% - var(--organic-wave) + 1px);
  mask-size:100% var(--organic-wave),100% calc(100% - var(--organic-wave) + 1px);
  -webkit-mask-position:center top,center bottom;mask-position:center top,center bottom;
}
:is(#origem,.origin-explosion,.origin-copy,.origin-media,.origin-story,.origin-end,#linhas,#revendedor,.form-wrap,footer){
  -webkit-mask-image:none!important;mask-image:none!important;clip-path:none!important;
  margin-top:0!important;border-radius:0!important;
}
#origem{padding-top:0!important;border-top:0!important}
#origem::before,#origem::after{content:none!important}
.origin-copy,.origin-story{padding-top:28px!important}
.origin-media,.origin-end{padding-top:0!important}
/* Carry the history text's white surface directly up to the institutional video. */
#origem .origin-media,#origem .origin-story,#origem .origin-end{background:#fff}
#origem .origin-media{padding-bottom:0!important}
.origin-address{font-size:12px!important;font-weight:400!important;gap:7px!important}
.origin-address::before{content:""!important;display:inline-block;width:12px;height:12px;flex:0 0 12px;background:#3B0247;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:inset 0 0 0 3.5px #fff}
#linhas{padding-top:64px!important}
body:has(.product .ratio) :is(.products,.notice),
body:has(.product img[src*="especial"]) :is(.products,.notice){-webkit-mask-image:none;mask-image:none;margin-top:0}
section:empty,article:empty,main:empty,[data-empty="true"]{display:none!important}
.spacer,.spacer-before,.empty-section{display:none!important;height:0!important;margin:0!important;padding:0!important}

/* The source clips contain their old purple navigation strip. Hide only that
   baked-in strip; retain the complete chocolate artwork and native proportions. */
header{border:0!important;margin-bottom:0!important;background:linear-gradient(180deg,#650f73 0%,#3B0247 48%,#350541 100%);box-shadow:none;filter:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.reviewbar{background:#650f73;border:0;box-shadow:none}
.reviewbar .device{border-color:#ffffff80}
.reviewbar .device.on{color:#3B0247}
.viewport > header{background:linear-gradient(180deg,#650f73,#3B0247);box-shadow:none}
.viewport > header::after{
  content:"";position:absolute;z-index:0;left:0;right:0;top:calc(100% - 1px);
  height:16px;background:#3B0247;pointer-events:none;
  -webkit-mask:url("assets/header-wave.svg") center/100% 100% no-repeat;
  mask:url("assets/header-wave.svg") center/100% 100% no-repeat;
}
.viewport > header .mobile-menu{background:#3B0247;z-index:1;box-shadow:none;filter:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#reading-progress{background:#e6a8cf}
#home.hero,.mobile #home.hero{
  display:block;position:relative;isolation:isolate;container-type:inline-size;min-height:0!important;
  padding:0!important;overflow:hidden;border:0!important;border-radius:0;
  background:var(--home-cream)!important;box-shadow:none;
}
#home.hero::before,#home.hero::after{content:none!important;display:none!important;animation:none!important;filter:none!important}
#home .hero-media{position:relative;width:100%;overflow:hidden;line-height:0;opacity:1!important;transform:none!important;animation:none!important}
#hero-cascade{display:block;width:100%;height:auto;aspect-ratio:1194/512;object-fit:contain;margin-top:-4.94%;background:transparent;filter:none;mask:none;-webkit-mask:none}
#home .hero-copy,.mobile #home .hero-copy{
  position:absolute;z-index:2;left:16%;top:12%;width:37%;max-width:510px;
  margin:0!important;padding:0;transform:none!important;opacity:1!important;
  color:#3B0247;background:none;filter:none;backdrop-filter:none;animation:none!important;
}
#home .hero-copy h1{font-size:clamp(28px,3.3cqw,48px);line-height:1.04;margin:0 0 14px;letter-spacing:-.025em;text-shadow:none!important}
#home .hero-copy p{font-size:clamp(14px,1.25cqw,18px);line-height:1.4;max-width:440px;text-shadow:none!important}
#home .hero-copy .actions{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;width:auto;gap:8px;margin:18px 0 0}
#home .hero-copy .actions .btn{
  display:inline-flex!important;width:auto!important;min-height:36px!important;
  padding:8px 13px!important;font-size:12px!important;line-height:1.15;white-space:normal;
  border:2px solid #3B0247!important;box-shadow:none;background:#3B0247;color:#fff;
}
#home .hero-copy .actions .btn.light{background:#fff;color:#3B0247}
#home .hero-copy .actions .btn[data-i18n="heroWhere"]{border-color:#fff!important}
#home .hero-title-grape,.scroll-grape{display:none!important}
#scroll-grape{display:block!important;position:fixed;z-index:35;left:max(-64px,calc((100vw - 1440px)/2 - 64px));right:auto;top:22vh;width:128px;height:128px;background:transparent;object-fit:contain;pointer-events:none;filter:drop-shadow(0 7px 10px #21002a33);transform-origin:center;will-change:transform,top,left}
body.mobile #scroll-grape{width:94px;height:94px}
.hero-video-toggle{position:absolute;right:16px;bottom:14px;z-index:3;border:1px solid #ffffffa8;border-radius:999px;padding:8px 12px;min-height:36px;background:#35130dc9;color:#fff;font:600 11px Manrope,Arial,sans-serif;cursor:pointer;line-height:1.2}
.hero-video-toggle:focus-visible{outline:3px solid #e6a8cf;outline-offset:3px}
/* Keep the copy over the original artwork at every width, including the
   simulated phone. Reframe the horizontal scene to retain a clear text area. */
.mobile #home .hero-media{height:280px}
.mobile #hero-cascade{position:absolute;top:-13.0243%;left:0;width:100%;height:113.0243%;aspect-ratio:auto;margin:0;object-fit:cover;object-position:42% center}
.mobile #home .hero-copy{position:absolute;left:8%;top:9%;width:60%;max-width:none;padding:0}
.mobile #home .hero-copy h1{font-size:22px;line-height:1.08;margin-bottom:8px}
.mobile #home .hero-copy p{font-size:14px;line-height:1.3}
.mobile #home .hero-copy .actions{margin-top:12px;gap:6px}
.mobile #home .hero-copy .actions .btn{min-height:32px!important;padding:7px 9px!important}
.mobile .viewport > header::after{height:10px}
@media(max-width:800px){
  #home .hero-media{height:clamp(280px,65cqw,480px)}
  #hero-cascade{position:absolute;top:-13.0243%;left:0;width:100%;height:113.0243%;aspect-ratio:auto;margin:0;object-fit:cover;object-position:42% center}
  #home .hero-copy{position:absolute;left:8%;top:9%;width:60%;max-width:none;padding:0}
  #home .hero-copy h1{font-size:clamp(22px,3.7cqw,30px);line-height:1.08;margin-bottom:8px}
  #home .hero-copy p{font-size:clamp(14px,2.2cqw,16px);line-height:1.3}
  #home .hero-copy .actions{margin-top:12px;gap:6px}
  #home .hero-copy .actions .btn{min-height:32px!important;padding:7px 9px!important}
  .viewport > header::after{height:10px}
  #scroll-grape{width:94px;height:94px;left:-47px}
  #linhas{padding-top:48px!important}
}

/* Join the complete clips on the Home cream, without a decorative divider. */
#home.hero{margin-bottom:-1px!important}
#home .hero-media{background:var(--home-cream)}
#origem{border:0!important;padding-top:0!important;box-shadow:none;background:var(--home-cream)}
/* Fill the entire horizontal span with the complete clip on every viewport.
   The source is square: let its natural height follow the width, so neither
   letterboxing nor a landscape crop/vertical stretch can hide the artwork. */
#origem .origin-explosion{display:block;width:100%;height:auto!important;min-height:0;max-height:none;aspect-ratio:auto;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--home-cream);box-shadow:none;line-height:0;opacity:1!important;transform:none!important;animation:none!important}
#origem .origin-explosion video{display:block;width:100%;height:auto;min-width:0;min-height:0;max-width:none;max-height:none;aspect-ratio:auto 1/1;margin:0;padding:0;border:0;outline:0;object-fit:contain;object-position:center;clip-path:none;transform:none;animation:none!important}
/* Tint only the clip's pale background; preserve the original animation,
   dark chocolate, purple grapes and saturated vineyard foliage. */
#origem .origin-explosion video{filter:url(#origin-home-cream)}
.origin-color-filter{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}

/* Complete packaging in square cards, with a shared title and image axis. */
#linhas .product-square{
  width:100%;aspect-ratio:1;min-width:0;min-height:0;
  padding:16px 14px 14px;grid-template-rows:76px minmax(0,1fr);gap:6px;
}
#linhas .line-card h3{align-self:start;margin:0;text-align:center}
#linhas .line-card h3 .brand-name{font-size:clamp(23px,2vw,30px);line-height:1.08}
#linhas .line-card h3 .brand-detail{font-size:18px;line-height:1.15}
#linhas .package-display{
  position:relative;display:grid!important;place-items:center!important;
  min-width:0;min-height:0;width:100%;height:100%;
}
#linhas .line-card .package-display > :is(img,svg){
  position:absolute;inset:0;display:block!important;
  width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;margin:0!important;
  object-fit:contain!important;object-position:center!important;transform:none!important;
  filter:drop-shadow(0 5px 5px rgba(67,20,48,.12));
}
#linhas .package-display::after{content:none}
@media(min-width:801px) and (max-width:1100px){
  body:not(.mobile) #linhas .line-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  body:not(.mobile) #linhas .line-card{grid-column:span 2}
  body:not(.mobile) #linhas .line-card:last-child{grid-column:2/span 2}
}
body.mobile #linhas .line-card{grid-column:auto}

/* Home narrative order: explain the origin first, then reveal the grape
   transformation. Keep every existing Origin block and only change its
   visual sequence. */
#origem{
  display:flex!important;
  flex-direction:column!important;
  background:#fffaf7!important;
}
#origem .origin-copy{order:1;background:#fffaf7!important}
#origem .origin-explosion{order:2;background:linear-gradient(180deg,#f7d4c9,#fff1df)!important}
#origem .origin-media{order:3}
#origem .origin-story{order:4}
#origem .origin-end{order:5}

/* Mask the entire Momentinhos banner once, including its background. */
#produtos,.mobile #produtos{padding:0!important;margin-top:0;overflow:hidden;background:#fffaf7;-webkit-mask:none;mask:none}
#produtos .mascot-banner{
  background:transparent;line-height:0;isolation:isolate;
  -webkit-mask-image:url("assets/onda-mask.svg"),linear-gradient(#fff 0 0);
  mask-image:url("assets/onda-mask.svg"),linear-gradient(#fff 0 0);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:100% var(--organic-wave),100% calc(100% - var(--organic-wave) + 1px);
  mask-size:100% var(--organic-wave),100% calc(100% - var(--organic-wave) + 1px);
  -webkit-mask-position:center top,center bottom;mask-position:center top,center bottom;
}
#produtos .mascot-banner .art{display:block;width:100%;height:auto}
#momentinho-poll{margin:34px clamp(16px,5vw,70px) 54px;padding:30px clamp(12px,3vw,34px);-webkit-mask:none;mask:none}
#momentinho-poll .poll-option{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0}
#momentinho-poll .mascot-vote{flex:0 0 auto;width:96px;height:96px;margin:0 0 4px}
#momentinho-poll .mascot-circle{position:relative;width:100%;height:100%;margin:0;display:block;background:#fff;overflow:hidden}
#momentinho-poll .mascot-circle img{position:absolute;left:-17.5%;top:-7%;width:135%;height:auto;max-width:none;max-height:none;object-fit:contain;object-position:center;mix-blend-mode:normal;background:transparent;border-radius:0}
#momentinho-poll .option-progress{flex:0 0 13px;margin:0}
#momentinho-poll .option-percent{margin:0}
#momentinho-poll .flavor-name{display:none}
#momentinho-poll .animate-mascot .mascot-circle{animation:mascotVotePop .65s ease-out both}
.poll-reaction{width:min(68vw,360px);aspect-ratio:2/3;background:transparent!important;mix-blend-mode:normal;animation:pollAvatarPop 2.2s cubic-bezier(.2,.9,.2,1) both!important}
.poll-reaction img{width:100%;height:100%;display:block;object-fit:contain;background:transparent!important;filter:none;mix-blend-mode:normal}
.poll-reaction::after{content:none!important}
@keyframes pollAvatarPop{
  0%{left:var(--start-x);top:var(--start-y);transform:translate(-50%,-50%) scale(.08);opacity:0}
  18%{opacity:1}
  40%{left:50%;top:48%;transform:translate(-50%,-50%) scale(1.12);opacity:1}
  60%{left:50%;top:50%;transform:translate(-50%,-50%) scale(.94);opacity:1}
  80%{left:50%;top:48%;transform:translate(-50%,-50%) scale(1.02);opacity:1}
  100%{left:50%;top:45%;transform:translate(-50%,-50%) scale(.9);opacity:0}
}
@media(max-width:800px){#momentinho-poll .mascot-vote{width:76px;height:76px}#momentinho-poll .poll-option{gap:10px}}

/* The opening artwork and both waves share one continuous purple surface. */
#mascotes{
  --mascots-wave:clamp(24px,3.6vw,48px);
  position:relative;background:#3B0247;margin-top:0!important;padding-top:0!important;
  -webkit-mask:url("assets/mascotes-onda.svg") center top/100% var(--mascots-wave) no-repeat,linear-gradient(#fff 0 0) center bottom/100% calc(100% - var(--mascots-wave) + 1px) no-repeat!important;
  mask:url("assets/mascotes-onda.svg") center top/100% var(--mascots-wave) no-repeat,linear-gradient(#fff 0 0) center bottom/100% calc(100% - var(--mascots-wave) + 1px) no-repeat!important;
}
#mascotes::before,#mascotes::after{content:none!important}
#mascotes .mascot-media,#mascotes .mascot-story{
  -webkit-mask:none!important;mask:none!important;clip-path:none!important;
  margin:0!important;border:0!important;border-radius:0!important;
}
#mascotes .mascot-media{padding:0!important;line-height:0;background:#f7deee}
#mascotes .mascot-media video{margin:0;border:0;display:block}
#mascotes .mascot-story{position:relative;isolation:isolate;min-height:0;padding:46px clamp(24px,12vw,180px);background:linear-gradient(#fffaf7,#f7deee)}
#mascotes .mascots-opening{
  padding:var(--mascots-wave) 0!important;
  background:linear-gradient(180deg,#49005d 0%,#49005d var(--mascots-wave),#7e05a2 calc(100% - var(--mascots-wave)),#7e05a2 100%);
}
#mascotes .mascots-opening video{
  width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;
  background:transparent;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 8px,#000 calc(100% - 3px),transparent);
  mask-image:linear-gradient(to bottom,transparent,#000 8px,#000 calc(100% - 3px),transparent);
}
#mascotes .mascots-opening + .mascot-story{
  margin-top:calc(-1 * var(--mascots-wave))!important;
  padding-top:calc(46px + var(--mascots-wave));
  -webkit-mask:url("assets/mascotes-onda.svg") center top/100% var(--mascots-wave) no-repeat,linear-gradient(#fff 0 0) center bottom/100% calc(100% - var(--mascots-wave) + 1px) no-repeat!important;
  mask:url("assets/mascotes-onda.svg") center top/100% var(--mascots-wave) no-repeat,linear-gradient(#fff 0 0) center bottom/100% calc(100% - var(--mascots-wave) + 1px) no-repeat!important;
}
#mascotes .mascot-story-art{position:absolute;inset:0;display:block;z-index:-1;overflow:hidden;opacity:.15;mix-blend-mode:multiply}
#mascotes .mascot-story-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(2.8);object-position:center}
#mascotes .mascot-story h2{font-size:clamp(32px,4vw,56px);line-height:1.08;margin:0 auto 22px;max-width:900px;text-align:center}
#mascotes .mascot-story p{max-width:900px;margin:0 auto 14px;font-size:clamp(16px,1.35vw,20px);line-height:1.45;text-align:justify;text-align-last:left}

/* Complete 3 x 3 hunt and official memory cards. */
.mascot-game{background:#3B0247;color:#fff;padding:54px 24px}
.mascot-game > .section-title,.mascot-game > p{max-width:900px;margin-left:auto;margin-right:auto;text-align:left;color:#fff}
.mascot-game > .section-title{line-height:1.12;margin-bottom:12px}
.mascot-game > p{text-align:justify;line-height:1.4}
.hunt-shell{background:#3B0247}
.hunt-board{grid-template-columns:repeat(3,minmax(0,1fr));max-width:660px;min-height:0;margin:0 auto;background:#3B0247;padding:16px;gap:16px}
.hunt-item{min-width:0;width:100%;height:auto;aspect-ratio:1}
.hunt-face{object-fit:contain;mix-blend-mode:normal;background:transparent;border-radius:0}
.memory-game > .section-title,.memory-game > p{text-align:center;max-width:820px;margin-left:auto;margin-right:auto}
.memory-game > .section-title{line-height:1.1;margin-bottom:12px}
.memory-game > p{line-height:1.35;margin-top:0}
.memory-back{background:#e6a8cf;border-color:#f7deee;color:#3B0247}
.memory-brand{font:700 clamp(12px,2.4vw,28px)/1.15 Georgia,serif;color:#3B0247;white-space:nowrap}
.memory-front{background:#fff}
.memory-front img{width:94%;height:94%;object-fit:contain}
.mobile .hunt-symbol{font-size:32px}
.mobile .memory-brand{font-size:12px}
.mobile .memory-levels{grid-template-columns:1fr 1fr}
.mobile .memory-shell{padding:14px}
@media(max-width:800px){.hunt-board{gap:10px;padding:8px}.mascot-game{padding:44px 18px}.mascot-game>.section-title{font-size:34px}.hunt-symbol{font-size:clamp(30px,8vw,52px)}}

/* Readable reseller copy and straight form/footer boundaries. */
#revendedor{background:#fffaf7;padding-top:0}
.rep-hero,.mobile .rep-hero{padding:48px clamp(20px,7vw,100px) 0;min-height:0;overflow:visible}
.rep-hero h2,.mobile .rep-hero h2{width:100%;max-width:980px;height:auto;max-height:none;padding:0;margin:0 auto;white-space:normal;overflow:visible;overflow-wrap:break-word;text-align:center;font-size:clamp(30px,4vw,54px);line-height:1.15}
.form-wrap,.mobile .form-wrap{padding:26px clamp(20px,10vw,150px) 54px;overflow:visible}
.form-wrap > .section-title{line-height:1.15;text-align:center}
.form-wrap > p{max-width:800px;margin:12px auto 0;text-align:center;line-height:1.4}
footer{padding-top:44px!important;border-top:0!important}
@media(prefers-reduced-motion:reduce){
  .poll-reaction{animation:pollAvatarReduced 2.2s linear both!important}
  .poll-option.animate-mascot .mascot-circle{animation:none!important}
  @keyframes pollAvatarReduced{0%,100%{left:50%;top:50%;transform:translate(-50%,-50%);opacity:0}15%,85%{left:50%;top:50%;transform:translate(-50%,-50%);opacity:1}}
}
