/* ══ Welcome overlay — card popup sobre o panorama ══ */

.pm-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pm-welcome-overlay.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
}

.pm-welcome-overlay__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.pm-welcome-overlay {
  scrollbar-width: none;
}

.pm-welcome-overlay ::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.pm-welcome-overlay ::-webkit-scrollbar-thumb {
  display: none;
}

.pm-welcome-card {
  position: relative;
  z-index: 2;
  width: 85vw;
  height: 85vh;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
  overflow: hidden;
  border-radius: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.16),
    0 32px 80px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  --pm-welcome-bg-image: url("/PNG/Paulo%20Afonso%20Igreja.png");
}

.pm-welcome-overlay.is-open .pm-welcome-card {
  transform: translateY(0) scale(1);
}

.pm-welcome-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.04) brightness(1.03);
  transform: scale(1.03);
  opacity: 0;
  transition: opacity 1.1s ease;
}

.pm-welcome-card__bg--slide.is-active {
  opacity: 1;
}

.pm-welcome-card__bg--slide[data-welcome-bg="0"] {
  background-image: url("/PNG/Paulo%20Afonso%20Igreja.png");
}

.pm-welcome-card__bg--slide[data-welcome-bg="1"] {
  background-image: url("/PNG/Belvedere.png");
}

.pm-welcome-card__bg--slide[data-welcome-bg="2"] {
  background-image: url("/PNG/Cultura.png");
}

.pm-welcome-card__bg--slide[data-welcome-bg="3"] {
  background-image: url("/PNG/PauloAfonso.png");
}

.pm-welcome-card__bg--slide[data-welcome-bg="4"] {
  background-image: url("/PNG/Territorio.png");
}

/* Blur suave na metade esquerda — cópia da imagem (funciona sem backdrop-filter) */
.pm-welcome-card__left-blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.pm-welcome-card__left-blur::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: var(--pm-welcome-bg-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  filter: blur(22px) saturate(0.9) brightness(1.18);
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 32%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.18) 44%,
    transparent 48%);
  mask-image: linear-gradient(90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 32%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.18) 44%,
    transparent 48%);
}

.pm-welcome-card__left-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 28%,
    rgba(255, 255, 255, 0.55) 35%,
    rgba(255, 255, 255, 0.2) 39%,
    transparent 43%);
  pointer-events: none;
}

.pm-welcome-card__blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.pm-welcome-blur-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pm-welcome-blur-layer--tint {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.4) 26%,
    rgba(255, 255, 255, 0.12) 35%,
    transparent 42%);
}

.pm-welcome-card__scrim {
  display: none;
}

.pm-welcome-card__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pm-welcome-card__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 32%);
  grid-template-rows: 1fr;
  gap: 20px;
  height: 100%;
  padding: 24px 28px 28px;
  box-sizing: border-box;
}

.pm-welcome-main {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px 20px 0 20px;
  min-height: 0;
  overflow: hidden;
}

.pm-welcome-hero {
  text-align: left;
  width: 100%;
  max-width: min(440px, 48vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex: 0 0 auto;
}

.pm-welcome-hero__logo {
  display: block;
  width: min(280px, 58vw);
  height: auto;
  margin: 0 0 20px -48px;
  object-fit: contain;
  object-position: left center;
}

.pm-welcome-hero__title {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
  text-shadow: none;
}

.pm-welcome-hero__name {
  color: #2563eb;
}

.pm-welcome-hero__sub {
  margin: 14px 0 0;
  max-width: 100%;
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.55;
  color: #4b5563;
  text-shadow: none;
}

.pm-welcome-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  font-size: 12px;
  font-weight: 600;
}

.pm-welcome-hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: none;
}

.pm-welcome-apps-panel {
  flex: 0 0 auto;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-welcome-apps-panel__title {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.pm-welcome-apps-panel .pm-welcome-apps__grid {
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
}

.pm-welcome-apps-panel .pm-welcome-apps__item {
  flex: 1 1 0;
  min-width: 0;
}

.pm-welcome-apps-panel .pm-welcome-apps__tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.pm-welcome-apps-panel .pm-welcome-apps__icon svg {
  width: 22px;
  height: 22px;
}

.pm-welcome-apps-panel .pm-welcome-apps__label {
  font-size: 10px;
  line-height: 1.2;
  max-width: 72px;
}

/* legado — apps removidos da coluna da igreja */
.pm-welcome-apps {
  display: none;
}

.pm-welcome-apps__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(18px, 3vw, 32px);
  width: 100%;
}

.pm-welcome-apps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.pm-welcome-apps__tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 24px rgba(15, 23, 42, 0.12);
}

.pm-welcome-apps__tile::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: var(--pm-frost-w, 100%);
  height: var(--pm-frost-h, 100%);
  left: var(--pm-frost-x, 0);
  top: var(--pm-frost-y, 0);
  background-image: var(--pm-welcome-bg-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(32px) saturate(1.15) brightness(1.03);
  transform: scale(1.06);
  transform-origin: center center;
  pointer-events: none;
}

.pm-welcome-apps__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.pm-welcome-apps__icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.2s ease;
}

.pm-welcome-apps__icon svg {
  width: 26px;
  height: 26px;
}

.pm-welcome-apps__label {
  display: block;
  max-width: 96px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.45);
}

.pm-welcome-rail .pm-welcome-panel,
.pm-welcome-side .pm-welcome-panel {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 36px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  isolation: isolate;
}

.pm-welcome-rail .pm-welcome-panel::before,
.pm-welcome-side .pm-welcome-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: var(--pm-frost-w, 100%);
  height: var(--pm-frost-h, 100%);
  left: var(--pm-frost-x, 0);
  top: var(--pm-frost-y, 0);
  background-image: var(--pm-welcome-bg-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(42px) saturate(1.18) brightness(1.03);
  transform: scale(1.06);
  transform-origin: center center;
  pointer-events: none;
}

.pm-welcome-rail .pm-welcome-panel::after,
.pm-welcome-side .pm-welcome-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.pm-welcome-rail .pm-welcome-panel > *,
.pm-welcome-side .pm-welcome-panel > * {
  position: relative;
  z-index: 2;
}

.pm-welcome-rail {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding-top: 52px;
  padding-right: 0;
  align-items: stretch;
  justify-content: flex-end;
  scrollbar-width: none;
}

.pm-welcome-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pm-welcome-panel {
  border-radius: 18px;
}

.pm-welcome-learn {
  flex: 0 0 auto;
  min-height: 0;
  max-height: min(42vh, 360px);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
}

.pm-welcome-learn__accent {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.pm-welcome-learn__title {
  margin: 0 0 12px;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.35);
  flex: 0 0 auto;
}

.pm-welcome-learn__video {
  position: relative;
  flex: 1 1 auto;
  min-height: 168px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 8px 24px rgba(15, 23, 42, 0.1);
}

.pm-welcome-learn__video::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: var(--pm-frost-w, 100%);
  height: var(--pm-frost-h, 100%);
  left: var(--pm-frost-x, 0);
  top: var(--pm-frost-y, 0);
  background-image: var(--pm-welcome-bg-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(42px) saturate(1.18) brightness(1.03);
  transform: scale(1.06);
  transform-origin: center center;
  pointer-events: none;
}

.pm-welcome-learn__video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.pm-welcome-learn__video-el {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 168px;
  display: block;
  object-fit: cover;
  background: transparent;
}

.pm-welcome-learn__video-el::-webkit-media-controls-panel {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.pm-welcome-learn__play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: opacity 0.22s ease, background 0.22s ease;
}

.pm-welcome-learn__play:hover {
  background: rgba(15, 23, 42, 0.18);
}

.pm-welcome-learn__play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  color: #ffffff;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pm-welcome-learn__play-icon svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.pm-welcome-learn__play:hover .pm-welcome-learn__play-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.pm-welcome-learn__video.is-playing .pm-welcome-learn__play,
.pm-welcome-learn__video.is-playing .pm-welcome-learn__video-hint {
  opacity: 0;
  pointer-events: none;
}

.pm-welcome-learn__video-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.pm-welcome-learn__video.is-ready .pm-welcome-learn__video-hint {
  display: none;
}

.pm-welcome-projects {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 200px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pm-welcome-projects__title {
  margin: 0 0 12px;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.pm-welcome-projects__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
  scrollbar-width: none;
}

.pm-welcome-projects__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pm-welcome-projects__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pm-welcome-projects__item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.pm-welcome-projects__item:active {
  transform: translateX(1px);
}

.pm-welcome-projects__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pm-welcome-projects__name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
}

.pm-welcome-projects__category {
  font-size: 11px;
  color: #93c5fd;
}

.pm-welcome-projects__status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.pm-welcome-projects__empty {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.pm-welcome-main .pm-welcome-learn {
  flex: 0 1 auto;
  min-height: 0;
  max-height: none;
  width: 100%;
  max-width: min(440px, 48vw);
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.pm-welcome-main .pm-welcome-learn::before,
.pm-welcome-main .pm-welcome-learn::after {
  display: none;
}

.pm-welcome-main .pm-welcome-learn__accent {
  display: none;
}

.pm-welcome-main .pm-welcome-learn__title {
  margin: 0 0 10px;
  font-size: clamp(14px, 1.45vw, 16px);
  font-weight: 600;
  line-height: 1.35;
  color: #6b7280;
  text-shadow: none;
  flex-shrink: 0;
}

.pm-welcome-main .pm-welcome-learn__video {
  flex: 0 1 auto;
  min-height: 140px;
  max-height: min(34vh, 280px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.pm-welcome-side {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 0;
  align-self: end;
  width: 100%;
}

.pm-welcome-side__pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.pm-welcome-side__stack {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  min-width: 0;
}

.pm-welcome-side__widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.pm-welcome-side .pm-welcome-side__pairs .pm-welcome-guided-tutorial,
.pm-welcome-side .pm-welcome-side__pairs .pm-welcome-geoparque,
.pm-welcome-side .pm-welcome-geoparque,
.pm-welcome-side .pm-welcome-updates {
  min-width: 0;
  width: 100%;
  min-height: 0;
}

.pm-welcome-side .pm-welcome-weather,
.pm-welcome-side .pm-welcome-calendar {
  min-width: 0;
  flex: 0 0 auto;
  height: auto;
}

.pm-welcome-updates {
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: space-between;
}

.pm-welcome-updates__head {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.pm-welcome-updates__text {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.pm-welcome-updates__list {
  margin: 0;
  padding: 0 0 0 14px;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
  font-size: 9px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.pm-welcome-updates__list li {
  margin: 0;
}

.pm-welcome-updates__badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.45);
  color: #bbf7d0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pm-welcome-geoparque {
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  min-height: 100%;
  justify-content: flex-start;
}

.pm-welcome-geoparque__logo {
  display: block;
  width: 100%;
  align-self: stretch;
  flex: 1 1 auto;
  min-height: 96px;
  max-height: 156px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.pm-welcome-geoparque__head {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.pm-welcome-geoparque__teaser {
  margin: 0;
  flex: 1 1 auto;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.pm-welcome-geoparque__cta {
  align-self: stretch;
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.42) !important;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: none !important;
}

.pm-welcome-guided-tutorial {
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  justify-content: flex-start;
}

.pm-welcome-side__pairs .pm-welcome-guided-tutorial,
.pm-welcome-side__pairs .pm-welcome-geoparque {
  min-height: 188px;
  height: 100%;
}

.pm-welcome-side__pairs .pm-welcome-guided-tutorial__cta,
.pm-welcome-side__pairs .pm-welcome-geoparque__cta {
  margin-top: auto;
}

.pm-welcome-guided-tutorial {
  align-items: center;
  text-align: center;
}

.pm-welcome-guided-tutorial__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.5);
  background: rgba(22, 101, 52, 0.32);
  color: #ffffff;
  margin: 0 auto 2px;
  flex: 0 0 auto;
}

.pm-welcome-guided-tutorial__icon svg {
  width: 20px;
  height: 20px;
}

.pm-welcome-guided-tutorial__head {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.pm-welcome-guided-tutorial__teaser {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.pm-welcome-guided-tutorial__list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.pm-welcome-guided-tutorial__list li {
  position: relative;
  padding-left: 14px;
  font-size: 9.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.pm-welcome-guided-tutorial__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.9);
  transform: translateY(-50%);
}

.pm-welcome-guided-tutorial__cta {
  align-self: stretch;
  margin-top: 2px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.55);
  background: rgba(22, 101, 52, 0.48) !important;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: none !important;
}

.pm-welcome-calendar {
  padding: 8px 10px 10px;
  flex: 0 0 auto;
}

.pm-welcome-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.pm-welcome-calendar__title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.pm-welcome-calendar__nav {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.2) !important;
  background-color: rgba(37, 99, 235, 0.2) !important;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.pm-welcome-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 3px;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
}

.pm-welcome-calendar__weekdays span {
  color: #60a5fa;
}

.pm-welcome-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.pm-welcome-overlay .pm-welcome-calendar__day,
.pm-welcome-overlay .pm-welcome-calendar__day:hover,
.pm-welcome-overlay .pm-welcome-calendar__day:focus,
.pm-welcome-overlay .pm-welcome-calendar__day:focus-visible {
  aspect-ratio: 1;
  min-height: 18px;
  border: none !important;
  border-radius: 6px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.92);
  font-size: 9px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pm-welcome-calendar__day--empty {
  background: transparent !important;
}

.pm-welcome-overlay .pm-welcome-calendar__day.is-today {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35) !important;
}

.pm-welcome-weather {
  padding: 18px 20px 16px;
  flex: 0 0 auto;
}

.pm-welcome-weather__head {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.pm-welcome-weather__main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pm-welcome-weather__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}

.pm-welcome-weather__icon svg {
  width: 42px;
  height: 42px;
}

.pm-welcome-weather__temp {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.pm-welcome-weather__status {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.pm-welcome-weather__meta {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

body.pm-welcome-open {
  overflow: hidden;
}

/* backdrop-filter não desfoca iframes/canvas do mapa — blur direto no panorama */
body.pm-welcome-open .pm-bridge-bg,
body.pm-welcome-open main.main,
body.pm-welcome-open #sidebar {
  filter: blur(14px) saturate(1.08) brightness(1.01);
}

.pm-bridge-bg,
main.main,
#sidebar {
  transition: filter 0.28s ease;
}

@media (max-width: 1024px) {
  .pm-welcome-card__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow-y: auto;
  }

  .pm-welcome-main {
    grid-column: 1;
    grid-row: auto;
    padding-top: 24px;
    order: 1;
  }

  .pm-welcome-side {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    align-self: stretch;
    gap: 12px;
  }

  .pm-welcome-side__pairs,
  .pm-welcome-side__stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .pm-welcome-side__widgets {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .pm-welcome-card {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }

  .pm-welcome-card__layout {
    padding: 18px 16px 20px;
  }

  .pm-welcome-side__pairs,
  .pm-welcome-side__stack {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .pm-welcome-side__widgets {
    grid-template-columns: 1fr;
  }
}

/* Overrides globais — styles.css força h2/h3 azul e botões brancos */
.pm-welcome-overlay h2,
.pm-welcome-overlay h3,
.pm-welcome-overlay h4,
.pm-welcome-overlay .pm-welcome-apps__label,
.pm-welcome-overlay .pm-welcome-weather__temp,
.pm-welcome-overlay .pm-welcome-weather__status,
.pm-welcome-overlay #pmWelcomeWeatherTemp,
.pm-welcome-overlay #pmWelcomeWeatherStatus,
.pm-welcome-overlay .pm-welcome-projects__empty {
  color: #ffffff !important;
}

.pm-welcome-overlay h1.pm-welcome-hero__title,
.pm-welcome-overlay #pmWelcomeTitle {
  color: #111827 !important;
  text-shadow: none !important;
}

.pm-welcome-overlay h1.pm-welcome-hero__title .pm-welcome-hero__name,
.pm-welcome-overlay h1.pm-welcome-hero__title #pmWelcomeName,
.pm-welcome-overlay #pmWelcomeName {
  color: #2563eb !important;
  text-shadow: none !important;
}

.pm-welcome-overlay .pm-welcome-main .pm-welcome-learn__title {
  color: #6b7280 !important;
  text-shadow: none !important;
}

.pm-welcome-overlay p.pm-welcome-hero__sub {
  color: #4b5563 !important;
  text-shadow: none !important;
}

.pm-welcome-overlay .pm-welcome-weather__head,
.pm-welcome-overlay .pm-welcome-apps-panel__title,
.pm-welcome-overlay .pm-welcome-updates__head,
.pm-welcome-overlay .pm-welcome-guided-tutorial__head,
.pm-welcome-overlay .pm-welcome-geoparque__head {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35) !important;
}

.pm-welcome-overlay .pm-welcome-projects__name {
  color: rgba(255, 255, 255, 0.72) !important;
}

.pm-welcome-overlay .pm-welcome-weather__meta,
.pm-welcome-overlay #pmWelcomeWeatherMeta {
  color: rgba(255, 255, 255, 0.68) !important;
}

.pm-welcome-overlay .pm-welcome-weather__icon,
.pm-welcome-overlay .pm-welcome-weather__icon svg {
  color: #f59e0b !important;
  stroke: #f59e0b !important;
}

.pm-welcome-overlay .pm-welcome-projects__category {
  color: #93c5fd !important;
}

.pm-welcome-overlay .pm-welcome-calendar__day,
.pm-welcome-overlay .pm-welcome-calendar__day:hover,
.pm-welcome-overlay .pm-welcome-calendar__day:focus,
.pm-welcome-overlay .pm-welcome-calendar__day:focus-visible {
  color: #ffffff !important;
}

.pm-welcome-overlay .pm-welcome-apps__item,
.pm-welcome-overlay .pm-welcome-apps__item:hover,
.pm-welcome-overlay .pm-welcome-apps__item:focus,
.pm-welcome-overlay .pm-welcome-apps__item:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.pm-welcome-overlay .pm-welcome-apps__label {
  color: rgba(255, 255, 255, 0.92) !important;
}

.pm-welcome-overlay .pm-welcome-apps__icon,
.pm-welcome-overlay .pm-welcome-apps__icon svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.pm-welcome-overlay .pm-welcome-apps__item:hover .pm-welcome-apps__icon,
.pm-welcome-overlay .pm-welcome-apps__item:focus-visible .pm-welcome-apps__icon,
.pm-welcome-overlay .pm-welcome-apps__item:hover .pm-welcome-apps__icon svg,
.pm-welcome-overlay .pm-welcome-apps__item:focus-visible .pm-welcome-apps__icon svg {
  color: #2563eb !important;
  stroke: #2563eb !important;
}

.pm-welcome-overlay .pm-welcome-rail .pm-welcome-panel,
.pm-welcome-overlay .pm-welcome-side .pm-welcome-panel {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.pm-welcome-overlay .pm-welcome-learn__play,
.pm-welcome-overlay .pm-welcome-learn__play:hover,
.pm-welcome-overlay .pm-welcome-learn__play:focus,
.pm-welcome-overlay .pm-welcome-learn__play:focus-visible {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: rgba(15, 23, 42, 0.1) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pm-welcome-overlay .pm-welcome-learn__play:hover {
  background: rgba(15, 23, 42, 0.18) !important;
}

.pm-welcome-overlay .pm-welcome-learn__play-icon {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.48) !important;
  color: #ffffff !important;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}

.pm-welcome-overlay .pm-welcome-learn__play-icon svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Card Geoparque — popup informativo */
.pm-geoparque-info-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.pm-geoparque-info-modal.is-open {
  display: flex;
}

.pm-geoparque-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pm-geoparque-info-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.pm-geoparque-info-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pm-geoparque-info-modal__title {
  margin: 0;
  padding: 22px 56px 4px 24px;
  font-size: 24px;
  font-weight: 800;
  color: #1e3a8a !important;
  flex: 0 0 auto;
}

.pm-geoparque-info-modal__subtitle {
  margin: 0;
  padding: 0 24px 14px;
  font-size: 13px;
  color: #64748b !important;
  flex: 0 0 auto;
}

.pm-geoparque-info-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: #475569 !important;
}

.pm-geoparque-info-modal__tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 0 0 auto;
}

.pm-geoparque-info-modal__tabs::-webkit-scrollbar {
  display: none;
}

.pm-geoparque-info-modal__tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  background: rgba(241, 245, 249, 0.9) !important;
  color: #475569 !important;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pm-geoparque-info-modal__tab.is-active {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  border-color: rgba(37, 99, 235, 0.45) !important;
  color: #ffffff !important;
}

.pm-geoparque-info-modal__panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 16px 8px;
}

.pm-geoparque-info-modal__panel {
  display: none;
  animation: pmGeoparqueTabIn 0.28s ease;
}

.pm-geoparque-info-modal__panel.is-active {
  display: block;
}

@keyframes pmGeoparqueTabIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pm-geoparque-info-modal__hero {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 7;
  background: #e2e8f0;
}

.pm-geoparque-info-modal__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-geoparque-info-modal__panel-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #1e3a8a !important;
}

.pm-geoparque-info-modal__panel-text p {
  margin: 0 0 12px;
}

.pm-geoparque-info-modal__bullets {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #475569 !important;
}

.pm-geoparque-info-modal__bullets li {
  margin-bottom: 6px;
}

.pm-geoparque-info-modal__cta {
  flex: 0 0 auto;
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.pm-geoparque-info-open {
  overflow: hidden;
}

/* Hover suave nos cards da linha inferior */
.pm-welcome-side .pm-welcome-guided-tutorial,
.pm-welcome-side .pm-welcome-geoparque,
.pm-welcome-side .pm-welcome-weather,
.pm-welcome-side .pm-welcome-calendar {
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
  transform-origin: center center;
  will-change: transform;
}

.pm-welcome-side .pm-welcome-guided-tutorial:hover,
.pm-welcome-side .pm-welcome-geoparque:hover,
.pm-welcome-side .pm-welcome-weather:hover,
.pm-welcome-side .pm-welcome-calendar:hover {
  transform: scale(1.035);
  z-index: 3;
}

/* Sem hover nos apps e botão fechar */
.pm-welcome-overlay .pm-welcome-apps__item:hover,
.pm-welcome-overlay .pm-welcome-apps__item:focus-visible,
.pm-welcome-overlay .pm-welcome-card__close:hover,
.pm-welcome-overlay .pm-welcome-learn__play:hover,
.pm-welcome-overlay .pm-welcome-apps__item:hover .pm-welcome-apps__icon,
.pm-welcome-overlay .pm-welcome-apps__item:hover .pm-welcome-apps__icon svg {
  transform: none !important;
  background: inherit !important;
  color: inherit !important;
  stroke: inherit !important;
  box-shadow: inherit !important;
  border-color: inherit !important;
}

/* Monitores menores — reduzir escala geral para caber na tela */
@media (max-height: 900px), (max-width: 1280px) {
  .pm-welcome-card__layout {
    padding: 18px 20px 20px;
    gap: 14px;
  }

  .pm-welcome-main {
    padding-top: clamp(24px, 8vh, 72px);
  }

  .pm-welcome-hero__title {
    font-size: clamp(28px, 4vw, 40px) !important;
  }

  .pm-welcome-apps__tile {
    width: 54px;
    height: 54px;
  }

  .pm-welcome-apps__grid {
    gap: 14px;
  }

  .pm-welcome-weather {
    padding: 18px 20px 16px;
  }

  .pm-welcome-geoparque {
    padding: 12px;
  }

  .pm-welcome-calendar {
    padding: 6px 8px 8px;
  }
}

@media (max-height: 760px) {
  .pm-welcome-card {
    width: 92vw;
    height: 92vh;
  }

  .pm-welcome-hero__sub {
    font-size: 13px !important;
  }

  .pm-welcome-side {
    gap: 8px;
  }

  .pm-welcome-geoparque__head,
  .pm-welcome-weather__head {
    font-size: 12px;
  }

  .pm-welcome-geoparque__logo {
    min-height: 84px;
    max-height: 128px;
  }

  .pm-welcome-weather__temp {
    font-size: 24px !important;
  }
}

/* Indicadores do fundo da boas-vindas */
.pm-welcome-page-dots {
  display: none;
  pointer-events: none;
}

.pm-welcome-overlay.is-open .pm-welcome-page-dots {
  display: flex;
  pointer-events: auto;
}

.pm-welcome-page-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 6;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: auto;
}

.pm-welcome-page-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    width 0.3s ease,
    height 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.pm-welcome-page-dot.is-active {
  width: 12px;
  height: 12px;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

.pm-welcome-page-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 720px) {
  .pm-welcome-card {
    width: calc(100vw - 12px);
    height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
  }
}
