:root {
  --bg-dark: #080808;
  --card-bg: #121212;
  --border-color: #222222;
  --neon-green: #39ff14;
  --neon-green-hover: #00cc52;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --font-title: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
audio:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 3px;
}

h1, h2, h3, .logo, .btn-neon, .tag, .hero-tag {
  font-family: var(--font-title);
  letter-spacing: 0.3px;
}

.tag, .hero-tag, .btn-neon, .see-more, .btn-ver-artigo {
  text-transform: uppercase;
}

/* ==========================================
   HEADER CORRIGIDO & ALINHADO
   ========================================== */
header {
  --header-progress: 0;
  background: rgba(8, 11, 17, calc(1 - (var(--header-progress) * .01)));
  border-bottom: 1px solid rgba(26, 35, 50, calc(1 - (var(--header-progress) * .78)));
  padding: calc(1rem - (var(--header-progress) * .5rem)) 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: background-color .08s linear, border-color .08s linear, padding .08s linear;
  backdrop-filter: blur(calc(10px * (1 - var(--header-progress))));
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.site-logo {
  height: calc(clamp(52px, 5.5vw, 72px) - (var(--header-progress, 0) * 24px));
  width: auto;
  max-width: min(100%, 280px);
  display: block;
  object-fit: contain;
}

/* MENU DE NAVEGAÇÃO */
nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav {
  opacity: calc(1 - (var(--header-progress, 0) * .52));
  transform: scale(calc(1 - (var(--header-progress, 0) * .06)));
  transform-origin: right center;
  transition: opacity .08s linear, transform .08s linear;
}

nav a {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--neon-green);
}

/* REDES SOCIAIS NO HEADER */
.header-socials {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-socials a {
  color: var(--text-gray);
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.header-socials a:hover {
  color: var(--neon-green);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }
  .header-container {
    flex-direction: column;
    gap: 0.65rem;
  }
  .logo-link {
    justify-content: center;
  }
  .header-socials {
    display: none;
  }
  nav {
    width: 100%;
  }
  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: radial-gradient(circle at center, #152512 0%, var(--bg-dark) 70%);
  border-radius: 16px;
  margin-bottom: 3rem;
  border: 1px solid #1e3318;
}

.hero-tag {
  color: var(--neon-green);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.btn-neon {
  background-color: var(--neon-green);
  color: #000;
  padding: 0.9rem 2rem;
  font-weight: 800;
  border-radius: 50px;
  display: inline-block;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-neon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

/* ==========================================
   SECÇÕES & CABEÇALHOS
   ========================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.see-more {
  color: var(--neon-green);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================
   DESTAQUES (HOMEPAGE - LAYOUT FRAMER)
   ========================================== */
.featured-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

@media (min-width: 769px) {
  .featured-wrapper { min-height: 640px; }
}

.main-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.main-featured-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-2px);
}

.main-featured-img {
  align-self: start;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.main-featured-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.main-featured-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-featured-content h2 {
  font-size: 1.35rem;
  margin: 0.6rem 0;
  line-height: 1.3;
  color: var(--text-white);
}

.main-featured-content p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-ver-artigo {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--neon-green);
  color: #000000;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.secondary-featured-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sub-featured-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-white);
  transition: border-color 0.2s ease;
}

.sub-featured-card:hover {
  border-color: var(--neon-green);
}

.sub-featured-img {
  align-self: start;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.sub-featured-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.sub-featured-content {
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sub-featured-content h3 {
  font-size: 1rem;
  margin: 0.3rem 0;
  line-height: 1.25;
}

.sub-featured-content p {
  color: var(--text-gray);
  font-size: 0.8rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================
   EQUIPA (ESTILO FRAMER)
   ========================================== */
.framer-team-box {
  border: 1px solid var(--neon-green);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(57, 255, 20, 0.02);
  margin-bottom: 4rem;
}

.team-sub {
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  font-family: var(--font-title);
}

.team-intro h2 {
  font-size: 1.5rem;
  color: var(--text-white);
}

.team-members {
  display: flex;
  gap: 3rem;
}

.member h3 {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.member span {
  color: var(--neon-green);
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-title);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: #080b11;
  border-top: 1px solid #1a2332;
  padding: 4rem 1rem 2rem 1rem;
  margin-top: 5rem;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  display: block;
  width: 220px;
  height: 50px;
  max-width: 100%;
  align-self: flex-start;
  object-fit: contain;
  object-position: left center;
  aspect-ratio: 22 / 5;
}

.footer-brand p {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.8rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4, 
.footer-socials-col h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--neon-green);
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 7px 14px;
  background: #121824;
  border: 1px solid #1a2332;
  border-radius: 20px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-pill i {
  font-size: 0.95rem;
  color: var(--text-gray);
  transition: color 0.2s ease;
}

.social-pill:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(57, 255, 20, 0.05);
  transform: translateY(-2px);
}

.social-pill:hover i {
  color: var(--neon-green);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-gray);
  font-size: 0.8rem;
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-featured-card {
    grid-template-columns: 1fr;
  }
  .sub-featured-card {
    grid-template-columns: 130px 1fr;
  }
  .framer-team-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .team-members {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 400px) {
  header {
    padding: 0.65rem 0.75rem;
  }
  nav ul {
    column-gap: 0.75rem;
  }
}

@media (max-width: 550px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   ARTIGO: HEADER E TÍTULO PROGRESSIVOS
   ========================================== */
.article-page-header {
  --article-progress: 0;
}

.article-heading {
  --article-progress: 0;
  position: relative;
  top: auto;
  z-index: auto;
  background: rgba(8, 8, 8, calc(.96 - (var(--article-progress) * .82)));
  border-top-color: rgba(57, 255, 20, calc(.08 - (var(--article-progress) * .06)));
  border-bottom-color: rgba(57, 255, 20, calc(.14 - (var(--article-progress) * .11)));
  padding-top: calc(1.05rem - (var(--article-progress) * .72rem));
  padding-bottom: calc(.95rem - (var(--article-progress) * .62rem));
  backdrop-filter: blur(calc(12px * (1 - var(--article-progress))));
  transition: background-color .08s linear, border-color .08s linear, padding .08s linear;
}

.article-heading h1 {
  font-size: calc(2.6rem - (var(--article-progress) * 1.45rem));
  opacity: calc(1 - (var(--article-progress) * .58));
  margin-top: calc(.6rem - (var(--article-progress) * .35rem));
  margin-bottom: calc(.6rem - (var(--article-progress) * .35rem));
  transition: font-size .08s linear, opacity .08s linear, margin .08s linear;
}

.article-summary {
  font-size: calc(1.1rem - (var(--article-progress) * .48rem));
  opacity: calc(1 - (var(--article-progress) * .62));
  max-height: calc(80px - (var(--article-progress) * 38px));
  overflow: hidden;
  margin-bottom: calc(.35rem - (var(--article-progress) * .2rem));
  transition: font-size .08s linear, opacity .08s linear, max-height .08s linear;
}

.article-heading .tag,
.article-byline {
  opacity: calc(1 - (var(--article-progress) * .78));
  transition: opacity .08s linear;
}

@media (max-width: 768px) {
  .article-heading {
    top: auto;
    padding-top: calc(.8rem - (var(--article-progress) * .48rem));
    padding-bottom: calc(.75rem - (var(--article-progress) * .42rem));
  }
  .article-heading h1 {
    font-size: calc(1.9rem - (var(--article-progress) * .78rem));
  }
  .article-summary {
    font-size: calc(1rem - (var(--article-progress) * .34rem));
    max-height: calc(72px - (var(--article-progress) * 34px));
  }
}

/* Notícias: leitura confortável no telemóvel, sem alterar o layout desktop */
@media (max-width: 650px) {
  .news-list {
    gap: 1rem !important;
  }

  .news-list-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    border-radius: 12px;
  }

  .news-list-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    flex: 0 0 auto;
  }

  .news-list-content {
    padding: .9rem 1rem 1rem !important;
  }

  .news-list-content .news-list-meta {
    margin-bottom: .4rem;
  }

  .news-list-content h3 {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin-bottom: .45rem !important;
  }

  .news-list-content p {
    font-size: .86rem !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 400px) {
  .news-list-content {
    padding: .8rem .9rem .9rem !important;
  }

  .news-list-content h3 {
    font-size: 1rem !important;
  }
}
