/* ============================================================
   AAACL — style.css v3
   Degradê: azul escuro → branco | Textos maiores
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --navy:          #0f2540;
  --navy-mid:      #1a3a5c;
  --gold:          #c9a84c;
  --gold-light:    #e8d5a3;
  --bordeaux:      #7a1230;
  --bordeaux-dark: #560d22;
  --border-dark:   rgba(201,168,76,0.2);
  --border-light:  rgba(15,37,64,0.15);
  --transition:    0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.75;
  overflow-x: hidden;
  background: #0f2540;
}

/* Degradê fixo no html para cobrir toda a página */
html {
  min-height: 100%;
  background: linear-gradient(180deg,
    #0f2540 0%,
    #1a3a5c 15%,
    #2e5f8a 35%,
    #7aaec8 55%,
    #c8dde8 72%,
    #eef4f7 85%,
    #ffffff 100%
  );
  background-attachment: fixed;
}

/* Mobile: background-attachment:fixed não funciona nos browsers móveis —
   o degradê fica branco/claro tornando texto branco ilegível.
   Solução: fundo escuro fixo em mobile. */
@media (max-width: 680px) {
  html, body { background: #0f2540; }
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ── Barra decorativa ── */
.stripe {
  height: 4px;
  background: linear-gradient(90deg, #0f2540 0%, var(--bordeaux) 25%, var(--gold) 50%, var(--bordeaux) 75%, #0f2540 100%);
}

/* ── HEADER ── */
#header {
  background: rgba(8, 22, 40, 0.95);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  text-decoration: none;
}
.logo-area img { width: 80px; height: 80px; object-fit: contain; }
.logo-text .sigla {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 3px;
  line-height: 1;
}
.logo-text .nome {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
  max-width: 260px;
  line-height: 1.4;
}

/* ── NAV ── */
nav#main-nav { display: flex; align-items: center; }
nav#main-nav ul { list-style: none; display: flex; }
nav#main-nav ul li { position: relative; }
nav#main-nav ul li > a {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1.5px;
  padding: 0.7rem 1rem;
  display: block;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
}
nav#main-nav ul li > a:hover,
nav#main-nav ul li > a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
nav#main-nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(8,22,40,0.97);
  border: 1px solid rgba(201,168,76,0.3);
  border-top: 2px solid var(--gold);
  min-width: 210px;
  z-index: 100;
  backdrop-filter: blur(4px);
}
nav#main-nav ul li:hover .dropdown { display: block; }
nav#main-nav ul li .dropdown a {
  border-bottom: none;
  border-left: 2px solid transparent;
  padding: 0.65rem 1.1rem;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}
nav#main-nav ul li .dropdown a:hover {
  border-left-color: var(--bordeaux);
  color: var(--gold);
  background: rgba(255,255,255,0.04);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 20px;
  border-radius: 3px;
}

/* ── HERO SLIDER ── */
#hero { position: relative; height: 500px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.82);
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,28,52,0.05) 0%, rgba(8,28,52,0.35) 100%);
}
.hero-content {
  position: absolute; top: 0; left: 0; right: 0; bottom: 3rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem; z-index: 2;
}
.hero-text-box { background: transparent; padding: 1.5rem 2.5rem; }
.hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--gold);
  letter-spacing: 2px; font-weight: 600; line-height: 1.4; margin: 0.4rem 0;
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.6);
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.8);
}
.hero-subtitle-box {
  background: rgba(8,28,52,0.5);
  padding: 0.5rem 2rem; margin-top: 0.75rem;
  border-top: 1px solid rgba(201,168,76,0.3);
  border-bottom: 1px solid rgba(201,168,76,0.3);
}
.hero-content p {
  font-size: 20px; color: #e8f0f8;
  font-style: italic; margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.slider-dots {
  position: absolute; bottom: 1.25rem;
  left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.slider-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: background var(--transition);
  border: 1px solid rgba(255,255,255,0.6);
}
.slider-dots span.active { background: var(--gold); border-color: var(--gold); }
#hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0f2540 0%, var(--bordeaux) 25%, var(--gold) 50%, var(--bordeaux) 75%, #0f2540 100%);
  z-index: 3;
}

/* ── AVISO ── */
#aviso { padding: 2.5rem 2rem; padding-top: 3.5rem; }
.aviso-inner {
  max-width: 820px; margin: 0 auto;
  background: rgba(86,13,34,0.92);
  border: 1px solid var(--gold); border-top: 4px solid var(--gold);
  padding: 2.5rem 2.5rem 2rem; text-align: left; position: relative;
  backdrop-filter: blur(4px);
}
.aviso-icon {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; background: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.aviso-icon i { font-size: 22px; color: #0f2540; }
.aviso-inner i { display: none; }
.aviso-inner strong {
  font-family: 'Cinzel', serif; font-size: 15px;
  color: var(--gold); letter-spacing: 2px; display: block;
  margin-bottom: 1rem; text-transform: uppercase; text-align: center;
}
.aviso-inner p { font-size: 16px; color: #ffffff; margin: 0; line-height: 1.8; }
.aviso-inner a { color: var(--gold-light); }
.aviso-destaque { color: var(--gold); font-weight: 600; letter-spacing: 0.5px; }

/* ── SECÇÕES ── */
.secao { max-width: 1280px; margin: 0 auto; padding: 3.5rem 2rem; }
.secao-titulo {
  font-family: 'Cinzel', serif; font-size: 13px; color: rgba(255,255,255,0.6);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem;
}
.secao-titulo::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.2); }
.secao-titulo .borda-cor { width: 3px; height: 18px; background: var(--bordeaux); border-radius: 2px; }

/* ── DESTAQUES ── */
#destaques {
  background: rgba(8, 22, 40, 0.55);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(2px);
}
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(201,168,76,0.15); }
.card {
  background: rgba(8,22,40,0.8);
  padding: 2rem; transition: background var(--transition);
}
.card:hover { background: rgba(8,22,40,0.92); }
.card-label {
  font-family: 'Cinzel', serif; font-size: 10px; color: var(--bordeaux);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 8px;
}
.card-label::before { content: ''; width: 18px; height: 1px; background: var(--bordeaux); }
.card-fundadores { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.card-img-fundador { width: 100%; height: auto; object-fit: contain; border: 1px solid rgba(201,168,76,0.2); background: #0a1e38; margin-bottom: 0; }


.card-img-placeholder {
  width: 100%; height: 170px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(201,168,76,0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card-img-placeholder i { font-size: 36px; color: rgba(201,168,76,0.3); }
.card h3 { font-family: 'Cinzel', serif; font-size: 16px; color: var(--gold); font-weight: 400; margin-bottom: 0.6rem; line-height: 1.4; }
.card p { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 0.75rem; }
.card-link {
  font-family: 'Cinzel', serif; font-size: 11px; color: var(--gold);
  letter-spacing: 1px; text-transform: uppercase;
  border-bottom: 1px solid transparent; transition: border-color var(--transition);
}
.card-link:hover { border-bottom-color: var(--gold); }

/* ── NOTÍCIAS ── */
#noticias { border-bottom: 1px solid var(--border-light); }
.noticias-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.noticia {
  border-left: 2px solid rgba(15,37,64,0.2);
  padding-left: 1.25rem; transition: border-color var(--transition);
}
.noticia:hover { border-left-color: var(--bordeaux); }
.noticia-data { font-family: 'Cinzel', serif; font-size: 11px; color: var(--navy-mid); letter-spacing: 1px; margin-bottom: 0.3rem; }
.noticia h3 { font-family: 'Cinzel', serif; font-size: 16px; color: var(--navy); font-weight: 400; line-height: 1.5; margin-bottom: 0.4rem; }
.noticia p { font-size: 15px; color: #3a5070; line-height: 1.6; }
.noticia a { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 1px; color: var(--bordeaux); text-transform: uppercase; }

/* ── SOBRE ── */
#sobre {
  background: rgba(255,255,255,0.45);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(2px);
}
.sobre-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: center; }
.sobre-img { width: 100%; height: 300px; object-fit: cover; border: 1px solid rgba(15,37,64,0.15); border-left: 3px solid var(--bordeaux); }
.sobre-texto h2 { font-family: 'Cinzel', serif; font-size: 22px; color: #ffffff; font-weight: 400; margin-bottom: 1.25rem; line-height: 1.4; }
.sobre-texto p { font-size: 17px; color: rgba(255,255,255,0.85); line-height: 1.85; margin-bottom: 1rem; }
.btn-gold {
  display: inline-block; font-family: 'Cinzel', serif; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold); padding: 0.7rem 1.75rem; margin-top: 0.5rem;
  transition: all var(--transition);
}
.btn-gold:hover { background: var(--gold); color: var(--navy); }

/* ── FOOTER MAPA ── */
#footer-mapa { border-top: 1px solid rgba(15,37,64,0.2); border-bottom: 1px solid rgba(15,37,64,0.2); }

/* ── FOOTER ── */
#footer { background: rgba(8,22,40,0.97); border-top: 1px solid rgba(201,168,76,0.2); backdrop-filter: blur(4px); }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 3rem 2rem;
  display: grid; grid-template-columns: 1.2fr 1.4fr 1.2fr; gap: 3rem;
  align-items: start;
}

/* Col 1 — Brand */
.footer-col-brand .logo-footer { width: 56px; margin-bottom: 0.75rem; }
.footer-descricao {
  font-family: 'EB Garamond', serif; font-size: 15px;
  color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 1.25rem;
}
.footer-social { display: flex; gap: 0.6rem; margin-top: 0.25rem; }
.footer-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(201,168,76,0.3); border-radius: 6px;
  color: rgba(255,255,255,0.6); font-size: 18px;
  transition: all 0.25s; text-decoration: none;
}
.footer-social-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }

/* Col 2 — Navegação */
.footer-col-nav h4,
.footer-col-contactos h4 {
  font-family: 'Cinzel', serif; font-size: 11px; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.25rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-nav-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem;
}
.footer-nav-grid a {
  font-family: 'Cinzel', serif; font-size: 11px;
  color: rgba(255,255,255,0.6); letter-spacing: 0.5px;
  transition: color 0.2s; display: block; padding: 0.2rem 0;
}
.footer-nav-grid a:hover { color: var(--gold); }

/* Col 3 — Contactos */
.footer-contacto-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.footer-contacto-item i {
  color: var(--gold); font-size: 14px; margin-top: 3px; flex-shrink: 0;
}
.footer-contacto-item span,
.footer-contacto-item a {
  font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6;
}
.footer-contacto-item a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(201,168,76,0.15);
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-bottom a { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

/* Footer responsivo */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-social { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── MERCHANDISING ── */
#merchandising { border-bottom: 1px solid var(--border-light); }
.merch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.merch-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  border-top: 2px solid rgba(201,168,76,0.3);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s;
}
.merch-item:hover {
  background: rgba(255,255,255,0.15);
  border-top-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.merch-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.merch-nome {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 1px;
  line-height: 1.4;
}
@media (max-width: 900px) { .merch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .merch-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── NEVE ── */
#neve-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .noticias-grid { grid-template-columns: 1fr; }
  .sobre-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .sobre-img { height: auto; max-height: 320px; object-fit: contain; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav#main-nav { display: none; }
  nav#main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: rgba(8,22,40,0.97); border-bottom: 2px solid var(--gold); }
  nav#main-nav.open ul { flex-direction: column; }
  nav#main-nav.open ul li a { padding: 0.75rem 1.5rem; border-bottom: 1px solid rgba(201,168,76,0.15); }
  nav#main-nav.open ul li .dropdown { display: none; }
  nav#main-nav.open ul li .dropdown.open { display: block; position: static; border: none; border-top: 1px solid rgba(201,168,76,0.1); background: rgba(255,255,255,0.04); }
  nav#main-nav.open ul li .dropdown.open a { padding-left: 2.5rem; font-size: 12px; }
  /* Dropdown de "A Associação" sempre visível em mobile (o item pai navega para index) */
  nav#main-nav.open ul li:first-child .dropdown { display: block; position: static; border: none; border-top: 1px solid rgba(201,168,76,0.1); background: rgba(255,255,255,0.04); }
  nav#main-nav.open ul li:first-child .dropdown a { padding-left: 2.5rem; font-size: 12px; }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; position: relative; }
  #hero { height: 380px; }
  .hero-content h1 { font-size: 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  /* Mostrar nome da associação em mobile com fonte menor */
  .logo-text .nome { display: block; font-size: 9px; max-width: 180px; letter-spacing: 0.5px; }
  .logo-area img { width: 56px; height: 56px; }
  .logo-text .sigla { font-size: 22px; }

  /* Bandeiras PT/EN — mesma linha que o hamburger, sem quebra de linha */
  .header-inner { flex-wrap: nowrap; align-items: center; padding: 0 1rem; gap: 0.5rem; }
  .logo-area { flex: 1; min-width: 0; }
  .lang-switch { margin-left: 0; order: 2; flex-shrink: 0; }
  .menu-toggle { order: 3; flex-shrink: 0; }

  /* Tipografia mobile */
  body { font-size: 16px; line-height: 1.55; }
  .sobre-texto p,
  .destaque-subtitulo,
  .galeria-descricao { font-size: 16px; line-height: 1.6; }
  .aviso-inner p { font-size: 15px; line-height: 1.6; }
  .card p, .noticia p { font-size: 14px; line-height: 1.55; }

  /* Destaque: separação entre cartaz e bloco de texto */
  .destaque-legenda { margin-bottom: 2rem; }

  /* Destaque: textos brancos explícitos (fundo escuro garantido) */
  .destaque-subtitulo { color: rgba(255,255,255,0.85); }
  .destaque-info li { color: rgba(255,255,255,0.7); }
}

/* ── EM DESTAQUE ── */
#em-destaque { border-bottom: 1px solid rgba(201,168,76,0.2); background: rgba(8,22,40,0.5); }
.destaque-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.destaque-img-wrap { text-align: center; }
.destaque-img { max-width: 100%; max-height: 500px; object-fit: contain; border: 2px solid rgba(201,168,76,0.4); transition: border-color 0.3s; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.destaque-img:hover { border-color: #c9a84c; }
.destaque-legenda { font-family: 'Cinzel', serif; font-size: 10px; color: #c9a84c; letter-spacing: 1px; margin-top: 0.75rem; }
.destaque-badge { display: inline-block; font-family: 'Cinzel', serif; font-size: 10px; color: #c0394e; border: 1px solid rgba(192,57,78,0.4); padding: 4px 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.destaque-titulo { font-family: 'Cinzel', serif; font-size: 20px; color: #c9a84c !important; font-weight: 400; line-height: 1.5; margin-bottom: 0.75rem; }
.destaque-subtitulo { font-family: 'EB Garamond', serif; font-size: 18px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 1.25rem; font-style: italic; }
.destaque-info { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.destaque-info li { font-family: 'Cinzel', serif; font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 1px; padding: 0.3rem 0 0.3rem 1rem; position: relative; }
.destaque-info li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: #c0394e; }
@media (max-width: 900px) { .destaque-inner { grid-template-columns: 1fr; gap: 1.5rem; } .destaque-img { max-height: 350px; } }

/* Borda vermelha à direita no Em Destaque */
#em-destaque .secao-titulo .borda-cor { order: 2; }
#em-destaque .secao-titulo::after { display: none; }
