/*
 * pagina-terceiro-menu — estilos específicos desta template
 * Depende das variáveis e base do style.css principal
 */

/* ── Wrapper da página ── */
.page-template-pagina-terceiro-menu .content_right {
  padding-bottom: 60px;
}

/* ── Infobar / Breadcrumbs ── */
.page-template-pagina-terceiro-menu .infobar {
  padding: 14px 0 14px 4px;
  border-bottom: 1px solid #E8EEF4;
  margin-bottom: 8px;
}

/* ── Título da página ── */
.page-template-pagina-terceiro-menu h1.page-title {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.5px;
  color: #4C4C4C;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 16px;
}

.page-template-pagina-terceiro-menu h1.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: #3A81C0;
  border-radius: 999px;
}

/* ── Grelha de botões ── */
.page-template-pagina-terceiro-menu .button_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: auto;
  gap: 10px;
  padding: 0 !important;
  margin-bottom: 36px;
}

.page-template-pagina-terceiro-menu .button_grid a {
  display: block;
  text-decoration: none;
}

/* ── Botões do quarto menu ── */
.page-template-pagina-terceiro-menu .fourth_menu {
  width: 100%;
  min-height: 56px;
  background-color: #3A81C0;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Quicksand-Bold', serif;
  font-size: 14px;
  letter-spacing: .2px;
  cursor: pointer;
  padding: 10px 14px;
  transition:
    background-color 220ms cubic-bezier(.4,0,.2,1),
    transform       200ms cubic-bezier(.34,1.56,.64,1),
    box-shadow      220ms cubic-bezier(.4,0,.2,1);
  margin: 0;
}

.page-template-pagina-terceiro-menu .fourth_menu:hover {
  background-color: #0D5794;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58,129,192,.30);
}

.page-template-pagina-terceiro-menu .fourth_menu:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Player de áudio ── */
.page-template-pagina-terceiro-menu .player {
  width: 280px;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-template-pagina-terceiro-menu .player__inner {
  background-color: #ffffff;
  border: 1.5px solid #3A81C0;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(58,129,192,.12);
}

.page-template-pagina-terceiro-menu .player__btns {
  flex-shrink: 0;
  background-color: transparent;
  border: 1.5px solid #3A81C0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    transform        200ms cubic-bezier(.34,1.56,.64,1);
}

.page-template-pagina-terceiro-menu .player__btns:hover {
  background-color: #3A81C0;
  transform: scale(1.08);
}

.page-template-pagina-terceiro-menu .player__btns:hover svg {
  fill: #ffffff;
}

.page-template-pagina-terceiro-menu .player__btns svg {
  fill: #3A81C0;
  transition: fill 200ms ease;
  pointer-events: none;
}

/* ── Conteúdo (com e sem imagem) ── */
.page-template-pagina-terceiro-menu .content-tts {
  font-family: 'Quicksand-Regular', serif;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
}

.page-template-pagina-terceiro-menu .content-tts p {
  margin-bottom: 14px;
}

.page-template-pagina-terceiro-menu .content-tts a {
  color: #3A81C0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.page-template-pagina-terceiro-menu .content-tts a:hover {
  border-bottom-color: #3A81C0;
}

/* Layout com imagem */
.page-template-pagina-terceiro-menu .image_fit {
  width: 38%;
  float: right;
  margin: 4px 0 20px 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.page-template-pagina-terceiro-menu .image_fit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Botão imprimir ── */
.page-template-pagina-terceiro-menu .print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  margin-top: 8px;
  background-color: transparent;
  border: 1.5px solid #3A81C0;
  color: #3A81C0;
  padding: 7px 18px;
  border-radius: 10px;
  font-family: 'Quicksand-Regular', serif;
  font-size: 14px;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color            220ms ease,
    box-shadow       220ms ease;
}

.page-template-pagina-terceiro-menu .print-btn:hover {
  background-color: #3A81C0;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(58,129,192,.28);
}

.page-template-pagina-terceiro-menu .print-btn .hover  { display: none; }
.page-template-pagina-terceiro-menu .print-btn:hover .hover  { display: inline-block; }
.page-template-pagina-terceiro-menu .print-btn:hover .normal { display: none; }

/* ── Mobile ── */
@media only screen and (max-width: 768px) {
  .page-template-pagina-terceiro-menu .button_grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .page-template-pagina-terceiro-menu .image_fit {
    width: 100%;
    float: none;
    margin: 0 0 20px;
  }

  .page-template-pagina-terceiro-menu .player {
    width: 100%;
  }

  .page-template-pagina-terceiro-menu .print-btn {
    margin-left: 0;
  }
}