/* O banner acompanha a janela sem ampliar a largura do documento. */
.home-banner.banner { width: 100%; left: 0; margin-left: 0; }
.home-banner.banner .slider,
.home-banner.banner .sliderContent,
.home-banner.banner .sliderContent .item,
.home-banner.banner .sliderContent .item .util-banner { width: 100%; }
.home-banner.banner .sliderContent .item { background-position: center; }
/* Ajustes compartilhados para celular e tablet; desktop preservado. */
@media (max-width: 1035px) {
  body { background-size: auto; }
  body.mobile-menu-open { overflow: hidden; }
  body .util { width: calc(100% - 32px); max-width: 960px; margin-inline: auto; }
  header { height: 72px !important; background: #fff; }
  header .logomarca {
    width: 160px; height: 68px !important; margin: 2px 0 0 12px;
    left: 0; background-image: url('../imagens/logo-santuariosantarita.webp');
    background-size: contain; background-position: left center;
  }
  header nav { display: none; }
  #menu2start, #menu2start.ativo {
    display: block; width: 48px; height: 48px; top: 12px; right: 12px;
    border: 1px solid #e4ddcd; border-radius: 8px;
  }
  #menu2 {
    box-sizing: border-box; top: 72px; bottom: 0; left: 0; width: 100%;
    height: auto !important; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; padding: 12px 16px 32px; z-index: 12000;
  }
  #menu2 ul { margin: 0; padding: 0; }
  #menu2 li, #menu2 li ul li {
    box-sizing: border-box; display: block; width: 100%; padding: 0;
    font-size: 16px; line-height: 1.5; color: #1b3160;
  }
  #menu2 > ul > li { border-bottom: 1px solid #e8e3d9; }
  #menu2 a, #menu2 .mobile-submenu-toggle {
    box-sizing: border-box; display: block; width: 100%; min-height: 48px;
    padding: 12px; color: #1b3160; font: 600 16px/1.5 'Titillium Web', sans-serif;
    text-align: left; background: transparent; white-space: normal;
  }
  #menu2 .mobile-submenu-toggle { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
  #menu2 .mobile-submenu-toggle[aria-expanded='true'] span { transform: rotate(45deg); }
  #menu2 li .some { background: #f7f4ed; border-radius: 8px; margin-bottom: 8px; }
  #menu2 li .some a { font-size: 15px; font-weight: 400; padding-left: 20px; }
  #menu2start:focus-visible, #menu2 a:focus-visible, #menu2 button:focus-visible { outline: 3px solid #9e7a38; outline-offset: 2px; }
  .pagina { padding-top: 88px; }
  body .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-inline: 8px; }
  body .pagination .page-link { min-width: 44px; min-height: 44px; box-sizing: border-box; }

  /* A proporção do banner evita recortar o texto embutido na imagem. */
  .home-banner.banner {
    width: 100%; height: clamp(130px, 32.5vw, 337px); margin: 72px 0 0; left: 0;
  }
  .home-banner.banner .slider,
  .home-banner.banner .sliderContent,
  .home-banner.banner .sliderContent .item,
  .home-banner.banner .sliderContent .item .util-banner {
    width: 100%; height: 100%; padding-top: 0 !important;
    background-size: contain !important; background-position: center !important; background-repeat: no-repeat;
  }
  .home-banner .sliderBullets { top: auto; bottom: 4px; padding: 0; }
  .home-banner .sliderBullets a { margin-inline: 8px; }
  .destaque { padding: 24px 16px; box-sizing: border-box; }
  .destaque ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 800px; margin: auto; }
  .destaque ul a { display: block; min-width: 0; }
  .destaque ul li { display: block; width: 100%; height: auto; aspect-ratio: 1; margin: 0; background-size: contain; }
  .home1 { height: auto; margin: 0 0 24px; background: #faf8f3; padding: 24px 0; }
  .home1 > .util { display: flex; flex-direction: column; gap: 24px; }
  .home1 .horarios { order: -1; float: none; width: 100%; }
  .home1 .horarios .titulo { margin: 0 0 12px; font-size: 19px; }
  .home1 .horarios ul { border-radius: 12px; overflow: hidden; }
  .home1 .horarios ul li { box-sizing: border-box; width: 100%; padding: 10px 12px; font-size: 16px; line-height: 1.5; }
  .home1 .icones { width: 100%; height: auto; }
  .home1 .icones ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; margin: auto; gap: 12px; }
  .home1 .icones ul li.bat, .home1 .icones ul li.mat { width: 100%; height: auto; aspect-ratio: 250 / 331; background-size: contain; display: block; }
  .home-promotion { height: auto !important; aspect-ratio: 872 / 590; margin: 24px 0 !important; background-size: contain !important; }
  .unoticias ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; margin: 0; }
  .unoticias ul li { float: none; display: block; width: 100%; min-width: 0; border-top-width: 6px; border-radius: 8px; overflow: hidden; }
  .unoticias ul li .avatar { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .unoticias ul li .avatar img { display: block; filter: none; }
  .unoticias ul li .not { height: auto; min-height: 90px; padding-bottom: 12px; }
  .unoticias ul li .not .top { font-size: 16px; line-height: 1.4; letter-spacing: 0; }
  .unoticias ul li .not .leia { font-size: 12px; line-height: 1.5; }
  .fotos .util > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
  .fotos .util > ul > a { min-width: 0; width: 100%; }
  .fotos ul li, .fotos ul li .avatar { width: 100%; max-width: none; height: auto; aspect-ratio: 1; }
  .fotos ul li .avatar img { width: 100%; height: 100%; }
  .fotos ul li .mascara1 { width: 100%; height: 100%; box-sizing: border-box; }
  .fotos ul li .mascara1 .evento { width: 100%; box-sizing: border-box; padding: 8px; font-size: 14px; line-height: 1.4; }
  body .instagram-profile-header { flex-wrap: wrap; gap: 12px; margin: 20px 16px; padding: 16px; }
  body .instagram-info-block { min-width: 0; overflow-wrap: anywhere; }
  body > iframe { display: block; max-width: 100%; height: 300px; }
  footer { padding-top: 24px; background: #1b3160; }
  footer .blocos, footer .curta { box-sizing: border-box; width: 100%; margin: 0; float: none; }
  footer .titulo, footer .blocos .titulo, footer .curta .titulo { margin: 0; padding: 12px 0; }
  footer .dados, footer .dados ul, footer .dados ul li { box-sizing: border-box; width: 100%; overflow-wrap: anywhere; }
  footer .dados ul li { font-size: 15px; line-height: 1.6; }
  footer .curta { max-width: 100%; overflow: hidden; }
  footer .fb-like-box, footer .fb-like-box > span, footer .fb-like-box iframe { max-width: 100% !important; }
  footer .final { box-sizing: border-box; width: 100%; padding: 24px 0 84px; background: none; }
  footer .final .direitos { line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
  .whatsApp { width: 48px; height: 48px; background-size: 30px; right: 16px; bottom: 16px; }
}
@media (max-width: 600px) {
  .destaque ul { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; gap: 12px; }
  .unoticias ul { grid-template-columns: minmax(0, 1fr); }
  .unoticias .titulo, .fotos .titulo { font-size: 19px; }
  .fotos .util > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #swiper_one .swiper-slide > div { padding: 24px; }
}
