/* Estilos Globais */
:root {
  --azul-principal: #1a5276;
  --azul-ottimizza: #151e3f;
  --roxo-ottimizza: #167faf;
  --verde-ottimizza: #00b894;
  --cinza-claro: #f8f9fa;
  --branco: #ffffff;
  --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transicao: all 0.3s ease;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--cinza-claro);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  color: var(--azul-principal);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--azul-principal);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  color: #8d6b18;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--azul-principal);
  text-decoration: none;
  transition: var(--transicao);
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

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

.section {
  padding: 2rem 0;
  margin-bottom: 2rem;
  background-color: var(--branco);
  border-radius: 8px;
  box-shadow: var(--sombra);
}

.section-inner {
  padding: 0 2rem 2rem;
}

/* Cabeçalho */
header {
  background-color: var(--azul-ottimizza);
  color: var(--branco);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--sombra);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo a {
  color: var(--branco);
  text-decoration: none;
}

/* Navegação */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--branco);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--transicao);
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--branco);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(21, 30, 63, 0.8), rgba(21, 30, 63, 0.9)), url('../img/backgrounds/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--branco);
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  color: var(--branco);
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  background-color: var(--roxo-ottimizza);
  color: var(--branco);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transicao);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #00b894;
  color: var(--branco);
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.card {
  background-color: var(--branco);
  border-radius: 8px;
  box-shadow: var(--sombra);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transicao);
}

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

.card-title {
  color: var(--azul-principal);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.card-title i {
  margin-right: 0.5rem;
  color: var(--verde-ottimizza);
}

.card-content {
  color: #7ecdca;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--azul-principal);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--branco);
  border: 4px solid var(--verde);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.left::after {
  right: -10px;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--branco);
  border-radius: 8px;
  box-shadow: var(--sombra);
}

.timeline-content h3 {
  margin-top: 0;
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: var(--sombra);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: var(--azul-principal);
  color: var(--branco);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e9e9e9;
}

/* Rodapé */
footer {
  background-color: var(--azul-ottimizza);
  color: var(--branco);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  color: var(--branco);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--verde);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
}

/* Utilidades */
.text-center {
  text-align: center;
}

.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: 2.5rem; }

.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: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

.text-primary { color: var(--azul-principal); }
.text-success { color: var(--verde); }
.text-warning { color: var(--laranja); }
.text-white { color: var(--branco); }

.bg-primary { background-color: var(--azul-principal); }
.bg-success { background-color: var(--verde); }
.bg-warning { background-color: var(--laranja); }
.bg-light { background-color: var(--cinza-claro); }
.bg-white { background-color: var(--branco); }

/* Voltar ao topo */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--azul-principal);
  color: var(--branco);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transicao);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  list-style: none;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background-color: var(--branco);
  border-radius: 4px;
  box-shadow: var(--sombra);
}

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

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: #999;
}

.breadcrumbs a {
  color: var(--azul-principal);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .current {
  color: #777;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--azul-principal);
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: var(--branco);
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Barra de Progresso */
.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin: 1rem 0;
}

.progress-bar {
  height: 10px;
  border-radius: 4px;
  background-color: var(--verde);
  width: 0;
  transition: width 1s ease;
}

/* Ícones de Área */
.area-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--azul-principal);
  color: var(--branco);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Seção de Destaque */
.highlight-section {
  background-color: rgba(26, 82, 118, 0.05);
  border-left: 4px solid var(--azul-principal);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

/* Accordion */
.accordion {
  margin: 1.5rem 0;
}

.accordion-item {
  margin-bottom: 0.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--sombra);
}

.accordion-header {
  background-color: var(--azul-principal);
  color: var(--branco);
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  background-color: var(--branco);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding: 3rem;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

/* Impressão */
@media print {
  header, footer, .back-to-top, .mobile-menu-btn {
    display: none !important;
  }
  
  body {
    background-color: var(--branco);
    color: #000;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  
  .section {
    box-shadow: none;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p, table {
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: none;
    color: #000;
  }
  
  .timeline::after {
    display: none;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 0 0 1rem 0;
  }
  
  .timeline-item::after {
    display: none;
  }
}
