/* 
 * AIpornGeneratorIT.pw - Stili CSS
 * Tema: Ispirato ai colori della bandiera italiana
 * Data: 21 agosto 2025
 */

:root {
  /* Colori bandiera italiana */
  --green: #00953f;
  --white: #ffffff;
  --red: #cd212a;
  --dark: #212529;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --gray-dark: #343a40;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 15px;
}

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

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--gray);
}

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

.primary {
  background: linear-gradient(45deg, var(--green), var(--green) 70%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 149, 63, 0.4);
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 149, 63, 0.5);
  background: linear-gradient(45deg, var(--green), #00b04b);
}

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

.outline:hover {
  background: rgba(0, 149, 63, 0.1);
  transform: translateY(-3px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

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

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

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

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

.logo span {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--dark);
  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(--dark);
  font-weight: 700;
  position: relative;
  padding-bottom: 5px;
}

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

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

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

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

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

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(170deg, var(--white) 50%, #f3f4f6 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 149, 63, 0.1), rgba(205, 33, 42, 0.1));
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(205, 33, 42, 0.1), rgba(0, 149, 63, 0.1));
  z-index: -1;
}

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

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

.hero-illustration {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.label {
  display: inline-block;
  background-color: rgba(0, 149, 63, 0.1);
  color: var(--green);
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--gray);
}

.adult-warning {
  display: flex;
  align-items: center;
  background-color: rgba(205, 33, 42, 0.08);
  padding: 10px 15px;
  border-radius: var(--radius);
  margin-bottom: 25px;
  max-width: fit-content;
}

.adult-warning svg {
  margin-right: 10px;
}

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

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
}

/* Features */
.features {
  background-color: var(--white);
  padding: 90px 0;
}

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

.feature {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.feature::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--white), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.feature:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

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

/* How It Works */
.how-it-works {
  background: linear-gradient(to bottom, var(--light), var(--white));
  padding: 90px 0;
}

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

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
}

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

.step-icon {
  background: linear-gradient(135deg, var(--green), var(--red));
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  margin-right: 25px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 149, 63, 0.3);
}

.step-content {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
  position: relative;
}

.step-content::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid var(--white);
}

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

/* FAQ */
.faq {
  background-color: var(--white);
  padding: 90px 0;
}

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

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

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  padding-right: 20px;
}

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

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-answer p {
  padding: 0 25px 20px;
}

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

.faq-item.active .faq-answer {
  height: auto;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, rgba(0, 149, 63, 0.9), rgba(205, 33, 42, 0.9)), 
              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.2)'/%3E%3C/svg%3E");
  color: var(--white);
  padding: 80px 0;
}

.cta-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

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

.cta .btn {
  margin: 10px;
}

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

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

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

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

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

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

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

.footer-brand p {
  color: var(--gray-light);
  font-size: 0.95rem;
  max-width: 400px;
}

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

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

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--white), var(--red));
}

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

.footer-column a {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-column 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 {
  margin-bottom: 10px;
  color: var(--gray);
  font-size: 0.9rem;
}

.keywords {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.adult-disclaimer {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: left 0.3s ease;
  }
  
  .menu.active {
    left: 0;
  }
  
  .menu li {
    margin: 15px 0;
  }
  
  .footer-links {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-icon {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .step-content::before {
    display: none;
  }
  
  .feature {
    padding: 30px 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    margin-right: 0;
    width: 100%;
  }
}
