/* === Estilo dos Cards Padrão === */
.card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    margin: 0; /* Remove espaçamento externo */
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .card-img-top {
        height: 160px;
    }
}

/* === Botões === */
.btn-danger {
    background-color: #dc3545;
    border: none;
    font-weight: bold;
}

.btn-danger:hover {
    background-color: #bd2130;
}

/* === Carrossel de Introdução === */
#introCarousel {
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.carousel-inner,
.carousel-item {
    width: 100vw; /* Encosta nas laterais */
    margin: 0;
    padding: 0;
    height: 100vh; /* Altura total da viewport */
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeIn 2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* garante que a imagem preencha sem distorcer */
}

.carousel-caption {
    bottom: 20%;
    left: 5%;
    right: 5%;
    text-align: left;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    z-index: 10;
}

@media (max-width: 768px) {
    .carousel-inner,
    .carousel-item,
    .carousel-item img {
        height: 70vh; /* reduz altura no mobile para evitar espaços em branco */
    }

    .carousel-caption {
        bottom: 10%;
        font-size: 0.9rem;
    }
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1.2rem;
    max-width: 600px;
}

.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-caption .btn {
    font-weight: bold;
    background-color: #dc3545;
    border: none;
    padding: 12px 25px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.carousel-caption .btn:hover {
    background-color: #bd2130;
}

/* === Cards com Imagem de Fundo e Texto Sobreposto === */
.custom-card {
    position: relative;
    border: none;
    overflow: hidden;
    height: 400px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    background-color: #000;
    margin: 0;
}

.custom-card .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
    z-index: 1;
}

.custom-card .card-overlay {
    position: relative;
    padding: 20px;
    color: white;
    z-index: 2;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 60%, transparent);
}

.custom-card .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.custom-card .card-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.custom-card .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 30px;
    background-color: #dc3545;
    border: none;
    font-weight: bold;
}

.custom-card .btn:hover {
    background-color: #bd2130;
}

/* === Overlay de Informações nos Carrosséis === */
.info-overlay {
    position: absolute;
    top: 20%;
    left: 10%;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0);
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 60%;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.info-overlay h5 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.info-overlay p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.info-overlay .btn {
    background-color: #dc3545;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    color: #fff;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.info-overlay .btn:hover {
    background-color: #bd2130;
}

/* === Layout Responsivo para encostar nas bordas e ocupar a tela === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* evita scroll horizontal */
}

main {
    flex: 1;
    width: 100vw;
    padding: 0;
    margin: 0;
}
/* === Rodapé EZTEC atualizado e fixo no final da página === */
footer.rodape-eztec {
  background-color: #f8f8f8;
  color: #222;
  padding: 3rem 2rem 1.5rem;
  border-top: 4px solid #8C1C13;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  flex-shrink: 0; /* para não encolher */
}

.rodape-conteudo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.rodape-eztec .coluna {
  flex: 1 1 280px;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.rodape-eztec h5,
.rodape-eztec h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #8C1C13;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rodape-eztec p,
.rodape-eztec a {
  color: #444;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.rodape-eztec a:hover,
.rodape-eztec a:focus {
  color: #8C1C13;
  text-decoration: underline;
  outline: none;
}

.rodape-eztec i {
  margin-right: 0.5rem;
  color: #8C1C13;
}

/* Ícones sociais */
.social-links {
  margin-top: 1rem;
}

.footer-social-link {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.4rem;
  color: #8C1C13;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social-link:last-child {
  margin-right: 0;
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: #55110d;
  outline: none;
}

.rodape-base {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .rodape-conteudo {
    flex-direction: column;
    align-items: center;
  }

  .rodape-eztec .coluna {
    padding: 0;
    text-align: center;
    flex-basis: 100%;
  }
}
