:root {
  --primary: #8b2942;
  --primary-dark: #6a1f33;
  --secondary: #2d3a4a;
  --accent: #d4a853;
  --light: #f8f5f2;
  --dark: #1a1a1a;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

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

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

.btn-secondary:hover {
  background: #1e2730;
  color: var(--white);
}

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

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

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

.btn-accent:hover {
  background: #c49843;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
  background-size: 100px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-visual {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 50%;
  z-index: -1;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

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

.section-dark {
  background: var(--secondary);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.8);
}

/* Story Section */
.story-block {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.story-block.reverse {
  flex-direction: row-reverse;
}

.story-text {
  flex: 1;
  min-width: 300px;
}

.story-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.story-text p {
  margin-bottom: 15px;
}

.story-visual {
  flex: 1;
  min-width: 300px;
}

.story-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Problem Section */
.problem-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.problem-card {
  flex: 1;
  min-width: 280px;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.problem-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

/* Benefits */
.benefits-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.benefit-item {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 30px;
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.benefit-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--white);
}

.benefit-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonial {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 40px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 40px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.testimonial-info strong {
  display: block;
  color: var(--dark);
}

.testimonial-info span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Services/Pricing */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-card.featured {
  border: 3px solid var(--primary);
  position: relative;
}

.service-card.featured::before {
  content: 'Più richiesto';
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--accent);
  color: var(--dark);
  padding: 5px 40px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.service-img {
  height: 200px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img svg {
  width: 80px;
  height: 80px;
  fill: var(--white);
  opacity: 0.5;
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  min-height: 60px;
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-price span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
}

.service-features li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* Process */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  counter-reset: step;
}

.process-step {
  flex: 1;
  min-width: 200px;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  position: absolute;
  top: -15px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.process-step h4 {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* CTA Sections */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-section p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.cta-inline {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 40px 0;
}

.cta-inline h3 {
  margin-bottom: 10px;
}

.cta-inline p {
  margin-bottom: 20px;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 15px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.sticky-cta.visible {
  display: flex;
}

.sticky-cta p {
  font-weight: 500;
  margin: 0;
}

/* Forms */
.form-section {
  background: var(--light);
  padding: 80px 0;
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* Urgency */
.urgency-banner {
  background: var(--accent);
  color: var(--dark);
  padding: 15px;
  text-align: center;
  font-weight: 600;
}

.urgency-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border: 2px solid var(--accent);
  padding: 25px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 30px 0;
}

.urgency-box h4 {
  color: #856404;
  margin-bottom: 10px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

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

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

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 20px;
  z-index: 10000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text a {
  color: var(--accent);
}

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

/* Thanks Page */
.thanks-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}

.thanks-content {
  max-width: 600px;
}

.thanks-icon {
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.thanks-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--white);
}

.thanks-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.thanks-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* About Page */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

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

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.about-story {
  padding: 80px 0;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  flex: 1;
  min-width: 250px;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.value-card h4 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* Contact Page */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  padding: 80px 0;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h2 {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-item h4 {
  margin-bottom: 5px;
}

.contact-form-wrapper {
  flex: 1;
  min-width: 300px;
}

/* Legal Pages */
.legal-content {
  padding: 60px 0;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--primary);
}

.legal-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
}

.legal-content p {
  margin-bottom: 15px;
}

.legal-content ul {
  margin: 15px 0 15px 25px;
}

.legal-content li {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

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

  .sticky-cta {
    flex-direction: column;
    gap: 10px;
  }

  .sticky-cta p {
    font-size: 0.9rem;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    flex-direction: column;
  }
}

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

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }
}
