/* Graweto v2 — "vinho & osso", cinematográfico.
   Estrutura e fontes da referência (Osk): Open Sans + Roboto Condensed + Roboto. Cores da identidade Graweto. */
:root {
  --gw-wine: #321819;
  --gw-wine-deep: #240F10;
  --gw-wine-lift: #4A2528;
  --gw-ink: #301E1E;
  --gw-beige: #E6DED2;
  --gw-beige-2: #F1ECE4;
  --gw-line: rgba(48, 30, 30, .18);
  --gw-line-dark: rgba(230, 222, 210, .18);
  --gw-font: "Open Sans", sans-serif;
  --gw-font-nav: "Roboto Condensed", sans-serif;
  --gw-font-ui: "Roboto", sans-serif;
  --gw-max: 1180px;
}

/* Neutraliza a paleta padrão do Elementor (kit global) para toda a página */
body[class*="elementor-kit-"] {
  --e-global-color-primary: #321819;
  --e-global-color-secondary: #301E1E;
  --e-global-color-text: #301E1E;
  --e-global-color-accent: #E6DED2;
}
.gw-dark, .gw-header {
  --e-global-color-primary: #E6DED2;
  --e-global-color-secondary: #E6DED2;
  --e-global-color-text: #E6DED2;
}

html { scroll-behavior: smooth; }
body.page-template-elementor_canvas { background: var(--gw-wine); counter-reset: gwsec; }
.gw-sec { font-family: var(--gw-font); }
.gw-sec .elementor-heading-title, .gw-sec p { color: inherit; }

/* ---------- Seções ---------- */
.e-con.gw-sec { padding: 128px 24px; scroll-margin-top: 75px; box-sizing: border-box; }
.gw-sec > .e-con-inner { max-width: var(--gw-max); margin-inline: auto; width: 100%; }
.e-con.gw-light  { background: var(--gw-beige);   color: var(--gw-ink); }
.e-con.gw-light2 { background: var(--gw-beige-2); color: var(--gw-ink); }
.e-con.gw-dark   { background: var(--gw-wine);    color: var(--gw-beige); }

.gw-sec p { font: 400 17px/1.8 var(--gw-font); margin: 0 0 1.1em; }

/* Rótulo de seção: "01 ── QUEM SOMOS" */
.gw-sec-title { margin-bottom: 48px; }
.gw-sec-title .elementor-heading-title {
  display: flex; align-items: center; gap: 16px; margin: 0;
  font: 400 15px/1 var(--gw-font-nav); letter-spacing: .24em; text-transform: uppercase;
}
.gw-sec-title .elementor-heading-title::before { counter-increment: gwsec; content: "0" counter(gwsec); opacity: .55; }
.gw-sec-title .elementor-heading-title::after { content: ""; width: 72px; height: 1px; background: currentColor; opacity: .45; }
.gw-sec-sub p { opacity: .85; margin-top: -20px; }

/* ---------- Cabeçalho fixo ---------- */
.e-con.gw-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 0 24px; min-height: 75px;
  background: transparent; transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.admin-bar .e-con.gw-header { top: 32px; }
.e-con.gw-header.is-stuck { background: rgba(50, 24, 25, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--gw-line-dark); }
.gw-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 40px; }
.gw-nav a {
  position: relative; font: 400 17px/75px var(--gw-font-nav); letter-spacing: 1px; text-transform: uppercase;
  color: var(--gw-beige); opacity: .78; text-decoration: none; transition: opacity .2s ease;
}
.gw-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--gw-beige); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.gw-nav a:hover, .gw-nav a:focus-visible { opacity: 1; }
.gw-nav a:hover::after, .gw-nav a:focus-visible::after { transform: scaleX(1); }
.gw-nav a:focus-visible { outline: 2px solid var(--gw-beige); outline-offset: 4px; }

/* ---------- Hero ---------- */
.e-con.gw-hero {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; padding: 110px 24px 80px;
  display: flex; align-items: center; justify-content: center; color: var(--gw-beige);
  background: radial-gradient(120% 90% at 50% 0%, var(--gw-wine-lift) 0%, var(--gw-wine) 55%, var(--gw-wine-deep) 100%);
}
/* grão de filme + cantos de visor */
.gw-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  --c: rgba(230, 222, 210, .55);
  background:
    linear-gradient(var(--c), var(--c)) top 96px left 32px / 40px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top 96px left 32px / 2px 40px no-repeat,
    linear-gradient(var(--c), var(--c)) top 96px right 32px / 40px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top 96px right 32px / 2px 40px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom 32px left 32px / 40px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom 32px left 32px / 2px 40px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom 32px right 32px / 40px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom 32px right 32px / 2px 40px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .9  0 0 0 0 .87  0 0 0 0 .82  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .9;
}
/* graveto gigante como marca d'água (URL vem do tema via --gw-twig) */
.gw-hero::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  right: 3%; bottom: -8%; height: 118%; aspect-ratio: 301 / 642;
  background: var(--gw-twig, none) center / contain no-repeat; opacity: .07; transform: rotate(7deg);
}
.gw-hero > .e-con-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 36px; }
.gw-hero .gw-logo img { width: min(300px, 62vw); height: auto; opacity: .95; }
.gw-hero .gw-tagline .elementor-heading-title {
  font: 700 clamp(44px, 7.6vw, 112px)/.96 var(--gw-font-nav); letter-spacing: .005em; text-transform: uppercase;
  max-width: 14ch; margin: 0 auto; color: var(--gw-beige);
}
.gw-em { font-style: italic; font-weight: 300; box-shadow: inset 0 -.1em 0 rgba(230, 222, 210, .4); }
.gw-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.gw-ctas a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 30px; border: 1px solid var(--gw-beige);
  font: 400 15px/1 var(--gw-font-nav); letter-spacing: 1px; text-transform: uppercase; color: var(--gw-beige); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.gw-ctas a.is-primary { background: var(--gw-beige); color: var(--gw-wine); }
.gw-ctas a:hover, .gw-ctas a:focus-visible { background: var(--gw-beige); color: var(--gw-wine); }
.gw-ctas a.is-primary:hover { background: transparent; color: var(--gw-beige); }
.gw-rec { position: absolute; z-index: 2; top: 104px; left: 84px; display: flex; align-items: center; gap: 10px; font: 400 13px/1 var(--gw-font-nav); letter-spacing: .18em; color: var(--gw-beige); }
.gw-rec i { width: 9px; height: 9px; border-radius: 50%; background: #E0553D; display: inline-block; animation: gwblink 1.6s steps(2, start) infinite; }
.gw-tc { position: absolute; z-index: 2; bottom: 40px; right: 84px; font: 400 13px/1 var(--gw-font-nav); letter-spacing: .18em; color: var(--gw-beige); opacity: .75; }
.gw-scroll { position: absolute; z-index: 2; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 400 12px/1 var(--gw-font-nav); letter-spacing: .3em; text-transform: uppercase; color: var(--gw-beige); opacity: .7; text-decoration: none; }
.gw-scroll::after { content: ""; width: 1px; height: 44px; background: currentColor; animation: gwdrop 2s ease-in-out infinite; transform-origin: top; }
@keyframes gwblink { to { visibility: hidden; } }
@keyframes gwdrop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Quem Somos ---------- */
#quem-somos .elementor-widget-text-editor p:first-child {
  font: 300 clamp(26px, 3.4vw, 46px)/1.22 var(--gw-font); letter-spacing: -.01em; max-width: 24ch; margin-bottom: 1.1em;
}
#quem-somos .elementor-widget-text-editor p:not(:first-child) { max-width: 62ch; opacity: .88; }
#quem-somos { position: relative; overflow: hidden; }
#quem-somos::after {
  content: ""; position: absolute; right: -2%; top: 8%; height: 84%; aspect-ratio: 301 / 642; pointer-events: none;
  background: var(--gw-twig-dark, none) center / contain no-repeat; opacity: .06; transform: rotate(-6deg);
}
#quem-somos > .e-con-inner { position: relative; z-index: 1; }

/* ---------- Grades ---------- */
.e-con.gw-grid { display: grid; gap: 0; }
.e-con.gw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gw-line); border-left: 1px solid var(--gw-line); }
.e-con.gw-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; }
.e-con.gw-clients-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 32px; }
.e-con.gw-works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* ---------- Serviços ---------- */
.e-con.gw-grid-3 { counter-reset: svc; }
.gw-card { position: relative; border-right: 1px solid var(--gw-line); border-bottom: 1px solid var(--gw-line); padding: 48px 36px 52px; text-align: left; transition: background .3s ease, color .3s ease; }
.gw-card::before { counter-increment: svc; content: counter(svc, decimal-leading-zero); position: absolute; top: 22px; right: 26px; font: 400 13px/1 var(--gw-font-nav); letter-spacing: .16em; opacity: .5; }
.gw-card .elementor-icon-box-wrapper { display: block; text-align: left; }
.gw-card .elementor-icon-box-icon { margin: 0 0 28px; }
.gw-card .elementor-icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border: 1px solid currentColor; border-radius: 50%; color: inherit; font-size: 26px; transition: transform .3s ease; }
.gw-card .elementor-icon i, .gw-card .elementor-icon svg { color: inherit; fill: currentColor; }
.gw-card .elementor-icon-box-title, .gw-card .elementor-icon-box-title a { font: 600 21px/1.3 var(--gw-font); margin: 0 0 12px; color: inherit; }
.gw-card .elementor-icon-box-description { font: 400 15.5px/1.75 var(--gw-font); opacity: .85; margin: 0; color: inherit; }
.gw-card:hover { background: var(--gw-wine); color: var(--gw-beige); }
.gw-card:hover .elementor-icon { transform: rotate(-8deg) scale(1.05); }

/* ---------- Botões ---------- */
.gw-btn .elementor-button {
  font: 400 15px/1 var(--gw-font-nav); letter-spacing: 1px; text-transform: uppercase; background: transparent; color: inherit;
  border: 1px solid currentColor; border-radius: 0; padding: 18px 34px; transition: background .2s ease, color .2s ease;
}
.gw-dark .gw-btn .elementor-button:hover { background: var(--gw-beige); color: var(--gw-wine); }
.gw-light .gw-btn .elementor-button:hover, .gw-light2 .gw-btn .elementor-button:hover { background: var(--gw-wine); color: var(--gw-beige); }

/* ---------- Contato ---------- */
.gw-contact .elementor-icon-list-items { display: flex; flex-direction: column; gap: 6px; }
.gw-contact .elementor-icon-list-item { font: 400 17px/1.6 var(--gw-font); padding: 10px 0; border-bottom: 1px solid var(--gw-line); }
.gw-contact .elementor-icon-list-item:first-child { font: 700 clamp(26px, 3vw, 38px)/1.15 var(--gw-font-nav); letter-spacing: .01em; padding-bottom: 18px; }
.gw-contact .elementor-icon-list-icon i, .gw-contact .elementor-icon-list-icon svg { color: var(--gw-ink); fill: var(--gw-ink); }
.gw-contact .elementor-icon-list-text, .gw-contact .elementor-icon-list-item a { color: var(--gw-ink); }
.gw-contact .elementor-social-icons-wrapper { display: flex; gap: 12px; margin-top: 28px; justify-content: flex-start; }
.gw-contact .elementor-social-icon { background: var(--gw-wine) !important; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.gw-contact .elementor-social-icon i { color: var(--gw-beige) !important; font-size: 18px; }
.gw-contact .elementor-social-icon svg { fill: var(--gw-beige) !important; }
.gw-contact .elementor-social-icon:hover { transform: translateY(-3px); }
.gw-contact .elementor-widget-google_maps iframe { filter: sepia(.35) saturate(.7) contrast(1.05); border: 1px solid var(--gw-line); }

/* ---------- Rodapé ---------- */
.e-con.gw-footer { padding: 72px 24px 56px; text-align: center; }
.gw-footer > .e-con-inner { align-items: center; gap: 22px; }
.gw-footer .gw-footer-logo img { width: 210px; height: auto; }
.gw-footer p { font: 400 13px/1.7 var(--gw-font); margin: 0; opacity: .75; }
.gw-footer a { color: var(--gw-beige); }

/* ---------- WhatsApp flutuante ---------- */
.gw-wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--gw-beige); color: var(--gw-wine); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.gw-wa:hover, .gw-wa:focus-visible { transform: scale(1.08); color: var(--gw-wine); }

/* ---------- Revelar ao rolar ---------- */
.gw-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.gw-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .e-con.gw-sec { padding: 96px 24px; }
  .e-con.gw-grid-3, .e-con.gw-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-con.gw-clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e-con.gw-grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .gw-rec { left: 64px; } .gw-tc { right: 64px; }
}
@media (max-width: 640px) {
  .e-con.gw-sec { padding: 72px 20px; }
  .e-con.gw-grid-3, .e-con.gw-works-grid { grid-template-columns: 1fr; }
  .e-con.gw-clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-nav { gap: 0 22px; } .gw-nav a { font-size: 15px; line-height: 56px; } .gw-nav a::after { bottom: 14px; }
  .e-con.gw-header { min-height: 56px; }
  .admin-bar .e-con.gw-header { top: 46px; }
  .gw-hero::before { background-position: top 76px left 16px, top 76px left 16px, top 76px right 16px, top 76px right 16px, bottom 16px left 16px, bottom 16px left 16px, bottom 16px right 16px, bottom 16px right 16px, 0 0; }
  .gw-rec { top: 84px; left: 40px; } .gw-tc { display: none; }
  .gw-card { padding: 36px 26px 40px; }
  .gw-contact .elementor-icon-list-item:first-child { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gw-reveal { opacity: 1; transform: none; }
}

/* ---------- v2.1: alinhamento, hover e mapa ---------- */
.e-con.gw-grid-3 { padding: 0 !important; gap: 0 !important; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; align-items: stretch; }
.e-con.gw-grid-3 > .elementor-widget, .e-con.gw-grid-3 > .e-con-inner > .elementor-widget { margin: 0 !important; }
.gw-card, .gw-card.elementor-widget { height: 100%; margin: 0 !important; }
.gw-card > .elementor-widget-container { height: 100%; }
.gw-card .elementor-icon-box-wrapper, .gw-card .elementor-icon-box-content { text-align: left !important; align-items: flex-start !important; }
.gw-card .elementor-icon-box-icon { display: block; text-align: left !important; }
.gw-card .elementor-icon-box-title, .gw-card .elementor-icon-box-title a { color: var(--gw-ink) !important; }
.gw-card .elementor-icon-box-description { color: var(--gw-ink) !important; }
.gw-card .elementor-icon, .gw-card .elementor-icon i, .gw-card .elementor-icon svg { color: var(--gw-ink) !important; fill: var(--gw-ink) !important; }
.gw-card .elementor-icon { border: 1px solid var(--gw-ink) !important; }
.gw-card:hover, .gw-card.elementor-widget:hover { background: var(--gw-wine); }
.gw-card:hover .elementor-icon-box-title, .gw-card:hover .elementor-icon-box-title a,
.gw-card:hover .elementor-icon-box-description,
.gw-card:hover .elementor-icon, .gw-card:hover .elementor-icon i, .gw-card:hover .elementor-icon svg { color: var(--gw-beige) !important; fill: var(--gw-beige) !important; }
.gw-card:hover .elementor-icon { border-color: var(--gw-beige) !important; background: rgba(230,222,210,.08); }
.gw-card::before { z-index: 1; }

.e-con.gw-grid-2 { align-items: start; }
.gw-contact .elementor-widget-icon-list .elementor-icon-list-item { display: flex; align-items: flex-start; gap: 14px; }
.gw-contact .elementor-icon-list-icon { width: 22px; margin-top: .45em; flex: none; text-align: center; }
.gw-contact .elementor-icon-list-item:first-child { font: 700 clamp(22px, 2.3vw, 30px)/1.2 var(--gw-font-nav); }
.gw-contact .elementor-icon-list-item:first-child .elementor-icon-list-icon { margin-top: .3em; }
.gw-contact .elementor-icon-list-text { padding: 0 !important; }
.gw-contact .elementor-widget-social-icons .elementor-social-icons-wrapper, .gw-contact .elementor-widget-social-icons { text-align: left; justify-content: flex-start !important; }
.gw-contact .elementor-social-icons-wrapper { margin-left: 36px; }
.gw-contact .elementor-widget-google_maps, .gw-contact .elementor-widget-google_maps .elementor-widget-container { border-radius: 20px; overflow: hidden; }
.gw-contact .elementor-widget-google_maps iframe { border: 0; border-radius: 20px; display: block; }

/* ---------- v2.2: contato cinematográfico ---------- */
.e-con.gw-contact { position: relative; overflow: hidden; background: radial-gradient(110% 90% at 85% 0%, var(--gw-wine-lift) 0%, var(--gw-wine) 55%, var(--gw-wine-deep) 100%); }
.gw-contact::before { content: ""; position: absolute; right: 2%; top: -6%; height: 70%; aspect-ratio: 301/642; background: var(--gw-twig, none) center/contain no-repeat; opacity: .06; transform: rotate(8deg); pointer-events: none; }
.gw-contact > .e-con-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.gw-contact .gw-contact-h .elementor-heading-title { font: 700 clamp(38px, 6vw, 88px)/1 var(--gw-font-nav); text-transform: uppercase; max-width: 14ch; color: var(--gw-beige); margin: 0 0 40px; }
.gw-wa-btn { display: inline-flex; align-items: center; gap: 18px; padding: 22px 36px; background: var(--gw-beige); color: var(--gw-wine) !important; font: 700 17px/1 var(--gw-font-nav); letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; transition: gap .25s ease, background .2s ease; }
.gw-wa-btn:hover, .gw-wa-btn:focus-visible { gap: 28px; background: #fff; }
.gw-info-w { width: 100%; margin: 72px 0 56px; }
.gw-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 32px; border-top: 1px solid var(--gw-line-dark); }
.gw-info span { display: block; font: 400 13px/1 var(--gw-font-nav); letter-spacing: .24em; text-transform: uppercase; opacity: .55; margin-bottom: 14px; }
.gw-info p { margin: 0; font: 400 18px/1.55 var(--gw-font); color: var(--gw-beige); }
.gw-info a { color: var(--gw-beige); text-decoration: none; border-bottom: 1px solid rgba(230,222,210,.4); }
.gw-info a:hover { border-color: var(--gw-beige); }
.gw-contact .gw-map { width: 100%; }
.gw-contact .gw-map, .gw-contact .gw-map .elementor-widget-container { border-radius: 24px; overflow: hidden; }
.gw-contact .gw-map iframe { border: 0; border-radius: 24px; display: block; filter: sepia(.5) hue-rotate(-12deg) saturate(.8) brightness(.92) contrast(1.05); }
@media (max-width: 640px) { .gw-wa-btn { width: 100%; justify-content: space-between; padding: 20px 24px; } .gw-info-w { margin: 48px 0 40px; } }
