/* ============================
   RESET E VARIÁVEIS
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d32f2f;   /* vermelho da bandeira */
  --secondary-color: #0033a0; /* azul da bandeira */
  --accent-color: #ffffff;    /* branco */
  --text-dark: #222;
  --text-light: #555;
  --bg-light: #f8f9fa;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 10px;
  --transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* ============================
   CONTAINER
============================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   HEADER
============================ */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--accent-color);
  padding: 1.5rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between; /* joga logo pra esquerda e controles pra direita */
  align-items: center;
  gap: 2rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto; /* empurra tudo pra direita */
}


.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo i {
  font-size: 2.7rem;
  color: var(--accent-color);
  text-shadow: 10px 10px 4px rgba(0,0,0,0.3);
}

.logo-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-text p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ============================
   SELECTOR DE CIDADE (TOPO)
============================ */
.header-city-selector {
  flex: 1;
  max-width: 500px;
  min-width: 300px;
}

.city-form-header {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.select-wrapper-header {
  flex: 1;
  position: relative;
}

.select-icon {
  font-size: 1.7rem;
  position: absolute;
  left: 1rem;
  color: var(--secondary-color);
  top: 50%;
  transform: translateY(-50%);
}

.city-select-header {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  font-size: 1.1rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background-color: rgba(255,255,255,0.95);
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  transition: var(--transition);
}

.city-select-header:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.btn-primary-header {
  padding: 0.85rem 1.5rem;
  background: var(--accent-color);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-primary-header:hover {
  transform: translateY(-2px);
  background: #f1f1f1ea;
  box-shadow: var(--shadow-hover);
}


/* ============================
   ICON DE LOGIN E DE CADASTRO
============================ */
.user-menu {
  position: relative;
  margin-left: 0.10px;
  cursor: pointer;
}

/* Ícone normal */
.user-icon {
  font-size: 33px;
  color: #ffffff;
  transition: 0.3s;
}

/* Ícone quando ativo (clicado) */
.user-menu.active .user-icon {
  color: #000000;   /* cor de selecionado */
}

.user-icon:hover {
  color: #000000;
}

/* Dropdown padrão (escondido) */
.user-dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 10px 0;
  width: 160px;
  display: none;
  z-index: 10;
}

/* Mostrar dropdown quando ativo */
.user-menu.active .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 10px 15px;
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

.user-dropdown a:hover {
  background: #eafff0;
}

/* Mostrar menu ao passar o mouse */
.user-menu:hover .user-dropdown {
  display: block;
}


/* ============================
   HERO SECTION
============================ */
.hero {
  position: relative;
  color: var(--accent-color);
  text-align: center;
  padding: 9rem 5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* deixa o fundo com efeito parallax */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.hero-description {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #f1f1f1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ============================
   SEÇÕES PADRÃO
============================ */
.section-title {
  text-align: center;
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--secondary-color);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* O QUE É O PORTAL ? */
.about {
  padding: 4rem 1rem;
  text-align: center;

  /* Fundo suave com leve tom azulado baseado no secondary-color */
  background: linear-gradient(
      rgba(255, 255, 255, 0.96),
      rgba(0, 51, 160, 0.05)
    ),
    url("imagens/fundo-para.jpg");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Texto principal */
.about-content p {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  opacity: 0.9;
}

.about-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-text p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* Bloco da imagem */
.about-image {
  min-width: 280px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 14px;

  /* sombra mais suave e moderna */
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

/* Destaque do título */
.highlight-title {
  font-weight: 900;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}

/* Responsivo */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-text {
    text-align: center;
  }
}

/* ============================
FUNCIONALIDADES DO PORTAL 
 ============================ */
.features {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: linear-gradient(135deg, #f2fff7 0%, #e6fff0 100%); /* Fundo suave em verde pastel */
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 2rem;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* 4 cards lado a lado no desktop */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: linear-gradient(135deg, #f2fff7 0%, #e6fff0 100%);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;   
  overflow: hidden;     
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px; 
  background: #d32f2f;
  border-radius: 12px 12px 0 0; 
}



/* ============================
   RODAPÉ
============================ */
.footer {
  background: var(--text-dark);
  color: var(--accent-color);
  padding: 3rem 0 1rem;
  margin-top: 0.20rem;
  text-align: center; /* CENTRALIZA TUDO */
}

.footer i {
  margin: 0 10px;
  cursor: pointer;
  transition: var(--transition);
}

.footer i:hover {
  color: var(--primary-color);
}

/* ============================
   RESPONSIVIDADE
============================ */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
    DEMONSTRAÇÃO COMO USAR 
============================================== */

.pp-features-section {
  padding: 5rem 1rem;
  background: linear-gradient(
      rgba(255, 255, 255, 0.96),
      rgba(0, 51, 160, 0.05)
    ),
}

/* GRID */
.pp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* menor min-width */
  gap: 1.8rem; /* menor espaçamento */
  margin-top: 2.5rem;
}

/* CARD */
.pp-feature-card {
  background: #ecfff4;
  padding: 1.6rem; /* reduzido */
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pp-feature-card:hover {
  transform: translateY(-4px); /* redução do efeito */
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* ÍCONE REDONDO PROFISSIONAL */
.pp-feature-icon {
  width: 65px;   /* reduzido */
  height: 65px;  /* reduzido */
  margin: 0 auto 1rem; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #d32f2f, #0033a0);
  color: #ffffff;
  
  font-size: 1.6rem; /* menor */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* TÍTULO DO CARD */
.pp-feature-title {
  font-size: 1.20rem; /* menor */
  font-weight: 800;
  color: #000000;
  margin-bottom: 0.5rem;
}

/* TEXTO */
.pp-feature-text {
  color: #333;
  font-size: 0.95rem;   /* menor */
  line-height: 1.55;
  max-width: 240px;     /* reduzido */
  margin: 0 auto;
}

/* Barra superior */
.pp-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px; /* menor */
  background: #0033a0;
  border-radius: 12px 12px 0 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .pp-feature-icon {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }

  .pp-feature-title {
    font-size: 1.15rem;
  }

  .pp-feature-text {
    font-size: 0.9rem;
  }
}

.pp-feature-card {
  position: relative;
  overflow: hidden;
}

.pp-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px; 
  background: #0033a0;
  border-radius: 12px 12px 0 0; 
}

