:root {
  --primary: #7c2d12;
  --primary-hover: #9a3412;
  --secondary: #1e293b;
  --bg-warm: #fdfbf7;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --accent-bg: #f5f2eb;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 1.1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--accent-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--secondary);
  font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
}

.cta-nav {
  background-color: var(--primary);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
}

.cta-nav:hover {
  background-color: var(--primary-hover);
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--accent-bg) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

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

.hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Statistics */
.stats {
  padding: 4rem 0;
  background-color: var(--secondary);
  color: white;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 1rem;
  color: #e2e8f0;
}

/* Steps (Come Funziona) */
.steps {
  padding: 6rem 0;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--bg-white);
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--accent-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
  font-size: 1.25rem;
}

/* Feature Grid (Asymmetrical) */
.features {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.feature-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.feature-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Services section on Home */
.services-section {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-box {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.service-box i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-warm);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--accent-bg);
}

.price-card.featured {
  background: var(--bg-white);
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  transform: scale(1.05);
  position: relative;
}

.badge-featured {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 1.5rem;
}

.price-value {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--secondary);
  font-weight: bold;
  margin: 1.5rem 0;
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.price-card ul li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* Lead Form Section */
.lead-section {
  padding: 6rem 0;
  background-color: var(--accent-bg);
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 4rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 4px;
}

/* FAQ Accordion Section on Home Teaser & FAQ page */
.faq-section {
  padding: 6rem 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
  border: 1px solid var(--accent-bg);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: none;
  color: var(--text-muted);
}

/* Trust Layer (Informazioni Legali) */
.trust-layer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--accent-bg);
  padding: 4rem 0;
  font-size: 0.95rem;
}

.trust-layer h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.trust-layer p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.trust-layer .disclaimer {
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--secondary);
  color: #cbd5e1;
  padding: 4rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  color: #94a3b8;
}

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

.footer-company-info {
  margin-bottom: 1.5rem;
  color: #64748b;
  font-size: 0.85rem;
}

.copyright {
  color: #64748b;
  font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--bg-white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 1.5rem;
  z-index: 9999;
  display: none;
  border-left: 5px solid var(--primary);
}

.cookie-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  flex: 1;
  padding: 0.5rem;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-cookie-reject {
  background-color: var(--accent-bg);
  color: var(--secondary);
}

/* Static Inner pages structure styling */
.page-hero {
  padding: 4rem 0;
  background-color: var(--accent-bg);
  text-align: center;
}

.page-content {
  padding: 6rem 0;
}

.text-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Custom CSS Wave separation */
.wave-divider {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive CSS */
@media (max-width: 992px) {
  .hero-grid, .features-grid, .feature-asymmetric, .services-grid, .pricing-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .price-card.featured {
    transform: none;
  }
  .stats-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .burger-menu {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    padding: 2rem;
    border-bottom: 1px solid var(--accent-bg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .nav-menu.active {
    display: flex;
  }
}

@media (max-width: 576px) {
  .stats-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .form-wrapper {
    padding: 2rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}