/* ============================================
   PROCESSÓ DE GIRONA - Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cinzel+Decorative:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors - Dark Theme */
  --color-bg: #08080d;
  --color-bg-alt: #0e0e16;
  --color-surface: #12121c;
  --color-surface-hover: #1a1a28;
  --color-surface-border: rgba(201, 168, 76, 0.12);

  /* Gold Palette */
  --color-gold: #c9a84c;
  --color-gold-light: #e8d48b;
  --color-gold-dark: #9a7d2e;
  --color-gold-glow: rgba(201, 168, 76, 0.15);
  --color-gold-glow-strong: rgba(201, 168, 76, 0.3);

  /* Accent Colors */
  --color-crimson: #8b1a2b;
  --color-crimson-light: #b42d42;
  --color-purple: #2d1b4e;
  --color-purple-light: #3d2868;

  /* Text */
  --color-text: #e8e6e3;
  --color-text-muted: #9a9590;
  --color-text-dim: #5a5550;

  /* Functional */
  --color-link: var(--color-gold);
  --color-link-hover: var(--color-gold-light);
  --color-success: #2d6a4f;
  --color-warning: #e67e22;
  --color-danger: #c0392b;

  /* Typography */
  --font-heading: 'Cinzel', 'Georgia', serif;
  --font-decorative: 'Cinzel Decorative', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 72px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

/* Subtle background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(45, 27, 78, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 26, 43, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

strong {
  color: var(--color-text);
  font-weight: 600;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.text-gold {
  color: var(--color-gold);
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- HEADER / NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
  background-color: transparent;
}

.site-header.scrolled {
  background-color: rgba(8, 8, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-decorative);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--color-gold-light);
}

.site-logo .logo-cross {
  margin-right: var(--space-sm);
  font-size: 1.2em;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
  background-color: var(--color-gold-glow);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-sm);
  cursor: pointer;
  color: var(--color-gold);
  font-size: 1.3rem;
  line-height: 1;
  transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--color-gold-glow);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(8, 8, 13, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: var(--space-xl);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav .nav-link {
  font-size: 1rem;
  padding: var(--space-md) var(--space-lg);
  display: block;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 8, 13, 0.3) 0%,
      rgba(8, 8, 13, 0.1) 40%,
      rgba(8, 8, 13, 0.6) 70%,
      rgba(8, 8, 13, 1) 100%
    );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4) saturate(0.8);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-pretitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-decorative);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-bg);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 168, 76, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn-outline:hover {
  background-color: var(--color-gold-glow);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

/* --- SECTIONS --- */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 1;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-pretitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Gold decorative line */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-lg) auto;
}

/* --- CARDS --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.25);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: var(--space-lg);
}

.card-number {
  font-family: var(--font-decorative);
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.card-body p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.card-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.card-link:hover {
  color: var(--color-gold-light);
  gap: var(--space-sm);
}

.card-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* --- PROCESSIONAL ORDER LIST (Hub page) --- */
.processo-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.processo-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.processo-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.processo-item:hover {
  transform: translateX(4px);
  border-color: rgba(201, 168, 76, 0.25);
  background: var(--color-surface-hover);
}

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

.processo-number {
  font-family: var(--font-decorative);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  min-width: 48px;
  text-align: center;
  opacity: 0.7;
}

.processo-item:hover .processo-number {
  opacity: 1;
}

.processo-info {
  flex: 1;
}

.processo-info h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.processo-item:hover .processo-info h3 {
  color: var(--color-gold-light);
}

.processo-info p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--color-text-muted);
}

.processo-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--color-gold-glow);
  color: var(--color-gold);
  white-space: nowrap;
}

.processo-arrow {
  color: var(--color-text-dim);
  font-size: 1.2rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.processo-item:hover .processo-arrow {
  color: var(--color-gold);
  transform: translateX(4px);
}

/* Section dividers for blocks */
.block-divider {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0 var(--space-lg);
  padding: 0;
}

.block-divider::before,
.block-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.block-divider span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- TABLE STYLES --- */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-surface-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

th, td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

th {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: rgba(201, 168, 76, 0.05);
}

td {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

td strong {
  color: var(--color-text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(201, 168, 76, 0.03);
}

/* --- ALERT BOX --- */
.alert {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.alert--warning {
  background: rgba(230, 126, 34, 0.1);
  border: 1px solid rgba(230, 126, 34, 0.25);
  color: #f0a858;
}

.alert--info {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--color-gold-light);
}

.alert--success {
  background: rgba(45, 106, 79, 0.12);
  border: 1px solid rgba(45, 106, 79, 0.3);
  color: #6ecf9a;
}

.alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
  padding: var(--space-md) 0;
  margin-top: var(--header-height);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 0.8rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-dim);
}

.breadcrumbs li::after {
  content: '›';
  color: var(--color-text-dim);
  margin-left: var(--space-xs);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-gold);
}

.breadcrumbs .current {
  color: var(--color-gold);
}

/* --- PAGE HEADER (for subpages) --- */
.page-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- ARTICLE CONTENT --- */
.article-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.article-content h2 {
  color: var(--color-gold);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.article-content h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.article-content li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

.article-content li strong {
  color: var(--color-text);
}

/* Direct Answer Box */
.direct-answer {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  font-size: 1.05rem;
}

.direct-answer p {
  color: var(--color-text);
  margin: 0;
}

/* --- CTA BOX --- */
.cta-box {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--space-3xl) 0;
  transition: transform var(--transition-base);
}

.cta-box:hover {
  transform: translateY(-2px);
}

.cta-box h3 {
  color: var(--color-bg);
  margin-bottom: var(--space-sm);
}

.cta-box p {
  color: rgba(8, 8, 13, 0.7);
  margin-bottom: var(--space-lg);
}

.cta-box a {
  color: var(--color-bg);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--color-bg);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.cta-box a:hover {
  background: var(--color-bg);
  color: var(--color-gold);
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .site-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin: 0;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- SILO NAVIGATION --- */
.silo-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.silo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.silo-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-dark));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.silo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 168, 76, 0.25);
}

.silo-card:hover::after {
  opacity: 1;
}

.silo-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.silo-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.silo-card:hover h3 {
  color: var(--color-gold-light);
}

.silo-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-text-muted);
}

/* --- FAQ Schema-ready --- */
.faq-list {
  list-style: none;
  padding: 0;
}

.faq-item {
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  background: var(--color-surface);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-gold);
  transition: transform var(--transition-base);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 85vh;
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .processo-item {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .processo-number {
    font-size: 1.2rem;
    min-width: 36px;
  }

  .silo-nav {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

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

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

  .hero-cta-group {
    flex-direction: column;
  }
}

/* --- PRINT STYLES --- */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  body {
    background: white;
    color: #333;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cookie-banner-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-banner-content p {
    flex: 1;
    padding-right: var(--space-xl);
  }
}
