/* ==========================================================================
   Home Luxury (Preview) — full visual reskin
   Scoped entirely under body.luxury-home-preview (added by
   template-home-luxury.php) so this NEVER affects the live Home page or
   any other page on the site. Same sections, same data — only the look
   changes: fonts, colors, spacing, cards, header/footer treatment.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@300;400;500;600&display=swap');

body.luxury-home-preview{
  --lux-ink:#0f1113;
  --lux-ink-soft:#1a1c1f;
  --lux-cream:#f7f5f0;
  --lux-gold:#c9a96a;
  --lux-gold-light:#e3cb96;
  --lux-muted:#9aa0a6;
  --lux-text:#2a2f35;
  --lux-title-font:'Cormorant Garamond', Georgia, serif;
  --lux-body-font:'Jost', system-ui, sans-serif;
}

body.luxury-home-preview{
  font-family:var(--lux-body-font);
  color:var(--lux-text);
}

body.luxury-home-preview h1,
body.luxury-home-preview h2,
body.luxury-home-preview h3,
body.luxury-home-preview h4{
  font-family:var(--lux-title-font);
  font-weight:600;
  letter-spacing:.01em;
}

/* ---------- Header / navigation ---------- */

body.luxury-home-preview .header{
  background:var(--lux-ink);
  border-bottom:1px solid rgba(201,169,106,.25);
}

body.luxury-home-preview .header .logo-bar .logo img{
  max-height:55px !important;
  width:auto !important;
  max-width:100% !important;
}

body.luxury-home-preview .header .nav-bar,
body.luxury-home-preview .header #navHolder{
  background:transparent;
}

body.luxury-home-preview .header .main-nav > li > a{
  font-family:var(--lux-body-font);
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#efe9db;
}

body.luxury-home-preview .header .main-nav > li > a:hover,
body.luxury-home-preview .header .main-nav > li.current-menu-item > a{
  color:var(--lux-gold);
}

/* ---------- Page-header / slider area ---------- */

body.luxury-home-preview .page-header::before{
  background:rgba(10,10,12,.62);
}

body.luxury-home-preview #ricerca-auto.top-panel{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding-left:0;
  padding-right:0;
  position:relative;
}

body.luxury-home-preview #ricerca-auto.top-panel .flexslider{
  position:relative;
  height:600px !important;
  max-height:600px !important;
  overflow:hidden;
}

body.luxury-home-preview #ricerca-auto.top-panel .flexslider .slides li{
  height:600px !important;
  max-height:600px !important;
}

body.luxury-home-preview #ricerca-auto.top-panel .flexslider .slides li img{
  width:100% !important;
  height:600px !important;
  max-height:600px !important;
  object-fit:cover;
  object-position:center;
}

body.luxury-home-preview #ricerca-auto.top-panel .flexslider::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(15,17,19,.05) 0%, rgba(15,17,19,.08) 45%, rgba(15,17,19,.88) 100%),
    linear-gradient(90deg, rgba(15,17,19,.5) 0%, rgba(15,17,19,0) 22%, rgba(15,17,19,0) 78%, rgba(15,17,19,.5) 100%);
}

body.luxury-home-preview #ricerca-auto.top-panel .flexslider::before{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:3px;
  z-index:3;
  pointer-events:none;
  background:linear-gradient(90deg, transparent, var(--lux-gold), transparent);
  opacity:.7;
}

body.luxury-home-preview #ricerca-auto.top-panel .flex-control-nav{
  position:absolute;
  left:0; right:0; bottom:26px;
  z-index:4;
  display:flex;
  justify-content:center;
  gap:10px;
  margin:0; padding:0;
  list-style:none;
}

body.luxury-home-preview #ricerca-auto.top-panel .flex-control-nav li{ margin:0; }

body.luxury-home-preview #ricerca-auto.top-panel .flex-control-nav a{
  display:block;
  width:26px; height:3px;
  border-radius:2px;
  background:rgba(255,255,255,.4);
  text-indent:-9999px;
  overflow:hidden;
  cursor:pointer;
  transition:background .3s ease, width .3s ease;
}

body.luxury-home-preview #ricerca-auto.top-panel .flex-control-nav a.flex-active{
  width:42px;
  background:var(--lux-gold);
}

/* ---------- Section rhythm / headings ---------- */

body.luxury-home-preview .page-subheader .page-title,
body.luxury-home-preview #main h2,
body.luxury-home-preview #main h3{
  font-family:var(--lux-title-font);
  font-weight:700;
  letter-spacing:.005em;
}

body.luxury-home-preview #main{ padding-top:12px; }

/* ---------- Buttons ---------- */

body.luxury-home-preview .btn,
body.luxury-home-preview .button,
body.luxury-home-preview input[type="submit"]{
  font-family:var(--lux-body-font);
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  border-radius:2px;
  background:var(--lux-gold);
  border-color:var(--lux-gold);
  color:var(--lux-ink);
  transition:all .25s ease;
}

body.luxury-home-preview .btn:hover,
body.luxury-home-preview .button:hover,
body.luxury-home-preview input[type="submit"]:hover{
  background:transparent;
  color:var(--lux-gold);
}

/* ---------- Car cards ---------- */

body.luxury-home-preview .item.car-entry{
  transition:transform .3s ease, box-shadow .3s ease;
}

body.luxury-home-preview .item.car-entry .image-post{ overflow:hidden; }

body.luxury-home-preview .item.car-entry .image-post img{
  transition:transform .5s ease;
}

body.luxury-home-preview .item.car-entry:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 40px -24px rgba(15,17,19,.4);
}

body.luxury-home-preview .item.car-entry:hover .image-post img{
  transform:scale(1.06);
}

body.luxury-home-preview .item.car-entry .detailed .title-item a{
  font-family:var(--lux-title-font);
  font-weight:700;
  color:var(--lux-ink);
}

body.luxury-home-preview .item.car-entry .detailed .price{
  color:var(--lux-gold);
  font-weight:600;
}

body.luxury-home-preview .item.car-entry.featured_car{ position:relative; }

body.luxury-home-preview .item.car-entry.featured_car::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:var(--lux-gold);
  z-index:2;
}

/* ---------- Footer ---------- */

body.luxury-home-preview footer#footer{
  background:var(--lux-ink);
  color:#c6cbd1;
  border-top:1px solid rgba(201,169,106,.2);
}

body.luxury-home-preview footer#footer .widget-title,
body.luxury-home-preview footer#footer h3,
body.luxury-home-preview footer#footer h4{
  font-family:var(--lux-title-font);
  font-weight:600;
  color:var(--lux-gold-light);
}

body.luxury-home-preview footer#footer a{
  color:#c6cbd1;
}

body.luxury-home-preview footer#footer a:hover{
  color:var(--lux-gold);
}

body.luxury-home-preview footer#footer .adjective{
  border-top:1px solid rgba(201,169,106,.15);
  color:#8a9099;
  font-size:12px;
  letter-spacing:.04em;
}

/* ---------- Responsive ---------- */

@media (max-width:767px){
  body.luxury-home-preview #ricerca-auto.top-panel .flexslider,
  body.luxury-home-preview #ricerca-auto.top-panel .flexslider .slides li,
  body.luxury-home-preview #ricerca-auto.top-panel .flexslider .slides li img{
    height:340px !important;
    max-height:340px !important;
  }
}
