:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 80px 0;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeInUp 0.6s ease-out;
}

.badge-custom {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out;
}

.cta-button {
  background: var(--white);
  color: var(--primary-color);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: var(--white);
  color: var(--primary-color);
}

.price-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 1.4s ease-out;
}

.old-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  opacity: 0.7;
}

.new-price {
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: fadeInUp 1.6s ease-out;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-left: -10px;
}



.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: -10px; /* effetto overlap bello */
    border: 2px solid #fff; /* opzionale, molto elegante */
}
.demo-card {
    width: 100%;
    height: 80px;                /* valore mobile */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #111;            /* fallback se media non caricata */
    transition: transform .25s ease, box-shadow .25s ease;
}

/* contenuto multimediale: video e immagini riempiono senza distorsione */
.demo-card img,
.demo-card video {
    width: 130%;
    height: 100%;
    object-fit: cover;           /* importantissimo: non deforma */
    display: block;
}

/* leggero effetto hover su desktop */
.demo-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 30px rgba(2,6,23,0.45);
}

/* overlay testo/icon */
.demo-card .demo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none; /* non blocca click sul video */
    border-radius: 0 0 10px 10px;
}

/* icona dentro overlay (se usi <i>) */
.demo-card .demo-overlay i {
    font-size: 16px;
    opacity: 0.95;
}

/* ---------- BREAKPOINTS: più grandi su schermi più ampi ---------- */
/* Small devices (>= 576px) */
@media (min-width: 576px) {
    .demo-card { height: 110px; border-radius: 10px; }
}

/* Medium devices / tablet (>= 768px) */
@media (min-width: 768px) {
    .demo-card { height: 150px; border-radius: 12px; }
}

/* Large devices / desktop (>= 992px) */
@media (min-width: 992px) {
    .demo-card { height: 127px; border-radius: 14px; }
}

/* Extra large (>= 1200px) — valore desktop grande */
@media (min-width: 1200px) {
    .demo-card { height: 130px; border-radius: 16px; }
}

/* Ultra large (>= 1400px) — se vuoi davvero grandi */
@media (min-width: 1400px) {
    .demo-card { height: 130px; }
}

/* Container orizzontale con tutte le card */
.media-row {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap; /* tutto in 1 riga */
    overflow-x: auto;  /* scroll orizzontale su mobile */
    padding: 10px 0;
}

/* opzionale: nasconde scrollbar */
.media-row::-webkit-scrollbar {
    display: none;
}

/* dimensioni card: diverse per mobile e desktop */
.demo-card {
    width: 130px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #000;
    flex-shrink: 0; /* evita che si schiaccino */
}

.demo-card img,
.demo-card video {
    width: 130%;
    height: 100%;
    object-fit: cover;
}

/* MOBILE: card più piccole */
@media (max-width: 576px) {
    .demo-card {
        width: 100px;
        height: 140px;
    }
}

.avatars img:first-child {
  margin-left: 0;
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-out;
}

.hero-image img {
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* How It Works */
.how-it-works {
  background: var(--light-bg);
}

.step-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.step-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin: 20px 0;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-description {
  color: var(--text-light);
}

/* Benefits */
.benefits {
  background: var(--white);
}

.benefit-card {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  background: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.benefit-icon {
  font-size: 3rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.benefit-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.benefit-description {
  color: var(--text-light);
}

/* Demo Section */
.demo-section {
  background: var(--dark-bg);
  color: var(--white);
}

.demo-section .section-title {
  color: var(--white);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-card:hover {
  transform: scale(1.05);
}

.demo-card img {
  width: 130%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.demo-card:hover .demo-overlay {
  opacity: 1;
}

.demo-overlay i {
  font-size: 4rem;
  margin-bottom: 15px;
}

.demo-overlay p {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  background: var(--light-bg);
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stars {
  color: #fbbf24;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial-author strong {
  display: block;
  font-weight: 600;
}

.testimonial-author small {
  color: var(--text-light);
}

/* FAQ */
.faq {
  background: var(--white);
}

.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.accordion-button {
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 20px;
  border: none;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-1);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-body {
  padding: 20px;
  color: var(--text-light);
  font-size: 1rem;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.cta-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 60px;
  border-radius: 30px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
}

.cta-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
}

.cta-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-old-price {
  font-size: 1.5rem;
  text-decoration: line-through;
  opacity: 0.7;
}

.cta-new-price {
  font-size: 3rem;
  font-weight: 800;
  color: #fbbf24;
}

.cta-discount {
  background: #fbbf24;
  color: var(--dark-bg);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
}

.purchase-form .form-control {
  border-radius: 15px;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.purchase-form .form-control:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-button-large {
  background: var(--white);
  color: var(--primary-color);
  padding: 20px 50px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 600px;
}

.cta-button-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: var(--white);
  color: var(--primary-color);
}

.cta-guarantee {
  font-size: 0.9rem;
  opacity: 0.9;
}

.success-message {
  background: rgba(34, 197, 94, 0.2);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid rgba(34, 197, 94, 0.5);
}

.success-message i {
  font-size: 4rem;
  color: #22c55e;
  margin-bottom: 15px;
}

.success-message h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--white);
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-text {
  opacity: 0.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

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

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

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

.footer-copyright {
  opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-box {
    padding: 30px 20px;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-new-price {
    font-size: 2rem;
  }

  .step-card,
  .benefit-card,
  .testimonial-card {
    margin-bottom: 20px;
  }
}
