/*
 * AINudeGeneratorIT.pw - Stili CSS
 * Tema: Ispirato ai colori della bandiera italiana (verde, bianco, rosso)
 * Data: 21 agosto 2025
 */

:root {
  /* Colori della bandiera italiana */
  --green: #00924D;
  --white: #FFFFFF;
  --red: #CD212A;
  
  /* Altri colori */
  --dark: #1A1A1A;
  --gray-dark: #333333;
  --gray: #777777;
  --gray-light: #DDDDDD;
  --light-bg: #F8F8F8;
  
  /* Effetti */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
}

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

a:hover {
  color: var(--red);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Bottoni */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  margin-right: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary {
  background: linear-gradient(135deg, var(--green), #00B358);
  color: var(--white);
  box-shadow: 0 6px 15px rgba(0, 146, 77, 0.3);
}

.primary:hover {
  background: linear-gradient(135deg, #00B358, var(--green));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 146, 77, 0.4);
  color: var(--white);
}

.secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.secondary:hover {
  background-color: rgba(0, 146, 77, 0.1);
  transform: translateY(-3px);
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 15px 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow);
}

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

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

.logo svg {
  margin-right: 10px;
}

.logo span {
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--green), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu {
  display: flex;
}

.menu li {
  margin-left: 30px;
}

.menu a {
  color: var(--gray-dark);
  font-weight: 500;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--red));
  transition: var(--transition);
}

.menu a:hover {
  color: var(--dark);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

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

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, rgba(0, 146, 77, 0.05), rgba(255, 255, 255, 1), rgba(205, 33, 42, 0.05));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 33, 42, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 146, 77, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

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

.hero-content {
  flex: 1 1 500px;
  margin-right: 40px;
  z-index: 1;
}

.hero-image {
  flex: 1 1 400px;
  margin-top: 30px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(0, 146, 77, 0.1);
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 1.8rem;
}

.warning {
  display: flex;
  align-items: center;
  background-color: rgba(205, 33, 42, 0.1);
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  max-width: fit-content;
}

.warning svg {
  margin-right: 12px;
}

.warning span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--red);
}

/* Features Section */
.features {
  background-color: var(--light-bg);
  position: relative;
}

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

.feature-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 35px 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(to bottom, var(--green), var(--red));
  transition: height 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  margin-bottom: 25px;
}

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

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
  background: linear-gradient(to bottom, var(--white), var(--light-bg));
  position: relative;
}

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

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

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

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--green), var(--red));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 25px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.step-number::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green), rgba(0, 146, 77, 0.2));
  transform: translateX(-50%);
}

.step:last-child .step-number::after {
  display: none;
}

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

.step-content h3 {
  margin-bottom: 10px;
}

.step-content p {
  color: var(--gray);
}

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

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

.accordion-item {
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

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

.accordion-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.accordion-header .icon {
  font-size: 1.5rem;
  color: var(--green);
  transition: var(--transition);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding: 0 20px 20px;
  color: var(--gray);
}

.accordion-item.active .accordion-header {
  background-color: rgba(0, 146, 77, 0.05);
}

.accordion-item.active .icon {
  transform: rotate(45deg);
  color: var(--red);
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--green), var(--red)), 
              url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
  background-size: cover, 30px 30px;
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-buttons {
  margin-bottom: 20px;
}

.cta .btn.primary {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

.cta .btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.cta small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

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

.footer-brand {
  flex: 1 1 300px;
  margin-right: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo svg {
  margin-right: 15px;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1.2rem;
}

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

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--red));
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.keywords {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 15px;
}

.age-disclaimer {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 1.9rem;
  }
  
  .hero-content {
    margin-right: 0;
  }
  
  .footer-links {
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 40px 0;
    z-index: 99;
    overflow-y: auto;
  }
  
  .menu.active {
    left: 0;
  }
  
  .menu li {
    margin: 0 0 20px 0;
    text-align: center;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-right: 0;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 15px;
  }
  
  .step-number::after {
    display: none;
  }
}
