/* SISTEMA DE DESIGN PREMIUM - ELITE JF */
:root {
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --bg: #0b0f19;
  --bg-card: #111827;
  --border: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-hint: #6b7280;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle at top, #1e293b, var(--bg) 60%);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* HEADER INSTITUCIONAL GLASSMORPHIC */
header {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  color: white;
  letter-spacing: -0.5px;
  font-family: 'Georgia', serif;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.nav-links a:hover {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

/* CARDS INSTITUCIONAIS */
.inst-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid var(--border);
  line-height: 1.8;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  animation: instFadeIn 0.5s ease-out;
}

@keyframes instFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.inst-content h1 {
  font-family: 'Georgia', serif;
  color: white;
  margin-bottom: 25px;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.inst-content h2 {
  font-family: 'Georgia', serif;
  color: white;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.inst-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.inst-content ul {
  margin-bottom: 25px;
  padding-left: 20px;
  color: var(--text-muted);
}

.inst-content li {
  margin-bottom: 12px;
}

.last-update {
  font-size: 0.85rem;
  color: var(--text-hint) !important;
  margin-bottom: 35px;
  font-style: italic;
}

/* ELEMENTOS DE FORMULÁRIO (CONTATO) */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  padding: 14px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.btn-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

/* Publicidade responsiva: a peça mobile pode ter proporção diferente sem ser deformada. */
@media (max-width:700px){
  .ad-position .ad-rotate-group, .banner-wrap .ad-rotate-group{
    aspect-ratio:var(--ad-mobile-ratio,var(--ad-ratio,auto)) !important;
  }
}

/* Prevenção de CLS (Cumulative Layout Shift) e estabilidade de banners Core Web Vitals */
.banner-topo, .banner-slot-topo, [data-slot="topo"], .ad-position-topo {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout;
}

.banner-meio, .banner-slot-meio, [data-slot="meio"], .ad-position-meio {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout;
}

.banner-lateral, .banner-slot-lateral, [data-slot="lateral"], .ad-position-lateral {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout;
}

@media (max-width: 700px) {
  .banner-topo, .banner-slot-topo, [data-slot="topo"], .ad-position-topo {
    min-height: 60px;
  }
  .banner-meio, .banner-slot-meio, [data-slot="meio"], .ad-position-meio {
    min-height: 250px;
  }
}
