/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Crimson Text", serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: #c41e3a;
}

h2 {
  font-size: 2rem;
  color: #c41e3a;
}

h3 {
  font-size: 1.5rem;
  color: #333;
}

h4 {
  font-size: 1.25rem;
  color: #333;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: #c41e3a;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #a01729;
}

/* Navigation */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #c41e3a;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c41e3a;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: #f8f9fa;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Added styling for the hero image */
.hero-image {
  margin-bottom: 40px;
}

.hero-image img {
  width: 100%;
  max-width: 800px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-quote {
  max-width: 600px;
  margin: 0 auto;
}

.quote-text {
  font-family: "Crimson Text", serif;
  font-size: 2rem;
  font-style: italic;
  color: #2c3e50;
  margin: 0;
  line-height: 1.4;
}

.quote-author {
  font-family: "Open Sans", sans-serif;
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-top: 20px;
  font-weight: 300;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-header h3 {
  font-size: 2.2rem;
  color: #c41e3a;
}

.section-header h3 a {
  color: inherit;
}

/* Chi Siamo Section */
.chi-siamo {
  background: #f8f9fa;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Professionals Grid */
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.professional-card {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.professional-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.professional-card h4 {
  padding: 20px;
  margin-bottom: 10px;
  color: #c41e3a;
  font-size: 1.1rem;
}

.professional-card a {
  display: inline-block;
  padding: 0 20px 20px;
  font-weight: 500;
}

.professional-info {
  padding: 20px;
}

.professional-info h3 {
  color: #c41e3a;
  margin-bottom: 15px;
}

.professional-info p {
  margin-bottom: 15px;
  color: #666;
}

.btn-link {
  display: inline-block;
  padding: 10px 20px;
  background: #c41e3a;
  color: white !important;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-link:hover {
  background: #a01729;
}

/* Competenze Grid */
.competenze-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.competenza-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.competenza-card:hover {
  transform: translateY(-5px);
}

.competenza-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.competenza-card h4 {
  padding: 20px 20px 10px;
  color: #c41e3a;
}

.competenza-card p {
  padding: 0 20px 20px;
  color: #666;
}

/* Competenze Legali Page */
.competenze-list {
  max-width: 1000px;
  margin: 0 auto;
}

.competenza-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding: 40px 0;
}

.competenza-item.reverse {
  direction: rtl;
}

.competenza-item.reverse > * {
  direction: ltr;
}

.competenza-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.competenza-content h3 {
  color: #c41e3a;
  font-size: 2rem;
  margin-bottom: 20px;
}

.competenza-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Unicità Section */
.unicita {
  background: #f8f9fa;
}

.unicita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.unicita-card {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.unicita-card:hover {
  transform: translateY(-5px);
}

.unicita-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.unicita-card h4 {
  padding: 20px 20px 10px;
  color: #c41e3a;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.unicita-card p {
  padding: 0 20px 20px;
  color: #666;
  font-style: italic;
}

/* Partnership Section */
.partnership {
  text-align: center;
}

.partnership-logo {
  margin-top: 40px;
}

.partnership-logo img {
  max-width: 300px;
  height: auto;
}

/* Network Section */
.network {
  background: #f8f9fa;
}

.network-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
  margin-top: 40px;
}

.network-logos img {
  max-width: 120px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.network-logos img:hover {
  opacity: 1;
}

/* Page Header */
.page-header {
  background: #c41e3a;
  color: white;
  text-align: center;
  padding: 120px 0 60px;
  margin-top: 80px;
}

.page-header h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.page-header h2 {
  color: white;
  font-size: 2.5rem;
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2,
.contact-form-container h2 {
  font-family: "Crimson Text", serif;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 30px;
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h3 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  color: #c41e3a;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.contact-item p {
  color: #666;
  line-height: 1.6;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-family: "Open Sans", sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e8ed;
  border-radius: 5px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c41e3a;
}

.submit-btn {
  background-color: #c41e3a;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: #a01729;
}

.submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.form-message {
  margin-top: 20px;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: #c41e3a;
  margin-bottom: 20px;
}

.footer-section p {
  margin-bottom: 10px;
  color: #ccc;
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .hero-image img {
    height: 250px;
  }

  .quote-text {
    font-size: 1.5rem;
  }

  .quote-author {
    font-size: 1rem;
  }

  .professionals-grid,
  .competenze-grid,
  .unicita-grid {
    grid-template-columns: 1fr;
  }

  .competenza-item {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .competenza-item.reverse {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .page-header {
    padding: 100px 0 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-image img {
    max-width: 100%;
  }

  .quote-text {
    font-size: 1.4rem;
  }

  .quote-author {
    font-size: 1rem;
  }

  .professionals-grid,
  .competenze-grid,
  .unicita-grid {
    gap: 20px;
  }

  .network-logos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .network-logos img {
    max-width: 100px;
  }
}
.about-us {
    padding: 60px 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.about-us h3 {
    margin-top: 30px;
    font-size: 1.4rem;
    color: #800000; /* un bordeaux elegante */
}

.about-us p {
    margin-bottom: 15px;
}

.regulators-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1rem;
    background: #fafafa;
}

.regulators-table th,
.regulators-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.regulators-table th {
    background-color: #800000;
    color: #fff;
}
/* ---- SEZIONE SERVIZI ---- */
.services {
    padding: 60px 20px;
    background: #fafafa;
    color: #333;
    line-height: 1.8;
}

.services h2 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #800000;
}

.services h3 {
    font-size: 1.4rem;
    margin-top: 25px;
    color: #444;
}

.services p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Liste personalizzate */
.service-list, .check-list, .bullet-list {
    margin: 15px 0 25px 20px;
    padding: 0;
}

.service-list li,
.check-list li,
.bullet-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Box per pagamento */
.payment-box {
    background: #fff;
    border-left: 5px solid #800000;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.payment-box h3 {
    margin-bottom: 15px;
    color: #800000;
}
/* ---- CARDS con immagine + testo ---- */
.highlight-card {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card.reverse {
    flex-direction: row-reverse;
}

.highlight-card img {
    width: 45%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlight-text {
    width: 55%;
}

.highlight-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #800000;
}

.highlight-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #333;
}

/* Liste */
.service-list, .check-list, .bullet-list {
    margin: 15px 0;
    padding-left: 20px;
}

.service-list li,
.check-list li,
.bullet-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Box pagamenti */
.payment-box {
    background: #fafafa;
    border-left: 5px solid #800000;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.payment-box h3 {
    margin-bottom: 15px;
    color: #800000;
}

/* Responsive */
@media (max-width: 768px) {
    .highlight-card {
        flex-direction: column;
        text-align: center;
    }

    .highlight-card.reverse {
        flex-direction: column;
    }

    .highlight-card img, .highlight-text {
        width: 100%;
    }
}

/* .competenze {
  padding: 80px 0;
}

.competenze-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.competenza-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.competenza-item.reverse {
  flex-direction: row-reverse;
}

.competenza-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

.competenza-content {
  flex: 1;
}

.competenza-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #800000;
}

.competenza-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

/* Responsive */
/* @media (max-width: 900px) {
  .competenza-item,
  .competenza-item.reverse {
    flex-direction: column;
    text-align: center;
  }

  .competenza-image img {
    max-width: 100%;
  } */


