/* CSS Variables */
:root {
  --primary: #000000;
  --primary-foreground: #FFFFFF;
  --secondary: #8b5cf6;
  --secondary-foreground: #FFFFFF;
  --accent: #16a34a;
  --accent-foreground: #111827;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #000000;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Open Sans', sans-serif;
  --radius: 1rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  overflow-wrap: break-word;
}

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

.hidden {
  display: none !important;
}

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

/* Navigation */
.nav {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.kavrodenti-top_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
}

.kavrodenti-top_mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.kavrodenti-top_mobile-menu a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .kavrodenti-top_mobile-menu-toggle {
    display: block;
  }
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 8px #d1d1d1, -4px -4px 8px #ffffff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 6px 6px 12px #d1d1d1, -6px -6px 12px #ffffff;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 4px #d1d1d1, -2px -2px 4px #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 8px #d1d1d1, -4px -4px 8px #ffffff;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-1px);
  box-shadow: 6px 6px 12px #d1d1d1, -6px -6px 12px #ffffff;
}

.btn-outline:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 4px #d1d1d1, -2px -2px 4px #ffffff;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--input);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 6px 6px 12px #d1d1d1, inset -6px -6px 12px #ffffff;
}

/* Success Message */
.success-message {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 4px 4px 8px #d1d1d1, -4px -4px 8px #ffffff;
}

.success-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: column;
  text-align: center;
}

.success-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
}

.success-content p {
  margin: 0;
  color: var(--muted-foreground);
}

/* Icon Styles */
.icon-box {
  background: var(--muted);
  padding: 1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 4px 4px 8px #d1d1d1, -4px -4px 8px #ffffff;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 24px;
  height: 24px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

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

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

.text-muted {
  color: var(--muted-foreground);
}

.text-lg {
  font-size: 1.125rem;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-sm {
  font-size: 0.875rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(139,92,246,0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  .9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
  padding: 5rem 0 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styles */
.features-section,
.testimonials-section,
.newsletter-section,
.pricing-preview-section,
.service-section,
.about-story-section,
.values-section,
.team-section,
.why-choose-section,
.kavrodenti-top_contact-form-section,
.additional-contact-section,
.legal-content-section,
.faq-section,
.pricing-section,
.pricing-info-section,
.pricing-faq-section {
  padding: 5rem 0;
}

.features-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.testimonials-section {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.newsletter-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.pricing-preview-section {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.service-section.alt-bg,
.about-story-section:nth-child(even),
.values-section {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Cards */
.feature-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 12px 12px 24px #d1d1d1, -12px -12px 24px #ffffff;
}

.feature-card h3 {
  margin: 1rem 0;
  color: var(--foreground);
}

.feature-card p {
  color: var(--muted-foreground);
  margin: 0;
}

/* Service Cards */
.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-content.reverse {
  direction: rtl;
}

.service-content.reverse > * {
  direction: ltr;
}

.service-icon {
  margin-bottom: 1rem;
}

.service-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.service-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-image img {
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

@media (max-width: 768px) {
  .service-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-content.reverse {
    direction: ltr;
  }
}

/* About Content */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-content.reverse {
  direction: rtl;
}

.about-content.reverse > * {
  direction: ltr;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.about-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

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

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-content.reverse {
    direction: ltr;
  }
}

/* Value Cards */
.value-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.value-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 12px 12px 24px #d1d1d1, -12px -12px 24px #ffffff;
}

.value-card h3 {
  margin: 1rem 0;
  color: var(--foreground);
}

.value-card p {
  color: var(--muted-foreground);
  margin: 0;
}

/* Team Cards */
.team-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 12px 12px 24px #d1d1d1, -12px -12px 24px #ffffff;
}

.team-icon {
  margin-bottom: 1rem;
}

.team-card h3 {
  margin: 1rem 0;
  color: var(--foreground);
}

.team-card p {
  color: var(--muted-foreground);
  margin: 0;
}

/* Testimonials */
.testimonial-large {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-large blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.testimonial-large blockquote p {
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.testimonial-large cite {
  color: var(--muted-foreground);
  font-size: 1rem;
  font-style: normal;
}

/* Newsletter */
.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

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

.newsletter-form-inner {
  display: flex;
  gap: 1rem;
}

.newsletter-form-inner input {
  flex: 1;
}

@media (max-width: 768px) {
  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .newsletter-form-inner {
    flex-direction: column;
  }
}

/* Pricing Cards */
.pricing-preview-section .grid-3,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pricing-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 12px 12px 24px #d1d1d1, -12px -12px 24px #ffffff;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.pricing-description p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-bottom: 2rem;
}

.price-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.pricing-features h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.pricing-action {
  margin-top: 2rem;
}

.pricing-action .btn-primary,
.pricing-action .btn-outline {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .pricing-preview-section .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Info */
.contact-info-bar {
  background: var(--muted);
  padding: 2rem 0;
}

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-details h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--foreground);
}

.contact-details p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Form */
.kavrodenti-top_contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.kavrodenti-top_contact-form-content h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.kavrodenti-top_contact-form-content > p {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--input);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
}

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

/* Contact Cards */
.contact-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.contact-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 12px 12px 24px #d1d1d1, -12px -12px 24px #ffffff;
}

.contact-card-icon {
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin: 1rem 0;
  color: var(--foreground);
}

.contact-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

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

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--muted);
}

.faq-question h3 {
  margin: 0;
  color: var(--foreground);
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.faq-answer p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-cta-section {
  background: var(--muted);
  padding: 3rem 0;
}

.faq-cta-content {
  text-align: center;
}

.faq-cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.faq-cta-content p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.faq-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Pricing Info */
.pricing-info-content {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-info-content h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.pricing-info-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.pricing-info-item:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 12px 12px 24px #d1d1d1, -12px -12px 24px #ffffff;
}

.pricing-info-icon {
  margin-bottom: 1rem;
}

.pricing-info-item h3 {
  margin: 1rem 0;
  color: var(--foreground);
}

.pricing-info-item p {
  color: var(--muted-foreground);
  margin: 0;
}

.pricing-faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.pricing-faq-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.pricing-faq-item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.pricing-faq-item p {
  color: var(--muted-foreground);
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: var(--background);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  margin: 3rem 0;
  padding: 3rem 2rem;
}

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

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.cta-content p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: var(--foreground);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--foreground);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content strong {
  color: var(--foreground);
}

/* Cookie Table */
.cookie-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.cookie-table td {
  color: var(--muted-foreground);
}

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

/* Footer */
.footer {
  background: #111827;
  color: #f9fafb;
  padding: 3rem 0 1rem 0;
  margin-top: 2rem;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
}

.footer a:hover {
  color: #f9fafb;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  margin: 0.5rem 0;
  color: #f9fafb;
}

.footer-brand p {
  margin: 0.5rem 0;
  color: #d1d5db;
}

.footer-contact {
  margin-top: 1rem;
}

.footer-contact p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: #d1d5db;
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-links-column h4 {
  margin-bottom: 1rem;
  color: #f9fafb;
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-column li {
  margin-bottom: 0.5rem;
}

.footer-links-column a {
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: #d1d5db;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Cookie Consent */
.kavrodenti-top_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  z-index: 10000;
  box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
}

.kavrodenti-top_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.kavrodenti-top_cookie-banner-text {
  flex: 1;
}

.kavrodenti-top_cookie-banner-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.kavrodenti-top_cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.kavrodenti-top_cookie-banner-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.kavrodenti-top_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kavrodenti-top_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.kavrodenti-top_cookie-modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.cookie-toggles {
  margin: 1.5rem 0;
}

.kavrodenti-top_cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.kavrodenti-top_cookie-toggle-row:last-child {
  border-bottom: none;
}

.kavrodenti-top_cookie-toggle-row input[type="checkbox"] {
  margin: 0;
}

.kavrodenti-top_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.kavrodenti-top_cookie-modal-actions button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .kavrodenti-top_cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .kavrodenti-top_cookie-banner-actions {
    justify-content: center;
  }
  
  .kavrodenti-top_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Animation Classes */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animation Delays for Staggered Effect */
.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 100ms; }
.feature-card:nth-child(3) { transition-delay: 200ms; }
.feature-card:nth-child(4) { transition-delay: 300ms; }
.feature-card:nth-child(5) { transition-delay: 400ms; }
.feature-card:nth-child(6) { transition-delay: 500ms; }

.value-card:nth-child(1) { transition-delay: 0ms; }
.value-card:nth-child(2) { transition-delay: 100ms; }
.value-card:nth-child(3) { transition-delay: 200ms; }
.value-card:nth-child(4) { transition-delay: 300ms; }
.value-card:nth-child(5) { transition-delay: 400ms; }
.value-card:nth-child(6) { transition-delay: 500ms; }

.team-card:nth-child(1) { transition-delay: 0ms; }
.team-card:nth-child(2) { transition-delay: 100ms; }
.team-card:nth-child(3) { transition-delay: 200ms; }

.pricing-card:nth-child(1) { transition-delay: 0ms; }
.pricing-card:nth-child(2) { transition-delay: 100ms; }
.pricing-card:nth-child(3) { transition-delay: 200ms; }

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#kavrodenti-top_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#kavrodenti-top_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#kavrodenti-top_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
