/* ═══════════════════════════════════════════════════════════════════
   EDUCATALYST — Design System
   Hub de Inovação Educativa & Cultural
   Paleta: Azul Profundo + Amarelo Âmbar | Dark / Light | Responsivo
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ────────────────────────────────────────
   VARIÁVEIS — LIGHT MODE
──────────────────────────────────────── */
:root {
  /* Brand */
  --ink:        #080e1e;
  --navy:       #0d1b3e;
  --royal:      #1e3a8a;
  --cobalt:     #2563eb;
  --sky:        #60a5fa;
  --mist:       #dbeafe;
  --pearl:      #eff6ff;

  --gold:       #D4AF37;
  --sun:        #E8C84A;
  --honey:      #F5E080;
  --ember:      #B8960C;
  --deep-gold:  #8B6914;

  /* Neutros */
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --gray-900:   #0f172a;

  /* Semânticas */
  --bg:         #ffffff;
  --bg-alt:     #f0f6ff;
  --bg-card:    #ffffff;
  --bg-dark:    #080e1e;
  --text:       #0f172a;
  --muted:      #64748b;
  --border:     #dbeafe;
  --border-strong: #bfdbfe;

  /* Tipografia */
  --font-head:  'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;

  /* Sombras */
  --shadow-xs:  0 1px 3px rgba(8,14,30,.05);
  --shadow-sm:  0 2px 8px rgba(8,14,30,.08);
  --shadow:     0 6px 24px rgba(8,14,30,.10);
  --shadow-lg:  0 20px 60px rgba(8,14,30,.14);
  --shadow-gold: 0 4px 24px rgba(212,175,55,.40);
  --shadow-blue: 0 4px 24px rgba(37,99,235,.30);

  /* Transições */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:     0.18s var(--ease);
  --t-base:     0.28s var(--ease);
  --t-slow:     0.45s var(--ease);

  /* Raios */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
}

/* ────────────────────────────────────────
   VARIÁVEIS — DARK MODE
──────────────────────────────────────── */
[data-theme="dark"] {
  --bg:         #060c1a;
  --bg-alt:     #0d1b3e;
  --bg-card:    #0f1f3d;
  --text:       #e8f0fe;
  --muted:      #7c9cbf;
  --border:     #1e3460;
  --border-strong: #2d4f8a;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.30);
  --shadow:     0 6px 24px rgba(0,0,0,.40);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.60);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  transition: background var(--t-base), color var(--t-base);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--cobalt);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--royal); }

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
a img { user-select: auto; }

/* ────────────────────────────────────────
   NAVBAR
──────────────────────────────────────── */
.ec-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0;
  background: transparent;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}
.ec-nav.scrolled {
  background: rgba(8,14,30,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
[data-theme="dark"] .ec-nav.scrolled {
  background: rgba(6,12,26,.96);
}

.ec-nav .container-ec {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 1.5rem 6px;
  height: 114px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.ec-logo {
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  flex-shrink: 0;
}
.ec-logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}
.ec-logo-img--footer {
  height: 100px;
  opacity: .9;
}

/* Nav links */
.ec-nav-links {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.1rem;
  list-style: none;
}
.ec-nav-links a {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .55rem .85rem;
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.ec-nav-links a:hover,
.ec-nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.09);
}
.ec-nav-links a.active { color: var(--sun); }

/* Botões Navbar */
.ec-nav-actions {
  display: flex;
  align-items: center;
  align-self: center;
  gap: .5rem;
  flex-shrink: 0;
}
.btn-theme-toggle {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .95rem;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.btn-theme-toggle:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
/* light: mostra lua | dark: mostra sol */
.icon-sun  { display: none; }
.icon-moon { display: inline; }
[data-theme="dark"] .icon-sun  { display: inline; }
[data-theme="dark"] .icon-moon { display: none; }

/* Contacto CTA */
.btn-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: var(--ink) !important;
  font-weight: 700 !important;
  font-size: .78rem !important;
  padding: .5rem 1.1rem !important;
  border-radius: 8px;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  transition: box-shadow var(--t-fast), transform var(--t-fast) !important;
  box-shadow: 0 2px 12px rgba(245,158,11,.3);
}
.btn-nav-cta:hover {
  box-shadow: var(--shadow-gold) !important;
  transform: translateY(-1px);
  color: var(--ink) !important;
  background: rgba(255,255,255,.1) !important;
}

/* Hamburger mobile */
.ec-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
  align-self: center;
}
.ec-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--t-base);
}
.ec-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ec-hamburger.open span:nth-child(2) { opacity: 0; }
.ec-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav dropdown — handled in @media (max-width: 991px) */

/* ────────────────────────────────────────
   HERO
──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Gradiente de fundo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(245,158,11,.12) 0%, transparent 55%),
    linear-gradient(160deg, #080e1e 0%, #0d1b3e 50%, #080e1e 100%);
  pointer-events: none;
}

/* Grade de pontos decorativa */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 1.5rem 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Shapes flutuantes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  animation: float 8s ease-in-out infinite;
}
.hero-shape-1 {
  width: 420px; height: 420px;
  right: -80px; top: 5%;
  background: conic-gradient(from 0deg, rgba(37,99,235,.18), rgba(96,165,250,.08), rgba(245,158,11,.12), rgba(37,99,235,.18));
  animation-delay: 0s;
  border-radius: 38% 62% 57% 43% / 45% 30% 70% 55%;
}
.hero-shape-2 {
  width: 280px; height: 280px;
  right: 12%; top: 55%;
  background: radial-gradient(circle, rgba(251,191,36,.14) 0%, transparent 70%);
  animation-delay: -3s;
  border-radius: 63% 37% 30% 70% / 50% 45% 55% 50%;
}
.hero-shape-3 {
  width: 180px; height: 180px;
  left: 38%; top: 10%;
  background: radial-gradient(circle, rgba(96,165,250,.1) 0%, transparent 70%);
  animation-delay: -5s;
  animation-duration: 11s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%       { transform: translate(12px, -18px) rotate(4deg); }
  66%       { transform: translate(-8px, 10px) rotate(-3deg); }
}

/* Texto Hero */
.hero-content { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--sun);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--sun);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title .accent-line {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--sun), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stat mini cards no hero */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sun);
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  line-height: 1.3;
  max-width: 70px;
}

/* Visual lado direito do hero */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 440px;
}
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  backdrop-filter: blur(12px);
  transition: transform var(--t-base), background var(--t-base);
}
.hero-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.hero-card.featured {
  grid-column: 1 / -1;
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.25);
}
.hero-card-icon {
  font-size: 1.75rem;
  margin-bottom: .65rem;
  display: block;
}
.hero-card-title {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .3rem;
}
.hero-card-sub {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .3rem;
}
.hero-card-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.4);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(.3); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: top; }
}

/* ────────────────────────────────────────
   FAIXA MISSÃO (strip após hero)
──────────────────────────────────────── */
.mission-strip {
  background: linear-gradient(90deg, var(--gold), var(--ember));
  padding: 1.1rem 0;
  overflow: hidden;
}
.mission-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.mission-strip p {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
}
.mission-strip a {
  color: var(--ink);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .35rem;
  opacity: .75;
  transition: opacity var(--t-fast);
}
.mission-strip a:hover { opacity: 1; }

/* ────────────────────────────────────────
   SECÇÕES GERAIS
──────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-alt  { background: var(--bg-alt); }
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark .section-label { color: var(--sky); }
.section-dark .section-title { color: #fff; }
.section-dark .section-body  { color: rgba(255,255,255,.65); }

.section-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--ember) 100%);
  color: var(--ink);
}
.section-gold .section-label { color: rgba(8,14,30,.6); }
.section-gold .section-title { color: var(--ink); }
.section-gold .section-body  { color: rgba(8,14,30,.75); }
.section-gold .counter-num   { color: var(--ink); }
.section-gold .counter-label { color: rgba(8,14,30,.65); }

.container-ec {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cobalt));
  border-radius: 3px;
  margin-bottom: 1.4rem;
}
.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.85;
}
.section-body ul,
.section-body ol { padding-left: 1.5rem; margin-bottom: .75rem; }
.section-body ul { list-style-type: disc; }
.section-body ol { list-style-type: decimal; }
.section-body li { margin-bottom: .4rem; }
.section-body strong { color: var(--text); font-weight: 600; }

/* ────────────────────────────────────────
   ENQUADRAMENTO — secção com número ghost
──────────────────────────────────────── */
.section-numbered {
  position: relative;
  overflow: hidden;
}
.section-num-ghost {
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(8rem, 15vw, 14rem);
  font-weight: 800;
  color: var(--cobalt);
  opacity: .04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}
[data-theme="dark"] .section-num-ghost { opacity: .07; color: var(--sky); }

/* Colunas secção texto + visual */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }

.section-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section-image-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.section-image-frame:hover img { transform: scale(1.04); }

/* Decoração corner */
.section-image-frame::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 80px; height: 80px;
  border: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  z-index: -1;
}

/* Quando não há imagem: ilustração CSS */
.section-illustration {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(245,158,11,.06));
  border: 1px solid var(--border);
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.section-illustration .illus-icon {
  font-size: 4rem;
  opacity: .25;
}

/* ────────────────────────────────────────
   SECÇÃO MISSÃO — dark, quote style
──────────────────────────────────────── */
.mission-quote-section {
  background: var(--navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.mission-quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(245,158,11,.08), transparent 60%);
  pointer-events: none;
}
.mission-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.mission-qmark {
  font-family: 'Georgia', serif;
  font-size: 8rem;
  line-height: .6;
  color: var(--gold);
  opacity: .25;
  display: block;
  margin-bottom: .5rem;
}
.mission-text {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
.mission-sub {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.mission-pill {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: .5rem 1.25rem;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.mission-pill i { color: var(--sun); }

/* ────────────────────────────────────────
   ÁREAS DE ATUAÇÃO — cards de serviço
──────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.area-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.area-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.area-card:hover::before { transform: scaleX(1); }

.area-card-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--mist);
  line-height: 1;
  margin-bottom: .75rem;
  letter-spacing: -0.05em;
}
[data-theme="dark"] .area-card-num { color: rgba(37,99,235,.3); }

.area-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--pearl), var(--mist));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  transition: background var(--t-base);
}
[data-theme="dark"] .area-icon { background: rgba(37,99,235,.15); }
.area-card:hover .area-icon { background: linear-gradient(135deg, var(--cobalt), var(--royal)); }
.area-card:hover .area-icon i { color: #fff !important; }

.area-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.area-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ────────────────────────────────────────
   DIFERENCIAIS — numeração grande
──────────────────────────────────────── */
.diferenciais-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}
.diferencial-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.diferencial-item:last-child { border-bottom: none; padding-bottom: 0; }
.diferencial-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--sun), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}
.diferencial-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.diferencial-content p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}

/* ────────────────────────────────────────
   IMPACTO / COUNTERS — fundo ouro
──────────────────────────────────────── */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.counter-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}
.counter-item + .counter-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(8,14,30,.15);
}
.counter-num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}
.counter-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(8,14,30,.6);
  margin-top: .5rem;
  display: block;
}
.counter-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
  display: block;
  opacity: .4;
}

/* ────────────────────────────────────────
   CARDS (Notícias & Eventos)
──────────────────────────────────────── */
.ec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.ec-card-img {
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--royal), var(--cobalt));
  position: relative;
}
.ec-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.ec-card:hover .ec-card-img img { transform: scale(1.06); }

.ec-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  opacity: .25;
  color: #fff;
}

.ec-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ec-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.ec-card-date {
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.ec-card-tag {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cobalt);
  background: var(--pearl);
  padding: .2rem .6rem;
  border-radius: 4px;
}
[data-theme="dark"] .ec-card-tag { background: rgba(37,99,235,.15); }

.ec-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: .6rem;
  flex: 1;
}
.ec-card-excerpt {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ec-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--cobalt);
  transition: gap var(--t-fast), color var(--t-fast);
  margin-top: auto;
}
.ec-card-link:hover { gap: .6rem; color: var(--royal); }

/* Card Evento — banda de data lateral */
.evento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: transform var(--t-base), box-shadow var(--t-base);
  box-shadow: var(--shadow-xs);
}
.evento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.evento-card-date {
  width: 72px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--royal), var(--cobalt));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem .5rem;
  text-align: center;
}
.evento-card-day {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.evento-card-month {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  margin-top: .2rem;
}
.evento-card-year {
  font-size: .6rem;
  color: rgba(255,255,255,.45);
}
.evento-card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.evento-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.evento-card-local {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: .6rem;
}
.evento-card-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.evento-card-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--cobalt);
  margin-top: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--t-fast);
}
.evento-card-link:hover { gap: .5rem; }

/* ────────────────────────────────────────
   SECTION HEADER (páginas internas)
──────────────────────────────────────── */
.page-header {
  padding: 130px 0 64px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(245,158,11,.08), transparent 50%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-header-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}
.page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: #fff;
  margin-bottom: .75rem;
}
.page-header p {
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ────────────────────────────────────────
   NOTÍCIAS — page
──────────────────────────────────────── */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}
.news-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(135deg, var(--royal), var(--cobalt));
}
.news-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.news-featured:hover .news-featured-img img { transform: scale(1.04); }
.news-featured-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-featured-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cobalt);
  background: var(--pearl);
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.news-featured-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.news-featured-excerpt {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.news-featured-meta {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ────────────────────────────────────────
   GALERIA LIGHTBOX
──────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .875rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-base);
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,14,30,.6), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
  display: flex; align-items: flex-end; justify-content: center;
  padding: .75rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay i { color: #fff; font-size: 1.5rem; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,12,26,.96);
  backdrop-filter: blur(20px);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  user-select: none;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  pointer-events: none;
}
/* Shield transparente anti-download */
.lightbox-shield {
  position: absolute; inset: 0; z-index: 1; cursor: default;
}
.lb-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer;
  background: rgba(255,255,255,.1); border: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff; font-size: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--t-fast);
}
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-caption {
  position: fixed;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  background: rgba(0,0,0,.4);
  padding: .4rem 1rem;
  border-radius: 50px;
  max-width: 80vw;
  text-align: center;
}

/* ────────────────────────────────────────
   CONTACTO — split layout
──────────────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-panel-left {
  background: linear-gradient(160deg, #0d1b3e, #1e3a8a);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.contact-panel-left::before {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245,158,11,.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-panel-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}
.contact-panel-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--sun);
  flex-shrink: 0;
}
.contact-info-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: .2rem;
}
.contact-info-value {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}
.contact-info-value a {
  color: rgba(255,255,255,.85);
  transition: color var(--t-fast);
}
.contact-info-value a:hover { color: var(--sun); }

.contact-panel-right {
  background: var(--bg);
  padding: 3.5rem 2.5rem;
}
.contact-form-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

/* Campos do formulário */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .45rem;
  letter-spacing: .02em;
}
[data-theme="dark"] .form-group label { color: rgba(255,255,255,.65); }
.form-control-ec {
  width: 100%;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .95rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-control-ec:focus {
  outline: none;
  border-color: var(--cobalt);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
[data-theme="dark"] .form-control-ec {
  background: rgba(255,255,255,.04);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .form-control-ec:focus {
  background: rgba(255,255,255,.07);
}
textarea.form-control-ec { resize: vertical; min-height: 130px; }

/* ────────────────────────────────────────
   BOTÕES GLOBAIS
──────────────────────────────────────── */
.btn-ec-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
  box-shadow: 0 2px 12px rgba(245,158,11,.25);
  letter-spacing: .01em;
  text-decoration: none;
}
.btn-ec-primary:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: var(--ink);
}
.btn-ec-primary:active { transform: translateY(0); }

.btn-ec-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  padding: .73rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}
.btn-ec-secondary:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.07);
  color: #fff;
}

.btn-ec-blue {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  box-shadow: var(--shadow-blue);
  text-decoration: none;
}
.btn-ec-blue:hover {
  background: var(--royal);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,99,235,.4);
}

.btn-ec-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--cobalt);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  padding: .73rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cobalt);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}
.btn-ec-outline:hover {
  background: var(--cobalt);
  color: #fff;
}

/* ────────────────────────────────────────
   SECTION TITLES COM "Ver todos"
──────────────────────────────────────── */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────
   PÁGINA DINÂMICA — /pg/<slug>/
──────────────────────────────────────── */
.pd-content-wrap {
  padding: 2.5rem 0 5rem;
}
.pd-secoes-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Card — mesmo padrão que projetos-detalhe-card ── */
.pd-secao {
  border: 1px solid var(--border);
  border-left: 4px solid var(--tag-cor, var(--cobalt));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.pd-secao:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,.11);
  transform: translateY(-3px);
}

/* Header zone — gradiente com a cor da secção */
.pd-card-header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--tag-cor, var(--cobalt)) 8%, transparent),
    color-mix(in srgb, var(--tag-cor, var(--cobalt)) 2%, transparent)
  );
}
.pd-card-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .875rem;
}
.pd-card-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--tag-cor, var(--cobalt)) 30%, transparent);
  background: color-mix(in srgb, var(--tag-cor, var(--cobalt)) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--tag-cor, var(--cobalt));
  flex-shrink: 0;
}
.pd-card-header-text { min-width: 0; }
.pd-card-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .25rem .8rem;
  margin-bottom: .4rem;
  background: color-mix(in srgb, var(--tag-cor, var(--cobalt)) 12%, transparent);
  color: var(--tag-cor, var(--cobalt));
}
.pd-card-name {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin: 0;
}
.pd-card-tagline {
  font-size: .95rem;
  font-style: italic;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Body zone */
.pd-card-body {
  padding: 2rem 2.5rem;
}

/* Texto + imagem lateral */
.pd-secao-body { margin-bottom: 1.5rem; }
.pd-secao-body--img {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.pd-secao-text-col { min-width: 0; }
.pd-secao-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  display: block;
}
.pd-secao-desc-breve {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.pd-secao-desc-longa {
  margin-bottom: 1.5rem;
}
.pd-secao-desc-longa ul,
.pd-secao-desc-longa ol { padding-left: 1.5rem; margin-bottom: .75rem; }
.pd-secao-desc-longa ul { list-style-type: disc; }
.pd-secao-desc-longa ol { list-style-type: decimal; }
.pd-secao-desc-longa li { margin-bottom: .4rem; }

/* KPI stats row */
.pd-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.25rem 0;
}
.pd-kpi-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.pd-kpi-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--tag-cor, var(--cobalt));
}
.pd-kpi-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Tags */
.pd-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0;
}
.pd-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-cor, #6b7280) 12%, transparent);
  color: var(--chip-cor, #6b7280);
  border: 1px solid color-mix(in srgb, var(--chip-cor, #6b7280) 30%, transparent);
}
.pd-tag-chip i { font-size: .8rem; }

/* Link CTA — reutiliza .projeto-cta já existente */
.pd-secao-link-wrap { margin-top: 1.75rem; }

@media (max-width: 768px) {
  .pd-content-wrap { padding: 1.5rem 0 3rem; }
  .pd-secoes-container { gap: 1.5rem; }
  .pd-card-header,
  .pd-card-body { padding: 1.5rem; }
  .pd-card-name { font-size: 1.4rem; }
  .pd-secao-body--img { grid-template-columns: 1fr; }
  .pd-secao-img-col { order: -1; }
  .pd-kpi-row { gap: 1.25rem; }
}

/* Fallback browsers sem color-mix */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .pd-card-header { background: rgba(37,99,235,.05); }
  .pd-card-icon-wrap { background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.3); }
  .pd-card-badge { background: rgba(37,99,235,.12); }
  .pd-tag-chip { background: rgba(107,114,128,.12); }
}

/* ────────────────────────────────────────
   PROJETOS — secção homepage
──────────────────────────────────────── */
.projetos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.projeto-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--projeto-accent, var(--gold));
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.projeto-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.projeto-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.projeto-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.projeto-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
}
.projeto-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.projeto-tagline {
  font-size: .88rem;
  font-style: italic;
  color: var(--muted);
  margin: 0;
}
.projeto-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.projeto-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: 0;
}
.projeto-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text);
}
.projeto-features li i {
  color: var(--projeto-accent, var(--gold));
  font-size: .8rem;
  flex-shrink: 0;
}
.projeto-stats {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: auto;
}
.projeto-stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.projeto-stat-num {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--projeto-accent, var(--gold));
}
.projeto-stat-label {
  font-size: .73rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.projeto-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--cta-color, var(--gold));
  text-decoration: none;
  letter-spacing: .02em;
  transition: gap var(--t-fast), opacity var(--t-fast);
}
.projeto-cta:hover { gap: .7rem; opacity: .8; }

/* ────────────────────────────────────────
   PROJETOS — página /projetos/
──────────────────────────────────────── */
.projetos-autora {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem 1.75rem;
  margin-bottom: 4rem;
}
.projetos-autora-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--ink);
  flex-shrink: 0;
}
.projetos-autora-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.projetos-autora-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .6rem;
}
.projetos-autora-bio {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.projetos-autora-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.projetos-autora-tags span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .8rem;
}

.projetos-detalhe-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.projetos-detalhe-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--projeto-accent, var(--gold));
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.projetos-detalhe-header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.projetos-detalhe-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: .4rem;
}
.projetos-detalhe-name {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.projetos-detalhe-tagline {
  font-size: .95rem;
  font-style: italic;
  color: var(--muted);
  margin: .35rem 0 0;
}
.projetos-detalhe-body {
  padding: 2rem 2.5rem;
}
.projetos-detalhe-body p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.projetos-detalhe-techs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0;
}
.projetos-detalhe-techs span {
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .3rem .75rem;
  color: var(--text);
}
.projetos-detalhe-areas {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.projetos-detalhe-area {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
}
.projetos-detalhe-area i {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.projetos-detalhe-area strong {
  display: block;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .2rem;
}
.projetos-detalhe-area p {
  font-size: .84rem;
  color: var(--muted);
  margin: 0 !important;
  line-height: 1.6;
}
.projetos-detalhe-stats-row {
  display: flex;
  gap: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.25rem 0;
}
.projetos-detalhe-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.projetos-detalhe-stat-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
}
.projetos-detalhe-stat-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 768px) {
  .projetos-grid { grid-template-columns: 1fr; }
  .projetos-autora { flex-direction: column; gap: 1rem; }
  .projetos-detalhe-header,
  .projetos-detalhe-body { padding: 1.5rem; }
  .projetos-detalhe-stats-row { flex-wrap: wrap; gap: 1rem; }
}

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
.ec-footer {
  background: var(--ink);
  color: rgba(255,255,255,.55);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}
.ec-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--gold), var(--cobalt));
}
.ec-footer .container-ec {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand-desc {
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(255,255,255,.4);
  margin-top: .75rem;
  max-width: 280px;
}
.ec-footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: .5rem;
}
.ec-footer-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.footer-col h6 {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  transition: color var(--t-fast);
  display: flex; align-items: center; gap: .4rem;
}
.footer-col ul a:hover { color: var(--sun); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 3rem;
  padding: 1.4rem 0;
}
.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.28);
}
.footer-bottom a {
  color: rgba(255,255,255,.35);
  font-size: .78rem;
  transition: color var(--t-fast);
}
.footer-bottom a:hover { color: var(--sky); }
.footer-policy-links {
  display: flex;
  gap: 1.5rem;
}

/* ────────────────────────────────────────
   ALERTS / FLASH
──────────────────────────────────────── */
.ec-alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  border-width: 1px;
  border-style: solid;
}
.ec-alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.ec-alert-error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
[data-theme="dark"] .ec-alert-success {
  background: rgba(22,101,52,.2);
  border-color: rgba(134,239,172,.2);
  color: #86efac;
}
[data-theme="dark"] .ec-alert-error {
  background: rgba(153,27,27,.2);
  border-color: rgba(252,165,165,.2);
  color: #fca5a5;
}

/* ────────────────────────────────────────
   ARTIGO / POST
──────────────────────────────────────── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.article-header-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}
.article-content h2, .article-content h3 {
  margin: 2rem 0 .75rem;
  font-family: var(--font-head);
  color: var(--text);
}
.article-content p { margin-bottom: 1.25rem; }
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-content li { margin-bottom: .4rem; }
.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--muted);
}

/* Tag do autor */
.article-author-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--pearl);
  border: 1px solid var(--mist);
  border-radius: 50px;
  padding: .3rem .9rem .3rem .5rem;
  font-size: .8rem;
  color: var(--royal);
  font-weight: 500;
}
.article-author-tag .author-avatar {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--cobalt), var(--royal));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
}
[data-theme="dark"] .article-author-tag {
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.2);
  color: var(--sky);
}

/* Sidebar artigos recentes */
.recent-card {
  display: flex;
  gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.recent-card:last-child { border-bottom: none; }
.recent-card-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.recent-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-card-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-card-date { font-size: .72rem; color: var(--muted); margin-top: .2rem; }

/* ────────────────────────────────────────
   ANIMAÇÕES
──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.fade-in.visible { opacity: 1; }

/* Bloqueia download de imagens */
img.protected {
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ────────────────────────────────────────
   BREADCRUMB
──────────────────────────────────────── */
.ec-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.ec-breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--t-fast); }
.ec-breadcrumb a:hover { color: var(--sun); }
.ec-breadcrumb i { font-size: .65rem; }

/* Badge status */
.badge-publicado {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .6rem;
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: .3rem;
}
.badge-publicado.sim {
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}
.badge-publicado.nao {
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
}
[data-theme="dark"] .badge-publicado.sim {
  background: rgba(22,101,52,.2); border-color: rgba(134,239,172,.2); color: #86efac;
}
[data-theme="dark"] .badge-publicado.nao {
  background: rgba(146,64,14,.2); border-color: rgba(253,230,138,.2); color: #fde68a;
}

/* ────────────────────────────────────────
   UTILITÁRIOS
──────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-sky  { color: var(--sky); }
.bg-ink    { background: var(--ink); }

.section-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ────────────────────────────────────────
   RESPONSIVO
──────────────────────────────────────── */
@media (max-width: 1100px) {
  .ec-footer .container-ec {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 991px) {
  .ec-hamburger { display: flex; }

  /* Empurra tema + hamburguer para a direita */
  .ec-nav-actions { margin-left: auto; }

  /* Dropdown collapse — drop below navbar */
  .ec-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6,12,26,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .4rem 0 .75rem;
    z-index: 998;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
  }
  .ec-nav-links.open { display: flex; }

  .ec-nav-links li { width: 100%; }

  .ec-nav-links a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .78rem 1.5rem;
    border-radius: 0;
    font-size: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
  }
  .ec-nav-links a:hover,
  .ec-nav-links a.active {
    background: rgba(255,255,255,.06);
    padding-left: 2rem;
  }
  .ec-nav-links li:last-child a { border-bottom: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 110px 1.5rem 60px;
  }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.4rem; }

  .section-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-grid.reverse { direction: ltr; }

  .news-featured { grid-template-columns: 1fr; }
  .news-featured-img { min-height: 260px; }

  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero-title { font-size: 2rem; }

  .ec-footer .container-ec { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-policy-links { justify-content: center; }

  .contact-panel-left, .contact-panel-right { padding: 2rem 1.5rem; }

  .diferencial-item { grid-template-columns: 60px 1fr; gap: 1rem; }
  .diferencial-num { font-size: 2.5rem; }

  .counters-grid { grid-template-columns: 1fr 1fr; }
  .counter-item + .counter-item::before {
    display: none;
  }
  .counter-item:nth-child(odd) {
    border-bottom: 1px solid rgba(8,14,30,.15);
  }
}

@media (max-width: 540px) {
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-ec-primary,
  .hero-actions .btn-ec-secondary { justify-content: center; }
  .hero-stats { gap: 1rem; }
  .ec-footer .container-ec {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  /* Marca e Contacto ocupam linha inteira; Organização e Conteúdo ficam lado a lado */
  .ec-footer .container-ec .footer-col:first-child,
  .ec-footer .container-ec .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   COOKIE CONSENT — Banner + Modal (RGPD/ePrivacy)
   ═══════════════════════════════════════════════════════════════════ */
.ec-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: ecCookieSlideUp .35s ease-out;
}
@keyframes ecCookieSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.ec-cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: 1.1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.ec-cookie-banner__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .35rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
}
.ec-cookie-banner__title i { color: var(--cobalt); }
.ec-cookie-banner__text p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted);
}
.ec-cookie-banner__text a { color: var(--cobalt); font-weight: 600; }
.ec-cookie-banner__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ec-cookie-btn {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.ec-cookie-btn--primary {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}
.ec-cookie-btn--primary:hover {
  background: var(--royal);
  border-color: var(--royal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.ec-cookie-btn--outline {
  background: transparent;
  color: var(--cobalt);
  border-color: var(--border-strong);
}
.ec-cookie-btn--outline:hover {
  background: var(--bg-alt);
  border-color: var(--cobalt);
}
.ec-cookie-btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.ec-cookie-btn--ghost:hover { color: var(--text); background: var(--bg-alt); }

/* Modal */
.ec-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ec-cookie-modal[hidden] { display: none; }
.ec-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 30, .55);
  backdrop-filter: blur(3px);
}
.ec-cookie-modal__dialog {
  position: relative;
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  animation: ecCookieFadeIn .25s ease-out;
}
@keyframes ecCookieFadeIn {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.ec-cookie-modal__close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
}
.ec-cookie-modal__close:hover { color: var(--text); background: var(--bg-alt); }
.ec-cookie-modal__dialog h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 0 0 .5rem 0;
}
.ec-cookie-modal__intro {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 1.25rem 0;
  line-height: 1.55;
}
.ec-cookie-cat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
  background: var(--bg-alt);
}
.ec-cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ec-cookie-cat h3 {
  font-family: var(--font-head);
  font-size: .95rem;
  margin: 0 0 .25rem 0;
  color: var(--text);
}
.ec-cookie-cat p {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.ec-cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.ec-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ec-cookie-switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: 24px;
  transition: background .2s;
}
.ec-cookie-switch span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ec-cookie-switch input:checked + span {
  background: var(--cobalt);
}
.ec-cookie-switch input:checked + span::before {
  transform: translateX(20px);
}
.ec-cookie-switch--locked span {
  background: var(--gray-400);
  cursor: not-allowed;
}
.ec-cookie-switch--locked input:checked + span {
  background: var(--gray-400);
}
.ec-cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.ec-cookie-modal__footer > div {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.ec-cookie-modal__link {
  font-size: .85rem;
  color: var(--cobalt);
  font-weight: 600;
}

/* Botão "Gerir cookies" no footer */
.ec-cookie-trigger {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.ec-cookie-trigger:hover { color: var(--cobalt); }

@media (max-width: 720px) {
  .ec-cookie-banner__inner {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .ec-cookie-banner__actions {
    justify-content: stretch;
  }
  .ec-cookie-banner__actions .ec-cookie-btn { flex: 1 1 auto; }
  .ec-cookie-modal__dialog { padding: 1.25rem; }
  .ec-cookie-modal__footer { flex-direction: column; align-items: stretch; }
  .ec-cookie-modal__footer > div { justify-content: stretch; }
  .ec-cookie-modal__footer > div .ec-cookie-btn { flex: 1 1 auto; }
}
