/* ========================================================================
   ARCO REAL - SUPREMO GRANDE CAPÍTULO DE SÃO PAULO
   CSS Completo e Melhorado v2.0
======================================================================== */

/* --------------------------------------------------
   BASE / RESET
-------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #222222;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------
   CORES & TOKENS DE DESIGN (Arco Real Inglês)
-------------------------------------------------- */
:root {
  /* Cores do Arco Real Inglês */
  --arco-red: #c40b2b;
  --arco-red-dark: #950820;
  --arco-blue: #003b73;
  --arco-blue-light: #0052a3;
  --arco-gold: #f7c75d;
  --arco-purple: #5b2c6f;

  --text-main: #222222;
  --text-muted: #555555;
  --bg-light: #faf7f7;
  --bg-soft: #ffffff;

  --radius-lg: 999px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.16);
  --shadow-soft-small: 0 6px 18px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 8px 24px rgba(247, 199, 93, 0.3);

  --section-padding: 5.5rem;
  --max-width: 1120px;
  
  --header-height: 140px;
}

/* --------------------------------------------------
   HEADER REDESENHADO (Melhorado)
-------------------------------------------------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--arco-red) 0%, var(--arco-red-dark) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-top {
  background: linear-gradient(135deg, var(--arco-red) 0%, var(--arco-red-dark) 100%);
  padding: 1.2rem 0;
  border-bottom: 3px solid var(--arco-gold);
}

.container-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 3px var(--arco-gold);
  border: 3px solid var(--arco-blue);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-text {
  color: #ffffff;
}

.header-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Menu Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navegação Principal */
.nav-main {
  background: var(--arco-blue);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.9rem;
  padding: 0.8rem 0;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
}

/* Botão Área Restrita */
.btn-area-restrita {
  padding: 0.5rem 1.5rem !important;
  border-radius: var(--radius-lg) !important;
  background: var(--arco-gold) !important;
  color: var(--arco-blue) !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(247, 199, 93, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-left: 0.5rem;
}

.btn-area-restrita:hover {
  background: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(247, 199, 93, 0.5);
}

/* --------------------------------------------------
   SEÇÕES GERAIS
-------------------------------------------------- */
section {
  padding: calc(var(--section-padding) + var(--header-height)) 1.5rem var(--section-padding);
  position: relative;
}

.section-alt {
  background: var(--bg-light);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, var(--arco-red) 0%, var(--arco-red-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft-small);
}

.section-title {
  font-size: 2.4rem;
  color: var(--arco-blue);
  margin-bottom: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Layout em 2 colunas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}

/* Chips / Tags */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(196, 11, 43, 0.1) 0%, rgba(196, 11, 43, 0.05) 100%);
  color: var(--arco-red-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(196, 11, 43, 0.2);
}

.chip-gold {
  background: linear-gradient(135deg, rgba(247, 199, 93, 0.2) 0%, rgba(247, 199, 93, 0.1) 100%);
  color: #8b6914;
  border-color: rgba(247, 199, 93, 0.3);
}

/* Cards */
.card-soft {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-soft-small);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-soft:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.card-royal {
  background: linear-gradient(135deg, rgba(0, 59, 115, 0.03) 0%, rgba(196, 11, 43, 0.02) 100%);
  border: 2px solid rgba(0, 59, 115, 0.1);
}

.card-royal:hover {
  border-color: rgba(0, 59, 115, 0.3);
}

/* Imagem com moldura */
.image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--arco-gold);
  max-width: 400px;
  margin: 0 auto;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-frame:hover img {
  transform: scale(1.05);
}

/* Imagem Destaque (Avental) */
.highlight-image-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.highlight-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 59, 115, 0.2);
  border: 3px solid var(--arco-gold);
  background: linear-gradient(135deg, var(--arco-blue) 0%, var(--deep-blue) 100%);
  padding: 1rem;
}

.highlight-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}

.highlight-image-frame:hover .highlight-image {
  transform: scale(1.03);
}

.highlight-caption {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

/* Listas */
ul.clean {
  list-style: none;
  padding-left: 0;
}

ul.clean li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

ul.clean li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--arco-gold);
  font-size: 0.9rem;
}

.text-small {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------
   HERO / CARROSSEL (Melhorado)
-------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 900px;
  overflow: hidden;
  padding: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
  top: var(--header-height);
  height: calc(100% - var(--header-height));
  width: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-out, transform 10s ease-out;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 11, 43, 0.5) 0%, rgba(0, 59, 115, 0.5) 50%, rgba(91, 44, 111, 0.45) 100%);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(247, 199, 93, 0.95);
  color: var(--arco-blue);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-gold);
  animation: fadeInDown 1s ease-out;
}

.badge-icon {
  font-size: 1.1rem;
}

.hero-title {
  font-size: 3.2rem;
  max-width: 850px;
  margin-bottom: 1.2rem;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
}

.hero-highlight {
  color: var(--arco-gold);
  text-shadow: 0 2px 10px rgba(247, 199, 93, 0.5);
}

.hero-subtitle {
  max-width: 680px;
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--arco-blue) 0%, var(--arco-blue-light) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 59, 115, 0.5);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.hero-pagination {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.hero-dot.active {
  width: 32px;
  background: var(--arco-gold);
  border-color: var(--arco-gold);
}

/* --------------------------------------------------
   CAPÍTULOS (Melhorado com Números)
-------------------------------------------------- */
.grid-capitulos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.cap-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-soft-small);
  border-left: 5px solid var(--arco-red);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cap-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--arco-red) 0%, var(--arco-blue) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cap-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateX(6px) translateY(-2px);
  border-left-width: 6px;
}

.cap-item:hover::before {
  opacity: 1;
}

.cap-number {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--arco-blue) 0%, var(--arco-blue-light) 100%);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  margin-right: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 59, 115, 0.3);
  float: left;
}

.cap-item strong {
  font-weight: 700;
  color: var(--arco-red-dark);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.cap-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.3rem;
}

/* --------------------------------------------------
   ADMINISTRAÇÃO (Melhorado)
-------------------------------------------------- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.admin-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-soft-small);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.admin-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
  border-color: var(--arco-gold);
}

.admin-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 4px solid var(--arco-red);
  box-shadow: 0 4px 15px rgba(196, 11, 43, 0.3), 0 0 0 6px var(--arco-gold);
  position: relative;
}

.admin-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-avatar.no-image {
  background: linear-gradient(135deg, var(--arco-blue) 0%, var(--deep-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-avatar.no-image::before {
  content: "👤";
  font-size: 50px;
  color: var(--arco-gold);
}

.admin-name {
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  font-size: 1.1rem;
}

.admin-role {
  font-size: 0.9rem;
  color: var(--arco-blue);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 59, 115, 0.08);
  border-radius: var(--radius-lg);
  display: inline-block;
}

/* --------------------------------------------------
   NOTÍCIAS (Melhorado com Imagens)
-------------------------------------------------- */
.tabs {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 700;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--arco-red);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--arco-red);
  box-shadow: var(--shadow-soft-small);
}

.news-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.news-card {
  padding: 0;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft-small);
  transition: all 0.3s ease;
  overflow: hidden;
}

.news-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center center;
  border-bottom: 3px solid var(--arco-gold);
}

.news-card-content {
  padding: 1.5rem;
}

/* --------------------------------------------------
   CONTATO (Melhorado)
-------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 59, 115, 0.03);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--arco-blue);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-label {
  font-weight: 700;
  color: var(--arco-blue);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-value a {
  color: var(--arco-blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-value a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft-small);
  border: 2px solid rgba(0, 59, 115, 0.1);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--arco-blue);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid #d6d6d6;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--arco-blue);
  box-shadow: 0 0 0 4px rgba(0, 59, 115, 0.1);
}

.form-control:hover {
  border-color: #b0b0b0;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

/* --------------------------------------------------
   FOOTER (Melhorado)
-------------------------------------------------- */
footer {
  background: linear-gradient(135deg, var(--arco-red-dark) 0%, var(--arco-red) 100%);
  color: #ffffff;
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
  border-top: 4px solid var(--arco-gold);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 3px var(--arco-gold);
}

.footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--arco-gold);
  transform: translateX(2px);
}

.footer-instagram {
  text-align: center;
  margin: 2.5rem 0 2rem;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.instagram-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(188, 24, 136, 0.5);
}

.instagram-link svg {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* --------------------------------------------------
   ANIMAÇÕES
-------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
   RESPONSIVIDADE
-------------------------------------------------- */

/* Tablets e telas médias (até 980px) */
@media (max-width: 980px) {
  :root {
    --section-padding: 4rem;
    --header-height: 130px;
  }

  .header-title {
    font-size: 0.95rem;
  }

  .header-subtitle {
    font-size: 0.7rem;
  }

  .logo-container {
    width: 60px;
    height: 60px;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .nav-links a {
    padding: 0.5rem 0.8rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .grid-capitulos {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Tablets e smartphones (até 768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem;
  }

  header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  }

  .header-top {
    padding: 1rem 0;
  }

  .header-subtitle {
    display: none;
  }

  .header-title {
    font-size: 0.9rem;
  }

  .logo-container {
    width: 55px;
    height: 55px;
  }

  /* Menu Mobile */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--arco-blue) 0%, var(--arco-blue-light) 100%);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    padding-top: 100px;
    overflow-y: auto;
  }

  .nav-main.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    align-items: stretch;
  }

  .nav-links a {
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .btn-area-restrita {
    margin-left: 0 !important;
    margin-top: 1rem;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero-slider {
    top: 102px;
    height: calc(100% - 102px);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .hero-pagination {
    bottom: 2rem;
  }

  /* Grids responsivos */
  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-capitulos {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Seções */
  section {
    padding: calc(3rem + 102px) 1.2rem 3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
  }
}

/* Smartphones pequenos (até 480px) */
@media (max-width: 480px) {
  .logo-container {
    width: 50px;
    height: 50px;
  }

  .header-title {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero-pagination {
    bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .btn-primary,
  .btn-outline {
    font-size: 0.95rem;
    padding: 0.9rem 1.7rem;
  }

  .cap-number {
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 0.75rem;
  }

  .cap-item strong {
    font-size: 0.95rem;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-avatar {
    width: 90px;
    height: 90px;
  }

  .tabs {
    width: 100%;
    justify-content: center;
  }

  .tab-btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-logo-mark {
    width: 50px;
    height: 50px;
  }
}

/* Impressão */
@media print {
  header,
  .hero-pagination,
  .mobile-menu-toggle,
  footer,
  .btn-primary,
  .btn-outline {
    display: none;
  }

  section {
    page-break-inside: avoid;
    padding: 2rem 0;
  }

  body {
    background: white;
  }
}

/* ============================================
   RESPONSIVIDADE EXTRA - TODOS OS DISPOSITIVOS
============================================ */

/* iPhone SE, Galaxy S8, Xiaomi Redmi (320px-375px) */
@media (max-width: 375px) {
  :root {
    --section-padding: 3rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .admin-avatar {
    width: 90px;
    height: 90px;
  }
  
  .news-card img {
    height: 180px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* iPhone 12/13/14, Galaxy S21/S22, Xiaomi Mi (390px-430px) */
@media (min-width: 376px) and (max-width: 430px) {
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* iPad Mini, Samsung Galaxy Tab (768px-820px) */
@media (min-width: 768px) and (max-width: 820px) {
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* iPad Air, iPad Pro 11" (820px-1024px) */
@media (min-width: 821px) and (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop HD (1920px+) */
@media (min-width: 1920px) {
  :root {
    --max-width: 1600px;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 3.8rem;
  }
}

/* Orientação Landscape em Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .section-inner {
    padding: 3rem 1.5rem;
  }
}

/* Suporte para telas de alta resolução (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .admin-avatar {
    border-width: 3px;
  }
  
  .image-frame {
    border-width: 3px;
  }
}

/* Scroll suave para navegadores antigos */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
