/* Ajustes específicos do site Itacaiú por cima do tema Tour — não editar style.css do tema aqui. */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  margin-bottom: 0;
  background: #1A374D;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1.1;
}

/* "Viva Itacaiú:" na primeira linha; a palavra animada sempre na
   segunda (via <span class="d-block"> no título), recuada à direita e
   com o sublinhado ajustado ao texto. Assim o layout não pula quando
   a palavra troca de tamanho. */
@media (min-width: 576px) {
  .hero h1 .typed-words {
    white-space: nowrap;
    margin-left: 2rem;
  }
}

.hero .hero-lead {
  max-width: 52ch;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero .hero-bg img.active {
  opacity: 1;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 40, 0.55) 0%, rgba(10, 30, 40, 0.78) 100%);
  z-index: 1;
}

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

.hero .lead,
.hero p {
  color: rgba(255, 255, 255, 0.92);
}

.hero.hero-compact {
  min-height: 42vh;
  padding: 5rem 0;
}

.hero.hero-compact h1 {
  font-size: 44px;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 60vh;
    padding: 4.5rem 0;
  }

  .hero.hero-compact {
    min-height: 32vh;
    padding: 3.5rem 0;
  }

  .hero.hero-compact h1 {
    font-size: 34px;
  }
}

.owl-3-slider .media-thumb {
  display: block;
  height: 320px;
}

.owl-3-slider .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .owl-3-slider .media-thumb {
    height: 240px;
  }
}

.why-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.why-list li:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #1A374D;
  left: 0;
  top: 8px;
  border-radius: 50%;
}

.service-card {
  background: #f8f9fa;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  color: inherit;
}

/* ---- Página de legislação de pesca ---- */

.leg-content {
  font-size: 1.05rem;
}

.leg-aviso {
  border-left: 4px solid #B1D0E0;
  background: #f1f6f9;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.leg-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.leg-card h3 {
  color: #1A374D;
}

.leg-table {
  font-size: 0.95rem;
}

.leg-table th {
  border-top: 0;
  color: #1A374D;
}

.leg-table td,
.leg-table th {
  padding: 0.5rem 0.75rem;
}

.leg-accordion .card-header {
  padding: 0;
  background: #f8f9fa;
}

.leg-accordion .btn-link {
  padding: 1rem 1.25rem;
  color: #1A374D;
  font-weight: 700;
  text-decoration: none;
}

.leg-accordion .btn-link:hover,
.leg-accordion .btn-link:focus {
  text-decoration: none;
}

.leg-accordion .btn-link:not(.collapsed) {
  color: #6998AB;
}

/* Faixa full-bleed da notícia: slider no topo da home e capa da página de leitura */
.noticias-hero,
.noticia-show-hero {
  position: relative;
  background: #1A374D;
  overflow: hidden;
}

/* escurece o topo pra manter o menu (branco) legível sobre qualquer foto */
.noticias-hero::before,
.noticia-show-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(10, 30, 40, 0.65) 0%, rgba(10, 30, 40, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

/* mesma altura e enquadramento nos dois lugares */
.noticia-hero-img {
  display: block;
  width: 100%;
  height: min(74vh, 640px);
  min-height: 420px;
  object-fit: cover;
}

.noticias-slider .noticia-manchete {
  position: relative;
  display: block;
  color: #fff;
  text-decoration: none;
}

.noticias-slider .noticia-manchete__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding-top: 6rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, rgba(10, 30, 40, 0) 0%, rgba(10, 30, 40, 0.85) 78%);
}

.noticias-slider .noticia-manchete__kicker {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B1D0E0;
}

.noticias-slider .noticia-manchete__title {
  display: block;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.noticias-slider .noticia-manchete__summary {
  display: block;
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.noticias-slider .noticia-manchete:hover .noticia-manchete__title {
  text-decoration: underline;
}

/* dots sobre a imagem, alinhados à base */
.noticias-slider.owl-carousel .owl-dots {
  position: absolute;
  bottom: 1.25rem;
  z-index: 4;
}

.noticias-slider.owl-carousel .owl-dots .owl-dot span {
  background: rgba(255, 255, 255, 0.45);
}

.noticias-slider.owl-carousel .owl-dots .owl-dot.active span {
  background: #fff;
}

@media (max-width: 575.98px) {
  .noticias-slider .noticia-manchete__summary { display: none; }
}
