/* =========================================================
   HOME - ROGAZIONISTI NEL MONDO SVG MAP
========================================================= */

.rog-world-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 94px 0;
  background: #f7f3ea;
  color: #111827;
}

.rog-world-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(92,74,47,.026) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(247,210,122,.13), transparent 30%),
    radial-gradient(circle at 82% 36%, rgba(190,205,197,.24), transparent 32%),
    linear-gradient(180deg, rgba(255,252,246,.98), rgba(247,243,234,.96));
  background-size: 34px 34px, auto, auto, auto;
}

.rog-world-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 35%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(246,242,235,.68));
}

.rog-world-container {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.rog-world-copy {
  max-width: 540px;
}

.rog-world-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(92,74,47,.13);
  background: rgba(255,255,255,.82);
  color: #8a5f24;
  box-shadow: 0 10px 24px rgba(16,24,40,.06);
  font-family: var(--font-sans, "Inter", "Manrope", Arial, sans-serif);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rog-world-copy h2 {
  max-width: 560px;
  margin: 14px 0 14px;
  font-family: var(--font-sans, "Inter", "Manrope", Arial, sans-serif);
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 800;
  color: #172033;
}

.rog-world-copy h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9832f, rgba(201,131,47,0));
}

.rog-world-copy p {
  max-width: 500px;
  margin: 0;
  color: rgba(23,32,51,.66);
  font-size: clamp(.96rem, 1.25vw, 1.08rem);
  line-height: 1.72;
  font-family: var(--font-sans, "Inter", "Manrope", Arial, sans-serif);
  font-weight: 500;
}

.rog-world-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(92,74,47,.18);
  background: #2d261d;
  color: #fff8e8;
  font-family: var(--font-sans, "Inter", "Manrope", Arial, sans-serif);
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(45,38,29,.16);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.rog-world-button:hover {
  transform: translateY(-2px);
  background: #3f3323;
  box-shadow: 0 20px 42px rgba(45,38,29,.20);
}

.rog-world-visual {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
}

.rog-world-map-shell {
  position: relative;
  width: min(620px, 100%);
  height: 620px;
  margin: 0 auto;
  background: transparent;
  overflow: visible;
}

.rog-world-map-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 1;
  width: 58%;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(80,96,88,.14), rgba(80,96,88,.055) 45%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.rog-world-map {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: 50%;
  overflow: visible;
  cursor: grab;
  background: transparent;
}

.rog-world-map.is-dragging {
  cursor: grabbing;
}

.rog-world-map-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(80, 96, 88, .14));
}

.rog-world-map-sphere {
  fill: #eef6f3;
  stroke: rgba(120,145,136,.35);
  stroke-width: 1.2;
}

.rog-world-map-graticule {
  fill: none;
  stroke: rgba(120,145,136,.28);
  stroke-width: .65;
}

.rog-world-map-country {
  fill: #cfded7;
  stroke: rgba(115,138,130,.42);
  stroke-width: .7;
  vector-effect: non-scaling-stroke;
}

.rog-world-map-marker {
  fill: #d96b3b;
  stroke: rgba(255,255,255,.95);
  stroke-width: 1.6;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(80,60,40,.18));
  transition: r .18s ease, fill .18s ease;
}

.rog-world-map-marker:hover,
.rog-world-map-marker:focus,
.rog-world-map-marker.is-active {
  r: 6;
  fill: #c84b31;
  outline: none;
}

.rog-world-map-marker.is-highlighted {
  stroke-width: 2;
  filter:
    drop-shadow(0 4px 8px rgba(80,60,40,.18))
    drop-shadow(0 0 10px rgba(217,107,59,.24));
}

.rog-world-map.is-fallback::after {
  content: "Mappa interattiva non disponibile. Le presenze restano consultabili.";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(207,212,216,.72);
  background:
    radial-gradient(circle at 45% 34%, rgba(255,255,255,.96), rgba(247,247,244,.68) 36%, rgba(239,240,238,.52));
  color: rgba(16,24,40,.62);
  font-weight: 800;
  text-align: center;
  padding: 34px;
}

.rog-world-map-tooltip {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -112%, 0);
  transition: opacity .16s ease, transform .16s ease;
}

.rog-world-map-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -122%, 0);
}

.rog-world-map-tooltip__inner {
  min-width: 178px;
  max-width: 290px;
  border-radius: 16px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.96);
  color: #101828;
  box-shadow: 0 18px 44px rgba(16,24,40,.16);
  padding: 12px 14px;
}

.rog-world-map-tooltip strong,
.rog-world-highlight-card strong {
  display: block;
  font-size: .94rem;
  line-height: 1.2;
}

.rog-world-map-tooltip span,
.rog-world-highlight-card span,
.rog-world-highlight-card p {
  display: block;
  margin: 4px 0 0;
  color: rgba(16,24,40,.66);
  font-size: .82rem;
  line-height: 1.45;
}

.rog-world-highlights {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: 3;
  display: grid;
  gap: 10px;
  width: min(330px, 48%);
  transition: opacity .22s ease, transform .22s ease;
}

.rog-world-highlights.is-changing {
  opacity: .72;
  transform: translateY(4px);
}

.rog-world-highlight-card,
.rog-world-highlight-empty {
  display: block;
  min-height: 86px;
  padding: 13px 15px;
  border-radius: 17px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.92);
  color: #101828;
  box-shadow: 0 18px 44px rgba(16,24,40,.12);
  text-decoration: none;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.rog-world-highlight-card:hover,
.rog-world-highlight-card.is-active {
  color: #101828;
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(16,24,40,.16);
}

.rog-world-highlight-card.is-highlighted {
  border-color: rgba(217,107,59,.22);
}

.rog-world-highlight-card.is-active {
  background: rgba(255,250,240,.98);
  border-color: rgba(217,107,59,.32);
}

.rog-world-highlight-card__link {
  display: inline-flex;
  margin-top: 9px;
  color: #b8472f;
  font-size: .82rem;
  font-weight: 900;
}

.rog-world-highlight-empty {
  min-height: 0;
  color: rgba(16,24,40,.64);
  font-weight: 800;
}

@media (max-width: 980px) {
  .rog-world-section {
    padding: 82px 0;
  }

  .rog-world-container {
    grid-template-columns: 1fr;
  }

  .rog-world-copy {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
  }

  .rog-world-visual {
    min-height: 560px;
  }

  .rog-world-map-shell {
    width: min(560px, 100%);
    height: 560px;
  }

  .rog-world-highlights {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 720px);
    margin: -18px auto 0;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 560px) {
  .rog-world-section {
    padding: 72px 0;
  }

  .rog-world-container {
    width: min(100% - 32px, 1160px);
  }

  .rog-world-copy h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
    line-height: 1.12;
  }

  .rog-world-copy h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .rog-world-copy p {
    font-size: .96rem;
  }

  .rog-world-visual {
    min-height: auto;
  }

  .rog-world-map-shell {
    width: min(380px, 100%);
    height: 380px;
  }

  .rog-world-map-shell::after {
    bottom: 22px;
    width: 62%;
    height: 26px;
  }

  .rog-world-highlights {
    margin-top: 12px;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rog-world-button,
  .rog-world-map-tooltip,
  .rog-world-highlight-card,
  .rog-world-map-marker {
    transition: none !important;
  }
}
