/* =============================================================================
   Art Chiado — proposta de banner em HTML (não está em produção)

   Estilos (campo ProcessWire banner_style):
     .banner-style-yellow  — fundo #F8D648, texto #1a1a1a  (homepage actual)
     .banner-style-light   — fundo #f3f3f3, texto escuro, acento amarelo
     .banner-style-image   — imagem de fundo opcional + véu escuro, texto claro

   O html do sítio tem font-size: 10px (1rem = 10px). Os clamp() usam px
   para o tamanho do texto não depender disso.
   ============================================================================= */

:root {
  --ac-yellow: #F8D648;
  --ac-ink: #1a1a1a;
  --ac-banner-light: #f3f3f3;
}

.top-feature.banner-style-yellow,
.top-feature.banner-style-light,
.top-feature.banner-style-image {
  position: relative;
  height: auto !important;
  overflow: hidden;
  background-color: var(--ac-banner-light);
  color: var(--ac-ink);
}

.top-feature.banner-style-yellow .container,
.top-feature.banner-style-light .container,
.top-feature.banner-style-image .container {
  position: relative;
  z-index: 2;
  height: auto !important;
}

.top-feature .banner-copy {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 8px 56px;
  text-align: center;
}

@media (min-width: 768px) {
  .top-feature .banner-copy {
    padding: 64px 20px 72px;
  }
}

@media (min-width: 993px) {
  /* Compensa o margin-top negativo do banner por baixo do cabeçalho fixo. */
  .top-feature .banner-copy {
    padding: 100px 20px 88px;
  }
}

/* Encostar o banner ao menu: o #main-content tem margin-top 22rem (220px)
   e o .top-feature original só recupera 8,4rem, o que deixa ~74px de faixa
   vazia abaixo do cabeçalho fixo (62px). */
@media only screen and (min-width: 993px) {
  .top-feature.banner-style-yellow,
  .top-feature.banner-style-light,
  .top-feature.banner-style-image {
    margin-top: -15.8rem !important;
  }
}

.top-feature .banner-copy h1 {
  margin: 0;
  font-family: "Oswald", "Ubuntu", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 8.5vw + 14px, 84px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: none;
  color: inherit;
}

.top-feature .banner-copy .banner-subtitle {
  display: block;
  margin: 18px 0 0;
  font-family: "Open Sans", "Ubuntu", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.5vw + 12px, 22px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
  color: inherit;
}

/* --- Amarelo e preto (predefinição da homepage) --- */
.top-feature.banner-style-yellow {
  background-color: var(--ac-yellow);
  color: var(--ac-ink);
}

.top-feature.banner-style-yellow .banner-subtitle {
  color: var(--ac-ink);
}

/* --- Fundo claro, texto escuro, traço amarelo --- */
.top-feature.banner-style-light {
  background-color: var(--ac-banner-light);
  color: var(--ac-ink);
}

.top-feature.banner-style-light .banner-copy h1::after,
.top-feature.banner-style-image .banner-copy h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 18px auto 0;
  background-color: var(--ac-yellow);
}

.top-feature.banner-style-light .banner-subtitle {
  color: #525252;
}

/* --- Imagem de fundo + véu, para contraste do texto --- */
.top-feature.banner-style-image {
  color: #fff;
  background-color: #111;
}

.top-feature.banner-style-image .banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.top-feature.banner-style-image .banner-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.top-feature.banner-style-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Véu escuro para o texto branco cumprir contraste sobre qualquer foto. */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.top-feature.banner-style-image .banner-subtitle {
  color: rgba(255, 255, 255, 0.92);
}

/* Se o estilo “image” estiver escolhido mas não houver foto, cai no fundo claro. */
.top-feature.banner-style-image:not(:has(.banner-media)) {
  background-color: var(--ac-banner-light);
  color: var(--ac-ink);
}

.top-feature.banner-style-image:not(:has(.banner-media))::after {
  content: none;
}

.top-feature.banner-style-image:not(:has(.banner-media)) .banner-subtitle {
  color: #525252;
}
