/* Approved swimming-area opening. Content remains native Elementor text and image widgets. */
@font-face {
    font-family: CMSJSensei;
    src: url('camping-swimming-hero/Sensei-Medium.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: CMSJCatamaran;
    src: url('camping-swimming-hero/Catamaran.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
/* The native hide_title setting removes the duplicate H1; collapse its empty theme wrapper. */
body.cmsj-swim-custom-title #sub-header {
    display: none;
}
#main .elementor .cmsj-swim-hero {
    --cmsj-swim-ink: #0a303a;
    --cmsj-swim-blue: #d5e6eb;
    --cmsj-swim-pink: #ffd9d2;
    --cmsj-swim-cream: #f4f1ea;
    --cmsj-swim-photo-height: min(calc((100vw - 128px) / 2.30175), 570px);
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0;
    padding: 26px 0 72px;
    overflow: visible;
    border: 0;
    background: #fff;
    color: var(--cmsj-swim-ink);
}
#main .elementor .cmsj-swim-hero::before {
    position: absolute;
    z-index: -1;
    inset: calc(var(--cmsj-swim-photo-height) + 14px) 0 0;
    content: '';
    background: var(--cmsj-swim-blue);
    pointer-events: none;
}
#main .elementor .cmsj-swim-hero::after {
    position: absolute;
    z-index: -1;
    top: calc(var(--cmsj-swim-photo-height) - 10px);
    left: 0;
    width: 100%;
    height: 24px;
    content: '';
    background: url('camping-swimming-hero/wave-blue.png') center / 100% 100% no-repeat;
    pointer-events: none;
}
#main .elementor .cmsj-swim-hero > .elementor-container {
    display: block;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
}
#main .elementor .cmsj-swim-hero .elementor-column {
    width: 100%;
    min-width: 0;
}
#main .elementor .cmsj-swim-hero .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    padding: 0;
}
#main .elementor .cmsj-swim-hero .elementor-widget {
    min-width: 0;
    margin-bottom: 0;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-canvas > .elementor-widget-wrap::after {
    position: absolute;
    right: 156px;
    bottom: 36px;
    width: 104px;
    height: 147px;
    content: '';
    background: url('camping-swimming-hero/Palmi.png') center / contain no-repeat;
    pointer-events: none;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-photo {
    position: relative;
    isolation: isolate;
    width: calc(100% - 128px);
    margin-inline: auto;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-photo::before {
    position: absolute;
    z-index: -1;
    inset: 4px -6px -24px -12px;
    content: '';
    background: var(--cmsj-swim-pink);
    -webkit-mask: url('camping-swimming-hero/photo-mask.svg') center / 100% 100% no-repeat;
    mask: url('camping-swimming-hero/photo-mask.svg') center / 100% 100% no-repeat;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.30175;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask: url('camping-swimming-hero/photo-mask.svg') center / 100% 100% no-repeat;
    mask: url('camping-swimming-hero/photo-mask.svg') center / 100% 100% no-repeat;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-caption {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: 568px;
    max-width: calc(100% - 176px);
    margin: -286px 0 0 88px;
    padding: 37px 54px 19px;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-caption::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
    background: var(--cmsj-swim-cream);
    -webkit-mask: url('camping-swimming-hero/photo-mask.svg') center / 100% 100% no-repeat;
    mask: url('camping-swimming-hero/photo-mask.svg') center / 100% 100% no-repeat;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-caption > .elementor-container {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-title .elementor-heading-title {
    margin: 0;
    color: var(--cmsj-swim-ink);
    font: 400 52px/1.25 CMSJSensei, sans-serif;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-intro {
    margin-top: 20px;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-intro,
#main .elementor .cmsj-swim-hero .cmsj-swim-intro p {
    color: var(--cmsj-swim-ink);
    font: 400 22px/1.4 CMSJCatamaran, sans-serif;
    overflow-wrap: anywhere;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-intro p {
    margin: 0;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-booking {
    margin-top: 32px;
}
#main .elementor .cmsj-swim-hero .elementor-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 13px 24px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    font: 800 18px/1.4 CMSJCatamaran, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
#main .elementor .cmsj-swim-hero .elementor-button-content-wrapper {
    min-width: 0;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-booking .elementor-button {
    min-width: 254px;
    color: #fff;
    background: var(--cmsj-swim-ink);
}
#main .elementor .cmsj-swim-hero .cmsj-swim-booking .elementor-button:is(:hover, :active) {
    background: #164d59;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-details {
    margin-top: 5px;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-details .elementor-button {
    justify-content: flex-start;
    min-height: 48px;
    padding: 9px 0;
    border-radius: 0;
    color: var(--cmsj-swim-ink);
    background: transparent;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
#main .elementor .cmsj-swim-hero .cmsj-swim-details .elementor-button:is(:hover, :active) {
    color: #ad2a10;
    background: transparent;
    text-decoration-thickness: 2px;
}
#main .elementor .cmsj-swim-hero a:focus-visible {
    outline: 3px solid #ad2a10;
    outline-offset: 5px;
}
#main .elementor .cmsj-swim-hero ::selection {
    color: var(--cmsj-swim-ink);
    background: #ffc1b9;
}
#main .elementor #cmsj-pool-details {
    scroll-margin-top: 24px;
}
@media (min-width: 768px) and (max-width: 1100px) {
    #main .elementor .cmsj-swim-hero {
        --cmsj-swim-photo-height: calc((100vw - 64px) / 1.8);
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-photo {
        width: calc(100% - 64px);
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-photo img {
        aspect-ratio: 1.8;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-caption {
        margin-left: 48px;
        margin-top: -160px;
        max-width: calc(100% - 96px);
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-canvas > .elementor-widget-wrap::after {
        right: 48px;
        bottom: 12px;
        width: 82px;
        height: 116px;
    }
}
@media (max-width: 767px) {
    #main .elementor .cmsj-swim-hero {
        --cmsj-swim-photo-height: calc((100vw - 32px) / 1.22603);
        padding: 6px 0 144px;
    }
    #main .elementor .cmsj-swim-hero::before {
        top: calc(var(--cmsj-swim-photo-height) - 30px);
    }
    #main .elementor .cmsj-swim-hero::after {
        display: none;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-photo {
        width: calc(100% - 32px);
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-photo::before {
        inset: 8px -6px -12px -4px;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-photo img {
        aspect-ratio: 1.22603;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-caption {
        width: calc(100% - 36px);
        max-width: none;
        margin: -54px auto 0;
        padding: 39px 30px 42px;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-title .elementor-heading-title {
        font-size: clamp(29px, 8.72vw, 34px);
        line-height: 1.34;
        text-wrap: pretty;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-intro {
        margin-top: 26px;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-intro,
    #main .elementor .cmsj-swim-hero .cmsj-swim-intro p {
        font-size: 20px;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-booking .elementor-button {
        width: 100%;
        min-width: 0;
        padding-inline: 16px;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-details {
        margin-top: 12px;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-details .elementor-button {
        font-size: 17px;
    }
    #main .elementor .cmsj-swim-hero .cmsj-swim-canvas > .elementor-widget-wrap::after {
        right: 35px;
        bottom: -94px;
        width: 75px;
        height: 106px;
    }
}
