.brand-wall .brand-catalog img {
  filter: grayscale(1) sepia(1) saturate(3.6) hue-rotate(2deg) brightness(1.38) contrast(1.08);
}

.brand-wall {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: #080908;
}

.brand-wall::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 33.333%;
  height: 0.5px;
  background: rgba(199, 163, 36, 0.42);
  pointer-events: none;
}

.garrafeira-intro-compact {
  background: #c7a324;
}

.brand-wall article {
  outline: 0;
  border: 0.5px solid rgba(199, 163, 36, 0.42);
  grid-template-rows: 1fr auto;
  gap: 0.2rem;
  padding-bottom: 0.65rem;
}

.brand-wall article::after {
  content: attr(data-region);
  color: #c7a324;
  font: 600 0.62rem/1.2 Inter, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.9;
}

.brand-wall article:first-child::after {
  display: none;
}

.brand-wall article:nth-child(13)::after {
  content: "Dão";
}

.brand-wall article:nth-child(14)::after {
  content: "Vinho Verde";
}

.brand-wall .brand-alma {
  grid-template-rows: 48px auto auto;
}

@media (max-width: 640px) {
  .brand-wall {
    grid-template-columns: 1fr;
  }
}

/* Escala e cor revistas marca a marca */
.brand-wall article img {
  width: 82%;
  height: 68px;
  object-fit: contain;
  transform: none !important;
  filter: grayscale(1) brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
}

.brand-wall article:nth-child(1) img { content: url("assets/brands/gotik-marca-dourado.png"); width: 78%; height: 68px; transform: scale(1.28) !important; filter: none !important; }
.brand-wall article:nth-child(2) img { width: 78%; height: 58px; transform: scale(2.2) !important; }
.brand-wall article:nth-child(3) img { width: 84%; height: 72px; }
.brand-wall article:nth-child(4) img { width: 80%; height: 66px; }
.brand-wall article:nth-child(5) img { width: 72%; height: 66px; transform: scale(1.22) !important; }
.brand-wall article:nth-child(6) img { width: 54px; height: 46px; }
.brand-wall article:nth-child(7) img { width: 86%; height: 82px; transform: scale(1.18) !important; }
.brand-wall article:nth-child(8) img { width: 78%; height: 68px; transform: scale(1.25) !important; }
.brand-wall article:nth-child(9) img { width: 72%; height: 62px; transform: scale(2.35) !important; }
.brand-wall article:nth-child(10) img { width: 82%; height: 78px; transform: scale(1.12) !important; }
.brand-wall article:nth-child(11) img { width: 76%; height: 70px; transform: scale(1.28) !important; }
.brand-wall article:nth-child(12) img { width: 84%; height: 80px; transform: scale(1.22) !important; }
.brand-wall article:nth-child(13) span { font-size: .92rem; letter-spacing: .06em; }
.brand-wall article:nth-child(14) img { width: 84%; height: 80px; transform: scale(1.42) !important; filter: grayscale(1) brightness(0) invert(1) brightness(1.25) !important; }
.brand-wall article:nth-child(15) img { width: 74%; height: 68px; }
.brand-wall article:nth-child(16) img { width: 82%; height: 68px; }

.brand-wall .brand-net-invert img {
  filter: grayscale(1) invert(1) brightness(1.55) contrast(1.2) !important;
  mix-blend-mode: screen !important;
}

.brand-wall .brand-alma span,
.brand-wall .brand-name span {
  color: #fff;
}

/* Mudanças de região assinaladas com uma linha dourada mais forte. */
.brand-wall article:nth-child(8),
.brand-wall article:nth-child(9),
.brand-wall article:nth-child(11),
.brand-wall article:nth-child(14),
.brand-wall article:nth-child(15),
.brand-wall article:nth-child(16) {
  border-top-color: rgba(199, 163, 36, 0.9);
  border-top-width: 2px;
}

/* O último produtor fica centrado na grelha de três colunas. */
@media (min-width: 641px) {
  .brand-wall article:last-child { grid-column: 2; }
}

/* Painéis inspirados em azulejos portugueses, em carvão e dourado. */
.brand-wall article {
  position: relative;
  background-color: #080908;
  background-image:
    radial-gradient(circle at 0 0, rgba(199, 163, 36, .16) 0 2px, transparent 2.5px),
    radial-gradient(circle at 100% 100%, rgba(199, 163, 36, .12) 0 2px, transparent 2.5px),
    repeating-linear-gradient(90deg, rgba(199, 163, 36, .13) 0 1px, transparent 1px 16.666%),
    repeating-linear-gradient(0deg, rgba(199, 163, 36, .11) 0 1px, transparent 1px 25%),
    linear-gradient(135deg, rgba(255,255,255,.018), transparent 45%, rgba(199,163,36,.025));
  background-size: 16.666% 25%, 16.666% 25%, 100% 100%, 100% 100%, 100% 100%;
  box-shadow: inset 0 0 24px rgba(0,0,0,.28);
  transition: transform .28s ease, background-color .32s ease, box-shadow .32s ease;
}

.brand-wall article[role="link"]:hover {
  background-color: #4b1012;
  background-image:
    radial-gradient(circle at 0 0, rgba(199, 163, 36, .28) 0 2px, transparent 2.5px),
    radial-gradient(circle at 100% 100%, rgba(199, 163, 36, .2) 0 2px, transparent 2.5px),
    repeating-linear-gradient(90deg, rgba(199, 163, 36, .22) 0 1px, transparent 1px 16.666%),
    repeating-linear-gradient(0deg, rgba(199, 163, 36, .18) 0 1px, transparent 1px 25%),
    linear-gradient(135deg, rgba(255,255,255,.055), transparent 45%, rgba(199,163,36,.08));
  box-shadow: inset 0 0 28px rgba(38,0,0,.32), 0 12px 24px rgba(0,0,0,.3);
}

.brand-wall article img,
.brand-wall article span,
.brand-wall article::after {
  transition: scale .3s ease, color .3s ease, opacity .3s ease;
}

.brand-wall article[role="link"]:hover img,
.brand-wall article[role="link"]:hover span {
  scale: 1.03;
}

.brand-wall article[role="link"]:hover::after {
  color: #f0d785;
  opacity: 1;
}

/* Grelha compacta, no mesmo ritmo visual dos cartões de prémios. */
.brand-wall {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .45rem;
  padding: 0 clamp(1rem, 3vw, 3rem) 1.25rem;
  border-top: 2px solid rgba(199, 163, 36, .78);
}

.brand-wall::after { display: none; }
.brand-wall::before {
  content: "Produtores e marcas";
  grid-column: 1 / -1;
  padding: 1rem 0 .45rem;
  color: #fff;
  font: 600 clamp(1.8rem, 3vw, 2.7rem)/1 Cormorant Garamond, serif;
  letter-spacing: -.01em;
}

.brand-wall article,
.brand-wall article:nth-child(8),
.brand-wall article:nth-child(9),
.brand-wall article:nth-child(11),
.brand-wall article:nth-child(14),
.brand-wall article:nth-child(15),
.brand-wall article:nth-child(16) {
  min-height: 122px;
  grid-template-rows: 1fr auto;
  gap: .15rem;
  padding: .55rem .3rem;
  border: 1px solid rgba(199, 163, 36, .22);
  background-color: rgba(255,255,255,.035);
  background-image: none;
  box-shadow: none;
}

.brand-wall article[role="link"] img {
  width: 82% !important;
  height: 58px !important;
  transform: none !important;
}

.brand-wall article:nth-child(9)[role="link"] img {
  width: 94% !important;
  height: 64px !important;
  transform: scale(2.55) !important;
}

.brand-wall article:nth-child(14)[role="link"] img {
  width: 92% !important;
  height: 64px !important;
  transform: scale(2) !important;
}

.brand-wall article:nth-child(16)[role="link"] img {
  width: 94% !important;
  height: 64px !important;
  transform: scale(1.2) !important;
}

.brand-wall article::after {
  font-size: .59rem;
  letter-spacing: .1em;
}

.brand-wall .brand-alma { grid-template-rows: 1fr auto auto; }
.brand-wall .brand-alma span,
.brand-wall .brand-name span { font-size: .68rem;letter-spacing: .055em; }

@media (min-width: 641px) {
  .brand-wall article:last-child { grid-column: auto; }
}

@media (min-width: 641px) {
  .brand-wall article:nth-child(-n+7) { order: 0; }
  .brand-wall article:last-child { order: 1; }
  .brand-wall article:nth-child(n+8):not(:last-child) { order: 2; }
}

.brand-wall .brand-romaneira span{font:600 .78rem/1.05 "Cormorant Garamond",serif;letter-spacing:.08em;text-align:center;color:#d7bd67}

/* Separação suave entre o produtor em destaque e a grelha de marcas. */
body:has(.producer-of-week) .brand-wall{
  border-top: 10px solid #f4efe3;
  box-shadow: inset 0 2px 0 rgba(199, 163, 36, .78);
}

@media (max-width: 640px) {
  .brand-wall { display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.7rem; }
  .brand-wall::before { flex:0 0 100%;align-self:center; }
  .brand-wall article { min-width:145px;scroll-snap-align:start; }
}
.brand-girofle{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:.2rem}
.brand-girofle span{font-family:"Cormorant Garamond",serif;font-size:clamp(2.2rem,3.5vw,3.35rem);font-weight:700;letter-spacing:.02em;text-transform:none}
.brand-girofle small{color:#d1aa2b;font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
