/* SAL Servizi Automobilistici Lecchesi - stylesheet
   SAL blue #1d9ad6, navy #182042, steel #246689, light #7fbcdb, gold #bfa640 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #24292f;
  background: #eef3f7;
}
img { max-width: 100%; height: auto; }
a { color: #1d6fa8; }
a:hover { color: #182042; }

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dde6ec;
}
.brandbar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  color: #1d9ad6;
  text-decoration: none;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}
.wordmark:hover { color: #1d9ad6; }
.brandtext { flex: 1 1 auto; min-width: 220px; }
.brandtext .full {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b5651d;
}
.brandtext .tag {
  display: block;
  font-size: 12px;
  color: #6b7a87;
}
.brandsab { flex: 0 0 auto; }
.brandsab img { height: 34px; width: auto; }

/* ---------- Navigation ---------- */
.mainnav {
  background: #182042;
}
.mainnav ul {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.mainnav li { position: relative; }
.mainnav a {
  display: block;
  padding: 13px 16px;
  color: #dfe8f2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}
.mainnav > ul > li:hover > a,
.mainnav > ul > li:focus-within > a,
.mainnav a:hover { background: #246689; color: #ffffff; }
.mainnav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid #dde6ec;
  border-top: 3px solid #1d9ad6;
  box-shadow: 0 10px 24px rgba(24, 32, 66, .18);
  padding: 6px 0;
  z-index: 50;
}
.mainnav li:hover .sub,
.mainnav li:focus-within .sub { display: block; }
.mainnav .sub a {
  color: #24292f;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  padding: 9px 18px;
}
.mainnav .sub a:hover { background: #eef6fb; color: #182042; }

/* ---------- Page title band ---------- */
.pageband {
  background: linear-gradient(120deg, #182042 0%, #246689 70%, #1d9ad6 100%);
  color: #ffffff;
}
.pageband .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 20px;
}
.pageband .section {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9fd1ec;
  margin: 0;
}

/* ---------- Content ---------- */
.page {
  max-width: 1080px;
  margin: 26px auto;
  padding: 0 20px;
}
.card {
  background: #ffffff;
  border: 1px solid #dde6ec;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(24, 32, 66, .06);
  padding: 28px 32px;
  overflow-x: auto;
}

/* Content area */
.legacy table {
  width: auto !important;
  max-width: 100%;
  border-collapse: collapse;
}
.legacy td, .legacy th {
  background-image: none !important;
  height: auto !important;
  padding: 2px 8px;
}
.legacy td[width="18"] { display: none; }
.legacy img[src*="barraverticale"],
.legacy img[src*="pallino"],
.legacy img[src*="sfondo-linea"] { display: none; }
.legacy .titolo, .legacy .titolo_left {
  font-size: 19px;
  color: #182042;
  text-align: left;
  font-weight: 700;
}
.legacy .testo, .legacy .testoazienda {
  font-size: 15px;
  line-height: 1.7;
  color: #24292f;
}
.legacy .testo_basso { font-size: 12px; }
.legacy .form { font-size: 14px; color: #24292f; }
.legacy p { margin: 0 0 1em; }
.legacy input[type="text"], .legacy textarea, .legacy select {
  border: 1px solid #b8c7d2;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  font-size: 14px;
  background: #fbfdfe;
  max-width: 100%;
}
.legacy input[type="text"]:focus, .legacy textarea:focus, .legacy select:focus {
  outline: 2px solid #7fbcdb;
  border-color: #1d9ad6;
}
.legacy input[type="submit"], .legacy input[type="button"], .legacy input[type="reset"] {
  background: #1d9ad6;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 9px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.legacy input[type="submit"]:hover, .legacy input[type="button"]:hover { background: #246689; }
.legacy font[size="1"], .legacy font[size="2"] { font-size: 13px; }

/* ---------- Quick search band ---------- */
.searchband {
  background: #d8e9f4;
  border-top: 1px solid #c2d9e9;
  border-bottom: 1px solid #c2d9e9;
}
.searchband .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.searchband .label {
  font-weight: 800;
  letter-spacing: 1px;
  color: #182042;
  font-size: 14px;
  text-transform: uppercase;
}
.searchband form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.searchband label { font-size: 14px; color: #24292f; }
.searchband input[type="text"] {
  border: 1px solid #a9c4d6;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  width: 170px;
  background: #ffffff;
}
.searchband input[type="submit"] {
  background: #182042;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 9px 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.searchband input[type="submit"]:hover { background: #246689; }

/* ---------- Footer ---------- */
.site-footer {
  background: #182042;
  color: #b9c5d4;
  margin-top: 34px;
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 20px;
}
.footlinks {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.footlinks a {
  color: #dfe8f2;
  font-size: 13px;
  text-decoration: none;
}
.footlinks a:hover { color: #7fbcdb; text-decoration: underline; }
.footnote {
  font-size: 12px;
  color: #8d9bb0;
}
.footnote a { color: #8d9bb0; }

/* ---------- Homepage ---------- */
.hero {
  position: relative;
  background: #182042 url(../immagini/foto/bus-italia.jpg) center 72% / cover no-repeat;
  color: #ffffff;
}
.hero .veil {
  background: linear-gradient(100deg, rgba(24, 32, 66, .82) 0%, rgba(24, 32, 66, .55) 55%, rgba(24, 32, 66, .25) 100%);
}
.hero .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 84px 20px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 1px;
}
.hero p {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  color: #dbe6f2;
}
.hero .welcome {
  margin-top: 26px;
  font-size: 13px;
  color: #9fd1ec;
}
.cards {
  max-width: 1080px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.promo {
  background: #ffffff;
  border: 1px solid #dde6ec;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(24, 32, 66, .06);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.promo h2 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b5651d;
}
.promo p { margin: 0 0 14px; font-size: 14px; color: #40505d; flex: 1 1 auto; }
.promo .btn {
  align-self: flex-start;
  background: #1d9ad6;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.promo .btn:hover { background: #246689; color: #ffffff; }
.promo.photo { padding: 0; overflow: hidden; }
.promo.photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 190px; }
/* ---------- Figures ---------- */
.pagefig {
  margin: 26px 0 6px;
}
.pagefig img {
  width: 100%;
  max-width: 720px;
  border-radius: 10px;
  border: 1px solid #dde6ec;
  display: block;
}
.pagefig figcaption {
  font-size: 12px;
  color: #6b7a87;
  margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .wordmark { font-size: 34px; }
  .brandtext { flex-basis: 100%; }
  .hero .inner { padding: 56px 20px; }
  .hero h1 { font-size: 28px; }
  .card { padding: 20px 14px; }
  .legacy table, .legacy tbody, .legacy tr, .legacy td, .legacy th { display: block; width: 100% !important; }
  .legacy td[width="18"] { display: none; }
  .legacy td, .legacy th { padding: 2px 0; overflow-wrap: anywhere; }
  .legacy .titolo, .legacy .titolo_left { margin-top: 10px; }
  .legacy div[align="right"] { text-align: left; }
  .searchband input[type="text"] { width: 100%; }
}
