/* HEADER */

.site-header {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-header.header-transparent {
    background-color: transparent;
    box-shadow: none;
}

.site-header.header-transparent.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 var(--space-page);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transform: scale(1.5);
  transform-origin: left center;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-brand);
  cursor: pointer;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: 40px;
}

.site-nav a {
  font-family: var(--font-base);
  font-weight: 700;
  color: var(--color-brand);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  background-color: transparent;
  padding: 12px 0;
  box-shadow: none;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-brand);
  transition: opacity 0.3s;
}

.icon:hover {
  opacity: 0.7;
}

.busca-inline {
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
}

#inputBusca {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid #3d2b1f;
    background: transparent;
    transition: all 0.4s ease;
    outline: none;
    font-size: 0.8rem;
    color: #3d2b1f;
}

.busca-inline.active #inputBusca {
    width: 200px;
    opacity: 1;
    padding: 5px 10px;
    margin-right: 10px;
}

#btnFecharBusca {
    padding-left: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #3d2b1f;
}
.resultados-busca-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-top: 10px;
    display: none;
    z-index: 9999;
    overflow: hidden;
    max-height: min(420px, calc(100vh - 120px));
    overflow-y: auto;
}

.busca-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.busca-item:hover {
    background: #f9f9f9;
}

.busca-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 2px;
}

.busca-info {
    flex: 1;
}

.busca-nome {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.busca-ver-mais {
    font-size: 0.6rem;
    color: #888;
    text-decoration: underline;
    text-transform: uppercase;
}

.site-nav.escondido {
  display: none !important;
}


@media (max-width: 768px) {
  .site-header {
    padding: 0;
  }
  .header-inner {
    min-height: 78px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 16px;
  }

  .logo img {
    height: 64px;
    transform: scale(1.25);
  }

  .mobile-nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    border: 1px solid #f0ece9;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 18px;
    font-size: 0.82rem;
  }

  .site-nav a + a {
    border-top: 1px solid #f5f1ee;
  }

  .header-actions {
    order: 3;
    padding: 8px 0;
    margin-left: auto;
    gap: 12px;
    position: static !important;
  }

  .busca-inline {
    position: static;
  }

  .busca-inline.active {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    z-index: 10000;
    background: #fff;
    padding: 12px;
    border: 1px solid #f0ece9;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  }

  .busca-inline.active #inputBusca {
    width: 100%;
    min-width: 0;
    margin-right: 8px;
  }

  .resultados-busca-wrapper {
    left: 16px;
    right: 16px;
    top: calc(100% + 68px);
    width: auto;
    max-height: min(340px, calc(100vh - 150px));
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 70px;
    padding: 0 12px;
  }

  .logo img {
    height: 56px;
  }

  .header-actions {
    gap: 10px;
  }

  .icon,
  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* RODAPÉ (FOOTER) */
.site-footer {
  background-color: var(--color-brand);
  color: #fff;
  padding: 48px 5% 18px;
  margin-top: 50px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container-wide);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 28px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  font-family: var(--font-title),sans-serif;
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: #fff;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #ccc;
  text-transform: none;
}

.footer-col.links a {
  display: block;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col.links a:hover {
  color: #fff;
}

.news-form {
  display: flex;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.news-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 0;
  font-family: var(--font-base);
  font-size: 0.85rem;
  outline: none;
  text-transform: none;
}

.news-form input::placeholder {
  color: #999;
}

.news-form button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0 10px;
  font-size: 1rem;
  transition: transform 0.3s;
}

.news-form button:hover {
  transform: translateX(5px);
}

.footer-col.social {
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  font-size: 0.75rem;
  color: #999;
  text-transform: none;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 32px 20px 14px;
        margin-top: 32px;
    }
    .footer-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
      "news news"
      "nav policies"
      "social social";
        gap: 28px 16px;
        padding-bottom: 20px;
        text-align: left;
    }

    .footer-col.newsletter {
        grid-area: news;
    }

    .footer-col.links:nth-of-type(2) {
        grid-area: nav;
    }

    .footer-col.links:nth-of-type(3) {
        grid-area: policies;
    }

    .footer-col.social {
        grid-area: social;
        text-align: center !important;
        margin-top: 10px;
    }

    .footer-col {
        min-width: 0;
    }

    .footer-col h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .footer-col p,
    .footer-col.links a {
        font-size: 0.8rem;
    }

    .newsletter {
        padding-bottom: 4px;
    }

    .news-form {
        padding-bottom: 2px;
    }

    .news-form input {
        padding: 6px 0;
    }

    .social-icons {
        justify-content: center !important;
        gap: 24px;
    }

    .social-icons a {
        font-size: 1.3rem;
    }

    .footer-bottom {
        padding-top: 16px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 28px 16px 14px;
    }

    .footer-inner {
        gap: 24px 10px;
    }

    .news-form input {
        min-width: 0;
    }
}
