/* Garrafeira Vyntes — estilos do site e do backoffice
   Site: noite de xisto com folha de ouro (os rótulos 40 Castas), papel de algodão nas fichas técnicas.
   Backoffice: papel claro e utilitário, vinho como único acento. Ambos são mundos de tema único. */
@font-face { font-family: "Bodoni Moda"; src: url(/assets/fonts/bodoni-moda-latin-opsz-normal.woff2) format("woff2-variations"), url(/assets/fonts/bodoni-moda-latin-opsz-normal.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(/assets/fonts/bodoni-moda-latin-opsz-italic.woff2) format("woff2-variations"), url(/assets/fonts/bodoni-moda-latin-opsz-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url(/assets/fonts/jost-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Jost"; src: url(/assets/fonts/jost-latin-ext-300-normal.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; src: url(/assets/fonts/jost-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Jost"; src: url(/assets/fonts/jost-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; src: url(/assets/fonts/jost-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Jost"; src: url(/assets/fonts/jost-latin-ext-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; src: url(/assets/fonts/jost-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Jost"; src: url(/assets/fonts/jost-latin-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #12110f;          /* xisto à noite */
  --ink-2: #1b1a17;
  --ink-3: #2a2824;
  --bone: #ece6da;         /* papel de algodão dos rótulos */
  --bone-2: #ddd5c6;
  --mute: #9c958a;
  --foil: #c39a57;         /* folha de ouro */
  --foil-hi: #e6c88e;
  --wine: #6b2226;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  /* backoffice */
  --a-bg: #f3f1ec; --a-panel: #ffffff; --a-ink: #1c1b19; --a-mute: #6e6960; --a-line: #e4e0d8; --a-soft: #f8f6f2;
  --a-acc: #7a2a2e; --a-acc-soft: #f4e9e9; --good: #2d7a4d; --warn: #a86a12; --bad: #b0393a; --info: #3a5a88;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 300 17px/1.6 var(--sans); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--foil); outline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 400; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- SITE ---------- */
.site { min-height: 100%; }
.caps { font: 500 11.5px/1.2 var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.wrap { width: min(1320px, 100% - 48px); margin-inline: auto; }
.disp { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -.01em; }

.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-3); }
.hdr .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: grid; text-decoration: none; line-height: 1; gap: 5px; }
.logo small { font: 500 8.5px/1 var(--sans); letter-spacing: .5em; color: var(--foil); padding-left: 2px; }
.logo span { font: 500 28px/1 var(--display); letter-spacing: .14em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font: 400 13.5px/1 var(--sans); letter-spacing: .06em; color: var(--bone-2); padding: 8px 0; border-bottom: 1px solid transparent; }
.nav .nav-cta { display: none; }
.map-hint { display: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); border-color: var(--foil); }
.lang { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--mute); display: flex; gap: 8px; }
.lang b { color: var(--bone); font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border: 1px solid var(--foil); background: transparent; color: var(--bone); text-decoration: none; cursor: pointer; font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; transition: background .25s, color .25s; }
.btn:hover { background: var(--foil); color: var(--ink); }
.btn.solid { background: var(--foil); color: var(--ink); }
.btn.solid:hover { background: var(--foil-hi); }
.btn.ghost { border-color: var(--ink-3); }
.btn.ghost:hover { border-color: var(--bone); background: transparent; color: var(--bone); }
.btn .ar { transition: transform .25s; }
.btn:hover .ar { transform: translateX(4px); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.burger i { display: block; width: 24px; height: 1px; background: var(--bone); margin: 6px 0; }

/* hero */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; min-height: min(820px, 92vh); border-bottom: 1px solid var(--ink-3); }
.hero-l { padding: clamp(48px, 7vw, 110px) clamp(24px, 5vw, 80px) 56px max(24px, calc((100vw - 1320px) / 2)); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero h1 { font: 400 clamp(52px, 7.6vw, 124px)/.94 var(--display); letter-spacing: -.025em; white-space: pre-line; }
.hero h1 em { font-style: italic; display: block; }
.foil { background: linear-gradient(100deg, var(--foil) 0%, var(--foil) 40%, #f7e3b5 50%, var(--foil) 60%, var(--foil) 100%); background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 2.6s cubic-bezier(.3,.1,.2,1) .9s 1 forwards; }
@keyframes sheen { to { background-position: 0 0; } }
.rise { animation: rise 1s cubic-bezier(.2,.7,.1,1) both; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .4s; }
@keyframes rise { from { opacity: .001; transform: translateY(22px); } }
.hero .lead { max-width: 46ch; color: var(--bone-2); font-size: 18px; margin-top: 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-r { position: relative; overflow: hidden; border-left: 1px solid var(--ink-3); }
.hero-r img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero-r .vert { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; display: flex; gap: 26px; color: var(--bone); mix-blend-mode: difference; }
.hero-r .cap { position: absolute; left: 24px; bottom: 22px; color: var(--bone-2); font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink-3); }
.facts div { padding: 18px 18px 0 0; }
.facts b { display: block; font: 400 30px/1.1 var(--display); color: var(--bone); }
.facts span { font-size: 13px; color: var(--mute); }

/* section scaffolding */
.sec { padding: clamp(72px, 9vw, 140px) 0; border-bottom: 1px solid var(--ink-3); }
.sec-h { display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; align-items: end; margin-bottom: 56px; }
.sec-h .num { color: var(--foil); }
.sec-h h2 { font: 400 clamp(38px, 4.6vw, 68px)/1 var(--display); letter-spacing: -.02em; }
.sec-h h2 em { font-style: italic; color: var(--foil); }

/* coleção */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 36px; }
.tab { background: none; border: 1px solid var(--ink-3); color: var(--bone-2); padding: 10px 16px; cursor: pointer; font: 400 13px/1 var(--sans); letter-spacing: .06em; }
.tab[aria-pressed="true"] { border-color: var(--foil); color: var(--bone); }
.grid-w { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-3); border: 1px solid var(--ink-3); }
.wcard { background: var(--ink); text-decoration: none; display: flex; flex-direction: column; padding: 28px 24px 26px; position: relative; min-height: 520px; transition: background .3s; }
.wcard:hover { background: var(--ink-2); }
.wcard .stage { flex: 1; display: grid; place-items: end center; position: relative; padding-bottom: 18px; min-height: 330px; }
.wcard .stage::after { content: ""; position: absolute; bottom: 10px; left: 22%; right: 22%; height: 14px; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); }
.wcard .stage img { max-height: 320px; width: auto; position: relative; z-index: 1; transition: transform .5s cubic-bezier(.2,.7,.1,1); filter: drop-shadow(0 18px 18px rgba(0,0,0,.35)); }
.wcard .stage.photo { place-items: center; background: #000; margin: -28px -24px 18px; min-height: 360px; overflow: hidden; }
.wcard .stage.photo::after { display: none; }
.wcard .stage.photo img { max-height: none; height: 360px; width: 100%; object-fit: cover; filter: none; }
.wcard .stage.wide img { max-height: 200px; }
.wcard:hover .stage img { transform: translateY(-8px); }
.wcard:hover .stage.photo img { transform: scale(1.03); }
.wcard .fam { color: var(--foil); }
.wcard h3 { font: 400 25px/1.12 var(--display); margin-top: 10px; }
.wcard h3 em { font-style: italic; display: block; color: var(--bone-2); font-size: 19px; }
.wcard .meta { margin-top: 14px; font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; gap: 12px; }
.badge { position: absolute; top: 18px; left: 18px; z-index: 2; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--foil); color: var(--foil-hi); background: rgba(18,17,15,.7); }

/* terroir (papel) */
.paper { background: var(--bone); color: var(--ink); }
.paper .sec-h .num, .paper .foilc { color: #8d6a2e; }
.paper .sec { border-color: var(--bone-2); }
.terroir { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.big40 { font: 400 clamp(180px, 26vw, 400px)/.78 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px #8d6a2e; margin-left: -.06em; }
.terroir .txt p + p { margin-top: 18px; }
.terroir .txt { font-size: 18px; max-width: 58ch; }
.terroir .txt .drop::first-letter { font: 400 64px/.8 var(--display); float: left; padding: 6px 10px 0 0; color: var(--wine); }
.photo-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-top: 56px; }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-row figcaption { font-size: 12.5px; color: #6a645a; margin-top: 8px; }
.map { margin-top: 40px; border-top: 1px solid var(--bone-2); padding-top: 24px; }
.map svg { width: 100%; height: auto; }
.map text { font-family: var(--sans); }

/* caminhos (I–IV) */
.paths { border-top: 1px solid var(--ink-3); }
.path { display: grid; grid-template-columns: 90px 1.1fr 1.4fr 160px; gap: 32px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--ink-3); text-decoration: none; position: relative; }
.path .rn { font: 400 italic 34px/1 var(--display); color: var(--foil); }
.path h3 { font: 400 clamp(28px, 3vw, 42px)/1.05 var(--display); }
.path p { color: var(--bone-2); font-size: 15.5px; max-width: 54ch; }
.path .thumb { width: 160px; height: 104px; overflow: hidden; }
.path .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .6s; }
.path:hover .thumb img { filter: none; transform: scale(1.05); }
.path:hover h3 { color: var(--foil-hi); }

/* imprensa */
.press { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.press .score { font: 400 clamp(140px, 18vw, 260px)/.8 var(--display); letter-spacing: -.05em; }
.press .score small { font-size: .25em; letter-spacing: 0; color: var(--mute); font-style: italic; }
.press blockquote { margin: 0; font: 400 italic clamp(24px, 2.4vw, 34px)/1.3 var(--display); max-width: 30ch; }
.press cite { display: block; margin-top: 22px; font-style: normal; color: var(--mute); }

/* adega */
.adega { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.adega video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; }
.adega .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.adega .mini img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.adega h2 { font: 400 clamp(38px, 4.4vw, 64px)/1 var(--display); }
.adega p { color: var(--bone-2); max-width: 52ch; margin-top: 22px; }

/* oferta corporativa teaser */
.gift { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.gift img { width: 100%; height: 100%; object-fit: cover; }
.gift .in { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 22px; background: var(--ink-2); }
.gift h2 { font: 400 clamp(36px, 4vw, 58px)/1.02 var(--display); }
.gift .dl { border: 1px solid var(--wine); color: #e9b3b3; padding: 12px 14px; font-size: 14px; max-width: 46ch; }

/* footer */
.ftr { padding: 80px 0 40px; background: #0c0b0a; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.ftr .logo { display: grid; padding: 0; }
.ftr h2.caps { font-size: 11.5px; }
.ftr .logo span { color: var(--bone); }
.ftr h2 { color: var(--foil); margin-bottom: 18px; }
.ftr a { display: block; text-decoration: none; color: var(--bone-2); font-size: 14.5px; padding: 4px 0; }
.ftr a:hover { color: var(--bone); }
.ftr p { color: var(--mute); font-size: 14px; }
.ftr .legal { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--mute); }
.ftr .resp { color: var(--bone-2); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.nl { display: flex; margin-top: 16px; border-bottom: 1px solid var(--ink-3); }
.nl input { flex: 1; background: none; border: 0; padding: 12px 0; outline: none; color: var(--bone); min-width: 0; }
.nl button { background: none; border: 0; color: var(--foil); cursor: pointer; letter-spacing: .2em; font-size: 11px; text-transform: uppercase; }

/* página interior */
.phead { padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--ink-3); }
.phead h1 { font: 400 clamp(48px, 6.4vw, 104px)/.96 var(--display); letter-spacing: -.025em; max-width: 14ch; margin-top: 18px; }
.phead .lead { margin-top: 28px; max-width: 56ch; color: var(--bone-2); font-size: 19px; }
.crumb { font-size: 13px; color: var(--mute); }
.crumb a { text-decoration: none; color: var(--bone-2); }
.crumb a:hover { color: var(--foil); }

/* página de vinho */
.wp { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink-3); }
.wp-vis { position: sticky; top: 76px; height: calc(100vh - 76px); max-height: 900px; display: flex; flex-direction: column; border-right: 1px solid var(--ink-3); background: radial-gradient(ellipse at 50% 90%, #24221e 0%, var(--ink) 60%); }
.wp-main { flex: 1; display: grid; place-items: center; padding: 40px; position: relative; min-height: 0; }
.wp-main img { max-height: min(calc(100vh - 76px - 180px), 680px); max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.45)); }
.wp-main img.isphoto { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; max-height: none; filter: none; }
.wp-main.photo { padding: 0; }
.thumbs { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--ink-3); overflow-x: auto; }
.thumbs button { flex: 0 0 auto; width: 70px; height: 70px; padding: 0; border: 1px solid var(--ink-3); background: #000; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--foil); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.wp-info { padding: clamp(40px, 5vw, 80px); }
.wp-info h1 { font: 400 clamp(46px, 5vw, 80px)/.98 var(--display); letter-spacing: -.02em; margin-top: 18px; }
.wp-info h1 em { display: block; font-style: italic; color: var(--bone-2); font-size: .58em; margin-top: 8px; }
.wp-info .lead { font-size: 19px; color: var(--bone-2); margin-top: 26px; max-width: 52ch; }
.award { display: flex; gap: 16px; align-items: center; margin-top: 26px; padding: 14px 0; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); }
.award b { font: 400 40px/1 var(--display); color: var(--foil-hi); }
.award span { font-size: 14px; color: var(--bone-2); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid var(--ink-3); }
.quick div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--ink-3); }
.quick dt { color: var(--mute); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.quick dd { margin: 6px 0 0; font-size: 15.5px; }
.tasting { margin-top: 48px; display: grid; gap: 22px; }
.tasting h2, .wp-info h2 { font: 400 32px/1.1 var(--display); }
.tasting .row { display: grid; grid-template-columns: 90px 1fr; gap: 20px; }
.tasting .row b { font: 400 italic 20px/1.3 var(--display); color: var(--foil); }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 40px; }
.price b { font: 400 44px/1 var(--display); }
.price span { color: var(--mute); font-size: 13px; }

.sheet { background: var(--bone); color: var(--ink); padding: clamp(28px, 4vw, 48px); margin-top: 56px; position: relative; }
.sheet::before { content: ""; position: absolute; inset: 8px; border: 1px solid #cfc5b2; pointer-events: none; }
.sheet h2 { font: 400 28px/1 var(--display); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sheet h2 small { font: 500 10.5px/1 var(--sans); letter-spacing: .24em; color: #8d6a2e; }
.sheet dl { margin: 22px 0 0; display: grid; grid-template-columns: 200px 1fr; }
.sheet dt, .sheet dd { padding: 11px 0; border-bottom: 1px solid #d6cdbb; margin: 0; font-size: 15px; }
.sheet dt { color: #6a645a; }
.sheet .seal { display: flex; gap: 16px; align-items: center; margin-top: 22px; font-size: 12.5px; color: #6a645a; }
.seal i { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #8d6a2e; display: grid; place-items: center; font: 500 8px/1.1 var(--sans); letter-spacing: .1em; text-align: center; font-style: normal; color: #8d6a2e; flex: none; }

/* formulários do site */
.inq { margin-top: 56px; border: 1px solid var(--ink-3); padding: clamp(24px, 3vw, 40px); background: var(--ink-2); }
.inq h2 { font: 400 32px/1.1 var(--display); }
.inq > p { color: var(--bone-2); margin-top: 8px; font-size: 15px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 24px 0 8px; border: 1px solid var(--ink-3); }
.seg button { background: none; border: 0; border-right: 1px solid var(--ink-3); padding: 12px 6px; cursor: pointer; font-size: 13px; color: var(--bone-2); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.fgrid .full { grid-column: 1 / -1; }
.fld { display: grid; gap: 6px; padding-top: 18px; }
.fld label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.fld input, .fld select, .fld textarea { background: transparent; border: 0; border-bottom: 1px solid var(--ink-3); padding: 9px 0; color: var(--bone); outline: none; border-radius: 0; font-size: 16px; }
.fld select option { background: var(--ink-2); }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--foil); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--bone-2); padding-top: 16px; }
.chk input { accent-color: var(--foil); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.chips label { border: 1px solid var(--ink-3); padding: 8px 12px; font-size: 13px; cursor: pointer; color: var(--bone-2); text-transform: none; letter-spacing: 0; }
.chips input { position: absolute; opacity: 0; }
.chips input:checked + span { color: var(--ink); }
.chips label:has(input:checked) { background: var(--foil); border-color: var(--foil); color: var(--ink); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--foil); outline-offset: 2px; }
.fnote { font-size: 12.5px; color: var(--mute); margin-top: 18px; }
.sent { padding: 28px 0 6px; }
.sent h3 { font: 400 34px/1.1 var(--display); color: var(--foil-hi); }
.sent p { color: var(--bone-2); margin-top: 12px; }
.sent .route { margin-top: 18px; font-size: 13.5px; color: var(--mute); border-left: 1px solid var(--foil); padding-left: 14px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); }
.ruled { border-top: 1px solid var(--ink-3); }
.ruled li { list-style: none; display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--ink-3); }
.ruled { padding: 0; margin: 0; }
.ruled .rn { font: 400 italic 22px/1 var(--display); color: var(--foil); padding-top: 4px; }
.ruled h3 { font: 400 24px/1.15 var(--display); }
.ruled p { color: var(--bone-2); font-size: 15px; margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--foil); margin-top: 40px; }
.steps div { padding: 18px 16px 0 0; }
.steps b { font: 400 italic 18px/1 var(--display); color: var(--foil); }
.steps p { margin-top: 8px; font-size: 14.5px; color: var(--bone-2); }
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-3); margin-top: 48px; border: 1px solid var(--ink-3); }
.prods > div { background: var(--ink); padding: 0 0 24px; }
.prods img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prods h3 { font: 400 24px/1.1 var(--display); padding: 20px 22px 0; }
.prods p { padding: 8px 22px 0; color: var(--bone-2); font-size: 14.5px; }
.prose { max-width: 64ch; font-size: 18px; }
.prose p + p { margin-top: 18px; }

.protobar { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 12px; background: #0a0908; border: 1px solid var(--ink-3); padding: 8px 8px 8px 14px; font-size: 12.5px; color: var(--bone-2); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.protobar a { background: var(--bone); color: var(--ink); text-decoration: none; padding: 8px 12px; font-weight: 500; }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 100; max-width: 380px; background: var(--a-ink); color: #fff; padding: 14px 16px; font: 400 14px/1.45 var(--sans); transform: translateY(150%); transition: transform .35s; border-left: 3px solid var(--foil); }
#toast { opacity: 0; visibility: hidden; }
#toast.on { transform: none; opacity: 1; visibility: visible; }

@media (max-width: 1100px) {
  .grid-w { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 18px; }
  .path { grid-template-columns: 60px 1fr 1fr; } .path .thumb { display: none; }
}
@media (max-width: 900px) {
  .nav, .hdr .lang, .hdr .btn { display: none; }
  .burger { display: block; }
  .hdr.open .nav { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--ink-3); padding: 8px 24px 20px; }
  .hdr.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--ink-3); }
  .hero, .terroir, .two, .gift, .adega, .press, .wp { grid-template-columns: minmax(0, 1fr); }
  .hero-r { height: 64vh; border-left: 0; border-top: 1px solid var(--ink-3); order: -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .sec-h { grid-template-columns: 1fr; gap: 12px; }
  .grid-w { grid-template-columns: repeat(2, 1fr); }
  .wp-vis { position: relative; top: 0; height: 70vh; }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
  .steps, .prods { grid-template-columns: 1fr 1fr; }
  .adega video { max-height: 70vh; width: auto; margin: auto; }
  .path { grid-template-columns: 48px 1fr; } .path p { grid-column: 2; }
}
@media (max-width: 520px) {
  .protobar { left: auto; right: 10px; bottom: 10px; padding: 3px; font-size: 0; border-color: #3a3732; } .protobar a { font-size: 11.5px; padding: 7px 10px; }
  #toast { left: 10px; right: 10px; top: 10px; bottom: auto; max-width: none; transform: translateY(-150%); }
  .wrap { width: calc(100% - 32px); }
  .grid-w { grid-template-columns: 1fr; }
  .fgrid, .quick, .ftr .cols, .steps, .prods, .photo-row { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg button:nth-child(2) { border-right: 0; } .seg button:nth-child(-n+2) { border-bottom: 1px solid var(--ink-3); }
  .sheet dl { grid-template-columns: 1fr; } .sheet dt { border: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .foil { background-position: 0 0; } }

/* ---------- BACKOFFICE ---------- */
.adm { color-scheme: light; background: var(--a-bg); color: var(--a-ink); font: 400 14px/1.5 var(--sans); min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }
.adm ::selection { background: var(--a-acc-soft); }
.adm :focus-visible { outline-color: var(--a-acc); }
.side { background: #191816; color: #d9d4ca; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 18px 12px; }
.side .logo { padding: 6px 10px 22px; }
.side .logo span { font-size: 22px; color: #fff; }
.side .grp { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #827c71; padding: 18px 10px 8px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-decoration: none; color: #cfc9be; border-radius: 6px; font-size: 13.5px; }
.side a:hover { background: #262421; color: #fff; }
.side a[aria-current="page"] { background: #2e2b27; color: #fff; box-shadow: inset 2px 0 0 var(--foil); }
.side a .ct { margin-left: auto; background: var(--a-acc); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; }
.side svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.side .foot { margin-top: auto; padding: 16px 10px 4px; font-size: 12px; color: #8a8478; display: grid; gap: 8px; }
.side .foot a { padding: 0; color: #cfc9be; }
.amain { min-width: 0; }
.acont > *, .g2 > *, .g2e > *, .g3 > *, .kpis > * { min-width: 0; }
.atop { height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: var(--a-panel); border-bottom: 1px solid var(--a-line); position: sticky; top: 0; z-index: 20; }
.atop h1 { font: 500 17px/1 var(--sans); }
.atop .sp { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--a-line); background: var(--a-soft); border-radius: 8px; padding: 0 10px; height: 36px; width: min(340px, 30vw); }
.search input { border: 0; background: none; outline: none; width: 100%; font-size: 13.5px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.av { width: 30px; height: 30px; border-radius: 50%; background: #e8e1d4; color: #5b4a2d; display: inline-grid; place-items: center; font: 600 11px/1 var(--sans); flex: none; }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.acont { padding: 24px 28px 80px; display: grid; gap: 20px; }
.card { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 10px; }
.card > .hd { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--a-line); }
.card > .hd h2 { font: 500 14.5px/1.2 var(--sans); }
.card > .hd .sp { flex: 1; }
.card > .bd { padding: 18px; }
.card > .bd.flush { padding: 0; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kpi { padding: 16px 18px; }
.kpi .l { color: var(--a-mute); font-size: 12.5px; }
.kpi .v { font: 500 26px/1.2 var(--sans); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .dlt { font-size: 12px; margin-top: 2px; }
.up { color: var(--good); } .down { color: var(--bad); }
.kpi svg { display: block; margin-top: 10px; width: 100%; height: 34px; }
.kpi .ring { width: 64px; height: 64px; margin: 0; }
.adm b.ok { color: var(--good); } .adm b.warn { color: var(--warn); } .adm b.bad { color: var(--bad); }
.g2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.g2.seo-grid { grid-template-columns: 1.2fr 1fr; }
.g2e { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.abtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--a-line); background: var(--a-panel); cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--a-ink); text-decoration: none; }
.abtn:hover { border-color: #c9c3b8; background: var(--a-soft); }
.abtn.pri { background: var(--a-ink); color: #fff; border-color: var(--a-ink); }
.abtn.pri:hover { background: #000; }
.abtn.acc { background: var(--a-acc); border-color: var(--a-acc); color: #fff; }
.abtn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.abtn.link { border: 0; background: none; padding: 0; height: auto; color: var(--a-acc); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--a-mute); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--a-line); background: var(--a-soft); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: #faf8f4; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .sub { color: var(--a-mute); font-size: 12.5px; }
.tblw { overflow-x: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; background: #eeebe5; color: #4a463f; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.novo { background: #e8eef7; color: var(--info); }
.pill.qualificado { background: #efe9f6; color: #6a4a92; }
.pill.prova { background: #fbf1df; color: var(--warn); }
.pill.proposta { background: #f6ebdf; color: #9a5a1a; }
.pill.negociacao { background: #f4e9e9; color: var(--a-acc); }
.pill.ganho, .pill.ok { background: #e5f2ea; color: var(--good); }
.pill.perdido, .pill.err { background: #f8e6e6; color: var(--bad); }
.pill.warn { background: #fbf1df; color: var(--warn); }
.pill.mut { background: #eeebe5; color: var(--a-mute); }
.pill.plain::before { display: none; }
.seg-t { font-size: 12px; color: var(--a-mute); }
.att { display: grid; gap: 0; }
.att a, .att div.it { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--a-line); text-decoration: none; cursor: pointer; }
.att .bar { width: 4px; height: 30px; border-radius: 2px; background: var(--warn); }
.att .bar.bad { background: var(--bad); } .att .bar.info { background: var(--info); }
.att b { font-weight: 500; }
.att .sub { color: var(--a-mute); font-size: 12.5px; }
.funnel { display: grid; gap: 10px; }
.funnel .fr { display: grid; grid-template-columns: 130px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; }
.funnel .track { height: 22px; background: var(--a-soft); border-radius: 4px; overflow: hidden; }
.funnel .fill { height: 100%; background: var(--a-acc); border-radius: 4px; opacity: .85; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font: 400 11px var(--sans); fill: var(--a-mute); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--a-mute); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.bars .br { display: grid; grid-template-columns: 1fr 70px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }
.bars .bt { position: relative; height: 26px; background: var(--a-soft); border-radius: 4px; overflow: hidden; }
.bars .bf { position: absolute; inset: 0 auto 0 0; background: #e8dcc8; }
.bars .bl { position: relative; padding: 0 10px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--a-mute); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sel, .inp { height: 34px; border: 1px solid var(--a-line); border-radius: 7px; background: var(--a-panel); padding: 0 10px; font-size: 13px; }
.segc { display: inline-flex; border: 1px solid var(--a-line); border-radius: 7px; overflow: hidden; background: var(--a-panel); }
.segc button { border: 0; background: none; padding: 0 12px; height: 32px; font-size: 12.5px; cursor: pointer; border-right: 1px solid var(--a-line); }
.segc button:last-child { border-right: 0; }
.segc button[aria-pressed="true"] { background: var(--a-ink); color: #fff; }

/* kanban */
.kan { display: grid; grid-template-columns: repeat(7, minmax(176px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #ebe8e1; border-radius: 10px; padding: 10px; min-height: 420px; display: flex; flex-direction: column; gap: 8px; }
.col.over { background: #e2dccf; outline: 2px dashed #b7ad9a; }
.col .ch { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 6px; }
.col .ch b { font-weight: 600; font-size: 13px; }
.col .ch span { font-size: 12px; color: var(--a-mute); font-variant-numeric: tabular-nums; }
.kc { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 8px; padding: 10px 12px; cursor: grab; display: grid; gap: 6px; }
.kc:hover { border-color: #cbc4b6; }
.kc.drag { opacity: .4; }
.kc b { font-weight: 500; font-size: 13.5px; }
.kc .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--a-mute); }
.kc .val { font-variant-numeric: tabular-nums; color: var(--a-ink); font-weight: 500; }
.kc .sla { color: var(--bad); font-weight: 500; }

/* drawer */
.ovl, .modal { color: var(--a-ink); font: 400 14px/1.5 var(--sans); color-scheme: light; }
.ovl { position: fixed; inset: 0; background: rgba(20,18,15,.35); z-index: 60; display: flex; justify-content: flex-end; }
.drawer { width: min(720px, 100%); height: 100%; background: var(--a-panel); overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.15); display: flex; flex-direction: column; }
.drawer .dh { padding: 20px 24px; border-bottom: 1px solid var(--a-line); display: grid; gap: 10px; position: sticky; top: 0; background: var(--a-panel); z-index: 2; }
.drawer .dh h2 { font: 500 20px/1.2 var(--sans); }
.drawer .db { padding: 20px 24px; display: grid; gap: 22px; }
.drawer .x { position: absolute; right: 16px; top: 16px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--a-mute); }
.kv dd { margin: 0; }
.stg { display: flex; gap: 0; border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.stg button { flex: 1; border: 0; border-right: 1px solid var(--a-line); background: var(--a-panel); padding: 8px 6px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.stg button:last-child { border-right: 0; }
.stg button.past { background: #f1ece2; }
.stg button.cur { background: var(--a-ink); color: #fff; }
.tl { display: grid; gap: 0; border-left: 1px solid var(--a-line); margin-left: 6px; }
.tl .ev { position: relative; padding: 0 0 16px 18px; font-size: 13px; }
.tl .ev::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--a-panel); border: 2px solid #b8ae9b; }
.tl .ev.tmail::before { border-color: var(--info); } .tl .ev.note::before { border-color: var(--warn); }
.tl .ev .sub { color: var(--a-mute); font-size: 12px; }
.tl .ev pre { white-space: pre-wrap; font: inherit; margin: 6px 0 0; background: var(--a-soft); padding: 10px 12px; border-radius: 6px; color: #3d3a35; }
.af { display: grid; gap: 5px; }
.af label { font-size: 12px; font-weight: 500; color: #4a463f; }
.af input, .af select, .af textarea { border: 1px solid var(--a-line); border-radius: 7px; padding: 8px 10px; font-size: 13.5px; background: var(--a-panel); width: 100%; }
.af textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.af input:focus, .af select:focus, .af textarea:focus { outline: 2px solid #e7d7cf; border-color: var(--a-acc); }
.af .hint { font-size: 12px; color: var(--a-mute); display: flex; justify-content: space-between; gap: 10px; }
.af .hint b { font-weight: 500; font-variant-numeric: tabular-nums; }
.af .hint b.ok { color: var(--good); } .af .hint b.warn { color: var(--warn); } .af .hint b.bad { color: var(--bad); }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fg .full { grid-column: 1 / -1; }
.sw { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.sw input { position: absolute; opacity: 0; }
.sw i { width: 34px; height: 20px; border-radius: 12px; background: #d6d0c4; position: relative; transition: background .2s; flex: none; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + i { background: var(--good); }
.sw input:checked + i::after { transform: translateX(14px); }
.sw input:focus-visible + i { outline: 2px solid var(--a-acc); outline-offset: 2px; }
.flag { display: inline-block; font-size: 11px; background: #fbf1df; color: var(--warn); border-radius: 4px; padding: 1px 6px; margin-left: 6px; font-weight: 500; }

/* SEO */
.serp { border: 1px solid var(--a-line); border-radius: 10px; padding: 16px 18px; font-family: Arial, sans-serif; background: #fff; }
.serp .u { font-size: 12.5px; color: #202124; display: flex; gap: 8px; align-items: center; }
.serp .u i { width: 26px; height: 26px; border-radius: 50%; background: #191816; color: var(--foil); display: grid; place-items: center; font: 500 13px var(--display); font-style: normal; }
.serp .u span { color: #4d5156; }
.serp .t { color: #1a0dab; font-size: 20px; line-height: 1.3; margin-top: 8px; }
.serp .ds { color: #4d5156; font-size: 14px; line-height: 1.58; margin-top: 4px; }
.og { border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; background: #fff; }
.og img { width: 100%; aspect-ratio: 1.91/1; object-fit: cover; }
.og div { padding: 10px 12px; font-size: 12px; color: var(--a-mute); }
.og b { display: block; font-size: 14px; color: var(--a-ink); margin-top: 2px; font-weight: 500; }
.checks { display: grid; gap: 8px; font-size: 13px; }
.checks div { display: flex; gap: 10px; align-items: flex-start; }
.checks i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; margin-top: 1px; }
.checks i.ok { background: var(--good); } .checks i.warn { background: var(--warn); } .checks i.bad { background: var(--bad); }
.score { display: flex; align-items: center; gap: 14px; }
.ring { width: 64px; height: 64px; flex: none; }
.code { font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; background: #1c1b19; color: #e9e3d6; padding: 14px 16px; border-radius: 8px; overflow-x: auto; white-space: pre; margin: 0; }
.code.edit { width: 100%; min-height: 160px; border: 0; resize: vertical; }
.imgpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 220px; overflow-y: auto; padding: 2px; }
.imgpick button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #222; height: 78px; position: relative; }
.imgpick button[aria-pressed="true"] { border-color: var(--a-acc); }
.imgpick img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wl { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--a-line); cursor: pointer; }
.wl:hover { background: #faf8f4; }
.wl-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fg.inline4 { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
.fg.inline4 .abtn { height: 37px; }
.fg.inline3 { grid-template-columns: 1fr 1fr auto; align-items: end; }
.fg.inline3 .abtn { height: 37px; }
.conn { flex-wrap: wrap; }
.tabsA { overflow-x: auto; scrollbar-width: none; }
.tabsA button { white-space: nowrap; flex: none; }
.wl .th { width: 54px; height: 54px; background: #1c1b19; border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.wl .th img { max-height: 50px; width: auto; }
.wl .th img.cov { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.tabsA { display: flex; gap: 2px; border-bottom: 1px solid var(--a-line); padding: 0 18px; }
.tabsA button { border: 0; background: none; padding: 12px 12px; font-size: 13px; cursor: pointer; color: var(--a-mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabsA button[aria-pressed="true"] { color: var(--a-ink); border-color: var(--a-acc); font-weight: 500; }

/* correio */
.mail { display: grid; grid-template-columns: 190px 360px 1fr; height: calc(100vh - 60px - 48px - 70px); min-height: 520px; }
.mail .fold { border-right: 1px solid var(--a-line); padding: 12px 8px; display: grid; align-content: start; gap: 2px; }
.mail .fold button { display: flex; justify-content: space-between; border: 0; background: none; padding: 8px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; text-align: left; }
.mail .fold button[aria-pressed="true"] { background: var(--a-acc-soft); color: var(--a-acc); font-weight: 500; }
.mail .lst { border-right: 1px solid var(--a-line); overflow-y: auto; }
.mail .mi { padding: 12px 16px; border-bottom: 1px solid var(--a-line); cursor: pointer; display: grid; gap: 3px; }
.mail .mi:hover { background: #faf8f4; }
.mail .mi.on { background: #f5efe6; }
.mail .mi.unread b { font-weight: 600; }
.mail .mi .r1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mail .mi .r1 span { color: var(--a-mute); font-size: 12px; white-space: nowrap; }
.mail .mi .s { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .mi .p { font-size: 12.5px; color: var(--a-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .rd { overflow-y: auto; padding: 22px 26px; }
.mail .rd h3 { font: 500 19px/1.3 var(--sans); }
.mail .rd pre { white-space: pre-wrap; font: 14px/1.65 var(--sans); margin: 18px 0 0; }
.conn { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 18px; background: #eef5f0; color: #245e3c; border-bottom: 1px solid #d7e8dd; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

.modal { position: fixed; inset: 0; z-index: 70; background: rgba(20,18,15,.4); display: grid; place-items: center; padding: 20px; }
.modal .box { background: var(--a-panel); border-radius: 12px; width: min(640px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal .box .hd { padding: 16px 20px; border-bottom: 1px solid var(--a-line); display: flex; justify-content: space-between; align-items: center; }
.modal .box .hd h2 { font: 500 16px/1 var(--sans); }
.modal .box .bd { padding: 20px; display: grid; gap: 14px; }
.modal .box .ft { padding: 14px 20px; border-top: 1px solid var(--a-line); display: flex; justify-content: flex-end; gap: 8px; }
.empty { padding: 40px; text-align: center; color: var(--a-mute); }
.note-demo { font-size: 12.5px; color: var(--a-mute); background: var(--a-soft); border: 1px dashed #d6cfc2; border-radius: 8px; padding: 10px 12px; }
.stock-bar { height: 6px; background: var(--a-soft); border-radius: 3px; overflow: hidden; width: 120px; display: inline-block; vertical-align: middle; }
.stock-bar i { display: block; height: 100%; background: var(--good); }
.stock-bar i.low { background: var(--bad); } .stock-bar i.mid { background: var(--warn); }

@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } .mail { grid-template-columns: 150px 280px 1fr; } }
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .who span:last-child { display: none; } .atop { padding: 0 16px; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 2px; padding: 10px; }
  .side .grp, .side .foot { display: none; } .side .logo { padding: 6px 10px; width: 100%; }
  .g2, .g2e, .g3, .fg { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; }
  .search { display: none; } .acont { padding: 16px; }
  .mail { grid-template-columns: 1fr; height: auto; } .mail .fold { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--a-line); }
  .mail .lst { max-height: 320px; border-right: 0; }
}

/* ---- telemóvel: site ---- */
@media (max-width: 900px) {
  .hdr.open .nav .nav-cta { display: block; color: var(--foil); border-bottom: 0; padding-top: 18px; }
  .hero { min-height: 0; }
  .hero-r { height: 52vh; min-height: 320px; }
  .hero-r .vert { display: none; }
  .hero-l { padding: 36px 24px 40px; gap: 36px; }
  .wp { grid-template-columns: minmax(0, 1fr); }
  .wp-vis { height: auto; max-height: none; position: relative; top: 0; border-right: 0; border-bottom: 1px solid var(--ink-3); }
  .wp-main { height: 62vh; min-height: 380px; max-height: 560px; padding: 24px; }
  .wp-main img:not(.isphoto) { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); max-height: none; object-fit: contain; }
  .wp-info { padding: 32px 24px 48px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar, .tabsA::-webkit-scrollbar, .thumbs::-webkit-scrollbar { display: none; }
  .tab { flex: none; white-space: nowrap; }
  .map-scroll { overflow-x: auto; margin-inline: -24px; padding: 0 24px; }
  .map-scroll svg { min-width: 720px; }
  .map-hint { display: block; font-size: 12px; color: #8f887c; margin-top: 6px; }
  .press { gap: 24px; }
  .adega video { max-height: 64vh; width: auto; max-width: 100%; }
  .gift { min-height: 0; } .gift img { height: auto; aspect-ratio: 4/3; }
  .phead h1 { max-width: none; }
  .sec-h { margin-bottom: 36px; }
  .inq { margin-inline: -8px; }
}
@media (max-width: 640px) {
  .grid-w { grid-template-columns: 1fr 1fr; }
  .wcard { min-height: 0; padding: 18px 14px 18px; }
  .wcard .stage { flex: none; height: 240px; min-height: 0; padding-bottom: 12px; }
  .wcard .stage img { max-height: 220px; }
  .wcard .stage.photo { margin: -18px -14px 14px; height: 270px; min-height: 0; padding: 0; }
  .wcard .stage.photo img { height: 270px; }
  .wcard .stage.wide img { max-height: 120px; }
  .wcard h3 { font-size: 19px; } .wcard h3 em { font-size: 15px; }
  .wcard .meta { flex-direction: column; gap: 2px; font-size: 12px; }
  .wcard .caps.fam { font-size: 10px; letter-spacing: .2em; }
  .badge { top: 10px; left: 10px; font-size: 9px; padding: 5px 6px; letter-spacing: .14em; }
  .photo-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-row figure:first-child { grid-column: 1 / -1; }
  .photo-row figure:first-child img { aspect-ratio: 4/3; }
  .path { padding: 24px 0; gap: 8px 16px; }
  .path h3 { font-size: 26px; }
  .quick { grid-template-columns: repeat(3, 1fr) !important; }
  .quick dd { font-size: 14px; }
  .award b { font-size: 32px; }
  .price { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tasting .row { grid-template-columns: 74px 1fr; gap: 14px; }
  .sheet { padding: 24px 20px; } .sheet dl { grid-template-columns: 1fr; } .sheet dt { border: 0; padding-bottom: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; } .sheet dd { padding-top: 2px; }
  .prods { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .ftr .cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .ftr .cols > div:first-child, .ftr .cols > div:last-child { grid-column: 1 / -1; }
  .ftr .legal { flex-direction: column; }
  .btn { padding: 14px 20px; letter-spacing: .18em; }
  .hero .ctas .btn { flex: 1 1 auto; justify-content: center; }
  .press .score { font-size: 120px; }
}
@media (max-width: 520px) {
  .tabs, .map-scroll { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 380px) {
  .wcard .stage img { max-height: 200px; } .wcard .stage { height: 210px; }
  .wcard h3 { font-size: 17px; }
  .hero h1 { font-size: 46px; }
  .seg button { font-size: 12px; }
}
/* ---- telemóvel: backoffice ---- */
@media (max-width: 900px) {
  .side { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 10px; position: sticky; top: 0; z-index: 25; }
  .side::-webkit-scrollbar { display: none; }
  .side .logo { width: auto; flex: none; padding: 4px 10px 4px 2px; }
  .side .logo small { display: none; } .side .logo span { font-size: 18px; }
  .side a { flex: none; white-space: nowrap; padding: 7px 10px; }
  .atop { position: static; height: 54px; gap: 10px; }
  .atop h1 { font-size: 16px; }
  .atop .abtn.pri { padding: 0 10px; }
  .hide-m { display: none; }
  .chart { overflow-x: auto; } .chart svg { min-width: 560px; }
  .fg.inline4, .fg.inline3 { grid-template-columns: 1fr; }
  .card > .hd { flex-wrap: wrap; }
  .kv { grid-template-columns: 110px 1fr; }
  .drawer .dh, .drawer .db { padding-inline: 16px; }
  .stg button { flex: 1 0 33%; border-bottom: 1px solid var(--a-line); }
  .wl { grid-template-columns: 48px 1fr; gap: 6px 12px; }
  .wl .th { width: 48px; height: 48px; grid-row: span 2; }
  .wl-tags { justify-content: flex-start; }
  .tbl th, .tbl td { padding: 10px; }
  .mail .rd { padding: 18px 16px; }
  .mail .lst { max-height: 300px; }
  .modal { padding: 10px; align-items: end; }
  .modal .box { max-height: 94vh; }
  .serp .t { font-size: 18px; }
  .filters .sel { flex: 1 1 140px; }
  .kan { grid-template-columns: repeat(7, 78vw); scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; min-height: 300px; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .kpi { padding: 12px 14px; } .kpi .v { font-size: 21px; }
  .kpi .dlt { font-size: 11.5px; }
  .funnel .fr { grid-template-columns: 96px 1fr 84px; gap: 8px; font-size: 12px; }
  .acont { padding: 12px 10px 80px; gap: 14px; }
  .card > .hd { padding: 12px 14px; } .card > .bd { padding: 14px; }
  .att a, .att div.it { padding: 10px 14px; gap: 10px; }
}

.only-m { display: none; }
@media (max-width: 900px) {
  .only-m { display: inline; } .only-d { display: none; }
  .mail .fold { gap: 4px; padding: 8px; } .mail .fold button { gap: 6px; padding: 7px 10px; }
  .mail .fold button span:last-child:not(:empty) { background: var(--a-soft); border-radius: 9px; padding: 0 6px; font-size: 11.5px; }
  .kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .drawer { width: 100%; }
}

@media (max-width: 900px) {
  .g2.seo-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl.wide { min-width: 680px; }
  .tblw { -webkit-overflow-scrolling: touch; }
}

/* ---------- produção ---------- */
body.site-body { background: var(--ink); }
body.adm-body { background: var(--a-bg); color: var(--a-ink); color-scheme: light; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bone); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
fieldset.fgrid { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset[hidden] { display: none !important; }
.fld .lbl { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.chk a { color: var(--foil-hi); }
.factions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.factions .fnote { margin: 0; }
.ferr { margin-top: 14px; color: #f0b4b4; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.casa-ph { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.casa-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.casa-ph img.w { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.dl { border: 1px solid var(--wine); color: #e9b3b3; padding: 12px 14px; font-size: 14px; max-width: 46ch; }
.prose a { color: var(--foil-hi); }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; background: #0a0908; border: 1px solid var(--ink-3); padding: 18px 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 10px 40px rgba(0,0,0,.5); font-size: 14px; color: var(--bone-2); }
.consent a { color: var(--foil-hi); }
.consent > div { display: flex; gap: 10px; }
.consent .btn { padding: 11px 16px; }
/* página de entrada do backoffice */
.auth { max-width: 400px; margin: 10vh auto; padding: 32px; background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; font: 400 14px/1.5 var(--sans); }
.auth .logo { display: grid; gap: 4px; margin-bottom: 24px; }
.auth .logo small { font: 500 9px/1 var(--sans); letter-spacing: .4em; color: #8d6a2e; }
.auth .logo span { font: 500 26px/1 var(--display); letter-spacing: .14em; }
.auth h1 { font: 500 20px/1.2 var(--sans); margin-bottom: 8px; }
.auth p { color: var(--a-mute); margin-bottom: 16px; }
.auth form { display: grid; gap: 14px; }
.auth label { display: grid; gap: 6px; font-weight: 500; font-size: 13px; }
.auth input { border: 1px solid var(--a-line); border-radius: 7px; padding: 10px 12px; font: inherit; }
.auth button { background: var(--a-ink); color: #fff; border: 0; border-radius: 7px; padding: 12px; font: 500 14px var(--sans); cursor: pointer; }
.auth .err { color: var(--bad); background: #f8e6e6; padding: 10px 12px; border-radius: 7px; }
.auth .muted { margin: 16px 0 0; font-size: 12.5px; }
@media (max-width: 520px) { .casa-ph { gap: 10px; } .consent { left: 8px; right: 8px; bottom: 8px; } }
.wcard[hidden] { display: none; }
.ftr .legal a { font-size: inherit; color: var(--bone-2); }
