/*
Theme Name: CGF Cars
Theme URI: https://www.cgfcars.it
Author: CGF Cars
Description: Tema WordPress responsive per la concessionaria CGF Cars di Castelfidardo.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cgf-cars
*/
:root{--red:#e31d2b;--green:#009b4d;--blue:#123f9d;--black:#101010;--white:#fff;--light:#f3f4f5;--text:#191919}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.container{width:min(1200px,92%);margin-inline:auto}
.topbar{background:#111;color:#fff;padding:7px 4%;font-size:13px;text-align:right}
.site-header{position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 2px 14px #0001}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0}.brand img{width:310px;max-height:76px;object-fit:contain}.main-nav{display:flex;align-items:center;gap:24px;font-size:13px;font-weight:800}.main-nav a:hover{color:var(--red)}.nav-cta{background:var(--red);color:#fff;padding:11px 15px;border-radius:6px}.nav-subito{background:#ffdc00;color:#171717;padding:10px 13px;border-radius:6px;font-weight:900}.nav-subito:hover{color:#171717!important;filter:brightness(.95)}
.hero{min-height:570px;display:flex;align-items:center;color:#fff;background:linear-gradient(90deg,#000d 0%,#0009 43%,#0002 100%),url('assets/showroom-audi.png') center/cover no-repeat}.hero-content{padding:70px 0}.eyebrow{text-transform:uppercase;font-weight:800;letter-spacing:2px;color:#fff}.hero h1{font-size:clamp(38px,5.2vw,70px);line-height:.98;max-width:740px;margin:12px 0 18px;text-transform:uppercase}.hero h1 span{color:var(--red)}.hero p{font-size:22px;font-weight:700;max-width:620px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;border-radius:7px;font-weight:800;text-transform:uppercase;font-size:14px;transition:transform .15s}.btn:hover{transform:translateY(-2px)}.btn-red{background:var(--red);color:#fff}.btn-green{background:#079b4a;color:#fff}.btn-dark{background:#111;color:#fff}.btn-subito{background:#ffdc00;color:#171717}.btn-subito:hover{color:#171717;filter:brightness(.95)}.subito-banner{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:30px;padding:24px 28px;border-radius:10px;background:#fff8c7;border:1px solid #f0d54d}.subito-banner strong,.subito-banner span{display:block}.subito-banner strong{font-size:21px;margin-bottom:4px}.subito-banner span{color:#444}
.benefits{background:#111;color:#fff}.benefits-grid{display:grid;grid-template-columns:repeat(5,1fr)}.benefit{text-align:center;padding:23px 12px;border-right:1px solid #ffffff2e;font-size:14px;font-weight:800}.benefit strong{display:block;font-size:17px;margin-bottom:5px}.benefit span{color:#ddd;font-weight:400}
.section{padding:66px 0}.section-light{background:#f4f4f4}.section-title{text-align:center;font-size:clamp(30px,3.5vw,42px);line-height:1.1;margin:0 0 12px;text-transform:uppercase}.section-subtitle{text-align:center;max-width:700px;margin:0 auto 36px;color:#555}.red-rule{width:68px;height:5px;background:var(--red);margin:14px auto 32px}
.vehicle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.vehicle-card{border:1px solid #ddd;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 5px 18px #0000000d}.vehicle-card img{width:100%;height:230px;object-fit:cover}.vehicle-card-body{padding:19px}.vehicle-card h3{margin:0 0 7px;font-size:22px}.vehicle-card p{color:#555;margin:0 0 16px}.vehicle-card .btn{width:100%}.note{font-size:13px;color:#666;margin-top:20px;text-align:center}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.service-card{background:#fff;border-radius:8px;padding:25px;border:1px solid #e4e4e4}.service-card h3{margin:0 0 8px;font-size:20px}.service-card p{margin:0;color:#555}
.sell-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.sell-grid h2{font-size:clamp(30px,4vw,44px);line-height:1.05;margin:0 0 15px}.sell-grid img{width:100%;height:340px;object-fit:cover;border-radius:12px}
.contact-section{background:#111;color:#fff}.contact-grid{display:grid;grid-template-columns:1fr 1fr 220px;gap:30px;align-items:center}.contact-grid h2{font-size:36px;margin:0 0 12px}.contact-grid p{font-size:17px;line-height:1.8}.contact-map iframe{width:100%;height:260px;border:0;border-radius:8px}.qr-box{text-align:center}.qr-box img{width:150px;margin:12px auto;background:#fff;padding:7px}.qr-box p{font-size:13px}
.site-footer{background:#050505;color:#fff;text-align:center;padding:24px 4%;border-top:4px solid var(--green);font-size:14px}.site-footer strong{color:var(--red)}
.mobile-actions{display:none}
@media(max-width:850px){.header-inner{flex-wrap:wrap}.brand img{width:245px}.main-nav{width:100%;justify-content:center;gap:15px;flex-wrap:wrap}.hero{min-height:500px}.benefits-grid{grid-template-columns:repeat(2,1fr)}.vehicle-grid{grid-template-columns:repeat(2,1fr)}.service-grid{grid-template-columns:repeat(2,1fr)}.contact-grid{grid-template-columns:1fr 1fr}.qr-box{grid-column:1/-1}.mobile-actions{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;gap:0;box-shadow:0 -3px 15px #0002}.mobile-actions a{width:50%;padding:14px 5px;text-align:center;color:#fff;font-weight:800;background:var(--red)}.mobile-actions a+ a{background:#079b4a}.site-footer{padding-bottom:75px}}
@media(max-width:560px){.subito-banner{align-items:flex-start;flex-direction:column;padding:20px}.subito-banner .btn{width:100%}.topbar{text-align:center;font-size:12px}.header-inner{justify-content:center}.main-nav{font-size:12px}.hero{min-height:490px;background-position:58% center}.hero-content{padding:45px 0}.hero h1{font-size:40px}.hero p{font-size:18px}.benefits-grid,.vehicle-grid,.service-grid,.sell-grid,.contact-grid{grid-template-columns:1fr}.benefit{border-right:0;border-bottom:1px solid #ffffff25}.section{padding:48px 0}.vehicle-card img{height:220px}.sell-grid img{height:240px}.contact-grid h2{font-size:30px}.contact-map iframe{height:230px}}

/* Anteprime annunci Subito */
.live-listing { overflow: hidden; }
.listing-top { min-height: 118px; padding: 18px 20px; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:12px; background: linear-gradient(135deg, #152b48, #245b91); color:#fff; }
.listing-label { font-size:11px; letter-spacing:.09em; font-weight:800; border:1px solid rgba(255,255,255,.55); padding:6px 9px; border-radius:3px; }
.listing-brand { font-size:30px; font-weight:800; letter-spacing:.04em; }
.listing-price { font-size:24px; font-weight:800; margin:8px 0; color:#c9272c; }
.live-listing .vehicle-card-body { display:flex; flex-direction:column; align-items:flex-start; height:calc(100% - 118px); }
.live-listing .vehicle-card-body .btn { margin-top:auto; }


/* Schede auto sincronizzate automaticamente da Subito */
.vehicle-image-link{display:block;background:#f2f2f2;overflow:hidden}
.vehicle-card .vehicle-image-link img{width:100%;height:230px;object-fit:cover;transition:transform .25s}
.vehicle-card .vehicle-image-link:hover img{transform:scale(1.035)}
.vehicle-image-placeholder{height:230px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#152b48,#245b91);color:#fff;font-size:28px;font-weight:900;letter-spacing:2px}
.live-listing .vehicle-card-body{height:auto;min-height:250px;display:flex;flex-direction:column;align-items:stretch}
.live-listing .listing-label{display:inline-block;align-self:flex-start;background:#152b48;color:#fff;border:0}
.live-listing .vehicle-card-body h3{margin-top:12px;min-height:54px}
.live-listing .vehicle-card-body .listing-price{font-size:25px;margin:8px 0;color:#c9272c}
.live-listing .vehicle-details{min-height:42px;font-size:14px}
.live-listing .vehicle-card-body .btn{margin-top:auto}
.subito-sync-message{grid-column:1/-1;text-align:center;padding:30px}
@media(max-width:560px){.vehicle-card .vehicle-image-link img,.vehicle-image-placeholder{height:220px}}


/* Recensioni Google */
.reviews-section{background:#f7f7f7}.reviews-summary{display:grid;grid-template-columns:260px 1fr;gap:34px;align-items:center;max-width:900px;margin:0 auto 34px;padding:26px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;box-shadow:0 5px 18px #00000008}.reviews-score{text-align:center;border-right:1px solid #e5e5e5;padding-right:24px}.reviews-score strong{display:block;font-size:54px;line-height:1.1}.reviews-stars,.review-stars{display:block;color:#f4b400;letter-spacing:3px;font-size:23px}.reviews-count{display:block;color:#555;font-size:14px;margin-top:5px}.reviews-intro p{margin:0 0 18px;color:#444;font-size:17px}.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.review-card{background:#fff;border:1px solid #e5e5e5;border-radius:10px;padding:24px;box-shadow:0 5px 18px #00000008}.review-card .review-stars{font-size:19px;margin-bottom:12px}.review-card p{min-height:82px;margin:0 0 18px;color:#333;line-height:1.6}.review-card strong,.review-card span{display:block}.review-card strong{font-size:15px}.review-card span{font-size:12px;color:#777;margin-top:3px}.reviews-note{text-align:center;color:#777;font-size:12px;margin:22px 0 0}
@media(max-width:700px){.reviews-summary{grid-template-columns:1fr;gap:18px;text-align:center}.reviews-score{border-right:0;border-bottom:1px solid #e5e5e5;padding:0 0 18px}.reviews-grid{grid-template-columns:1fr}.review-card p{min-height:0}.reviews-intro .btn{width:100%}}
