/* ==========================================================================
   INTEGRAÇÃO WORDPRESS E RECURSOS GLOBAIS
========================================================================== */
.custom-logo-link {
  display: inline-flex;
}

.custom-logo {
  width: 10rem;
  height: auto;
}

.main-nav .menu-item>a {
  position: relative;
}

.main-nav .current-menu-item>a,
.main-nav .current_page_item>a {
  color: var(--color-purple);
}

.main-nav .current-menu-item>a::after,
.main-nav .current_page_item>a::after {
  transform: scaleX(1);
}

.nav-links {
  margin-top: 2rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.nav-links .page-numbers {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  padding: .65rem 1rem;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.nav-links .current {
  color: var(--color-white);
  background: var(--color-blue);
}

.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  gap: .75rem;
}

.floating-action {
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 .75rem 2rem rgba(17, 50, 104, .22);
  transition: transform var(--ease-fast), opacity var(--ease-fast), background-color var(--ease-fast);
}

.floating-action:hover {
  transform: translateY(-.15rem);
}

.floating-action--whatsapp {
  color: #fff;
  background: #25D366;
}

.floating-action--whatsapp svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.floating-action--instagram {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.floating-action--instagram svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.floating-action--top {
  color: #fff;
  background: var(--color-primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(.5rem);
}

.floating-action--top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.floating-action.is-unconfigured {
  opacity: .65;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.25rem;
  color: #fff;
  background: var(--color-blue);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(6, 38, 82, .3);
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.1rem;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--color-yellow);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex: 0 0 auto;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .875rem;
}

.instagram-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--color-surface-soft);
  color: var(--color-blue);
  font-weight: 700;
}

.feed-post {
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}

.feed-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease);
}

.feed-post:hover img {
  transform: scale(1.04);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: var(--color-surface-soft);
}

.comment-list .comment-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.comment-list .comment-meta,
.comment-list .comment-content,
.comment-list .reply {
  grid-column: 2;
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: .95rem 1rem;
  border: 1px solid #cfd6df;
}

.comment-form-cookies-consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.comment-form-cookies-consent input {
  width: auto;
  margin-top: .25rem;
}

@media (max-width: 47.5rem) {
  .cookie-banner__content {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .instagram-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-actions {
    right: .875rem;
    bottom: .875rem;
  }
}

/* ==========================================================================
   COMENTÁRIOS — LISTA
========================================================================== */

.comments-area {
  margin-top: 4rem;
}

.comments-area .comments-title,
.comments-area .comment-reply-title {
  margin: 0 0 2rem;
  color: var(--color-blue);

  font-size: clamp(3rem, 5vw, 4.75rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.comments-area .comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comments-area .comment-list>li.comment {
  margin: 0 0 2rem;
  padding: 2.25rem 2.25rem 2.25rem;
  list-style: none;

  background: var(--color-surface-soft);
  border: 1px solid #D9DEE7;
}

.comments-area .children {
  margin: 1.5rem 0 0 4rem;
  padding: 0;
  list-style: none;
}

.comments-area .children>li.comment {
  margin: 0 0 1.5rem;
  padding: 2rem;

  background: var(--color-surface-soft);
  border: 1px solid #D9DEE7;
}


/* ==========================================================================
   COMENTÁRIOS — ESTRUTURA INTERNA
   remove a borda interna feia
========================================================================== */

.comments-area .comment-body {
  position: relative;

  margin: 0;
  padding: 0;

  background: transparent;
  border: 0;
  box-shadow: none;
}


/* ==========================================================================
   COMENTÁRIOS — TOPO
========================================================================== */

.comments-area .comment-meta {
  position: relative;
  min-height: 5.25rem;
  padding-left: 6.5rem;
}

.comments-area .comment-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;

  margin: 0 0 1rem;
}

.comments-area .comment-author .avatar {
  position: absolute;
  left: 0;
  top: 0;

  width: 5rem;
  height: 5rem;

  border-radius: 50%;
  object-fit: cover;
}

.comments-area .comment-author .fn {
  color: var(--color-blue);

  font-size: 2rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1.1;
}

.comments-area .comment-author .says {
  display: none;
}

.comments-area .comment-metadata {
  position: absolute;
  top: 0.35rem;
  right: 0;

  margin: 0;

  font-size: 1rem;
  line-height: 1.4;
  text-align: right;
}

.comments-area .comment-metadata a {
  color: var(--color-text);
  text-decoration: none;
}

.comments-area .comment-metadata a:hover {
  color: var(--color-primary);
}


/* ==========================================================================
   COMENTÁRIOS — TEXTO
========================================================================== */

.comments-area .comment-content {
  margin: 0;
  padding-left: 6.5rem;
}

.comments-area .comment-content p {
  margin: 0;

  color: var(--color-text);

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}


/* ==========================================================================
   COMENTÁRIOS — RESPOSTA
========================================================================== */

.comments-area .reply {
  margin-top: 1.5rem;
  padding-left: 6.5rem;
}

.comments-area .comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-primary);
  background: transparent;
  border: 0;

  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.comments-area .comment-reply-link:hover,
.comments-area .comment-reply-link:focus {
  color: var(--color-blue);
}


/* ==========================================================================
   FORMULÁRIO DE COMENTÁRIO
========================================================================== */

.comments-area #respond {
  margin-top: 3rem;
  padding: clamp(2rem, 4vw, 3rem);

  background: var(--color-surface-soft);
  border: 1px solid #D9DEE7;
}

.comments-area #respond .logged-in-as,
.comments-area #respond .comment-notes {
  margin: 0 0 2rem;

  color: var(--color-text);

  font-size: 1rem;
  line-height: 1.6;
}

.comments-area #respond .logged-in-as a,
.comments-area #respond .comment-notes a {
  color: var(--color-text);
  text-decoration: none;
}

.comments-area #respond .logged-in-as a:hover,
.comments-area #respond .comment-notes a:hover {
  color: var(--color-primary);
}

.comments-area .comment-form {
  display: grid;
  gap: 1.5rem;
}

.comments-area .comment-form p {
  margin: 0;
}

.comments-area .comment-form label {
  display: block;
  margin: 0 0 0.75rem;

  color: var(--color-blue);

  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.comments-area .comment-form .required {
  color: var(--color-blue);
}

.comments-area .comment-form-author,
.comments-area .comment-form-email {
  width: 100%;
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
  width: 100%;
  margin: 0;
  padding: 1rem 1.125rem;

  color: var(--color-text);
  background: var(--color-white);

  border: 1px solid #CCD4DF;
  border-radius: 0;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;

  box-sizing: border-box;
  appearance: none;
}

.comments-area .comment-form textarea {
  min-height: 14rem;
  resize: vertical;
}

.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(44, 109, 223, 0.10);
}

.comments-area .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.comments-area .comment-form-cookies-consent input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
}

.comments-area .comment-form-cookies-consent label {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 400;
}


/* ==========================================================================
   FORMULÁRIO — DUAS COLUNAS PARA DESLOGADO
========================================================================== */

.comments-area .comment-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comments-area .comment-form-comment,
.comments-area .form-submit,
.comments-area .comment-form-cookies-consent,
.comments-area .logged-in-as,
.comments-area .comment-notes {
  grid-column: 1 / -1;
}


/* ==========================================================================
   BOTÃO PUBLICAR COMENTÁRIO
========================================================================== */

.comments-area .form-submit {
  margin-top: 0.25rem;
}

.comments-area .form-submit .submit {
  min-width: 16rem;
  min-height: 3.75rem;
  padding: 0 2rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-white) !important;
  background: var(--color-primary);

  border: 0;
  border-radius: 999px;
  box-shadow: none;

  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.comments-area .form-submit .submit:hover,
.comments-area .form-submit .submit:focus {
  color: var(--color-white) !important;
  background: var(--color-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   HEADER FIXO — SOMENTE DESKTOP
========================================================================== */

/* Estado padrão: mobile e tablet */
.site-header {
    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    width: 100%;

    z-index: 1000;
}


/* Desktop: header fixo */
@media (min-width: 992px) {

    .site-header {
        position: fixed !important;
    }

}


/* ==========================================================================
   WORDPRESS LOGADO — BARRA ADMINISTRATIVA
========================================================================== */

/* Desktop */
@media (min-width: 992px) {

    body.admin-bar .site-header {
        top: 32px;
    }

}


/* Mobile e tablet */
@media (max-width: 991px) {

    body.admin-bar .site-header {
        top: 46px;
    }

}


/* Visitante deslogado */
body:not(.admin-bar) .site-header {
    top: 0;
}