/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
:root {
  --background-dark: #0d0d14;
  --background-light: #10101c;
  --accent-color: rgb(89, 209, 249);
  --secondary-accent: rgb(52, 140, 255);
  --vibrant-blue: rgb(0, 128, 255);
  --vibrant-green: rgb(51, 230, 128);
  --text-color: white;
  --text-secondary: rgba(255, 255, 255, 0.7);

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--background-dark), var(--background-light));
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* Header */
header {
  padding: 30px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 1.8rem;
  color: var(--accent-color);
  -webkit-text-fill-color: var(--accent-color);
}

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

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

.nav-links a:hover {
  color: var(--accent-color);
}

.cta-button {
  margin-bottom: 25px;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(89, 209, 249, 0.3);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  z-index: 1;
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.0rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  max-width: 600px;
}


.blur-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
}

.circle-1 {
  width: 400px;
  height: 400px;
  background-color: rgba(89, 209, 249, 0.5);
  top: 50px;
  left: 50px;
}

.circle-2 {
  width: 250px;
  height: 250px;
  background-color: rgba(51, 230, 128, 0.5);
  bottom: 50px;
  right: 50px;
}

.circle-3 {
  width: 400px;
  height: 400px;
  background-color: rgba(52, 140, 255, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* Features Section */
.features {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--text-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background-color: rgba(20, 20, 30, 0.6);
  border-radius: 20px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  position: relative;
}

.steps {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.step p {
  color: var(--text-secondary);
}

.step-connector {
  position: absolute;
  height: 3px;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  top: 30px;
  width: 100%;
  left: 50%;
  z-index: -1;
}

/* App Preview Section */
.app-preview {
  padding: 80px 0;
  position: relative;
}

.app-screenshot {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.preview-card {
  background-color: rgba(20, 20, 30, 0.8);
  padding: 30px;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* FAQ Section */
.faq {
  padding: 80px 0;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-header {
  background-color: rgba(20, 20, 30, 0.8);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  border-radius: 10px;
}

.accordion-header:hover {
  background-color: rgba(30, 30, 40, 0.8);
}

.accordion-header.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-title {
  font-size: 1.2rem;
  font-weight: 500;
}

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

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  background-color: rgba(25, 25, 35, 0.6);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  padding: 20px;
  max-height: 500px;
}

.accordion-content p {
  color: var(--text-secondary);
}

/* CTA Section */
.download-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--background-dark);
  color: var(--text-color);
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.download-button i {
  font-size: 1.5rem;
}

/* Footer */
footer {
  padding: 50px 0;
  background-color: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-column ul {
  list-style: none;
}

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

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

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

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.social-icons i {
  font-size: 1.2rem;
  color: var(--text-color);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* App Animation */
/* App Screenshots Carousel Styles */
.app-screenshots-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background-color: var(--background-dark);*/
}

.screenshot-container {
  position: relative;
  width: 100%;
}

.screenshot-slider {
  position: relative;
  height: 1000px;
  width: 100%;
}

.screenshot-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

.screenshot-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.screenshot-caption {
  margin-top: 20px;
  text-align: center;
  max-width: 80%;
}

.screenshot-caption h3 {
  margin-bottom: 8px;
  color: var(--accent-color);
  font-size: 1.4rem;
}

.screenshot-caption p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Controlli del carosello */
.screenshot-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding-bottom: 20px;
  gap: 30px;
}

.nav-dots {
  display: flex;
  gap: 10px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

.nav-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.nav-button svg {
  width: 20px;
  height: 20px;
}

/* For mobile and smaller screens */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    width: 100%;
  }

  .step-connector {
    display: none;
  }

  .footer-content {
    flex-direction: column;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.animated-contact-card {
  position: relative;
  max-width: 550px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 20px;
  background: rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.animated-contact-card:hover, .download-cta .cta-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.card-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-color) 0%, rgba(89, 209, 249, 0) 70%);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.15;
  top: -150px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--secondary-accent) 0%, rgba(52, 140, 255, 0) 70%);
  top: auto;
  right: auto;
  bottom: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(15px, 15px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(89, 209, 249, 0.2), rgba(52, 140, 255, 0.2));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(89, 209, 249, 0.2);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(89, 209, 249, 0.4);
  }
}

.card-icon i {
  font-size: 28px;
  color: var(--accent-color);
}

.card-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.email-container {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(15, 15, 25, 0.8), rgba(25, 25, 35, 0.8));
  border-radius: 50px;
  padding: 5px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.email-container:hover {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 10px rgba(89, 209, 249, 0.2);
}

.email-link {
  flex: 1;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 20px;
  transition: color 0.3s ease;
  letter-spacing: 0.5pt;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.email-link:hover {
  opacity: 0.9;
}

.copy-btn {
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(89, 209, 249, 0.3);
}

.copy-btn:active {
  transform: translateY(1px);
}

.copy-icon, .copied-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.copy-icon {
  opacity: 1;
  transform: translateY(0);
}

.copied-icon {
  opacity: 0;
  transform: translateY(10px);
}

.copy-btn.copied .copy-icon {
  opacity: 0;
  transform: translateY(-10px);
}

.copy-btn.copied .copied-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Animation for success state */
@keyframes success-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(51, 230, 128, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(51, 230, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(51, 230, 128, 0);
  }
}

.copy-btn.copied {
  background: linear-gradient(to right, rgb(51, 230, 128), rgb(0, 179, 89));
  animation: success-pulse 1.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .animated-contact-card {
    padding: 25px 20px;
    margin: 40px 20px;
  }

  .card-header h3 {
    font-size: 24px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
  }

  .card-icon i {
    font-size: 22px;
  }

  .email-link {
    font-size: 16px;
    padding: 10px 15px;
  }
}

/* Enhanced CTA Section - KEEPING AS REQUESTED */
.enhanced-cta {
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.cta-background {
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: 0;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-color), transparent 70%);
  top: -100px;
  right: -120px;
  animation-delay: 0s;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--secondary-accent), transparent 70%);
  bottom: -80px;
  left: -100px;
  animation-delay: 3s;
}


.cta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cta-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(89, 209, 249, 0.2), rgba(52, 140, 255, 0.2));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  animation: pulse 3s infinite alternate;
}

.cta-icon i {
  font-size: 28px;
  color: var(--accent-color);
}

/* Download Button animato */
.cta-download-button {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  color: white;
  text-decoration: none;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 128, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2.5s infinite alternate;
}

.cta-download-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 128, 255, 0.4);
}

@media (max-width: 768px) {
  .cta-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .cta-header h2 {
    font-size: 2rem;
  }

  .cta-icon {
    width: 50px;
    height: 50px;
  }

  .cta-icon i {
    font-size: 22px;
  }

  .cta-download-button {
    width: 100%;
    justify-content: center;
  }
}

/* Floating file that follows the mouse */
.floating-file {
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: rgba(89, 209, 249, 0.9);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Make sure it doesn't interfere with other elements */
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(89, 209, 249, 0.4);
  animation: pulse-subtle 2s infinite alternate;
  transition: transform 0.2s ease;
}

.floating-file i {
  color: white;
  font-size: 20px;
}

/* Pulsing animation for the floating file */
@keyframes pulse-subtle {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Glowing border animation */
@keyframes glow-border {
  0% {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(89, 209, 249, 0.3);
  }
  100% {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 30px rgba(89, 209, 249, 0.7);
  }
}

/* Pulsing glow animation for active download button */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(89, 209, 249, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(89, 209, 249, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(89, 209, 249, 0);
  }
}

/* Drop-in animation */
@keyframes drop-in {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA box base styling */
.cta-box {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 1.2s ease-out;
  border: 2px dashed var(--accent-color); /* Bordo dashed sempre visibile */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(89, 209, 249, 0.3);
  animation: glow-border 1.5s infinite alternate;
  background: rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  max-width: 750px;
  margin: 0 auto;
}

/* Stato attivato dopo il drop */
.cta-box.activated {
  border: 1px solid rgba(89, 209, 249, 0.3); /* Cambia da dashed a solid */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(89, 209, 249, 0.2) inset;
  transition: border 1.2s ease, box-shadow 1.2s ease;
  animation: none; /* Rimuove l'animazione glow-border */
}

/* Glow backdrop element */
.glow-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
  rgba(80, 190, 225, 0.15),
  rgba(45, 125, 230, 0.15));
  opacity: 0;
  z-index: -1;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

/* Active state for the backdrop when button is activated */
.glow-backdrop.active {
  opacity: 1;
}

/* Ripple element that creates the explosion effect */
.glow-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,
  rgba(89, 209, 249, 0.7) 0%,
  rgba(52, 140, 255, 0.5) 40%,
  rgba(52, 140, 255, 0) 70%);
  transform: scale(0);
  pointer-events: none;
  opacity: 0;
}

/* Dropped file styling */
.dropped-file, .tobe-dropped-file {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(89, 209, 249, 0.15);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(89, 209, 249, 0.3);
  animation: drop-in 0.5s ease forwards;
}

.dropped-file i, .tobe-dropped-file i {
  color: var(--accent-color);
  font-size: 24px;
}

.dropped-file span, .tobe-dropped-file span {
  color: var(--text-color);
  font-weight: 500;
}


/* Disabled button styles */
.cta-download-button.disabled {
  background: linear-gradient(to right, #7a7a7a, #5a5a5a);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: none;
}

/* Activated button styles */
.cta-download-button.activated {
  background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  box-shadow: 0 10px 30px rgba(0, 128, 255, 0.25);
  animation: pulse-glow 3s infinite;
  transform: translateY(-3px);
  transition: transform 1s ease-out, box-shadow 1s ease-out;
}

.cta-download-button.activated:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 128, 255, 0.4);
}

/* Glow particles that shoot out from the button when activated */
.glow-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(89, 209, 249, 0.8);
  pointer-events: none;
  z-index: 4;
}

/* Media query for mobile */
@media (max-width: 768px) {
  .floating-file, .dropped-file, .glow-particle, .glow-ripple {
    display: none !important;
  }

  .cta-box {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: none;
    padding: 30px 20px;
  }

  .cta-box.activated {
    border: 1px solid rgba(89, 209, 249, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .cta-download-button.disabled {
    opacity: 0.9;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-accent));
  }

  .cta-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .cta-header h2 {
    font-size: 2rem;
  }

  .cta-icon {
    width: 50px;
    height: 50px;
  }

  .cta-icon i {
    font-size: 22px;
  }
}


/* Additional styles to center specific content and reduce title sizes by 2 points */

/* Center main sections and content (excluding FAQ, CTA, and contact) */
.container {
  text-align: center;
}

/* Center feature cards */
.features-grid {
  justify-content: center;
}

.feature-card {
  text-align: center;
}

/* Center steps */
.steps {
  justify-content: center;
  text-align: center;
}

.step {
  text-align: center;
}

/* Center footer content */
.footer-content {
  justify-content: center;
  text-align: center;
}

.footer-column {
  text-align: center;
}

.footer-column ul {
  padding-left: 0;
}

/* Reduce title font sizes by 2 points */
h1 {
  font-size: calc(3.5rem - 2px);
}

h2.section-title {
  font-size: calc(2.5rem - 2px);
}

.feature-card h3 {
  font-size: calc(1.5rem - 2px);
}

.step h3 {
  font-size: calc(1.3rem - 2px);
}

.screenshot-caption h3 {
  font-size: calc(1.4rem - 2px);
}

.accordion-title {
  font-size: calc(1.2rem - 2px);
}

.cta-header h2 {
  font-size: calc(2.5rem - 2px);
}

.card-header h3 {
  font-size: calc(28px - 2px);
}

.footer-column h3 {
  font-size: calc(1.2rem - 2px);
}

/* Center nav links and adjust for centered layout, keeping the original layout for CTA, FAQ, and contact sections */
.nav {
  justify-content: center;
  flex-direction: column;
  gap: 15px;
}

.nav-links {
  justify-content: center;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Center hero section content */
.hero-content {
  text-align: center;
  margin: 0 auto;
}

.hero {
  text-align: center;
}

/* EXCEPTIONS: Preserve original layout for FAQ, CTA, and contact sections */
/* The FAQ section, contact card, and CTA section retain their original styling */

/* Keep navigation fixed at top on mobile */
@media (max-width: 768px) {
  .nav-links {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero {
    padding-top: 20px;
  }

  .language-selector-container {
    text-align: center;
    margin: 10px auto;
  }
}
