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

:root {
  --primary: #0d1f3c;
  --primary-light: #1a3660;
  --accent: #e8710a;
  --accent-dark: #c55e07;
  --light: #f5f7fa;
  --text: #3d4555;
  --border: #e2e8f0;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

/* ====== NAVBAR ====== */
.dovelli-nav {
  background: var(--primary) !important;
  padding: 0.9rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.dovelli-nav .navbar-brand img { height: 50px; width: auto; }

.dovelli-nav .navbar-nav .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s;
  text-transform: uppercase;
}

.dovelli-nav .navbar-nav .nav-link:hover,
.dovelli-nav .navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

.lang-selector {
  display: flex;
  gap: 3px;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 1rem;
  margin-left: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.lang-btn:hover, .lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.navbar-toggler { border-color: rgba(255,255,255,0.3) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ====== HERO ====== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-slideshow { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; }

.hero-slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(13,31,60,0.90) 0%, rgba(13,31,60,0.65) 60%, rgba(13,31,60,0.48) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 4rem 0;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-title .accent { color: var(--accent); }

.hero-text {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.88;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.btn-dovelli {
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  border: none;
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
}

.btn-dovelli:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,113,10,0.35);
}

.btn-dovelli-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 12px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: inline-block;
  background: transparent;
}

.btn-dovelli-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* ====== STATS ====== */
.stats-section {
  background: var(--accent);
  padding: 2.5rem 0;
}

.stat-item { text-align: center; color: #fff; }

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

.stats-section .stat-divider {
  border-right: 1px solid rgba(255,255,255,0.3);
}

/* ====== SECTIONS ====== */
.section-pad { padding: 5rem 0; }
.section-bg { background: var(--light); }

.section-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  margin: 0.9rem 0 1.5rem;
  border: none;
}

.section-sub {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
}

/* ====== SERVICE CARDS ====== */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(13,31,60,0.12);
  transform: translateY(-5px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: #fff;
}

.service-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}

/* ====== ABOUT ====== */
.about-img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(13,31,60,0.18);
  width: 100%;
  object-fit: cover;
  max-height: 480px;
}

/* ====== CTA SECTION ====== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== PAGE HEADER ====== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-header p { font-size: 1.05rem; opacity: 0.85; margin: 0; }

.breadcrumb-custom {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  opacity: 0.7;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.breadcrumb-custom li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}

/* ====== PROJECT CARDS ====== */
.project-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  transition: all 0.3s;
  background: #fff;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 45px rgba(0,0,0,0.16);
}

.project-card-img-wrap {
  overflow: hidden;
  height: 200px;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

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

.project-card-body { padding: 1.2rem 1.4rem; }

.project-year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
}

.project-card-body h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.project-card-body p {
  font-size: 0.83rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* ====== TRAINING ====== */
.training-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s;
}

.training-card:hover {
  box-shadow: 0 8px 40px rgba(13,31,60,0.1);
  transform: translateY(-4px);
}

.training-icon {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.training-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.training-card p {
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.88rem;
}

/* ====== CONTACT ====== */
.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-icon-box {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #fff;
}

.contact-info-item h6 {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-info-item p { margin: 0; line-height: 1.7; font-size: 0.92rem; }

.contact-info-item a { color: rgba(255,255,255,0.85); text-decoration: none; }
.contact-info-item a:hover { color: var(--accent); }

.contact-form-wrap {
  background: var(--light);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-control {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,113,10,0.1);
  outline: none;
}

/* ====== ABOUT PAGE ====== */
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.value-item:last-child { border-bottom: none; }

.value-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.value-item p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

.mvv-card {
  background: #fff;
  border-radius: 10px;
  border-left: 5px solid var(--accent);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(13,31,60,0.07);
  height: 100%;
}

.mvv-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.mvv-card p { font-size: 0.9rem; color: #6b7280; line-height: 1.7; margin: 0; }

/* ====== FOOTER ====== */
.footer {
  background: #0a1220;
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 0;
}

.footer h5 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.footer-logo {
  height: 48px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer p { font-size: 0.85rem; line-height: 1.7; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
  text-decoration: none;
}

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

.footer-links a::before { content: '› '; opacity: 0.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  text-align: center;
}

/* ====== UTILS ====== */
.text-accent { color: var(--accent) !important; }
.fw-800 { font-weight: 800; }

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
  body { padding-top: 70px; }
  .hero-section { min-height: 85vh; }

  .lang-selector {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-left: 0;
    margin-left: 0;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .section-pad { padding: 3.5rem 0; }
  .stat-number { font-size: 2rem; }
  .hero-text { font-size: 1rem; }
  .page-header { padding: 3rem 0 2rem; }
  /* Remove border lateral indevida na 2ª coluna das estatísticas em mobile (2×2 grid) */
  .stats-section .row > :nth-child(2n) .stat-divider { border-right: none; }
  /* Aumenta área de toque dos botões de idioma no mobile */
  .lang-btn { padding: 7px 12px; }
}
