@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #80ff27;
    --primary-hover: #6ee81d;
    --primary-active: #5ed600;

    --secondary: #000;
    --secondary-hover: #1a1a1a;
    --secondary-active: #333;

    --bs-primary: var(--primary);
    --bs-primary-rgb: 128, 255, 39;

    --bs-secondary: var(--secondary);
    --bs-secondary-rgb: 0, 0, 0;
}

html,
body {
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 500 !important;
}

.no-focus:focus,
.no-focus:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ===========================
   Navbar
   =========================== */
.site-header {
    position: relative;
    z-index: 1030;
}

.site-header-main-wrap {
    z-index: 1035;
}

.site-main-nav {
    min-height: 72px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.site-main-nav-brand {
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: .02em;
}

.site-main-nav-brand img {
    height: 32px;
    width: auto;
}

.site-main-nav-toggle,
.site-offcanvas-close {
    color: var(--secondary);
    font-size: 2rem;
    line-height: 1;
}

.site-offcanvas {
    position: fixed;
    inset: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background:
        radial-gradient(circle at top, rgba(128, 255, 39, .14), transparent 26%),
        linear-gradient(180deg, #f7f8f4 0%, #eef3ea 100%);
}

.site-offcanvas-brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.site-offcanvas-menu {
    width: min(100%, 720px);
}

.site-offcanvas .offcanvas-body {
    overflow-y: auto;
    padding: 2rem 1.5rem 3rem;
}

.site-offcanvas-item+.site-offcanvas-item {
    margin-top: 1rem;
}

.site-offcanvas-link {
    display: inline-block;
    color: #10170d;
    text-decoration: none;
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
}

.site-offcanvas-link.active,
.site-offcanvas-link:hover {
    color: #3e7c1f;
}

.site-offcanvas-submenu {
    margin: .85rem 0 0;
    padding: 0;
    list-style: none;
}

.site-offcanvas-submenu .site-offcanvas-item+.site-offcanvas-item {
    margin-top: .5rem;
}

.site-offcanvas-submenu .site-offcanvas-link {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: #5b6d51;
}

@media (max-width: 991.98px) {
    .site-main-nav {
        min-height: 68px;
    }
}

/* ===========================
   Galleries & Carousels
   =========================== */
.gallery-item-media {
    --gallery-overlay-bg: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .58) 100%);
    --gallery-overlay-padding: 1rem;
    --gallery-overlay-content-max-width: 40rem;
    --gallery-overlay-text-color: #fff;
    --gallery-overlay-title-shadow: 0 3px 8px rgba(0, 0, 0, .98), 0 0 22px rgba(0, 0, 0, .82);
    --gallery-overlay-description-shadow: 0 2px 6px rgba(0, 0, 0, .96), 0 0 16px rgba(0, 0, 0, .78);
    --gallery-overlay-cta-shadow: 0 2px 6px rgba(0, 0, 0, .85);
}

.gallery-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.carousel .gallery-thumb {
    height: 360px;
}

.gallery-carousel-caption {
    --gallery-carousel-caption-padding: 1.5rem;
    --gallery-carousel-caption-bg: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .58) 100%);
    --gallery-carousel-caption-color: #fff;
    --gallery-carousel-caption-max-width: 42rem;
    --gallery-carousel-caption-text-shadow: 0 3px 8px rgba(0, 0, 0, .98), 0 0 22px rgba(0, 0, 0, .82);
    inset: 0;
    padding: var(--gallery-carousel-caption-padding);
    color: var(--gallery-carousel-caption-color);
    background: var(--gallery-carousel-caption-bg);
}

.gallery-carousel-caption-inner {
    width: 100%;
    max-width: var(--gallery-carousel-caption-max-width);
    text-align: center;
    text-shadow: var(--gallery-carousel-caption-text-shadow);
}

.gallery-carousel-caption .gallery-item-content {
    max-width: 100%;
}

.gallery-item-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--gallery-overlay-content-max-width);
    padding: var(--gallery-overlay-padding);
    color: var(--gallery-overlay-text-color);
    text-align: center;
}

.gallery-item-overlay {
    z-index: 2;
    padding: var(--gallery-overlay-padding);
    background: var(--gallery-overlay-bg);
    pointer-events: none;
}

.gallery-item-overlay .gallery-item-content {
    pointer-events: auto;
}

.gallery-item-title {
    color: inherit;
}

.gallery-item-description {
    opacity: .92;
}

.gallery-item-cta {
    font-weight: bold
}

/* ===========================
   Bootstrap class refactoring
   =========================== */
.btn-primary {
    --bs-btn-color: #000;

    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);

    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);

    --bs-btn-active-bg: var(--primary-active);
    --bs-btn-active-border-color: var(--primary-active);

    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);

    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);

    --bs-btn-active-bg: var(--primary-hover);
    --bs-btn-active-border-color: var(--primary-hover);

    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
}

.btn-secondary {
    --bs-btn-color: #fff;

    --bs-btn-bg: var(--secondary);
    --bs-btn-border-color: var(--secondary);

    --bs-btn-hover-bg: var(--secondary-hover);
    --bs-btn-hover-border-color: var(--secondary-hover);

    --bs-btn-active-bg: var(--secondary-active);
    --bs-btn-active-border-color: var(--secondary-active);

    --bs-btn-focus-shadow-rgb: var(--secondary-rgb);
}

.btn-outline-secondary {
    --bs-btn-color: var(--secondary);
    --bs-btn-border-color: var(--secondary);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--secondary);
    --bs-btn-hover-border-color: var(--secondary);

    --bs-btn-active-bg: var(--secondary-hover);
    --bs-btn-active-border-color: var(--secondary-hover);

    --bs-btn-focus-shadow-rgb: var(--secondary-rgb);
}

/* Aggiungere altre classi bootstrap per il refactoring */

.customer-cover-blur-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(255, 255, 255, .68) !important;
}

.customer-cover-blur-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .4)),
        var(--customer-cover-image) no-repeat top center / cover;
    transform: scale(1.08);
    filter: blur(22px);
}

.customer-cover-blur-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .82));
}

/* ===========================
   Customer Tree
   =========================== */
.customer-tree-frame {
    position: relative;
    max-width: 680px;
    border-radius: 2rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .12);
    backdrop-filter: blur(18px);
}

.customer-tree-backdrop {
    position: relative;
    min-height: 360px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .3)),
        linear-gradient(135deg, #0f1110 0%, #232b1f 50%, #314029 100%);
    background-position: center;
    background-size: cover;
}

.customer-tree-backdrop::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -104px;
    width: 145%;
    height: 245px;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
}

.customer-tree-body {
    position: relative;
    margin-top: -156px;
    padding: 0 1.5rem 2rem;
    z-index: 1;
}

.customer-tree-avatar {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
    background: #fff;
}

.customer-tree-language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(16, 23, 13, .08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    color: inherit;
    text-decoration: none;
    font-size: 1.35rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.customer-tree-language-flag:hover {
    transform: translateY(-1px);
    border-color: rgba(128, 255, 39, .7);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .1);
}

.customer-tree-language-flag.is-active {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .16);
}

.customer-tree-links {
    display: grid;
    gap: .9rem;
}

.customer-tree-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin-top: .9rem;
}

.customer-tree-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 60px;
    padding: .9rem 1rem;
    border-radius: 1.2rem;
    color: #10170d;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.customer-tree-quick-action:hover {
    color: #10170d;
    transform: translateY(-1px);
}

.customer-tree-quick-action-booking {
    border: 0;
    background: #10170d;
    color: #fff;
}

.customer-tree-quick-action-booking:hover {
    color: #fff;
}

.customer-tree-quick-action-whatsapp {
    background: #25d366;
    color: #fff;
}

.customer-tree-quick-action-whatsapp:hover {
    color: #fff;
}

.customer-tree-quick-action-phone {
    background: #fff;
    border: 1px solid rgba(16, 23, 13, .08);
}

.customer-tree-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 84px;
    padding: 1rem 1.15rem;
    color: #10170d;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(16, 23, 13, .08);
    border-radius: 1.4rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.customer-tree-link:hover {
    transform: translateY(-2px) scale(1.01);
    color: #10170d;
    border-color: rgba(128, 255, 39, .7);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
}

.customer-booking-accordion {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}

.customer-booking-accordion-inner {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.customer-booking-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
}

.customer-booking-accordion-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.customer-frame-stack {
    position: relative;
}

.customer-booking-open {
    overflow: hidden;
}

.customer-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: rgba(15, 17, 16, .56);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.customer-booking-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.customer-booking-modal-dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 980px);
    height: calc(100dvh - .5rem);
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(16, 23, 13, .08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}

.customer-booking-frame-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-height: 72px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(16, 23, 13, .08);
}

.customer-booking-inline-close {
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: .72;
}

.customer-booking-inline-close:hover {
    opacity: 1;
}

.customer-tree-link-icon,
.customer-tree-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.customer-tree-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(128, 255, 39, .24), rgba(128, 255, 39, .08));
    font-size: 1.2rem;
}

.customer-tree-link-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.customer-tree-link-copy strong {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
}

.customer-tree-link-copy small {
    margin-top: .2rem;
    color: #5f7055;
    font-size: .85rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-tree-link-arrow {
    color: #6c8159;
    font-size: 1.05rem;
}

.customer-tree-meta {
    margin-top: 1.25rem;
    padding: 1rem 1.2rem;
    color: #50614a;
    font-size: .9rem;
    line-height: 1.65;
    text-align: center;
}

.customer-tree-map-block {
    margin-top: 1rem;
}

.customer-tree-map-frame-wrap {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(16, 23, 13, .08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
}

.customer-tree-map-frame {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
}

.customer-tree-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1rem;
}

.customer-tree-socials-standalone {
    margin-top: 1rem;
}

.customer-tree-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #10170d;
    text-decoration: none;
    border: 1px solid rgba(16, 23, 13, .08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    font-size: 1.2rem;
}

.customer-tree-social-link:hover {
    color: #10170d;
    border-color: rgba(128, 255, 39, .7);
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .customer-tree-frame {
        border-radius: 1.6rem;
    }

    .customer-tree-backdrop {
        min-height: 260px;
    }

    .customer-tree-backdrop::after {
        bottom: -88px;
        width: 165%;
        height: 210px;
    }

    .customer-tree-body {
        margin-top: -138px;
        padding: 0 1rem 1.4rem;
    }

    .customer-tree-link {
        min-height: 78px;
        padding: .9rem 1rem;
        border-radius: 1.2rem;
    }

    .customer-tree-quick-actions {
        grid-template-columns: 1fr;
    }

    .customer-tree-link-copy strong {
        font-size: .95rem;
    }

    .customer-booking-modal-dialog {
        width: 100%;
    }

    .customer-booking-frame-head {
        min-height: 64px;
        padding: .85rem 1rem;
    }

    .customer-tree-map-frame {
        min-height: 240px;
    }
}
