/* Página inicial: anúncios, novidades, fotos e contato. Galeria e visualização ampliada. */
.barra-equipe { background: var(--ms-ink); color: #fff; font-size: .92rem; }
.barra-equipe a { color: var(--ms-yellow); font-weight: 700; margin-left: 1rem; text-decoration: none; }
.barra-equipe a:hover { text-decoration: underline; }

.anuncio-slide, .aviso-card { border: 3px solid var(--ms-ink); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 10px 10px 0 var(--ms-yellow); }
.anuncio-img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: var(--ms-soft); }
.anuncio-corpo { padding: 1.1rem 1.5rem 1.4rem; }
.anuncio-corpo h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ms-blue-dark); margin: .4rem 0 .5rem; }
.anuncio-corpo p { font-size: 1.1rem; max-width: 70ch; }
.anuncio-corpo.sem-imagem { background: var(--ms-blue); color: #fff; padding: 2.5rem 2rem; }
.anuncio-corpo.sem-imagem h2 { color: #fff; }
.chip-categoria { display: inline-block; background: var(--ms-yellow); color: var(--ms-ink); font-weight: 700; font-size: .8rem; padding: .15rem .7rem; border-radius: 999px; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(6, 48, 95, .8); border-radius: 50%; background-size: 55%; width: 2.8rem; height: 2.8rem; }
.carousel-indicators { margin-bottom: 0; bottom: -2.2rem; }
.carousel-indicators [data-bs-target] { background-color: var(--ms-blue); width: 12px; height: 12px; border-radius: 50%; border: 0; }
.carousel.slide.com-indicadores { margin-bottom: 2.6rem; }

.secao-titulo { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ms-blue-dark); margin-bottom: 1.2rem; }
.novidade { height: 100%; border: 3px solid var(--ms-ink); border-radius: 20px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.novidade img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--ms-soft); }
.novidade .corpo { padding: 1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.novidade h3 { font-size: 1.2rem; margin: 0; }
.novidade p { margin: 0; flex: 1; }

.contato-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.contato-lista li { display: flex; gap: .8rem; align-items: flex-start; }
.contato-lista i { font-size: 1.4rem; color: var(--ms-blue); }
.contato-lista a { color: var(--ms-ink); font-weight: 700; }
.faixa-contato { background: var(--ms-soft); border-top: 4px solid var(--ms-yellow); }

/* galeria */
.albuns-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.album-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ms-ink); border: 3px solid var(--ms-ink); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 6px 6px 0 var(--ms-blue); transition: transform .12s; }
.album-card:hover { transform: translate(-3px, -3px); }
.album-capa { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; background: var(--ms-soft); font-size: 2.5rem; color: var(--ms-blue); overflow: hidden; }
.album-capa img { width: 100%; height: 100%; object-fit: cover; }
.album-info { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; }
.album-info small { color: #3C5877; }
.galeria-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.foto-item { border: 0; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; background: var(--ms-soft); }
.foto-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.foto-item:hover img, .foto-item:focus-visible img { transform: scale(1.05); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6, 20, 40, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; color: #fff; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; background: #000; }
.lightbox figcaption { margin-top: .6rem; display: flex; flex-direction: column; gap: .2rem; font-size: 1.05rem; }
.lightbox figcaption small { opacity: .75; }
.lb-fechar, .lb-nav { background: rgba(255, 255, 255, .15); color: #fff; border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.3rem; cursor: pointer; flex: none; }
.lb-fechar { position: absolute; top: 1rem; right: 1rem; }
.lb-nav:hover, .lb-fechar:hover { background: rgba(255, 255, 255, .3); }
@media (max-width: 575px) { .lb-nav { position: absolute; bottom: 1rem; } .lb-ant { left: 1rem; } .lb-prox { right: 1rem; } }

/* gestão */
.mini-anuncio { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ms-ink); background: var(--ms-soft); flex: none; }
.mini-sem { display: inline-flex; align-items: center; justify-content: center; color: var(--ms-blue); font-size: 1.3rem; }
.gerenciar-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.gf-item { border: 2px solid #B9D6FA; border-radius: 12px; padding: .5rem; background: #fff; }
.gf-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: .4rem; }

/* setas do carrossel não cobrem o texto dos anúncios */
.carousel-control-prev, .carousel-control-next { width: 4rem; }
.com-indicadores .anuncio-corpo { padding-inline: 4.5rem; }
@media (max-width: 575px) { .com-indicadores .anuncio-corpo { padding-inline: 3.4rem; } .carousel-control-prev, .carousel-control-next { width: 3rem; } .carousel-control-prev-icon, .carousel-control-next-icon { width: 2.2rem; height: 2.2rem; } }
