/* Griffe Pneus — shared chrome (header/footer) for every page.
   All classes are prefixed with gn- so they never collide with the old theme / Bootstrap. */
/* intrinsic width/height attributes (added on export to avoid layout shift) must not fix the rendered height:
   zero-specificity rule, so any sizing set by a component still wins */
:where(img) { max-width: 100%; height: auto; }

:root {
  --gn-black: #1e1d1b;
  --gn-black-2: #2a2926;
  --gn-yellow: #ffe000;
  --gn-yellow-dark: #e6c900;
  --gn-green: #25d366;
  --gn-text: #24303a;
  --gn-muted: #6b7280;
  --gn-line: #e5e7eb;
  --gn-soft: #f5f5f4;
  --gn-radius: 12px;
  --gn-shadow: 0 4px 18px rgba(0, 0, 0, .07);
  --gn-wrap: 1240px;

  /* Re-skin the old theme tokens (blue → black/yellow) */
  --color-primary: #1e1d1b;
  --color-secondary: #ffe000;
  --color-yellow: #ffe000;
}

body { font-family: "DM Sans", system-ui, -apple-system, sans-serif; background: #fff; }
[id] { scroll-margin-top: 150px; }

.gn-wrap { max-width: var(--gn-wrap); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.gn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[class^="gn-"], [class^="gn-"] *, [class*=" gn-"], [class*=" gn-"] * { box-sizing: border-box; }
[class^="gn-"] a, [class*=" gn-"] a { color: inherit; text-decoration: none; }
[class^="gn-"] svg { flex: none; }

/* ---------- Top bar ---------- */
.gn-topbar { background: var(--gn-soft); font-size: 13px; border-bottom: 1px solid var(--gn-line); color: var(--gn-text); }
.gn-topbar .gn-wrap { display: flex; gap: 18px; align-items: center; min-height: 36px; flex-wrap: wrap; }
.gn-topbar a { display: inline-flex; align-items: center; gap: 6px; }
.gn-topbar a:hover { text-decoration: underline; }
.gn-topbar svg { width: 15px; height: 15px; }
.gn-topmenu { display: flex; gap: 16px; margin-left: auto; }
.gn-topmenu a { font-weight: 500; }
.gn-social { display: flex; gap: 14px; }

/* ---------- Promo ---------- */
.gn-promo { background: var(--gn-black); color: #fff; font-size: 14px; letter-spacing: .02em; }
.gn-promo .gn-wrap { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 42px; text-transform: uppercase; text-align: center; }
.gn-promo strong { color: var(--gn-yellow); }
.gn-pill { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 700; padding: 6px 16px; white-space: nowrap; background: var(--gn-green); color: #fff !important; }
.gn-pill:hover { filter: brightness(.95); }

/* ---------- Header ---------- */
.gn-header { background: var(--gn-yellow); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.gn-header .gn-wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.gn-logo img { height: 40px; width: auto; display: block; }
.gn-search { position: relative; flex: 1; margin: 0; }
.gn-search input {
  width: 100%; height: 50px; border-radius: 999px; border: 0; padding: 0 20px 0 50px; margin: 0;
  background: #fff; font: inherit; font-size: 16px; color: var(--gn-text); outline: 2px solid transparent;
}
.gn-search input:focus { outline-color: var(--gn-black); }
.gn-search > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--gn-muted); }
.gn-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--gn-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18); display: none; max-height: 420px; overflow-y: auto; z-index: 5;
}
.gn-suggest.open { display: block; }
.gn-suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--gn-line); font-size: 14px; color: var(--gn-text); }
.gn-suggest a:hover, .gn-suggest a.active { background: var(--gn-soft); }
.gn-suggest img { width: 44px; height: 44px; object-fit: contain; }
.gn-suggest .gn-empty { padding: 14px 16px; color: var(--gn-muted); font-size: 14px; }
.gn-suggest .gn-empty a { display: inline; padding: 0; border: 0; text-decoration: underline; }
.gn-actions { display: flex; gap: 18px; align-items: center; }
.gn-actions a { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.2; font-weight: 500; color: var(--gn-black); }
.gn-actions a strong { display: block; font-size: 14px; }
.gn-actions svg { width: 30px; height: 30px; }
.gn-menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--gn-black); }
.gn-menu-toggle svg { width: 28px; height: 28px; display: block; }

/* ---------- Category nav ---------- */
.gn-catnav { background: #fff; border-bottom: 1px solid var(--gn-line); }
.gn-catnav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; max-width: var(--gn-wrap); }
.gn-catnav li { margin: 0; }
.gn-catnav li + li { border-left: 1px solid var(--gn-line); }
.gn-catnav a { display: flex; align-items: center; gap: 10px; padding: 14px 24px; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--gn-text); }
.gn-catnav a:hover { color: #000; background: var(--gn-soft); }
.gn-catnav svg { width: 28px; height: 28px; }

/* ---------- Drawer (mobile menu) ---------- */
.gn-drawer { position: fixed; inset: 0; z-index: 2000; display: none; }
.gn-drawer.open { display: block; }
.gn-drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.gn-drawer nav { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 85vw); background: #fff; padding: 18px; overflow-y: auto; }
.gn-drawer nav a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--gn-line); font-weight: 700; color: var(--gn-text); }
.gn-drawer-close { background: none; border: 0; font-size: 28px; float: right; cursor: pointer; line-height: 1; }

/* ---------- Help box ---------- */
.gn-help-wrap { margin-top: 44px; }
.gn-help { background: var(--gn-black); color: #fff; border-radius: var(--gn-radius); padding: 30px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px; align-items: center; }
.gn-help h2 { margin: 0 0 6px; font-size: 24px; text-transform: uppercase; color: #fff; font-weight: 800; }
.gn-help h2 span { color: var(--gn-yellow); }
.gn-help p { margin: 0; color: #c5c6c7; font-size: 14px; }
.gn-help-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gn-help-items a { background: var(--gn-black-2); border-radius: var(--gn-radius); padding: 16px; display: flex; gap: 12px; align-items: center; font-size: 13px; line-height: 1.25; color: #fff; }
.gn-help-items a:hover { background: #33322e; }
.gn-help-items strong { display: block; font-size: 15px; color: var(--gn-yellow); }
.gn-help-items svg { width: 30px; height: 30px; color: var(--gn-yellow); }

/* ---------- Footer ---------- */
.gn-footer { background: #141412; color: #c5c6c7; margin-top: 44px; font-size: 14px; }
.gn-footer .gn-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.gn-footer h4 { color: #fff; text-transform: uppercase; font-size: 14px; letter-spacing: .06em; margin: 0 0 14px; font-weight: 700; }
.gn-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gn-footer li { margin: 0; }
.gn-footer p { color: #c5c6c7; margin: 0; }
.gn-footer a:hover { color: var(--gn-yellow); }
.gn-logo-f { background: var(--gn-yellow); display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.gn-logo-f img { height: 30px; width: auto; display: block; }
.gn-bottom { border-top: 1px solid #2c2b28; padding: 16px; text-align: center; font-size: 12px; }

/* ---------- WhatsApp float ---------- */
.gn-wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 1500; background: var(--gn-green); color: #fff !important; width: 58px; height: 58px;
  border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.gn-wa-float svg { width: 30px; height: 30px; }

/* ================================================================
   Inner pages: re-skin of the old theme content
   ================================================================ */

/* Page title band (old #breadcrumbs with photo background) */
#breadcrumbs {
  background: var(--gn-black) !important; padding: 28px 0 !important; position: relative;
}
#breadcrumbs::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gn-yellow);
}
#breadcrumbs .row { text-align: left !important; justify-content: flex-start; }
#breadcrumbs a { color: var(--gn-yellow) !important; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
#breadcrumbs span, #breadcrumbs h1 { color: #fff; font-size: 26px; font-weight: 800; line-height: 1.2; display: block; margin: 0; }
#breadcrumbs .container { max-width: var(--gn-wrap); }

/* Theme accent colors */
.at-bg-primary, .at-btn-primary, .btn-primary { background-color: var(--gn-black) !important; border-color: var(--gn-black) !important; color: var(--gn-yellow) !important; }
.at-color-primary { color: var(--gn-black) !important; }
.at-color-secondary { color: var(--gn-yellow-dark) !important; }
.at-bg-yellow { background-color: var(--gn-yellow) !important; color: var(--gn-black) !important; }
/* links inside running text only (articles, prose, FAQ answers) — not cards, menus or titles */
:is(.blog-single__article__text, .gn-prose, .gn-tabpanel, .gn-faq, .gn-plainlist) a:not([class]) { color: var(--gn-black); text-decoration: underline; text-decoration-color: var(--gn-yellow-dark); text-underline-offset: 3px; }
:is(.blog-single__article__text, .gn-prose, .gn-tabpanel, .gn-faq, .gn-plainlist) a:not([class]):hover { text-decoration-thickness: 3px; }

/* Rounded, softer cards & images in content */
main article > div[style*="border"], main .b-radius-4 { border-radius: var(--gn-radius) !important; }
main figure { margin-bottom: 0; }
main h1, main h2, main h3 { color: var(--gn-black); }

/* Old floating widgets that may survive in some templates */
.at-whatsapp_float-btn, .wq-contatos_popup, .at-phone_float-btn { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gn-actions .gn-lbl { display: none; }
  .gn-topmenu { gap: 12px; }
  .gn-help { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .gn-hide-sm { display: none !important; }
  .gn-social { margin-left: auto; }
}
@media (max-width: 860px) {
  .gn-header .gn-wrap { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .gn-menu-toggle { display: block; order: -1; }
  .gn-logo img { height: 30px; }
  .gn-search { order: 3; flex-basis: 100%; }
  .gn-search input { height: 44px; }
  .gn-actions { margin-left: auto; }
  .gn-catnav ul { justify-content: flex-start; overflow-x: auto; }
  .gn-catnav a { padding: 12px 16px; font-size: 14px; }
  .gn-footer .gn-cols { grid-template-columns: 1fr 1fr; }
  .gn-help-items { grid-template-columns: 1fr; }
  .gn-promo .gn-wrap { font-size: 12px; gap: 10px; }
  #breadcrumbs span, #breadcrumbs h1 { font-size: 20px; }
  main .at-title-big-02, main h1 { font-size: 26px !important; line-height: 1.2 !important; }
}
@media (max-width: 520px) {
  .gn-footer .gn-cols { grid-template-columns: 1fr; }
  .gn-promo .gn-pill { display: none; }
}

/* Static site: WordPress "order by" filter has no backend */
.at-posts_order { display: none !important; }
.at-search { width: 100% !important; }
.gn-filter-note { font-size: 13px; color: var(--gn-muted); margin: 8px 0 0; }

/* ---------- FAQ (all pages) ---------- */
.gn-faq-sec { padding-top: 44px; }
.gn-h2 { font-size: 24px; font-weight: 800; margin: 0 0 20px; color: var(--gn-black); line-height: 1.2; }
.gn-hl { background: linear-gradient(transparent 60%, var(--gn-yellow) 60%); padding: 0 2px; }
.gn-faq { display: grid; gap: 10px; }
.gn-faq details { border: 1px solid var(--gn-line); border-radius: var(--gn-radius); padding: 0 18px; background: #fff; }
.gn-faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--gn-black); }
.gn-faq summary::-webkit-details-marker { display: none; }
.gn-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gn-black); flex: none; }
.gn-faq details[open] summary::after { content: "–"; }
.gn-faq details p { margin: 0 0 16px; color: #4b5563; font-size: 15px; line-height: 1.6; }
@media (max-width: 560px) { .gn-h2 { font-size: 20px; } }

/* ---------- Revised blog articles (content/blog/*.md) ---------- */
.blog-single__article__text h2 { font-size: 26px; font-weight: 800; color: var(--gn-black); margin: 34px 0 12px; line-height: 1.25; }
.blog-single__article__text h3 { font-size: 20px; font-weight: 700; color: var(--gn-black); margin: 24px 0 8px; line-height: 1.3; }
.blog-single__article__text h4 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
.blog-single__article__text p, .blog-single__article__text li { line-height: 1.7; }
.blog-single__article__text ul, .blog-single__article__text ol { padding-left: 22px; margin: 0 0 16px; }
.blog-single__article__text li { margin-bottom: 6px; }
.gn-art-table { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--gn-line); border-radius: var(--gn-radius); }
.gn-art-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.gn-art-table th { background: var(--gn-black); color: #fff; text-align: left; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.gn-art-table td { padding: 10px 12px; border-top: 1px solid var(--gn-line); vertical-align: top; }
.gn-art-table tbody tr:nth-child(even) { background: #fafaf9; }
.gn-art-fig { margin: 22px 0; }
.gn-art-fig img, .blog-single__article__text picture img { max-width: 100%; height: auto; border-radius: var(--gn-radius); display: block; }
.gn-art-fig figcaption { font-size: 13px; color: var(--gn-muted); margin-top: 6px; }
@media (max-width: 560px) {
  .blog-single__article__text h2 { font-size: 22px; }
  .blog-single__article__text h3 { font-size: 18px; }
}
.blog-single__article__text a { white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.blog-single__article__text { overflow-wrap: break-word; min-width: 0; }
.gn-art-table { max-width: calc(100vw - 32px); }
.blog-single__article, .blog-single__article__text { min-width: 0; max-width: 100%; }
.blog-single__article__text { overflow-x: hidden; }

/* ---------- Article breadcrumb band + related block (ETAPA 4) ---------- */
#breadcrumbs.gn-art-head { background: var(--gn-black) !important; padding: 18px 0 20px !important; border-bottom: 4px solid var(--gn-yellow); }
#breadcrumbs.gn-art-head::before { display: none; }
.gn-crumb-art { font-size: 13px; color: #a3a4a5; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gn-crumb-art a { color: var(--gn-yellow) !important; font-weight: 700; text-decoration: none; }
.gn-crumb-art a:hover { text-decoration: underline; }
.gn-crumb-art span[aria-current] { color: #e5e7eb; font-size: 13px !important; font-weight: 500 !important; display: inline !important; }
.gn-art-cluster { display: block; color: #c5c6c7 !important; font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.gn-related { padding-top: 40px; }
.gn-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gn-rel-card { border: 1px solid var(--gn-line); border-left: 4px solid var(--gn-yellow); border-radius: var(--gn-radius); padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; color: var(--gn-black) !important; transition: box-shadow .2s; }
.gn-rel-card:hover { box-shadow: var(--gn-shadow); }
.gn-rel-card strong { font-size: 15px; line-height: 1.35; }
.gn-rel-why { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--gn-muted); font-weight: 700; }
.gn-rel-hub { margin: 16px 0 0; font-size: 15px; }
.gn-rel-hub a { font-weight: 700; color: var(--gn-black); text-decoration: underline; text-decoration-color: var(--gn-yellow-dark); text-underline-offset: 3px; }
.gn-next { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gn-next > span { font-weight: 700; font-size: 14px; color: var(--gn-black); margin-right: 4px; }
.gn-step-link { border: 1px solid var(--gn-line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; background: #fff; color: var(--gn-black) !important; }
.gn-step-link:hover { background: var(--gn-yellow); border-color: var(--gn-yellow); }

/* footer link band (catalogue links on every page) */
.gn-foot-links { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 26px; border-top: 1px solid #2c2b28; padding-top: 26px; padding-bottom: 26px; }
.gn-foot-links p { display: flex; flex-wrap: wrap; gap: 6px 14px; line-height: 1.5; }
.gn-foot-links a { color: #c5c6c7; font-size: 13px; }
.gn-bottom a { color: inherit; text-decoration: underline; }
@media (max-width: 860px) { .gn-foot-links { grid-template-columns: 1fr; } }

/* ---------- v3: first fold modelled on retail tyre stores (white header, pill search, dark menu with dropdowns) ---------- */
.gn-topbar { background: #f1f1ef; border-bottom: 0; }
.gn-topbar .gn-wrap { min-height: 34px; gap: 6px 20px; }
.gn-topbar .gn-wrap > a + a { border-left: 1px solid #d6d6d2; padding-left: 20px; }
.gn-top-right { margin-left: auto; display: flex; gap: 20px; }
.gn-top-right a + a { border-left: 1px solid #d6d6d2; padding-left: 20px; }
.gn-promo { background: linear-gradient(90deg, #141412 0%, #2a2925 50%, #141412 100%); }
.gn-promo .gn-wrap { min-height: 40px; font-weight: 700; }
.gn-header { background: #fff; box-shadow: 0 1px 0 var(--gn-line); }
.gn-header .gn-wrap { min-height: 88px; gap: 36px; }
.gn-logo img { height: 44px; }
.gn-search { max-width: 640px; margin: 0 auto; }
.gn-search input { background: #f1f1ef; height: 50px; padding: 0 64px 0 24px; font-size: 15px; }
.gn-search input:focus { outline-color: var(--gn-yellow); background: #fff; }
.gn-search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--gn-black); }
.gn-search-btn:hover { background: var(--gn-yellow); }
.gn-search-btn svg { width: 20px; height: 20px; }
.gn-actions a { color: var(--gn-black); }
.gn-actions svg { width: 26px; height: 26px; }
.gn-catnav { display: none; }
.gn-mainnav { background: var(--gn-black); position: relative; z-index: 900; }
.gn-mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.gn-mainnav li { margin: 0; }
.gn-mainnav > .gn-wrap > ul > li > a { display: flex; align-items: center; gap: 8px; padding: 14px 12px; color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.gn-mainnav > .gn-wrap > ul > li > a:hover, .gn-dd:hover > a, .gn-dd:focus-within > a { color: var(--gn-yellow); }
.gn-dd > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.gn-dd { position: relative; }
.gn-dd-panel { position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18);
  border-top: 3px solid var(--gn-yellow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.gn-dd:hover .gn-dd-panel, .gn-dd:focus-within .gn-dd-panel { opacity: 1; visibility: visible; transform: none; }
.gn-dd-wide .gn-dd-panel { min-width: 720px; }
.gn-dd-in { display: flex; gap: 32px; padding: 22px 26px; }
.gn-dd-col { min-width: 180px; }
.gn-dd-col p { margin: 0 0 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gn-muted); }
.gn-dd-col ul { display: grid; gap: 2px; }
.gn-dd-wide .gn-dd-col:nth-child(2) ul, .gn-dd-wide .gn-dd-col:nth-child(3) ul { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.gn-dd-col li a { display: block; padding: 6px 0; color: var(--gn-text); font-weight: 600; font-size: 14px; }
.gn-dd-col li a:hover { color: #000; text-decoration: underline; text-decoration-color: var(--gn-yellow); text-decoration-thickness: 3px; }
.gn-dd-all { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 13px; color: var(--gn-black); border-bottom: 2px solid var(--gn-yellow); }
@media (max-width: 1100px) { .gn-mainnav > .gn-wrap > ul > li > a { padding: 13px 8px; font-size: 14px; } }
@media (max-width: 900px) {
  .gn-header .gn-wrap { gap: 12px; min-height: 0; }
  .gn-logo img { height: 32px; }
  .gn-search { max-width: none; }
  .gn-mainnav ul { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .gn-dd-panel { display: none; }
  .gn-dd > a::after { display: none; }
  .gn-top-right { margin-left: 0; }
}
@media (max-width: 560px) { .gn-top-right { display: none; } }

/* ---------- v4: plain retail look (no marker highlights, no lifts, flatter type) ---------- */
.gn-hl, .hl { background: none !important; padding: 0 !important; color: inherit !important; }
.gn-h2 { font-weight: 700; letter-spacing: 0; }
.gn-promo { background: var(--gn-black); }
.gn-promo .gn-wrap { text-transform: none; font-weight: 500; font-size: 14px; }
.gn-promo strong { font-weight: 700; }
.gn-pill { border-radius: 6px; }
.gn-mainnav > .gn-wrap > ul > li > a { font-weight: 600; }
.gn-dd-panel { border-radius: 0 0 6px 6px; }
.gn-dd-col p { color: #8a8a85; }
.gn-dd-col li a:hover { text-decoration-thickness: 1px; text-decoration-color: currentColor; }
.gn-footer h4 { text-transform: none; letter-spacing: 0; font-size: 15px; }
/* header without search: logo left, contacts right */
.gn-header .gn-wrap { justify-content: space-between; min-height: 80px; }
.gn-actions { gap: 28px; }
@media (max-width: 900px) { .gn-header .gn-wrap { flex-wrap: nowrap; } }
.gn-contact-btns { gap: 12px; }
.gn-cbtn { display: inline-flex !important; align-items: center; gap: 10px !important; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 16px !important; line-height: 1.15; white-space: nowrap; }
.gn-cbtn small { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.gn-cbtn svg { width: 24px !important; height: 24px !important; flex: none; }
.gn-cbtn-wa { background: #1fa855; color: #fff !important; }
.gn-cbtn-wa:hover { background: #178a45; color: #fff !important; }
.gn-cbtn-tel { background: var(--gn-yellow); color: var(--gn-black) !important; }
.gn-cbtn-tel:hover { background: var(--gn-yellow-dark, #e6c900); }
.gn-cbtn-loja { border: 1px solid var(--gn-line); color: var(--gn-black) !important; }
.gn-cbtn-loja:hover { border-color: var(--gn-black); }
@media (max-width: 1100px) { .gn-cbtn-loja { display: none !important; } }
@media (max-width: 760px) {
  .gn-cbtn span { display: none; }
  .gn-cbtn { padding: 10px; }
  .gn-cbtn-loja { display: inline-flex !important; }
}
.gn-crumb-art { color: #8a8a85; }
.gn-crumb-art a { color: #45453f !important; font-weight: 500; }
.gn-crumb-art span[aria-current] { color: #45453f; }
#breadcrumbs.gn-art-head { background: #f4f4f2 !important; border-bottom: 1px solid var(--gn-line); }
.gn-art-cluster { color: #6b6b66 !important; text-transform: none; letter-spacing: 0; }
.gn-rel-card { border-left: 1px solid var(--gn-line); }
.gn-rel-card:hover { box-shadow: none; border-color: #9a9a95; }
.gn-rel-why { text-transform: none; letter-spacing: 0; font-weight: 500; }
.gn-rel-hub a { text-decoration-color: currentColor; text-decoration-thickness: 1px; }
@media (max-width: 560px) {
  .gn-cbtn-loja { display: none !important; }
  .gn-cbtn { padding: 9px; }
  .gn-header .gn-wrap { gap: 10px; }
  .gn-logo img { height: 28px; }
}

/* ---------- v4: legacy WordPress theme pages (blog, articles, institutional) aligned with the flat retail look ---------- */
section.p-sec-100-tb.position-relative { background: #f4f4f2 !important; color: var(--gn-black) !important; padding: 22px 0 !important; border-bottom: 1px solid var(--gn-line); }
section.p-sec-100-tb.position-relative::before, section.p-sec-100-tb.position-relative::after { display: none !important; }
section.p-sec-100-tb.position-relative * { color: var(--gn-black) !important; }
section.p-sec-100-tb.position-relative a[href*="history"] { display: none !important; }
section.p-sec-100-tb.position-relative h1, section.p-sec-100-tb.position-relative h2 { font-size: 30px !important; font-weight: 700 !important; text-transform: none !important; margin: 0 !important; }
.at-title-big-02 { font-size: 34px !important; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.at-title-big, .at-title-big-01 { font-size: 30px !important; line-height: 1.2 !important; font-weight: 700 !important; }
.at-subtitle-big { font-size: 18px !important; line-height: 1.3 !important; font-weight: 700 !important; }
aside .at-subtitle-big, .list-category + * .at-subtitle-big { font-size: 15px !important; }
.at-bg-yellow { background: #f1f1ef !important; color: #45453f !important; text-transform: none !important; font-weight: 600 !important; }
.category-link a { font-size: 11.5px !important; }
.list-category { font-size: 15px !important; }
.list-category a:hover { text-decoration: underline; }
[style*="var(--color-border-01)"] { border-radius: 6px !important; }
.text-size-xl.text-color-primary { font-size: 14px !important; font-weight: 600 !important; text-decoration: underline; text-underline-offset: 3px; }
.blog-single__article__text { font-size: 17px; line-height: 1.7; color: #2f2f2b; }
.blog-single__article__text h2 { font-size: 26px; font-weight: 700; margin: 34px 0 12px; line-height: 1.25; }
.blog-single__article__text h3 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.blog-single__article__text a { text-decoration: underline; text-underline-offset: 3px; }
.blog-single__article__text img { border-radius: 6px; }
.blog-single__article__text table { border-collapse: collapse; width: 100%; font-size: 15px; }
.blog-single__article__text th, .blog-single__article__text td { border: 1px solid var(--gn-line); padding: 8px 10px; text-align: left; }
.blog-single__article__text th { background: #f4f4f2; }
@media (max-width: 760px) { .at-title-big-02 { font-size: 26px !important; } section.p-sec-100-tb.position-relative h1 { font-size: 24px !important; } }
#breadcrumbs::after, #breadcrumbs::before, section.p-sec-100-tb::after, section.p-sec-100-tb::before { display: none !important; }
#breadcrumbs.gn-art-head .gn-crumb-art a, #breadcrumbs .gn-crumb a { color: #45453f !important; font-weight: 500 !important; }
#breadcrumbs.gn-art-head .gn-crumb-art span[aria-current] { color: #6b6b66 !important; }
#breadcrumbs.p-sec-100-tb { background: #f4f4f2 !important; padding: 22px 0 !important; border-bottom: 1px solid var(--gn-line); }
#breadcrumbs.p-sec-100-tb * { color: var(--gn-black) !important; }
#breadcrumbs.p-sec-100-tb a[href*="history"] { display: none !important; }
.at-subtitle-big { max-height: calc(1.3em * 3) !important; }
.p-3 + div .d-flex, .p-3 ~ .d-flex { font-size: 12.5px; }
.at-text-small { font-size: 12.5px !important; white-space: nowrap; color: #6b6b66 !important; }
.d-flex.align-items-center.justify-content-between.mt-1 { flex-wrap: wrap; gap: 4px 10px; }
/* "Sobre": theme blue background behind Missão / Visão / Valores */
section.mt-5[style*="background-01"] { background-image: none !important; background-color: #f4f4f2 !important; min-height: 0 !important; padding-bottom: 30px; }
section.mt-5[style*="background-01"] > .container { top: 0 !important; padding-top: 30px; }
.at-box-shadow-01 { box-shadow: none !important; border: 1px solid var(--gn-line); }
.at-btn-green { border-radius: 6px !important; text-transform: none !important; }
/* help band: no caps, no highlight */
.gn-help h2 { text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; }
.gn-help h2 span { color: inherit !important; background: none !important; }

/* ---------- v5: one visual standard for every template ---------- */
/* footer: Griffe logo already yellow with black letters */
.gn-logo-f { background: none !important; padding: 0 !important; }
.gn-logo-f img { height: 34px !important; }
/* brand logos as links (menu, footer, sitemap, finder) */
.gn-blogos { display: flex; flex-wrap: wrap; gap: 8px; }
.gn-blogos a { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e3e3df; border-radius: 6px; height: 44px; padding: 0 12px; min-width: 104px; }
.gn-blogos a:hover { border-color: var(--gn-black); }
.gn-blogos img { height: 22px; width: auto; max-width: 96px; object-fit: contain; }
.gn-blogos-foot a { height: 38px; min-width: 92px; border-color: transparent; }
.gn-blogos-foot img { height: 18px; max-width: 80px; }
.gn-dd-brands .gn-blogos { display: grid; grid-template-columns: 1fr 1fr; width: 260px; }
.gn-blogos-finder { padding: 4px 0; }
.gn-blogos-finder a { height: 64px; min-width: 150px; }
.gn-blogos-finder img { height: 28px; max-width: 130px; }
/* page titles */
.gn-pagehead h1, .gn-brand-name, .gn-author h1, h1.at-title-big-02, h1.at-subtitle-big, section.p-sec-100-tb h1 { font-size: 34px !important; font-weight: 700 !important; line-height: 1.2 !important; text-transform: none !important; letter-spacing: 0 !important; }
/* section titles */
.gn-h2, .sec-title, h2.at-title-meduim, h2.at-title-big { font-size: 24px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.25 !important; }
.gn-brand-card-body h2 { font-size: 22px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; }
/* WhatsApp actions are always green; other primary actions dark */
main a.gn-btn[href*="wa.me"], main a.btn[href*="wa.me"], main a.at-btn[href*="whatsapp"], .gn-ctabox a[href*="wa.me"], .gn-cta-row a[href*="wa.me"] { background: #1fa855 !important; color: #fff !important; border-color: #1fa855 !important; }
main a.gn-btn[href*="wa.me"]:hover, main a.btn[href*="wa.me"]:hover, main a.at-btn[href*="whatsapp"]:hover { background: #178a45 !important; }
main a.gn-btn[href*="wa.me"] svg, main a.btn[href*="wa.me"] svg { color: #fff; }
.at-btn { border-radius: 6px !important; text-transform: none !important; font-weight: 700 !important; }
/* cards: same corner and flat border everywhere */
.gn-pcard, .gn-scard, .gn-line-card, .gn-svc-big, .gn-brand-card, .gn-feat, .gn-rel-card, .gn-store-card, .gn-svc-card { border-radius: 8px !important; }
.at-box-shadow-02, .at-box-shadow-01 { box-shadow: none !important; border: 1px solid var(--gn-line); border-radius: 8px !important; }
.gn-card-logo { display: block; margin: 0 0 8px; }
.gn-card-logo img, .gn-card-logo .gn-blogo { height: 20px !important; width: auto; max-width: 110px; object-fit: contain; object-position: left; }
.preco { font-weight: 800 !important; font-size: 18px !important; color: var(--gn-black) !important; }
h2.at-title-smallest { font-size: 15px !important; font-weight: 600 !important; line-height: 1.35 !important; }
/* legacy theme pages use the same content width as the rest of the site */
@media (min-width: 1200px) { .container { max-width: 1240px !important; } }
/* listing brand filter (logos) */
.gn-bfilters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.gn-bfilter { display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 110px; padding: 0 14px; border: 1px solid #e3e3df; border-radius: 6px; background: #fff; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: var(--gn-black); }
.gn-bfilter img { height: 22px; width: auto; max-width: 92px; object-fit: contain; }
.gn-bfilter[aria-pressed="true"] { border: 2px solid var(--gn-black); }
@media (max-width: 760px) {
  .gn-pagehead h1, .gn-brand-name, .gn-author h1, h1.at-title-big-02, h1.at-subtitle-big, section.p-sec-100-tb h1 { font-size: 26px !important; }
  .gn-h2, .sec-title, h2.at-title-meduim, h2.at-title-big { font-size: 21px !important; }
  /* size lists are long on the phone: hidden there (links stay in the HTML) */
  .gn-sizes-list { display: none !important; }
  .gn-bfilter { min-width: 0; flex: 1 1 30%; }
  .gn-blogos-finder a { min-width: 0; flex: 1 1 40%; }
}
@media (max-width: 760px) {
  /* product page: "Outras medidas" (jump button, tab and size list) hidden on the phone */
  .gn-pdp-jump a[data-tab="medidas"], .gn-tabbar button[data-tab="medidas"], #tab-medidas, .gn-pdp-sizes { display: none !important; }
}
a.at-btn[href*="whatsapp"], a.at-btn[href*="wa.me"] { background: #1fa855 !important; color: #fff !important; border-color: #1fa855 !important; }
a.at-btn[href*="whatsapp"]:hover, a.at-btn[href*="wa.me"]:hover { background: #178a45 !important; }
a.at-btn[href*="whatsapp"] i { color: #fff !important; }
/* promo cards: same square photo box for every product */
.at-box-shadow-02 figure { aspect-ratio: 1 / 1; display: grid; place-items: center; margin-bottom: 14px !important; }
.at-box-shadow-02 figure img { width: 100%; height: 100%; object-fit: contain; }
/* remaining title sizes: article title, blog category title, brand page title */
h1.heading-size-lg, .blog-single__article h1, #breadcrumbs h1, section.p-sec-100-tb h1, .gn-brand-name { font-size: 34px !important; font-weight: 700 !important; line-height: 1.2 !important; }
.gn-h3, .gn-svc-big-body h2 { font-weight: 700 !important; }
.card { border-radius: 8px !important; }
@media (max-width: 760px) { h1.heading-size-lg, .blog-single__article h1, #breadcrumbs h1, .gn-brand-name { font-size: 26px !important; } }

/* article cover (tools/make_covers.py): full column width, same height band for every article */
img.gn-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
