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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden
}

:root {
  --primary: #016BFF;
  --light: #E5E6E8;
  --dark: #212428;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif
}

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

.section-subtitle {
  margin-bottom: 0.9375rem;
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999
}

.loader-text {
  font-size: 1.4rem;
  font-weight: 600;
  animation: pulse 1.5s infinite
}

@keyframes pulse {
  0% {
    opacity: .4
  }

  50% {
    opacity: 1
  }

  100% {
    opacity: .4
  }
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: .4s
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: var(--light)
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02)
}

.btn-secondary {
  background: var(--light);
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-secondary:hover {
  background: var(--dark);
  color: var(--light)
}

.btn-small {
  padding: 10px 22px
}

.btn-full {
  width: 100%;
  border: none;
  cursor: pointer
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden
}

.parallax {
  position: absolute;
  inset: 0;
  background: url(/images/hero-bg.webp) center/cover fixed;
  opacity: .15
}

.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 30px
}

.logo {
  font-size: 1.6rem;
  font-weight: 800
}

.logo span {
  color: var(--primary)
}

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

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px
}

.hero h1 span {
  color: var(--primary)
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--dark);
}

.problem-grid,
.features,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px
}

.problem-card,
.feature,
.price-card {
  background: var(--primary);
  color: var(--light);
  padding: 40px;
  border-radius: 20px;
  transition: .4s
}

.problem-card,
.feature {
  font-weight: bold;
}

.problem-card:hover,
.feature:hover,
.price-card:hover {
  transform: translateY(-8px)
}

.pricing .price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--light);
  margin: 20px 0
}

.price {
  color: var(--light);
}

.price-card ul {
  list-style: none;
  margin-bottom: 25px
}

.price-card li {
  margin-bottom: 10px
}

.price-card a {
  color: var(--dark);
  background: var(--light);
}

.price-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05)
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--light);
  color: var(--dark)
}

.gdpr {
  display: flex;
  flex-wrap: wrap;
  /* permette al testo di andare a capo su mobile */
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.gdpr input[type="checkbox"] {
  flex-shrink: 0;
  /* non si riduce mai */
  width: 18px;
  height: 18px;
  cursor: pointer;
}

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

.gdpr a:hover {
  text-decoration: underline;
}

/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  /* nascosto di default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenuto popup */
.popup-content {
  background: var(--light);
  color: var(--dark);
  max-width: 600px;
  padding: 40px;
  border-radius: 15px;
  overflow-y: auto;
  max-height: 80vh;
  position: relative;
}

.popup-content h2 {
  color: #016BFF;
}

/* Chiudi popup */
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary);
}

.popup-content h3 {
  margin-top: 5px;
}

.popup-close:hover {
  color: var(--dark);
}


.footer {
  text-align: center;
  padding: 30px;
  background: var(--primary);
  color: var(--light)
}

.footer a {
  color: var(--light);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}


.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s
}

.animate.show {
  opacity: 1;
  transform: none
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

@media(max-width:768px) {
  .parallax {
    display: none;
  }
   .hero {
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-content {
    padding-top: 120px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
  .price-card.featured {
    transform: none;
  }
   .popup-content {
    max-width: 90%;
    padding: 24px;
  }
}