/* ====================================== GERAL E VARIÁVEIS ============================================= */
:root {
  --biavatti-dark-blue: #002147;
  --biavatti-accent-blue: #059cee;
  --biavatti-light-blue: #e6f0fa;
  --biavatti-light-bg: #f4f6f8;
  --biavatti-white: #ffffff;
  --biavatti-text: #333;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  /* INVERTIDO: Começa no Azul Água e termina na Areia clara */
  background: linear-gradient(
      180deg, 
      #B2EBF2 0%,   /* Azul Água Rasa (Igual ao fim do banner) */
      #F1F1E6 15%,  /* Transição rápida para a Areia onde ficam os cards */
      #F1F1E6 100%  /* Mantém a areia até o fim */
  );
  background-attachment: fixed;
  color: var(--biavatti-text);
  min-height: 100vh;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--biavatti-dark-blue);
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #d0ddee;
}

.card {
  padding: 25px;
  border-radius: 20px;
  
  /* EFEITO VIDRO FRESCO */
  background-color: rgba(255, 255, 255, 0.7); 
  backdrop-filter: blur(12px); 
  border: 1px solid rgba(255, 255, 255, 0.5);
  
  /* Sombra suave para não 'sujar' a areia */
  box-shadow: 0 15px 35px rgba(181, 129, 0, 0.1); 
  
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

/* Título dentro do card (H2) */
.card h2 {
    color: var(--biavatti-dark-blue);
    border-bottom: 2px solid rgba(5, 156, 238, 0.2); /* Linha azul piscina */
}

/* ====================================== SEÇÃO HERO E NAVEGAÇÃO ========================================= */
.hero-section {
  position: relative;
  height: auto; 
  min-height: 65vh; 
  padding: 100px 0 130px 0; /* Aumentei o espaço de baixo */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--biavatti-white);
  background: url("https://clinicabiavatti.com.br/wp-content/uploads/2023/10/AdobeStock_561334005-scaled.jpeg")
    no-repeat center center/cover;
    
  /* CURVA DA PRAIA */
  border-radius: 0 0 50% 50% / 40px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra bem levinha */
  margin-bottom: 40px;
  z-index: 5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* GRADIENTE: Azul Marinho (Topo) -> Azul Biavatti (Meio) -> Areia Clara (Base) */
  background: linear-gradient(
    to bottom,
    rgba(0, 33, 71, 0.85) 0%,    /* Azul bem escuro no topo para o logo branco brilhar */
    rgba(5, 156, 238, 0.4) 50%,  /* Azul da marca no meio */
    #F1F1E6 100%                 /* Cor da sua imagem na base da curva */
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  /* Aumentamos a sombra do texto para dar aquele destaque 'Premium' */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); 
}

/* Selo Flutuante de Verão */
.summer-badge {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #e67e22;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounceSlow 3s infinite ease-in-out;
}
.summer-badge i { font-size: 1.4rem; color: #f39c12; animation: spinSlow 10s linear infinite; }
@keyframes bounceSlow { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes spinSlow { 100% { transform: rotate(360deg); } }

.hero-logo {
  height: 160px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.hero-content h1 { font-size: 2.8rem; font-weight: 700; margin: 0 0 15px; }
.hero-content p { font-size: 1.2rem; font-weight: 300; max-width: 600px; margin: 15px auto 10px; }

/* --- WIDGET DE DATA E MOTIVAÇÃO --- */
.weather-widget {
  margin-top: 25px;
  margin-bottom: 45px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  align-items: center;
}
#current-date {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  text-transform: capitalize;
  font-weight: 300;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
  display: inline-block;
}
#motivation-box i {
  color: #00bcd4; /* Azul Turquesa vibrante */
  animation: heartbeat 2s infinite;
  filter: drop-shadow(0 0 5px rgba(0, 188, 212, 0.5));
}
/* Ícone de coração AZUL CIANO */
#motivation-box i {
  color: #29D9FF; 
  font-size: 1.3rem;
  animation: heartbeat 2s infinite;
  filter: drop-shadow(0 0 5px rgba(41, 217, 255, 0.6));
}
@keyframes heartbeat { 0%, 10%, 100% { transform: scale(1); } 5%, 15% { transform: scale(1.2); } }
.fade-text { opacity: 0; transition: opacity 1s ease-in-out; }
.show-text { opacity: 1; transition: opacity 1s ease-in-out; }


/* --- BOTÕES DA HERO --- */
.hero-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}
.hero-navigation a, .hero-dropdown-trigger {
  padding: 12px 30px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  color: var(--biavatti-dark-blue);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.hero-navigation a:hover, .hero-dropdown-trigger:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Botão Principal Branco */
.hero-navigation a.hero-button-main {
  background-color: var(--biavatti-white);
  color: var(--biavatti-accent-blue);
  font-weight: 600;
}
.hero-navigation a.hero-button-main:hover {
  background-color: var(--biavatti-light-bg);
  transform: translateY(-2px);
}

/* Botão NOVO ORÇAMENTO (Dourado/Amarelo) */
.hero-navigation a.hero-button-budget {
  background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
  color: var(--biavatti-dark-blue);
  font-weight: 700;
  border: none;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 15px rgba(253, 185, 49, 0.4);
}
.hero-navigation a.hero-button-budget:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffe144 0%, #ffc553 100%);
  box-shadow: 0 6px 20px rgba(253, 185, 49, 0.6);
}

/* DROPDOWNS */
.hero-dropdown { position: relative; display: inline-block; }
.dropdown-content {
  opacity: 0; visibility: hidden;
  transform: translateY(10px) translateX(-50%);
  transition: all 0.3s ease-in-out;
  position: absolute; z-index: 100;
  top: 120%; left: 50%;
  background-color: transparent;
  padding: 10px 0; min-width: 240px;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-dropdown:hover .dropdown-content {
  opacity: 1; visibility: visible;
  transform: translateY(0) translateX(-50%);
}
.dropdown-content a {
  display: block; text-align: center;
  color: var(--biavatti-dark-blue);
  background-color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.dropdown-content a:hover {
  background-color: var(--biavatti-dark-blue); color: var(--biavatti-white);
}

/* ============================ LAYOUT PRINCIPAL =========================== */
.main-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex; flex-direction: column; gap: 30px;
}

/* =============================== RANKINGS (PÓDIO PREMIUM) =============================== */
#rankings-section .carousel-wrapper {
  background-color: transparent;
  box-shadow: none;
  /* Espaço ajustado: 25px em cima para o Título colar mais, overflow hidden para cortar vizinho */
  padding: 25px 5px 20px 5px; 
  overflow: hidden; 
}
#rankings-section .carousel-track {
  padding-top: 0px; 
  padding-bottom: 20px;
}

#rankings-section h2.ranking-title-display {
  text-align: center;
  font-size: 1.8rem;
  color: var(--biavatti-dark-blue);
  margin-bottom: 0px; /* Título colado no ranking */
  border-bottom: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.podium {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 15px; min-height: 380px; padding: 0 10px;
}

/* CARD GERAL */
.podium-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 25px 15px;
  text-align: center;
  flex-basis: 250px; flex-grow: 1; max-width: 280px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex; flex-direction: column; align-items: center;
}

.podium-position {
  font-size: 3rem; font-weight: 700;
  margin-bottom: 10px; line-height: 1; display: block;
}

.podium-image {
  width: 90px; height: 90px; border-radius: 50%;
  margin: 0 auto 15px auto; overflow: hidden;
  border: 4px solid rgba(255,255,255,0.7);
  background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.podium-image img { width: 100%; height: 100%; object-fit: cover; }
.podium-name { font-size: 1.1rem; font-weight: 700; margin: 0 0 5px 0; width: 100%; }
.podium-score { font-size: 0.95rem; padding: 4px 12px; border-radius: 15px; font-weight: 500; background-color: rgba(255,255,255,0.5); display: inline-block; margin-top: auto; }

/* 2º LUGAR - PRATA */
.podium-card.position-2 {
  order: 1;
  background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 60%, #c0c0c0 100%);
  color: #555;
  box-shadow: 0 10px 25px rgba(100, 100, 100, 0.2);
  transform: translateY(20px) scale(0.95);
  z-index: 1;
}
.podium-card.position-2 .podium-position { color: #8a8a8a; }

/* 1º LUGAR - OURO (CAMPEÃO) */
.podium-card.position-1 {
  order: 2;
  background: linear-gradient(135deg, #FFD700 0%, #ffc800 40%, #ffdb3b 100%);
  color: #5a4a00;
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
  transform: translateY(-30px) scale(1.15); /* Pulo mais alto */
  z-index: 10;
  border: 3px solid #fff;
}
.podium-card.position-1 .podium-position { 
  color: white; 
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1); 
  position: relative;
}
/* COROA ANIMADA */
.podium-card.position-1 .podium-position::after {
  content: "\f521"; /* FontAwesome Crown */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -38px; left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: #fff;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
  animation: floatCrown 2s ease-in-out infinite alternate;
}
@keyframes floatCrown {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(-8px); }
}
.podium-card.position-1 .podium-name { color: #634d02; font-size: 1.3rem; }

/* 3º LUGAR - BRONZE */
.podium-card.position-3 {
  order: 3;
  background: linear-gradient(135deg, #f0c9a6 0%, #fff 60%, #cd7f32 100%);
  color: #5a3a20;
  box-shadow: 0 10px 25px rgba(165, 85, 40, 0.2);
  transform: translateY(30px) scale(0.9);
  z-index: 1;
}
.podium-card.position-3 .podium-position { color: #a05a2c; }

/* EFEITO DE BRILHO (Sheen) */
.podium-card::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  transform: skewX(-25deg); pointer-events: none;
}
.podium-card.position-1::before { animation: sheen 4s infinite; }
@keyframes sheen { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

/* =============================== OUTROS COMPONENTES =============================== */
#birthdays-section { height: 450px; }
#birthdays-container .birthday-image-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px;}
#news-container { max-height: 800px; overflow-y: auto; padding-right: 10px; }
#news-container article:not(:last-child) { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #e0eaf3; }

.news-item { display: flow-root; }
.news-item .news-image { border-radius: 8px; object-fit: cover; max-width: 100%; margin-bottom: 10px;}
.news-layout-image-left .news-image { float: left; margin-right: 20px; }
.news-layout-image-right .news-image { float: right; margin-left: 20px; }
.news-layout-image-center-top { display: flex; flex-direction: column; align-items: center; }
.news-layout-image-center-top .news-image { width: 70%; max-width: 500px; }

/* ============================ MODAL DE PARABÉNS (WINNER) ============================ */
.birthday-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 33, 71, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; animation: fadeIn 0.5s forwards;
}

.winner-card {
    background: linear-gradient(135deg, #00275a 0%, #004e92 100%);
    color: white; width: 90%; max-width: 550px; padding: 50px 30px;
    border-radius: 25px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center; position: relative; overflow: hidden;
    transform: scale(0.7); animation: scaleIn 0.5s 0.3s forwards;
}
.winner-card::before {
    content: ''; position: absolute; top: -50px; left: -50px; width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%); border-radius: 50%;
}

.winner-card h2 { font-size: 2.8rem; margin-bottom: 20px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 10px; border:none;}
.winner-card h2 .fa-trophy {
    font-size: 4.5rem;
    background: linear-gradient(to bottom, #FFD700, #FDB931);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.winner-card p { font-size: 1.15rem; line-height: 1.6; color: #e0eaf3; margin-bottom: 30px; }
.winner-card strong { color: #FFD700; font-size: 1.4rem; font-weight: 700; }
.winner-card button {
    background: linear-gradient(90deg, #FFD700 0%, #FFC000 100%); color: #4a3b00;
    font-size: 1.1rem; font-weight: 800; padding: 15px 40px;
    border: none; border-radius: 50px; cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}
.winner-card button:hover { transform: translateY(-3px) scale(1.05); }

/* Cartão de Aniversário Simples */
.birthday-card {
  background: white; color: var(--biavatti-dark-blue); padding: 40px;
  border-radius: 12px; text-align: center; max-width: 400px;
  animation: scaleIn 0.5s 0.3s forwards;
}
.birthday-card h2 { font-size: 2.5rem; color: var(--biavatti-accent-blue); }
.birthday-card button { background: var(--biavatti-accent-blue); color: white; border: none; padding: 10px 30px; border-radius: 20px; cursor: pointer;}


/* ============================ CARROSSEL GERAL (Imagens/Vídeos) ============================ */
.carousel-wrapper {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden; background-color: #ffffff;
}
.carousel-container, .carousel-track, .carousel-item { height: 100%; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-item { min-width: 100%; position: relative; }

/* Controles Carrossel */
.carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 20px; padding-bottom: 10px; }
.carousel-indicators button {
  width: 25px; height: 4px; background-color: #0084ff; border: none; border-radius: 2px;
  cursor: pointer; transition: background-color 0.3s ease;
}
.carousel-indicators button.active { background-color: #005f87; }

.carousel-wrapper .carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8); color: var(--biavatti-dark-blue);
  border: none; border-radius: 50%; width: 40px; height: 40px;
  cursor: pointer; z-index: 10; display: flex; justify-content: center; align-items: center;
}
.carousel-wrapper .carousel-btn:hover { background-color: white; transform: translateY(-50%) scale(1.1); }
.prev-btn, .prev-video-btn, .prev-ranking-btn { left: 20px; }
.next-btn, .next-video-btn, .next-ranking-btn { right: 20px; }

/* Textos e Legendas */
#image-carousel-section .carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white; text-align: left;
}
#image-carousel-section .carousel-caption h3 { font-size: 1.5rem; color: white; border: none; padding:0; margin-bottom: 5px; }
#video-carousel-section iframe { width: 100%; height: 100%; border: none; aspect-ratio: 16/9;}
.video-title-container { text-align: center; margin-top: 15px; font-weight: 600; color: var(--biavatti-dark-blue);}

/* ======================== RODAPÉ COM ONDAS CORRIGIDAS ======================== */

.footer-elegance {
    position: relative;
    width: 100%;
    margin-top: 150px; /* Mais espaço para a onda subir sem cobrir conteúdo */
    background: var(--biavatti-dark-blue);
}

/* Container das Ondas (Ajuste de Posicionamento) */
.waves-container {
    position: absolute;
    top: -150px; /* Sobe a onda para fora do rodapé */
    left: 0;
    width: 100%;
    height: 150px; /* Altura generosa para a curva aparecer */
    overflow: hidden;
    line-height: 0;
    /* Removemos a rotação que estava causando estranheza */
    transform: rotate(0deg); 
}

/* O SVG da Onda */
.waves {
    position: relative;
    width: 100%;
    height: 150px; /* Garante que o desenho tenha espaço vertical */
    margin-bottom: -1px; /* Corrige linha branca */
}

/* Animação de Movimento (Parallax) */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }

/* Animação que faz a onda ir e vir */
@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* --- CONTEÚDO DO RODAPÉ --- */
.footer-content {
    background-color: var(--biavatti-dark-blue);
    padding: 10px 20px 30px 20px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
}

/* --- ESTILO DOS ÍCONES E TEXTO --- */
.footer-content .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* Ícones Travados (Pequenos e Brancos) */
.footer-content .social-icons img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    object-fit: contain;
    margin: 0 !important;
    filter: brightness(0) invert(1); /* Ícones brancos */
    transition: transform 0.3s;
}

.footer-content .social-icons img:hover {
    transform: scale(1.2);
}

.footer-content p {
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.8;
}

.admin-link-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
}
.admin-link-container a {
    background: rgba(255,255,255,0.1);
    padding: 6px;
    border-radius: 50%;
    color: white;
    display: block;
}

/* Responsividade: Garante onda alta no celular também */
@media (max-width: 768px) {
    .waves-container { height: 80px; top: -80px; }
    .waves { height: 80px; }
    .footer-elegance { margin-top: 80px; }
}

/* Ajustes Específicos para o Logo SUMMER HITS */
.summer-logo-size {
  /* AUMENTO: De 280px para 420px. Agora ele vai dominar o topo! */
  height: 360px; 
  width: auto;
  
  /* Sombra para leitura */
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3)); 
  
  /* Animação */
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsividade para Celular */
@media (max-width: 768px) {
  .summer-logo-size {
    /* AUMENTO MOBILE: De 180px para 280px */
    height: 280px; 
  }
}