/* ==========================================================
   TESSCRAFT — BASE CONDIVISA
   ========================================================== */

.tesscraft-property-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-height: 400px;
    border-radius: 24px;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.tesscraft-property-carousel__track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.tesscraft-property-carousel__slide {
    flex: 0 0 100%;
    height: 400px;
}

.tesscraft-property-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.tesscraft-property-carousel__prev,
.tesscraft-property-carousel__next {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 54px;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.tesscraft-property-carousel__prev { left: 18px; }
.tesscraft-property-carousel__next { right: 18px; }

/* Pallini carosello appartamento: nascosti di default */

.tesscraft-property-carousel__dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;

    display: none;
    gap: 8px;

    transform: translateX(-50%);
}

.tesscraft-property-carousel__dots button {
    width: 8px;
    height: 8px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.tesscraft-property-carousel__dots button.is-active {
    background: #FFFFFF;
    transform: scale(1.12);
}

.tesscraft-city-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: clamp(500px, 48vw, 650px);
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.tesscraft-city-carousel:active { cursor: grabbing; }

.tesscraft-city-carousel__track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.tesscraft-city-carousel__slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
}

.tesscraft-city-carousel__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 6, 0.18);
}

.tesscraft-city-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.tesscraft-city-carousel__slide figcaption {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #fff;
    font: 500 clamp(30px, 4vw, 54px) / 1.1 serif;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.tesscraft-city-carousel__dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.tesscraft-city-carousel__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tesscraft-city-carousel__dots button.is-active {
    background: #fff;
    transform: scale(1.12);
}

.tesscraft-phone-link,
.tesscraft-phone-link a,
.tesscraft-phone-link:visited,
.tesscraft-phone-link a:visited,
.tesscraft-phone-link:hover,
.tesscraft-phone-link a:hover,
.tesscraft-phone-link:focus,
.tesscraft-phone-link a:focus,
.tesscraft-phone-link:active,
.tesscraft-phone-link a:active {
    color: inherit !important;
    text-decoration: none !important;
}

/* ==========================================================
   HEADER — COLORI DELLE EDIZIONI
   ========================================================== */

/* 01 — EDIZIONE SALAMANCA */

body.tesscraft-edizione-salamanca {
    --tesscraft-header-background: #FCFAF8;
    --tesscraft-header-top-color: #FFFFFF;
    --tesscraft-header-scroll-color: #111111;
    --tesscraft-header-hamburger-top: #FFFFFF;
    --tesscraft-header-hamburger-scroll: #D1B274;
}


/* 02 — EDIZIONE LIPARI */

body.tesscraft-edizione-lipari {
    --tesscraft-header-background: #F9FAFA;
    --tesscraft-header-top-color: #F9FAFA;
    --tesscraft-header-scroll-color: #17343B;
    --tesscraft-header-hamburger-top: #F9FAFA;
    --tesscraft-header-hamburger-scroll: #8EBCC9;
}

/* EDIZIONE 3 — TOSCANA */
body.tesscraft-edizione-3-toscana {
    --tesscraft-header-hamburger-top: white;
    --tesscraft-header-hamburger-scroll: #9A4F3D;
}



/* ==========================================================
   COMPONENTI - STILE DELLE EDIZIONI
   ========================================================== */
   
   /* Carosello esperienze vicine — Lipari */

body.tesscraft-edizione-lipari .tesscraft-city-carousel {
    height: clamp(340px, 32vw, 430px);
}

body.tesscraft-edizione-lipari
.tesscraft-city-carousel__slide figcaption {
    font-family: "Lora", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 767px) {
    body.tesscraft-edizione-lipari .tesscraft-city-carousel {
        height: 370px;
    }

    body.tesscraft-edizione-lipari
    .tesscraft-city-carousel__slide figcaption {
        font-size: 30px;
        font-weight: 400;
    }
}

/* Carosello appartamento — Lipari */

body.tesscraft-edizione-lipari
.tesscraft-property-carousel {
    height: clamp(340px, 32vw, 430px);
    max-height: none;
    border-radius: 0;
}

body.tesscraft-edizione-lipari
.tesscraft-property-carousel__track {
    height: 100%;
}

body.tesscraft-edizione-lipari
.tesscraft-property-carousel__slide {
    height: 100%;
}

/* Nasconde le frecce solamente su Lipari */

body.tesscraft-edizione-lipari
.tesscraft-property-carousel__prev,

body.tesscraft-edizione-lipari
.tesscraft-property-carousel__next {
    display: none;
}

/* Mostra i pallini solamente su Lipari */

body.tesscraft-edizione-lipari
.tesscraft-property-carousel__dots {
    display: flex;
}

@media (max-width: 767px) {

    body.tesscraft-edizione-lipari
    .tesscraft-property-carousel {
        height: 370px;
    }

    body.tesscraft-edizione-lipari
    .tesscraft-property-carousel__slide {
        height: 100%;
    }

    body.tesscraft-edizione-lipari
    .tesscraft-property-carousel__dots {
        bottom: 20px;
    }
}


/* ==========================================================
   HEADER — STRUTTURA CONDIVISA
   ========================================================== */

.site-header-template-1 {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 9999;

    background: transparent;
    transform: translateY(0);

    transition:
        transform 0.45s cubic-bezier(.33, 1, .68, 1),
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;

    will-change: transform;
}


/* Header nascosto */

.site-header-template-1.is-hidden {
    transform: translateY(-100%);

    transition:
        transform 0.3s cubic-bezier(.4, 0, 1, 1);
}


/* Header durante lo scroll */

.site-header-template-1.is-scrolled {
    background-color:
        var(--tesscraft-header-background, #FCFAF8) !important;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.05);
}


/* Header in cima */

.site-header-template-1.is-top {
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
}


/* ==========================================================
   MENU DESKTOP
   ========================================================== */

@media (min-width: 769px) {

    .site-header-template-1.is-top a,
    .site-header-template-1.is-top .menu-item,
    .site-header-template-1.is-top .nav-link {
        color:
            var(--tesscraft-header-top-color, #FFFFFF) !important;
    }

    .site-header-template-1.is-scrolled a,
    .site-header-template-1.is-scrolled .menu-item,
    .site-header-template-1.is-scrolled .nav-link {
        color:
            var(--tesscraft-header-scroll-color, #111111) !important;
    }
}


/* ==========================================================
   LOGO
   ========================================================== */

#logo img {
    transition: opacity 0.15s ease;
}

#logo img.fade-out {
    opacity: 0;
}

#logo img.fade-in {
    opacity: 1;
}


/* ==========================================================
   HAMBURGER
   ========================================================== */

.hamburger-menu-template-1 {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 32px;
    height: 24px;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    z-index: 10000;
}

.hamburger-menu-template-1 span {
    display: block;

    width: 100%;
    height: 2px;

    border-radius: 999px;

    background-color:
        var(--tesscraft-header-hamburger-top, #FFFFFF);

    transition:
        background-color 0.3s ease;
}


/* Hamburger in cima */

.site-header-template-1.is-top
.hamburger-menu-template-1 span {
    background-color:
        var(--tesscraft-header-hamburger-top, #FFFFFF);
}


/* Hamburger durante lo scroll */

.site-header-template-1.is-scrolled
.hamburger-menu-template-1 span {
    background-color:
        var(--tesscraft-header-hamburger-scroll, #D1B274);
}


/* ==========================================================
   MENU OFF-CANVAS
   ========================================================== */

.aux-offcanvas-menu.aux-pin-right {
    box-shadow: none !important;
}

/* ==========================================================
   RESPONSIVE CONDIVISO
   ========================================================== */

@media (max-width: 767px) {
    .tesscraft-property-carousel__slide {
        height: 340px;
    }

    .tesscraft-property-carousel__prev,
    .tesscraft-property-carousel__next {
        font-size: 46px;
    }

    .tesscraft-city-carousel {
        height: 560px;
    }

    .tesscraft-city-carousel__dots {
        bottom: 20px;
    }
}

/* ==========================================================
   CAROSELLO APPARTAMENTO — EDIZIONE 3 TOSCANA
   Stesso stile del carosello esperienze
   ========================================================== */

body.tesscraft-edizione-3-toscana
.tesscraft-property-carousel {
    border-radius: 0;
}

/* Nasconde le frecce solamente su Toscana */

body.tesscraft-edizione-3-toscana
.tesscraft-property-carousel__prev,
body.tesscraft-edizione-3-toscana
.tesscraft-property-carousel__next {
    display: none;
}

/* Mostra i pallini solamente su Toscana */

body.tesscraft-edizione-3-toscana
.tesscraft-property-carousel__dots {
    display: flex;
}

@media (max-width: 767px) {

    body.tesscraft-edizione-3-toscana
    .tesscraft-property-carousel__dots {
        bottom: 20px;
    }
}

@media (max-width: 767px) {
    body.tesscraft-edizione-3-toscana
    .tesscraft-property-carousel {
        height: 453px;
        max-height: none;
    }

    body.tesscraft-edizione-3-toscana
    .tesscraft-property-carousel__slide {
        height: 453px;
    }
}

/* ==========================================================
   TESSCRAFT — EDIZIONE 3 TOSCANA / CAMERE
   Tre card desktop, una mobile. Stili isolati dal resto del sito.
   ========================================================== */
.tesscraft-edizione-3-toscana-rooms,
.tesscraft-edizione-3-toscana-rooms *,
.tesscraft-edizione-3-toscana-rooms *::before,
.tesscraft-edizione-3-toscana-rooms *::after { box-sizing: border-box; }

.tesscraft-edizione-3-toscana-rooms {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    background: transparent;
}
.tesscraft-edizione-3-toscana-rooms__carousel {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: default;
    -webkit-overflow-scrolling: touch;
}
.tesscraft-edizione-3-toscana-rooms__carousel::-webkit-scrollbar { display: none; }
.tesscraft-edizione-3-toscana-rooms__carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}
.tesscraft-edizione-3-toscana-room {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 300px 1fr;
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    min-width: 0;
    min-height: 680px;
    margin: 0;
    background: #F3F1ED;
    overflow: hidden;
    scroll-snap-align: start;
}
.tesscraft-edizione-3-toscana-room__media {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 300px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.tesscraft-edizione-3-toscana-rooms .tesscraft-edizione-3-toscana-room__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}
.tesscraft-edizione-3-toscana-room__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 300px;
    padding: 36px 28px;
}
.tesscraft-edizione-3-toscana-room__title {
    margin: 0 0 20px;
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.05;
    color: #292522;
    overflow-wrap: anywhere;
}
.tesscraft-edizione-3-toscana-room__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin: 0 0 22px;
    font-family: "Work Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #292522;
}
.tesscraft-edizione-3-toscana-room__details span { display: inline-flex; align-items: center; }
.tesscraft-edizione-3-toscana-room__details span:not(:last-child)::after {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 3px;
    margin: 0 12px;
    border-radius: 50%;
    background: #9A4F3D;
}
.tesscraft-edizione-3-toscana-room__description {
    margin: 0 0 20px;
    font-family: "Work Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #69635F;
}
.tesscraft-edizione-3-toscana-rooms .tesscraft-edizione-3-toscana-room__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: auto;
    padding: 16px 28px;
    border: 1px solid #9A4F3D;
    border-radius: 0;
    background: #9A4F3D;
    color: #FDFCF9;
    font-family: "Work Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}
.tesscraft-edizione-3-toscana-rooms .tesscraft-edizione-3-toscana-room__button:hover {
    background: transparent;
    color: #9A4F3D;
}
.tesscraft-edizione-3-toscana-rooms__dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 14px;
}
.tesscraft-edizione-3-toscana-rooms .tesscraft-edizione-3-toscana-rooms__dot {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.tesscraft-edizione-3-toscana-rooms__dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 20px;
    background: rgba(41, 37, 34, .25);
    transition: width 100ms ease, background-color 100ms ease;
}
.tesscraft-edizione-3-toscana-rooms__dot.is-active::before { width: 26px; background: #9A4F3D; }
.tesscraft-edizione-3-toscana-rooms a:focus-visible,
.tesscraft-edizione-3-toscana-rooms button:focus-visible {
    outline: 2px solid #9A4F3D;
    outline-offset: 3px;
}
@media (max-width: 700px) {
    .tesscraft-edizione-3-toscana-rooms__carousel { gap: 18px; cursor: grab; }
    .tesscraft-edizione-3-toscana-room {
        flex-basis: 100%;
        width: 100%;
        grid-template-rows: 340px 1fr;
        min-height: 720px;
        scroll-snap-align: center;
    }
    .tesscraft-edizione-3-toscana-room__media { height: 340px; }
    .tesscraft-edizione-3-toscana-room__content { padding: 42px 30px; }
    .tesscraft-edizione-3-toscana-room__title { font-size: 32px; }
    .tesscraft-edizione-3-toscana-rooms__dots { display: flex; }
}
@media (max-width: 390px) {
    .tesscraft-edizione-3-toscana-room__content { padding: 38px 24px; }
    .tesscraft-edizione-3-toscana-room__title { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    .tesscraft-edizione-3-toscana-rooms__carousel { scroll-behavior: auto; }
    .tesscraft-edizione-3-toscana-rooms *::before,
    .tesscraft-edizione-3-toscana-rooms * { transition: none !important; }
}

.tesscraft-edizione-3-toscana-room__media {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
