/* =========================================================
   OMAR VEICOLI INDUSTRIALI — Foglio di stile principale
   Palette: navy #0b2247 · rosso #d32f2f
   Font: Barlow (testo) · Barlow Condensed (titoli)
   ========================================================= */

:root {
  --navy: #0b2247;
  --navy-90: rgba(11, 34, 71, 0.9);
  --navy-70: rgba(11, 34, 71, 0.7);
  --navy-60: rgba(11, 34, 71, 0.6);
  --red: #d32f2f;
  --red-dark: #b02323;
  --paper: #ffffff;
  --paper-2: #f7f7f5;
  --line: #e7e7e4;
  --line-2: #ececea;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.72);
  --white-60: rgba(255, 255, 255, 0.6);
  --header-h: 64px;
  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Barlow', system-ui, sans-serif;
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Tipografia di utilità ---------- */
.display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--red);
}
.text-red { color: var(--red); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 0 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 3px; }
.logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.logo-omar { color: var(--red); }
.logo-rest { color: #fff; }

.nav-menu { display: flex; align-items: stretch; }
.nav-item { display: flex; align-items: stretch; position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  color: var(--white-80);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,0.1);
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: #fff; background: rgba(255,255,255,0.1); }
.nav-link .chev { font-size: 13px; transition: transform .2s; }
.nav-item:hover .chev { transform: rotate(180deg); }

.nav-cta {
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color .2s;
}
.nav-cta:hover { background: var(--red-dark); }

/* ---------- Dropdown ---------- */
.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  background: #fff;
  border-top: 2px solid var(--red);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  padding: 8px 0;
}
.nav-item:hover > .dropdown,
.nav-item.open > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  transition: background-color .12s;
}
.dropdown a:hover { background: var(--paper-2); }
.dropdown a i { font-size: 18px; color: var(--red); width: 20px; text-align: center; }
.dd-sub { font-size: 11.5px; color: var(--navy-60); display: block; }
.dd-title-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px;
}
.dd-title-row .t {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  text-transform: uppercase; color: var(--navy); font-size: 16px;
}
.dd-title-row .more { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Mega-menu (Cosa facciamo) */
.dropdown.mega { min-width: 520px; padding: 0 0 8px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; padding: 6px 10px; }
.mega-grid a { padding: 9px 10px; font-size: 12.5px; border-bottom: 1px solid #f3f3f1; }

.dd-name { display: flex; flex-direction: column; }
.dd-name strong {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  text-transform: uppercase; font-size: 16px; line-height: 1; color: var(--navy);
}

/* ---------- Burger / mobile ---------- */
.nav-toggle {
  display: none;
  width: 56px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: var(--header-h);
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,34,71,0.96) 0%, rgba(11,34,71,0.72) 45%, rgba(11,34,71,0.25) 100%);
}
.hero-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); z-index: 2; }
.hero-content { position: relative; z-index: 3; width: 100%; padding: 0 0 84px; }
.hero h1 { font-size: clamp(44px, 7vw, 78px); color: #fff; margin: 22px 0; }
.hero p { color: var(--white-70); font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats bar */
.stats {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: rgba(211,47,47,0.94);
}
.stats-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 18px 16px; text-align: center; border-left: 1px solid rgba(0,0,0,0.16); }
.stat:first-child { border-left: none; }
.stat .num { font-family: 'Barlow Condensed', sans-serif; color: #fff; font-size: 30px; font-weight: 900; line-height: 1; }
.stat .lbl { color: rgba(255,255,255,0.85); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* =========================================================
   SEZIONI GENERICHE
   ========================================================= */
section { scroll-margin-top: var(--header-h); }
.section { padding: 80px 0; }
.section-head { margin-bottom: 14px; }
.section h2.display { font-size: clamp(34px, 5vw, 44px); color: var(--navy); margin-top: 14px; }

.bg-light { background: var(--paper-2); }
.bg-navy { background: var(--navy); }
.bg-navy h2.display, .bg-navy .display { color: #fff; }

/* About strip */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid p { color: var(--navy-70); font-size: 17px; margin-bottom: 16px; }
.about-grid p:last-child { margin-bottom: 0; }

/* Feature boxes (chi siamo) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.feature { border: 1px solid var(--line-2); border-left: 3px solid var(--red); padding: 18px; }
.feature i { font-size: 24px; color: var(--navy); }
.feature .fnum { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 24px; font-weight: 900; line-height: 1; margin-top: 8px; }
.feature .flbl { color: var(--navy-60); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* Banner CTA */
.cta-band { background: var(--navy); border-radius: 6px; padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; }
.cta-band .display { color: #fff; font-size: 24px; }
.cta-band p { color: var(--white-60); font-size: 14px; margin-top: 6px; max-width: 420px; }

/* =========================================================
   PAGINA COSA FACCIAMO
   ========================================================= */
.overview { background: var(--navy); padding: 90px 0 70px; }
.overview .display { color: #fff; font-size: clamp(38px, 6vw, 56px); margin: 16px 0 22px; }
.overview p { color: var(--white-70); font-size: 16px; max-width: 760px; margin-bottom: 14px; }

.pull {
  border-left: 4px solid var(--red);
  background: var(--paper-2);
  padding: 16px 22px;
  margin: 28px 0;
}
.pull span { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 22px; font-weight: 800; text-transform: uppercase; }

.activity {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-2);
}
.activity:last-child { border-bottom: none; }
.activity.reverse { grid-template-columns: 1.15fr 1fr; }
.activity.reverse .activity-media { order: 2; }
.activity-media { aspect-ratio: 4 / 3; overflow: hidden; background: #f1f1ee; position: relative; }
.activity-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.activity-media.placeholder {
  border: 1px dashed #c9c9c4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.activity-media i { font-size: 32px; color: #b0b0a9; }
.activity-media .ph { color: #a3a39c; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Carosello */
.carousel-track { display: flex; height: 100%; transition: transform .35s ease; }
.carousel-track img { min-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: none; cursor: pointer; z-index: 2;
  background: rgba(11,34,71,0.78); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow', sans-serif; font-size: 24px; line-height: 1;
  transition: background-color .15s;
}
.carousel-btn:hover { background: var(--red); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-count {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(11,34,71,0.78); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 2px;
}
.carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.65); box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.carousel-dots button.active { background: var(--red); }
.activity .anum { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.activity h3 { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 28px; font-weight: 900; text-transform: uppercase; line-height: 1; margin: 8px 0 10px; }
.activity p { color: var(--navy-60); font-size: 15px; }

/* =========================================================
   SERVIZI GRID (home estratto) + PERCHÉ SCEGLIERCI + INFO UTILI
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* Perché sceglierci (su navy) */
.reason { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 20px; }
.reason i { font-size: 24px; color: var(--red); }
.reason h3 { font-family: 'Barlow Condensed', sans-serif; color: #fff; font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 10px 0 6px; }
.reason p { color: var(--white-60); font-size: 13px; }

/* Info utili */
.info-card { border: 1px solid var(--line-2); padding: 18px; display: flex; gap: 14px; }
.info-card > i { font-size: 24px; color: var(--red); flex-shrink: 0; }
.info-card h3 { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-bottom: 5px; }
.info-card p { color: var(--navy-60); font-size: 13px; }
.disclaimer { margin-top: 18px; background: var(--paper-2); border-left: 4px solid var(--red); padding: 14px 18px; }
.disclaimer p { color: var(--navy-60); font-size: 12px; }
.disclaimer i { color: var(--red); margin-right: 5px; }

/* =========================================================
   CONTATTI
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); }
.contact-col { padding: 26px 24px; border-right: 1px solid var(--line); }
.contact-col:last-child { border-right: none; }
.contact-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.contact-icon.red { background: var(--red); }
.contact-icon.navy { background: var(--navy); }
.contact-icon i { color: #fff; font-size: 18px; }
.contact-col .ce { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.contact-col h3 { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 23px; font-weight: 900; text-transform: uppercase; line-height: 1; margin: 4px 0 14px; }
.hours-block { margin-bottom: 14px; }
.hours-block .ht { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 15px; font-weight: 800; text-transform: uppercase; }
.hours-block .hd { color: var(--navy-60); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 3px 0; }
.hours-block .hh { color: var(--navy-70); font-size: 13px; }
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--navy); }
.contact-line i { color: var(--red); font-size: 16px; }
.contact-map { aspect-ratio: 4/3; border: 1px solid var(--line); overflow: hidden; background: #eef0f2; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* Form */
.form-wrap { background: var(--paper-2); border: 1px solid var(--line); padding: 30px 28px; margin-top: 24px; }
.form-wrap h3 { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 28px; font-weight: 900; text-transform: uppercase; line-height: 1; margin: 4px 0 18px; }
.contact-cta-lead { color: var(--navy-70); font-size: 15px; line-height: 1.6; max-width: 620px; margin: 0 0 22px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.contact-email-line { color: var(--navy-60); font-size: 14px; margin: 0; }
.contact-email-line a { color: var(--red); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .15s; word-break: break-all; }
.contact-email-line a:hover { border-color: var(--red); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  margin-left: 8px; padding: 4px 10px;
  font-family: 'Barlow', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); background: #fff; border: 1px solid var(--line);
  border-radius: 2px; cursor: pointer; transition: border-color .15s, color .15s;
}
.copy-btn:hover { border-color: var(--navy); }
.copy-btn.copied { color: #1d7a46; border-color: #1d7a46; }
.copy-btn i { font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; color: var(--navy-60); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d8d8d3;
  padding: 10px 12px;
  border-radius: 2px;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.privacy-note { color: rgba(11,34,71,0.5); font-size: 11px; line-height: 1.5; margin-top: 16px; }
.form-feedback { margin-top: 14px; font-size: 13px; font-weight: 600; display: none; }
.form-feedback.ok { color: #1d7a46; display: block; }
.form-feedback.err { color: var(--red); display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo span { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; text-transform: uppercase; }
.footer-logo .o { color: var(--red); }
.footer-logo .r { color: #fff; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: rgba(255,255,255,0.45); font-size: 12px; }
.footer-meta a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px 20px; justify-content: space-between; }
  .nav-item { flex-direction: column; }
  .nav-cta { padding: 16px 20px; justify-content: center; }
  .dropdown, .dropdown.mega {
    position: static; min-width: 0; box-shadow: none; border-top: none;
    opacity: 1; visibility: visible; transform: none;
    background: rgba(0,0,0,0.18);
    display: none; padding: 4px 0;
  }
  .nav-item.open > .dropdown { display: block; }
  .nav-item:hover > .dropdown { opacity: 1; } /* hover disabilitato di fatto su touch */
  .mega-grid { grid-template-columns: 1fr; }
  .dropdown a { color: #fff; }
  .dropdown a:hover { background: rgba(255,255,255,0.06); }
  .dd-name strong, .dd-title-row .t { color: #fff; }
  .dd-sub { color: rgba(255,255,255,0.55); }
  .dropdown a i { color: var(--red); }
  .nav-item:hover .chev { transform: none; }
  .nav-item.open .chev { transform: rotate(180deg); }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .activity, .activity.reverse { grid-template-columns: 1fr; gap: 18px; }
  .activity.reverse .activity-media { order: 0; }
  .stats .lbl { font-size: 9px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-col { border-right: none; border-bottom: 1px solid var(--line); }
  .contact-col:last-child { border-bottom: none; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
