body {
    font-family: 'Raleway' !important;
    overflow-x: hidden;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* immagine */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    z-index: 0;
}

/* overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* contenuto */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 2px 2px 10px rgb(0 0 0);
}


/* Testo principale in basso */
.hero h1 {
    font-size: 2.4rem;
    font-family: 'Zapfino', cursive !important;

}

.hero h2 {
    font-size: 3.4rem;
    margin-top: -1%;
}


@media (max-width:575.98px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 576px) and (max-width:991.98px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero h2 {
        font-size: 2.1rem;
    }
}

@media (min-width: 992px) and (max-width:1399.98px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2.4rem;
    }
}



.pool-section {
    background: #F0F1F1;

}

.pool-title {
    font-size: 3.5rem;
}

.pool-subtitle {
    color: #9EC042;
    font-style: italic;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 10px;
}

.pool-content p {
    line-height: 1.7;
    font-size: 1.5rem;
}

.pool-img-small img {
    width: 100%;
    display: block;
}

.pool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1s ease;
}

.hidden-fade {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.show-left {
    opacity: 1;
    transform: translateX(0);
}

.show-fade {
    opacity: 1;
}

/* mobile */
@media (max-width: 992px) {
    .pool-title {
        font-size: 2rem;
    }

    .pool-content p {
        font-size: 1rem;
    }

    .pool-img-small img {
        margin-bottom: 20px;
    }
}

.carousel-advanced {
    overflow: hidden;
    position: relative;
    width: 100%;
    touch-action: pan-y;
    cursor: grab;
}

.carousel-advanced.is-dragging {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 40px;
    will-change: transform;
    transition: transform 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
    transform: translate3d(0, 0, 0);
}

.carousel-track img,
.carousel-track h3,
.carousel-track p {
    pointer-events: none;
}

.carousel-item-custom {
    flex: 0 0 72%;
    opacity: 0.35;
    transform: scale(0.88);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-item-custom.active {
    opacity: 1;
    transform: scale(1);
}

.food-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: #fff;
    min-height: 420px;
}

.food-card__image-wrap {
    height: 100%;
}

.food-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.food-card__content {
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.food-card__title {
    font-size: 2.2rem;
    line-height: 1.05;
    margin-bottom: 22px;
    font-weight: 700;
    color: #0b1b2b;
}

.food-card__text {
    margin: 0 0 26px;
    line-height: 1.7;
    color: #4f5b66;
    font-size: 1.2rem;
}

.food-card__link {
    color: #9EC042;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.45rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.food-card__link::after {
    content: "›";
    font-size: 2rem;
    line-height: 1;
    margin-top: -2px;
}

@media (max-width: 1199.98px) {
    .carousel-item-custom {
        flex: 0 0 82%;
    }

    .food-card {
        grid-template-columns: 1.7fr 1fr;
        min-height: 360px;
    }

    .food-card__content {
        padding: 32px 28px;
    }

    .food-card__title {
        font-size: 1.8rem;
    }

    .food-card__text {
        font-size: 1rem;
    }

    .food-card__link {
        font-size: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .carousel-track {
        gap: 20px;
    }

    .carousel-item-custom {
        flex: 0 0 88%;
    }

    .food-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .food-card__image {
        height: 280px;
    }

    .food-card__content {
        padding: 24px 22px;
    }

    .food-card__title {
        font-size: 1.7rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item-custom {
        flex: 0 0 92%;
    }

    .food-card__image {
        height: 220px;
    }

    .food-card__content {
        padding: 20px 18px;
    }

    .food-card__title {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .food-card__text {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .food-card__link {
        font-size: 1.05rem;
    }
}

.home-articles-section {
    position: relative;
    padding: 50px 0 70px;
    background: url('../images/home/piscina-cascate109.webp') center / cover no-repeat;
    overflow: hidden;
}

.home-articles-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.17);
}

.home-articles-container {
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 95px;
}

.home-article-card {
    position: relative;
    min-height: 410px;
    height: 100%;
    padding: 110px 28px 28px;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
}

.home-article-thumb-wrap {
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    width: 165px;
    height: 165px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
}

.home-article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-article-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-article-title {
    margin-bottom: 22px;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #0f1720;
}

.home-article-text {
    flex-grow: 1;
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.35;
    color: #8f8f8f;
}

.home-article-separator {
    height: 1px;
    margin-bottom: 22px;
    background: #dddddd;
}

.home-article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #0f1720;
}

.home-article-icon {
    font-size: 1rem;
    line-height: 1;
}

.home-articles-mobile-controls {
    display: none;
}

@media (max-width: 991.98px) {
    .home-articles-section {
        padding: 90px 0 50px;
    }

    .home-article-card {
        min-height: 380px;
    }
}
@media (min-width: 768px) {
    .home-article-card {
        cursor: pointer;
        transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    }

    .home-article-thumb-wrap {
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .home-article-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
        background: rgba(255, 255, 255, 1);
    }

    .home-article-card:hover .home-article-thumb-wrap {
        transform: translateX(-50%) scale(1.06);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
      .home-article-title {
        transition: color 0.3s ease;
    }

    .home-article-card:hover .home-article-title {
        color: #9EC042;
    }
}
@media (max-width: 767.98px) {
    .home-articles-section {
        padding: 80px 0 40px;
    }

    .home-articles-container {
        overflow-x: hidden;
        overflow-y: visible;
        padding-top: 50px;
    }

    .home-articles-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        margin: 0 !important;
        gap: 0 !important;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        transition: transform 0.45s ease;
    }

    .home-articles-row > .home-article-slide {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 12px !important;
    }

    .home-article-card {
        min-height: auto;
        padding: 100px 22px 24px;
    }

    .home-article-thumb-wrap {
        top: -50px;
        width: 140px;
        height: 140px;
    }

    .home-article-title {
        font-size: 1.35rem;
    }

    .home-articles-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-top: 24px;
    }

    .home-articles-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        color: #0f1720;
    }

    .home-articles-dots {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .home-articles-dot {
        width: 10px;
        height: 10px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.45);
    }

    .home-articles-dot.active {
        background: #fff;
    }
}

/* Icona della freccia */
.arrow-icon {
    position: absolute;
    bottom: 2%;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    animation: bounce 2s infinite;
}

/* Animazione della freccia */
@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}



/* SEZIONE FILOSIA SpEace */

.filosofia-speace {
    background-image: url('../images/sole.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    opacity: 0.8;
}

.speace-box p {
    font-size: 2.5rem !important;
}

@media (max-width: 575.98px) {
    .speace-box p {
        font-size: 1.3rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .speace-box p {
        font-size: 1.5rem !important;
    }
}




/* SEZIONE VIDEO  APE*/
.media-section {
    background-color: #F0F1F1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 3%;
    padding-top: 4%;
    padding-bottom: 4%;
}

.media-left {
    width: 38%;
    margin: 10px;
    align-self: center;
    position: relative;
    display: flex;
    justify-content: center;
}

.media-left video {
    width: 95%;
    max-height: 470px;
    display: block;
}

.coordinates {
    position: absolute;
    bottom: -105px;
    left: 23%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
}

.overlay-image {
    position: absolute;
    top: -19%;
    left: 37%;
    transform: translate(-50%, -50%);
    width: 23%;
    z-index: -1;
}

.media-right {
    width: 60%;
}


.media-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 429.98px) {
    .overlay-image {
        top: -2%;
        left: 26%;
    }

    .coordinates {
        bottom: -22%;
        left: 3%;
        font-size: 0.5rem;
    }

    .media-left video {
        width: 93%;
    }
}

@media (min-width: 430px) and (max-width: 575.98px) {
    .overlay-image {
        top: -1%;
        left: 26%;
    }

    .coordinates {
        bottom: -22%;
        left: 3%;
        font-size: 0.6rem;
    }

    .media-left video {
        width: 93%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .overlay-image {
        top: 0%;
        width: 23%;
    }

    .coordinates {
        bottom: -17%;
        left: 4%;
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .overlay-image {
        top: 1%;
    }

    .coordinates {
        bottom: -15%;
        left: 4%;
        font-size: 0.8rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .overlay-image {
        top: 2%;
        width: 24%;
    }

    .coordinates {
        bottom: -13%;
        left: 5%;
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px)and (max-width: 1399.97px) {
    .media-left video {
        max-height: 410px;
    }

    .overlay-image {
        top: -5%;
        left: 37%;
        width: 25%;
    }

    .coordinates {
        bottom: -17%;
        left: 17%;
        font-size: 1rem;
    }
}

@media (min-width: 1400px) and (max-width: 1599.97px) {
    .media-left video {
        max-width: 473px;
    }

    .overlay-image {
        top: -14%;
        left: 38%;
        width: 25%;
    }

    .coordinates {
        bottom: -20%;
        left: 22%;
        font-size: 1.4rem;
    }
}

@media (min-width: 1900px) and (max-width: 2199.98px) {
    .overlay-image {
        top: -25%;
        left: 42%;
        width: 23%;
        height: 52%;
    }

    .coordinates {
        bottom: -20%;
        left: 27%;
        font-size: 1.5rem;
    }
}

@media (min-width: 2200px) and (max-width: 2499.98px) {
    .media-section video {
        max-height: 700px;
    }

    .overlay-image {
        top: -4%;
        left: 42%;
        width: 23%;
        height: 52%;
    }

    .coordinates {
        bottom: -20%;
        left: 21%;
        font-size: 2rem;
    }
}

@media (min-width: 2500px) {
    .media-section video {
        max-height: 700px;
    }

    .coordinates {
        bottom: -20%;
        left: 24%;
        font-size: 2rem;
    }

    .overlay-image {
        top: -15%;
        left: 42%;
        width: 23%;
        height: 52%;
    }
}

/* SEZIONE BOAT */
#boat {
    background-image: url('../images/boat.png');
    background-size: 500px auto;
    background-repeat: no-repeat;
    background-position: bottom right;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    opacity: 0.8;
}


.hidden {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}





/* SECTION ESPERIENZE */
.esperienze {
    background-image: url('../images/vine.png');
    background-size: 40% auto;
    background-repeat: no-repeat;
    background-position: bottom right;
    /* Modifica qui */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    opacity: 0.8;
}

.esperienze h3 {
    font-size: 2.5rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.esperienze h3.show-from-bottom {
    opacity: 1;
    transform: translateY(0);
}

.esperienze .formule p {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.esperienze .formule p.show-from-left {
    opacity: 1;
    transform: translateX(0);
}

.formule {
    width: 55%;
}

@media (max-width: 767.98px) {
    .esperienze {
        background-size: 80% auto;
        margin-bottom: 20%;
    }

    .esperienze h3 {
        font-size: 1.3rem;
    }

    .formule {
        width: 100%;
    }

    .lead {
        font-size: 0.9rem !important;
    }
}


@media (min-width: 768px) and (max-width: 991.98px) {
    .esperienze {
        background-size: 60% auto;
    }

    .esperienze h3 {
        font-size: 1.9rem;
    }

    .formule {
        width: 70%;
    }

    .lead {
        font-size: 1.2rem !important;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .esperienze {
        background-size: 50% auto;
    }

    .esperienze h3 {
        font-size: 2.5rem;
    }

    .formule {
        margin-left: 4%;
    }
}



@media (min-width: 1400px) {
    .esperienze {
        background-size: 40% auto;
    }

}

@media (min-width: 1600px) {
    .esperienze {
        background-size: 30% auto;
    }

    .esperienze h3 {
        font-size: 3.5rem;
    }

    .formule {
        width: 59%;
    }

    .lead {
        font-size: 1.5rem !important;
    }

}



/* SECTION NEWS */

.box-news {
    max-width: 645px;
    padding: 28px;
    border: 4px solid #d32f2f;
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 8%;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.6s ease-out;

    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

.box-news.show {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}


.ribbon {
    top: -37px;
    left: -53px;
    position: absolute;
    width: 34%;
}

.title {
    position: absolute;
    top: -29px;
    right: -80px;
}

.title h4 {
    font-style: italic;
    font-size: 30px;
    font-weight: bold;
    color: #d32f2f;
    background: white;
    padding: 10px 15px;
    margin: 0;
}

.ribbon h4 {
    position: absolute;
    top: 31%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 27px;
    color: #ffffff;
    white-space: nowrap;
}

.content {
    font-size: 17px;
    color: #333;
    line-height: 1;
}

.content p {
    margin-bottom: 0;
    text-align: justify;
}

.content strong {
    color: black;
}

@media (max-width: 429.98px) {
    .box-news {
        max-width: 330px;
    }

    .content {
        font-size: 15px;
    }

    .ribbon h4,
    .title h4 {
        font-size: 14px;
    }

    .title {
        top: -22px;
        right: -16px;
    }

    .ribbon {
        top: -22px;
        left: -26px;
        width: 30%;
    }

}

@media (min-width: 430px) and (max-width: 767.98px) {
    .box-news {
        max-width: 380px;
    }

    .ribbon {
        top: -22px;
        left: -26px;
        width: 30%;
    }

    .ribbon h4 {
        font-size: 16px;
    }

    .title {
        top: -26px;
        right: 19px;
    }

    .title h4 {
        font-size: 16px
    }
}


@media (min-width: 768px) and (max-width: 1199.98px) {
    .box-news {
        max-width: 600px;
    }

    .ribbon {
        top: -29px;
        left: -48px;
        width: 33%;
    }

    .title {
        top: -26px;
        right: 28px;
    }

    .title h4,
    .ribbon h4 {
        font-size: 23px
    }
}

@media (min-width: 1600px) {
    .box-news {
        max-width: 690px;
    }

    .content {
        font-size: 23px;
    }

    .ribbon {
        top: -56px;
        left: -73px;
        width: 35%;
    }

    .title {
        top: -32px;
    }

    .title h4,
    .ribbon h4 {
        font-size: 32px
    }
}

/* SPAZIO ALLA CONDIVISIONE */

.box-condivisione {
    width: 36%;
    font-size: 27px;
}

.condivisione h3 {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.condivisione img {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.condivisione p {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.condivisione.show h3 {
    opacity: 1;
    transform: translateY(0);
}

.condivisione.show img {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.condivisione.show p:nth-of-type(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.6s;
}

.condivisione.show p:nth-of-type(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.9s;
}

@media (max-width: 576px) {

    .condivisione h3,
    .condivisione img,
    .condivisione p {
        transition: none !important;
        /* Rimuove l'animazione */
        transform: none !important;
        /* Evita lo spostamento iniziale */
        opacity: 1 !important;
        /* Mostra subito gli elementi */
    }
}

@media (max-width: 991.98px) {
    .condivisione h3 {
        font-size: 1.5rem !important;
    }

    .img-text {
        flex-direction: column !important;
        padding: 0 !important;
    }

    .img-text img {
        width: 100%;
    }

    .box-condivisione {
        padding: 3%;
        width: 100%;
        font-size: 20px;
        text-align: left !important;
    }

    .box-condivisione p {
        margin-bottom: 1rem !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .condivisione h3 {
        font-size: 2.3rem;
    }

    .condivisione,
    .img-text {
        padding: 0 !important;
    }

    .img-text div {
        width: 48%;
    }

    .img-text img {
        width: 100%;
    }

    .img-text p {
        font-size: 1.5rem;
    }
}

@media (min-width: 1600px) {
    .img-text div {
        width: 48%;
    }

    .box-condivisione {
        font-size: 2.25rem;
    }
}

/* PET FRIENDLY */

.pet-home {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.pet-home.show {
    opacity: 1;
    transform: translateY(0);
}


.pet-friendly-card {
    width: 65%;
    border: 7px solid #9ec042 !important;
    border-radius: 15px;
    text-align: center;
    position: relative !important;
}

.pet-friendly-card .card-body {
    width: 84%;
    text-align: center;
    margin: 0 auto;
}

.pet-friendly-card p {
    font-size: 1.26rem;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

.paws-img,
.dog-img {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.paws-img {
    width: 11%;
    top: -40px;
    left: 22px;
    transform: rotate(-20deg) translateX(-50px) !important;

}

.dog-img {
    width: 18%;
    bottom: -106px;
    right: -32px;
    border-radius: 100%;
    transform: translateX(50px);
}

.paws-img.show,
.dog-img.show {
    opacity: 1;
    transform: translateX(0);
}


@media (max-width: 429.98px) {
    .pet-friendly-card {
        width: 93%;
    }

    .pet-friendly-card .card-body {
        width: 100%;
    }

    .pet-friendly-card .card-body h3 {
        font-size: 1.2rem !important;
    }

    .pet-friendly-card p {
        font-size: 1rem;
    }

    .paws-img {
        width: 16%;
        top: -13%;
        left: 8%;
    }

    .dog-img {
        width: 24%;
        bottom: -11%;
        right: -3%;
    }

    .paws-img,
    .dog-img,
    .pet-home {
        transition: none !important;
        /* Rimuove l'animazione */
        opacity: 1 !important;
        /* Mostra subito gli elementi */
    }

    .dog-img,
    .pet-home {
        transform: none;

    }
}

@media (min-width:430px) and (max-width: 575.98px) {
    .pet-friendly-card {
        width: 93%;
    }

    .pet-friendly-card .card-body {
        width: 100%;
    }

    .pet-friendly-card .card-body h3 {
        font-size: 1.3rem !important;
    }

    .pet-friendly-card p {
        font-size: 1rem;
    }

    .paws-img {
        width: 15%;
        top: -15%;
        left: 6%;
    }

    .dog-img {
        width: 24%;
        bottom: -14%;
        right: -3%;
    }

    .paws-img,
    .dog-img,
    .pet-home {
        transition: none !important;
        /* Rimuove l'animazione */
        opacity: 1 !important;
        /* Mostra subito gli elementi */
    }

    .dog-img,
    .pet-home {
        transform: none;

    }
}


@media (min-width: 576px) and (max-width: 767.98px) {
    .pet-friendly-card {
        width: 93%;
    }

    .pet-friendly-card .card-body {
        width: 93%;
    }

    .pet-friendly-card .card-body h3 {
        font-size: 1.3rem !important;
    }

    .pet-friendly-card p {
        font-size: 1rem;
    }

    .paws-img {
        width: 15%;
        top: -15%;
        left: 6%;
    }

    .dog-img {
        width: 24%;
        bottom: -25%;
        right: -3%;
    }

    .paws-img,
    .dog-img,
    .pet-home {
        transition: none !important;
        /* Rimuove l'animazione */
        opacity: 1 !important;
        /* Mostra subito gli elementi */
    }

    .dog-img,
    .pet-home {
        transform: none;

    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .pet-friendly-card .card-body {
        width: 92%;
    }

    .pet-friendly-card {
        width: 97%;
    }


    .pet-friendly-card p {
        font-size: 1rem;
    }

    .pet-friendly-card .card-body h3 {
        font-size: 1.7rem !important;
    }

    .dog-img {
        bottom: -28%;
        right: -3%;
    }

    .paws-img {
        width: 16%;
        top: -15%;
        left: 3%;
    }

    .paws-img,
    .dog-img,
    .pet-home {
        transition: none !important;
        /* Rimuove l'animazione */
        opacity: 1 !important;
        /* Mostra subito gli elementi */
    }

    .dog-img,
    .pet-home {
        transform: none;

    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .pet-friendly-card .card-body {
        width: 101%;
    }

    .pet-friendly-card {
        width: 95%;
    }

    .pet-friendly-card .card-body h3 {
        font-size: 1.7rem !important;
    }

    .dog-img {
        bottom: -41%;
        right: -2%;
        width: 16%;
    }

    .paws-img {
        width: 10%;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .pet-friendly-card {
        width: 85%;
    }

    .pet-friendly-card .card-body {
        width: 93%;
    }

    .dog-img {
        bottom: -45%;
        right: -2%;
        width: 17%;
    }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
    .pet-friendly-card {
        width: 70%;
    }

    .pet-friendly-card .card-body {
        width: 93%;
    }

    .dog-img {
        bottom: -48%;
    }
}

@media (min-width: 1600px) and (max-width:1899.98px) {
    .pet-friendly-card {
        width: 68%;
    }

    .pet-friendly-card .card-body {
        width: 100%;
    }

    .pet-friendly-card p {
        font-size: 2rem;
    }

    .card-body h3 {
        font-size: 3rem;
    }

    .paws-img {
        width: 12%;
    }

    .dog-img {
        bottom: -24%;
    }
}

@media (min-width: 1900px) and (max-width: 2199.98px) {
    .pet-friendly-card {
        width: 75%;
    }

    .pet-friendly-card .card-body {
        width: 93%;
    }

    .pet-friendly-card p {
        font-size: 2.4rem;
    }

    .card-body h3 {
        font-size: 3.5rem;
    }

    .paws-img {
        width: 14%;
        top: -10%;
        left: -3%;
    }

    .dog-img {
        width: 16%;
        bottom: -19%;
    }
}

@media (min-width: 2200px) and (max-width: 2499.98px) {
    .card-body h3 {
        font-size: 3.5rem;
        width: 99%;
    }

    .pet-friendly-card p {
        font-size: 2.3rem;
        width: 96%;
    }

    .dog-img {
        width: 16%;
        bottom: -28%;
    }
}


@media (min-width:2500px) {

    .paws-img {
        width: 10%;
        top: -15%;
        left: -2%;
    }

    .pet-friendly-card .card-text {
        width: 96%;
    }

    .dog-img {
        width: 12%;
        bottom: -26%;
    }
}

/* SPAZIO LIBERTA' */

.spazio-liberta {
    margin-top: 10%;
    position: relative;
    background-image: url('../images/bed.webp');
    background-size: cover;
    background-position: center;
    height: 89vh;
    color: white;
    opacity: 0;

}

.spazio-liberta-text {
    opacity: 0;
}

.spazio-liberta h3 {
    font-size: 3.5rem;
    margin-top: 8%;
    margin-bottom: -1%;
    font-family: 'Zapfino', cursive;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.spazio-liberta h4 {
    font-size: 5rem;
}

.spazio-liberta .stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
    width: 70%;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.spazio-liberta .stats div {
    margin: 1rem;
}

.spazio-liberta .stats strong {
    font-weight: 300;
    font-size: 3.5rem;
}

.spazio-liberta .stats .k-small {
    font-size: 2rem;
}

@media (max-width: 575.98px) {
    .spazio-liberta h3 {
        font-size: 1.5rem;
        margin-bottom: -1%;
    }

    .spazio-liberta h4 {
        font-size: 1.9rem;
    }

    .spazio-liberta .stats strong {
        font-size: 2rem;
    }

    .spazio-liberta .stats {
        justify-content: space-evenly;
        margin-top: 0;
        width: 100%;
    }

    .spazio-liberta .stats div>span:last-of-type {
        font-size: 0.8rem;
    }
}

@media (min-width: 576px) and (max-width:767.98px) {
    .spazio-liberta h3 {
        font-size: 2.4rem;
    }

    .spazio-liberta h4 {
        font-size: 2.8rem;
    }

    .spazio-liberta .stats strong {
        font-size: 2.5rem;
    }

    .spazio-liberta .stats {
        justify-content: space-evenly;
        margin-top: 0;
        width: 100%;
    }

    .spazio-liberta .stats div>span:last-of-type {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width:1199.98px) {
    .spazio-liberta h3 {
        font-size: 2.4rem;
    }

    .spazio-liberta .stats strong {
        font-size: 2.5rem;
    }

    .spazio-liberta .stats {
        justify-content: space-evenly;
        margin-top: 0;
        width: 90%;
    }

    .spazio-liberta .stats div>span:last-of-type {
        font-size: 1.2rem;
    }
}

/* ROOM CONTAINER */

.room-container {
    margin: auto;
    padding: 40px 0;
    transform: translateX(-100%);

    opacity: 0;

    transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}

.room-container.show {
    transform: translateX(0);

    opacity: 1;

}

.room-list a {
    font-size: 1rem !important;
    display: block;
    padding: 10px 15px;
    font-size: 18px;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid #ccc;
}

.room-list a.active {
    color: #9EC042;
    font-weight: bold;
}

.room-list a:hover {
    color: #9EC042;
}

.room-details {
    padding: 20px;
}

.room-details i::before {
    font-size: 20px;

    width: 20px;

    height: 20px;

    display: inline-block;

    text-align: center;

    line-height: 20px;

}

.room-title {
    font-size: 24px;
    font-weight: bold;
}

.facility-icon {
    color: #9EC042;
    margin-right: 10px;
}

.book-btn {
    background-color: transparent;

    color: #9EC042;

    padding: 10px 20px;
    border: 2px solid #9EC042;

    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;

}

.book-btn:hover {
    background-color: #9EC042;

    color: white;

}

#room-image {
    width: 100%;
    height: 393px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

#room-image.show {
    opacity: 1;
}

@media (max-width: 429.98px) {
    #room-image {
        height: 180px;
    }

    .room-container .row {
        width: 100%;
    }
}

@media (min-width: 430px) and (max-width: 575.98px) {
    #room-image {
        height: 207px;
    }

    .room-container .row {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #room-image {
        height: 320px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #room-image {
        height: 447px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #room-image {
        height: 596px;
    }
}



/* SPAZIO GIOCHI */

.space-play {
    position: relative;
}

.space-play img {
    border-radius: 10px;
    margin: 5px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.vertical-img {
    height: 100%;
    object-fit: cover;
}

.testo-immagine {
    position: absolute;
    top: 5%;
    left: 42%;
    width: 49% !important;
    text-align: start;
    color: #000;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.testo-immagine h3 {
    font-size: 2.5rem;
    font-weight: 300;
}


@media (max-width: 429.98px) {
    .space-play img {
        margin: 0px;
        margin-bottom: 2%;
    }

    .testo-immagine h3 {
        font-size: 1.2rem;
        opacity: 1;
        transition: none;
    }

    .testo-immagine {
        left: 0;
        top: -4%;
        text-align: center;
        width: 100% !important;
    }

    .space-play {
        margin-top: 20% !important;
    }
}


@media (min-width: 430px) and (max-width: 767.98px) {
    .space-play img {
        margin: 0px;
        margin-bottom: 2%;
    }

    .testo-immagine h3 {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .testo-immagine {
        left: 0;
        top: -4%;
        text-align: center;
        width: 100% !important;
        opacity: 1;
        transition: none;
    }

    .space-play {
        margin-top: 20% !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .space-play img {
        margin: 0px;
        margin-bottom: 2%;
    }

    .last-img {
        height: auto !important;
    }

    .testo-immagine h3 {
        font-size: 2rem;
        font-weight: 700;
    }

    .space-play {
        margin-top: 20% !important;
    }

    .testo-immagine {
        left: 0;
        top: -4%;
        text-align: center;
        width: 100% !important;
        opacity: 1;
        transition: none;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .last-img {
        height: 297px !important;
    }

    .testo-immagine h3 {
        font-size: 1.7rem;
    }

    .testo-immagine {
        left: 42%;
        top: 4%;
        width: 50% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .last-img {
        height: 366px !important;
    }

    .testo-immagine h3 {
        font-size: 2rem;
    }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
    .last-img {
        height: 431px !important;
    }

    .testo-immagine h3 {
        font-size: 2.38rem;
    }
}

@media (min-width: 1900px) {
    .last-img {
        height: 73.5% !important;
    }
}

/* FOTO PISCINA */

.full-image {
    width: 100%;
    height: 805px;
    object-fit: cover;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}


.full-image.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SPA */

.spa {
    height: 805px;
    background-image: url("../images/albero.png");
    background-size: 22% auto;
    background-position: right center;
    background-repeat: no-repeat;
    position: relative;
}

.spa-title {
    margin-top: 5%;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5%;
}

.spa-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 36%;
}


.spa-logo-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 30%;
}

.logo-spa {
    width: 200px;
    margin-bottom: 10%;
}


.row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
}


.spa-video {
    position: absolute;
    top: 35%;
    left: 40%;
    transform: translate(-50%, -50%) !important;
    width: 18% !important;
    height: auto;
}

.spa-logo-wrapper button {
    width: auto;
    max-width: 200px;
    align-self: center;
}

.spa-title,
.spa-description,
.spa-logo-wrapper,
.spa-video {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

.spa-title.show,
.spa-description.show,
.spa-logo-wrapper.show,
.spa-video.show {
    transform: scale(1);
    opacity: 1;
}

@media (max-width: 575.98px) {
    .spa-image {
        opacity: 0;
    }

    .spa-video {
        top: 25%;
        left: 50%;
        width: 78% !important;
    }

    .spa-description {
        margin-bottom: 1%;
    }

    .spa-logo-wrapper {
        margin-top: 5%;
    }

    .spa-logo-wrapper .d-flex {
        justify-content: space-evenly !important;
    }

    .logo-spa {
        width: 150px;
    }

    .passione {
        margin-top: 85%;
    }
}



@media (min-width: 576px) and (max-width: 767.98px) {
    .spa-image {
        opacity: 0;
    }

    .spa-video {
        top: 30%;
        left: 50%;
        width: 74% !important;
    }

    .spa-description {
        margin-bottom: 1%;
    }

    .spa-logo-wrapper {
        margin-top: 5%;
    }

    .spa-logo-wrapper .d-flex {

        justify-content: space-evenly !important;
    }

    .logo-spa {
        width: 150px;
    }

    .passione {
        margin-top: 85%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .img-spa .h-100 {
        height: 100% !important;
        width: 58% !important;
    }

    .spa-video {
        top: 28%;
        left: 60%;
        width: 30% !important;
    }

    .spa-description {
        margin-bottom: 1%;
    }

    .spa-logo-wrapper {
        margin-top: 5%;
    }

    .spa-logo-wrapper .d-flex {

        justify-content: space-evenly !important;
    }

    .logo-spa {
        width: 150px;
    }

    .passione {
        margin-top: 45%;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .spa {
        height: 100%;
    }

    .spa-video {
        top: 30% !important;
    }

    .spa-title {
        font-size: 1.8rem;
        margin-top: 0%;
    }

    .spa-description {
        font-size: 1rem;
        margin-bottom: 0%;
    }

    .spa-logo-wrapper {
        margin-top: 5%;
    }

    .logo-spa {
        width: 150px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .spa {
        height: 100%;
    }

    .spa-video {
        top: 30% !important;
    }

    .spa-title {
        font-size: 2.3rem;
        margin-top: 0%;
    }

    .spa-description {
        font-size: 1.4rem;
        margin-bottom: 0%;
    }

    .spa-logo-wrapper {
        margin-top: 5%;
    }

    .logo-spa {
        width: 150px;
    }
}

@media (min-width: 1600px) and (max-width: 1899.98px) {
    .passione {
        margin-top: 12%;
    }

    .img-spa .h-100 {
        width: 87% !important;
    }

    .spa-description {
        margin-bottom: 25%;
    }

    .spa-logo-wrapper {
        margin-top: 25%;
    }

    .spa-title {
        font-size: 3.5rem;
    }

    .spa {
        height: 100%;
    }
}

@media (min-width: 1900px) {
    .spa {
        height: 100%;
    }

    .img-spa .h-100 {
        width: 78% !important;
    }

    .spa-title {
        font-size: 4rem;
    }

    .spa-description {
        font-size: 1.7rem;
        margin-bottom: 0%;
    }

    .spa-video {
        top: 40%;
        left: 34%;
    }

    .spa-logo-wrapper {
        margin-top: 9%;
    }

    .logo-spa {
        width: 250px;
    }
}

/* PASSIONE SPORTIVA */

.passione {
    background-image: url('../images/bike.webp');
    height: 805px;
    background-size: cover;

    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.passione.show {
    opacity: 1;
}

.passione h3,
.passione p {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.passione h3.show-from-bottom {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s, transform 1s;
}

.passione p.show-from-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1s, transform 1s;
}

.passione h3 {
    font-size: 3rem;
    font-weight: 300;
    transform: translateY(20px);
}

.passione p {
    font-size: 1.5rem;
    font-weight: 300;
    transform: translateX(-20px);
}

@media (max-width: 575.98px) {
    .passione {
        height: 82vh;
        background-position: right;
    }

    .passione h3 {
        font-size: 1.5rem;
    }

    .passione p {
        font-size: 0.9rem;
        text-shadow: 2px 2px 10px rgb(0 0 0);
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .passione {
        height: 87vh;
        background-position: right;
    }

    .passione h3 {
        font-size: 2.1rem;
    }

    .passione p {
        font-size: 1.2rem;
        text-shadow: 2px 2px 10px rgb(0 0 0);
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .passione {
        height: 87vh;
        background-position: right;
    }

    .passione p {
        text-shadow: 2px 2px 10px rgb(0 0 0);
    }
}

/* IMPEGNO GREEN */
.impegno {
    position: relative;
    border: 7px solid #9EC042;
    border-radius: 20px;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.impegno.show {
    opacity: 1;
    transform: translateX(0);
}

.logo-container-eco {
    position: absolute;
    top: -38px;
    right: 50px;
}

.logo-eco {
    width: 100px;
    height: auto;
}

.green-banner {
    border: 1px solid rgba(0, 0, 0, 0.308);
    display: flex;
    align-items: center;
}

.green-arrow {
    font-size: 2em;
    color: #9EC042;
    margin-right: 20px;
}

.green-content {
    flex-grow: 1;
}

.green-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.green-text {
    font-size: 1em;
}

.green-sections {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.5s ease, opacity 1.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.308);
}

.green-sections.scroll-anim {
    opacity: 1;
    max-height: 1000px;
}

.green-sections .section {
    display: flex;
    align-items: center;
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.green-sections .section.show {
    opacity: 1;
    transform: translateY(0);
}

.green-sections .section-image {
    margin-right: 20px;
}

.green-sections .section-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.sostenibilita p {
    font-size: 1.15rem;
}

.sostenibilita {
    font-size: 1.15rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.sostenibilita.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .logo-container-eco {
        top: -47px;
        right: 16px;
    }

    .green-text,
    .green-sections .section .section-content p,
    .sostenibilita p {
        font-size: 0.8rem;
    }
}

/* REVIEW */

.review-container {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.review-container.show {
    opacity: 1;
    transform: translateY(0);
}

.review-card {
    height: 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 1190px;
}

.review-card h5 {
    color: #333;
    margin-bottom: 10px;
}

.review-card p {
    color: #666;
    line-height: 1.6;
}


.source {
    font-size: 0.9em;
    color: #999;
    margin-top: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5% !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #9EC042;
    border-radius: 50%;
    padding: 10px;
}

.review-title {
    color: #9EC042;
    font-size: 3rem;
    font-weight: bold;
}

@media (max-width:429.98px) {
    .review-title {
        font-size: 1.9rem;
    }

    .review-card p {
        font-size: 0.8rem;
    }

    .review-card {
        height: 400px;
        width: 90%;
    }
}

@media (min-width:430px) and (max-width: 767.98px) {
    .review-title {
        font-size: 1.9rem;
    }

    .review-card p {
        font-size: 0.8rem;
    }

    .review-card {
        height: 360px;
        width: 90%;
    }
}


@media (min-width:768px) and (max-width: 1199.98px) {

    .review-card {
        width: 90%;
        height: 350px;
    }
}

@media (min-width:1200px) and (max-width: 1399.98px) {

    .review-card {
        width: 90%;
    }
}