/* =====================================================================
   VerdeWeb Clube 0.3 — polimento do site público.
   Mesma identidade (verde, dourado, Exo 2, corte diagonal). Menos caixas, menos maiúsculas,
   hierarquia feita com espaço, tipografia e contraste. Carregado por último.
   ===================================================================== */

:root {
	--vw-muted: #56615b;           /* texto secundário: contraste AA em fundo branco (6,3:1) */
	--vw-soft: #f4f6f5;
}
/* Empate: cinzento mais escuro (o branco sobre #8b9490 tinha contraste 3,1:1) */
.vwc { --vwc-draw: #5f6864 !important; --vwc-draw-strong: #5f6864; }

/* ---------- Tipografia ---------- */
body { font-size: 1.0625rem; line-height: 1.6; letter-spacing: .003em; -webkit-font-smoothing: antialiased; }
@media (max-width: 600px) { body { font-size: 1.03rem; } }
/* As etiquetas por cima dos títulos: mais pequenas e menos espaçadas (não competem com o título) */
.vw-eyebrow { font-size: .74rem !important; letter-spacing: .16em !important; font-weight: 700; }
.vw-h2 { letter-spacing: -.005em; }
/* "Todas as notícias →" em texto normal, não em maiúsculas */
.vw-more a { text-transform: none !important; letter-spacing: 0 !important; font-size: .95rem !important; font-weight: 700; }
/* Títulos das notícias (listas) em frase: ler um título todo em maiúsculas cansa */
.wp-block-query .wp-block-post-title { text-transform: none !important; letter-spacing: -.005em; }
.vw-pagehead__title, .vw-hero__title, .vw-join__title, .vw-h2, .vwc-team__title { text-transform: uppercase; }
/* Botões: mantêm a personalidade, menos espaçamento entre letras */
.wp-element-button, .wp-block-button__link { letter-spacing: .02em !important; }

/* ---------- Foco visível (teclado) ---------- */
.wp-site-blocks a:focus-visible, .wp-site-blocks button:focus-visible, .wp-site-blocks [tabindex]:focus-visible, .wp-site-blocks summary:focus-visible, .wp-site-blocks select:focus-visible, .wp-site-blocks input:focus-visible {
	outline: 3px solid var(--vw-gold) !important; outline-offset: 3px; border-radius: 4px;
}
.vw-section a:focus-visible, .vw-teams-sec a:focus-visible { outline-color: var(--vw-green) !important; }
.skip-link:focus { z-index: 100000; }

/* ---------- Cabeçalho no telemóvel: compacto ---------- */
@media (max-width: 781px) {
	.vw-header { padding-top: .55rem !important; padding-bottom: 1.35rem !important; margin-bottom: -.9rem; }
	.vw-header::before { clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); }
	.vw-header::after { clip-path: polygon(0 100%, 100% 80%, 100% 83%, 0 103%); }
	.vw-brand { gap: .65rem !important; }
	.vw-brand .wp-block-site-logo img { width: 44px !important; }
	.vw-brand .wp-block-site-title { font-size: 1.2rem !important; }
	.vw-header .wp-block-navigation__responsive-container-open { padding: .5rem; margin-right: -.5rem; }
	.vw-header .wp-block-navigation__responsive-container-open svg { width: 30px !important; height: 30px !important; }
	.vw-hero { margin-top: -2.6rem !important; }
	.vw-pagehead { margin-top: -2.6rem !important; padding-top: 4.6rem !important; padding-bottom: 2.2rem !important; }
}
/* Ligações secundárias e "Faz-te sócio": só dentro do menu aberto (telemóvel) */
.vw-nav-extra { display: none !important; }
.vw-header .is-menu-open .vw-nav-extra { display: flex !important; }
.vw-header .is-menu-open .vw-nav-extra .wp-block-navigation-item__content { font-size: 1.05rem !important; font-weight: 600 !important; text-transform: none; letter-spacing: 0; opacity: .9; }
.vw-header .is-menu-open .vw-nav-extra--first { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.16); width: 100%; }
.vw-header .is-menu-open .vw-nav-extra--cta { order: -1; margin-bottom: .6rem; }
.vw-header .is-menu-open .vw-nav-extra--cta .wp-block-navigation-item__content { opacity: 1; background: var(--vw-gold); color: var(--vwc-on-accent, #1a1400) !important; padding: .7rem 1.3rem !important; border-radius: 999px; font-weight: 700 !important; }

/* ---------- Destaque (hero) ---------- */
.vw-hero { background-image: none !important; }
.vw-hero > .vw-hero__bg { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: right center; z-index: 0; max-width: none; }
.vw-hero::before { z-index: 1; } /* o escurecimento fica por cima da fotografia */
.vw-hero > :not(.vw-hero__bg) { z-index: 2; }
@media (max-width: 781px) {
	.vw-hero { padding-top: 18.5rem !important; }
	/* A fotografia fica por cima; o texto começa já no escurecimento (legível), sem desperdiçar altura. */
	.vw-hero > .vw-hero__bg { height: 350px !important; bottom: auto; object-position: 68% center; }
	.vw-hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--vwc-deep2, #0b1a11) 0%, transparent) 0, color-mix(in srgb, var(--vwc-deep2, #0b1a11) 0%, transparent) 150px, color-mix(in srgb, var(--vwc-deep2, #0b1a11) 85%, transparent) 265px, var(--vwc-deep2, #0b1a11) 335px) !important; }
}
.vw-hero__lead { line-height: 1.55; }
/* Cartão do próximo jogo: menos elementos, sem contagem ao segundo */
.vw-hero .vwc-card__org { display: none !important; }
.vw-hero .vwc-card__label { background: transparent !important; color: var(--vw-gold) !important; box-shadow: none !important; position: static !important; transform: none !important; padding: 0 !important; font-size: .74rem !important; letter-spacing: .16em !important; order: -1; flex: 1 1 100%; }
.vw-hero .vwc-card__head { padding-top: 1.25rem !important; border-bottom: 0 !important; }
.vw-hero .vwc-card__comp { font-size: 1.05rem !important; }
.vw-hero .vwc-card__body { margin-top: .6rem !important; }
.vw-hero .vwc-card__time strong { font-size: 2.1rem; }
.vw-hero .vwc-card__when { margin: 0 1.4rem 1.2rem; }
.vw-hero .vwc-card__when b { font-size: 1.05rem; color: #fff; }
.vw-hero .vwc-card__when span { color: rgba(255,255,255,.78); opacity: 1; }
.vw-hero .vwc-card__foot { background: transparent !important; border-top: 1px solid rgba(255,255,255,.1) !important; padding: .9rem 1.4rem 1.1rem !important; font-size: .88rem; }
.vw-hero .vwc-card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- Centro de jogo: menos sombras e caixas dentro de caixas ---------- */
.vw-cc .vwc-cc__panel { box-shadow: 0 16px 36px -30px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, var(--vwc-deep3, #143522) 6%, transparent) !important; border: 0 !important; }
.vwc-cc__panel > header { border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 1.1rem !important; }
.vwc-cc__panel h3 { font-size: 1rem !important; letter-spacing: 0 !important; text-transform: none !important; color: #17201b !important; font-weight: 700 !important; }
.vwc-cc__more { font-weight: 600 !important; color: var(--vw-green) !important; border-bottom: 0 !important; }
.vwc-cc__more:hover { text-decoration: underline; }
.vwc-cc__badge, .vwc-badge { letter-spacing: .02em !important; text-transform: none !important; font-size: .78rem !important; font-weight: 700 !important; }
.vwc-cc__cta { font-weight: 600 !important; }
/* Próximos jogos: linhas simples em vez de cartões cinzentos com data num quadrado verde */
.vwc-cc__next { gap: 0 !important; }
.vwc-cc__next li + li a { border-top: 1px solid var(--vw-line); }
.vwc-cc__next a { background: transparent !important; border-radius: 0 !important; padding: .7rem .1rem !important; grid-template-columns: 2.4rem 32px 1fr auto !important; }
.vwc-cc__next a:hover { background: transparent !important; }
.vwc-cc__next a:hover b { color: var(--vw-green); }
.vwc-cc__date { background: transparent !important; color: #17201b !important; width: auto !important; padding: 0 !important; align-items: flex-start !important; }
.vwc-cc__date strong { font-size: 1.25rem !important; }
.vwc-cc__date small { color: var(--vw-muted); letter-spacing: .04em !important; }
.vwc-cc__next .vwc-logo { width: 32px !important; height: 32px !important; }
.vwc-cc__ha { font-size: .74rem !important; letter-spacing: .02em !important; text-transform: none !important; font-weight: 600 !important; }
/* Classificação resumida */
.vwc-cc__table li { border-radius: 6px; }
.vwc-cc__form > span { letter-spacing: .04em !important; text-transform: none !important; font-size: .82rem !important; font-weight: 600 !important; }
.vwc-cc__form { border-top-style: solid !important; }

/* ---------- Notícias: composição editorial, conforme o número real de notícias ---------- */
.vw-section .vw-news--ed .vw-news__list { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 1.4rem 2rem !important; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .vw-section .vw-news--ed .vw-news__list { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; } }
.vw-section .vw-news--ed .wp-block-post { grid-column: 1 / -1; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; transform: none !important; display: grid !important; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.vw-section .vw-news--ed .wp-block-post:hover { transform: none !important; box-shadow: none !important; }
.vw-section .vw-news--ed .vw-news__img { margin: 0 !important; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1 !important; }
.vw-section .vw-news--ed .vw-news__img img { width: 100%; height: 100% !important; object-fit: cover; aspect-ratio: auto !important; }
.vw-section .vw-news--ed .wp-block-post-featured-image:not(:has(img)) { display: none; }
.vw-section .vw-news--ed .wp-block-post:not(:has(.vw-news__img img)) { grid-template-columns: minmax(0, 1fr); }
.vw-section .vw-news--ed .vw-news__body { position: static !important; background: none !important; padding: 0 !important; }
.vw-section .vw-news--ed .vw-news__meta { gap: .2rem .8rem; align-items: baseline; font-size: .82rem; }
.vw-section .vw-news--ed .vw-news__meta > * { margin: 0 !important; }
.vw-section .vw-news--ed .wp-block-post-date { color: var(--vw-muted) !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 500 !important; font-size: .85rem !important; }
.vw-section .vw-news--ed .vw-news__cat, .vw-section .vw-news--ed .vw-news__cat a { color: var(--vw-green) !important; font-weight: 700; text-decoration: none; font-size: .82rem; }
.vw-section .vw-news--ed .wp-block-post-title { font-size: 1.12rem !important; line-height: 1.3 !important; margin: .2rem 0 0 !important; }
.vw-section .vw-news--ed .wp-block-post-title a { color: var(--vw-ink) !important; text-decoration: none; }
.vw-section .vw-news--ed .wp-block-post-title a:hover { color: var(--vw-green) !important; }
.vw-section .vw-news--ed .vw-news__excerpt { display: none; margin: .5rem 0 0 !important; color: #3c4540; font-size: 1rem; line-height: 1.55; }
.vw-section .vw-news--ed .vw-news__excerpt .wp-block-post-excerpt__more-text { display: none; }
/* A mais recente é a principal: imagem grande, título grande e resumo */
.vw-section .vw-news--ed .wp-block-post:first-child { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.vw-section .vw-news--ed .wp-block-post:first-child .vw-news__img { aspect-ratio: 16 / 9 !important; border-radius: var(--vw-radius); }
.vw-section .vw-news--ed .wp-block-post:first-child .wp-block-post-title { font-size: clamp(1.5rem, 3vw, 2.2rem) !important; line-height: 1.12 !important; font-weight: 800 !important; }
.vw-section .vw-news--ed .wp-block-post:first-child .vw-news__excerpt { display: block; }
@media (min-width: 900px) {
	/* 2 ou mais: a principal à esquerda (7/12), as outras em lista à direita */
	.vw-section .vw-news--ed .vw-news__list:has(> .wp-block-post:nth-child(2)) > .wp-block-post:first-child { grid-column: 1 / span 7; grid-row: 1 / span 3; }
	.vw-section .vw-news--ed .vw-news__list:has(> .wp-block-post:nth-child(2)) > .wp-block-post:not(:first-child) { grid-column: 8 / span 5; }
	.vw-section .vw-news--ed .vw-news__list:has(> .wp-block-post:nth-child(2)) > .wp-block-post:not(:first-child) + .wp-block-post { border-top: 1px solid var(--vw-line); padding-top: 1.4rem; }
	/* Só 1 notícia: imagem e texto lado a lado (sem grelha vazia a fingir que há três) */
	.vw-section .vw-news--ed .vw-news__list > .wp-block-post:only-child:has(.vw-news__img img) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.4rem; align-items: center; }
	.vw-section .vw-news--ed .vw-news__list > .wp-block-post:only-child:not(:has(.vw-news__img img)) { max-width: 46rem; }
}
@media (max-width: 899px) {
	.vw-section .vw-news--ed .wp-block-post:not(:first-child) { border-top: 1px solid var(--vw-line); padding-top: 1.1rem; }
	.vw-section .vw-news--ed .wp-block-post:not(:first-child) { grid-template-columns: 5.5rem minmax(0, 1fr); }
	.vw-section .vw-news--ed .wp-block-post:not(:first-child):not(:has(.vw-news__img img)) { grid-template-columns: minmax(0, 1fr); }
}
/* Principal sem fotografia: texto em destaque sobre uma faixa discreta (não um cartão verde vazio) */
.vw-section .vw-news--ed .wp-block-post:first-child:not(:has(.vw-news__img img)) .vw-news__body { border-left: 4px solid var(--vw-gold) !important; padding-left: 1.2rem !important; }
.vw-section .vw-news--ed .wp-block-post:first-child:not(:has(.wp-block-post-featured-image img)) { min-height: 0 !important; background: none !important; }
.vw-section .vw-news--ed .wp-block-post:not(:first-child):not(:has(.wp-block-post-featured-image img))::before { display: none !important; }
.vw-section .vw-news--ed .wp-block-post:first-child .wp-block-post-title a, .vw-section .vw-news--ed .wp-block-post:first-child .wp-block-post-date { color: inherit; }
.vw-section .vw-news--ed .wp-block-post:first-child .wp-block-post-title a { color: var(--vw-ink) !important; }

/* ---------- Hub das equipas ---------- */
.vw-hub-sec .vw-section__head { margin-bottom: 1.4rem !important; }

/* ---------- Faixa de números ---------- */
.vw-fact span { letter-spacing: .06em !important; font-size: .82rem !important; opacity: .85 !important; text-transform: none !important; }

/* ---------- Equipas: o tema já não põe moldura nem sombra (o cartão é a fotografia) ---------- */
.vwc-teams__grid { gap: 1rem !important; }
.vwc-team a { box-shadow: none !important; border-radius: var(--vw-radius) !important; }
.vwc-team a:hover { transform: none !important; box-shadow: none !important; }
.vwc-team__img { aspect-ratio: auto !important; }
@media (max-width: 600px) {
	.vwc-teams__grid { grid-template-columns: 1fr 1fr !important; gap: .7rem !important; }
	.vwc-teams__grid.is-few { grid-template-columns: 1fr !important; }
	.vwc-team a { min-height: 9.5rem !important; }
	.vwc-team__body { padding: .9rem .95rem 1rem !important; }
	.vwc-team__title { font-size: 1.22rem !important; }
	.vwc-team__comp { font-size: .8rem !important; }
	.vwc-team__cta { font-size: .82rem !important; }
}

/* ---------- Sócios (faixa final) ---------- */
.vw-join__lead { line-height: 1.55; }

/* ---------- Tabelas ---------- */
.vwc-table thead th { letter-spacing: .04em !important; }

/* Nomes compridos no cartão do próximo jogo (telemóvel): letra um pouco menor em vez de partir a palavra */
@media (max-width: 480px) {
	.vwc-card .vwc-side__name { font-size: .86rem !important; overflow-wrap: normal !important; word-break: normal !important; hyphens: manual !important; }
	.vwc-card__body { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; gap: .3rem !important; }
	.vw-hero .vwc-card__time strong { font-size: 1.8rem !important; }
	.vw-hero__buttons { gap: .6rem !important; }
	.vw-hero__buttons .wp-block-button__link { padding: .75rem 1.25rem !important; font-size: .82rem !important; }
}

/* ---------- Imagens mais leves (mesmo aspeto) ---------- */
/* Faixa "Faz-te sócio": 1536 px no computador e 768 px no telemóvel, em vez do original (176 KB) */
.vw-join { background-image: var(--vw-img-join, none) !important; }
@media (max-width: 781px) { .vw-join { background-image: var(--vw-img-join-sm, var(--vw-img-join, none)) !important; } }
/* Marca de água do emblema nos cabeçalhos das páginas: a versão de 300 px (8% de opacidade), não a de 512 px / 205 KB */
.vw-pagehead::after { background-image: var(--vw-img-emblem, none) !important; }

/* ---------- Contraste ---------- */
.vw-footer .vw-small { color: rgba(255,255,255,.7) !important; }
.vw-footer { color: rgba(255,255,255,.8); }
/* (o tema antigo punha a 1.ª notícia a ocupar 2 colunas de 3; aqui é sempre a linha inteira, salvo quando há mais notícias) */
.vw-section .vw-news--ed .wp-block-post:first-child { grid-column: 1 / -1; grid-row: auto; }
.skip-link.screen-reader-text:focus { outline: 3px solid var(--vw-gold) !important; outline-offset: 2px; background: #fff; color: var(--vwc-deep2, #10271a); font-weight: 700; }

/* ---------- Sócios: vantagens sem moldura (número + título + texto, separados por uma linha) ---------- */
.vw-perks > .wp-block-column { background: transparent !important; border: 0 !important; border-top: 2px solid var(--vw-line) !important; border-radius: 0 !important; padding: 1.1rem 0 0 !important; }
.vw-perks h3 { text-transform: none !important; font-size: 1.15rem !important; }

/* ---------- Patrocinadores na faixa do rodapé (fundo branco): cinzento → cor original ---------- */
.vw-sponsors-band .vwc-sponsors.is-white .vwc-sponsor img { filter: grayscale(1) !important; opacity: .6 !important; }
.vw-sponsors-band .vwc-sponsors.is-white .vwc-sponsor__name { color: var(--vw-muted); }
@media (hover: hover) {
	.vw-sponsors-band .vwc-sponsors .vwc-sponsor:hover img,
	.vw-sponsors-band .vwc-sponsors .vwc-sponsor:focus-within img { filter: none !important; opacity: 1 !important; }
}
.vw-sponsors-band .vwc-sponsors .vwc-sponsor.is-seen img { filter: none !important; opacity: 1 !important; }

/* ---------- Patrocinadores: título centrado com os logótipos ---------- */
.vw-sponsors-band .vw-eyebrow { text-align: center !important; margin-bottom: 2rem !important; }

/* ---------- Redes sociais: rodapé e barra de cima ---------- */
.vw-footer__social { margin-top: 1.25rem !important; }
.vw-topbar__right { gap: 1.1rem !important; align-items: center; }
.vw-topbar__social .vwc-social { gap: .15rem; }
.vw-topbar__social .vwc-social a { min-width: 30px; height: 30px; padding: 0 .3rem; background: transparent; color: rgba(255,255,255,.75); }
.vw-topbar__social .vwc-social a:hover, .vw-topbar__social .vwc-social a:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.vw-topbar__social .vwc-ico { width: 16px; height: 16px; }

/* 0.3.5 — Notícias da página inicial: todas do mesmo tamanho (sem destaque na primeira). */
.vw-section .vw-news--ed .vw-news__list > .wp-block-post,
.vw-section .vw-news--ed .vw-news__list > .wp-block-post:first-child,
.vw-section .vw-news--ed .vw-news__list:has(> .wp-block-post:nth-child(2)) > .wp-block-post:first-child,
.vw-section .vw-news--ed .vw-news__list:has(> .wp-block-post:nth-child(2)) > .wp-block-post:not(:first-child),
.vw-section .vw-news--ed .vw-news__list > .wp-block-post:only-child:has(.vw-news__img img) {
	grid-column: auto !important; grid-row: auto !important; grid-template-columns: minmax(0, 1fr) !important; gap: .9rem !important;
	border-top: 0 !important; padding-top: 0 !important; max-width: none !important; align-items: start !important;
}
.vw-section .vw-news--ed .vw-news__list { grid-template-columns: minmax(0, 1fr) !important; gap: 1.8rem 1.6rem !important; }
@media (min-width: 600px) { .vw-section .vw-news--ed .vw-news__list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1000px) { .vw-section .vw-news--ed .vw-news__list { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.vw-section .vw-news--ed .wp-block-post .vw-news__img,
.vw-section .vw-news--ed .wp-block-post:first-child .vw-news__img { aspect-ratio: 16 / 10 !important; border-radius: 12px !important; }
.vw-section .vw-news--ed .wp-block-post .wp-block-post-title,
.vw-section .vw-news--ed .wp-block-post:first-child .wp-block-post-title { font-size: 1.12rem !important; line-height: 1.3 !important; font-weight: 800 !important; }
.vw-section .vw-news--ed .wp-block-post .vw-news__excerpt,
.vw-section .vw-news--ed .wp-block-post:first-child .vw-news__excerpt { display: none !important; }
.vw-section .vw-news--ed .wp-block-post:first-child:not(:has(.vw-news__img img)) .vw-news__body { border-left: 0 !important; padding-left: 0 !important; }
/* Notícia sem imagem: o mesmo espaço de imagem, em verde do clube, para todas ficarem alinhadas. */
.vw-section .vw-news--ed .vw-news__list > .wp-block-post:not(:has(.wp-block-post-featured-image img))::before {
	content: "" !important; display: block !important; aspect-ratio: 16 / 10; border-radius: 12px;
	background: linear-gradient(135deg, var(--vw-green), var(--vw-green-deep)) !important;
}
.vw-section .vw-news--ed .vw-news__list > .wp-block-post:first-child:not(:has(.wp-block-post-featured-image img)) { min-height: 0 !important; background: none !important; }
.vw-section .vw-news--ed .vw-news__list > .wp-block-post .vw-news__img { height: auto !important; width: 100% !important; overflow: hidden !important; }
.vw-section .vw-news--ed .vw-news__list > .wp-block-post .vw-news__img img { width: 100% !important; height: 100% !important; object-fit: cover !important; aspect-ratio: auto !important; }
.vw-section .vw-news--ed .vw-news__meta { min-height: 1.4rem; align-items: center !important; }
.vw-section .vw-news--ed .vw-news__list > .wp-block-post { margin: 0 !important; }
