/* Paraíso da Magia — V4 Encanto
   Apenas apresentação: hero e footer; respeita movimento reduzido.
   Não depende de bibliotecas externas ou de dados da loja. */

/* A palavra é destacada apenas se estiver no título definido nas configurações. */
.public-hero h1 .pdm-v4-magic-word {
  position: relative;
  display: inline-block;
  isolation: isolate;
  white-space: nowrap;
  vertical-align: baseline;
  z-index: 1;
}

.public-hero h1 .pdm-v4-magic-text {
  position: relative;
  z-index: 2;
  color: #f5d8a4;
  background: linear-gradient(116deg, #fae9c5 8%, #eec887 47%, #fff2d1 66%, #e8bf7d 94%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(231, 185, 113, .13));
}

.public-hero h1 .pdm-v4-magic-word::before {
  content: "";
  position: absolute;
  inset: 14% -12% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(236, 200, 137, .19) 0%, rgba(156, 109, 195, .06) 56%, transparent 73%);
  filter: blur(7px);
  pointer-events: none;
}

.pdm-v4-magic-trail {
  position: absolute;
  inset: -55% -22% -36%;
  z-index: 0;
  pointer-events: none;
}

.pdm-v4-magic-trail svg {
  position: absolute;
  top: -4%;
  left: 0;
  width: 100%;
  height: 115%;
  overflow: visible;
  opacity: .82;
}

.pdm-v4-infinity-path {
  fill: none;
  stroke: rgba(244, 208, 149, .61);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-dasharray: 5 13;
  filter: drop-shadow(0 0 2px rgba(248, 220, 162, .55));
}

.pdm-v4-trail-star {
  position: absolute;
  z-index: 1;
  color: #ffdf9e;
  font-style: normal;
  text-shadow: 0 0 9px rgba(255, 218, 145, .68);
  font-size: clamp(11px, 1.1vw, 17px);
  line-height: 1;
}

.pdm-v4-trail-star-1 {
  left: 5%;
  top: 27%;
}

.pdm-v4-trail-star-2 {
  right: 10%;
  top: 2%;
  font-size: .28em;
}

.pdm-v4-trail-star-3 {
  right: 20%;
  bottom: 6%;
  font-size: .22em;
}

.pdm-v4-trail-star-4 {
  left: 24%;
  bottom: 8%;
  font-size: .18em;
}

/* Footer: logótipo totalmente branco, em tamanho generoso e sem recorte. */
.public-footer.pdm-v4-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: clamp(65px, 7vw, 105px) 0 30px;
  background:
    radial-gradient(ellipse at 10% 4%, rgba(133, 73, 180, .18), transparent 46%),
    radial-gradient(ellipse at 92% 73%, rgba(108, 61, 166, .17), transparent 45%),
    radial-gradient(ellipse at 50% 120%, rgba(222, 169, 91, .06), transparent 44%),
    linear-gradient(158deg, #1d112d 0%, #140b21 48%, #0d0918 100%);
  border-top: 1px solid rgba(239, 199, 130, .34);
}

.public-footer.pdm-v4-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(760px, 84vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #efca8a, transparent);
  box-shadow: 0 0 30px rgba(239, 202, 138, .18);
  pointer-events: none;
}

.public-footer.pdm-v4-footer::after {
  content: none;
}

.pdm-v4-footer>.public-container {
  position: relative;
  z-index: 2;
}

.pdm-v4-footer-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pdm-v4-footer-sky::before,
.pdm-v4-footer-sky::after {
  content: "";
  position: absolute;
  inset: -18px;
  opacity: .45;
  pointer-events: none;
  background-repeat: repeat;
}

.pdm-v4-footer-sky::before {
  background-image:
    radial-gradient(circle, rgba(255, 234, 199, .9) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(228, 196, 145, .7) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(235, 208, 255, .65) .8px, transparent 1.5px);
  background-size: 167px 137px, 211px 167px, 263px 223px;
  background-position: 17px 31px, 111px 91px, 48px 131px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 70%, transparent 100%);
}

.pdm-v4-footer-sky::after {
  background-image:
    radial-gradient(circle, rgba(255, 240, 209, .85) 1.2px, transparent 2.2px),
    radial-gradient(circle, rgba(212, 161, 255, .7) .85px, transparent 2px);
  background-size: 307px 233px, 349px 293px;
  background-position: 171px 37px, 37px 182px;
  opacity: .25;
}

.pdm-v4-footer-sparkle {
  position: absolute;
  display: block;
  font-size: 11px;
  color: rgba(243, 211, 157, .76);
  text-shadow: 0 0 8px rgba(243, 211, 157, .55);
  line-height: 1;
  opacity: .53;
}

.pdm-v4-footer-sparkle-1 {
  top: 16%;
  left: 4%
}

.pdm-v4-footer-sparkle-2 {
  top: 10%;
  right: 10%;
  font-size: 8px
}

.pdm-v4-footer-sparkle-3 {
  top: 54%;
  left: 32%;
  font-size: 7px
}

.pdm-v4-footer-sparkle-4 {
  top: 76%;
  right: 6%;
  font-size: 10px
}

.pdm-v4-footer-sparkle-5 {
  bottom: 12%;
  left: 7%;
  font-size: 8px
}

/* Reverte o aspeto de cartão acinzentado da V3: a composição volta a ser ampla. */
.pdm-v4-footer .pdm-footer-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  padding: 22px 0 clamp(48px, 6vw, 78px);
}

.pdm-v4-footer .pdm-footer-grid::before {
  display: none;
}

.pdm-v4-footer .pdm-footer-brand {
  min-width: 0;
}

.pdm-v4-footer .pdm-footer-brand a {
  display: block;
  width: 100%;
  max-width: 260px;
}

.pdm-v4-footer .pdm-footer-logo {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: left center;
  /* Mantém a silhueta do logótipo inteiramente branca. */
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(248, 232, 210, .15));
}

.pdm-v4-footer .pdm-footer-brand-name {
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 0 22px rgba(236, 213, 165, .18);
}

.pdm-v4-footer .pdm-footer-brand p {
  max-width: 390px;
  margin-top: clamp(17px, 2vw, 26px);
  font-size: 14px;
  line-height: 1.85;
  color: #e0d2eb;
}

.pdm-v4-footer .pdm-footer-column h3 {
  font-size: 13px;
  color: #f0d2a0;
  letter-spacing: .07em;
}

.pdm-v4-footer .pdm-footer-column>a,
.pdm-v4-footer .pdm-footer-column>p,
.pdm-v4-footer .pdm-footer-socials a {
  color: #d6c6e1;
  font-size: 13px;
  line-height: 1.75;
}

.pdm-v4-footer .pdm-footer-column a:hover,
.pdm-v4-footer .pdm-footer-socials a:hover {
  color: #f9dda9;
}

.pdm-v4-footer .pdm-footer-bottom {
  border-color: rgba(248, 221, 175, .14);
  padding-top: 31px;
}

.pdm-v4-footer .pdm-footer-bottom::before {
  background: #0f0919;
  color: rgba(239, 206, 154, .75);
}

.pdm-v4-footer .pdm-footer-bottom p {
  color: #b7a8c8;
  font-size: 11px;
}

.pdm-v4-footer .pdm-footer-credit a {
  color: #e8d9ee;
}

@media (max-width: 1000px) {
  .pdm-v4-footer .pdm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 44px;
  }

  .pdm-v4-footer .pdm-footer-brand {
    grid-column: 1 / -1;
  }

  .pdm-v4-footer .pdm-footer-brand a {
    max-width: 420px;
  }
}

@media (max-width: 650px) {
  .public-hero h1 .pdm-v4-magic-trail {
    inset: -45% -10% -26%;
  }

  .pdm-v4-footer .pdm-footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 8px 0 44px;
  }

  .pdm-v4-footer .pdm-footer-brand {
    grid-column: auto;
  }

  .pdm-v4-footer .pdm-footer-brand a {
    max-width: min(100%, 390px);
  }

  .pdm-v4-footer .pdm-footer-logo {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pdm-v4-infinity-path {
    animation: pdmV4InfinityOrbit 9s linear infinite;
  }

  .pdm-v4-trail-star {
    animation: pdmV4MagicTwinkle 5.1s ease-in-out infinite;
  }

  .pdm-v4-trail-star-2 {
    animation-delay: -1.3s;
  }

  .pdm-v4-trail-star-3 {
    animation-delay: -2.9s;
  }

  .pdm-v4-trail-star-4 {
    animation-delay: -3.7s;
  }

  .pdm-v4-footer-sky::before {
    animation: pdmV4SkyGlide 37s ease-in-out infinite alternate;
  }

  .pdm-v4-footer-sky::after {
    animation: pdmV4SkyBreath 10s ease-in-out infinite alternate;
  }

  .pdm-v4-footer-sparkle {
    animation: pdmV4MagicTwinkle 7s ease-in-out infinite;
  }

  .pdm-v4-footer-sparkle-2 {
    animation-delay: -2s;
  }

  .pdm-v4-footer-sparkle-3 {
    animation-delay: -5s;
  }

  .pdm-v4-footer-sparkle-4 {
    animation-delay: -3s;
  }

  .pdm-v4-footer-sparkle-5 {
    animation-delay: -6s;
  }
}

@keyframes pdmV4InfinityOrbit {
  to {
    stroke-dashoffset: -360;
  }
}

@keyframes pdmV4MagicTwinkle {

  0%,
  100% {
    opacity: .3;
    transform: scale(.88);
  }

  42%,
  60% {
    opacity: .9;
    transform: scale(1.1);
  }
}

@keyframes pdmV4SkyGlide {
  from {
    transform: translate3d(-7px, -3px, 0);
    opacity: .32;
  }

  to {
    transform: translate3d(9px, 5px, 0);
    opacity: .57;
  }
}

@keyframes pdmV4SkyBreath {
  from {
    opacity: .15
  }

  to {
    opacity: .31
  }
}

/* PDM_ENCANTO_V4_1_START
   Afinação elegante: logótipo médio + partículas suaves, SEM infinito.
   Apenas CSS. Mantém o logótipo branco da V4 e não altera estrutura/funcionalidades.
*/

/* 1 — Logótipo branco com presença, mas sem dominar o footer. */
.pdm-v4-footer .pdm-footer-brand a {
  width: 100%;
  max-width: 210px;
}

.pdm-v4-footer .pdm-footer-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(248, 232, 210, .13));
}

@media (max-width: 1000px) {
  .pdm-v4-footer .pdm-footer-brand a {
    max-width: 180px;
  }
}

@media (max-width: 650px) {
  .pdm-v4-footer .pdm-footer-brand a {
    max-width: 160px;
  }
}

/* 2 — Fim do desenho do infinito: apenas estrelas finas e brilho discreto. */
.pdm-v4-magic-trail svg,
.pdm-v4-infinity-path {
  display: none;
  animation: none;
}

.public-hero h1 .pdm-v4-magic-word::before {
  inset: 18% -6% -6%;
  background: radial-gradient(ellipse, rgba(236, 200, 137, .115), rgba(156, 109, 195, .035) 56%, transparent 76%);
  filter: blur(10px);
}

.public-hero h1 .pdm-v4-magic-word::after {
  content: "";
  position: absolute;
  inset: -19% -5% -4%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 228, 169, .75) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 230, 181, .58) .75px, transparent 1.5px),
    radial-gradient(circle, rgba(239, 207, 252, .45) .7px, transparent 1.5px);
  background-repeat: no-repeat;
  background-size: 4px 4px, 3px 3px, 3px 3px;
  background-position: 10% 68%, 68% 12%, 94% 76%;
  opacity: .64;
}

.public-hero h1 .pdm-v4-magic-text {
  filter: drop-shadow(0 0 9px rgba(231, 185, 113, .10));
}

.public-hero h1 .pdm-v4-magic-trail {
  inset: -18% -7% -10%;
}

.public-hero h1 .pdm-v4-trail-star {
  color: rgba(255, 226, 174, .83);
  font-size: 11px;
  line-height: 1;
  opacity: .45;
  text-shadow: 0 0 7px rgba(255, 218, 145, .35);
  transform-origin: center;
}

.public-hero h1 .pdm-v4-trail-star-1 {
  left: 1%;
  top: 16%;
  font-size: 10px;
}

.public-hero h1 .pdm-v4-trail-star-2 {
  left: 34%;
  right: auto;
  top: -5%;
  font-size: 9px;
}

.public-hero h1 .pdm-v4-trail-star-3 {
  right: 2%;
  bottom: 11%;
  font-size: 10px;
}

.public-hero h1 .pdm-v4-trail-star-4 {
  left: 65%;
  bottom: -6%;
  font-size: 8px;
}

/* Movimento mínimo: brilho e deslocação de poucos píxeis, sem trilhos desenhados. */
@media (prefers-reduced-motion: no-preference) {
  .public-hero h1 .pdm-v4-trail-star {
    animation: pdmV41Sparkle 6.8s ease-in-out infinite;
  }

  .public-hero h1 .pdm-v4-trail-star-2 {
    animation-delay: -1.8s;
  }

  .public-hero h1 .pdm-v4-trail-star-3 {
    animation-delay: -3.6s;
  }

  .public-hero h1 .pdm-v4-trail-star-4 {
    animation-delay: -5.2s;
  }

  .public-hero h1 .pdm-v4-magic-word::after {
    animation: pdmV41Dust 9s ease-in-out infinite alternate;
  }
}

@keyframes pdmV41Sparkle {

  0%,
  100% {
    opacity: .19;
    transform: translate3d(0, 0, 0) scale(.82);
  }

  45% {
    opacity: .62;
    transform: translate3d(3px, -2px, 0) scale(1.07);
  }

  72% {
    opacity: .30;
    transform: translate3d(5px, 0, 0) scale(.93);
  }
}

@keyframes pdmV41Dust {
  from {
    opacity: .35;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: .73;
    transform: translate3d(3px, -2px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .public-hero h1 .pdm-v4-trail-star,
  .public-hero h1 .pdm-v4-magic-word::after {
    animation: none !important;
  }
}

/* PDM_ENCANTO_V4_1_END */
/* FOOTER CENTRADO NO TELEMÓVEL */
@media (max-width: 1150px) {

  .pdm-v4-footer .pdm-footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  /* Logo e slogan */
  .pdm-v4-footer .pdm-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .pdm-v4-footer .pdm-footer-brand a {
    margin-left: auto;
    margin-right: auto;
  }

  .pdm-v4-footer .pdm-footer-logo {
    object-position: center;
  }

  /* Contactos e links */
  .pdm-v4-footer .pdm-footer-column {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* Redes sociais */
  .pdm-v4-footer .pdm-footer-socials {
    justify-content: center;
  }

  /* Rodapé inferior */
  .pdm-v4-footer .pdm-footer-bottom {
    align-items: center;
    text-align: center;
  }
}