/* ==========================================================================
   CasaXpert — Zone servite (landing per comune + hub)
   Estende cx-fixes.css. Palette: #FB5B11 accent, #0E0E0E dark.
   ========================================================================== */

/* --- Hero: riga di metadati sotto il sottotitolo ------------------------- */
.cx-geo-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    position: relative;
    z-index: 2;
}
.cx-geo-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    padding: 7px 15px;
    backdrop-filter: blur(4px);
}
.cx-geo-hero-meta i {
    font-size: 15px;
    color: #FB5B11;
}

/* --- Griglia servizi collegati (sezione scura) --------------------------- */
.cx-geo-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 34px;
}
.cx-geo-service {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 24px 22px;
    text-decoration: none;
    transition: background .25s, border-color .25s, transform .25s;
}
.cx-geo-service:hover {
    background: rgba(251, 91, 17, 0.1);
    border-color: rgba(251, 91, 17, 0.45);
    transform: translateY(-3px);
}
.cx-geo-service i {
    font-size: 28px;
    color: #FB5B11;
    display: block;
    margin-bottom: 12px;
}
.cx-geo-service-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.cx-geo-service-desc {
    display: block;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

/* --- Progetti in evidenza ------------------------------------------------ */
.cx-geo-portfolio {
    background: #fafafa;
}
.cx-geo-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 34px;
}
.cx-geo-project {
    display: block;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .25s, transform .25s;
}
.cx-geo-project:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}
.cx-geo-project-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f3f3;
}
.cx-geo-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}
.cx-geo-project:hover .cx-geo-project-img img {
    transform: scale(1.05);
}
.cx-geo-project h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0E0E0E;
    margin: 0;
    padding: 20px 20px 6px;
    line-height: 1.35;
}
.cx-geo-project-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #FB5B11;
    padding: 0 20px 20px;
}

/* --- Blocco "facciamo tutto / chiavi in mano" ---------------------------- */
.cx-geo-fullscope {
    margin: 26px 0 8px;
    padding: 20px 24px;
    background: #fff7f2;
    border-left: 3px solid #FB5B11;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #3a3a3a;
}
.cx-geo-fullscope strong {
    color: #0E0E0E;
}

/* --- FAQ ----------------------------------------------------------------- */
.cx-geo-faq {
    margin-top: 30px;
    text-align: left;
}
.cx-geo-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
    overflow: hidden;
}
.cx-geo-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    position: relative;
    transition: color .2s;
}
.cx-geo-faq-item summary::-webkit-details-marker { display: none; }
.cx-geo-faq-item summary:hover { color: #FB5B11; }
.cx-geo-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: #FB5B11;
    line-height: 1;
    transition: transform .25s;
}
.cx-geo-faq-item[open] summary::after {
    content: '−';
}
.cx-geo-faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
}

/* --- Comuni limitrofi ---------------------------------------------------- */
.cx-geo-nearby-section {
    background: #fff;
    text-align: center;
}
.cx-geo-nearby-section .cx-srv-section-title {
    color: #0E0E0E;
}
.cx-geo-nearby {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.cx-geo-nearby-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #ebebeb;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #0E0E0E;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s, color .2s, background .2s;
}
.cx-geo-nearby-item i { color: #FB5B11; font-size: 16px; }
.cx-geo-nearby-item:hover {
    border-color: #FB5B11;
    color: #FB5B11;
    background: #fff7f2;
}
.cx-geo-nearby-all {
    background: #0E0E0E;
    color: #fff;
    border-color: #0E0E0E;
}
.cx-geo-nearby-all:hover {
    background: #FB5B11;
    border-color: #FB5B11;
    color: #fff;
}

/* --- Hub: griglia comuni ------------------------------------------------- */
.cx-geo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
    text-align: left;
}
.cx-geo-card {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 26px 24px;
    text-decoration: none;
    transition: background .25s, border-color .25s, transform .25s;
}
.cx-geo-card:hover {
    background: rgba(251, 91, 17, 0.1);
    border-color: rgba(251, 91, 17, 0.45);
    transform: translateY(-3px);
}
.cx-geo-card.is-sede {
    border-color: rgba(251, 91, 17, 0.5);
    background: rgba(251, 91, 17, 0.07);
}
.cx-geo-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: #FB5B11;
    border-radius: 100px;
    padding: 4px 11px;
    margin-bottom: 12px;
}
.cx-geo-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
}
.cx-geo-card-cap {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}
.cx-geo-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.58);
    margin: 0 0 14px;
}
.cx-geo-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #FB5B11;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .cx-geo-services,
    .cx-geo-projects,
    .cx-geo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .cx-geo-services,
    .cx-geo-projects,
    .cx-geo-grid {
        grid-template-columns: 1fr;
    }
    .cx-geo-hero-meta {
        gap: 8px;
    }
    .cx-geo-hero-meta span {
        font-size: 12px;
        padding: 6px 12px;
    }
    .cx-geo-faq-item summary {
        font-size: 14px;
        padding: 16px 46px 16px 18px;
    }
    .cx-geo-faq-item p {
        padding: 0 18px 18px;
        font-size: 13.5px;
    }
}
