/*
Theme Name: Atlético Clube do Cacém
Theme URI: https://accacem.pt
Author: Tu Nome / Agência
Description: Tema personalizado para o Atlético Clube do Cacém.
Version: 1.0
Text Domain: acc-cacem
*/

:root {
  --clube-amarelo: #FFD400;
  --clube-azul: #0070C0;
  --clube-escuro: #092C4C;
  --clube-vermelho: #E30613;
  --fundo-alt: #F4F7FA;
  --texto-suave: #64748B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, .eyebrow, .ribbon, .brand-name b, .produto-nome {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ecrã de Entrada */
html.sem-scroll,
html.sem-scroll body {
  overflow: hidden;
  height: 100%;
}

.entrada-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #092C4C 0%, #003a6e 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.entrada-overlay.saiu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entrada-conteudo {
  text-align: center;
  color: #FFFFFF;
  padding: 20px;
}

.entrada-logo {
  height: 140px;
  width: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}

.entrada-nome {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.entrada-desde {
  font-size: 13px;
  color: #8fa3b5;
  margin-bottom: 32px;
}

.entrada-btn {
  font-size: 16px;
  padding: 14px 52px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .entrada-logo {
    height: 100px;
  }
  .entrada-nome {
    font-size: 19px;
  }
}

/* Fita diagonal posicionada entre o carrinho e os contactos (abaixo da barra do WordPress) */
.faixa-diagonal {
  position: fixed;
  top: 32px;
  right: -100px;
  width: 450px;
  height: 450px;
  pointer-events: none;
  z-index: 9;
  overflow: hidden;
}

.faixa-diagonal::before {
  content: "ATLÉTICO CLUBE DO CACÉM DESDE 1941";
  position: absolute;
  top: 150px;
  left: -50px;
  width: 550px;
  background-color: var(--clube-vermelho);
  color: var(--clube-amarelo);
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 0;
  transform: rotate(45deg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  /* Em telemóvel a caixa ficava empurrada cada vez mais para fora do
     ecrã (right em px fixo), cortando o texto a meio. Aqui usa-se uma
     caixa mais pequena, com texto reduzido, mantida dentro do ecrã. */
  .faixa-diagonal {
    top: 54px;
    right: -75px;
    width: 220px;
    height: 220px;
  }
  .faixa-diagonal::before {
    content: "DESDE 1941";
    font-size: 12px;
    width: 300px;
    left: -40px;
    top: 70px;
    letter-spacing: 2px;
    padding: 6px 0;
  }
}

/* Header */
header {
  background: #092C4C;
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 45px;
  width: auto;
}

.brand-name b {
  display: block;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.brand-name span {
  font-size: 12px;
  color: #8fa3b5;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #FFD400;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  background: #FFD400;
  color: #092C4C;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: #E30613;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 11px;
}

.burger {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #092C4C 0%, #003a6e 100%);
  color: #FFFFFF;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.ribbon {
  background: #FFD400;
  color: #092C4C;
  display: inline-block;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 20px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: #FFD400;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.lede {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #FFD400;
  color: #092C4C;
}

.btn-outline {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

.crest-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.crest {
  height: 120px;
  width: auto;
  margin-bottom: 16px;
}

.club-name {
  font-size: 20px;
  font-weight: 700;
}

.club-since {
  font-size: 12px;
  color: #8fa3b5;
  margin-bottom: 16px;
}

.crest-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 16px 0;
}

.crest-tags {
  display: flex;
  justify-content: space-around;
  font-size: 13px;
  color: #cbd5e1;
}

/* Secções Gerais */
section {
  padding: 60px 0;
}

.section-alt {
  background-color: #F4F7FA;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.section-head h2 {
  font-size: 32px;
  color: #092C4C;
  margin-top: 5px;
}

/* Modalidades */
.modalidades {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mod-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-top: 4px solid #0070C0;
}

.mod-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0070C0;
  margin-bottom: 10px;
}

.mod-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #092C4C;
}

.mod-card p {
  color: #64748B;
  font-size: 15px;
  margin-bottom: 20px;
}

.mini-link {
  color: #092C4C;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.mini-link:hover {
  color: #0070C0;
}

/* Sobre Nós */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.sobre-quote {
  font-size: 28px;
  font-family: 'Oswald', sans-serif;
  color: #092C4C;
  line-height: 1.3;
  border-left: 4px solid #FFD400;
  padding-left: 20px;
}

.sobre-body p {
  color: #64748B;
  margin-bottom: 16px;
}

.valores-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.valor-item {
  background: #FFFFFF;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #092C4C;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* Loja */
.loja-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.loja-filters {
  display: flex;
  gap: 8px;
}

.filter-chip {
  background: #FFFFFF;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.filter-chip.active {
  background: #092C4C;
  color: #FFFFFF;
  border-color: #092C4C;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.produto-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.produto-media {
  background: #F8FAFC;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.produto-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #E30613;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.produto-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.produto-cat {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 6px;
}

.produto-nome {
  font-size: 18px;
  color: #092C4C;
  margin-bottom: 12px;
}

.size-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.size-chip {
  border: 1px solid #cbd5e1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.size-chip.selected {
  background: #092C4C;
  color: #FFFFFF;
  border-color: #092C4C;
}

.produto-preco {
  font-size: 18px;
  font-weight: 700;
  color: #092C4C;
  margin-bottom: 16px;
  margin-top: auto;
}

.add-cart-btn {
  background: #092C4C;
  color: #FFFFFF;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.add-cart-btn:hover {
  background: #0070C0;
}

.add-cart-btn.added {
  background: #10B981;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  background: #FFFFFF;
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

summary {
  font-weight: 600;
  color: #092C4C;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details p {
  color: #64748B;
  margin-top: 12px;
  font-size: 14px;
}

/* Contactos */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-card {
  background: #092C4C;
  color: #FFFFFF;
  padding: 40px;
  border-radius: 8px;
}

.contact-card h3 {
  font-size: 26px;
  margin-bottom: 20px;
}

.contact-line {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-row a {
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
}

.map-card {
  background: #FFFFFF;
  border: 1px solid #cbd5e1;
  padding: 30px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

/* Carrinho Modal */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
}

.cart-overlay.open {
  display: block;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-modal.open {
  right: 0;
}

.cart-header {
  padding: 20px;
  background: #092C4C;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-cart {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
}

.cart-items-list {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
}

.empty-msg {
  color: #64748B;
  text-align: center;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F4F7FA;
}

.cart-item-info h4 {
  font-size: 15px;
  color: #092C4C;
}

.cart-item-info span {
  font-size: 12px;
  color: #64748B;
}

.cart-item-price {
  font-weight: 700;
  color: #092C4C;
}

.remove-item {
  background: none;
  border: none;
  color: #E30613;
  font-size: 11px;
  cursor: pointer;
}

.cart-footer {
  padding: 20px;
  background: #F4F7FA;
  border-top: 1px solid #cbd5e1;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: #092C4C;
  margin-bottom: 16px;
}

.payment-section h4 {
  font-size: 13px;
  margin-bottom: 8px;
  color: #092C4C;
}

.payment-options {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pay-method {
  flex: 1;
  border: 1px solid #cbd5e1;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  background: #FFFFFF;
}

.pay-method.selected {
  border-color: #092C4C;
  background: #092C4C;
  color: #FFFFFF;
}

.checkout-btn {
  width: 100%;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

/* Footer Geral */
footer {
  background: #05192b;
  color: #FFFFFF;
  padding: 60px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #FFD400;
}

.footer-grid a {
  display: block;
  color: #8fa3b5;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8fa3b5;
}

@media (max-width: 768px) {
  .hero-inner, .modalidades, .sobre-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .burger {
    display: block;
  }

  /* O JS liga/desliga esta classe no clique do burger; faltava dizer
     ao CSS o que mostrar quando o menu está aberto. */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #092C4C;
    padding: 16px 20px 24px;
    gap: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  }

  .main-nav.open a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Cabeçalho estava a ficar apertado: logo + nome + botão carrinho + burger
     não cabiam numa linha em telemóveis. */
  .brand-name span {
    display: none;
  }

  .brand-logo {
    height: 36px;
  }

  .cart-btn {
    padding: 8px 10px;
    font-size: 13px;
  }

  .cart-btn .cart-label {
    display: none;
  }

  .hero {
    padding: 40px 0 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .lede {
    font-size: 15px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .sobre-quote {
    font-size: 22px;
  }

  .contact-card,
  .map-card {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .produtos-grid {
    grid-template-columns: 1fr;
  }

  .loja-header {
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .entrada-btn {
    padding: 12px 36px;
  }

  .crest-panel {
    padding: 20px;
  }

  .nav-actions {
    gap: 8px;
  }
}

/* ---------- Logótipo do header como ligação à página inicial ---------- */
a.brand {
  color: inherit;
  text-decoration: none;
}

/* ---------- Página Escalões ---------- */
.escaloes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.escalao-card {
  background: #FFFFFF;
  border: 1px solid #E1E7EE;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.escalao-head {
  background: var(--clube-escuro);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--clube-amarelo);
}

.escalao-head h3 {
  font-size: 22px;
}

.escalao-idade {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  color: var(--clube-amarelo);
}

.escalao-treinadores {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.treinador {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  max-width: 160px;
}

.treinador-foto {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--clube-azul);
  margin-bottom: 6px;
}

.treinador-foto--vazia {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fundo-alt);
  color: #B6C2D0;
}

.treinador-nome {
  font-weight: 600;
  font-size: 15px;
}

.treinador-papel {
  font-size: 12px;
  color: var(--texto-suave);
}

.escalao-treinos {
  margin-top: auto;
  padding: 16px 20px 20px;
  background: var(--fundo-alt);
  border-top: 1px solid #E1E7EE;
}

.escalao-treinos h4 {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--clube-azul);
  margin-bottom: 8px;
}

.escalao-treinos ul {
  list-style: none;
}

.escalao-treinos li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed #D5DDE6;
}

.escalao-treinos li:last-child {
  border-bottom: 0;
}

.escalao-treinos li b {
  font-weight: 600;
  color: var(--clube-escuro);
}


/* ===== CORREÇÕES RESPONSIVAS — colar no FIM do style.css ===== */

/* Imagens nunca maiores que o contentor (as miniaturas do blog vinham com
   largura fixa de ~768px e rebentavam o ecrã no telemóvel) */
img { max-width: 100%; height: auto; }

/* Evita scroll horizontal sem partir o header sticky
   (overflow-x:hidden no body desativaria o sticky; clip não) */
body { overflow-x: clip; }

/* Filhos de grelhas podem encolher em vez de empurrar a largura */
.hero-inner > *,
.sobre-grid > *,
.contact-grid > *,
.footer-grid > *,
.modalidades > * { min-width: 0; }

/* Colunas automáticas: 1 cartão ocupa a largura toda, vários repartem-se */
.modalidades { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

/* Contactos: <b> era inline e colava o título ao valor ("Telefone21 918...") */
.contact-line b { display: block; }
.contact-line > div { min-width: 0; overflow-wrap: anywhere; }

/* ---------- BLOG (não tinha CSS nenhum) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.blog-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #F8FAFC;
  overflow: hidden;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-media-fallback img {
  width: auto;
  height: 60%;
  object-fit: contain;
}

.blog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-body p {
  color: #64748B;
  font-size: 14px;
  margin-bottom: 16px;
}

.blog-body .mini-link { margin-top: auto; }

.produto-nome a {
  color: inherit;
  text-decoration: none;
}

/* O botão "outline" é branco; na secção branca do blog ficava invisível */
#blog .btn-outline {
  border-color: var(--clube-escuro);
  color: var(--clube-escuro);
}

/* ---------- TABLET ---------- */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- TELEMÓVEL ---------- */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }

  /* Header mais compacto */
  .brand { min-width: 0; gap: 8px; }
  .brand-name b { font-size: 15px; line-height: 1.15; }

  /* Etiquetas do emblema: uma por linha em vez de lado a lado */
  .crest-tags {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .section-head h2 { font-size: 26px; }

  details { padding: 14px 16px; }
  summary { gap: 12px; font-size: 15px; }


  /* Telemóveis só mostram a 1.ª página do PDF no iframe; os botões já chegam */
  .pdf-embed { display: none; }
}

@media (max-width: 600px) {
  .valores-list { grid-template-columns: 1fr; }

  /* 16px evita o zoom automático do iPhone ao tocar num campo */
  input, select, textarea { font-size: 16px !important; }
}


/* ---------- Ajustes finais (todas as páginas) ---------- */
.mod-links, .sobre-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sobre-links { margin-top: 20px; }

/* Botão "outline" para fundos claros (cartões brancos) */
.btn-outline-dark {
  border: 2px solid var(--clube-escuro);
  color: var(--clube-escuro);
}

/* <header> dos cartões de escalão herdava o estilo sticky do header do site */
.escalao-head { position: static; box-shadow: none; }

/* Chips de valor do donativo e filtros quebram linha em vez de sair do ecrã */
.loja-filters { flex-wrap: wrap; }

/* Ecrã de entrada: se o ecrã for muito baixo (telemóvel deitado) pode fazer scroll */
.entrada-overlay { overflow-y: auto; }

/* Mais contraste nos textos secundários */
.sobre-body p, .mod-card p, .blog-body p, details p { color: #4B5B70; }

/* Tabelas/linhas longas nunca alargam a página */
.contact-line, .map-card, .footer-grid > div { overflow-wrap: anywhere; }

/* Fita "DESDE 1941": sempre visível, mas em telemóvel é um canto pequeno
   colado ao header, para não tapar o texto */
@media (max-width: 768px) {
  .faixa-diagonal {
    top: 80px;
    right: 0;
    width: 100px;
    height: 100px;
  }
  .faixa-diagonal::before {
    content: "DESDE 1941";
    top: 21px;
    left: -10px;
    width: 160px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 1px;
    padding: 4px 0;
  }
}

/* O texto da fita vem do ::before; o <span> interno não deve aparecer */
.faixa-diagonal span { display: none; }


/* Banner de cookies */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--clube-escuro);
  color: #FFFFFF;
  border-top: 3px solid var(--clube-amarelo);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-botoes { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-botoes .btn { padding: 10px 20px; font-size: 14px; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.cookie-botoes .btn-primary { border-color: #FFD400; }
.cookie-botoes .btn-outline { background: transparent; border-color: #FFFFFF; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-botoes { justify-content: center; }
}

/* Crédito no rodapé */
.footer-credito { color: #FFD400; text-decoration: none; }
.footer-credito:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 8px; }
}

.cookie-banner p a { color: #FFD400; text-decoration: underline; }
.politica { max-width: 760px; }
.politica h3 { margin: 28px 0 8px; color: var(--clube-escuro); }
.politica p { line-height: 1.7; color: #334155; }
.politica a { color: var(--clube-azul); }
.politica-data { color: var(--texto-suave); font-size: 13px; margin-top: 32px; }
