/* ===== LANDING PAGE - RiparaParts eBay ===== */
/* Uniformato alla grafica di chi-siamo */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --lp-primary: #FF6B00;
  --lp-primary-dark: #E55D00;
  --lp-primary-light: #FF8C00;
  --lp-secondary: #111111;
  --lp-text: #4B5563;
  --lp-text-dark: #374151;
  --lp-light: #F9FAFB;
  --lp-light-warm: #FFF7ED;
  --lp-light-warm-2: #FFEDD5;
  --lp-gray: #6B7280;
  --lp-gray-300: #D1D5DB;
  --lp-border: #D1D5DB;
  --lp-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --lp-shadow-hover: 0 12px 40px rgba(0,0,0,0.08);
  --lp-radius: 14px;
  --lp-radius-lg: 20px;
}

.landing-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--lp-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.landing-page * {
  box-sizing: border-box;
}

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

.landing-page h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--lp-secondary);
  line-height: 1.1;
}

.section-subtitle {
  text-align: center;
  color: var(--lp-text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== BUTTONS ===== */

.btn-landing {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--lp-radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-landing-primary {
  background: var(--lp-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}

.btn-landing-primary:hover {
  background: var(--lp-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,107,0,0.4);
  color: #fff;
  text-decoration: none;
}

.btn-landing-secondary {
  background: var(--lp-secondary);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn-landing-secondary:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-landing-outline {
  background: transparent;
  color: var(--lp-primary);
  border: 2px solid var(--lp-primary);
  padding: 14px 30px;
}

.btn-landing-outline:hover {
  background: var(--lp-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-landing-large {
  padding: 18px 48px;
  font-size: 1.15rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===== 1. HERO ===== */

.landing-hero {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 40%, #FEE2C5 100%);
  color: var(--lp-secondary);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,107,0,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,107,0,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--lp-primary);
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  position: relative;
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  color: var(--lp-secondary);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--lp-text);
  max-width: 650px;
  margin: 0 auto 32px;
  position: relative;
}

.coupon-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px dashed var(--lp-primary);
  border-radius: var(--lp-radius);
  padding: 16px 28px;
  margin-bottom: 16px;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255,107,0,0.1);
}

.coupon-label {
  font-size: 0.9rem;
  color: var(--lp-text);
}

.coupon-code {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--lp-primary);
  font-family: 'Inter', monospace;
}

.coupon-copy {
  background: rgba(255,107,0,0.1);
  border: 1px solid var(--lp-primary);
  color: var(--lp-primary);
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.coupon-copy:hover {
  background: var(--lp-primary);
  color: #fff;
}

.hero-validity {
  font-size: 0.9rem;
  color: var(--lp-gray);
  margin-bottom: 28px;
  position: relative;
}

/* ===== 2. REGISTRAZIONE ===== */

.landing-registration {
  padding: 90px 24px;
  background: var(--lp-light);
}

.registration-form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--lp-radius-lg);
  padding: 40px;
  border: 1px solid var(--lp-gray-300);
  box-shadow: var(--lp-shadow);
}

.landing-form .form-group {
  margin-bottom: 18px;
}

.landing-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--lp-secondary);
}

.landing-form input[type="text"],
.landing-form input[type="email"],
.landing-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--lp-gray-300);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
  background: #fff;
  font-family: 'Inter', sans-serif;
  color: var(--lp-secondary);
}

.landing-form input:focus {
  outline: none;
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

.landing-form .btn-block {
  margin-top: 8px;
}

.social-login {
  margin-top: 24px;
}

.social-divider {
  text-align: center;
  position: relative;
  color: var(--lp-gray);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.social-divider::before,
.social-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--lp-gray-300);
}

.social-divider::before { left: 0; }
.social-divider::after { right: 0; }

.social-buttons {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--lp-gray-300);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--lp-secondary);
  font-family: 'Inter', sans-serif;
}

.btn-social:hover {
  border-color: var(--lp-primary);
  background: var(--lp-light-warm);
}

/* ===== 3. FIDUCIA ===== */

.landing-trust {
  padding: 90px 24px;
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0 30px;
}

.trust-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-gray-300);
  transition: all 0.3s;
  background: #fff;
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-hover);
  border-color: transparent;
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,0,0.1);
  border-radius: 14px;
}

.trust-icon svg {
  width: 28px;
  height: 28px;
}

.trust-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--lp-secondary);
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--lp-gray);
  margin: 0;
}

.trust-footer {
  text-align: center;
  font-size: 1.1rem;
  color: var(--lp-text-dark);
  margin-top: 16px;
}

/* ===== 4. PRODOTTI ===== */

.landing-products {
  padding: 90px 24px;
  background: var(--lp-light);
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0 30px;
}

.product-card {
  background: #fff;
  border-radius: var(--lp-radius);
  overflow: hidden;
  border: 1px solid var(--lp-gray-300);
  position: relative;
  transition: all 0.3s;
  text-align: left;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-hover);
  border-color: transparent;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--lp-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
  letter-spacing: 0.3px;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--lp-light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--lp-secondary);
}

.product-compat {
  font-size: 0.8rem;
  color: var(--lp-gray);
  margin-bottom: 12px;
}

.product-price {
  margin-bottom: 14px;
}

.price-old {
  text-decoration: line-through;
  color: var(--lp-gray);
  font-size: 0.9rem;
  margin-right: 8px;
}

.price-new {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--lp-primary);
}

.products-note {
  font-size: 1.05rem;
  color: var(--lp-text-dark);
  margin-bottom: 20px;
}

/* ===== 6. RECENSIONI ===== */

.landing-reviews {
  padding: 90px 24px;
  background: #fff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--lp-light-warm);
  border-radius: var(--lp-radius);
  padding: 30px;
  border: 1px solid #FEE2C5;
  transition: all 0.3s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-hover);
}

.review-stars {
  color: var(--lp-primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--lp-text-dark);
  margin-bottom: 12px;
  line-height: 1.7;
}

.review-author {
  font-size: 0.85rem;
  color: var(--lp-gray);
  font-weight: 600;
}

/* ===== 7. FAQ ===== */

.landing-faq {
  padding: 90px 24px;
  background: var(--lp-light);
}

.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
}

.faq-item {
  background: #fff;
  border-radius: var(--lp-radius);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--lp-gray-300);
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--lp-primary);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  border: none;
  background: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.faq-question:hover {
  background: var(--lp-light-warm);
}

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.3s;
  color: var(--lp-primary);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 18px;
}

.faq-answer p {
  color: var(--lp-text);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== 8. CTA FINALE ===== */

.landing-cta-final {
  padding: 90px 24px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 40%, #FEE2C5 100%);
  color: var(--lp-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.landing-cta-final::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(255,107,0,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.landing-cta-final h2 {
  color: var(--lp-secondary);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--lp-text);
  margin-bottom: 40px;
  position: relative;
}

.countdown-wrapper {
  margin-bottom: 40px;
  position: relative;
}

.countdown-label {
  font-size: 0.95rem;
  color: var(--lp-gray);
  margin-bottom: 20px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: var(--lp-radius);
  padding: 16px 20px;
  min-width: 80px;
  border: 1px solid var(--lp-gray-300);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--lp-primary);
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lp-gray);
  margin-top: 6px;
  font-weight: 600;
}

.countdown-separator {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lp-primary);
  opacity: 0.4;
  align-self: flex-start;
  margin-top: 12px;
}

/* ===== FORM ROW (Nome + Cognome) ===== */

.landing-form .form-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.landing-form .form-group-half {
  flex: 1;
  min-width: 0;
}

/* ===== CHECKBOX PRIVACY ===== */

.checkboxes-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  margin-top: 4px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  accent-color: var(--lp-primary);
  cursor: pointer;
  margin: 0;
}

.checkbox-text-link {
  font-size: 0.78rem;
  color: var(--lp-primary);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.checkbox-text-link:hover {
  color: var(--lp-primary-dark);
  text-decoration-style: solid;
}

/* ===== MODAL PRIVACY ===== */

.landing-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.landing-modal-overlay.active {
  display: flex;
}

.landing-modal {
  background: #fff;
  border-radius: var(--lp-radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.landing-modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lp-secondary);
  margin-bottom: 16px;
  padding-right: 30px;
}

.landing-modal-body {
  font-size: 0.92rem;
  color: var(--lp-text);
  line-height: 1.7;
}

.landing-modal-body a {
  color: var(--lp-primary);
  text-decoration: underline;
}

.landing-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--lp-gray);
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.landing-modal-close:hover {
  color: var(--lp-primary);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .landing-hero {
    padding: 60px 16px 50px;
    border-radius: 0 0 20px 20px;
  }
  .landing-hero h1 {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .coupon-box {
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }
  .coupon-code {
    font-size: 1.3rem;
  }
  .landing-page h2 {
    font-size: 1.5rem;
  }
  .registration-form-wrapper {
    padding: 24px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-info {
    padding: 14px;
  }
  .product-info h3 {
    font-size: 0.9rem;
  }
  .btn-landing {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
  .btn-landing-large {
    padding: 16px 36px;
    font-size: 1.05rem;
  }
  .countdown-number {
    font-size: 1.8rem;
  }
  .countdown-block {
    min-width: 65px;
    padding: 12px 14px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .landing-form .form-row {
    flex-direction: column !important;
    gap: 0;
  }
  .landing-registration,
  .landing-trust,
  .landing-products,
  .landing-reviews,
  .landing-faq,
  .landing-cta-final {
    padding: 60px 16px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMAZIONI ===== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-hero .hero-badge,
.landing-hero h1,
.landing-hero .hero-subtitle,
.landing-hero .coupon-box,
.landing-hero .btn-landing {
  animation: fadeInUp 0.6s ease-out backwards;
}

.landing-hero .hero-badge { animation-delay: 0.1s; }
.landing-hero h1 { animation-delay: 0.2s; }
.landing-hero .hero-subtitle { animation-delay: 0.3s; }
.landing-hero .coupon-box { animation-delay: 0.4s; }
.landing-hero .btn-landing { animation-delay: 0.5s; }
