/* GDS 2.0 — paleta retirada do logotipo */
:root {
  --ink: #0a0a0a;          /* fundo preto */
  --char: #161616;         /* escudo carvão */
  --char-2: #1f1f1f;
  --line: #2c2a26;
  --gold: #c9a227;         /* dourado principal */
  --gold-light: #f0d57a;
  --gold-deep: #8a6514;
  --wine: #6e1420;         /* vinho no copo */
  --wine-bright: #9c2234;
  --silver: #b9b8b4;       /* traço da garrafa */
  --text: #ece6d8;
  --muted: #9d978a;
  --gold-grad: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201,162,39,.08), transparent 60%),
    radial-gradient(800px 500px at 100% 40%, rgba(110,20,32,.10), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* textura subtil como o escudo */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--wrap), 92vw); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* tipografia */
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: .04em; line-height: 1.15; margin: 0 0 .6em; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.6));
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .28em; font-size: .75rem; color: var(--gold); font-weight: 500; }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-style: italic; color: var(--text); line-height: 1.45; }
.muted { color: var(--muted); }

/* ornamento dourado */
.ornament { display: flex; align-items: center; gap: .9rem; color: var(--gold); margin: 1.2rem 0 2rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold), var(--gold-deep), transparent); }
.ornament span { font-size: .8rem; letter-spacing: .3em; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .ornament { max-width: 320px; margin: .8rem auto 0; }

/* cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); }
.brand img { height: 50px; width: auto; }
.brand strong { font-family: var(--display); font-size: 1.05rem; letter-spacing: .12em; display: block; line-height: 1.1; }
.brand small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }
.lang { border: 1px solid var(--gold-deep); padding: .25rem .6rem !important; border-radius: var(--radius); }
.menu-toggle { display: none; background: none; border: 1px solid var(--gold-deep); color: var(--gold-light); padding: .45rem .7rem; border-radius: var(--radius); font: inherit; cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: .5rem 0 1rem; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 92vw; }
  .nav-links a { display: block; padding: .8rem 0; }
  .brand small { display: none; }
}

/* hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-crest { position: relative; justify-self: center; }
.hero-crest img { width: min(380px, 70vw); filter: drop-shadow(0 30px 60px rgba(0,0,0,.8)) drop-shadow(0 0 50px rgba(201,162,39,.12)); }
.hero-crest::before { content: ""; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(201,162,39,.18), transparent); filter: blur(30px); z-index: -1; }
.hero h1 { margin-top: .4rem; }
.hero .lede { max-width: 34ch; }
.btns { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; padding: .95rem 1.6rem; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--gold);
}
.btn-gold { background: var(--gold-grad); color: #1a1405; border-color: var(--gold-light); box-shadow: 0 8px 30px rgba(201,162,39,.18), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-gold:hover { color: #000; filter: brightness(1.08); }
.btn-ghost { color: var(--gold-light); background: transparent; }
.btn-ghost:hover { background: rgba(201,162,39,.1); color: #fff; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .lede { margin: 0 auto; } .btns { justify-content: center; } .hero-crest { order: -1; } .hero-crest img { width: 240px; } }

/* números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 2rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.stat span { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

section.block { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.alt { background: linear-gradient(180deg, rgba(31,31,31,.55), rgba(22,22,22,.2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* cartões de vinho */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--char); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-deep); box-shadow: 0 18px 40px rgba(0,0,0,.6); color: var(--text); }
.card-img { aspect-ratio: 4/3; background: #0f0f0f; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.92); transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card h3 { font-size: .98rem; margin: 0; letter-spacing: .03em; }
.card .meta { font-size: .82rem; color: var(--muted); }
.score {
  position: absolute; z-index: 2; top: .8rem; right: .8rem; min-width: 58px; text-align: center; padding: .35rem .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #1a1405; background: var(--gold-grad);
  border-radius: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.6);
}
.score small { display: block; font-family: var(--sans); font-size: .55rem; letter-spacing: .15em; font-weight: 500; }
.score.none { background: var(--char-2); color: var(--muted); border: 1px solid var(--line); }
.tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; padding: .15rem .55rem; border-radius: 2px; border: 1px solid var(--line); color: var(--silver); }
.tag.tinto { border-color: var(--wine-bright); color: #e9a3ad; }
.tag.branco { border-color: #8f8456; color: #e5d9a6; }
.tag.rose { border-color: #b46a7a; color: #f0b9c5; }
.tag.espumante { border-color: #7d8a95; color: #cfdbe4; }
.tag.fortificado { border-color: #8a5a2b; color: #e3b98d; }

/* rankings */
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank-list li { counter-increment: r; display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: .85rem .4rem; border-bottom: 1px solid var(--line); }
.rank-list li::before { content: counter(r); font-family: var(--display); font-size: 1.3rem; color: var(--gold); text-align: center; }
.rank-list li:nth-child(-n+3)::before { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.7rem; }
.rank-list a { color: var(--text); font-weight: 500; }
.rank-list a:hover { color: var(--gold-light); }
.rank-list .meta { display: block; font-size: .82rem; color: var(--muted); }
.rank-list .pts { font-family: var(--display); font-size: 1.15rem; color: var(--gold-light); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
@media (max-width: 900px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* painel com moldura dourada (como o escudo) */
.framed { position: relative; background: var(--char); border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: inset 0 0 0 4px var(--char), inset 0 0 0 5px rgba(201,162,39,.35); }

/* provas */
.session { display: grid; grid-template-columns: 110px 1fr; gap: 1.4rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.session time { font-family: var(--display); color: var(--gold); font-size: .95rem; line-height: 1.3; }
.session time b { display: block; font-size: 1.8rem; }
.session h3 a { color: var(--text); }
.session h3 a:hover { color: var(--gold-light); }
.year-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.year-nav a { font-family: var(--display); padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 2px; color: var(--silver); }
.year-nav a:hover { border-color: var(--gold); color: var(--gold-light); }
.year-title { margin-top: 3rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gold-deep); }
.event { display: flex; gap: 1.4rem; align-items: center; }
.event .date { flex: 0 0 auto; width: 84px; height: 92px; display: grid; place-items: center; text-align: center; border: 1px solid var(--gold); border-radius: var(--radius); font-family: var(--display); color: var(--gold-light); line-height: 1.1; }
.event .date b { font-size: 2rem; display: block; }

/* página de vinho */
.wine-hero { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(2rem, 5vw, 4rem); padding: 3rem 0 4rem; align-items: start; }
.wine-hero .photo { background: #0f0f0f; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wine-hero .photo img { width: 100%; }
.big-score { display: inline-flex; align-items: baseline; gap: .4rem; margin: .4rem 0 1.4rem; }
.big-score b { font-family: var(--display); font-size: 3.4rem; line-height: 1; }
.big-score span { color: var(--muted); }
.verdict { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-light); }
dl.specs { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 2rem 0; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
dl.specs dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); padding-top: .2rem; }
dl.specs dd { margin: 0; }
.notes { font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; }
.notes::first-letter { font-family: var(--display); font-size: 3.2rem; float: left; line-height: .9; padding: .3rem .5rem 0 0; color: var(--gold); }
.crumbs { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2rem; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--gold-light); }
.notice { font-size: .85rem; color: var(--muted); border-left: 2px solid var(--wine-bright); padding: .4rem 0 .4rem .9rem; margin: 1rem 0; }
.wine-hero .photo { position: sticky; top: 96px; }
.wine-hero .photo img { max-height: 70vh; object-fit: cover; }
@media (max-width: 700px) { .wine-hero { grid-template-columns: 1fr; } .wine-hero .photo { position: static; } .wine-hero .photo img { max-height: 340px; } }

/* filtros do arquivo */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) 1fr; gap: .8rem; margin-bottom: 1.2rem; }
.filters input, .filters select {
  width: 100%; background: var(--char); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; font: inherit; font-size: .9rem;
}
.filters input:focus, .filters select:focus { border-color: var(--gold); outline: none; }
.filters label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.results-bar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.more { display: flex; justify-content: center; margin-top: 2.5rem; }
@media (max-width: 980px) { .filters { grid-template-columns: 1fr 1fr; } .filters .q { grid-column: 1 / -1; } }

/* escala */
.scale { list-style: none; padding: 0; margin: 0; }
.scale li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.scale b { font-family: var(--display); color: var(--gold-light); }
.prose p { margin: 0 0 1.1em; }
.prose { max-width: 70ch; }

/* rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; margin-top: 4rem; background: #070707; }
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.foot img { height: 84px; }
.foot .motto { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.foot nav a { color: var(--muted); } .foot nav a:hover { color: var(--gold-light); }
.copy { text-align: center; color: #5f5b53; font-size: .78rem; margin-top: 2.5rem; letter-spacing: .08em; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* animação de entrada */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .hero-crest img { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* ---- v2: funcionalidades recuperadas do site original ---- */
.nav-links { gap: 1.3rem; }
.filters { grid-template-columns: 2fr repeat(4, 1fr); }
@media (max-width: 980px) { .filters { grid-template-columns: 1fr 1fr; } }
.link-btn { background: none; border: 0; color: var(--gold-light); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tag.offer { border-color: var(--gold-deep); color: var(--gold-light); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.6rem 0 .5rem; }
.chip { font-size: .78rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--silver); background: var(--char); }
.chip:hover { border-color: var(--gold); color: var(--gold-light); }
ul.links { list-style: none; padding: 0; margin: .5rem 0; }
ul.links li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
ul.links.cols { columns: 2; column-gap: 2rem; }
ul.links.cols li { break-inside: avoid; }
@media (max-width: 700px) { ul.links.cols { columns: 1; } }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 2rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share a, .share button { font: inherit; font-size: .82rem; color: var(--silver); background: none; border: 1px solid var(--line); border-radius: 2px; padding: .3rem .7rem; cursor: pointer; }
.share a:hover, .share button:hover { color: var(--gold-light); border-color: var(--gold); }
.comments ul { list-style: none; padding: 0; margin: 1rem 0; }
.comment { padding: 1rem 1.2rem; background: var(--char); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; }
.comment.reply { margin-left: 2rem; border-left: 2px solid var(--gold-deep); }
.comment p { margin: .3rem 0 0; }
.comment-meta { font-size: .8rem; color: var(--muted); }
.comment-meta b { color: var(--gold-light); font-weight: 500; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 0 3rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.post-nav a:hover { border-color: var(--gold-deep); }
.post-nav small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
.post-nav .next { text-align: right; }
.map { width: 100%; height: 340px; border: 1px solid var(--gold-deep); border-radius: var(--radius); filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9); }
.club-photo { border: 1px solid var(--gold-deep); border-radius: var(--radius); margin-bottom: 1rem; }
.session-photo { border-radius: var(--radius); margin-bottom: 1rem; }
.foot-contact { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; }
.prose.original img { border-radius: var(--radius); margin: 1rem 0; height: auto; }
.prose.original table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0; }
.prose.original td, .prose.original th { border-bottom: 1px solid var(--line); padding: .45rem .5rem; text-align: left; }
.prose.original tr:first-child td { color: var(--gold); text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; }
.prose.original a { text-decoration: underline; text-underline-offset: 3px; }
@media print {
  .site-header, .site-footer, .share, .post-nav, .chips, .block.alt { display: none !important; }
  body { background: #fff; color: #000; } body::before { display: none; }
  .gold-text { color: #000 !important; -webkit-text-fill-color: #000; background: none; filter: none; }
  .wine-hero { grid-template-columns: 240px 1fr; }
}

[hidden] { display: none !important; }
.nav-links a, .brand small { white-space: nowrap; }
@media (max-width: 1160px) { .brand small { display: none; } }
@media (max-width: 1000px) and (min-width: 861px) { .nav-links { gap: .9rem; } .nav-links a { font-size: .74rem; letter-spacing: .1em; } }
/* seletor de línguas */
.langs { display: flex; gap: 2px; border: 1px solid var(--gold-deep); border-radius: 4px; padding: 2px; }
.langs a { font-size: .7rem !important; letter-spacing: .08em !important; padding: .2rem .45rem !important; border: 0 !important; border-radius: 2px; color: var(--muted) !important; }
.langs a:hover { color: var(--gold-light) !important; }
.langs a[aria-current="page"] { background: var(--gold-grad); color: #1a1405 !important; }
@media (max-width: 860px) { .nav-links .langs { width: auto; margin-top: .6rem; } .nav-links .langs a { display: inline-block; padding: .4rem .7rem !important; } }

/* contador de visitas (Flag Counter) */
.visits { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; align-items: start; }
.visits figure { margin: 0; padding: 1.2rem; }
.visits figcaption { margin-bottom: .8rem; }
.visits img { width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 900px) { .visits { grid-template-columns: 1fr; } }
.foot-counter { display: flex; justify-content: center; margin-top: 2rem; opacity: .8; }
.foot-counter img { height: auto; max-width: 100%; }
