html {
  scroll-behavior: smooth;
}

/* estilos só do portal (a área interna e o login usam o private.css) */
.site-header {
    background-color: var(--bs-gray-dark);
}

.site-header .carousel-item img,
.site-header .carousel-capa {
    filter: brightness(0.5);
    object-fit: cover;
}

.site-header .carousel-caption {
    top: 40%;
}

.site-header .carousel-caption h1 {
    font-size: 2.0rem;
    font-weight: 700;
}

.site-header .intro,
.site-header,
.carousel-item img,
.carousel-capa,
video#promo_video {
    height: 100vh;
    min-height: 100vh;
}

video#promo_video {
    width: 100%;
    object-fit: cover !important;
}

.carousel-item {
    transition: transform 0.5s ease-in-out;
}

body.bg-black.single-page {
    padding-top: 80px;
    background: black;
}


.figure-fit {
    height: 300px !important;
    overflow: hidden;
}

.figure-fit img {
    max-width: 100%;
    min-height: 300px !important;
    object-fit: cover;
}

.gallery-item {
    text-align: center !important;
}

@media (max-width: 768px) {

    .carousel-item img,
    .carousel-capa,
    .site-header .intro,
    .site-header,
    video#promo_video {
        height: 80vh;
        min-height: 80vh;
    }

    .navbar-custom .navbar-nav>li>a {
        font-size: 24px;
    }

    .site-header .carousel-caption {
        transform: translateY(-5%);
    }

    .site-header .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .site-header .carousel-caption h2 {
        font-size: 1rem;
    }
}

@media (max-width: 375px) {

    .carousel-item img,
    .carousel-capa,
    .site-header .intro,
    .site-header,
    video#promo_video {
        height: 80vh;
        min-height: 80vh;
    }

    .navbar-custom .navbar-nav>li>a {
        font-size: 24px;
    }

    .site-header .carousel-caption {
        top: 35%;
    }

    .site-header .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .site-header .carousel-caption h2 {
        font-size: 0.8rem;
    }

    .figure-fit {
        height: 165px !important;
    }

    .gallery-item img {
        min-height: 165px !important;
    }

    .figure-fit {
        height: 165px !important;
    }

    .gallery-item img {
        min-height: 350px !important;
    }
}

/*Rodapé*/
.site-footer {
    position: relative;
    text-align: left;
    padding: 64px 0 24px;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--river), var(--sun), var(--leaf));
}

.site-footer .footer-brand .portal-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.site-footer .footer-brand .portal-logo img {
    height: 40px;
}

.portal-logo-texto {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer .footer-brand-text {
    font-weight: 800;

}

.site-footer .footer-tagline {
    font-weight: 600;
    margin: 0 0 8px;
}

.site-footer .footer-desc {
    margin: 0 0 20px;
}

.site-footer .footer-social {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.site-footer .footer-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;

}

.site-footer .footer-social li a:hover,
.site-footer .footer-social li a:focus {
    background-color: color-mix(in oklab, var(--primary-foreground) 22%, transparent);
    opacity: 1;
}

.site-footer .footer-heading {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sun);
    margin: 0 0 20px;
}

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

.site-footer .footer-nav li {
    margin-bottom: 14px;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.site-footer .footer-nav a {
    color: color-mix(in oklab, var(--primary-foreground) 85%, transparent);
}

.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus {
    text-decoration: underline;
}

.site-footer .footer-nav i {
    width: 16px;
    color: var(--sun);
}

.site-footer .footer-divider {
    margin: 40px 0 24px;
}

.site-footer .footer-copyright {
    font-size: var(--text-sm);

    margin: 0;
}

@media (max-width: 767.98px) {
    .site-footer .col-md-4 {
        margin-bottom: 32px;
    }
}

.navbar-instituicao,
.schedule-badge {
    display: none !important;
}

.navbar-instituicao,
.schedule-badge,
.schedule-title {

    color: white;
}

/* Carrossel da pagina inicial: setas prev/next (renderizadas so quando ha mais de um item) */
#carousel_noticias .carousel-control-prev,
#carousel_noticias .carousel-control-next {
    z-index: 2;
    width: 5rem;
    opacity: 1;
    background: none;
}

#carousel_noticias .carousel-control-prev-icon,
#carousel_noticias .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-size: 45%;
    transition: background-color 0.2s;
}

#carousel_noticias .carousel-control-prev:hover,
#carousel_noticias .carousel-control-next:hover,
#carousel_noticias .carousel-control-prev:focus,
#carousel_noticias .carousel-control-next:focus {
    opacity: 1;
}

#carousel_noticias .carousel-control-prev:hover .carousel-control-prev-icon,
#carousel_noticias .carousel-control-next:hover .carousel-control-next-icon,
#carousel_noticias .carousel-control-prev:focus .carousel-control-prev-icon,
#carousel_noticias .carousel-control-next:focus .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
}


/*
 * 1. Google Font
 */
@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,700);

/*
 * 2.0 Global Style
 */
html {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
}

body {
  color: #4e4e4e;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #000;
}

a:focus {
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

p {
  margin: 0 0 30px;
}

ul li {
  font-weight: 700;
  margin-bottom: 10px;
}

.custom-list-icon,
.list-arrow-right {
  list-style-type: none;
  padding: 0;
}

.custom-list-icon li,
.list-arrow-right li {
  position: relative;
  padding-left: 20px;
}

.custom-list-icon li::before,
.list-arrow-right li::before {
  position: absolute;
  left: 0;
  color: #4e4e4e;
  font-family: "Ionicons";
}

.social-block {
  list-style-type: none;
  padding: 0;
}

.social-block li {
  display: inline-block;
}

.social-block li a {
  display: inline-block;
  height: 32px;
  width: 32px;
  color: #4e4e4e;
}

.social-block li a i {
  font-size: 1.5em;
}

.social-block li a:hover,
.social-block li a:focus {
  color: #000;
}

.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn:active:focus,
.btn:focus {
  outline: none;
}

.btn {
  border: 0;
  border-radius: 0;
  padding: 6px 28px;
  text-transform: uppercase;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: -webkit-transform;
  transition-property: transform;
}

.btn:hover {
  -webkit-transform: scale(0.9);
  -ms-transform: scale(0.9);
  transform: scale(0.9);
}

.form-control {
  border-radius: 0;
  box-shadow: none;
  height: 48px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.6;
}

.form-control:focus {
  box-shadow: none;
  border-color: #ccc;
  background-color: #f8f8f8;
}

.valign-center {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.section {
  padding: 70px 0;
}

.section-title {
  color: #313131;
  letter-spacing: 1px;
  margin: 0 0 20px;
  text-transform: uppercase;
  text-align: center;
}

/*
 * 3.0 Helper Class
 */
/*
 * 3.1 Helper Class: font-weight
 */
.font-300 {
  font-weight: 300;
}

.font-400 {
  font-weight: 400;
}

.font-700 {
  font-weight: 700;
}

/*
 * 3.2 Helper Class: margin
 */
.mt0 {
  margin-top: 0;
}

.mb0 {
  margin-bottom: 0;
}

.mt20 {
  margin-top: 20px;
}

/*
 * 3.3 Helper Class: list
 */
.list-arrow-right li::before {
  content: "\f3d3";
}

/*
 * 3.4 Helper Class: button
 */
.btn-white {
  color: #000;
  background-color: #fff;
}

.btn-white:hover,
.btn-white:focus {
  color: #000;
  background-color: #fff;
}

.btn-black {
  color: #fff;
  background-color: #000;
}

.btn-black:hover,
.btn-black:focus {
  color: #fff;
  background-color: #000;
}

/*
 * 3.5 Helper Class: background
 */
.bg-image,
.bg-image-1,
.bg-image-2 {
  position: relative;
  z-index: 1;
}

.bg-image::before,
.bg-image-1::before,
.bg-image-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: brightness(45%) blur(2px);
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* imagens de fundo: do tema da edição (documentos "Imagem do tema" fundo-1 e fundo-2), ou um degradê */
.bg-image-1 {
  background: var(--imagem-fundo-1, linear-gradient(135deg, #1f2937 0%, #111827 100%)) no-repeat center center/cover;
}

.bg-image-2 {
  background: var(--imagem-fundo-2, linear-gradient(135deg, #111827 0%, #374151 100%)) no-repeat center bottom/cover;
}

/* slide do carrossel sem imagem: a capa do tema (documento "Imagem do tema" capa), ou um degradê */
.carousel-capa {
  width: 100%;
  background: var(--imagem-capa, linear-gradient(135deg, #374151 0%, #111827 100%)) no-repeat center center/cover;
}

/* membro da comissão sem foto */
.figure-fit .sem-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 156px;
  background-color: var(--bs-gray-200);
  color: var(--bs-gray-500);
  font-size: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding: 90px 0;
  }

  .section-title {
    color: #313131;
    letter-spacing: 1px;
    margin: 0 0 60px;
    text-transform: uppercase;
    text-align: left;
  }
}

/*
 * 4.0 Navigation
 */
.navbar-custom {
  border: 0;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #000;
  -webkit-transition: all 0.2s linear 0s;
  transition: all 0.2s linear 0s;
}

.navbar-custom .navbar-nav li {
  margin: 0;
}

.navbar-custom .navbar-nav>li>a {
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 400;
  border-bottom: 1px solid transparent;
}

.navbar-custom .navbar-nav>li>a:focus,
.navbar-custom .navbar-nav>li>a:hover {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-custom .navbar-nav>.active>a {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-solid {
  background-color: rgba(0, 0, 0, 0.5) !important;
  /* Fundo semi-transparente para o efeito de vidro */
  padding: 0 !important;
  transition: all 0.2s linear;

  /* Efeito de desfoque e vidro fosco */
  backdrop-filter: blur(8px) brightness(100%) contrast(100%) saturate(150%);
  -webkit-backdrop-filter: blur(8px) brightness(100%) contrast(100%) saturate(150%);

  /* Para garantir uma aparência suave com contraste */
  border: 1px solid rgba(255, 255, 255, 0.2);
}


.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  /* Coloca o gradiente atrás do conteúdo */
}

.navbar-solid .portal-logo img {

  height: 60px !important;

}

.site-branding {
  float: left;
  margin-top: 0;
  margin-left: 10px;
}

.site-branding .logo {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-right: 5px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.site-branding .logo:focus,
.site-branding .logo:hover {
  text-decoration: none;
}

/*
 * 5.0 Site Header
 */
.site-header {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: relative;
  text-align: center;
  display: table;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.site-header .intro {
  color: #fff;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  z-index: 1;
  padding: 0 15px;
  display: table-cell;
  vertical-align: middle;
  height: 100vh;
}

.site-header .intro h2 {
  margin-top: 0px;
  font-size: 25px;
  font-weight: 300;
}

.site-header .intro h1 {
  margin-top: 0px;
  font-size: 30px;
}

.site-header .intro p {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 300;
}

@media (min-width: 768px) {
  .navbar-custom {
    background-color: transparent;
    padding-top: 30px;
  }

  .site-branding {
    margin-top: 6px;
    margin-left: 0;
  }
}

/*
 * 6.0 Section
 */
/*
 * 6.1 Section: About
 */
.about .section-title {
  margin: 0 0 25px;
}

.about figure {
  margin-bottom: 25px;
}


/*
 * 6.3 Section: Speaker
 */
.speaker {
  text-align: center;
  color: #313131;
  text-transform: uppercase;
  margin: 25px 0;
}

.speaker h4 {
  margin-top: 15px;
  margin-bottom: 5px;
}

.speaker p {
  margin-bottom: 5px;
}

.speaker img:hover {
  opacity: .7;
}

/*
 * 6.4 Section: Registration & Pricing
 */
/*
 * 6.5 Section: Contribution
 */
.contribution {
  text-align: center;
  color: #fff;
}

/*
 * 6.6 Section: Schedule
 */
.schedule-box {
  position: relative;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 50px 0;
  margin: 25px 0 0;
}

.schedule-box::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border: 1px solid #fff;
}

/*
 * 6.7 Section: Schedule
 */
.partner,
.gallery {
  background-color: #f8f8f8;
}


.gallery-box {
  height: 170px;
  background-position: center;
  background-size: cover;
  padding-top: 130px;
}

.gallery-box:hover {
  opacity: 0.8;
}


/*
 * 6.9 Section: photos
 */
.grid {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.grid::after {
  content: '';
  display: block;
  clear: both;
}

.grid-item {
  float: left;
  overflow: hidden;
  padding: 3px;
  margin: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .grid-item-sm-6 {
    width: 50%;
  }

  .grid-item-sm-3 {
    width: 25%;
  }

  .section-title {
    margin: 0 0 30px;
  }

  figure {
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  .schedule-box {
    margin: 0;
  }

  .grid-item-md-6 {
    width: 50%;
  }

  .grid-item-md-3 {
    width: 25%;
  }
}

/*
 * 7.0 Site-footer
 */
.site-footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

.site-footer .site-info {
  font-weight: 400;
  margin-bottom: 10px;
}

.site-footer .site-info a {
  color: #fff;
}

.site-footer .social-block li a {
  color: #fff;
}

.site-footer .social-block li a:hover,
.site-footer .social-block li a:focus {
  opacity: 0.8;
}


.portal-logo img {
  filter: brightness(100);
  height: 100px;
  transition: all 0.3s;
}

.schedule-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 15px;
}

.schedule-box h3 {
  flex-grow: 1;
  /* Faz com que o <h3> ocupe mais espaço vertical */
  display: flex;
  align-items: center;
  /* Centraliza o texto verticalmente dentro do <h3> */
  justify-content: center;
  /* Centraliza o texto horizontalmente dentro do <h3> */
  margin: 0;
  /* Remove a margem padrão */
  text-align: center;
  /* Centraliza o texto horizontalmente */
}

body.bg-black.single-page {
  padding-top: 80px;

}

body.bg-black.single-page .navbar-custom {
  background: black;
  padding-top: 0;
}

/* páginas internas do portal com pouco conteúdo: a seção branca vai até o rodapé, que fica no fim da tela */
body.single-page .portal-pagina {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}

body.single-page .portal-pagina > section:last-of-type {
  flex-grow: 1;
}

.small {
  font-size: small;
}

.xsmall {
  font-size: x-small;
}

#map {
  height: 400px;
}

@media (min-width: 768px) {
  .row-cols-md-4>* {
    flex: 0 0 auto;
    width: 24%;
  }
}

.text-justify {
  text-align: justify;
}

/* texto longo da apresentação em duas colunas: quem divide é o navegador, então o HTML continua inteiro */
.about-colunas {
  column-count: 2;
  column-gap: 2rem;
}

@media (max-width: 767.98px) {
  .about-colunas {
    column-count: 1;
  }
}


.frame {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.slidee {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  /* Faz os itens ficarem lado a lado */
}

.slidee li {
  display: inline-block;
  width: 200px;
  height: 200px;
  background-color: #f0f0f0;
  text-align: center;
  line-height: 200px;
  margin-right: 10px;
  font-size: 18px;
}



.flickity-button:disabled {
  display: none;
}

.flickity-prev-next-button {
  transform: translateY(-100%) !important;
}

.list-group-item {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.bg-dark.list-group-item:hover {
  background-color: rgb(98, 97, 97) !important;
}

.list-group-item:hover {
  background-color: rgba(179, 224, 246, 0.277) !important;
}

#promo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(255, 255, 255, 0) 30%);
  z-index: 1;
}

figure.figure-fit.gallery-item {
  height: 230px !important;
}

.mt-7,
.my-7 {
  margin-top: 5rem !important;
}

.mt-6,
.my-6 {
  margin-top: 4rem !important;
}

.mt-7,
.my-7 {
  margin-top: 5rem !important;
}


#schedule .schedule-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: white;
  font-size: large;
  font-weight: 700;
}

.site-footer a {
  text-decoration: none !important;
}

.site-footer ul li {
  font-weight: 700;
  margin-bottom: 10px;
  list-style: none;
}

.partner-logo img {
  height: 45px;
}

.partner-card {
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

span.partner-logo {
  margin-bottom: 15px;
}

span.partner-name {
  justify-content: center;
}


.navbar-instituicao,
.schedule-badge {
  display: none;
}

.navbar-instituicao,
.schedule-badge,
.schedule-title {

  color: white;
}

/* mensagens do Django (base.html): no topo, somem depois de alguns segundos */
.mensagens-flash {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: min(32rem, calc(100% - 2rem));
}

.mensagens-flash .alert {
  animation: mensagem-some 0.5s ease-in 6s forwards;
}

.mensagens-flash .alert:hover {
  animation-play-state: paused;
}

@keyframes mensagem-some {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* páginas de erro (core/error_views.py) */
body.pagina-erro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.pagina-erro .navbar-custom {
  background-color: #000;
  padding-top: 10px;
}

.pagina-erro-conteudo {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
}

.pagina-erro-codigo {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}

/* agenda: enquanto o htmx troca o dia ou o tipo, a tabela esmaece e aparece o spinner */
.agenda-tabela {
  position: relative;
}

.agenda-carregando {
  display: none;
  position: absolute;
  top: 2rem;
  left: 50%;
  margin-left: -1rem;
  z-index: 1;
}

#agenda.htmx-request .agenda-carregando {
  display: block;
}

#agenda.htmx-request .agenda-tabela .table-container {
  opacity: .4;
  transition: opacity .15s;
}
