/*
 * Herval Marcas: brand list and brand page, with the look of the new Grupo Herval site
 * (red Herval, graphite, Montserrat). Everything lives under .hvm so the Elementor kit and
 * the Hello Elementor reset do not leak in, and nothing here leaks out.
 */

.hvm {
  --hvm-vermelho: #e71919;
  --hvm-noite: #1c1c1c;
  --hvm-texto: #3d3d3d;
  --hvm-suave: #5c5c5c;
  --hvm-claro: #f6f5f3;
  --hvm-linha: #e7e5e1;
  --hvm-largura: 1240px;
  --hvm-raio: 18px;
  --hvm-raio-p: 10px;
  --hvm-sombra: 0 1px 2px rgb(0 0 0 / .04), 0 18px 40px -16px rgb(0 0 0 / .2);
  --hvm-curva: cubic-bezier(.2, .7, .2, 1);
  /* Height of the transparent Elementor header that sits over the hero photo */
  --hvm-topo: 111px;
  /* The Elementor kit paints <body> navy; the plugin sections need their own white */
  background: #fff;
  color: var(--hvm-texto);
  font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.03rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.hvm *, .hvm *::before, .hvm *::after { box-sizing: border-box; }
/* "body" raises specificity above Elementor kit rules like .elementor-kit-13 h2 */
body .hvm h1, body .hvm h2, body .hvm h3 { margin: 0; color: var(--hvm-noite); font-family: inherit; line-height: 1.15; letter-spacing: -.015em; text-transform: none; }
.hvm img { max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.hvm ul { margin: 0; padding: 0; list-style: none; }
.hvm a { color: inherit; text-decoration: none; }
.hvm :focus-visible { outline: 3px solid var(--hvm-vermelho); outline-offset: 3px; }
.hvm .hvm-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hvm .hvm-icone { flex: none; }
.hvm .hvm-container { width: 100%; max-width: calc(var(--hvm-largura) + 64px); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 700px) { .hvm .hvm-container { padding-inline: 20px; } }
.hvm .hvm-centro { text-align: center; }

/* ---------- Sections and titles ---------- */
.hvm .hvm-secao { padding-block: clamp(72px, 3rem + 6vw, 136px); }
.hvm .hvm-secao-cinza { background: var(--hvm-claro); }
.hvm .hvm-secao-vermelha { position: relative; overflow: hidden; padding-block: clamp(64px, 3rem + 4vw, 112px); background: var(--hvm-vermelho); color: #fff; }
.hvm .hvm-secao-vermelha::before { content: ''; position: absolute; top: -40%; right: -10%; width: 70%; height: 180%; border-radius: 60% 40% 55% 45% / 55% 45% 55% 45%; background: rgb(255 255 255 / .06); transform: rotate(-12deg); pointer-events: none; }
.hvm .hvm-secao-vermelha .hvm-container { position: relative; }
.hvm .hvm-titulo { margin-bottom: 32px; }
.hvm .hvm-titulo.hvm-centro { max-width: 820px; margin-inline: auto; }
.hvm .hvm-titulo h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.hvm .hvm-titulo h2 strong { color: var(--hvm-vermelho); font-weight: 800; }
.hvm .hvm-intro-texto { max-width: 760px; margin: 16px auto 0; color: var(--hvm-suave); }
.hvm .hvm-sobretitulo { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--hvm-vermelho); font-size: .74rem; font-weight: 800; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; }
.hvm .hvm-sobretitulo::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.hvm .hvm-chamada { max-width: 980px; margin: 0 auto; color: #fff; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); font-weight: 300; line-height: 1.25; text-align: center; text-wrap: balance; }
.hvm .hvm-chamada strong { font-weight: 800; }

/* ---------- Buttons ---------- */
.hvm .hvm-botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hvm a.hvm-botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border: 1.5px solid var(--hvm-vermelho); border-radius: 999px; background: var(--hvm-vermelho); color: #fff; font: 700 .82rem/1.2 Montserrat, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--hvm-curva); }
.hvm a.hvm-botao:hover { border-color: #b5121b; background: #b5121b; color: #fff; transform: translateY(-2px); }
.hvm a.hvm-botao-contorno { background: transparent; color: var(--hvm-vermelho); }
.hvm a.hvm-botao-contorno:hover { border-color: var(--hvm-vermelho); background: var(--hvm-vermelho); color: #fff; }
.hvm .hvm-link-seta { display: inline-flex; align-items: center; gap: 8px; color: var(--hvm-vermelho); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hvm .hvm-link-seta .hvm-icone { transition: transform .25s var(--hvm-curva); }
.hvm a:hover .hvm-link-seta .hvm-icone { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hvm .hvm-abertura { position: relative; display: flex; align-items: flex-end; min-height: 420px; padding-block: 120px 64px; overflow: hidden; background: var(--hvm-noite); color: #fff; }
.hvm .hvm-abertura.hvm-com-foto { min-height: clamp(440px, 52vw, 600px); }
/* Under the transparent Elementor header, like the Elementor pages of the site */
.elementor-location-header ~ .hvm .hvm-abertura { margin-top: calc(-1 * var(--hvm-topo)); padding-top: calc(var(--hvm-topo) + 56px); }
.hvm .hvm-abertura-foto { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; animation: hvm-aproximar 18s ease-out both; }
.hvm .hvm-abertura::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(16 16 16 / .85), rgb(16 16 16 / .25) 55%, rgb(16 16 16 / .45)); }
.hvm .hvm-abertura:not(.hvm-com-foto)::before { content: ''; position: absolute; right: -8%; bottom: -60%; width: 60%; height: 160%; border-radius: 60% 40% 55% 45% / 55% 45% 55% 45%; background: var(--hvm-vermelho); opacity: .9; transform: rotate(-14deg); }
.hvm .hvm-abertura .hvm-container { position: relative; z-index: 1; }
.hvm .hvm-abertura h1 { max-width: 900px; color: #fff; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.hvm .hvm-abertura .hvm-sobretitulo { margin-bottom: 12px; color: #fff; }
.hvm .hvm-abertura .hvm-sobretitulo::before { background: var(--hvm-vermelho); }
.hvm .hvm-migalhas ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; font-size: .78rem; font-weight: 600; line-height: 1.5; }
.hvm .hvm-migalhas li { color: rgb(255 255 255 / .7); }
.hvm .hvm-migalhas li + li::before { content: '›'; margin-right: 6px; color: rgb(255 255 255 / .45); }
.hvm .hvm-migalhas a { color: rgb(255 255 255 / .85); }
.hvm .hvm-migalhas a:hover, .hvm .hvm-migalhas [aria-current] { color: #fff; }
@keyframes hvm-aproximar { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Brand list ---------- */
.hvm .hvm-atalhos { position: sticky; top: 116px; z-index: 5; width: fit-content; max-width: 100%; margin: 0 auto 56px; padding: 8px; border: 1px solid var(--hvm-linha); border-radius: 999px; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgb(0 0 0 / .4); }
.admin-bar .hvm .hvm-atalhos { top: 148px; }
.hvm .hvm-atalhos ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hvm .hvm-atalhos a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: var(--hvm-noite); font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap; transition: background-color .2s, color .2s; }
.hvm .hvm-atalhos a:hover { background: var(--hvm-vermelho); color: #fff; }
.hvm .hvm-atalhos a span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--hvm-claro); color: var(--hvm-suave); font-size: .7rem; }
.hvm .hvm-atalhos a:hover span { background: rgb(255 255 255 / .2); color: #fff; }
@media (max-width: 1024px) { .hvm .hvm-atalhos { top: 84px; border-radius: 14px; } .admin-bar .hvm .hvm-atalhos { top: 130px; } }

.hvm .hvm-grupo { scroll-margin-top: 190px; }
.hvm .hvm-grupo + .hvm-grupo { margin-top: 80px; }
.hvm .hvm-grupo-titulo { display: flex; align-items: center; gap: 20px; margin: 0 0 28px; font-size: 1.5rem; font-weight: 800; }
.hvm .hvm-grupo-titulo::after { content: ''; flex: 1; height: 1px; background: var(--hvm-linha); }
.hvm .hvm-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .hvm .hvm-cartoes { grid-template-columns: 1fr; } }
.hvm .hvm-cartoes a { display: flex; flex-direction: column; height: 100%; padding: 28px 28px 30px; border: 1px solid var(--hvm-linha); border-radius: var(--hvm-raio); background: #fff; color: var(--hvm-texto); transition: transform .35s var(--hvm-curva), box-shadow .35s, border-color .35s; }
.hvm .hvm-cartoes a:hover { border-color: transparent; box-shadow: var(--hvm-sombra); transform: translateY(-6px); }
.hvm .hvm-cartao-logo { display: grid; place-items: center; height: 120px; margin-bottom: 22px; border-radius: 12px; background: var(--hvm-claro); }
.hvm .hvm-cartao-logo img { width: auto; max-width: 78%; max-height: 84px; object-fit: contain; transition: transform .5s var(--hvm-curva); }
.hvm .hvm-cartoes a:hover .hvm-cartao-logo img { transform: scale(1.06); }
.hvm .hvm-cartoes h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; }
.hvm .hvm-cartoes p { display: -webkit-box; margin: 0 0 22px; overflow: hidden; color: var(--hvm-suave); font-size: .93rem; line-height: 1.6; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.hvm .hvm-cartoes .hvm-link-seta { margin-top: auto; }

/* ---------- Brand page ---------- */
.hvm .hvm-intro { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) {
  .hvm .hvm-intro { grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 96px); }
  .hvm .hvm-intro > .hvm-video, .hvm .hvm-intro > .hvm-foto { position: sticky; top: 130px; }
}
.hvm .hvm-logo { display: inline-grid; place-items: center; min-width: 220px; margin-bottom: 32px; padding: 22px 30px; border-radius: var(--hvm-raio); background: #fff; box-shadow: var(--hvm-sombra); }
.hvm .hvm-logo img { width: auto; max-width: 260px; max-height: 96px; }
.hvm .hvm-texto { font-size: 1.12rem; }
.hvm .hvm-texto > :first-child { margin-top: 0; }
.hvm .hvm-texto > :last-child { margin-bottom: 0; }
.hvm .hvm-texto p { margin: 0 0 1em; }
.hvm .hvm-texto strong { color: var(--hvm-noite); }
.hvm .hvm-texto a { color: var(--hvm-vermelho); text-decoration: underline; }
.hvm .hvm-marca-redes { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hvm-linha); }
.hvm .hvm-marca-redes > span { color: var(--hvm-suave); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hvm .hvm-redes { display: flex; flex-wrap: wrap; gap: 10px; }
.hvm .hvm-redes a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--hvm-claro); color: var(--hvm-noite); transition: background-color .2s, color .2s, transform .25s var(--hvm-curva); }
.hvm .hvm-redes a:hover { background: var(--hvm-vermelho); color: #fff; transform: translateY(-2px); }
.hvm .hvm-foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hvm-raio); box-shadow: var(--hvm-sombra); }

/* Video: YouTube cover until the click (marcas.js swaps in the player) */
.hvm .hvm-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--hvm-raio); background: #000; box-shadow: var(--hvm-sombra); }
.hvm .hvm-video img, .hvm .hvm-video iframe { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; border: 0; object-fit: cover; }
.hvm .hvm-video .hvm-video-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: linear-gradient(to top, rgb(0 0 0 / .4), rgb(0 0 0 / .1)); color: #fff; cursor: pointer; }
.hvm .hvm-video .hvm-video-play:hover, .hvm .hvm-video .hvm-video-play:focus { background: linear-gradient(to top, rgb(0 0 0 / .5), rgb(0 0 0 / .15)); color: #fff; }
.hvm .hvm-video-play .hvm-icone { box-sizing: content-box; padding: 24px; border-radius: 50%; background: var(--hvm-vermelho); fill: currentColor; box-shadow: 0 0 0 10px rgb(231 25 25 / .25); transition: transform .3s var(--hvm-curva), box-shadow .3s; }
.hvm .hvm-video-play:hover .hvm-icone { transform: scale(1.08); box-shadow: 0 0 0 16px rgb(231 25 25 / .2); }

/* Gallery: first photo bigger */
.hvm .hvm-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-flow: dense; gap: 14px; }
.hvm .hvm-galeria li:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 560px) { .hvm .hvm-galeria { grid-template-columns: 1fr 1fr; } }
.hvm .hvm-galeria a { display: block; height: 100%; min-height: 180px; overflow: hidden; border-radius: var(--hvm-raio-p); }
.hvm .hvm-galeria img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s var(--hvm-curva); }
.hvm .hvm-galeria a:hover img { transform: scale(1.06); }

/* Logos ("Conheça outras marcas" and [herval_marcas_logos]) */
.hvm .hvm-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; margin: 0 0 48px; }
.hvm .hvm-logos a { display: block; opacity: .6; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .3s var(--hvm-curva); }
.hvm .hvm-logos a:hover, .hvm .hvm-logos a:focus-visible { opacity: 1; filter: none; transform: translateY(-2px); }
.hvm .hvm-logos img { display: block; width: auto; max-width: 140px; height: 52px; object-fit: contain; }
.hvm .hvm-logos-brancos a { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .hvm *, .hvm *::before, .hvm *::after { animation: none !important; transition: none !important; }
}

/* ---------- Enlarged gallery photo (outside .hvm: appended to <body>) ---------- */
.hvm-ampliada { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 64px 16px; background: rgb(10 10 10 / .92); animation: hvm-aparecer .25s ease; }
.hvm-ampliada img { max-width: min(1200px, 100%); max-height: calc(100vh - 128px); border-radius: 10px; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .45); }
.hvm-ampliada button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; transition: background-color .2s; }
.hvm-ampliada button:hover, .hvm-ampliada button:focus { background: #e71919; color: #fff; }
.hvm-ampliada .hvm-ampliada-fechar { top: 16px; right: 16px; }
.hvm-ampliada .hvm-ampliada-anterior { left: 16px; }
.hvm-ampliada .hvm-ampliada-proximo { right: 16px; }
@keyframes hvm-aparecer { from { opacity: 0; } }
