/* ===== LA SCRITTURA DEL GIORNO MULTIMEDIALE (08/10/2026), comune alle 7 lingue =====
   #sdg-home nella pagina iniziale (sotto il menu delle lingue), #sdg-pagina nella pagina dedicata.
   Usato solo dalle 7 pagine iniziali e dalle 7 pagine della scrittura del giorno: se si cambia, alzare ?v= in quelle 14 pagine. */

/* --- pagina iniziale --- */
#sdg-home { max-width: 34rem; margin: 0 auto 1.5rem; text-align: center; }
/* scrittura del giorno: cornice dorata */
.sdg-oggi {
  padding: 0.9rem 1rem 1rem; margin-bottom: 1.2rem; border: 2px solid #eece1a; border-radius: 8px;
  background: rgba(238, 206, 26, 0.12); color: #fff; line-height: 1.35;
}
.sdg-oggi-titolo { display: block; color: #eece1a; font-weight: bold; font-size: 1.1em; }
.sdg-oggi-data { display: block; margin-top: 0.2rem; color: #ddd; font-size: 0.9em; }
a.sdg-oggi-rif { display: block; margin: 0.4rem 0 0.7rem; color: #fff; font-size: 1.5rem; font-weight: bold; text-decoration: none; }
a.sdg-oggi-rif:hover { color: #eece1a; }
/* lettura biblica della settimana: cornice azzurra */
.sdg-tesori {
  padding: 0.8rem 1rem 0.9rem; border: 1px solid rgba(142, 197, 255, 0.75); border-radius: 8px;
  background: rgba(0, 0, 0, 0.35); color: #fff; line-height: 1.35; text-align: center;
}
.sdg-tesori-titolo { display: block; color: #8ec5ff; font-weight: bold; }
.sdg-tesori-sett { display: block; margin-top: 0.2rem; color: #ccc; font-size: 0.9em; }
.sdg-tesori-cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.7rem; }
.sdg-tesori a {
  display: inline-block; padding: 0.35rem 1rem; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 1.5rem;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.sdg-tesori a:hover { border-color: #8ec5ff; color: #8ec5ff; }
a.sdg-vai, a.sdg-approfondisci {
  display: inline-block; padding: 0.55rem 1.2rem; border-radius: 1.5rem;
  background: #eece1a; color: #172f55; font-weight: bold; text-decoration: none;
}
a.sdg-vai:hover, a.sdg-approfondisci:hover { background: #fff; }

/* --- pagina dedicata --- */
#sdg-pagina { max-width: 42rem; margin: 0 auto 2rem; padding: 0 1rem; }
.sdg-nav { display: flex; align-items: center; justify-content: space-between; margin: 0.5rem 0 1.2rem; }
.sdg-nav a, .sdg-nav span:empty {
  width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center;
}
.sdg-nav a { border: 1px solid #eece1a; border-radius: 50%; color: #eece1a; text-decoration: none; font-size: 1.1rem; }
.sdg-nav a:hover { background: #eece1a; color: #172f55; }
.sdg-data { font-size: 1.15rem; }
.sdg-scrittura {
  text-align: center; padding: 1rem; margin-bottom: 1.4rem;
  border: 1px solid rgba(238, 206, 26, 0.65); border-radius: 8px; background: rgba(0, 0, 0, 0.35);
}
.sdg-etichetta { display: block; color: #ccc; font-style: italic; margin-bottom: 0.4rem; }
a.sdg-rif {
  display: inline-block; padding: 0.4rem 1.1rem; border-radius: 1.5rem;
  background: #eece1a; color: #172f55; font-size: 1.35rem; font-weight: bold; text-decoration: none;
}
a.sdg-rif:hover { background: #fff; }
.sdg-freccia { display: inline-block; font-size: 0.9em; transition: transform 0.2s; }
a.sdg-rif.sdg-aperto .sdg-freccia { transform: rotate(180deg); }
a.sdg-nota { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: #ccc; text-decoration: none; }
a.sdg-nota:hover { color: #eece1a; }
/* riquadro sotto il tasto giallo: versetto e commento del giorno presi da WOL (/sdg/testo.php, 08/10/2026) */
.sdg-wol { margin: 0.9rem auto 0.2rem; max-width: 40rem; padding: 0.9rem 1.1rem; text-align: left; line-height: 1.55;
  background: #fdfbf3; color: #222; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.sdg-wol p { margin: 0 0 0.7rem; }
.sdg-wol p:last-child { margin-bottom: 0; }
.sdg-tema { font-size: 1.05em; color: #172f55; }
.sdg-commento { font-size: 0.97em; }
/* tasti - e + per la grandezza del testo (100%-400%); oltre il doppio dell'altezza iniziale si scorre */
.sdg-zoom { display: flex; justify-content: center; align-items: center; gap: 0.5rem; width: fit-content; margin: -0.2rem auto 0.8rem;
  padding: 0.3rem 0.6rem; border: 2px solid #1f4f8a; border-radius: 2rem; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.sdg-zoom button { width: 2rem; height: 2rem; padding: 0; border: 1px solid #1f4f8a; border-radius: 50%; background: #fff;
  color: #1f4f8a; font: bold 1.2rem/1 sans-serif; cursor: pointer; }
.sdg-zoom button:hover { background: #1f4f8a; color: #fff; }
.sdg-zoom button:disabled { opacity: 0.35; cursor: default; background: #fff; color: #1f4f8a; }
.sdg-perc { min-width: 3.2em; text-align: center; font-size: 0.85rem; color: #555; }
/* tasto ascolto (08/10/2026): play / stop */
.sdg-sep { width: 1px; height: 1.5rem; background: #1f4f8a; opacity: 0.5; margin: 0 0.15rem; }
.sdg-zoom button.sdg-play { font-size: 0.95rem; }
.sdg-zoom button.sdg-in-ascolto { background: #1f4f8a; color: #fff; }
/* barra di avanzamento dell'ascolto (08/10/2026): pausa/riprendi, posizione trascinabile, tempo */
.sdg-player { display: flex; align-items: center; gap: 0.6rem; max-width: 30rem; margin: -0.3rem auto 0.8rem; padding: 0.3rem 0.8rem 0.3rem 0.4rem;
  border: 2px solid #1f4f8a; border-radius: 2rem; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.sdg-player[hidden] { display: none; }
.sdg-player button { flex: none; width: 2rem; height: 2rem; padding: 0; border: 1px solid #1f4f8a; border-radius: 50%; background: #1f4f8a;
  color: #fff; font: bold 0.85rem/1 sans-serif; cursor: pointer; }
.sdg-pos { flex: 1; min-width: 0; accent-color: #1f4f8a; cursor: pointer; }
.sdg-tempo { flex: none; font-size: 0.8rem; color: #555; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sdg-solo-voce .sdg-pos, .sdg-solo-voce .sdg-tempo { visibility: hidden; }
.sdg-wol-corpo { overflow-y: auto; overflow-wrap: break-word; padding-right: 0.3rem; }
.sdg-wol a { color: #1f4f8a; text-decoration: underline; }
.sdg-attesa { text-align: center; font-style: italic; }
h3.sdg-sezione { color: #eece1a; font-size: 1.05rem; margin: 1.2rem 0 0.6rem; border-bottom: 1px solid rgba(238, 206, 26, 0.4); padding-bottom: 0.2rem; }
.sdg-schede { display: grid; gap: 0.8rem; }
a.sdg-scheda { display: flex; align-items: center; gap: 0.9rem; color: #fff; text-decoration: none; padding: 0.4rem; border-radius: 6px; }
a.sdg-scheda:hover { background: rgba(255, 255, 255, 0.08); }
.sdg-mini {
  position: relative; flex: 0 0 160px; width: 160px; height: 90px; border-radius: 4px; overflow: hidden;
  background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center;
}
.sdg-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sdg-icona { position: relative; font-size: 1.8rem; color: #fff; text-shadow: 0 0 6px #000; }
a.sdg-scheda:hover .sdg-mini { outline: 2px solid #eece1a; }
.sdg-testo { line-height: 1.35; }
.sdg-tipo { display: block; font-size: 0.75rem; letter-spacing: 0.05em; color: #eece1a; margin-bottom: 0.15rem; }
a.sdg-approfondisci { display: block; width: fit-content; margin: 1.6rem auto 1.4rem; }
.sdg-avviso { text-align: center; color: #ccc; }
/* pulsante "Condividi link" sopra e sotto (09/10/2026): copia, WhatsApp, Telegram, Facebook */
.sdg-condividi { text-align: center; margin: 0 0 1.2rem; }
.sdg-condividi:last-child { margin: 1.4rem 0 0; }
/* (09/10/2026, sua richiesta) lungo il doppio e alto una volta e mezza; colori come prima (sfondo trasparente, oro) */
button.sdg-cond-tasto { width: 19rem; max-width: 100%; padding: 0.95rem 1.1rem; border: 2px solid #eece1a; border-radius: 2rem;
  background: transparent; color: #eece1a; font: inherit; font-size: 1.05rem; font-weight: bold; cursor: pointer; }
button.sdg-cond-tasto:hover, button.sdg-cond-tasto[aria-expanded="true"] { background: #eece1a; color: #172f55; }
.sdg-cond-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.7rem; }
.sdg-cond-menu[hidden] { display: none; }
.sdg-cond-menu a, .sdg-cond-menu button { display: inline-block; padding: 0.4rem 0.95rem; border: 0; border-radius: 1.5rem;
  color: #fff; font: inherit; font-size: 0.9rem; font-weight: bold; text-decoration: none; cursor: pointer; }
.sdg-cond-menu a:hover, .sdg-cond-menu button:hover { filter: brightness(1.15); }
button.sdg-cond-copia, button.sdg-cond-altro { background: #fff; color: #172f55; }
a.sdg-cond-wa { background: #1fa855; }
a.sdg-cond-tg { background: #229ed9; }
a.sdg-cond-fb { background: #1877f2; }
.sdg-cond-ok { flex-basis: 100%; color: #8fe08f; font-size: 0.9rem; }
.sdg-cond-ok[hidden] { display: none; }
@media (max-width: 500px) {
  .sdg-mini { flex-basis: 110px; width: 110px; height: 62px; }
  .sdg-icona { font-size: 1.4rem; }
}
