/* ============================================================
   Rentatrailer — Shared stylesheet
   Palette: #1A2B3C navy · #E5E7EB grigio · #FFFFFF · #FF8C00 arancio CTA
   Type: Inter (titoli) · Roboto (corpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --navy: #1A2B3C;
  --navy-700: #243a52;
  --navy-50: #f4f6f8;
  --gray-100: #f5f6f8;
  --gray-200: #E5E7EB;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --white: #FFFFFF;
  --orange: #FF8C00;
  --orange-dark: #e67e00;
  --orange-50: #fff4e6;
  --shadow-sm: 0 1px 2px rgba(26, 43, 60, 0.06), 0 1px 3px rgba(26, 43, 60, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 43, 60, 0.08), 0 2px 4px rgba(26, 43, 60, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 43, 60, 0.12), 0 4px 8px rgba(26, 43, 60, 0.04);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(40px, 5.5vw, 68px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: var(--navy); text-decoration: none; }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.25);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy-50);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-700);
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 18px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo svg { flex-shrink: 0; }
.logo .logo-icon { height: 38px; width: auto; display: block; }
.logo .logo-word { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 26px; color: var(--navy); letter-spacing: -0.025em; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo .logo-icon { height: 38px; width: auto; display: block; }
.footer-logo .logo-word { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.025em; }
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
}
.nav a {
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
  margin-top: 96px;
}
.site-footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  padding: 6px 0;
  font-size: 15px;
}
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-logo {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Section utilities ===== */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 18px; color: var(--gray-500); }

/* ===== Forms ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

/* ===== Hamburger button ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile nav dropdown ===== */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 16px 20px 24px;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile nav {
  display: flex;
  flex-direction: column;
}
.nav-mobile nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--gray-700);
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: color 0.15s;
}
.nav-mobile nav a:last-child { border-bottom: none; }
.nav-mobile nav a.active { color: var(--navy); font-weight: 600; }
.nav-mobile nav a:hover { color: var(--navy); }
.nav-mobile-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #25d366;
}

/* ===== Mobile ===== */
@media (max-width: 880px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav { display: none; }
  .header-phone { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
