/* Floripa Presentes: the HTML image composition stays visible until WebGL is ready. */
.home-hero {
  background: radial-gradient(circle at 72% 38%, rgb(123 76 190 / 7%), transparent 43%), #fbf9fd;
}
.home-hero::before { display: none; }
.home-hero .home-wrap { width: min(1560px, calc(100% - 64px)); }
.home-hero__grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(16px, 2.5vw, 48px); }
.home-hero__stage {
  --floripa-stage-ratio: 1.4;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: var(--floripa-stage-ratio);
  overflow: visible;
  isolation: isolate;
  contain: layout style;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-hero__stage::before {
  content: '';
  position: absolute;
  left: 12%; bottom: 8%; width: 75%; height: 22%;
  background: radial-gradient(ellipse, rgb(72 39 124 / 16%), transparent 70%);
  filter: blur(18px);
}
.floripa-fallback { position: absolute; inset: 0; transition: opacity .35s; }
.floripa-fallback img { position: absolute; max-width: none; width: auto; height: auto; object-fit: contain; }
.floripa-fallback__plant { width: 24% !important; left: 0; top: 15%; }
.floripa-fallback__laptop { width: 84% !important; left: 7%; top: 13%; filter: drop-shadow(0 18px 18px rgb(50 32 70 / 17%)); }
.floripa-fallback__phone { width: 31% !important; left: 66%; top: 25%; filter: drop-shadow(0 15px 14px rgb(50 32 70 / 20%)); }
.floripa-fallback__parcel { width: 22% !important; right: 0; bottom: 0; }
.floripa-fallback__card {
  position: absolute; z-index: 2; left: 7%; top: 48%; width: 18%; padding: 5px;
  border: 1px solid #ece5f4; border-radius: 12px; background: #fff;
  box-shadow: 0 12px 26px rgb(42 26 71 / 18%); transform: rotate(-7deg);
  font-size: clamp(6px, .75vw, 11px); line-height: 1.25;
}
.floripa-fallback__card img { position: static; width: 100%; display: block; }
.floripa-fallback__card span { display: block; padding: 2px 4px 4px; }
.floripa-fallback__card strong { font-size: 1.15em; }
.floripa-fallback__icon { position: absolute; right: 2%; top: 15%; display: grid; place-items: center; width: 8%; aspect-ratio: 1; color: #fa6d8c; background: white; border-radius: 20%; box-shadow: 0 8px 20px #392b6426; transform: rotate(-8deg); font-size: clamp(20px, 3vw, 44px); }
.home-hero__stage canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; transition: opacity .45s; pointer-events: none; }
.home-hero__stage.is-ready canvas { opacity: 1; }
.home-hero__stage.is-ready .floripa-fallback { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) {
  .home-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero__visual { width: min(100%, 760px); margin-inline: auto; }
}
@media (max-width: 767px) {
  .home-hero .home-wrap { width: min(100% - 36px, 540px); }
  .home-hero__grid { display: flex; flex-direction: column; gap: 0; }
  .home-hero__copy { display: contents; }
  .home-hero__copy h1 { order: 1; }
  .home-hero__copy .home-lead { order: 2; }
  .home-actions { order: 3; }
  .home-hero__reassurance { order: 4; }
  .home-hero__visual { order: 5; width: 100%; margin: 8px 0 0; }
  .home-hero__facts { order: 6; }
  .home-hero__trust { order: 7; }
  .home-hero__stage { --floripa-stage-ratio: 1.13; }
  .floripa-fallback__plant, .floripa-fallback__parcel, .floripa-fallback__icon { display: none; }
  .floripa-fallback__laptop { width: 91% !important; left: 0; top: 12%; }
  .floripa-fallback__phone { width: 32% !important; left: 66%; top: 31%; }
  .floripa-fallback__card { left: 3%; top: 56%; width: 19%; font-size: 6px; }
}
@media (max-width: 380px) {
  .home-hero .home-wrap { width: calc(100% - 28px); }
  .home-hero__stage { --floripa-stage-ratio: 1.08; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__stage canvas, .floripa-fallback { transition: none; }
}
