:root {
  --color-primary: #131C2E;
  --color-secondary: #2B3A67;
  --color-accent-1: #FF6B6B;
  --color-accent-2: #4ECDC4;
  --color-accent-3: #FFD166;
  --color-bg-primary: #0D111C;
  --color-bg-secondary: #1A2133;
  --color-text-primary: #F2F2F2;
  --color-text-secondary: #B8C1EC;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --transition-normal: all 0.3s ease;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-1));
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

ul {
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-2);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--color-accent-1);
}

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

/* Header */
.site-header {
  background-color: var(--color-bg-secondary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
  height: 40px;
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

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

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--color-text-primary);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-2);
  transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 1001;
  padding: 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 1.5rem;
}

.mobile-nav-links a {
  color: var(--color-text-primary);
  font-size: 1.25rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* Cards */
.card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.card:hover {
  transform: perspective(1000px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--color-accent-2);
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-accent-2);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  padding: 5rem 0;
  text-align: center;
}

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

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--color-accent-2);
  color: var(--color-bg-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent-1);
  color: var(--color-text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
  background-color: var(--color-accent-2);
  color: var(--color-bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  margin-left: 0.5rem;
}

/* About Section */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(255, 107, 107, 0.3), rgba(78, 205, 196, 0.3));
  z-index: 1;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 2rem;
}

.about-features {
  list-style: none;
  margin-bottom: 2rem;
}

.about-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.about-features li i {
  color: var(--color-accent-2);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* Form Section */
.form-section {
  background-color: var(--color-bg-secondary);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  margin-top: 3rem;
}

.form-title {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--color-secondary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-2);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}

.form-control::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* IntlTelInput Customizations */
.iti {
  width: 100%;
}

.iti__flag-container {
  z-index: 10;
}

.iti__selected-flag {
  background-color: var(--color-bg-primary) !important;
}

.iti__country-list {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border-color: var(--color-secondary);
}

.iti__country.iti__highlight {
  background-color: var(--color-primary);
}

/* Footer */
.footer {
  background-color: var(--color-bg-secondary);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

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

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

.footer-about p {
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--color-accent-2);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact-info li i {
  margin-right: 1rem;
  color: var(--color-accent-2);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

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

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-secondary);
  padding: 1.5rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text p {
  margin-bottom: 0;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-preferences-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  z-index: 1100;
  display: none;
}

.cookie-preferences-modal.show {
  display: block;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header h3 {
  margin-bottom: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-preferences-list {
  margin-bottom: 2rem;
}

.cookie-preference-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-preference-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cookie-preference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-preference-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.cookie-preference-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-preference-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-preference-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.cookie-preference-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .cookie-preference-slider {
  background-color: var(--color-accent-2);
}

input:checked + .cookie-preference-slider:before {
  transform: translateX(26px);
}

.cookie-preference-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.cookie-setting-btn {
  text-decoration: underline;
  color: var(--color-accent-2);
  cursor: pointer;
  transition: var(--transition-normal);
}

.cookie-setting-btn:hover {
  color: var(--color-accent-1);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  transform: translateY(-50px);
  transition: all 0.3s ease;
  position: relative;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Thanks Page */
.thanks-section {
  text-align: center;
  padding: 5rem 0;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--color-accent-2);
  margin-bottom: 2rem;
}

.thanks-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.thanks-text {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  margin-bottom: 3rem;
}

.contact-info-item {
  display: flex;
  margin-bottom: 2rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--color-accent-2);
  margin-right: 1.5rem;
  min-width: 30px;
}

.contact-info-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-info-content p {
  margin-bottom: 0;
}

.contact-map {
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

/* Tilt Card Animation */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card-inner {
  transform: translateZ(20px);
}

.tilt-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
  border-radius: var(--border-radius-md);
  pointer-events: none;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--color-secondary);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 1.5rem;
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  border-left: 4px solid var(--color-accent-2);
}

.timeline-item:nth-child(even) .timeline-content {
  border-right: 4px solid var(--color-accent-1);
}

.timeline-content::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--color-bg-secondary);
  border: 4px solid var(--color-accent-2);
  border-radius: 50%;
  top: 20px;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -14px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -14px;
  border-color: var(--color-accent-1);
}

.timeline-date {
  color: var(--color-accent-2);
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--color-accent-1);
}

@media screen and (max-width: 767px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-content::after {
    left: -14px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::after {
    right: auto;
    left: -14px;
  }
}

/* Privacy Policy & Terms Pages */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.policy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.policy-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content p {
  margin-bottom: 1.5rem;
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content .policy-date {
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--color-text-secondary);
}

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.2s;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.4s;
}

.fade-in-delay-3 {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.6s;
}

/* Accessibilità */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.focus-visible:focus {
  outline: 3px solid var(--color-accent-2);
  outline-offset: 3px;
}