/* AIpornGeneratorIT - Stile Principale */
:root {
  --primary: #9c27b0;
  --primary-dark: #673ab7;
  --primary-light: #ba68c8;
  --secondary: #2c3e50;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --text-dark: #333333;
  --text-light: #666666;
  --border-radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Montserrat', 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

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

/* Sfondo Pattern */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C27B0' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -2;
}

/* Intestazione e Navigazione */
header {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
}

.logo-icon-sm {
  width: 32px;
  height: 32px;
}

.logo-container h1 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}

.desktop-nav ul {
  display: flex;
  list-style-type: none;
  gap: 30px;
}

.desktop-nav a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  transition: var(--transition);
}

.desktop-nav a:hover {
  color: var(--primary);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background-color: white;
  z-index: 1100;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-nav ul {
  list-style-type: none;
  padding: 20px;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  display: block;
  padding: 10px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-nav a:hover {
  background-color: rgba(156, 39, 176, 0.1);
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f9f9ff 0%, #f0f0fa 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--secondary);
  line-height: 1.1;
}

.hero-content h2 span {
  color: var(--primary);
  display: block;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(156, 39, 176, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(156, 39, 176, 0.4);
  color: white;
}

.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, rgba(156, 39, 176, 0.4), rgba(103, 58, 183, 0.4));
  top: -50px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(156, 39, 176, 0.3), rgba(103, 58, 183, 0.3));
  bottom: -80px;
  left: 0;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, rgba(156, 39, 176, 0.2), rgba(103, 58, 183, 0.2));
  top: 50%;
  left: 10%;
  animation: float 7s ease-in-out infinite;
}

.hero-svg {
  max-width: 100%;
  height: auto;
  animation: pulse 5s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background-color: white;
  position: relative;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  border-radius: 4px;
}

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

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Wave Separator */
.wave-separator {
  position: relative;
  width: 100%;
  height: 150px;
  z-index: 1;
}

.wave-separator svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.wave-separator.flip {
  transform: rotate(180deg);
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background-color: var(--background-alt);
  position: relative;
}

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

.step {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.step-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 30px;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.step-connector {
  width: 2px;
  height: 50px;
  background-color: var(--primary-light);
  margin: 0 auto 30px;
  margin-left: 35px;
}

.action-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 60px 40px;
  border-radius: var(--border-radius);
  text-align: center;
  color: white;
  box-shadow: 0 15px 30px rgba(156, 39, 176, 0.3);
  max-width: 800px;
  margin: 0 auto;
}

.action-box h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 2rem;
}

.action-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.action-box .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.action-box .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background-color: white;
}

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

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px 25px;
  background-color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--secondary);
  transition: var(--transition);
}

.toggle-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: var(--transition);
}

.toggle-icon::before {
  width: 20px;
  height: 2px;
  top: 9px;
  right: 0;
}

.toggle-icon::after {
  width: 2px;
  height: 20px;
  top: 0;
  right: 9px;
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  background-color: white;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.faq-item.active .faq-question h3 {
  color: white;
}

.faq-item.active .toggle-icon::before,
.faq-item.active .toggle-icon::after {
  background-color: white;
}

.faq-item.active .toggle-icon::after {
  opacity: 0;
}

.faq-item.active .faq-answer {
  padding: 20px 25px;
  max-height: 300px;
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 80px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  max-width: 350px;
}

.footer-brand-text h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.footer-brand-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-group h4 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-size: 1.2rem;
}

.link-group h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: 10px;
}

.link-group a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.link-group a:hover {
  color: var(--primary-light);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 50px;
  }
  
  .hero-content h2 {
    font-size: 2.8rem;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 50px;
  }
  
  .footer-brand {
    max-width: none;
    justify-content: center;
    margin: 0 auto;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .step-connector {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }
  
  .link-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .action-box {
    padding: 40px 20px;
  }
  
  .action-box h3 {
    font-size: 1.5rem;
  }
}
