/* V32 — Player live dinamico e Bacheca più pulita */
.wsc-live-card {
  position: relative;
  overflow: hidden;
}
.wsc-live-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.wsc-live-heading h5 { margin: 0; }
.wsc-live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(180,83,9,.10);
  border: 1px solid rgba(180,83,9,.20);
  color: #8f4108;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}
#youtube-live-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  overflow: hidden;
  border: 3px solid #fdf6ee;
  border-radius: 1rem;
  background: linear-gradient(145deg,#101a29,#1c3049);
  box-shadow: 0 12px 30px rgba(13,28,47,.14);
}
#youtube-live-player,
#youtube-live-box iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  background: #000;
}
#youtube-live-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 15%,rgba(180,83,9,.24),transparent 38%),
    linear-gradient(145deg,#111b2a,#1b304a);
}
#live-external-link { max-width: 100%; }

/* Login Bacheca: un solo pannello, niente card annidate */
#login-google-box.bacheca-auth {
  border: 0 !important;
  border-top: 1px solid rgba(180,83,9,.16) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 1.5rem 0 0 !important;
  box-shadow: none !important;
}
.bacheca-auth-intro {
  max-width: 620px;
  margin: 0 auto 1.25rem;
}
.bacheca-auth-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: stretch;
  border: 1px solid rgba(13,28,47,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
}
.bacheca-auth-option {
  min-width: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bacheca-auth-option + .bacheca-auth-option {
  border-left: 1px solid rgba(13,28,47,.10);
}
.bacheca-auth-label {
  font-size: .78rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: .65rem;
}
.bacheca-auth .input-group { flex-wrap: nowrap; }
.bacheca-auth .form-control,
.bacheca-auth .btn { min-height: 42px; }

/* Consensi: un unico riquadro ordinato */
.bacheca-consensi {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(13,28,47,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
}
.bacheca-consensi .form-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  padding: 0;
}
.bacheca-consensi .form-check + .form-check {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(13,28,47,.08);
}
.bacheca-consensi .form-check-input {
  flex: 0 0 auto;
  margin: .2rem 0 0;
  width: 1.1rem;
  height: 1.1rem;
}
.bacheca-consensi .form-check-label {
  font-size: .78rem;
  line-height: 1.45;
  color: #64748b;
}

@media (max-width: 767.98px) {
  #youtube-live-box { min-height: 210px; }
  .bacheca-auth-grid { grid-template-columns: 1fr; }
  .bacheca-auth-option + .bacheca-auth-option {
    border-left: 0;
    border-top: 1px solid rgba(13,28,47,.10);
  }
  .bacheca-auth-option { padding: 1rem; }
  .bacheca-auth .input-group { flex-direction: column; gap: .55rem; }
  .bacheca-auth .input-group > .form-control,
  .bacheca-auth .input-group > .btn {
    width: 100%;
    border-radius: .6rem !important;
  }
}

/* V34 — diretta e GPS subito visibili, senza pulsanti duplicati */
.wsc-services-section {
  overflow: hidden;
}
.wsc-services-intro {
  max-width: 900px;
}
.wsc-services-lead {
  color: #64748b;
  font-size: .98rem;
}
#diretta-live,
#gps-live {
  scroll-margin-top: 92px;
}
.wsc-service-panel {
  border-radius: 20px;
}

@media (max-width: 767.98px) {
  .wsc-services-section {
    margin: .7rem !important;
    padding: 1rem 0 1.25rem !important;
    border-radius: 20px !important;
  }
  .wsc-services-intro {
    padding-left: .75rem;
    padding-right: .75rem;
  }
  .wsc-services-intro .badge {
    margin-bottom: .45rem !important;
    font-size: .62rem;
    letter-spacing: .035em;
  }
  .wsc-services-intro h2 {
    margin-bottom: .3rem !important;
    font-size: 1.38rem;
    line-height: 1.14;
  }
  .wsc-services-lead {
    margin: 0 auto .2rem !important;
    max-width: 330px;
    font-size: .82rem;
    line-height: 1.35;
  }
  .wsc-live-grid {
    margin-top: .85rem !important;
    padding-left: .55rem;
    padding-right: .55rem;
  }
  .wsc-live-grid .row {
    --bs-gutter-y: .8rem;
  }
  .wsc-service-panel {
    padding: .7rem !important;
    border-radius: 16px !important;
  }
  .wsc-live-heading {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: .45rem;
    margin-bottom: .55rem;
  }
  .wsc-live-heading h5,
  #gps-live h5 {
    font-size: .95rem;
    text-align: left !important;
  }
  .wsc-live-badge {
    min-height: 24px;
    padding: .2rem .5rem;
    font-size: .58rem;
    white-space: nowrap;
  }
  #youtube-live-box {
    min-height: 178px;
    border-width: 2px;
    border-radius: 12px;
  }
  #youtube-live-placeholder {
    padding: .8rem !important;
  }
  #youtube-live-placeholder .fs-1 {
    font-size: 1.5rem !important;
    margin-bottom: .4rem !important;
  }
  #youtube-live-placeholder h5 {
    margin-bottom: .25rem;
    font-size: .88rem;
  }
  #youtube-live-placeholder p {
    margin-bottom: .45rem !important;
    font-size: .68rem;
    line-height: 1.3;
  }
  #map-container {
    height: 238px !important;
    min-height: 238px !important;
    border-width: 2px !important;
    border-radius: 12px !important;
  }
  #stato-gps-text {
    margin-bottom: .45rem !important;
    font-size: .7rem;
  }
}

@media (max-width: 380px) {
  .wsc-services-intro h2 { font-size: 1.22rem; }
  #youtube-live-box { min-height: 164px; }
  #map-container {
    height: 220px !important;
    min-height: 220px !important;
  }
}
