.iw-globe-wrap { position: relative; }

html.iw-modal-open,
body.iw-modal-open {
  overflow: hidden;
  height: 100%;
}

#iw-globe {
  width: 100%;
  height: var(--iw-globe-height, 600px);
  border-radius: 9999px; /* contenitore rotondo */
  overflow: hidden;      /* ritaglia eventuali elementi */
}
#iw-globe canvas{
  background: transparent;
}
/* ===== Modale pagina ===== 
html.iw-modal-open { overflow: hidden; }*/

.iw-modal {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-areas: "stack";
  z-index: 9999;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
}

.iw-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease;
}

.iw-modal__backdrop {
  grid-area: stack;
  background: rgba(0,0,0,0.5);
  pointer-events: auto;
  transition: opacity .28s ease;
}

.iw-modal.is-open .iw-modal__backdrop {
  opacity: 1;
}

.iw-modal__dialog {
  grid-area: stack;
  place-self: center;
  background: #fff;
  width: min(900px, 92vw);
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(12px) scale(.98);
  opacity: .96;
  transition: transform .28s ease, opacity .28s ease;
}

.iw-modal.is-open .iw-modal__dialog {
  transform: none;
  opacity: 1;
}

.iw-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background: transparent;
  border: 0;
  color: #222;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: opacity .2s ease;
}

.iw-modal__content {
  padding: 20px 22px;
  overflow: auto;
}

.iw-modal__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.iw-modal__body {
  font-size: 1rem;
  line-height: 1.6;
}
.iw-modal__body p { margin: 0 0 12px; }
.iw-modal__body img, .iw-modal__body iframe { max-width: 100%; height: auto; }

/* Stati */
.iw-modal__loading,
.iw-modal__error { padding: 20px 22px; }

/* Opzionale: bordo sottile al globo */
#iw-globe::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
#iw-globe canvas { /*cursor: grab;*/ }
#iw-globe canvas:active { /*cursor: grabbing;*/ }
