/* 
   AINudeGeneratorIT.site
   Main Stylesheet - Italian Site
*/

:root {
  --primary: #005B41;
  --primary-light: #008170;
  --secondary: #232D3F;
  --accent: #BAD7E9;
  --light: #E3F6F5;
  --white: #FFFFFF;
  --black: #2D2D2D;
  --gray: #767676;
  --light-gray: #f8f8f8;
  --danger: #DC143C;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  line-height: 1.6;
  background-color: #FAFBFC;
  overflow-x: hidden;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--gray);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: var(--accent);
  z-index: -1;
  transform: skew(-5deg);
}

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  max-height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-menu li a {
  color: var(--black);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-button {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}

.nav-button:hover {
  background-color: var(--primary-light);
}

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

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition);
}

.menu-icon {
  top: 13px;
}

.menu-icon::before {
  content: '';
  top: -8px;
}

.menu-icon::after {
  content: '';
  bottom: -8px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1.5" fill="%23FFFFFF" fill-opacity="0.2"/></svg>') repeat;
  opacity: 0.1;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-illustration {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* Features Section */
.features {
  background-color: var(--white);
}

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

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

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

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

.feature-card h3 {
  margin-bottom: 15px;
}

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

/* How It Works Section */
.how-it-works {
  background-color: var(--light);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top right, transparent 49%, var(--light) 50%);
}

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

.step {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex: 0 0 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 20px;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 10px;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 30px;
  width: 2px;
  height: calc(100% - 30px);
  background-color: var(--primary-light);
  opacity: 0.3;
}

.cta-container {
  text-align: center;
  margin-top: 50px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
}

.testimonials .section-title,
.testimonials .section-description {
  color: var(--white);
}

.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.testimonial {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  color: var(--black);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  transition: var(--transition);
}

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

.rating {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.quote {
  font-style: italic;
  margin-bottom: 15px;
}

.author {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 10px;
}

.name {
  font-weight: 600;
  margin-bottom: 0;
}

.location {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

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

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

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

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

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  transition: var(--transition);
}

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

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

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1" fill="%23FFFFFF" fill-opacity="0.2"/></svg>') repeat;
  animation: rotateBg 120s linear infinite;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-section h2,
.cta-section p {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 15px;
}

.cta-section p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 30px;
}

.footer-logo img {
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--white);
  font-weight: bold;
  margin: 0;
}

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

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

.links-group h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-light);
}

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

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

.links-group ul li a {
  color: var(--light);
  transition: var(--transition);
}

.links-group ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--light);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .ai-illustration {
    max-width: 400px;
    margin-top: 30px;
  }
  
  .testimonials-slider {
    gap: 20px;
  }
  
  .testimonial {
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 200;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background-color: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    gap: 15px;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle.active .menu-icon {
    background: transparent;
  }
  
  .menu-toggle.active .menu-icon::before {
    transform: rotate(45deg) translate(0, 8px);
  }
  
  .menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg) translate(0, -8px);
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .steps {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .step-number {
    flex: 0 0 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .step:not(:last-child)::after {
    top: 40px;
    left: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-logo {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .footer-links {
    gap: 30px;
    width: 100%;
  }
  
  .links-group {
    width: 100%;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
}
