/* ==========================================================================
   MBS Futebol Clube — Folha de estilo estática (v2, fiel ao layout real)
   Paleta: azul-marinho (base), verde e vermelho (acentos / identidade),
   fontes slab serif (títulos) + serif (texto).
   ========================================================================== */

:root {
  --navy:         #14245c;
  --navy-dark:    #0f1b45;
  --navy-2:       #1b2f70;
  --verde:        #1a9a4e;
  --verde-esc:    #157e40;
  --vermelho:     #d0342c;
  --branco:       #ffffff;
  --cinza-claro:  #f6f7f9;
  --texto:        #1e2746;
  --texto-suave:  #5a6178;
  --linha:        #e3e6ee;
  --sombra:       0 6px 24px rgba(20, 36, 92, 0.10);
  --sombra-forte: 0 16px 44px rgba(15, 27, 69, 0.28);
  --max:          1180px;
  --f-display:    "Roboto Slab", Georgia, "Times New Roman", serif;
  --f-italic:     "Playfair Display", Georgia, serif;
  --f-texto:      "PT Serif", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--f-texto);
  color: var(--texto);
  background: var(--branco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 92%; max-width: var(--max); margin: 0 auto; }

/* Anel tricolor decorativo (identidade do escudo) */
.tricolor {
  height: 3px;
  background: linear-gradient(to right,
    var(--verde) 0 33.33%, var(--branco) 33.33% 66.66%, var(--vermelho) 66.66% 100%);
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.nav-bar { display: flex; align-items: center; gap: 24px; padding: 8px 0; }
.logo img { height: 78px; width: auto; }
.nav-spacer { flex: 1; }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li { position: relative; }
.nav-menu a {
  display: block; padding: 10px 15px;
  color: var(--branco); font-family: var(--f-display); font-weight: 600;
  font-size: .95rem; text-transform: uppercase; letter-spacing: 1px;
  transition: color .2s;
}
.nav-menu a:hover { color: #9fc7ff; }

/* Botão SCOUTS com contorno */
.nav-scouts > a {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 4px; padding: 9px 18px;
}
.nav-scouts > a:hover { background: var(--branco); color: var(--navy); }

.has-sub > .submenu {
  position: absolute; top: 100%; left: 0;
  background: var(--branco); min-width: 190px;
  border-radius: 6px; box-shadow: var(--sombra-forte);
  padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s;
}
.has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { color: var(--texto); text-transform: none; letter-spacing: .3px; font-weight: 400; }
.submenu a:hover { background: var(--cinza-claro); color: var(--navy); }

.nav-ig-wrap { display: flex; align-items: center; gap: 18px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.25); }
.nav-ig { color: rgba(255,255,255,.85); display: inline-flex; }
.nav-ig:hover { color: var(--branco); }
.nav-ig svg { width: 22px; height: 22px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; height: 3px; background: var(--branco); border-radius: 2px; margin: 5px 0; transition: .3s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 620px; background: var(--navy-dark); display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,27,69,.55), rgba(15,27,69,.05) 45%); }
.hero .hero-inner { position: relative; z-index: 2; padding: 0 0 46px; }
.hero h1 { font-family: var(--f-display); font-weight: 700; color: var(--branco); font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: 1px; line-height: 1; text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.hero .hero-tag { display: inline-block; margin-top: 14px; background: rgba(15,27,69,.72); color: #dfe6f5; padding: 7px 16px; font-size: .95rem; border-radius: 2px; }

/* ==========================================================================
   Seções
   ========================================================================== */
.section { padding: 78px 0; }
.section-navy { background: var(--navy); color: var(--branco); }
.section-cinza { background: var(--cinza-claro); }

.section-title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--navy); text-align: center; letter-spacing: 3px; line-height: 1.15; }
.section-navy .section-title { color: var(--branco); }

/* Título "NOVIDADES / do seu jogador" */
.news-heading { text-align: center; margin-bottom: 54px; }
.news-heading .l1 { display: block; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 6px; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--verde); }
.news-heading .l2 { display: block; font-family: var(--f-italic); font-style: italic; font-weight: 700; color: var(--vermelho); font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: 2px; }

/* ==========================================================================
   Patrocinadores
   ========================================================================== */
.sponsors { text-align: center; }
.sponsors .section-title { margin-bottom: 48px; }
.sponsors-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center; }
.sponsor img { max-width: 340px; border-radius: 4px; }

/* ==========================================================================
   Notícias (cards com imagem de fundo + overlay) — layout masonry
   ========================================================================== */
.news-masonry { column-count: 3; column-gap: 26px; }
@media (max-width: 900px) { .news-masonry { column-count: 2; } }
@media (max-width: 560px) { .news-masonry { column-count: 1; } }

.news-card { position: relative; display: block; border-radius: 6px; overflow: hidden; margin-bottom: 26px; break-inside: avoid; box-shadow: var(--sombra); }
.news-card img { width: 100%; height: auto; display: block; transition: transform .5s; }
.news-card:hover img { transform: scale(1.05); }
.news-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,27,69,.92) 0%, rgba(15,27,69,.55) 30%, rgba(15,27,69,0) 60%); }
.news-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; color: var(--branco); }
.news-card .cap h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.news-card .cap .date { display: block; margin-top: 6px; font-size: .85rem; color: #c9d3ea; }

/* alturas escalonadas p/ dar o efeito do site (fallback quando img não carregou) */
.news-card.tall  { min-height: 440px; }
.news-card.short { min-height: 230px; }

.btn { display: inline-block; background: var(--navy); color: var(--branco); font-family: var(--f-display); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-size: .92rem; padding: 14px 40px; border-radius: 4px; transition: background .2s, transform .2s; border: 0; cursor: pointer; }
.btn:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-verde { background: var(--verde); }
.btn-verde:hover { background: var(--verde-esc); }
.center { text-align: center; margin-top: 50px; }

/* ==========================================================================
   Galeria (carrossel) — fundo azul-marinho
   ========================================================================== */
.gallery .section-title { color: var(--branco); margin-bottom: 44px; }
.carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .45s ease; }
.carousel-slide { min-width: 100%; padding: 0 6px; }
.carousel-slide img { width: 100%; height: 520px; object-fit: cover; border-radius: 4px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.5); color: var(--branco); font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 3; }
.carousel-btn:hover { background: rgba(255,255,255,.3); }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.carousel-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: var(--branco); }

/* ==========================================================================
   Bloco Informações do clube (2 colunas)
   ========================================================================== */
.club-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.club-info-grid img { border-radius: 4px; box-shadow: var(--sombra); width: 100%; }
.club-info h2 { font-family: var(--f-display); font-weight: 700; font-size: 2rem; color: var(--verde); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.club-info .meta { font-size: 1.1rem; margin: 8px 0; }
.club-info .meta .lbl { color: var(--verde); font-weight: 700; }

.share { margin-top: 40px; }
.share p { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--verde); margin-bottom: 16px; text-align: center; }
.share-list { display: flex; }
.share-list a { flex: 1; height: 54px; display: inline-flex; align-items: center; justify-content: center; color: var(--texto); border: 1px dashed var(--linha); border-left: 0; transition: background .2s, color .2s; }
.share-list a:first-child { border-left: 1px dashed var(--linha); }
.share-list a:hover { background: var(--navy); color: var(--branco); border-color: var(--navy); }
.share-list svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   História (2 colunas de texto)
   ========================================================================== */
.historia .section-title { text-align: left; color: var(--verde); margin-bottom: 34px; }
.section-divider { border: 0; border-top: 1px solid var(--linha); max-width: 700px; margin: 6px auto 0; }
.historia-cols { columns: 2; column-gap: 46px; }
.historia-cols p { margin-bottom: 18px; break-inside: avoid; }
.historia-cols strong, .historia a.nome { color: var(--verde); font-weight: 700; }
.historia .sigla { columns: 1; margin: 10px 0 18px; }
.historia .sigla li { margin: 6px 0; break-inside: avoid; }
.historia .sigla .letra { color: var(--verde); font-weight: 700; }
@media (max-width: 760px) { .historia-cols { columns: 1; } }

/* ==========================================================================
   Rodapé (azul-marinho)
   ========================================================================== */
.site-footer { background: var(--navy); color: #c4cde4; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr; gap: 44px; }
.footer-col h4 { font-family: var(--f-display); text-transform: uppercase; color: var(--verde); font-size: 1.25rem; letter-spacing: 2px; margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 13px; display: flex; align-items: flex-start; gap: 10px; }
.footer-col ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 5px; fill: #9fb0d8; }
.footer-col a:hover { color: var(--branco); }

.ig-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ig-head img { width: 46px; height: 46px; border-radius: 50%; }
.ig-head .ig-name { font-family: var(--f-display); color: var(--branco); font-weight: 600; }
.ig-head small { color: #9fb0d8; display: block; font-family: var(--f-texto); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.ig-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; }

.footer-news li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-news img { width: 62px; height: 62px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.footer-news .fn-date { font-size: .72rem; color: var(--verde); text-transform: uppercase; letter-spacing: .5px; }
.footer-news .fn-title { color: var(--branco); font-family: var(--f-display); font-weight: 600; font-size: .98rem; display: block; margin-top: 3px; }
.footer-news a:hover .fn-title { color: #9fc7ff; }

.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: .85rem; color: #8b97b8; }
.footer-bottom a { color: var(--verde); }

/* ==========================================================================
   Página de notícia / listagem
   ========================================================================== */
.post-header { background: var(--navy); color: var(--branco); padding: 60px 0; text-align: center; }
.post-header .date { color: #c9d3ea; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.post-header h1 { font-family: var(--f-display); font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; margin: 12px 0; line-height: 1.1; }
.post-header .autor { color: #c9d3ea; }
.post-body { max-width: 780px; margin: 0 auto; padding: 56px 0; }
.post-body img { border-radius: 6px; margin: 26px auto; box-shadow: var(--sombra); }
.post-body p { margin-bottom: 20px; font-size: 1.1rem; }
.voltar { display: inline-block; margin-bottom: 30px; color: var(--verde); font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.voltar:hover { color: var(--navy); }
.page-hero { background: var(--navy); color: var(--branco); padding: 66px 0; text-align: center; }
.page-hero h1 { font-family: var(--f-display); font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; letter-spacing: 2px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .club-info-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-spacer { display: none; }
  .nav-ig-wrap { display: none; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 8px; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav-menu.open { max-height: 620px; }
  .nav-menu > li { width: 100%; }
  .nav-scouts > a { border: 0; border-radius: 0; padding: 10px 15px; }
  .has-sub > .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.08); margin: 4px 0 4px 12px; }
  .submenu a { color: var(--branco); }
  .carousel-slide img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) { .section { padding: 54px 0; } .carousel-btn.prev { left: 4px; } .carousel-btn.next { right: 4px; } }
