/* Estilos Globais */
:root {
  --primary-color: #2F4F8C;
  --secondary-color: #253F70;
  --accent-color: #4A6EAD;
  --gray-color: #999999; /* Cinza da logo CentroData */
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --text-color: #333;
  --text-light: #6c757d;
  --border-radius: 5px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html, body {
  min-height: 100vh;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

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

/* Header */
header {
  background-color: #fff;
  box-shadow: var(--box-shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-color);
}

.logo span {
  color: var(--primary-color);
}

/* Menu de navegação principal */
nav {
  position: relative;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
  position: relative;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
}

nav ul li a i {
  margin-left: 5px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

nav ul li a:hover i {
  transform: rotate(180deg);
}

nav ul li a:hover,
nav ul li a.active {
  background-color: var(--primary-color);
  color: white;
}

/* Submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

nav ul li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  margin: 0;
  width: 100%;
}

.submenu li a {
  padding: 10px 15px;
  display: block;
  color: var(--text-color);
  border-radius: 0;
  border-bottom: 1px solid #f1f1f1;
}

.submenu li:last-child a {
  border-bottom: none;
}

.submenu li a:hover {
  background-color: #f1f1f1;
  color: var(--primary-color);
}

.submenu li a.active {
  background-color: var(--primary-color);
  color: white;
}

/* Indicador de menu ativo */
nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 120px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

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

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 32px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Page Content */
.page-content {
  padding: 120px 0 80px;
}

.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 100px 0 40px;
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 60px;
}

.content-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.content-section p {
  margin-bottom: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.content-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.content-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--box-shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  nav.active {
    max-height: 500px;
    overflow-y: auto;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  nav ul li {
    margin: 0 0 15px 0;
    width: 100%;
  }

  nav ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .submenu.active {
    max-height: 500px;
  }

  .submenu li {
    padding-left: 15px;
  }

  .submenu li a {
    padding-left: 25px;
  }

  nav ul li a.active::after {
    display: none;
  }

  .hero {
    padding: 100px 0 50px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .features-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Specific Page Styles */
.feature-image {
  width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.feature-details {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  margin-bottom: 30px;
}

.feature-details h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-details ul {
  list-style-position: inside;
  margin-bottom: 20px;
}

.feature-details ul li {
  margin-bottom: 10px;
}

.feature-highlights {
  margin: 20px 0;
}

.feature-highlights ul {
  list-style: none;
  padding: 0;
}

.feature-highlights ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
  position: relative;
  padding-left: 25px;
}

.feature-highlights ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.feature-highlights ul li:last-child {
  border-bottom: none;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 800px;
  background-color: white;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

nav ul li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-column {
  padding: 10px;
}

.mega-menu-column h3 {
  color: var(--primary-color);
  font-size: 12px;
  margin-bottom: 13px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent-color);
}

.mega-menu-column ul {
  display: block;
}

.mega-menu-column ul li {
  margin: 0 0 10px 0;
}

.mega-menu-column ul li a {
  padding: 5px 0;
  display: block;
  color: var(--text-color);
  font-weight: normal;
}

.mega-menu-column ul li a:hover {
  background-color: transparent;
  color: var(--primary-color);
  padding-left: 5px;
}

.mega-menu-column ul li a.active {
  background-color: transparent;
  color: var(--primary-color);
  font-weight: bold;
}

.mega-menu-column ul li a.active::after {
  display: none;
}

@media (max-width: 992px) {
  .mega-menu {
    width: 600px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    display: block;
    padding: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
  }

  .mega-menu.active {
    max-height: 1000px;
  }

  .mega-menu-column {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
  }

  .mega-menu-column:last-child {
    border-bottom: none;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: #f8f9fa;
  padding: 10px 0;
  margin-top: 70px;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumbs ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumbs ul li {
  display: flex;
  align-items: center;
}

.breadcrumbs ul li:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: var(--text-light);
}

.breadcrumbs ul li a {
  color: var(--text-light);
}

.breadcrumbs ul li a:hover {
  color: var(--primary-color);
}

.breadcrumbs ul li:last-child a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Botão de voltar ao topo */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
}

