/* ============================================================
   VISPRO Service Italia - Stylesheet
   Palette: bianco / light blue / light gray
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette principale */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;          /* light gray molto chiaro per sezioni alterne */
  --light-gray: #e5ebf1;      /* light gray per separatori / hover */
  --light-gray-2: #cdd6e0;
  --light-blue: #6cb8e4;      /* light blue principale */
  --light-blue-soft: #b8dff1; /* light blue molto chiaro */
  --light-blue-dark: #3d9cd1; /* light blue scuro per hover */
  --light-blue-bg: #e6f3fb;   /* sfondo accenti */
  --text: #1f2a37;            /* testo principale (quasi nero, leggibile su bianco) */
  --text-muted: #5b6877;
  --text-soft: #8995a4;

  /* Tipografia */
  --font-title: 'Anton', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Misure */
  --nav-height: 72px;
  --container: 1140px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 2px 6px rgba(31, 42, 55, 0.06);
  --shadow-md: 0 6px 18px rgba(31, 42, 55, 0.08);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
  transition: box-shadow 0.3s, background 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--light-blue-dark);
  background: var(--light-blue-bg);
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--light-blue);
  color: var(--text);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.lang-toggle:hover {
  background: var(--light-blue-bg);
}

.lang-active { color: var(--light-blue-dark); font-weight: 700; }
.lang-inactive { color: var(--text-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  display: block;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--bg-alt);
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(108, 184, 228, 0.25) 40%,
      rgba(31, 42, 55, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  color: var(--white);
  max-width: 900px;
}

.hero-logo {
  height: 70px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.hero-title {
  font-family: var(--font-title);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  display: block;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  color: var(--white);
  letter-spacing: 3px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-text {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.btn-primary {
  background: var(--light-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(108, 184, 228, 0.35);
}

.btn-primary:hover {
  background: var(--light-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(61, 156, 209, 0.45);
}

.btn-light {
  background: var(--white);
  color: var(--light-blue-dark);
  margin-top: 1.5rem;
}

.btn-light:hover {
  background: var(--light-blue-bg);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  margin-top: 1rem;
}

.btn-whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
}

.btn-icon { width: 18px; height: 18px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-blue {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-blue-dark) 100%);
  color: var(--white);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--light-blue);
  border-radius: 2px;
}

.title-light {
  color: var(--white);
  display: block;
  text-align: center;
}

.title-light::after {
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
}

.sub-title {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light-blue-dark);
  margin: 3rem 0 1.5rem;
}

.section-icon {
  width: 36px;
  height: 36px;
  color: var(--light-blue);
  margin-bottom: 1rem;
  display: block;
}

.contact-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  color: var(--light-blue-dark);
  margin-right: 0.4rem;
}

/* Inline link */
.inline-link {
  color: var(--light-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}
.inline-link:hover { color: var(--text); }

.inline-link-light {
  color: var(--white);
  text-decoration: underline;
  font-weight: 700;
}

/* ============================================================
   CHI
   ============================================================ */
.chi-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.chi-image {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.chi-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  outline: 1px solid var(--light-gray);
}

.chi-text p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.chi-highlight {
  color: var(--text) !important;
  font-weight: 700;
  font-size: 1.1rem !important;
  border-left: 4px solid var(--light-blue);
  padding: 0.4rem 0 0.4rem 1rem;
  background: var(--light-blue-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem !important;
}

.chi-claim {
  font-family: var(--font-title);
  font-size: 1.3rem !important;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* Project card (Wolverine / Boxer90) */
.project-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--light-blue);
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin: 1rem 0 1.4rem;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateX(4px);
  border-color: var(--light-blue);
  box-shadow: var(--shadow-md);
}

.project-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-text strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.project-card-text small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.project-card-icon {
  width: 20px;
  height: 20px;
  color: var(--light-blue-dark);
  flex-shrink: 0;
}

/* ============================================================
   COSA
   ============================================================ */
.cosa-content {
  max-width: 880px;
}

.cosa-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.cosa-was {
  font-style: italic;
  color: var(--text-soft) !important;
  border-left: 3px solid var(--light-gray-2);
  padding-left: 1rem;
}

.cosa-bold {
  color: var(--text) !important;
  font-weight: 700;
  font-size: 1.2rem !important;
}

.cosa-highlight {
  color: var(--light-blue-dark) !important;
  font-weight: 700;
  font-size: 1.35rem !important;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  line-height: 1.35;
}

/* ============================================================
   AUTOMOTIVE & MOTORSPORT
   ============================================================ */
.auto-intro {
  max-width: 880px;
  margin-bottom: 2.5rem;
}

.auto-intro p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.auto-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.3s;
  filter: saturate(0.95);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* Achievements */
.auto-achievements {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--light-blue);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.achievement:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.achievement-text { flex: 1; }

.achievement-badge {
  flex-shrink: 0;
  background: var(--light-blue);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.72rem;
  padding: 0.32rem 0.7rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
  border-radius: 2px;
}

.badge-blue {
  background: var(--light-blue-dark);
  color: var(--white);
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.project-block {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}

.project-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-media {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 1rem;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-media-video {
  padding: 0;
  background: #000;
}

.project-media-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 0;
}

.project-media-collage img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.project-media-collage img:first-child {
  grid-row: span 2;
}

.project-media-cover {
  padding: 1.5rem;
  background: var(--bg-alt);
}

.project-media-cover img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.project-year {
  font-family: var(--font-title);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  color: var(--light-blue-dark) !important;
  margin-bottom: 0.4rem !important;
  margin-top: 0 !important;
}

.project-info {
  padding: 1.2rem 1.4rem 1.4rem;
}

.project-info h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Auto truth */
.auto-truth {
  margin-top: 2.5rem;
  max-width: 880px;
}

.auto-truth p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.auto-statement {
  font-family: var(--font-title);
  font-size: 1.55rem !important;
  color: var(--text) !important;
  letter-spacing: 1px;
}

/* Hobby block (panini) */
.hobby-block {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
}

.hobby-text p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hobby-image img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   PARTNERSHIP (sezione blu)
   ============================================================ */
.partnership-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.partnership-content p {
  margin-bottom: 1.3rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.75;
}

.partnership-lead {
  font-size: 1.25rem !important;
  font-weight: 600;
}

.partnership-raw {
  font-family: var(--font-title);
  font-size: 1.6rem !important;
  color: var(--white) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem !important;
}

.partnership-cta {
  font-family: var(--font-title);
  font-size: 2rem !important;
  color: var(--white) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 1.5rem !important;
}

.partnership-final {
  font-size: 1.4rem !important;
  font-weight: 700;
}

/* ============================================================
   CONSULTANCY
   ============================================================ */
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.consult-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.consult-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--white);
  border: 1px solid var(--light-gray-2);
  color: var(--text);
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px var(--light-blue-bg);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-slogan {
  font-family: var(--font-title);
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.contact-email {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
}

.contact-email a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-email a:hover { color: var(--light-blue-dark); }

.contact-cta {
  color: var(--light-blue-dark);
  font-weight: 600;
  font-style: italic;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--light-gray);
  background: var(--bg-alt);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.85rem 1.5rem;
    width: 100%;
    text-align: center;
  }

  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .chi-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .chi-image {
    max-width: 280px;
    margin: 0 auto;
    position: static;
  }

  .consult-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .auto-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .hobby-block {
    grid-template-columns: 1fr;
  }
  .hobby-image { max-width: 320px; margin: 0 auto; }

  .section { padding: 4rem 0; }

  .achievement {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
}

@media (max-width: 560px) {
  :root { --nav-height: 64px; }

  .nav-logo-img { height: 36px; }

  .hero-logo { height: 56px; }

  .hero-subtitle { letter-spacing: 2px; }

  .section-title { font-size: 2rem; }

  .partnership-cta { font-size: 1.5rem !important; }
  .partnership-raw { font-size: 1.25rem !important; }

  .auto-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-info { padding: 1rem 1.1rem 1.2rem; }

  .auto-statement { font-size: 1.3rem !important; }
}

@media (max-width: 400px) {
  .auto-gallery { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .nav-toggle, .lang-toggle, .contact-form, .btn-whatsapp { display: none; }
  .section { padding: 1.5rem 0; }
  body { color: #000; background: #fff; }
}
