@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap');

:root {
    --saf-green-dark: #0A3622;
    --saf-green-main: #198754;
    --saf-white: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F8F9FA;
    color: #334155; 
    overflow-x: hidden;
    position: relative;
}

/* Novo Degradê: Verde Água para Azul Escurecido */
.bg-ocean-gradient {
    background: linear-gradient(135deg, #20c997 0%, #0f172a 100%) !important;
}

/* Brilhos Ambientais */
.bg-glow {
    position: absolute; border-radius: 50%; opacity: 0.3; filter: blur(140px); z-index: -1; pointer-events: none;
}
.glow-1 { top: 20%; left: -10%; width: 600px; height: 600px; background: linear-gradient(to right, #20c997, #0dcaf0); }
.glow-2 { top: 50%; right: -10%; width: 500px; height: 500px; background: linear-gradient(to right, #0dcaf0, #0f172a); }

/* --- EFEITO ANIMADO DEGRADÊ (Restaurado para os demais títulos do site) --- */
@keyframes gradient-sweep {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

.gradient-text-sweep {
  background-image: linear-gradient(90deg, #0f172a 0, #0f172a 33.33%, #20c997 45%, #0dcaf0 55%, #38bdf8 60%, transparent 70%, transparent);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-sweep 4s ease-in-out infinite alternate;
}

.gradient-text-alt {
    background-image: linear-gradient(90deg, #0f172a 0, #0dcaf0 35%, #20c997 65%, #0f172a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Efeito Vidro Premium */
.lovable-card-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    transition: all 0.35s ease;
    border-radius: 24px;
}

.lovable-card-effect:hover {
    border-color: rgba(32, 201, 151, 0.4);
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.15);
    transform: translateY(-4px);
}

.icon-box-premium {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
    display: flex; align-items: center; justify-content: center;
    color: #0ea5e9; font-size: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
}

.lovable-card-effect:hover .icon-box-premium { transform: scale(1.1); }

.saf-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    border-radius: 50px; background-color: #f0fdf4; border: 1px solid #dcfce7;
    color: #15803d; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.title-black { font-weight: 900; letter-spacing: -0.02em; color: #0f172a; }

/* Menu Ocean Glassmorphism */
.navbar {
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-link { font-weight: 500; color: rgba(255, 255, 255, 0.8) !important; transition: all 0.3s; position: relative; }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background: linear-gradient(90deg, #20c997, #0dcaf0); transition: width 0.3s ease;
}
.nav-link:hover { color: #ffffff !important; }
.nav-link:hover::after { width: 100%; }

/* Botão Área Restrita com Degradê Azul Moderno */
.btn-area-restrita {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}
.btn-area-restrita:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

/* --- BANNER HERO (CARROSSEL) & EFEITOS --- */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 700px;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-bg {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; 
    background-position: center; 
    z-index: 0;
    transform: scale(1);
    transition: transform 6s ease-out;
}

.carousel-item.active .carousel-bg {
    transform: scale(1.08);
}

/* Degradê roxo nas laterais esmaecendo para o centro */
.hero-overlay {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(88, 28, 135, 0.92) 0%, rgba(107, 33, 168, 0.65) 35%, rgba(15, 23, 42, 0.4) 60%, rgba(88, 28, 135, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative; 
    z-index: 5; 
    height: 100%;
    display: flex; 
    align-items: center; 
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 130px; 
}

/* Título principal do Banner (Agora sólido e limpo, sem varredura estranha) */
.title-banner {
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Subtítulo do Banner em Branco */
.text-sub-banner {
    color: #ffffff !important;
    font-weight: 500;
}

.svg-wave { 
    position: absolute; 
    bottom: -5px; 
    left: 0; 
    width: 100%; 
    z-index: 2; 
    pointer-events: none;
}

.btn-premium {
    background: linear-gradient(135deg, #20c997, #0ea5e9);
    color: var(--saf-white); 
    padding: 12px 28px; 
    border-radius: 30px;
    font-weight: 500; 
    border: none; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    display: inline-block;
    position: relative;
    z-index: 6; 
}
.btn-premium:hover { 
    box-shadow: 0 8px 20px rgba(32, 201, 151, 0.3); 
    transform: translateY(-2px); 
    color: var(--saf-white); 
}

/* --- SLIDER DE NOTÍCIAS & CARDS --- */
.news-slider {
    display: flex; 
    gap: 24px; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    padding: 10px 10px 30px 10px; 
    scrollbar-width: thin; 
    scrollbar-color: #20c997 #e2e8f0;
}
.news-slider::-webkit-scrollbar { height: 8px; }
.news-slider::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 10px; }
.news-slider::-webkit-scrollbar-thumb { background: #20c997; border-radius: 10px; }

.news-card {
    flex: 0 0 calc(25% - 18px); 
    min-width: 280px; 
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    transition: all 0.35s ease;
    border-radius: 24px;
}

.news-card:hover {
    border-color: rgba(32, 201, 151, 0.4);
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.15);
    transform: translateY(-4px);
}

.news-card h5 {
    transition: color 0.2s ease;
}

.news-card:hover h5 {
    color: #0d9488 !important;
}

@media (max-width: 991px) { .news-card { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 767px) { .news-card { flex: 0 0 85%; } }

/* Grid do Instagram */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.insta-post {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.insta-post img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.insta-overlay {
    position: absolute; inset: 0; background: rgba(15, 23, 42, 0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; color: white; font-size: 2rem;
}
.insta-post:hover img { transform: scale(1.1); }
.insta-post:hover .insta-overlay { opacity: 1; }

/* Ajustes Contadores */
.counter-box h3 { font-size: 3rem; font-weight: 900; color: #0f172a; }
.counter-box p { font-weight: 500; color: #64748b; margin: 0; }