:root{--q8-blue:#163a96;--q8-red:#e30613;--q8-yellow:#ffcc00;--ink:#111827;--soft:#f4f7fb}*{box-sizing:border-box}body{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:#fff}a{text-decoration:none}.topbar{background:var(--q8-blue);color:#fff;padding:.45rem 0}.topbar a{color:#fff}.navbar{background:#fff;border-bottom:4px solid var(--q8-yellow);box-shadow:0 8px 30px rgba(0,0,0,.06)}.navbar-brand img{width:140px;height:48px;object-fit:contain}.nav-link{font-weight:700;color:#16213d}.nav-link:hover{color:var(--q8-red)}.btn-brand{background:var(--q8-red);color:#fff;border:0;font-weight:800}.btn-brand:hover{background:#bd0010;color:#fff}.hero-slide{min-height:640px;background-size:cover;background-position:center;position:relative;display:flex;align-items:center;color:#fff}.hero-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,20,55,.88),rgba(7,20,55,.35),rgba(7,20,55,.1))}.hero-content{position:relative;z-index:1;max-width:740px}.hero h1{font-size:clamp(2.5rem,6vw,5.2rem);font-weight:900;line-height:.95}.hero .lead{font-size:1.25rem;max-width:650px}.booking-card{margin-top:-70px;position:relative;z-index:4;background:#fff;border-radius:22px;padding:28px;box-shadow:0 22px 60px rgba(17,24,39,.16);border-top:6px solid var(--q8-yellow)}.section{padding:90px 0}.section-soft{background:var(--soft)}.eyebrow{color:var(--q8-red);font-weight:900;text-transform:uppercase;letter-spacing:.1em}.section-title{font-weight:900;font-size:clamp(2rem,4vw,3.3rem)}.car-card{height:100%;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 14px 40px rgba(22,58,150,.10);transition:.25s}.car-card:hover{transform:translateY(-7px)}.car-card img{width:100%;height:235px;object-fit:cover}.price{font-size:1.8rem;font-weight:900;color:var(--q8-blue)}.badge-available{background:#e7f7ed;color:#15743a}.feature-icon{width:64px;height:64px;border-radius:18px;background:var(--q8-blue);color:#fff;display:grid;place-items:center;font-size:1.8rem}.cta-band{background:linear-gradient(120deg,var(--q8-blue),#0c235f);color:#fff;border-radius:28px;padding:46px}.footer{background:#071437;color:#dbe4ff;padding:65px 0 25px;border-top:7px solid var(--q8-yellow)}.footer a{color:#fff}.footer-logo{width:170px;filter:brightness(0) invert(1)}.socials a{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff;color:var(--q8-blue);margin-right:6px}.whatsapp-float{position:fixed;right:20px;bottom:20px;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#25d366;color:#fff;font-size:1.8rem;z-index:50;box-shadow:0 10px 30px rgba(0,0,0,.25)}.cookie-banner{position:fixed;z-index:100;left:18px;right:18px;bottom:18px;background:#071437;color:#fff;padding:20px;border-radius:16px;display:flex;justify-content:space-between;gap:20px;align-items:center;box-shadow:0 20px 50px rgba(0,0,0,.35)}.vehicle-hero{padding:70px 0;background:linear-gradient(135deg,#eef3ff,#fff)}.gallery-main img{width:100%;height:500px;object-fit:cover;border-radius:22px}.gallery-thumbs img{width:100%;height:110px;object-fit:cover;border-radius:12px}.content-box{background:#fff;border-radius:20px;padding:28px;box-shadow:0 15px 45px rgba(0,0,0,.08)}.admin-body{background:#eef2f7}.admin-sidebar{min-height:100vh;background:#071437;color:#fff;padding:25px}.admin-sidebar a{display:block;color:#dbe4ff;padding:10px 12px;border-radius:9px;margin:4px 0}.admin-sidebar a:hover{background:#163a96}.admin-main{padding:30px}.table img{width:90px;height:60px;object-fit:cover;border-radius:8px}@media(max-width:991px){.hero-slide{min-height:560px}.booking-card{margin-top:-35px}.cookie-banner{flex-direction:column;align-items:flex-start}.gallery-main img{height:360px}}@media(max-width:575px){.section{padding:60px 0}.hero-slide{min-height:520px}.booking-card{padding:20px}.car-card img{height:210px}.gallery-main img{height:280px}}

/* Gallery vettura */
.gallery-thumb-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gallery-thumb-button:hover,
.gallery-thumb-button:focus-visible,
.gallery-thumb-button.active {
  border-color: var(--q8-blue, #173f9f);
  box-shadow: 0 7px 18px rgba(17, 38, 86, .12);
  transform: translateY(-2px);
}
.gallery-thumb-button img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #fff;
}
@media (max-width: 575.98px) {
  .gallery-thumb-button img { height: 76px; }
}

/* Pagine legali */
.legal-hero{padding-bottom:2rem}.legal-page{padding-top:1rem}.legal-content{max-width:1000px;margin:0 auto;overflow-wrap:anywhere}.legal-content h2,.legal-content h3{margin-top:1.75rem;margin-bottom:.75rem}.legal-content h2:first-child{margin-top:0}.legal-content p,.legal-content li{line-height:1.75}.legal-content a{color:var(--brand-blue,#153e9f);text-decoration:underline}
