body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  background-image: linear-gradient(#fff, rgb(198, 201, 212), #fff);
}

/* --- Seção Título Principal --- */
.title-section h1 {
  font-family: 'GladesDemo', sans-serif;
  font-weight: lighter;
  font-size: 4rem;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 20px;
  color: black;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.75);
}

/* --- Slider Mobile --- */
.slider {
  display: none;
}

.img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: all 0.3s ease;
}

/* --- Título da Imagem no Mobile --- */
.img-container .image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0 10px; 
  box-sizing: border-box;
  display: flex;
  align-items: flex-end; 
  justify-content: center;
  min-height: 25px;
  opacity: 1;
}

.slider.child-expanded .img-container:not(.expanded) .image-title {
  background-color: rgba(0, 0, 0, 0.3);
}

.img-container.expanded {
  height: 550px;
}

/* --- Slider Desktop --- */
.deskslider {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 70%;
  min-height: 600px;
  overflow: visible;
  margin: 0 auto 25px;
  border-radius: 2px;
  position: relative;
  background-color: transparent;
}

.element {
  flex: 1;
  min-width: 20px;
  transition: flex-grow 0.3s ease, height 0.3s ease, filter 0.3s ease;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  cursor: pointer;
  filter: grayscale(100%) sepia(50%);
  position: relative;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  border-radius: 2px;
}

.element:hover, .element.active {
  filter: none;
}

.element.active {
  flex-grow: 5;
  height: 110%;
  z-index: 10;
  transform-origin: bottom;
  border-radius: 2px;
}

.element.inactive {
  opacity: 0.7;
  filter: saturate(0.5);
  flex-grow: 0.9;
}

.element .image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.element.active .image-title {
  opacity: 1;
}

/* --- Seção de Imagens Destacadas --- */
.simple-image-section {
  margin: 25px auto;
  max-width: 1600px;
  padding: 20px;
  text-align: center;
}

.simple-image-section .intro-text {
  font-size: 1rem;
  font-style: italic;
  color: #666;
  max-width: 900px;
  margin: 0 auto 5px auto;
  text-align: justify;
  line-height: 1.6;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

.simple-image-section .intro-text:last-of-type {
  margin-bottom: 25px;
}

.simple-image-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.simple-image-section .opening-speech {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #444;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: justify;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

.simple-image-section .opening-speech:last-of-type {
  margin-bottom: 30px;
}

.three-images {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  flex-wrap: wrap;
}

.image-item {
  flex-basis: 500px;
  max-width: 500px;
  height: 500px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.simple-image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 10px 15px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* --- Seção Galeria Homenagem --- */
.gallery-section {
  margin: 25px auto;
  max-width: 1200px;
  padding: 20px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #000b4d;
}

.gallery-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: start;
}

.gallery-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-image {
  width: 100%;
  height: 0;
  padding-bottom: 133.33%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 15px;
  text-align: left;
  background-color: #f9f9f9;
  flex-grow: 1;
}

.gallery-caption p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
  }

  .gallery-section {
      max-width: 90%;
  }
}

@media (max-width: 768px) {
  .deskslider {
      display: none;
  }
  .slider {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 350px;
      height: auto;
      overflow: visible;
      position: relative;
      margin: 0 auto 25px;
      border: 2px solid #ccc;
      border-radius: 2px;
  }

  .three-images {
      flex-direction: column;
      align-items: center;
      gap: 20px;
  }

  .image-item {
      width: 90%;
      max-width: 400px;
      height: 0;
      padding-bottom: 120%;
      flex-basis: auto;
  }

  .simple-image-title {
      padding: 8px 10px;
      font-size: 0.85rem;
  }

  .gallery-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }

  .gallery-section {
      margin-top: 25px;
      margin-bottom: 25px;
  }

  .gallery-section h2 {
      font-size: 1.8rem;
  }

  .gallery-section p {
      font-size: 1rem;
      margin-bottom: 25px;
  }

  .gallery-caption {
      padding: 12px;
  }

  .gallery-caption p {
      font-size: 0.85rem;
      text-align: left;
  }

  .gallery-card:hover .gallery-image {
      transform: none;
  }

  .simple-image-section .intro-text {
      font-size: 0.95rem;
      margin: 0 auto 5px auto;
      text-align: left;
      -webkit-hyphens: none;
      -moz-hyphens: none;
      hyphens: none;
  }

  .simple-image-section .intro-text:last-of-type {
      margin-bottom: 20px;
  }

  .simple-image-section .opening-speech {
      font-size: 1rem;
      margin-bottom: 12px;
      text-align: left;
      -webkit-hyphens: none;
      -moz-hyphens: none;
      hyphens: none;
  }

  .simple-image-section .opening-speech:last-of-type {
      margin-bottom: 25px;
  }
}