/* ============================================================
   JOGAR TABULEIRO — styles.css
   Ordem: base tipográfica → layout → componentes → novas secções
   ============================================================ */


/* ── 1. BASE TIPOGRÁFICA ────────────────────────────────────────────────────
   Define font, tamanho e line-height uma única vez, no topo.
   Todas as regras abaixo herdam daqui.
   ────────────────────────────────────────────────────────────────────────── */

html {
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;        /* 16px */
  line-height: 1.6;
  color: #2f2f2f;
  background-color: #F7F0E3;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Botões e inputs NÃO herdam font por omissão nos browsers — forçar */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

a { color: inherit; }


/* ── 2. VARIÁVEIS ───────────────────────────────────────────────────────────*/

:root {
  --logo-h-desktop: 64px;
  --logo-h-mobile: 40px;
}


/* ── 3. LOGO & TOPBAR ───────────────────────────────────────────────────────*/

img.logo,
.logo img {
  background: #F7F0E3;
  height: var(--logo-h-desktop);
  width: auto;
  display: block;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F7F0E3;
  padding: 6px 20px;
  border-bottom: 2px solid #c9a28c;
}

@media (max-width: 640px) {
  img.logo,
  .logo img { height: var(--logo-h-mobile); }

  .topbar { padding: 6px 14px; }

  .nav-menu ul {
    gap: 12px;
    padding-right: 12px;
  }

  .nav-menu a {
    padding: 6px 10px;
    font-size: 0.95rem;
  }
}

.nav-menu {
  background: transparent;
  padding: 0;
  margin: 0;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 5px 0;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding-right: 30px;
}

.nav-menu li { display: inline; }

.nav-menu li:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: rgba(0, 0, 0, 0.3);
}

.nav-menu a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
  background: white;
  color: #d2691e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* ── 4. FILTROS (versão original — mantida para compatibilidade) ─────────── */

.filter-container {
  position: sticky;
  top: 0;
  background-color: #F7F0E3;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  border-radius: 5px;
}

.filter-container input,
.filter-container select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.tag-filter-container {
  margin-top: 10px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

.tag-filter-container fieldset { border: none; padding: 0; margin: 0; }
.tag-filter-container legend   { font-weight: bold; margin-bottom: 5px; }
.tag-filter-container label    { display: inline-block; margin-right: 15px; font-size: 0.9rem; }

@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
}

#search-input {
  width: 300px;
  font-size: 1rem;
  padding: 8px;
  outline: none;
}

#search-input:focus {
  border-color: #a0522d;
  box-shadow: 0 0 5px rgba(162, 82, 45, 0.5);
}


/* ── 5. GRELHA DE JOGOS ─────────────────────────────────────────────────────*/

.buy-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  align-items: flex-start;
}

.game-item {
  position: relative;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  text-align: center;
  display: inline-block;
  padding: 10px;
  width: fit-content;
  max-width: 100%;
}

.game-item:hover { transform: scale(1.05); }

.game-item::after {
  content: "Ver no BoardGameGeek";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.game-item:hover::after { opacity: 1; }

.game-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.game-thumbnail {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 5px;
  display: block;
  margin: auto;
}

.game-info {
  text-align: center;
  font-size: 0.9em;
}

.game-name {
  font-size: 1rem;
  font-weight: bold;
}

.expansion-tag {
  display: inline-block;
  background: #ff9800;
  color: white;
  padding: 5px 10px;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 5px;
}

.promo-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #ff9800;
  color: white;
  padding: 5px 10px;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
}

.old-price {
  color: #888;
  font-size: 1rem;
  text-decoration: line-through;
}

.new-price {
  font-size: 1.2rem;
  font-weight: bold;
}

.price {
  font-weight: bold;
  font-size: 1.2rem;
}

.difficulty {
  color: #d2691e;
  font-size: 0.9em;
}

.details-link {
  display: block;
  margin-top: 5px;
  color: #d2691e;
  font-weight: bold;
}

.details-link:hover { text-decoration: underline; }


/* ── 6. TIPOGRAFIA GERAL ────────────────────────────────────────────────────*/

h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 20px auto;
  padding-bottom: 10px;
  border-bottom: 3px solid #d2691e;
  display: block;
  width: fit-content;
}


/* ── 7. BOTÕES GLOBAIS ──────────────────────────────────────────────────────*/

.store-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #d2691e;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.store-button:hover { background: #a0522d; }

.contact-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #a07d68;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s;
}

.contact-button:hover {
  background: #b18c75;
  transform: scale(1.05);
}

.submit-btn {
  background: #d2691e;
  color: white;
  padding: 9px 22px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-btn:hover { background: #a0522d; }


/* ── 8. BLOCOS CTA (not-found / more-games) ─────────────────────────────── */

.not-found-container,
.more-games-container {
  background: #d4b8a2;
  color: #2f2f2f;
  text-align: center;
  padding: 20px;
  border-radius: 5px;
  margin: 30px auto;
  width: 80%;
  max-width: 600px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}


/* ── 9. BANNER ──────────────────────────────────────────────────────────────*/

.banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ── 10. HERO COM BANNER (página inicial antiga) ────────────────────────── */

.hero { position: relative; overflow: hidden; }

.hero-bg { width: 100%; height: auto; display: block; }

.hero-brand {
  position: absolute;
  left: 2rem;
  bottom: 1rem;
  height: 56px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

@media (max-width: 640px) {
  .hero-brand {
    left: 50%;
    transform: translateX(-50%);
    height: 44px;
  }
}


/* ── 11. FOOTER ─────────────────────────────────────────────────────────────*/

footer {
  background: #f5f5f5;
  color: #333;
  padding: 20px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  /* herda font-family e font-size do body — sem surpresas */
}

.footer-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  justify-content: space-between;
}

.footer-map {
  width: 55%;
  height: 220px;
  padding-right: 20px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-info {
  width: 45%;
  text-align: left;
  padding-left: 20px;
}

.footer-info p {
  font-size: 0.95rem;   /* ligeiramente menor que o body, intencional */
  line-height: 1.75;
  margin: 0 0 8px;
  color: #333;
}

.footer-info a {
  font-size: inherit;
  color: #333;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
  color: #d2691e;
}

.footer-info strong {
  font-weight: 700;
  color: #2f2f2f;
}

.visit-warning {
  font-size: 0.9rem;
  color: #d9534f;
  font-weight: 700;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-map {
    width: 100%;
    height: 250px;
    padding-right: 0;
  }

  .footer-info {
    width: 100%;
    text-align: center;
    padding-left: 0;
    margin-top: 15px;
  }
}


/* ── 12. HERO DE PÁGINA (loja, alugueres, etc.) ─────────────────────────── */

.page-hero {
  background: #F7F0E3;
  padding: 32px 24px 24px;
  border-bottom: 2px solid #c9a28c;
}

.page-hero .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a07d68;
  font-weight: 600;
  margin-bottom: 6px;
}

.page-hero h1 {
  text-align: left;
  font-size: 1.8rem;
  color: #2f2f2f;
  border-bottom: none;
  margin: 0 0 8px;
  width: auto;
  padding-bottom: 0;
}

.page-hero p {
  font-size: 0.92rem;
  color: #7a6a5a;
  max-width: 560px;
  line-height: 1.65;
  margin: 0;
}


/* ── 13. FILTROS PILL (novas páginas) ───────────────────────────────────── */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  background: #F7F0E3;
  border-bottom: 1px solid #e0d4c4;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.filter-pills .filter-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-pills .filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a07d68;
  font-weight: 600;
  align-self: center;
  margin-right: 2px;
}

.pill-btn {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #c9a28c;
  background: transparent;
  color: #7a6a5a;
  transition: all 0.15s;
}

.pill-btn:hover {
  background: #e8d8c8;
  color: #3d2b1f;
}

.pill-btn.active {
  background: #d2691e;
  border-color: #d2691e;
  color: white;
}

.pill-sep {
  width: 1px;
  height: 22px;
  background: #c9a28c;
  opacity: 0.4;
  align-self: center;
  margin: 0 4px;
}

.sort-select {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  background: white;
  border: 1.5px solid #c9a28c;
  color: #7a6a5a;
  cursor: pointer;
}


/* ── 14. FORMULÁRIO DE PEDIDO (loja) ────────────────────────────────────── */

.request-form-container {
  background: #ede0d0;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px auto;
  width: 90%;
  max-width: 640px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.request-form-container h2 {
  font-size: 1.15rem;
  color: #3d2b1f;
  margin-bottom: 4px;
}

.request-form-container p {
  font-size: 0.88rem;
  color: #7a6a5a;
  margin-bottom: 16px;
  line-height: 1.6;
}

.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.request-form .field-full { grid-column: 1 / -1; }

.request-form label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a07d68;
  font-weight: 600;
  margin-bottom: 4px;
}

.request-form input,
.request-form textarea,
.request-form select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1.5px solid #c9a28c;
  background: white;
  font-size: 0.88rem;
  color: #3d2b1f;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.request-form input:focus,
.request-form textarea:focus { border-color: #d2691e; }

.request-form textarea {
  resize: vertical;
  min-height: 72px;
}

.request-form .submit-btn {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 540px) {
  .request-form { grid-template-columns: 1fr; }
}


/* ── 15. KICKSTARTERS ───────────────────────────────────────────────────────*/

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

.ks-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.ks-card:hover { transform: translateY(-3px); }

.ks-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #e8d8c8;
}

.ks-image-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #e8d8c8, #d4b8a2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.ks-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ks-platform {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a07d68;
  margin-bottom: 6px;
}

.ks-platform.kickstarter { color: #05ce78; }
.ks-platform.gamefound   { color: #4a6741; }
.ks-platform.backerkit   { color: #d2691e; }

.ks-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ks-desc {
  font-size: 0.83rem;
  color: #7a6a5a;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.ks-progress-bar {
  height: 6px;
  background: #e8d8c8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ks-progress-fill {
  height: 100%;
  background: #d2691e;
  border-radius: 3px;
}

.ks-stats {
  display: flex;
  gap: 12px;
  font-size: 0.76rem;
  color: #7a6a5a;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ks-stat-val {
  font-weight: 700;
  color: #3d2b1f;
}

.ks-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #d2691e;
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}

.ks-btn:hover { background: #a0522d; }

.ks-deadline {
  font-size: 0.76rem;
  color: #a07d68;
  margin-top: 8px;
}

.ks-deadline.urgent {
  color: #c0392b;
  font-weight: 600;
}


/* ── 16. ATIVIDADES ─────────────────────────────────────────────────────────*/

.activities-container { padding: 0 24px; }

.activities-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #3d2b1f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.activities-section-title::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: #c9a28c;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.activity-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: box-shadow 0.2s;
}

.activity-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.activity-card.past  { opacity: 0.78; }

.act-img-wrap { position: relative; }

.act-img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}

.act-img-placeholder {
  width: 100%;
  min-height: 140px;
  height: 100%;
  background: linear-gradient(135deg, #e8d8c8, #d4b8a2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.act-date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d2691e;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.act-past-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(100,90,80,0.75);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  text-transform: uppercase;
}

.act-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.act-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.act-tag {
  font-size: 0.68rem;
  padding: 2px 9px;
  border-radius: 10px;
  background: #f0e4d4;
  color: #a07d68;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.act-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 5px;
  line-height: 1.3;
}

.act-meta {
  font-size: 0.8rem;
  color: #a07d68;
  margin-bottom: 8px;
  line-height: 1.5;
}

.act-desc {
  font-size: 0.84rem;
  color: #7a6a5a;
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.act-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.act-btn {
  display: inline-block;
  padding: 7px 16px;
  background: #d2691e;
  color: white;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.act-btn:hover { background: #a0522d; }

.act-btn.secondary {
  background: white;
  color: #a07d68;
  border: 1.5px solid #c9a28c;
}

.act-btn.secondary:hover { background: #f0e4d4; }

@media (max-width: 640px) {
  .activity-card { grid-template-columns: 1fr; }
  .act-img, .act-img-placeholder { min-height: 160px; }
}


/* ── 17. GALERIA DE FOTOS ───────────────────────────────────────────────────*/

.gallery-section { padding: 8px 24px 28px; }

.gallery-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a07d68;
  font-weight: 600;
  margin-bottom: 10px;
}

.gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #c9a28c transparent;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 78px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid #e0d4c4;
  background: #e8d8c8;
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.gallery-thumb:hover { transform: scale(1.04); }


/* ── 18. MODAL DE INSCRIÇÃO ─────────────────────────────────────────────────*/

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #F7F0E3;
  border-radius: 12px;
  padding: 28px 32px;
  width: 92%;
  max-width: 460px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #a07d68;
  line-height: 1;
}

.modal-close:hover { color: #3d2b1f; }

.modal-box h2 {
  font-size: 1.15rem;
  color: #3d2b1f;
  margin-bottom: 4px;
  text-align: left;
  border: none;
  width: auto;
  padding: 0;
}

.modal-box p {
  font-size: 0.85rem;
  color: #7a6a5a;
  margin-bottom: 18px;
}


/* ── 19. HOMEPAGE — hero e cards de secção ──────────────────────────────── */

.home-hero {
  background: #F7F0E3;
  border-bottom: 2px solid #c9a28c;
  padding: 52px 32px 44px;
}

.home-hero-inner { max-width: 640px; }

.home-hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a07d68;
  font-weight: 600;
  margin-bottom: 10px;
}

.home-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #2f2f2f;
  line-height: 1.18;
  margin: 0 0 14px;
  text-align: left;
  border: none;
  width: auto;
  padding: 0;
}

.home-hero-sub {
  font-size: 1rem;
  color: #7a6a5a;
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 24px;
}

.home-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .home-hero { padding: 36px 20px 32px; }
  .home-hero-title { font-size: 1.8rem; }
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 2px solid #c9a28c;
}

.hsc {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #c9a28c;
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: #fdf7ef;
}

.hsc:last-child { border-right: none; }
.hsc:hover { box-shadow: inset 0 -4px 0 #d2691e; }

/* linha 1 (cards 1 e 2) tem border-bottom para separar da linha 2 */
.hsc:nth-child(1),
.hsc:nth-child(2) {
  border-bottom: 1px solid #c9a28c;
}

/* card par na coluna 2: sem border-right */
.hsc:nth-child(even) { border-right: none; }
/* card ímpar na coluna 1: mantém border-right */
.hsc:nth-child(odd)  { border-right: 1px solid #c9a28c; }

.hsc-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
  flex-shrink: 0;
}

.hsc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hsc:hover .hsc-img { transform: scale(1.04); }

.hsc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(47,30,15,0.55) 100%);
  pointer-events: none;
}

.hsc-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.hsc-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a07d68;
}

.hsc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2f2f2f;
  line-height: 1.25;
  margin: 0;
}

.hsc-desc {
  font-size: 0.84rem;
  color: #7a6a5a;
  line-height: 1.6;
  margin: 4px 0 0;
  flex: 1;
}

.hsc-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #d2691e;
  letter-spacing: 0.02em;
}

.hsc:hover .hsc-cta { text-decoration: underline; }

@media (max-width: 720px) {
  .home-sections { grid-template-columns: 1fr; }
  .hsc,
  .hsc:nth-child(odd),
  .hsc:nth-child(even) { border-right: none; border-bottom: 1px solid #c9a28c; }
  .hsc:nth-child(1),
  .hsc:nth-child(2) { border-bottom: 1px solid #c9a28c; }
  .hsc:last-child { border-bottom: none; }
  .hsc-img-wrap { height: 200px; }
}

@media (min-width: 721px) and (max-width: 960px) {
  .hsc-img-wrap { height: 220px; }
  .hsc-title { font-size: 1rem; }
}

.home-section { padding: 0 0 8px; }

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 24px 4px;
}

.home-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2f2f2f;
  border-bottom: 3px solid #d2691e;
  padding-bottom: 4px;
  text-align: left;
  width: auto;
  margin: 0;
}

.home-section-link {
  font-size: 0.85rem;
  color: #d2691e;
  font-weight: 600;
  text-decoration: none;
}

.home-section-link:hover { text-decoration: underline; }


/* ── 20. PESQUISA RÁPIDA (loja & alugueres) ────────────────────────────── */

.search-input {
  margin-left: auto;
  width: 220px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1.5px solid #c9a28c;
  background: white;
  color: #7a6a5a;
  font-size: 0.8rem;
}

.search-input:focus {
  outline: none;
  border-color: #d2691e;
  box-shadow: 0 0 0 2px rgba(210,105,30,0.15);
}

@media (max-width: 600px) {
  .search-input {
    margin-left: 0;
    width: 100%;
  }
}


/* ── 21. KICKSTARTERS — estado vazio ────────────────────────────────────── */

.ks-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #a07d68;
  font-size: 1rem;
}

.ks-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}


/* ── 22. ATIVIDADES — modal estado sucesso/erro ─────────────────────────── */

/* meta do evento (data + local) */
.modal-event-meta {
  font-size: 0.85rem;
  color: #a07d68;
  margin-bottom: 18px;
}

/* caixa de erro inline */
.enroll-error {
  display: none;
  color: #c0392b;
  font-size: 0.83rem;
  padding: 8px 10px;
  background: #fdf0f0;
  border-radius: 5px;
  border-left: 3px solid #c0392b;
}

/* ecrã de sucesso */
.enroll-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.enroll-success-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.enroll-success h3 {
  color: #4a6741;
  margin-bottom: 8px;
  font-size: 1.1rem;
  text-align: left;
  border: none;
  width: auto;
  padding: 0;
}

.enroll-success p {
  font-size: 0.88rem;
  color: #7a6a5a;
  margin-bottom: 0;
}

.enroll-success .submit-btn {
  margin-top: 18px;
}

/* placeholder de imagem passada (opacidade reduzida) */
.act-img-placeholder--past {
  opacity: 0.55;
}


/* ── 23. HOMEPAGE — card de sorteios (externo) ──────────────────────────── */

/* badge "↗ Página externa" no canto superior direito da imagem */
.hsc-external-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(47, 30, 15, 0.72);
  color: #F7F0E3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
}

/* acento âmbar no card de sorteios para o distinguir dos outros */
.hsc--raffle:hover {
  box-shadow: inset 0 -4px 0 #c17f24;
}

.hsc--raffle .hsc-eyebrow {
  color: #c17f24;
}

.hsc--raffle .hsc-cta {
  color: #c17f24;
}