/* Stili che nell'host Blazor stavano nei blocchi <style> delle singole pagine
   (Home, SentencesCarousel, BlogArticle). Raccolti qui perché in React le pagine
   sono componenti server e i fogli di stile vanno nel layout. */

/* ── Home: «Una porta aperta» ── */
.mg-porta { position: relative; padding: 2.5rem 0 .5rem; text-align: center; }
.mg-porta::before { content: ""; display: block; width: 64px; height: 1px; background: #C9A84C; margin: 0 auto 2rem; }
.mg-porta-eyebrow { display: block; letter-spacing: .18em; text-transform: uppercase; color: #C9A84C; font-size: .75rem; font-weight: 600; margin-bottom: 1.75rem; }
.mg-porta p { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.75; color: #1c2b3d; margin: 0 0 .9rem; }
.mg-porta-sign { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; color: #C9A84C; margin-top: 1.5rem; }
.mg-porta-cta { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: center; gap: .85rem; }
.mg-porta-mail { font-size: .85rem; color: #8a8375; text-decoration: none; }
.mg-porta-mail:hover { color: #C9A84C; }
@media (max-width: 575px) { .mg-porta { padding-top: 1.5rem; } .mg-porta p { margin-bottom: 1.1rem; } }

/* ── Home: video delle citazioni ── */
.mg-home-video-wrap { max-width: 760px; margin: 0 auto; }
.mg-home-video { width: 100%; height: auto; display: block; background: #000; border-radius: 14px; box-shadow: 0 14px 44px rgba(8, 29, 53, .18); }
@media (max-width: 767px) { .mg-home-video-wrap { max-width: 380px; } }

/* ── Citazioni: pulsante e riquadro del sottofondo musicale ── */
.mg-music-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1080; /* sopra la scheda della citazione */
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #0D2B4E;
    color: #C9A84C;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    opacity: .45;
    box-shadow: 0 4px 14px rgba(8, 29, 53, .35);
    transition: opacity .2s ease, transform .2s ease;
}

.mg-music-btn:hover { transform: scale(1.06); }

.mg-music-btn.playing { opacity: 1; animation: mgMusicPulse 2.2s ease-in-out infinite; }

@keyframes mgMusicPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(8, 29, 53, .35); }
    50% { box-shadow: 0 4px 22px rgba(201, 168, 76, .55); }
}

.mg-music-hint {
    position: fixed;
    left: 18px;
    bottom: 76px;
    z-index: 1041;
    width: 268px;
    max-width: calc(100vw - 36px);
    padding: 1rem 1.1rem 1.1rem;
    background: #0D2B4E;
    color: #fff;
    border-radius: 12px;
    border-left: 3px solid #C9A84C;
    box-shadow: 0 12px 34px rgba(8, 29, 53, .45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}

.mg-music-hint.show { opacity: 1; transform: translateY(0); }
.mg-music-hint-t { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.05rem; line-height: 1.45; margin: 0 1.2rem .85rem 0; }
.mg-music-hint-s { margin: .7rem 0 0; font-size: .78rem; line-height: 1.4; color: rgba(255, 255, 255, .6); }
.mg-music-hint-yes { border: 1px solid #C9A84C; background: transparent; color: #C9A84C; border-radius: 999px; padding: .4rem 1.1rem; font-size: .85rem; cursor: pointer; transition: background .2s ease, color .2s ease; }
.mg-music-hint-yes:hover { background: #C9A84C; color: #081D35; }
.mg-music-hint-x { position: absolute; top: .5rem; right: .6rem; border: none; background: none; color: rgba(255, 255, 255, .5); font-size: .85rem; line-height: 1; cursor: pointer; padding: .2rem; }
.mg-music-hint-x:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .mg-music-hint { transition: none; } }

/* ── Articolo: carosello dei video della photogallery ── */
.mg-vid-carousel { margin-bottom: 1rem; }
.mg-vc-stage { position: relative; }
.mg-vc-slide { display: none; }
.mg-vc-slide.active { display: block; }
/* min-height di scorta: se non arrivano né poster né metadati, il riquadro del video
   collasserebbe all'altezza di default di 150px e sembrerebbe non esserci. */
.mg-vc-slide video { width: 100%; min-height: 320px; display: block; background: #000; border-radius: 10px; }
.mg-vc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(8,29,53,.6); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.mg-vc-nav:hover { background: rgba(8,29,53,.9); }
.mg-vc-prev { left: 8px; }
.mg-vc-next { right: 8px; }
.mg-vc-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; }
.mg-vc-thumb { position: relative; flex: 0 0 auto; width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.mg-vc-thumb.active { border-color: #C9A84C; }
.mg-vc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-vc-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,.7); pointer-events: none; }

/* Immagini della gallery adattive alla pagina (verticali comprese) + cursore zoom */
.mg-photo-gallery .slide img { width: 100%; height: auto; max-height: 75vh; object-fit: contain; background: #f4f1ea; cursor: zoom-in; }
