:root {
  --primary-color: #4b3f72;
  --secondary-color: #2c2a4a;
  --dark-grey: #333;
  --light-grey: #f4f4f9;
  --white: #ffffff;
  --text-color: #4a4a4a;
  --font-sans: 'Poppins', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--text-color);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--dark-grey);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.main-header {
  background: var(--white);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-grey);
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.burger-menu {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
  padding: 10rem 0;
  margin-top: 60px;
  animation: fadeIn 1s ease-in;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 1rem 0 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--primary-color);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  background-color: var(--light-grey);
}

/* Features */
#features {
  padding: 5rem 0;
  background-color: var(--light-grey);
  animation: fadeIn 1s ease-in;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Footer */
.main-footer {
  background: var(--dark-grey);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

.main-footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-footer a:hover {
  color: var(--secondary-color);
}

.main-footer h3 {
  color: var(--white);
}

.contact-info p {
  margin: 0.5rem 0;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animazioni */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .burger-menu {
    display: block;
  }

  .hero {
    padding: 6rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* Privacy Policy */
.privacy-policy {
  padding: 5rem 0;
}

.privacy-policy h1 {
  margin-bottom: 2rem;
}

.privacy-policy h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Data Deletion Policy */
.data-deletion-policy {
  padding: 5rem 0;
}

.data-deletion-policy h1 {
  margin-bottom: 2rem;
}

.data-deletion-policy h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.data-deletion-policy ol, .data-deletion-policy ul {
  padding-left: 2rem;
}