:root {
  --primary-color: #121e2d;
  --secondary-color: #bc9350;
  --secondary-dark: #a17838;
  --text-color: #2b303a;
  --text-light: #6c757d;
  --bg-light: #f7f9fb;
  --bg-white: #ffffff;
  --border-color: #e3e8ee;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lora', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(18,30,45,0.08);
  --shadow-lg: 0 10px 30px rgba(18,30,45,0.12);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

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

a:hover {
  color: var(--secondary-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  z-index: 9999;
  font-family: var(--font-heading);
  font-weight: bold;
}

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

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

input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header & Nav */
header {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--secondary-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-link img {
  width: 35px;
  height: 35px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--secondary-color);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--bg-white);
  margin: 5px;
  transition: var(--transition);
}

/* Base Sections */
section {
  padding: 80px 20px;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

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

/* Custom Wave Pattern */
.custom-wave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23bc9350' fill-opacity='0.1' d='M0,160L48,176C96,192,192,224,288,218.7C384,213,480,171,576,170.7C672,171,768,213,864,224C960,235,1056,213,1152,186.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  color: var(--bg-white);
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #d1d5db;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--secondary-color);
}

/* Stats */
.stats {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.stat-item p {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary-color);
}

/* Steps (Come Funziona) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step-card {
  background-color: var(--bg-light);
  padding: 30px 20px;
  border-radius: 6px;
  text-align: center;
  border-top: 4px solid var(--secondary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.step-num {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Trust block */
.trust-block {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.trust-block h2 {
  color: var(--bg-white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trust-card {
  border: 1px solid rgba(188,147,80,0.3);
  padding: 30px;
  border-radius: 6px;
}

.trust-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-body {
  padding: 30px;
}

.service-body h3 {
  margin-bottom: 15px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.features-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.features-content ul {
  list-style-type: none;
  margin-top: 20px;
}

.features-content li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.features-content li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border: 3px solid var(--secondary-color);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.price-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.price-value {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 25px;
}

.price-features {
  list-style: none;
  margin-bottom: 35px;
  text-align: left;
}

.price-features li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.price-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Lead Form Section */
.form-section {
  background-color: var(--bg-light);
}

.form-wrapper {
  max-width: 650px;
  margin: 0 auto;
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--secondary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
}

.checkbox-group input {
  margin-top: 5px;
}

/* FAQ teaser & Accordion */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

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

.faq-answer {
  padding-top: 15px;
  color: var(--text-light);
  display: none;
}

.faq-question i {
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Trust Layer */
.trust-layer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
}

.trust-layer-container {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-light);
}

.trust-layer h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1rem;
  text-transform: uppercase;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 40px 20px;
  border-top: 4px solid var(--secondary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d1d5db;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-text h4 {
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.cookie-text p {
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .services-grid, .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    gap: 40px;
  }
  .price-card.featured {
    transform: scale(1);
  }
  .steps-grid, .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    border-bottom: 2px solid var(--secondary-color);
  }
  .nav-links.nav-active {
    display: flex;
  }
  .burger {
    display: block;
  }
  .steps-grid, .trust-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
}