/* =========================================================
   Global Transport S.R.L.S. — Sito istituzionale
   Stili principali. Nessuna dipendenza esterna (no CDN/font
   di terze parti) per restare veloce e privacy-friendly.
   ========================================================= */

:root {
  --navy:        #062a52;   /* blu navy del logo */
  --navy-2:      #0b3a6b;
  --accent:      #0e84d6;   /* azzurro del logo (freccia) */
  --accent-dark: #0a6cb0;
  --ink:         #18222e;
  --muted:       #5b6675;
  --bg:          #ffffff;
  --bg-soft:     #f4f6f9;
  --line:        #e3e8ef;
  --ok:          #1f8a4c;
  --err:         #c0392b;
  --radius:      12px;
  --shadow:      0 10px 30px rgba(13, 36, 64, .10);
  --maxw:        1140px;
  --header-h:    72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif, "Apple Color Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block; color: var(--accent-dark); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0; font: inherit; font-weight: 700;
  padding: 14px 26px; border-radius: 8px; transition: transform .08s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #f0f3f7; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); padding: 12px 24px; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(13,36,64,.05);
  display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); font-weight: 800; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; flex: 0 0 auto; }
.brand__name { font-size: 1.12rem; line-height: 1.05; }
.brand__name small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .17em; color: var(--accent); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--navy); font-weight: 600; padding: 8px 12px; border-radius: 6px; font-size: .98rem; }
.nav a:hover { color: var(--accent-dark); background: var(--bg-soft); text-decoration: none; }
.nav .btn { margin-left: 8px; padding: 10px 18px; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; display: flex; align-items: center;
  min-height: calc(86vh - var(--header-h));
  background: linear-gradient(180deg, rgba(7,22,42,.78), rgba(7,22,42,.72)), url("../img/truck.jpg");
  background-size: cover; background-position: center;
}
.hero__inner { max-width: 720px; padding: 60px 0; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.18rem; color: #e7edf5; margin-bottom: 30px; max-width: 600px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy-2); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 22px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.8rem; color: var(--accent); }
.stat span { font-size: .92rem; color: #c9d4e2; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-grid h2 { margin-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { position: relative; padding: 6px 0 6px 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/14px no-repeat;
}

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 14px rgba(13,36,64,.05); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 24px 26px; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Why us ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.feature .ic {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(247,148,29,.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; }
.contact-info h3 { margin-bottom: 18px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { flex: 0 0 auto; color: var(--accent-dark); margin-top: 2px; }
.info-list b { display: block; color: var(--navy); }
.info-list span, .info-list a { color: var(--muted); }

/* Form */
.form { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field label .req { color: var(--err); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fbfcfe; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247,148,29,.18); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.consent input { margin-top: 4px; flex: 0 0 auto; }
/* Honeypot anti-spam: hidden from humans */
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form .btn--primary { width: 100%; }
.form__msg { display: none; padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .95rem; }
.form__msg.ok  { display: block; background: #e6f4ec; color: var(--ok); border: 1px solid #bfe3cd; }
.form__msg.err { display: block; background: #fbeae8; color: var(--err); border: 1px solid #f0c5c0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c2cedd; padding: 56px 0 26px; font-size: .95rem; }
.site-footer a { color: #c2cedd; }
.site-footer a:hover { color: #fff; }
.brand--footer { color: #fff; }
.brand--footer img { height: 40px; width: auto; background: #fff; padding: 5px; border-radius: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #93a3b8; font-size: .85rem;
}
.footer-legal a { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 84px; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin-top: 38px; }
.legal h3 { margin-top: 26px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); }
.back-link { display: inline-block; margin-top: 30px; font-weight: 600; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #fff; border-top: 3px solid var(--accent); box-shadow: 0 -8px 30px rgba(13,36,64,.18);
  transform: translateY(110%); transition: transform .35s ease; padding: 22px 0;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.cookie-banner .ck-text { flex: 1 1 420px; }
.cookie-banner h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--muted); }
.cookie-banner .ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 20px; font-size: .95rem; }
.btn--outline { background: #fff; border: 2px solid var(--navy); color: var(--navy); padding: 9px 18px; }
.btn--outline:hover { background: var(--bg-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards, .features { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px 22px 22px; gap: 2px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--bg-soft); }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .cards, .features, .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 70vh; }
}
