body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #003366;
    padding: 20px 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s;
    font-family: 'Playfair Display', serif;
}

nav ul li a:hover {
    color: #FF6B6B; 
}


footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #003366;
    padding: 20px 80px;
    border-top: 1px solid #ccc;
}

.footer-logo img {
    height: 200px;
}

.footer-contatti {
    margin-top: 40px;
    text-align: right;
}

.footer-contatti h4 {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}

.footer-contatti p {
    margin: 5px 0;
    font-size: 14px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}


.card-container {
    display: flex;
    height: 80vh;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 100px 0px;
    background-image: url('sfondo_home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card {
    background-color: #003366;
    color: white;
    width: 20%;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80%; 
}


.card img {
    width: 100px;      
    height: auto;
    margin: 50px auto;
    border-radius: 5px;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    margin-bottom: 10px;
}

.card p {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin-top: 10px;
}

.scopri-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.scopri-btn {
    background-color: #FF6B6B;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.scopri-btn:hover {
    background-color: #e05252;
}


@media screen and (max-width: 1024px) {
  .card {
    width: 30%; 
    height: 35%;
  }

  .card-container {
    height: 80vh; /* per adattare l'altezza al contenuto */
    padding: 60px 20px;
    gap: 20px;
  }

  .card img {
    margin: 30px auto;
  }

  .scopri-btn {
    font-size: 18px;
    padding: 10px 25px;
  }

  .scopri-container {
    margin-top: 20px;
  }
}

@media screen and (max-width: 768px) {
    header {
    padding: 10px 20px;
    flex-direction: column;
    align-items: center;
  }

  .logo img {
    height: 50px;
    margin-bottom: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul li {
    margin-left: 0;
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
  }

  .footer-logo img {
    height: 100px;
    margin-bottom: 20px;
  }

  .footer-contatti {
    margin-top: 0;
    text-align: center;
  }

  .card {
    width: 90%;
    height: auto;
  }

  .card-container {
    height: auto;
    padding: 40px 10px;
    gap: 15px;
  }

  .card h3 {
    font-size: 24px;
  }

  .card p {
    font-size: 14px;
  }

  .card img {
    width: 80px;
    margin: 20px auto;
  }

  .scopri-btn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .scopri-container {
    margin-top: 15px;
  }
}

