.rete-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 80px;
}

.rete-hero {
  max-width: 880px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
}

.rete-hero h1,
.section-heading h2 {
  margin: 0 0 18px;
  color: #fff;
  line-height: 1.08;
}

.rete-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}

.rete-hero p,
.section-heading p,
.rete-info-card p,
.rete-info-card li {
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  font-size: 1.02rem;
}

.rete-map-section {
  margin-top: 30px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 1.9vw, 2rem);
}

.rete-map-section .eyebrow {
  font-size: .68rem;
  letter-spacing: .16em;
}

.rete-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  align-items: stretch;
}

.italy-map-card,
.rete-info-card {
  background: rgba(10,14,18,.76);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
}

.italy-map-card {
  padding: 24px;
  overflow: hidden;
}

.italy-map {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255,106,0,.10), transparent 48%),
    rgba(0,0,0,.22);
}

.italy-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.rete-info-card {
  padding: 28px;
}

.rete-info-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.22rem;
}

.rete-info-card ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.rete-info-card li + li {
  margin-top: 12px;
}

.rete-info-card strong {
  color: #fff;
}

@media (max-width: 980px) {
  .rete-map-layout {
    grid-template-columns: 1fr;
  }

  .italy-map,
  .italy-map img {
    min-height: 540px;
  }
}

@media (max-width: 680px) {
  .rete-page {
    padding: 36px 14px 64px;
  }

  .italy-map-card {
    padding: 14px;
  }

  .italy-map,
  .italy-map img {
    min-height: 520px;
  }

  .region-link {
    min-width: auto;
    padding: 7px 8px;
    font-size: .68rem;
  }

  .region-link.active::after {
    display: none;
  }
}

/* Fix proporzioni titoli pagina Rete */
.rete-hero h1 {
  font-size: clamp(2.15rem, 3.6vw, 4rem);
}

.rete-hero {
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.9rem);
}

.rete-info-card h3 {
  font-size: 1.18rem;
}
/* Premium map refinement */
.italy-map-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    rgba(7,11,15,.86);
}

.italy-map {
  min-height: 640px;
  padding: 28px;
  background:
    radial-gradient(circle at 58% 43%, rgba(255,106,0,.18), transparent 18%),
    radial-gradient(circle at 45% 55%, rgba(255,106,0,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
    rgba(5,9,12,.74);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    inset 0 0 80px rgba(0,0,0,.42);
}

.italy-svg {
  max-width: 500px;
  filter:
    drop-shadow(0 28px 34px rgba(0,0,0,.46))
    drop-shadow(0 0 18px rgba(255,106,0,.08));
}

/* SOS Italia — QR Meshtastic hero card */
.hero-with-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 34px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.mesh-qr-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,138,31,.12), transparent 36%),
    rgba(8,12,15,.78);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.mesh-qr-title {
  margin-bottom: 12px;
  color: #fff;
  font-size: .98rem;
  font-weight: 800;
}

.mesh-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
}

.mesh-qr-box img {
  display: block;
  width: 166px;
  height: 166px;
}

.mesh-qr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, #ff8a1f, #ff6b00);
  border: 1px solid rgba(255,138,31,.38);
}

.mesh-qr-link:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.mesh-qr-note {
  margin: 10px 0 0;
  color: rgba(255,255,255,.62);
  font-size: .84rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .hero-with-qr {
    grid-template-columns: 1fr;
  }

  .mesh-qr-card {
    width: min(100%, 260px);
  }
}

/* SOS Italia — QR hero layout finale: testo sinistra, QR destra */
.rete-hero .hero-with-qr {
  max-width: 1180px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px !important;
  gap: 42px !important;
  align-items: start !important;
  text-align: left !important;
}

.rete-hero .hero-copy {
  max-width: 780px;
  min-width: 0;
  text-align: left !important;
}

.rete-hero .hero-copy h1,
.rete-hero .hero-copy p,
.rete-hero .hero-copy .eyebrow {
  text-align: left !important;
}

.rete-hero .mesh-qr-card {
  justify-self: end;
  width: 230px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .rete-hero .hero-with-qr {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .rete-hero .mesh-qr-card {
    justify-self: start;
    width: min(100%, 260px);
  }
}

/* SOS Italia — QR hero mobile centered */
@media (max-width: 860px) {
  .rete-hero .mesh-qr-card {
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* SOS Italia — QR Rete final definitive layout alignment */
.rete-hero {
  max-width: none !important;
}

.rete-hero .hero-with-qr {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 680px) 240px !important;
  justify-content: space-between !important;
  gap: 48px !important;
  align-items: start !important;
  text-align: left !important;
}

.rete-hero .hero-copy {
  width: 100% !important;
  max-width: 680px !important;
  min-width: 0 !important;
  text-align: left !important;
}

.rete-hero .hero-copy h1,
.rete-hero .hero-copy p,
.rete-hero .hero-copy .eyebrow {
  text-align: left !important;
}

.rete-hero .mesh-qr-card {
  justify-self: end !important;
  width: 230px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 860px) {
  .rete-hero .hero-with-qr {
    grid-template-columns: 1fr !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 26px !important;
  }

  .rete-hero .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
  }

  .rete-hero .mesh-qr-card {
    justify-self: center !important;
    width: min(100%, 260px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
