/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Color Variables */
:root {
  --primary-color: #0e77b1;
  --secondary-color: #0099cc;
  --accent-color: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --shadow: 0 10px 25px rgba(14, 119, 177, 0.1);
  --shadow-lg: 0 20px 40px rgba(14, 119, 177, 0.15);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.875rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 70px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 119, 177, 0.9), rgba(0, 153, 204, 0.8));
}

.hero-interne {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 119, 177, 0.9), rgba(0, 153, 204, 0.8));
  padding: 120px 0 0 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
  z-index: 2;
}

.hero h1, .hero-interne h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 4rem;
}

.hero p, .hero-interne p {
  font-size: 1.7rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}


.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-service {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-service:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
}

 @media only screen and (max-width: 700px) {
    .grid-2 {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
 }

.grid-3 {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

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

.card-icon-pagamenti {
    width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: solid 1px #dcddde;
}

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

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative;
  opacity: 0.7;
}

.service-content {
  padding: 10px;
  text-align: center;
}

p.service-content {
font-size: 1.25rem;
}

h3.service-content {
  font-size: 1.5rem;
  margin-bottom: 0px;
}

p.perche {
  font-size: 1.5rem;
  margin: 0px;
}

/* Pricing Cards */
.pricing-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
}

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

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-light);
}

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

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
}

.pricing-features li i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* CTA Section */
.cta-section {
  color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 119, 177, 0.9), rgba(0, 153, 204, 0.8));
    padding:200px 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

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

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

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

  .hero h1, .hero-interne h1 {
    font-size: 2.5rem;
  }

  .hero p, .hero-interne p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1, .hero-interne h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.bg-light {
  background-color: var(--accent-color);
}
.bg-primary {
  background-color: var(--primary-color);
}
.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--secondary-color);
}

.social-proof {
background-color: var(--primary-color);
color:white;
padding: 1.5rem 0;
text-align: center;
}

.social-proof-text {
  font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0px;
color:white;
}

.social-proof-text i {
    margin-right: 0.5rem;
    color: #fbbf24;
}

.faq-answer p {
margin-bottom: 0px;
}

.service-img-container {
  background:linear-gradient(135deg, rgb(0 51 79 / 90%), rgba(0, 153, 204, 0.6));
  display: flex;

}

 .titolo-pricing-card {
  margin-top:30px;
  color: var(--primary-color);
 }


 /* Hero Simple - for legal pages without background image */
.hero-simple {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.hero-simple .hero-content h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-simple .hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Content Styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.legal-section p strong {
  color: var(--text-dark);
  font-weight: 600;
}

.legal-list {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 0;
}

.legal-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
  line-height: 1.6;
}

.legal-list li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.75rem;
}

.legal-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}


  .hero-simple {
    padding: 6rem 0 3rem;
  }

  .hero-simple .hero-content h1 {
    font-size: 2.5rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .hero-simple .hero-content h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 0 1rem;
  }