/* Stili generali */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --light: #f3f4f6;
  --dark: #1f2937;
  --primary-pink: #ec0076;
  --primary-teal: #47b2af;
  scroll-padding-top: 5em;
  scroll-behavior: smooth;
}

.anchor {
  padding-top: 1rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  line-height: 1.6;
  color: var(--dark);
}

/* Barra superiore */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--dark);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .logo {
  height: 2.5rem;
  width: auto;
}

.top-bar nav {
  display: flex;
  justify-content: flex-end;
  flex-grow: 1;
  margin-left: 2rem;
}

.top-bar nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.top-bar nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.top-bar nav a:hover {
  opacity: 0.8;
}

/* Hero section */
.section.hero {
  padding: 0;
  margin-bottom: 0rem;
}

.hero-wrapper {
  width: 100%;
  min-height: 32vh;
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.hero-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.hero-content-column {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.svg-container {
  width: 100%;
  max-width: 700px;
}

.svg-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Sezioni generali */
.section {
  padding: 5rem 2rem;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Stili hero specifici */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Pulsanti */
.btn {
  display: inline-block;
  padding: 1rem 4rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s;
  margin: auto;
}

.btn:hover {
  transform: translateY(-3px);
}

/* Features section */
.features {
  padding: 4rem 0;
  background-color: var(--primary-teal);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: #2d3748;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Intro section */
.intro-section {
  background: white;
  text-align: center;
  padding: 2rem 2rem;
}

.intro-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.intro-content h3 {
  margin-top: 1rem;
}

.use-cases {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.use-case-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

.use-case-card:hover {
  transform: translateY(-5px);
}

/* AI section */
.ai-section {
  background: white;
  text-align: center;
}

.ai-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 2rem 0;
}

.ai-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.ai-card:hover {
  transform: translateY(-5px);
}

/* CTA section */
.cta {
  background: var(--primary);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  width: 100%;
  background-color: var(--dark);
  color: white;
  padding: 1rem 1rem;
  display: flex;
  justify-content: center;
}

.footer-content {
  max-width: 1200px;
  width: 100%;
}

.footer-info {
  margin-bottom: 1.5rem;
}

.footer-info h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-info p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  color: white;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: white !important;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: white !important;
}

/* Privacy links */
.privacy-wrapper a,
.footer-links a {
  color: white;
  text-decoration: underline;
}

.privacy-wrapper a:hover,
.footer-links a:hover {
  color: var(--primary-pink);
}

/* Features section specifics */
.section.features {
  background-color: var(--primary-teal);
}

.section.features .section-title,
.section.features .feature-card {
  color: white;
}

.section.features .feature-card {
  background-color: var(--primary-teal);
  border: 2px solid white;
  padding: 20px;
  border-radius: 8px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .hero-grid {
    max-width: 90%;
    gap: 1rem;
  }

  .svg-container {
    max-width: 500px;
  }

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

  .hero-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 1rem;
  }

  .top-bar nav {
    display: none;
  }

  .hero-wrapper {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-image-column,
  .hero-content-column {
    width: 100%;
  }

  .svg-container {
    max-width: 400px;
    margin: 0 auto;
  }

  .features-grid,
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card,
  .ai-card {
    height: auto;
  }
}

/* Form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}

.form-textarea {
  min-height: 120px;
}

.privacy-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-wrapper label {
  font-size: 0.9rem;
}

/* Footer styles */
.footer-container {
  padding: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: white;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-info-text {
  font-weight: 500;
}

.footer-privacy-link {
  color: white;
  text-decoration: underline;
  margin-left: auto;
}

.capabilities-list {
  margin: 2rem 0;
  list-style: none;
}

.capabilities-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.capabilities-list li:before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.modal-success {
  color: #155724;
}

.modal-error {
  color: #721c24;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20%);
  }
  to {
    transform: translateY(0);
  }
}
