/*
 Theme Name:     Hello Elementor Child — Syncro Boost
 Theme URI:      https://syncro.agency/wordpress/
 Description:    Performance-driven Elementor child theme built for SEO, speed, and conversions. Includes clean CSS/JS optimizations, reusable Elementor components, and scalable best practices. Crafted by Syncro Agency.
 Author:         Syncro Agency
 Author URI:     https://syncro.agency/
 Template:       hello-elementor
 Version:        1.0.0
 Requires at least: 6.0
 Tested up to: 6.5
 Requires PHP:   7.4
 License:        GNU General Public License v2 or later
 License URI:    https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:    hello-elementor-child-syncro
 Tags:           elementor, child-theme, performance, seo, conversions, agency
*/

/* ===== Sedi interactive map ===== */
.sedi-map {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.elementor-widget-google_maps .elementor-custom-embed {
    padding: 0 !important;
    height: auto !important;
    min-height: 420px;
}

.sedi-pin {
    background: transparent;
    border: 0;
    pointer-events: auto;
}

.sedi-pin .sedi-pin-dot {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #143E60;
    box-shadow: 0 2px 6px rgba(20, 62, 96, 0.35);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
    transform: translate(5px, 5px);
}

.sedi-pin:hover .sedi-pin-dot,
.sedi-pin.is-active .sedi-pin-dot {
    background: #C7FF18;
    border-color: #143E60;
    transform: translate(5px, 5px) scale(1.35);
    box-shadow: 0 0 0 6px rgba(199, 255, 24, 0.35), 0 4px 14px rgba(20, 62, 96, 0.45);
}

.sede-card {
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease;
    border-radius: 12px;
}

.sede-card:hover,
.sede-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(20, 62, 96, 0.18);
    outline: none;
}

/* ===== Pagination — square buttons ===== */
.elementor-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 44px;
}

.elementor-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1.5px solid #E5EBF0;
    background: #fff;
    color: #101829;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.elementor-pagination .page-numbers:hover,
.elementor-pagination .page-numbers:focus-visible {
    border-color: #143E60;
    color: #143E60;
    outline: none;
    transform: translateY(-1px);
}

.elementor-pagination .page-numbers.current,
.elementor-pagination span.page-numbers.current,
nav.elementor-pagination .page-numbers.current {
    background: #143E60;
    border-color: #143E60;
    color: #fff !important;
}

/* Hide disabled prev/next (rendered as span, not <a>) — e.g. on first/last page */
.elementor-pagination > span.page-numbers.prev,
.elementor-pagination > span.page-numbers.next {
    display: none;
}

.elementor-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.elementor-pagination .page-numbers.prev,
.elementor-pagination .page-numbers.next {
    font-size: 0;
}

.elementor-pagination .page-numbers.prev::before,
.elementor-pagination .page-numbers.next::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 5l7 7-7 7'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 5l7 7-7 7'/></svg>") center/contain no-repeat;
}

.elementor-pagination .page-numbers.prev::before {
    transform: scaleX(-1);
}

/* ===== Single post — categories eyebrow ===== */
.post-categories-eyebrow,
.post-categories-eyebrow .elementor-icon-list-text,
.post-categories-eyebrow a {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 13px;
    color: #101829;
}

.post-categories-eyebrow .elementor-icon-list-icon i,
.post-categories-eyebrow .elementor-icon {
    color: #C7FF18 !important;
    font-size: 10px;
}

/* ===== FAQ accordion — remove inner divider when open ===== */
.faqs-progest details[open] > summary.e-n-accordion-item-title {
    border-bottom-color: transparent !important;
    border-bottom-width: 0 !important;
}

.faqs-progest details[open] > summary.e-n-accordion-item-title::after {
    display: none !important;
}

.faqs-progest details[open] > [role="region"] {
    border-top-color: transparent !important;
    border-top-width: 0 !important;
}

/* ===== Breadcrumb — underline links with matching color ===== */
.site-breadcrumbs a,
.rank-math-breadcrumb a,
.elementor-widget-breadcrumbs a {
    color: #707A8A !important;
    text-decoration: underline !important;
    -webkit-text-decoration-color: #707A8A !important;
    text-decoration-color: #707A8A !important;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 200ms ease, text-decoration-color 200ms ease, -webkit-text-decoration-color 200ms ease, text-decoration-thickness 200ms ease;
}

.site-breadcrumbs a:hover,
.rank-math-breadcrumb a:hover,
.elementor-widget-breadcrumbs a:hover {
    color: #101829 !important;
    -webkit-text-decoration-color: #101829 !important;
    text-decoration-color: #101829 !important;
    text-decoration-thickness: 2px;
}

/* Breadcrumb variant — Chi siamo (tutto bianco su sfondo scuro) */
html body [class*="crumbs-chisiamo"],
html body [class*="crumbs-chisiamo"] *,
html body [class*="crumbs-chisiamo"] a,
html body [class*="crumbs-chisiamo"] a *,
html body [class*="crumbs-chisiamo"] a:hover,
html body [class*="crumbs-chisiamo"] a:hover *,
html body [class*="crumbs-chisiamo"] a:focus,
html body [class*="crumbs-chisiamo"] a:active,
html body [class*="crumbs-chisiamo"] a:visited {
    color: #ffffff !important;
    -webkit-text-decoration-color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

html body [class*="crumbs-chisiamo"] a:hover {
    text-decoration-thickness: 2px !important;
}

/* Mobile — replace numbered pagination with a single "Carica altri" button */
@media (max-width: 767px) {
    .elementor-pagination {
        gap: 0;
    }

    .elementor-pagination .page-numbers:not(.next) {
        display: none;
    }

    .elementor-pagination a.page-numbers.next {
        width: 100%;
        max-width: 320px;
        height: 56px;
        padding: 0 24px;
        background: #143E60;
        border-color: #143E60;
        color: #fff;
        font-size: 0;
        gap: 10px;
    }

    .elementor-pagination a.page-numbers.next::before {
        display: none;
    }

    .elementor-pagination a.page-numbers.next::after {
        content: "Carica altri";
        font-size: 16px;
        font-weight: 500;
        color: #fff;
    }
}
