/* Scroll suave global */
html {
  scroll-behavior: smooth;
}


.capa {
    background: url('../images/capafinal.webp') no-repeat center center;
    background-size: cover;
    height: 100vh;
    position: relative;
}
@media (max-width: 768px) {
    .capa {
        background: url('../images/capafinal.jpg') no-repeat center center;
        background-size: cover;
        height: 70vh; /* por exemplo, menor altura */
    }
}

/* Sobreposição escura */
.capa .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.topo {
    background-color: rgba(97, 58, 19, 0.901);
}

/* Conteúdo da capa */
.conteudo-capa {
    position: relative;
    z-index: 2;
}

.conteudo-capa h1 {
    font-size: 3rem;
}

@media (min-width: 768px) {
    .conteudo-capa h1 {
        font-size: 4.5rem;
    }
}

.apresentacao {
    background-color: rgb(97, 58,19);
    color: #555;
    font-size: 1rem;
}

.apresentacao h2 {
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.apresentacao .letter-spacing {
    letter-spacing: 3px;
}

/* Sobre */
.sobre {
    background-color: rgb(251 176 59);
}

.sobre h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.sobre p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Galeria */
.galeria {
    background-color: rgb(97, 58,19);
}

.img-container {
    height: 250px;
    position: relative;
    cursor: pointer;
}

.img-container img {
    object-fit: cover;
    height: 100%;
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* Overlay */
.img-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.img-container:hover .overlay {
    opacity: 1;
}

.text-overlay h5 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.text-overlay p {
    font-size: 0.9rem;
    margin: 0;
}
.realizacao {
    background-color: rgb(97, 58,19);
}


.galeria .foto {
  width: 100%;
  aspect-ratio: 1/1; /* mantém quadrado (pode trocar p/ 16/9 ou outro formato) */
  overflow: hidden;
  border-radius: 10px;
}

.galeria .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* corta proporcionalmente sem distorcer */
}
.galeria .foto img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Botão Voltar ao Topo */
.btn-topo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgb(251, 176, 59);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: none; /* escondido por padrão */
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.btn-topo:hover {
    background-color: rgb(97, 58, 19);
    transform: scale(1.1);
}

/* Scroll suave global */
html { scroll-behavior: smooth; }

