:root {
  --primary: #1a1a1a;
  --primary-dark: #000;
  --accent: #c9a14d; /* DOURADO */
  --accent-dark: #b88a35; /* Dourado mais escuro */
  --whatsapp: #25D366; /* VERDE DO WHATSAPP */
  --whatsapp-dark: #128C7E; /* VERDE ESCURO DO WHATSAPP */
  --text-light: #aaa;
  --text-dark: #333;
  --bg-body: #f5f5f5;
  --bg-white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER COM TEMÁTICA MAÇÔNICA ===== */
.main-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.7);
  border-bottom: 3px solid #c9a14d;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  max-height: 100px;
  max-width: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* ===== MENU DESKTOP ===== */
.main-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}

.main-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}

.main-nav a i {
  margin-right: 6px;
  font-size: 15px;
  color: #c9a14d;
}

.main-nav a:hover {
  background: rgba(201, 161, 77, 0.15);
  color: #c9a14d;
  border-left: 1px solid #c9a14d;
  border-right: 1px solid #c9a14d;
}

.main-nav a:hover i {
  color: #c9a14d;
}

/* ===== BOTÃO ÁREA RESTRITA ===== */
.btn-admin {
  background: transparent !important;
  color: #c9a14d !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 7px 18px !important;
  margin-left: 10px !important;
  border-radius: 4px !important;
  text-transform: uppercase;
  border: 2px solid #c9a14d !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.btn-admin i {
  color: #c9a14d !important;
  font-size: 15px !important;
  margin-right: 6px;
}

.btn-admin:hover {
  background: #c9a14d !important;
  color: #1a1a1a !important;
  border: 2px solid #c9a14d !important;
  box-shadow: 0 4px 12px rgba(201, 161, 77, 0.3);
  transform: translateY(-2px);
}

.btn-admin:hover i {
  color: #1a1a1a !important;
}

/* ===== BOTÃO MOBILE ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid #c9a14d;
  color: #c9a14d;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s;
  background: rgba(201, 161, 77, 0.1);
}

.mobile-menu-btn:hover {
  background: #c9a14d;
  color: #1a1a1a;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

/* ===== FOOTER COM IMAGEM DE FUNDO ===== */
.main-footer {
  position: relative;
  background: url('/uploads/logos/footer.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: auto;
  width: 100%;
  border-top: 3px solid #c9a14d;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}

/* Overlay escuro */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.footer-section {
  position: relative;
  z-index: 2;
}

/* Títulos com dourado */
.footer-section h3 {
  color: #c9a14d;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid #c9a14d;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Textos */
.footer-section p {
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Links */
.footer-section a {
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 6px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(201, 161, 77, 0.2);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #c9a14d;
  padding-left: 8px;
  border-bottom-color: #c9a14d;
}

/* Ícones dourados */
.footer-section i {
  color: #c9a14d;
  margin-right: 8px;
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

/* Logo do footer */
.footer-logo-container {
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(201, 161, 77, 0.3);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
}

.footer-logo {
  max-width: 150px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a14d;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid #c9a14d;
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(5px);
}

.social-links a i {
  margin-right: 0;
  width: auto;
  font-size: 1.1rem;
  color: #c9a14d;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #c9a14d;
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(201, 161, 77, 0.4);
}

.social-links a:hover i {
  color: #1a1a1a;
}

/* Informações de contato */
.footer-section .contact-info {
  background: rgba(0, 0, 0, 0.5);
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid #c9a14d;
  border-right: 1px solid rgba(201, 161, 77, 0.2);
  border-top: 1px solid rgba(201, 161, 77, 0.2);
  border-bottom: 1px solid rgba(201, 161, 77, 0.2);
  backdrop-filter: blur(5px);
}

.footer-section .contact-info p {
  margin-bottom: 6px;
}

/* Copyright */
.copyright {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid rgba(201, 161, 77, 0.3);
  font-size: 0.8rem;
  color: #ccc;
}

.copyright p {
  margin: 0;
  font-size: 0.8rem;
}

.copyright a {
  color: #c9a14d;
  text-decoration: none;
  display: inline-block;
  padding: 0;
  border-bottom: none;
}

.copyright a:hover {
  color: #c9a14d;
  text-decoration: underline;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

/* ===== GALERIA ===== */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.galeria-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1/1;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.galeria-item:hover img {
  transform: scale(1.1);
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.galeria-item:hover .galeria-overlay {
  transform: translateY(0);
}

/* ===== FORMULÁRIOS ===== */
.form-container {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: #c9a14d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 161, 77, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #c9a14d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 161, 77, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== WHATSAPP FLOATING - SOMENTE ESSE É VERDE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366; /* VERDE */
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background: #128C7E; /* VERDE ESCURO */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M20 20 L80 20 L80 80 L20 80 Z" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="white" stroke-width="2"/></svg>') repeat;
  pointer-events: none;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}

/* ===== NOTÍCIAS ===== */
.noticias-list {
  display: grid;
  gap: 30px;
}

.noticia-item {
  background: #fff;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.noticia-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.noticia-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.noticia-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* ===== GLASSMORPHISM ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== TABELAS ===== */
.table-container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: var(--primary);
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.table tr:hover {
  background: #f9f9f9;
}

/* ===== ALERTAS ===== */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 4px solid transparent;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left-color: #c9a14d;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #c9a14d;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left-color: #c9a14d;
}

/* ===== PAGINAÇÃO ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.pagination a:hover {
  background: #c9a14d;
  color: #fff;
}

.pagination .active {
  background: var(--primary);
  color: #fff;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
  .header-container {
    padding: 8px 20px;
  }
  
  .header-logo {
    max-height: 90px;
    max-width: 260px;
  }
  
  .main-nav a {
    font-size: 13px;
    padding: 7px 12px;
  }
  
  .btn-admin {
    font-size: 13px !important;
    padding: 6px 16px !important;
  }
}

@media (max-width: 992px) {
  .header-container {
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #1a1a1a;
    position: absolute;
    top: 75px;
    left: 0;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
    border-top: 2px solid #c9a14d;
    border-bottom: 2px solid #c9a14d;
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    font-size: 15px;
    padding: 15px;
    border-bottom: 1px solid #333;
    white-space: normal;
    justify-content: center;
    border-left: none;
    border-right: none;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a i {
    width: 25px;
    font-size: 17px;
  }

  .btn-admin {
    margin-left: 0 !important;
    margin-top: 15px !important;
    text-align: center;
    justify-content: center !important;
    font-size: 15px !important;
    padding: 14px !important;
    background: transparent !important;
    border: 2px solid #c9a14d !important;
  }
  
  .btn-admin:hover {
    background: #c9a14d !important;
    color: #1a1a1a !important;
  }

  .hero-title {
    font-size: 2rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-logo {
    max-height: 80px;
    max-width: 220px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-section h3 {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-section a {
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .footer-logo-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 250px;
  }

  .footer-section .contact-info {
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-logo {
    max-height: 70px;
    max-width: 180px;
  }
  
  .header-container {
    padding: 8px 12px;
  }
  
  .mobile-menu-btn {
    font-size: 24px;
    padding: 6px 12px;
  }

  .main-footer {
    padding: 25px 12px 12px;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }
}

/* ===== UTILITÁRIOS ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }