@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:wght@700;800&display=swap');

:root {
  --color-green: #24d96c;
  --color-blue: #4d65e3;
  --color-dark: #0f1729;
  --color-light: #f8f9fc;
  --color-text-main: #1a1a2e;
  --color-text-light: #e8eaf6;
  --color-text-muted: #6b7280;
  
  --gradient-primary: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green) 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(36, 217, 108, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-normal);
}

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

.logo img {
  height: 40px;
  object-fit: contain;
}

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

.nav-link {
  font-weight: 500;
  color: var(--color-text-main);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-selector {
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.05);
  padding: 4px 8px;
  border-radius: 20px;
}

.lang-btn {
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.lang-btn.active, .lang-btn:hover {
  opacity: 1;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  color: var(--color-blue);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  margin-top: 80px;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-dark);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05); /* parallax base */
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 41, 0.9) 0%, rgba(77, 101, 227, 0.4) 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  color: var(--color-text-light);
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-green);
  margin-top: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.btn-outline:hover {
  background: rgba(77, 101, 227, 0.1);
  transform: translateY(-2px);
}

/* ================= FILTERS ================= */
.filters-section {
  padding: 40px 0;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--color-light);
  border-radius: 30px;
  padding: 10px 20px;
  max-width: 500px;
  margin: 0 auto 30px auto;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.search-bar svg {
  color: var(--color-text-muted);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  padding: 8px 16px;
  background: var(--color-light);
  color: var(--color-text-muted);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.chip:hover {
  background: rgba(77, 101, 227, 0.1);
  color: var(--color-blue);
}

.chip.active {
  background: var(--color-blue);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* ================= NEWS FEED ================= */
.feed-section {
  padding: 60px 0;
}

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

.card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 15px;
}

.share-btns {
  display: flex;
  gap: 10px;
}

.share-btn {
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.share-btn:hover {
  color: var(--color-blue);
  transform: translateY(-2px);
}

.btn-readmore {
  color: var(--color-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-readmore:hover {
  gap: 10px;
}

.load-more-container {
  text-align: center;
  margin-top: 50px;
}

/* ================= NEWSLETTER ================= */
.newsletter-section {
  background: var(--gradient-primary);
  padding: 80px 0;
  color: white;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.newsletter-content p {
  opacity: 0.9;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-md);
  outline: none;
}

.newsletter-form .btn {
  background: var(--color-dark);
  color: white;
  padding: 15px 30px;
}

.newsletter-form .btn:hover {
  background: #1a1a2e;
}

.newsletter-privacy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--color-dark);
  color: var(--color-text-light);
  padding: 60px 0 20px 0;
}

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

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-logo p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-green);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: white;
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--color-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-muted);
  opacity: 0.5;
  transition: var(--transition-fast);
}

.admin-link:hover {
  opacity: 1;
  color: white;
}

/* ================= ANIMATIONS & UTILS ================= */
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= PAGE: A TRILHA & CONTENT ================= */
.page-hero {
  margin-top: 80px;
  padding: 80px 0;
  background: var(--color-dark);
  color: white;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-section {
  padding: 60px 0;
  background: white;
}

.rich-text {
  max-width: 800px;
  margin: 0 auto;
}

.rich-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.rich-text h2 {
  margin: 40px 0 20px 0;
  color: var(--color-blue);
}

.rich-text img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}

/* ================= PAGE: CONTATO ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--color-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(77, 101, 227, 0.1);
  background: white;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  background: var(--color-light);
  padding: 40px;
  border-radius: var(--radius-md);
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  color: var(--color-green);
  font-size: 1.5rem;
}

/* ================= PAGE: NOTICIA ================= */
.article-header {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.article-badge {
  display: inline-block;
  background: var(--color-blue);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.article-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--color-text-muted);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-cover {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .footer-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-normal);
  }
  
  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}
