/* Container da galeria */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cada imagem com sombra */
.foto-container {
    position: relative;
    display: inline-block;
}

.foto {
    display: block;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.foto:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* ===== Tooltip personalizado ===== */
.foto-container::after {
    content: attr(data-alt);
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mostra o tooltip quando passa o mouse */
.foto-container:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.imagem-tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
}

.imagem-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Cabeçalho com imagem de fundo */
.site-header {
  position: relative;
  height: 350px;
  background: url('imagens/cabecalho.jpg') no-repeat center center;
  background-size: cover; /* A imagem ocupa todo o espaço do header */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
}

/* Sobreposição escura para melhorar legibilidade */
.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* camada transparente */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Ícone de acessibilidade */
.header-icon {
  width: 70px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.7));
}

/* Título principal com relevo */
.header-title {
  font-size: 2rem;
  color: #f8f1e7;
  text-shadow: 
    1px 1px 2px rgba(0,0,0,0.7), /* sombra externa */
    -1px -1px 0 rgba(255,255,255,0.3); /* relevo interno */
  margin-bottom: 10px;
}

/* Subtítulo */
.header-subtitle {
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  max-width: 800px;
}
