/* =========================
   1) HERO BASE
========================= */

.mog-ph{
  margin: 0 0 18px 0;
}

.mog-ph__media{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.mog-ph__img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

@media (max-width: 768px){
  .mog-ph__img{ max-height: 280px; }
}

/* Overlay gradiente + contenuti in basso */
.mog-ph__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.08) 65%);
}

.mog-ph__overlay-inner{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mog-ph__title{
  margin: 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(22px, 3vw, 40px);
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* =========================
   2) RATING DENTRO FOTO
========================= */

.mog-ph__rating{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* Stelle oro: gestiamo il colore via currentColor (tema non deve sovrascrivere) */
.mog-star{
  width: 18px;
  height: 18px;
  color: #f5b301 !important;
  flex: 0 0 auto;
}

/* La parte fill della mezza stella NON deve avere stroke (evita “doppie linee” o bordi strani) */
.mog-ph .mog-star__fill{
  stroke: none !important;
}

/* Contorno unico (pulito) sulla mezza stella */
.mog-ph .mog-star__stroke{
  stroke: rgba(0,0,0,0.22) !important;
  stroke-width: 1.15 !important;
  fill: none !important;
  vector-effect: non-scaling-stroke;
}

/* (Opzionale ma utile) evita che il tema metta fill nero sui path */
.mog-ph .mog-star path{
  fill: currentColor;
}

/* Mantieni il gradiente della mezza stella: non toccare il fill della mog-star__fill */
.mog-ph .mog-star--half .mog-star__fill{
  fill: url(#mogHalfGrad) !important;
}

.mog-ph__rating-text{
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
  white-space: nowrap;
}

.mog-ph__google{
  font-size: 12px;
  text-decoration: none;
  opacity: 0.85;
  white-space: nowrap;
  border-bottom: 1px dashed rgba(0,0,0,0.25);
}

.mog-ph__google:hover{
  border-bottom-style: solid;
}

/* =========================
   3) TOGLI TITOLO DEL TEMA
   (solo quando l'hero è attivo)
========================= */

body.mog-ph-enabled.page .entry-title,
body.mog-ph-enabled.page h1.entry-title,
body.mog-ph-enabled.page .page-title,
body.mog-ph-enabled.page .page-title-inner,
body.mog-ph-enabled.page header.entry-header,
body.mog-ph-enabled.page .title-wrapper,
body.mog-ph-enabled.page .page-header{
  display: none !important;
}
