/* 1. Variáveis e Reset */
:root {
  --primary: #d32f2f;
  --secondary: #003366;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Estilo do botão flutuante */
    .whatsapp-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #25D366;
        color: white;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        text-decoration: none;
        transition: transform 0.2s ease-in-out;
        z-index: 1000;
    }
    .whatsapp-button:hover {
        transform: scale(1.1);
        background-color: #20b358;
    }

/* 2. Header e Navegação */
header {
  background: linear-gradient(to right, rgb(191, 24, 24), rgb(202, 153, 8));
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: block;
  max-width: 180px;
  margin: 0 auto 1rem;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  background: var(--secondary);
  padding: 0.7rem 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 8px 18px;
  transition: var(--transition);
}

nav a:hover { background: var(--primary); }

/* 3. Estrutura das Seções */
section {
  padding: 4rem 10%; 
  max-width: 1200px; 
  margin: 0 auto;
  text-align: center;
}

/* 4. IMAGENS LADO A LADO (INSTITUCIONAL) */
#institucional {
  display: flex;
  flex-direction: column; /* Título e textos ficam em cima */
  align-items: center;
}

/* Criamos um container para as fotos ficarem lado a lado */
.fotos-lado-a-lado {
  display: flex;
  flex-wrap: wrap; /* Permite quebrar linha se não couber */
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
  width: 100%;
}

#institucional img {
  width: 100%;
  flex: 1 1 350px; /* Faz as imagens crescerem igualmente, baseando-se em 350px */
  max-width: 450px; 
  height: 300px; 
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* 5. GALERIA (Já em Grid - Naturalmente Lado a Lado) */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.galeria img {
  width: 100%;
  height: 250px; 
  object-fit: cover;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.galeria img:hover {
  transform: translateY(-5px);
}

/* 6. Slider / Banner */
.slide-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  animation: fadeIn 0.8s;
}

.slide.active { display: block; }

/* Elementos Visuais */
h2 {
  color: var(--secondary);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto;
}

footer {
  background: var(--dark);
  color: #f1f1f1;
  text-align: center;
  padding: 3rem 1rem;
}

.social-icons a { color: white; margin: 0 10px; font-size: 1.5rem; text-decoration: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 7. Ajustes de Responsividade */
@media (max-width: 768px) {
  .slide-container { height: 300px; }
  section { padding: 2rem 5%; }
  #institucional img { height: 250px; } /* Diminui um pouco no celular */
}