/* ============================
   STILE PRINCIPALE — ASSOSECURPORT.IT
   Versione uniforme 2025
   ============================ */

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

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #f5f7fa;
}

/* ======= HEADER ======= */
header {
  background: linear-gradient(to bottom, #003366, #00244d);
  color: #fff;
  text-align: center;
  padding: 20px 0 10px 0;
  border-bottom: 4px solid #004c99;
}

.logo {
  display: block;
  margin: 0 auto 10px auto;
  height: auto;
  max-height: 130px;
  width: auto;
}

/* ======= NAVIGAZIONE ORIZZONTALE ======= */
header nav.main-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
  margin-bottom: 8px;
}

header nav.main-menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Effetto linea animata */
header nav.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

header nav.main-menu a:hover::after,
header nav.main-menu a.active::after {
  width: 100%;
}

header nav.main-menu a:hover,
header nav.main-menu a.active {
  color: #ffffff;
}

/* ======= STRUTTURA GENERALE ======= */
main {
  display: block;
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px 20px 60px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-height: 70vh;
}

/* SEZIONI */
section {
  margin-bottom: 50px;
}

h1, h2, h3 {
  color: #002f5f;
  font-weight: 600;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

ul {
  margin-left: 20px;
}

a {
  color: #0055aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* PULSANTI */
a.btn {
  display: inline-block;
  background: #005099;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s;
}

a.btn:hover {
  background: #0a3f7b;
}

/* ======= FOOTER ======= */
footer {
  background: #002f5f;
  color: #fff;
  margin-top: 40px;
  padding: 20px 0;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer .container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .logo {
    max-height: 90px;
  }

  header nav.main-menu {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
  }

  header nav.main-menu a {
    padding: 6px 10px;
    font-size: 15px;
  }

  main {
    width: 95%;
    padding: 25px 15px 50px;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}
