html {
  scroll-behavior: smooth;
}

body {
  padding-top: 70px;
}

/* Hero */
.hero {
  height: 100vh;
  background-image: url("../static/img/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  position: relative;
}

/* Secções */
section {
  padding-top: 40px;
  padding-bottom: 40px;
}

h2 {
  margin-bottom: 20px;
  font-weight: bold;
}

.card-img-top {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

section {
  scroll-margin-top: 80px;
}

/* Hover da navbar */
.nav-link:hover,
.nav-link.active {
  color: #2c2c2c !important;
  font-weight: bold;
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: #212529; /* cor escura para bom contraste */
  font-family: Arial, sans-serif;
  background-color: #fff;
}
p {
  margin-bottom: 1rem;
}
h1, h2, h5 {
  font-weight: 600;
}

a:focus, button:focus {
  outline: 3px solid #d63384;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.card-img-top {
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
  filter: brightness(0.9); /* escurece um pouco */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* sombra suave */
}

html {
  scroll-behavior: smooth;
}

.nav-link:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 1.5rem;
  background-color: #343a40;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
#scrollTopBtn:hover {
  background-color: #915409;
  transform: scale(1.1);
}