/* CHEAPERCAR - CMS 11: replica degli stili landing CMS 10.
   Aggiunta separata: non modifica la CMS 10.
   Le prossime landing richiederanno comunque JS e dati prodotto dedicati. */

/* Nasconde Header e Footer sulla landing page (ID 10) */
body.cc-auto-page #header,
body.cc-auto-page .header-container,
body.cc-auto-page #footer,
body.cc-auto-page .footer-container {
    display: none !important;
}
/* Nasconde Header e Footer sulla landing page promozionale (ID 10) */
body.cc-auto-page #header,
body.cc-auto-page .header-container,
body.cc-auto-page #footer,
body.cc-auto-page .footer-container {
    display: none !important;
}


/* CHEAPERCAR - LANDING FORD FOCUS */
/* Solo pagina CMS 10 */

body.cc-auto-page .cc-focus-layout {
  max-width: 1100px;
  margin: 30px auto;
  padding: 25px;
  background: #141111;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  box-sizing: border-box;
}

/* Fotografia */
body.cc-auto-page .cc-focus-media img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  border-radius: 10px;
}

/* Testi */
body.cc-auto-page .cc-focus-info {
  color: #ffffff;
  font-size: 16px;
}

body.cc-auto-page .cc-focus-eyebrow {
  color: #d5a24c;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.cc-auto-page .cc-focus-info h1 {
  color: #ffffff;
  font-size: 32px;
  line-height: 1.2;
  margin: 12px 0;
  font-weight: 700;
}

body.cc-auto-page .cc-focus-subtitle {
  color: #eeeeee;
  margin-bottom: 18px;
}

/* Caratteristiche */
body.cc-auto-page .cc-focus-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

body.cc-auto-page .cc-focus-facts span {
  display: inline-block;
  padding: 9px 12px;
  background: #302b2b;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
}

/* Prezzo */
body.cc-auto-page .cc-focus-price {
  color: #d5a24c;
  font-size: 38px;
  font-weight: 800;
  margin: 18px 0 8px;
  line-height: 1.2;
}

body.cc-auto-page .cc-focus-promise {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Pulsanti */
body.cc-auto-page .cc-focus-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.cc-auto-page .cc-focus-actions a {
  display: block;
  padding: 15px 12px;
  border-radius: 7px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.4;
}

body.cc-auto-page .cc-focus-whatsapp {
  background: #23834b;
}

body.cc-auto-page .cc-focus-callback {
  background: #b17d28;
}

body.cc-auto-page .cc-focus-actions a:hover {
  filter: brightness(1.12);
}

body.cc-auto-page .cc-focus-note {
  color: #cccccc;
  text-align: center;
  font-size: 13px;
  margin-top: 14px;
}

/* VERSIONE SMARTPHONE */
@media (max-width: 767px) {
  body.cc-auto-page .cc-focus-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 15px;
    margin: 10px auto;
  }

  body.cc-auto-page .cc-focus-info h1 {
    font-size: 27px;
  }

  body.cc-auto-page .cc-focus-price {
    font-size: 36px;
  }

  body.cc-auto-page .cc-focus-facts {
    gap: 7px;
  }

  body.cc-auto-page .cc-focus-facts span {
    font-size: 13px;
    padding: 8px 10px;
  }
}

/* CHEAPERCAR - MODULO PRENOTA UNA CHIAMATA */
/* Solo landing page CMS 10 */

body.cc-auto-page .cc-call-section[hidden] {
  display: none !important;
}

body.cc-auto-page .cc-call-section {
  max-width: 880px;
  margin: 32px auto 50px;
  padding: 32px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-sizing: border-box;
}

body.cc-auto-page .cc-call-section h2 {
  color: #141111;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

body.cc-auto-page .cc-call-section > p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

body.cc-auto-page .cc-call-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

body.cc-auto-page .cc-call-form > label:not(.cc-call-privacy) {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  color: #222;
  font-size: 14px;
  font-weight: 600;
}

body.cc-auto-page .cc-call-form > input,
body.cc-auto-page .cc-call-form > select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #ccc;
  border-radius: 7px;
  background: #fff;
  color: #222;
  font-size: 16px;
  box-sizing: border-box;
}

body.cc-auto-page .cc-call-form > input:focus,
body.cc-auto-page .cc-call-form > select:focus {
  outline: 2px solid #b17d28;
  outline-offset: 1px;
}

body.cc-auto-page .cc-call-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

body.cc-auto-page .cc-call-privacy input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 1px 0 0;
}

body.cc-auto-page .cc-call-privacy a {
  color: #946619;
  text-decoration: underline;
}

body.cc-auto-page .cc-call-submit {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 14px;
  background: #b17d28 !important;
  color: #fff !important;
  border: 0;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

body.cc-auto-page .cc-call-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

body.cc-auto-page .cc-call-form > small {
  display: block;
  color: #666;
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
}

body.cc-auto-page .cc-call-error {
  color: #a20e0e;
  font-size: 14px;
}

body.cc-auto-page .cc-call-success {
  color: #17613c;
  font-size: 14px;
  font-weight: 600;
}

/* Smartphone */
@media (max-width: 767px) {
  body.cc-auto-page .cc-call-section {
    margin: 20px auto 35px;
    padding: 22px 17px;
    border-radius: 12px;
  }

  body.cc-auto-page .cc-call-section h2 {
    font-size: 24px;
  }

  body.cc-auto-page .cc-call-form > input,
  body.cc-auto-page .cc-call-form > select {
    font-size: 16px;
    min-width: 0;
  }

  body.cc-auto-page .cc-call-submit {
    font-size: 15px;
  }
}


/* CHEAPERCAR - FOCUS IN SINTESI - CMS 10 */

body.cc-auto-page .cc-focus-specs {
  max-width: 1140px;
  margin: 28px auto;
  padding: 35px 25px;
  background: #f5f3ef;
  border-radius: 12px;
  box-sizing: border-box;
}

body.cc-auto-page .cc-specs-heading span {
  display: inline-block;
  color: #946619;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

body.cc-auto-page .cc-specs-heading h2 {
  color: #141111;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
}

body.cc-auto-page .cc-specs-heading p {
  color: #62605e;
  font-size: 15px;
  margin-bottom: 24px;
}

body.cc-auto-page .cc-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.cc-auto-page .cc-spec-tile {
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 9px;
  padding: 20px 16px;
  min-width: 0;
  border-top: 3px solid #b17d28;
}

body.cc-auto-page .cc-spec-tile small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-bottom: 8px;
}

body.cc-auto-page .cc-spec-tile strong {
  display: block;
  color: #141111;
  font-size: 17px;
  line-height: 1.3;
}

@media (max-width: 767px) {
  body.cc-auto-page .cc-focus-specs {
    padding: 25px 15px;
    margin: 20px auto;
  }

  body.cc-auto-page .cc-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.cc-auto-page .cc-spec-tile {
    padding: 15px 11px;
  }

  body.cc-auto-page .cc-spec-tile strong {
    font-size: 15px;
  }

  body.cc-auto-page .cc-specs-heading h2 {
    font-size: 24px;
  }
}
/* Layout responsive unificato per la landing page CMS ID 10 */
body.cc-auto-page .cc-focus-layout,
body.cc-auto-page .cc-specs-heading,
body.cc-auto-page .cc-specs-grid {
    width: 100%;
    max-width: 1140px; /* Larghezza ideale su PC */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Padding specifici per evitare sbordamenti su schermi piccoli */
@media (max-width: 768px) {
    body.cc-auto-page .cc-focus-layout,
    body.cc-auto-page .cc-specs-heading,
    body.cc-auto-page .cc-specs-grid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

body.cc-auto-page .cc-focus-layout {
    padding: 24px !important;
}

/* CHEAPERCAR - PULSANTI CONTATTI FINALI */
body.cc-auto-page .cc-contact-final > div:nth-child(2) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  box-sizing: border-box !important;
}

body.cc-auto-page .cc-contact-final > div:nth-child(2) > a {
  display: block !important;
  float: none !important;
  position: static !important;
  width: 100% !important;
  max-width: 380px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 15px 12px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* CHEAPERCAR - BLOCCO 03 RESPONSIVE */

body.cc-auto-page .cc-trust-box {
  width: 100%;
  max-width: 1140px;
  margin: 40px auto 0;
  padding: 30px 20px;
  box-sizing: border-box;
  background: #141111;
}

body.cc-auto-page .cc-trust-heading span {
  color: #b17d28;
  font-size: 12px;
  font-weight: 700;
}

body.cc-auto-page .cc-trust-heading h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  margin: 8px 0;
}

body.cc-auto-page .cc-trust-heading p {
  color: #eee;
  font-size: 14px;
  margin: 0 0 22px;
}

body.cc-auto-page .cc-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.cc-auto-page .cc-trust-card {
  min-width: 0;
  padding: 16px 12px;
  box-sizing: border-box;
  background: #1a1616;
  border: 1px solid #b17d28;
  border-radius: 6px;
}

body.cc-auto-page .cc-trust-card strong {
  display: block;
  color: #b17d28;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

body.cc-auto-page .cc-trust-card p {
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* SMARTPHONE: DUE RIQUADRI PER RIGA */
@media (max-width: 767px) {
  body.cc-auto-page .cc-trust-box {
    padding: 22px 15px;
    margin: 25px auto 0;
  }

  body.cc-auto-page .cc-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.cc-auto-page .cc-trust-card {
    padding: 14px 10px;
  }

  body.cc-auto-page .cc-trust-card strong {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  body.cc-auto-page .cc-trust-card p {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
}


/* Specifico per la landing automatica */
.cc-auto-landing:not(.cc-auto-ready) .cc-auto-content {display:none !important;}
.cc-auto-landing .cc-auto-status {max-width:1100px;margin:30px auto;padding:24px;background:#f5f3ef;color:#141111;border:1px solid #ddd;}
.cc-auto-landing .cc-auto-description {max-width:1100px;margin:18px auto;color:#363331;line-height:1.65;white-space:pre-line;}
.cc-auto-landing .cc-focus-media img {cursor:pointer;}
.cc-auto-landing .cc-gallery-open {position:absolute;bottom:14px;left:50%;transform:translateX(-50%);background:rgba(20,17,17,.93);color:#e3b35a;border:1px solid #b17d28;border-radius:7px;padding:11px 18px;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;z-index:2;}
.cc-auto-landing .cc-focus-media {position:relative;}
.cc-gallery-overlay {position:fixed;inset:0;z-index:999999;background:rgba(10,10,10,.97);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:55px 12px 65px;box-sizing:border-box;}
.cc-gallery-overlay[hidden] {display:none !important;}
.cc-gallery-image {display:block;max-width:100%;max-height:75vh;width:auto;height:auto;object-fit:contain;}
.cc-gallery-close {position:absolute;right:15px;top:12px;background:#292929;border:1px solid #777;border-radius:50%;color:#fff;font-size:25px;width:44px;height:44px;cursor:pointer;}
.cc-gallery-prev,.cc-gallery-next {position:absolute;top:50%;transform:translateY(-50%);background:rgba(20,17,17,.85);border:1px solid #b17d28;border-radius:50%;color:#fff;font-size:28px;width:45px;height:45px;cursor:pointer;}
.cc-gallery-prev {left:12px;} .cc-gallery-next {right:12px;}
.cc-gallery-counter {position:absolute;bottom:22px;color:#e3b35a;font-size:15px;font-weight:600;text-align:center;}
@media(max-width:767px){.cc-gallery-prev,.cc-gallery-next{width:38px;height:38px;font-size:22px;}}

/* Cheapercar Auto Experience: sezioni editoriali su landing dinamica */
body.cc-auto-page .cc-editorial-section{max-width:1140px;margin:36px auto;padding:30px 24px;box-sizing:border-box;background:#f5f3ef;color:#141111}
body.cc-auto-page .cc-editorial-head span{font-size:12px;font-weight:700;color:#b17d28;letter-spacing:1px}
body.cc-auto-page .cc-editorial-head h2{font-size:26px;line-height:1.25;margin:8px 0 12px;color:#141111}
body.cc-auto-page .cc-editorial-head p{font-size:15px;line-height:1.65;margin:0 0 22px;white-space:pre-line}
body.cc-auto-page .cc-editorial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.cc-auto-page .cc-editorial-card{background:#fff;border:1px solid #e4dac8;border-top:3px solid #b17d28;padding:20px;box-sizing:border-box;min-width:0}
body.cc-auto-page .cc-editorial-card h3{font-size:19px;margin:0 0 12px;color:#141111}
body.cc-auto-page .cc-editorial-card p,body.cc-auto-page .cc-editorial-card li{font-size:14px;line-height:1.6;color:#393432;overflow-wrap:anywhere}
body.cc-auto-page .cc-editorial-card p{white-space:pre-line;margin:0}
body.cc-auto-page .cc-editorial-card ul{padding-left:19px;margin:0}
body.cc-auto-page .cc-editorial-card li+li{margin-top:7px}
@media(max-width:767px){body.cc-auto-page .cc-editorial-section{padding:22px 15px;margin:26px auto}body.cc-auto-page .cc-editorial-grid{grid-template-columns:1fr;gap:12px}body.cc-auto-page .cc-editorial-head h2{font-size:22px}body.cc-auto-page .cc-editorial-card{padding:17px}}

/* Hide optional feature blocks when all cards are already in the essentials. */
body.cc-auto-page .cc-focus-specs[hidden] {display:none !important;}

/* Descrizione prodotto separata dalle caratteristiche, disponibile nella CMS dinamica. */
body.cc-auto-page .cc-vehicle-description {max-width:1140px;margin:28px auto;padding:28px 24px;box-sizing:border-box;background:#fff;border:1px solid #e4dac8;border-top:3px solid #b17d28;color:#141111;border-radius:10px}
body.cc-auto-page .cc-vehicle-description h2 {font-size:25px;line-height:1.3;margin:0 0 16px;color:#141111}
body.cc-auto-page .cc-vehicle-description p {font-size:15px;line-height:1.7;color:#363331;margin:0 0 13px;overflow-wrap:anywhere}
body.cc-auto-page .cc-vehicle-description p:last-child {margin-bottom:0}
@media(max-width:767px) {body.cc-auto-page .cc-vehicle-description{padding:20px 15px;margin:22px auto}body.cc-auto-page .cc-vehicle-description h2{font-size:22px}}

body.cc-auto-page .cc-editorial-photo-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:center; margin-top:16px; }
body.cc-auto-page .cc-editorial-photo-card img { display:block; width:100%; height:auto; }
@media(max-width:767px) { body.cc-auto-page .cc-editorial-photo-card { grid-template-columns:1fr; gap:12px; } }
