/* ============================================
   Finanzapronta - Design System
   Stile professionale, moderno e affidabile
   ============================================ */

:root {
  /* Palette colori */
  --color-primary: #1e3a8a;
  --color-primary-dark: #172554;
  --color-primary-light: #3b82f6;
  --color-accent: #fbbf24;
  --color-accent-dark: #f59e0b;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;

  /* Sfondi */
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Testi */
  --color-text: #0f172a;
  --color-text-soft: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  /* Ombre */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 40px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.06);

  /* Raggi */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

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

  /* Tipografia */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--color-primary-light);
}

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

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

main {
  flex: 1;
  padding-top: var(--header-height);
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

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

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
  border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  border-color: var(--color-whatsapp-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-large {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  z-index: 99;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}

.mobile-menu .btn {
  margin-top: var(--space-sm);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: var(--space-4xl) 0 var(--space-3xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hero-content .badge svg {
  width: 14px;
  height: 14px;
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero-content h1 .highlight {
  color: var(--color-primary);
  position: relative;
  white-space: nowrap;
}

.hero-content h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(251, 191, 36, 0.4);
  z-index: -1;
  border-radius: 2px;
}

.hero-content .lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

/* Hero visual card */
.hero-visual {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
  max-width: 540px;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.page-illustration-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-2xl) auto var(--space-xl);
  max-width: 580px;
}

.page-illustration-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(30, 56, 138, 0.12));
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-lg);
}

.hero-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero-card-title svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.hero-card-status .pulse {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-card-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.hero-step.completed {
  background: rgba(16, 185, 129, 0.06);
}

.hero-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-step.completed .hero-step-num {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.hero-step-info {
  flex: 1;
}

.hero-step-info .title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.hero-step-info .desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* ============================================
   Features (Vantaggi)
   ============================================ */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  text-align: left;
  padding: var(--space-xl);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(59, 130, 246, 0.08));
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ============================================
   Steps / Process
   ============================================ */
.steps {
  background: var(--color-bg-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  position: relative;
}

.step-card {
  position: relative;
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: left;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.step-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.steps-note {
  margin-top: var(--space-2xl);
  text-align: center;
  padding: var(--space-lg);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-text-soft);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.steps-note svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

/* ============================================
   Cards (Finanziamenti, Servizi)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.info-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.info-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.info-card .card-icon svg {
  width: 28px;
  height: 28px;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: var(--space-md);
}

.info-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
}

.info-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.info-card:hover .card-link svg {
  transform: translateX(4px);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--color-bg-soft);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item.open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

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

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

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  border-radius: 50%;
  transition: all var(--transition);
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--color-primary);
}

.faq-item.open .faq-icon svg {
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

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

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.cta .btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* ============================================
   Page hero (sottotitolo pagine interne)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.page-hero .breadcrumb a {
  color: var(--color-text-muted);
}

.page-hero .breadcrumb a:hover {
  color: var(--color-primary);
}

.page-hero h1 {
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

.page-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* ============================================
   Content pages
   ============================================ */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-wrapper {
  max-width: 880px;
  margin: 0 auto;
}

.content-wrapper h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.content-wrapper p {
  margin-bottom: var(--space-md);
}

.content-wrapper ul,
.content-wrapper ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
  color: var(--color-text-soft);
}

.content-wrapper a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-wrapper a:hover {
  color: var(--color-primary-light);
}

.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--color-primary-dark);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #92400e;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
}

/* ============================================
   Forms
   ============================================ */
.form-section {
  background: var(--color-bg-soft);
}

.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--color-danger);
  background: rgba(239, 68, 68, 0.02);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-group .help-text {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.form-group .error-text {
  display: none;
  font-size: 0.8125rem;
  color: var(--color-danger);
  margin-top: 0.3rem;
  font-weight: 500;
}

.form-group.has-error .error-text {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-md);
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.875rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-group.has-error {
  border-color: var(--color-danger);
  background: rgba(239, 68, 68, 0.04);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.form-message.show {
  display: flex;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

.form-message svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
   Contact section
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.contact-info > p {
  margin-bottom: var(--space-xl);
  color: var(--color-text-muted);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border-light);
}

.contact-item:first-of-type {
  border-top: none;
}

.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-icon.whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: var(--color-whatsapp);
}

.contact-item-content .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item-content a,
.contact-item-content .value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-item-content a:hover {
  color: var(--color-primary);
}

/* ============================================
   Thank you page
   ============================================ */
.thank-section {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.thank-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-radius: 50%;
  margin-bottom: var(--space-xl);
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.thank-icon svg {
  width: 44px;
  height: 44px;
}

.thank-section h1 {
  margin-bottom: var(--space-md);
}

.thank-section .lead {
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.thank-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.thank-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-soft);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.thank-info svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============================================
   WhatsApp floating button
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  background: var(--color-whatsapp-dark);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  background: rgba(37, 211, 102, 0.3);
  border-radius: 50%;
  z-index: -1;
  animation: ringPulse 2s infinite;
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

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

.footer-brand .site-logo {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

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

  .form-wrapper {
    padding: var(--space-lg);
  }

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

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

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

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .page-hero {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-content h1 {
    font-size: 1.875rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
  }
}

/* ============================================
   Print
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .menu-toggle {
    display: none;
  }

  main {
    padding-top: 0;
  }
}
