/* SPA fade */
body {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
p {
    font-size: 16px;
}
body.page-loaded {
    opacity: 1;
}

/* Sticky navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color .3s ease, box-shadow .3s ease;
}
.navbar-scrolled {
    background-color: rgba(255,255,255,0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar-brand img {
    max-width: 140px;
}
.navbar {
  padding: 0px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.nav-item {
  font-size: 20px !important;
  font-weight: 700 !important;
}
.nav-item a {
  color: #219CBC;
}
.active a {
  color: #000;
}

/* Cards */
.card img {
    height: 250px;
    object-fit: cover;
}
/* CARD BASE */
.card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* HOVER ANIMADO */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* IMAGEM COM ZOOM SUAVE */
.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* TÍTULO */
.card-body h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* TEXTO */
.card-body p {
    color: #666;
    margin-bottom: 10px;
}

/* BOTÃO */
.card .btn {
    width: 100%;
    border-radius: 10px;
    padding: 10px 0;
    font-weight: 600;
    transition: background .3s ease, transform .2s ease;
}

.card .btn:hover {
    transform: scale(1.03);
}
/* FIM Cards */



.btn-primary, .btn-outline-primary {
  background: #219CBC !important;
  border: 1px solid #219CBC !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-outline-primary:hover {
  background: #fff !important;
  border: 1px solid #219CBC !important;
  color:#219CBC !important
}
/*Indica em que página está na paginação da mesma*/
.pagina-ativa {
  background: #fff !important;
  border: 1px solid #219CBC !important;
  color:#219CBC !important
}
/* Hero */
.hero {
    background: url('../img/sas_header_1920.jpg') center/cover no-repeat;
    height: 70vh;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botão "Voltar atrás" */
.btn-secondary {
    padding: 10px 20px;
    font-size: 1rem;
}


/* História individual */
#histImg {
    max-height: 450px;
    object-fit: cover;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-section {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  font-family: system-ui, sans-serif;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #222;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas */
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  background: #f7f9fc;
  border: 1px solid #e2e6f0;
  border-radius: 10px;
}

.icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: #219CBC;
}

.contact-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.contact-item p {
  margin: 0;
  color: #555;
}

/* Responsivo */
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.footer-dark {
    background: #111;
    border-top: 1px solid #333;
}

.footer-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity .3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 0.95rem;
    color: #ddd;
}

.main {
  min-height: 100vh;    
    display: flex;
    flex-direction: column;
}

/* ============================
   OFFCANVAS MODERNO PREMIUM
============================ */

.offcanvas {
  background: #ffffff;
  border-left: 3px solid #219CBC;
  box-shadow: -8px 0 25px rgba(0,0,0,0.15);
  padding-top: 10px;
}

/* Header */
.offcanvas-header {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 15px;
}

.offcanvas-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #219CBC;
}

/* Botão fechar */
.btn-close {
  filter: invert(40%);
  opacity: 0.7;
}

.btn-close:hover {
  opacity: 1;
}

/* Links */
.offcanvas .nav-link {
  font-size: 1.15rem;
  padding: 14px 12px;
  border-bottom: 1px solid #f1f1f1;
  transition: all 0.2s ease;
}

.offcanvas .nav-link:hover {
  background: #f7f7f7;
  padding-left: 18px;
}

/* Dropdown */
.offcanvas .dropdown-menu {
  border: none;
  background: #fafafa;
  box-shadow: none;
}

.offcanvas .dropdown-item {
  padding: 12px 18px;
  border-bottom: 1px solid #eaeaea;
}

.offcanvas .dropdown-item:hover {
  background: #e9f7fc;
}


/* ============================
   ESTILO PARA OS TÍTULOS DAS PÁGINAS
============================ */
.header-sidebar {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px 20px;
}

.header-sidebar .bar {
  width: 6px;
  height: 60px;
  background: #219CBC;
  border-radius: 6px;
}

.header-sidebar h1 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #222;
}