/* ============================================================
   PaccoVeloce — Feuille de style principale
   Envoi de colis en Italie
   ============================================================ */

:root {
  --primary: #0f2a3f;          /* bleu nuit */
  --primary-light: #163a56;
  --accent: #ff6b1a;           /* orange */
  --accent-dark: #e85d0f;
  --green: #009246;            /* vert drapeau italien */
  --red: #ce2b37;              /* rouge drapeau italien */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #22303c;
  --text-soft: #5c6b77;
  --border: #e3e8ee;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(15, 42, 63, 0.14);
  --shadow-sm: 0 4px 12px rgba(15, 42, 63, 0.10);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ---------- Utilitaires ---------- */

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}
.section--grey { background: #eef1f5; }
.section--dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}
.section--dark .section-title { color: #fff; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 0 0 34px;
  max-width: 720px;
}
.section--dark .section-sub { color: rgba(255,255,255,0.85); }

.center { text-align: center; }

.badge {
  display: inline-block;
  background: rgba(255, 107, 26, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Bandeau drapeau italien */
.flag-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--green) 0 33%, #fff 33% 66%, var(--red) 66% 100%);
}

/* ---------- Barre de navigation ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  max-width: 1150px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}
.brand svg { flex: 0 0 auto; }
.brand span.sub { font-size: 0.72rem; color: rgba(255,255,255,0.75); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-links a.active { background: var(--accent); color: #fff; }

.nav-cta a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 9px;
  text-decoration: none;
}
.nav-cta a:hover { background: var(--accent-dark); }

/* Menu mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--ghost:hover { background: rgba(15,42,63,0.08); }

/* Variante sur fond sombre */
.hero .btn--ghost,
.section--dark .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.85);
}
.hero .btn--ghost:hover,
.section--dark .btn--ghost:hover { background: rgba(255,255,255,0.12); }

.btn--light {
  background: #fff;
  color: var(--primary);
}
.btn--light:hover { background: #f0f2f5; }

/* ---------- Bandeau héro ---------- */

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,107,26,0.25) 0%, transparent 45%),
    linear-gradient(135deg, #0d2436 0%, #12304c 60%, #163a56 100%);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 18px;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
  background: linear-gradient(transparent 55%, rgba(255,107,26,0.28) 55% 100%);
}

.hero p {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 26px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 20px;
  margin-top: 26px;
  align-items: center;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* Carte "suivi rapide" dans le hero */
.hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.hero-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text);
}
.hero-card p { margin: 0 0 16px; font-size: 0.88rem; color: var(--text-soft); }
.hero-card .field { margin: 0 0 12px; }
.hero-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 1rem;
  font-family: inherit;
}
.hero-card input:focus { outline: none; border-color: var(--accent); }
.hero-card .btn { width: 100%; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ---------- Étapes ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.step-num {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.step-card p { margin: 0; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Cartes services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: rgba(255,107,26,0.12);
  border-radius: 14px;
  font-size: 1.6rem;
}
.service-card h3 { margin: 0; font-size: 1.12rem; }
.service-card p { margin: 0; font-size: 0.92rem; color: var(--text-soft); flex: 1; }
.service-card .price {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}
.service-card .price small { color: var(--text-soft); }
.service-card .delay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}
.service-card .btn { width: 100%; text-align: center; }

/* ---------- Témoignages ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial blockquote {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text);
  quotes: "\201C" "\201D";
}
.testimonial blockquote::before { content: open-quote; color: var(--accent); font-size: 1.4rem; }
.testimonial blockquote::after { content: close-quote; color: var(--accent); font-size: 1.4rem; }
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.testimonial .avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.85rem;
}

/* ---------- Bande CTA ---------- */

.cta-band {
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}
.cta-band p { margin: 0 0 26px; color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ---------- Formulaire ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.form-group { margin: 0 0 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
  font-size: 0.92rem;
}
.form-group .hint { font-size: 0.8rem; color: var(--text-soft); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.18);
}
input.invalid, select.invalid, textarea.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(206,43,55,0.15);
}
.form-error {
  color: var(--red);
  font-size: 0.8rem;
  margin: 4px 0 0;
  display: none;
}
.form-group.invalid .form-error { display: block; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Alertes ---------- */

.alert {
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 22px;
  font-size: 0.95rem;
  display: none;
}
.alert--success {
  background: #e8f6ec;
  border: 1px solid #b7ddb9;
  color: #1b6b32;
}
.alert--error {
  background: #fdeeee;
  border: 1px solid #f2bcbc;
  color: var(--red);
}
.alert--info {
  background: #eaf2fb;
  border: 1px solid #c4d7ee;
  color: #1e4a8a;
}
.alert.show { display: block; }
.alert strong { font-weight: 800; }
.alert .ref {
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  background: rgba(27,107,50,0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

/* ---------- Confirmation de réservation ---------- */

.booking-confirm {
  border: 2px solid var(--green);
  background: #f2fbf5;
  border-radius: var(--radius);
  padding: 26px;
  margin: 0 0 22px;
}
.booking-confirm .bc-head {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1b6b32;
  margin-bottom: 8px;
}
.booking-confirm p { margin: 0 0 16px; color: var(--text); font-size: 0.95rem; }

.bc-number {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1.5px dashed var(--green);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.bc-code {
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
}
.copy-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--primary-light); }

.bc-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 16px;
  margin-bottom: 16px;
}
.bc-ligne {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.bc-ligne:last-child { border-bottom: none; }
.bc-ligne span { color: var(--text-soft); flex: 0 0 auto; }
.bc-ligne strong { text-align: right; }

.bc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bc-note, .bc-warn { font-size: 0.82rem; color: var(--text-soft); margin: 12px 0 0 !important; }
.bc-warn { color: #9a5a00; }

/* ---------- Tableau tarifs ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  padding: 13px 16px;
  font-weight: 700;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: #f3f5f8; }
.price-table .num { text-align: right; font-weight: 600; }

/* ---------- Calculateur de devis ---------- */

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 860px) { .quote-card { grid-template-columns: 1fr; } }

.quote-result { padding: 22px; }
.quote-result h3 { margin: 0 0 14px; font-size: 1.05rem; color: var(--text); }

.quote-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.quote-lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-bottom: 1px dashed var(--border);
}
.quote-lines li:last-child { border-bottom: none; }

.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,107,26,0.1);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 14px;
}
.quote-total span:first-child { font-weight: 700; font-size: 1.02rem; color: var(--text); }
.quote-total .amount {
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--accent-dark);
}
.quote-total small { display: block; font-size: 0.78rem; color: var(--text-soft); }

/* ---------- Suivi de colis ---------- */

.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 820px;
  margin: 0 auto;
}

/* Cartes expéditeur / destinataire */
.parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 6px;
}
.party-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: #f8fafc;
}
.party-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.party-icon { font-size: 1.1rem; }
.party-role {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-soft);
}
.party-name { font-weight: 800; color: var(--text); font-size: 1rem; }
.party-addr { font-size: 0.92rem; color: var(--text); margin-top: 2px; }
.party-tel { font-size: 0.85rem; color: var(--text-soft); margin-top: 4px; }

/* Carte de suivi du colis */
.track-map {
  position: relative;
  z-index: 0;
  height: 380px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 18px;
}
.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  background: #eef1f5;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 20px;
  text-align: center;
}
.map-note { font-size: 0.8rem; color: var(--text-soft); margin: 8px 2px 0; }
.pv-marker {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.pv-marker--pacco { width: 36px; height: 36px; font-size: 20px; border: 2px solid var(--accent); }
.pv-marker--dest { width: 30px; height: 30px; font-size: 16px; border: 2px solid var(--green); }

.timeline { margin: 26px 0 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 14px 0;
  align-items: start;
}
.timeline-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem;
}
.timeline-dot.done { background: var(--green); color: #fff; }
.timeline-dot.current { background: var(--accent); color: #fff; }
.timeline-dot.pending { background: #d7dde4; color: #fff; }
.timeline-date { font-size: 0.82rem; color: var(--text-soft); display: block; }
.timeline-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.timeline-desc { font-size: 0.9rem; color: var(--text-soft); }
.timeline-item.pending .timeline-title { color: var(--text-soft); }

.package-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f3f5f8;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}
.package-meta div { display: flex; flex-direction: column; gap: 2px; }
.package-meta small { color: var(--text-soft); font-size: 0.78rem; }
.package-meta strong { font-size: 0.95rem; color: var(--text); }

.status-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.status-pill--ok { background: #e0f2e3; color: #1b6b32; }
.status-pill--warn { background: #fdeeda; color: #9a5a00; }

/* ---------- Pied de page ---------- */

.footer {
  background: var(--primary);
  color: #fff;
  padding: 46px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding-bottom: 26px;
}
.footer h4 { margin: 0 0 10px; font-size: 0.95rem; color: #fff; }
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.footer .brand { margin-bottom: 10px; }
.footer .about { font-size: 0.88rem; color: rgba(255,255,255,0.7); max-width: 260px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
}
.footer-bottom .flag { color: var(--green); font-weight: 700; }

/* ---------- Page intérieure : bandeau ---------- */

.page-hero {
  background: linear-gradient(135deg, #10293c 0%, #163a56 100%);
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: 2rem; font-weight: 800; }
.page-hero p { margin: 0; color: rgba(255,255,255,0.82); font-size: 1.02rem; }

/* ---------- Réactif ---------- */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }

  /* --- Menu burger : telephone + tablette --- */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 40px;
    padding: 0 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.4);
    flex: 0 0 auto;
  }
  .nav-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
  .nav-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Panneau deroulant sous la barre de navigation */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--primary);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 10px;
  }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .steps-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .parties { grid-template-columns: 1fr; }
  .track-map { height: 280px; }
}
@media (max-width: 520px) {
  /* Sur tres petit ecran le CTA passe dans le menu (lien Prenota il ritiro) */
  .nav-cta { display: none; }
}/* ============================================================
   Fonctionnalités ajoutées : devis en direct, étiquette
   imprimable, « Le mie spedizioni », honeypot anti-spam
   ============================================================ */

/* ---------- Devis en direct (formulaire de réservation) ---------- */

.estimate-box {
  background: linear-gradient(135deg, #fff7f0 0%, #fffdf9 100%);
  border: 1px solid #ffd9bd;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 4px 0 18px;
}
.estimate-head {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 3px 0;
  font-size: 0.92rem;
  color: var(--text);
}
.estimate-row strong {
  font-size: 1.1rem;
  color: var(--primary);
  white-space: nowrap;
}
.estimate-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ---------- Actions rapides du tracking réel ---------- */

.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.track-actions .btn { padding: 10px 16px; font-size: 0.92rem; }

/* ---------- Honeypot anti-spam (invisible, ignoré des lecteurs d'écran) ---------- */

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Modal étiquette d'expédition ---------- */

.et-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 22, 33, 0.62);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}
.et-finestra {
  width: 100%;
  max-width: 660px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 16px 20px 20px;
}
.et-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: var(--primary);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.et-x {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-soft);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.et-x:hover { background: #f0f2f5; color: var(--text); }
.et-azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.et-consiglio {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 10px 0 0;
}

/* ---------- Étiquette (feuille imprimable) ---------- */

.etichetta {
  background: #fff;
  border: 1px solid #c9d2db;
  border-radius: 8px;
  padding: 16px 18px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #1b242c;
}
.et-testata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.et-marchio {
  display: flex;
  align-items: center;
  gap: 10px;
}
.et-marchio strong { display: block; font-size: 1.05rem; color: var(--primary); }
.et-marchio small { font-size: 0.72rem; color: var(--text-soft); }
.et-tipo {
  text-align: right;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--text-soft);
}
.et-tipo strong { color: var(--accent-dark); letter-spacing: 0.2px; }
.et-corpo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.et-parte {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafbfc;
  font-size: 0.85rem;
  line-height: 1.45;
}
.et-parte--destinatario { background: #fff7f0; border-color: #ffd9bd; }
.et-parte h4 {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.et-parte--mittente h4 { color: var(--text-soft); }
.et-nome { font-size: 1.02rem; font-weight: 800; color: var(--primary); }
.et-tel { margin-top: 4px; color: var(--text-soft); }
.et-barcode {
  margin: 14px 0 8px;
  text-align: center;
  background: #fff;
  padding: 8px 10px;
  border: 1px dashed #c9d2db;
  border-radius: 8px;
}
.et-barcode canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 110px;
}
.et-numero {
  margin-top: 6px;
  font-family: "Courier New", monospace;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #111;
}
.et-piedi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.et-piedi strong { color: var(--text); }

/* ---------- Page « Le mie spedizioni » ---------- */

.sped-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 26px;
}
.sped-list {
  display: grid;
  gap: 16px;
}
.sped-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.sped-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sped-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.sped-numero {
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
}
.sped-data { font-size: 0.8rem; color: var(--text-soft); }
.sped-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  background: #f6f8fa;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.sped-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sped-stop-ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 9px;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(15, 42, 63, 0.12);
}
.sped-stop div { display: flex; flex-direction: column; min-width: 0; }
.sped-stop small { font-size: 0.7rem; color: var(--text-soft); }
.sped-stop strong {
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sped-stop span { font-size: 0.8rem; color: var(--text-soft); }
.sped-freccia {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  padding: 0 2px;
}
.sped-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.sped-meta strong { color: var(--text); }
.sped-azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sped-azioni .btn { padding: 9px 16px; font-size: 0.88rem; }
.sped-empty {
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 48px 20px;
}
.sped-empty-icon { font-size: 2.6rem; margin-bottom: 8px; }
.sped-empty h3 { margin: 0 0 6px; color: var(--text); }
.sped-empty p { color: var(--text-soft); max-width: 440px; margin: 0 auto 18px; }

/* ---------- Impression : uniquement l'étiquette ---------- */

@media print {
  @page { margin: 12mm; }
  body > *:not(#pv-print-area) { display: none !important; }
  #pv-print-area { display: block !important; }
  #pv-print-area .etichetta {
    border: 1px solid #999;
    border-radius: 0;
    box-shadow: none;
  }
  #pv-print-area .et-barcode {
    border: none;
    padding: 4px 0;
  }
}

/* ---------- Navigation : 6 liens sur écrans moyens ---------- */

@media (max-width: 1080px) {
  .nav-inner { gap: 12px; padding: 12px 14px; }
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 0.85rem; padding: 8px 9px; }
  .brand { font-size: 1.05rem; }
  .nav-cta a { padding: 8px 12px; font-size: 0.9rem; }
}

/* ---------- Adaptation mobile des nouvelles sections ---------- */

@media (max-width: 640px) {
  .et-corpo { grid-template-columns: 1fr; }
  .sped-route { grid-template-columns: 1fr; }
  .sped-freccia { transform: rotate(90deg); justify-self: center; }
  .sped-azioni { flex-direction: column; }
  .sped-azioni .btn { width: 100%; text-align: center; }
}

/* ============================================================
   Illustrations : hero camion, galerie, Chi siamo, référent
   ============================================================ */

/* Camion dans le hero */
.hero-truck {
  display: block;
  width: min(430px, 100%);
  height: auto;
  margin-top: 34px;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.28));
}

/* Galerie "Dentro PaccoVeloce" */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #eef1f5;
}

.gallery-card figcaption {
  padding: 16px 18px 18px;
}

.gallery-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.gallery-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Section Chi siamo */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 52px;
  align-items: center;
}

.about-wrap {
  position: relative;
}

.about-wrap::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -20px;
  right: 20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.16), rgba(0, 146, 70, 0.14));
  border-radius: var(--radius);
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-quote {
  margin: 22px 0 0;
  padding: 14px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  box-shadow: var(--shadow-sm);
}

.about-quote footer {
  margin-top: 6px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.about-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.stat-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

.stat-chip strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.stat-chip span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Avatars illustrés des témoignages */
.testimonial img.avatar {
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

/* Carte référent sur la page contact */
.support-card {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}

.support-card img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  flex: none;
  border: 3px solid var(--accent);
}

.support-card h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.support-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-wrap { max-width: 320px; margin: 0 auto; }
  .hero-truck { margin-top: 22px; }
}
