* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #111111;
  --secondary: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #1f2937;
  --light: #f9fafb;
  --border: #e5e7eb;
  --text: #374151;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============= NAVBAR ============= */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, #202738 100%);
  color: white;
  padding: 10px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 5px;
}

/* ============= BANNER ============= */
.banner {
  position: relative;
  color: white;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  padding: 60px 20px;
  border-radius: 0;
}

.banner-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.banner-search {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.banner-search input,
.banner-search select {
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  flex: 1;
  min-width: 150px;
}

.banner-search button {
  padding: 12px 30px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  white-space: nowrap;
}

.banner-search button:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ============= CORRETOR INFO ============= */
.corretor-info {
  background: var(--light);
  padding: 60px 20px;
}

.corretor-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.corretor-foto img {
  width: 100%;
  border-radius: 10px;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.corretor-dados h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 10px;
}

.creci {
  color: var(--primary);
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 20px;
}

.descricao {
  font-size: 18px;
  font-style: italic;
  color: #666;
  margin-bottom: 30px;
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
}

.contatos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.btn-contato {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  text-align: center;
  border: 2px solid;
}

.btn-contato.whatsapp {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.btn-contato.whatsapp:hover {
  background: white;
  color: #25d366;
}

.btn-contato.tel {
  background: #0084ff;
  color: white;
  border-color: #0084ff;
}

.btn-contato.tel:hover {
  background: white;
  color: #0084ff;
}

.btn-contato.email {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-contato.email:hover {
  background: white;
  color: var(--primary);
}

.horario {
  background: #f0f9ff;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}

.horario p {
  margin-bottom: 10px;
}

.redes-sociais {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.rede-icon {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.rede-icon:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.rede-icon__svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.rede-icon.youtube {
  background: #ff0000;
  color: #fff;
}

.rede-icon.youtube.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

.rede-icon.youtube.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.rede-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.rede-icon.facebook {
  background: #1877f2;
  color: white;
}

.rede-icon.whatsapp {
  background: white;
  color: #25d366;
}

.rede-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============= FILTROS ============= */
.filtros-section {
  background: white;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.filtros-section h2 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--dark);
}

.filtros {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.filtros input {
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  min-width: 200px;
}

/* ============= IMÓVEIS ============= */
.imoveis-section {
  padding: 60px 100px;
  background: var(--light);
}

.imoveis-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--dark);
}

.imoveis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.imovel-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  cursor: pointer;
}

.imovel-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.imovel-imagem {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.badge-destaque {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.badge-tipo {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.imovel-info {
  padding: 20px;
}

.imovel-titulo {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 10px;
}

.imovel-endereco {
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
}

.imovel-preco {
  font-size: 24px;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 15px;
}

.imovel-operacao {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 15px;
}

.imovel-caracteristicas {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.imovel-caracteristica {
  display: flex;
  align-items: center;
  gap: 5px;
}

.imovel-descricao {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.imovel-botoes {
  display: flex;
  gap: 10px;
}

.btn-info {
  flex: 1;
  padding: 10px 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn-info:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
}

.btn-contatar {
  flex: 1;
  padding: 10px 15px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn-contatar:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ============= SOBRE ============= */
.sobre-section {
  padding: 60px 20px;
  background: white;
}

.sobre-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--dark);
}

.beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.beneficio {
  text-align: center;
  padding: 30px;
  background: var(--light);
  border-radius: 10px;
  border-top: 4px solid var(--primary);
  transition: 0.3s;
}

.beneficio:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.beneficio h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 15px;
}

/* ============= CONTATO ============= */
.contato-section {
  padding: 60px 20px;
  background: var(--light);
}

.contato-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--dark);
}

.form-contato {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-contato input,
.form-contato textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
}

.form-contato input:focus,
.form-contato textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

#msgContato {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}

/* ============= MODAL ============= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-bottom: 20px;
  color: var(--dark);
  text-align: center;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: 0.3s;
}

.close:hover {
  color: var(--danger);
}

.modal-content form input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

/* ============= MODAL DE IMAGEM ============= */
.modal-imagem {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-imagem.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal-imagem img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.close-imagem {
  position: absolute;
  right: 30px;
  top: 20px;
  font-size: 36px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.close-imagem:hover {
  color: var(--secondary);
  transform: scale(1.2);
}

.info-imagem {
  color: white;
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

/* ============= GALERIA DE IMAGENS ============= */
.galeria-imagens {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}

.galeria-titulo {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-weight: bold;
}

.imagens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.imagem-thumb {
  position: relative;
  width: 100%;
  height: 120px;
  background: var(--light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.imagem-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.imagem-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imagem-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: 0.3s;
  font-size: 12px;
}

.imagem-thumb:hover .imagem-overlay {
  opacity: 1;
}

/* ============= FOOTER ============= */
.footer {
  background: var(--dark);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer p {
  margin: 5px 0;
}

/* ============= DETALHES ============= */
.detalhes-section {
  padding: 40px 20px;
  background: var(--light);
}

.detalhes-container {
  max-width: 900px;
  margin: 0 auto;
}

.detalhes-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 10px;
}

.detalhes-galeria {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.detalhes-dados h1 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 15px;
}

.detalhes-preco {
  font-size: 32px;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 20px;
}

.detalhes-caracteristicas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.detalhe-item {
  padding: 15px;
  background: var(--light);
  border-radius: 5px;
  border-left: 4px solid var(--primary);
}

.detalhe-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 5px;
}

/* ============= RESPONSIVO ============= */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }

  .banner-content h1 {
    font-size: 32px;
  }

  .banner-search {
    flex-direction: column;
  }

  .banner-search input,
  .banner-search select,
  .banner-search button {
    min-width: 100%;
  }

  .corretor-card {
    grid-template-columns: 1fr;
  }

  .imoveis-grid {
    grid-template-columns: 1fr;
  }

  .detalhes-header {
    grid-template-columns: 1fr;
  }

  .beneficios {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
  }
}

/* upload — upload profissional de fotos */
.photo-upload-box{
  border:1.5px dashed #b8c7df;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fbff,#fff);
  padding:22px;
}
.photo-upload-icon{
  width:52px;height:52px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:#eaf2ff;font-size:25px;margin-bottom:12px;
}
.photo-upload-copy{display:flex;flex-direction:column;gap:4px;margin-bottom:14px}
.photo-upload-copy strong{font-size:15px;color:#0f172a}
.photo-upload-copy span{font-size:12px;color:#64748b}
.photo-upload-box input[type=file], #fotosModal{
  width:100%;padding:11px;border:1px solid #d7e0ec;border-radius:10px;background:#fff;
}
.photo-preview-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:16px;
}
.photo-preview{min-width:0}
.photo-preview img{width:100%;height:92px;object-fit:cover;border-radius:10px;border:1px solid #dbe3ee;display:block}
.photo-preview span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#64748b;margin-top:5px}
.form-message.info{display:block;background:#eff6ff;color:#1d4ed8;border:2px solid #bfdbfe}


/* ============= VÍDEOS DOS IMÓVEIS ============= */
.video-imovel-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.btn-video {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}
.btn-video:hover { transform: translateY(-1px); opacity: .92; }
.video-imovel-badge span {
  color: #64748b;
  font-size: 13px;
}
.video-modal {
  z-index: 3000;
}
.video-modal .info-imagem {
  margin-top: 14px;
}


/* ============= RESPONSIVIDADE REAL ============= */

html {
  scroll-behavior: smooth;
}

img,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

/* ============= BANNER DESKTOP ============= */

.banner {
  min-height: 0;
  background: #0b0b0b;
  width: 100%;
}

.banner-img {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
}

.banner-overlay {
  display: none;
}

/* ============= BANNER CELULAR ============= */

@media (max-width: 768px) {

  .banner {
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }

  .banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center center;
  }

}
.banner-overlay { display: none; }

@media (max-width: 1024px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .imoveis-section { padding-left: 24px; padding-right: 24px; }
  .corretor-card { grid-template-columns: minmax(220px, 280px) 1fr; padding: 28px; gap: 28px; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .navbar { position: sticky; padding: 8px 0; }
  .navbar .container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .logo { justify-content: center; font-size: 19px; }
  .nav-menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    justify-items: stretch;
  }
  .nav-menu li { min-width: 0; }
  .nav-menu a {
    display: block;
    text-align: center;
    padding: 7px 5px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }
  .nav-menu a:hover { border-bottom: 0; padding-bottom: 7px; background: rgba(245,158,11,.12); }

  .banner-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .banner { min-height: 0; }

  .corretor-info { padding: 28px 12px; }
  .corretor-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
    text-align: center;
  }
  .corretor-foto { max-width: 290px; width: 100%; margin: 0 auto; }
  .corretor-foto img { display: block; width: 100%; height: auto; }
  .corretor-dados h2 { font-size: clamp(23px, 6vw, 30px); }
  .horario { text-align: left; }
  .redes-sociais { justify-content: center; flex-wrap: wrap; }

  .imoveis-section { padding: 38px 12px; }
  .imoveis-section h2 { font-size: 27px; margin-bottom: 24px; }
  .imoveis-grid { grid-template-columns: 1fr; gap: 18px; }
  .imovel-card { min-width: 0; }
  .imovel-card:hover { transform: none; }
  .imovel-imagem { height: clamp(190px, 58vw, 280px); }
  .imovel-info { padding: 16px; }
  .imovel-titulo { font-size: 18px; }
  .imovel-preco { font-size: 21px; }
  .imagens-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .imagem-thumb { height: 110px; }

  .contato-section { padding: 40px 12px; }
  .contato-section h2 { font-size: 27px; margin-bottom: 24px; }
  .form-contato { padding: 18px; }

  .detalhes-section { padding: 24px 12px; }
  .detalhes-header { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  .detalhes-galeria { height: auto; min-height: 240px; }
  .detalhes-dados h1 { font-size: 24px; }
  .detalhes-preco { font-size: 27px; }
  .detalhes-caracteristicas { grid-template-columns: 1fr 1fr; gap: 8px; }
  .detalhe-item { padding: 11px; font-size: 13px; }

  .modal-content { width: calc(100% - 24px); margin: 8% auto; padding: 20px; }
  .modal-imagem img { max-width: 96%; max-height: 70vh; }
  .close-imagem { right: 15px; top: 10px; font-size: 32px; }
  .info-imagem { max-width: 92%; font-size: 14px; }
}

@media (max-width: 420px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .nav-menu { grid-template-columns: 1fr 1fr; }
  .nav-menu a { font-size: 11px; padding: 6px 3px; }
  .logo { font-size: 17px; }
  .corretor-card { padding: 14px; }
  .corretor-foto { max-width: 250px; }
  .detalhes-caracteristicas { grid-template-columns: 1fr; }
  .btn-video { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* galeria — galeria multimídia unificada (fotos + vídeos) */
.detalhes-galeria-completa{
  background:#fff;
  border-radius:16px;
  padding:12px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(0,0,0,.08);
}
.detalhes-media-principal{
  width:100%;
  aspect-ratio:16/9;
  min-height:280px;
  background:#111827;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.detalhes-media-principal img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.detalhes-media-principal video,
.detalhes-media-principal iframe{
  width:100%;
  height:100%;
  max-height:none !important;
  border:0;
  border-radius:0 !important;
}
.detalhes-media-grade{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.detalhes-media-thumb{
  position:relative;
  border:0;
  padding:0;
  min-width:0;
  aspect-ratio:4/3;
  border-radius:9px;
  overflow:hidden;
  cursor:pointer;
  background:#111827;
}
.detalhes-media-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .2s ease;
}
.detalhes-media-thumb:hover img{transform:scale(1.04)}
.detalhes-media-thumb.video{
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-weight:700;
  background:linear-gradient(135deg,#111827,#374151);
}
.detalhes-media-thumb .media-play{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.95);color:#111827;
}
.detalhes-media-contagem{
  padding:9px 3px 2px;
  font-size:.86rem;
  color:#64748b;
}
@media (max-width:700px){
  .detalhes-galeria-completa{padding:8px;border-radius:12px}
  .detalhes-media-principal{aspect-ratio:4/3;min-height:220px}
  .detalhes-media-grade{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
}
@media (max-width:420px){
  .detalhes-media-principal{min-height:190px}
  .detalhes-media-grade{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ============================================================
   acessibilidade — Acessibilidade, foco visível e utilitários
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Botões de fechar dos modais: agora são <button>, mantendo o visual original */
button.close,
button.close-imagem {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

/* Alvos de toque confortáveis no mobile */
@media (max-width: 640px) {
  .nav-menu a,
  .btn-primary,
  button.close,
  button.close-imagem {
    min-height: 44px;
  }
}

/* Evita rolagem horizontal em qualquer viewport */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* painel — autenticação e acessibilidade */
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#f8fafc,#eef2ff)}
.auth-card{width:min(100%,460px);background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:32px;box-shadow:0 24px 70px rgba(15,23,42,.12)}
.auth-card h1{margin:12px 0 8px}.auth-card p{color:#64748b;margin-bottom:22px}.auth-card label{display:block;font-weight:700;margin:14px 0 6px}.auth-card input{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:12px;font:inherit}.auth-card .btn-primary{width:100%;margin-top:18px;padding:13px;border:0;border-radius:12px;cursor:pointer}.auth-card .btn-primary:disabled{opacity:.6;cursor:wait}.back-link{font-weight:700;text-decoration:none}


/* Redes sociais: quatro ações sem overflow em telas estreitas. */
@media (max-width: 520px) {
  .redes-sociais {
    gap: 10px;
  }

  .rede-icon {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    padding-inline: 12px;
  }
}
