/* ===============================================
           DEFAULT THEME VARIABLES (from main.css)
           =============================================== */

/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Ubuntu", sans-serif;
  --nav-font: "Rubik", sans-serif;
}

/* Default Light Theme Colors */
:root {
  --background-color-default: #ffffff;
  --default-color-default: #3b5353;
  --heading-color-default: #193838;
  --accent-color-default: #07b8eb;
  --surface-color-default: #ffffff;
  --contrast-color-default: #ffffff;
  --nav-color-default: #3b5353;
  --nav-hover-color-default: #07b8eb;
}

/* ===============================================
           CUSTOM DARK THEME OVERRIDE (from custom.css)
           =============================================== */

:root {
  /* Backgrounds */
  --background-color: #0a0e1a;
  --surface-color: #151b2b;

  /* Text */
  --default-color: #c5d1e0;
  --heading-color: #e8f0f7;
  --contrast-color: #0a0e1a;

  /* Accent */
  --accent-color: #07b8eb;

  /* Navigation */
  --nav-color: #c5d1e0;
  --nav-hover-color: #07b8eb;
  --nav-mobile-background-color: #151b2b;
  --nav-dropdown-background-color: #1a2132;
  --nav-dropdown-color: #c5d1e0;
  --nav-dropdown-hover-color: #07b8eb;
}

/* Dark sections (darker variation) */
.dark-background {
  --background-color: #050811;
  --surface-color: #0d1221;
  --default-color: #e8f0f7;
  --heading-color: #ffffff;
}

/* Light sections (for contrast in dark theme) */
.light-background {
  --background-color: #1a2132;
  --surface-color: #151b2b;
}

/* White sections override (completely light) */
.white-background {
  --background-color: #f0f6f5;
  --surface-color: #ffffff;
  --default-color: #3b5353;
  --heading-color: #193838;
  --accent-color: #07b8eb;
}

.white-background .problem-card,
.white-background .pricing-card,
.white-background .step {
  background: var(--surface-color);
  color: var(--default-color);
}

.white-background .problem-card h3,
.white-background .pricing-name,
.white-background .step h3,
.white-background h2,
.white-background h3 {
  color: var(--heading-color);
}

.white-background .problem-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 212, 209, 0.2);
}

.white-background-2 {
  --background-color: #ffffff;
  --surface-color: #ffffff;
  --default-color: #3b5353;
  --heading-color: #193838;
  --accent-color: #00d4d1;
}

/* ===============================================
           GLOBAL STYLES
           =============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

section {
  padding: 60px 0;
}

/* ===============================================
           HEADER
           =============================================== */

.header {
  background-color: #ffffff;
  padding: 15px 0;
  /*position: sticky;
            top: 0;
            z-index: 997;
            box-shadow: 0 2px 15px rgba(0, 212, 209, 0.1);*/
  backdrop-filter: blur(10px);
}

.header .logo {
  width: 150px;
}

@media (min-width: 768px) {
  .header .logo {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .header .logo {
    width: 250px;
  }
}

.header .btn-getstarted {
  background: var(--accent-color);
  color: var(--background-color);
  font-size: 14px;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
  border: none;
}

.header .btn-getstarted:hover {
  background: color-mix(in srgb, var(--accent-color), white 15%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 212, 209, 0.3);
}

/* ===============================================
           HERO SECTION
           =============================================== */

.hero {
  padding: 40px 0 80px 0;
  background: linear-gradient(135deg, var(--surface-color) 0%, color-mix(in srgb, var(--accent-color), transparent 95%) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--accent-color), transparent 90%) 0%, transparent 50%);
  pointer-events: none;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero .hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--heading-color);
}

.hero .hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 48px;
  font-weight: 300;
}

.hero .hero-actions {

  gap: 32px;
  margin-bottom: 64px;
}

.hero .btn-primary {
  background: var(--accent-color);
  color: var(--background-color);
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
}

.hero .btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), white 10%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 209, 0.4);
  color: var(--background-color);
}

.hero .btn-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading-color);
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
  border: 2px solid var(--accent-color);
  padding: 14px 30px;
  border-radius: 6px;
}

.hero .btn-secondary:hover {
  background: var(--accent-color);
  color: var(--background-color);
  transform: translateX(4px);
}

.hero .trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

.hero .trust-badges .badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--default-color);
}

.hero .trust-badges .badge i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* ===============================================
           SECTION TITLES
           =============================================== */

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.section-title p {
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  /*max-width: 700px;*/
  margin: 0 auto;
}

/* ===============================================
           PROBLEM SECTION
           =============================================== */

.problem-section {
  background-color: var(--background-color);
}

.problem-card {
  background: var(--surface-color);
  padding: 40px 30px;
  border-radius: 15px;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.problem-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 212, 209, 0.15);
}

.problem-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.problem-card .icon.tech-icon {
  color: #e74c3c;
}

.problem-card .icon.time-icon {
  color: #f39c12;
}

.problem-card .icon.security-icon {
  color: #e67e22;
}

.problem-card .icon.strategy-icon {
  color: #3498db;
}

.problem-card .icon.cost-icon {
  color: #9b59b6;
}

.problem-card .icon.support-icon {
  color: #95a5a6;
}

.problem-card h3 {
  font-size: 1.375rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.problem-card p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.7;
  margin: 0;
}

.cost-calculator {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #07b8eb 30%));
  padding: 40px;
  border-radius: 15px;
  text-align: center;

  box-shadow: 0 10px 40px rgba(0, 212, 209, 0.3);
}

.cost-calculator h3 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: var(--background-color);
}

.cost-calculator h2 {
  margin-bottom: 15px;
  color: var(--background-color);
}

.cost-calculator .cost-amount {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 20px 0;
  color: var(--background-color);
}

.cost-calculator p {
  color: color-mix(in srgb, var(--background-color), transparent 10%);
  font-size: 1.4rem;
}

/* ===============================================
           SOLUTION SECTION
           =============================================== */

.solution-section {
  /* background: var(--surface-color);*/
  background: var(--background-color);
}

.solution-visual {
  background: var(--background-color);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--surface-color);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 212, 209, 0.2);
}

.feature .feature-icon {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.feature h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.9375rem;
  margin: 0;
}

/* ===============================================
           HOW IT WORKS SECTION
           =============================================== */

.how-section {
  background: var(--background-color);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 993px) and (max-width: 1199px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  text-align: center;
  padding: 20px;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #6366f1 30%));
  color: var(--background-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 25px;
  box-shadow: 0 10px 30px rgba(0, 212, 209, 0.3);
}

.step h3 {
  font-size: 1.375rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.step p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.7;
}

/* ===============================================
           CASE STUDIES SECTION
           =============================================== */

.case-studies-section {
  background: var(--surface-color);
}

.case-study {
  background: var(--background-color);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  transition: all 0.3s ease;
}

.case-study:hover {
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 212, 209, 0.15);
}

.case-company {
  font-size: 0.875rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.case-title {
  font-size: 1.625rem;
  margin: 10px 0 20px;
  font-weight: 700;
}

.case-metrics {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.metric-label {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.case-description {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.8;
  margin-top: 20px;
}

/* ===============================================
           PRICING SECTION
           =============================================== */

.pricing-section {
  background: var(--background-color);
}

.pricing-section .btn-primary {
  background: var(--accent-color);
  color: var(--background-color);
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
}

.pricing-section .btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), white 10%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 209, 0.4);
  color: var(--background-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  justify-content: center;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 50px rgba(0, 212, 209, 0.2);
}

.pricing-card.featured {
  border-color: var(--accent-color);
  box-shadow: 0 10px 40px rgba(0, 212, 209, 0.2);
  background: radial-gradient(1200px 1200px at 110% -10%, color-mix(in srgb, var(--accent-color), transparent 92%) 0%, transparent 50%) no-repeat, var(--surface-color);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--background-color);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
}

.pricing-price span {
  font-size: 1.125rem;
  color: var(--default-color);
}

.pricing-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  color: var(--default-color);
}

.pricing-features li:before {
  content: "✓";
  color: var(--accent-color);
  font-weight: 800;
  margin-right: 10px;
}

.pricing-features li.is-disabled::before {
  content: "✗";
  color: #e53935;
}

/* ===============================================
           FAQ SECTION
           =============================================== */

.faq-section {
  background: var(--surface-color);
}

.faq-list {
  /*max-width: 800px;*/
  margin: 60px auto 0;
}

.faq-item {
  background: var(--background-color);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-color);
}

.faq-answer {
  padding: 0 30px 25px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--accent-color);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ===============================================
           FINAL CTA
           =============================================== */

.final-cta {
  padding: 100px 0;
  /*background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #6366f1 30%));*/
  text-align: center;
}

.final-cta h2 {
  font-size: 2.625rem;
  margin-bottom: 20px;
  color: var(--background-color);
}

.final-cta p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: color-mix(in srgb, var(--background-color), transparent 10%);
}

.final-cta .btn-primary {
  background: var(--background-color);
  color: var(--accent-color);
}

.final-cta .btn-primary:hover {
  background: color-mix(in srgb, var(--background-color), white 10%);
  color: var(--accent-color);
}

.final-cta .btn-secondary {
  border-color: var(--background-color);
  color: var(--background-color);
}

.final-cta .btn-secondary:hover {
  background: var(--background-color);
  color: var(--accent-color);
}

/* ===============================================
           FOOTER
           =============================================== */

.footer {
  background: var(--surface-color);
  color: var(--default-color);
  padding: 40px 0 20px;
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.footer p {
  opacity: 0.7;
  margin: 5px 0;
}

/* ===============================================
           RESPONSIVE
           =============================================== */

@media (max-width: 768px) {
  .hero .hero-title {
    font-size: 2rem;
  }

  .hero .hero-description {
    font-size: 1.125rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero .hero-actions {
    flex-direction: column;
    gap: 20px;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .case-metrics {
    flex-direction: column;
    gap: 15px;
  }

  .final-cta h2 {
    font-size: 2rem;
  }

  .hero .trust-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  .problem-card {
    margin-bottom: 20px;
  }

  .step {
    margin-bottom: 20px;
  }
}

@media (min-width: 992px) {
  .form-row-70 {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    /* centra la row */
  }
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
}

.simple-text {
  color: #193838;
}

/* Popup Styles */
.success-popup,
.error-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.popup-content {
  position: relative;
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-popup .popup-icon {
  color: #28a745;
}

.error-popup .popup-icon {
  color: #dc3545;
}

.popup-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.popup-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.popup-content .btn-primary {
  margin-top: 10px;
  min-width: 150px;
}

/* Errori validazione */
.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

.form-control.error {
  border-color: #dc3545 !important;
}

.form-check-input.error {
  border-color: #dc3545 !important;
}

/* Pricing card selezionata */
.pricing-card.selected {
  border: 3px solid #07b8eb;
  box-shadow: 0 10px 30px rgba(7, 184, 235, 0.3);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--background-color);
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
}