/*
Theme Name: Centro Servizi Prestige
Version: 1.4
*/

/* ---------- RESET ---------- */
body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
  color: #f5f5f5;
  background: url('assets/bg-site.jpg') center center fixed no-repeat;
  background-size: cover;
  background-color: #000; /* backup colore */
}
a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover {
  color: #fff;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 9999;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0,0,0,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  padding: 10px 30px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  max-height: 60px;
  display: block;
}

/* ---------- MENU ---------- */
.main-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 80px;
  align-items: center;
  white-space: nowrap;
}
.main-nav .menu li { display: inline-block; }
.main-nav .menu a {
  position: relative;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  padding: 0 6px;
}
.main-nav .menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.25s;
}
.main-nav .menu a:hover::after { width: 100%; }

.hamburger { display: none; font-size: 28px; cursor: pointer; color: #fff; }
@media (max-width: 768px) {
  .main-nav .menu {
    position: absolute;
    top: 80px;
    right: 20px;
    background: #000;
    padding: 20px;
    border: 1px solid #222;
    flex-direction: column;
    gap: 16px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.25s;
    width: calc(100% - 40px);
    max-width: 320px;
  }
  .main-nav .menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .hamburger { display: block; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 300;
  color: #d4af37;
  letter-spacing: 3px;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.hero p {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 300;
  margin: 0 0 30px;
  letter-spacing: 1.4px;
}
.btn-gold {
  background: #d4af37;
  color: #000;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}
.btn-gold:hover { background: #fff; }

/* ---------- SECTIONS ---------- */
section { padding: 90px 20px; }
.section-dark { background: rgba(17,17,17,0.85); color: #f5f5f5; } /* trasparente leggermente per far vedere bg */
.section-light { background: #f7f7f7; color: #333; }
section h2 {
  font-size: 2.2rem;
  margin-bottom: 32px;
  color: #d4af37;
  text-align: center;
}

/* ---------- SERVIZI ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
  margin-top: 20px;
}
.service-card {
  background: #fff;
  color: #000;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ---------- PARCO MEZZI ---------- */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
  justify-content: center;
  margin-top: 50px;
}
.vehicle-card {
  width: 100%;
  max-width: 400px;
  height: 270px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.vehicle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #fff;
}
.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
  .vehicle-card { height: 200px; max-width: 100%; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.lightbox img { max-width: 90%; max-height: 80%; border-radius: 8px; }
.lightbox .close { position: absolute; top: 18px; right: 24px; font-size: 2rem; color: #fff; cursor: pointer; }
.lightbox-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.lightbox-controls span { color: #fff; font-size: 2rem; padding: 12px; cursor: pointer; }

/* ---------- CONTACT FORM ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 20px auto 0;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---------- FOOTER ---------- */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 50px 20px 30px;
  font-size: 0.9rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo img { max-height: 70px; margin-bottom: 20px; }
.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 0;
  margin: 20px 0;
}
.footer-menu li { display: inline-block; }
.footer-menu a {
  color: #d4af37;
  font-weight: 300;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-menu a:hover { color: #fff; }
.footer-copy { margin-top: 20px; font-size: 0.85rem; color: #aaa; }