body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0; 
    font-family: 'Lato', sans-serif; 
    background-color: #f4f7f6; 
    color: #333; 
    position: relative;
    overflow-x: hidden;
}

main {
    flex-grow: 1;
}

/* Centraliza a seção de boas-vindas */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 0;
    /* Propriedades que estavam no body */
    background: linear-gradient(125deg, #02588b, #006699, #1f96c1);
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff; /* <<< Garante que o texto no banner continue branco */
}

/* Adiciona um espaçamento superior a todas as seções, exceto a #home */
section:not(#home) {
    padding-top: 80px;
    padding-bottom: 40px;
}

/* Remove a margem extra da seção de promoções que não é mais necessária */
#promocoes {
    margin-top: 0; 
    background-color: transparent;
    overflow: hidden;
}

/* Garante que o conteúdo das páginas internas comece abaixo do menu */
.pagina-interna main {
    padding-top: 80px;
}



/* EFEITOS DE TEXTO E BOTÕES */
#home .texto-capa {
    position: relative;
    z-index: 1;
}
.titulo-brilhante {
  background: linear-gradient(90deg, #c6c9ca, #ffffff, #c0d7d8);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brilhoTexto 3s linear infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
@keyframes brilhoTexto {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
.tagline-capa {
    font-size: 2.8rem;
}
#BotaoOuça { background-color: rgb(80, 79, 85); 
    transition: transform 0.2s ease; 
    transform: scale(1.2);
    border-color: rgb(80, 79, 85);
 }

/* REGRAS DE RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
  .navbar-collapse {
    flex-direction: column; align-items: flex-start;
    padding: 10px 0; background-color: rgba(0, 0, 0, 0.9); gap: 10px;
  }
  .navbar-nav { flex-direction: column; width: 100%; }
  .navbar-nav .nav-item { width: 100%; }
  .navbar-nav .nav-link { color: white !important; padding: 10px 15px; width: 100%; }
  .navbar-redes {
    width: 100%;
    margin-top: 10px;
    justify-content: flex-start; 
    margin-right: 0;
  }
  .navbar-redes img { margin-right: 10px; }
  .navbar-toggler { border: none; }
  .navbar-toggler-icon { filter: invert(1); }

  body::before {
    display: none;
  }
}

/* AGENDA DE PROGRAMAS */
.agenda { background-color: transparent; }
.card-agenda {
    background-color: white; padding: 30px 20px; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    height: 100%; opacity: 0; transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.card-agenda.visible { opacity: 1; transform: translateY(0); }
.card-agenda .horario {
    font-size: 1rem; font-weight: bold; color: #d81b60;
    display: block; margin-bottom: 15px;
}
.card-agenda .nome-programa { font-size: 1.5rem; color: #333; }

/*
======================================================
 ESTILO DA PREVISÃO DO TEMPO DETALHADO
======================================================
*/
.previsao-semana-container {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #333;
}

#container-previsao {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tempo-bloco {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Estilos do Tempo Atual */
#tempo-agora {
    flex-grow: 1;
}

.cidade-nome {
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
}

.tempo-agora-main {
    display: flex;
    align-items: center;
}

.tempo-agora-main img {
    width: 80px;
    height: 80px;
}

.temperatura-atual {
    font-size: 3rem;
    font-weight: bold;
    color: #000;
}

.descricao-tempo {
    font-size: 1rem;
    color: #666;
}

/* Estilos da Previsão da Semana */
#previsao-semana {
    justify-content: flex-end;
}

.dia-previsao-detalhado {
    text-align: center;
    padding: 0 15px;
}

.dia-previsao-detalhado .dia-semana {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
}

.dia-previsao-detalhado img {
    width: 50px;
    height: 50px;
}

.dia-previsao-detalhado .temperaturas {
    font-size: 1rem;
}

.temperaturas .temp-max {
    font-weight: bold;
    color: #fad505; 
    margin-right: 5px;
}

.temperaturas .temp-min {
    color: #3498db; 
}

/* Divisor Vertical */
.divisor-vertical {
    width: 1px;
    background-color: #e0e0e0;
    align-self: stretch;
    margin: 0 30px;
}

/* Ajustes para telas menores */
@media (max-width: 992px) {
    #container-previsao {
        flex-direction: column;
        gap: 20px;
    }
    .divisor-vertical {
        width: 80%;
        height: 1px;
        margin: 15px 0;
    }
}

.text-center {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/*
======================================================
 ANIMAÇÃO PARA O ÍCONE DO SOL GIRAR
======================================================
*/
@keyframes girar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.icone-sol-girando {
  animation: girar 15s linear infinite; /* 15s para uma rotação lenta e suave */
}

/* Define o tamanho e a cor do ícone SVG */
#tempo-agora svg {
    width: 80px;
    height: 80px;
    fill: #f1c40f; /* Cor amarela para o sol */
}

.dia-previsao-detalhado svg {
    width: 50px;
    height: 50px;
    fill: #f1c40f; /* Cor amarela para o sol */
}

/* Remove a imagem antiga se ainda estiver lá */
.tempo-agora-main img,
.dia-previsao-detalhado img {
    /* Mantém as regras de tamanho que já tínhamos */
    width: 80px;
    height: 80px;
}
.dia-previsao-detalhado img {
    width: 50px;
    height: 50px;
}

/* Remove o brilho azul padrão do Bootstrap quando o botão é focado (clicado) */
#BotaoOuça:focus {
    outline: none;
    box-shadow: none;
}

/* Opcional, mas recomendado para acessibilidade:
  Adiciona um brilho branco sutil QUANDO o botão é focado pelo teclado.
  Este estilo não afeta o clique do mouse.
*/
#BotaoOuça:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}