@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --main: #269938;
    --main-light: #3ca14a;
    --secondary: #3a563e;

    --radius: 20px;
    --shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);


    --handle-size: 32px;
    --line-width: 2px;
    --accent: #00aaff;
}

body {
    overflow-x: hidden;
}

* {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--secondary);
}

h1 {
    font-weight: 700;
    font-size: 70px;
    margin-bottom: 20px;
}

h2 {
    font-weight: 700;
    font-size: 28px;
    margin-top: 80px;
    margin-bottom: 20px;
    color: var(--main);
}

h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 0px!important;
    color: var(--secondary);

}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.white {
    color: #ffffff;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}

#header {
    
    background-color: #ffffff;
    
    max-width: 96vw;
    position: fixed;
    top:40px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 60px;
    box-shadow: var(--shadow);
    
    padding: 10px;
    
    z-index: 10;

}

.dropdown-item:hover {
    background-color: #ffffff00;
    font-weight: 600;
}

.dropdown-item:active {
    background-color: #ffffff00;
}

.button-burger {
    color: #ffffff;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    padding: 10px;
    border: none;
    box-shadow: var(--shadow);
    cursor: pointer;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    font-size: 25px;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}

/* Logo default (pagina in cima) */
.navbar-brand img {
  height: 80px;
  transition: height 0.3s ease;
}

/* Logo quando si scrolla */
#header.scrolled .navbar-brand img {
  height: 60px;
}

.nav-item a{
    color: var(--secondary)!important;
    margin: 0 5px;
}

.nav-item:hover {
    font-weight: 600;
}

.nav-link.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.navbar {
    padding: 0!important;
}

.lang-icon {
    background-color: #ffffff00;
    border: none;
    border-radius: 100px;
}

.lang-icon.dropdown-toggle {
    margin-right: 20px;
}

.lang-icon:hover, .lang-icon:focus, .lang-icon:active {
    background-color: #ffffff00;
}

.lang-icon.dropdown-toggle::after {
    color: var(--secondary)!important;
}

.lang-icon > img {
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 100px;
    border: 2px solid var(--secondary);
}

.lang-icon> img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.dropdown-menu.languages {
    min-width: 1px!important;
    border-radius: 100px;
}

.dropdown-menu.languages li {
    width: 60px!important;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button {
    background-color: var(--main);
    color: #ffffff;
    border-radius: 100px;
    padding: 5px 5px 5px 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    font-size: 25px;
    font-weight: 600;
}


.button {
    background: var(--main); /* nessun gradiente di default */
    background-size: 200% 200%;
    background-position: 100% 50%; /* posizione iniziale */
    transition: transform 0.3s ease;
}

.button:hover {
    background-color: var(--main-light);
    transform: scale(1.05);
}



.button.alternative {
    background-color: #ffffff;
    color: var(--main);
    box-shadow: var(--shadow);
}

.button::after {
    content: "";
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 100px;
    background-image: url("../img/svg/svg/arrow-top-right.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-color: #ffffff;
    margin: 0 0 0 15px;
    transition: transform 0.3s ease;
}

.accordion-button.button::after {
    background-image: url("../img/svg/svg/arrow-down-alt.svg")!important;
    transform: rotate(180deg)!important;
}
.accordion-button.collapsed.button::after {
    transform: rotate(360deg)!important;
}

.button:hover::after {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}



.button:active::after {
    transform: translate(15px);
    transition: transform 0.3s ease;
}


.button.alternative::after {
    background-color: var(--main);
    background-image: url("../img/svg/svg/arrow-top-right-alt.svg");
}

.contact-call .button::after {
    background-image: url("../img/svg/svg/WA.svg");
    margin: 0!important;
}

.contact-call .mail.button::after {
    display: none;
}

.landing {
    background-color: var(--secondary);
    background-image: url("../img/l/landing_50.png");
    /* background-image: url("../img/garden-50.png"); */
    background-size: cover;
    background-position: left;
    margin: 20px;
    width: auto;
    height: 80vh;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
}

/*
.landing::after {
    content: "";
    display: block;
    width: 650px;
    height: 100%;
    background-image: url("../img/leaves.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: -100px;
    left: 70vw;
    z-index: 2;
    filter: drop-shadow(30px 20px 5px rgba(0, 0, 0, 0.2)) brightness(1.25);
}
*/
.leaves {
    position: unset;
}

.carta {
    width: 100%;
    height: 100%;
    box-shadow: var(--shadow);
    border-radius: calc(var(--radius)*2);
    padding: var(--radius);
   
}

.carta > img {
    width: 100%;
    aspect-ratio: 24/9;
    border-radius: var(--radius);
    object-fit: cover;
    margin-bottom: 15px;
}

.carta p {
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    margin-bottom: 0px;
}

.carta .button {
    margin-left: 10px;
}

.carta .d-flex {
    margin-bottom: 0;
}

.casa {
    height: 100%;
    box-shadow: var(--shadow);
    border-radius: calc(var(--radius)*2);
    padding: var(--radius);
    margin: 0 10px 20px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

.casa * {
    text-decoration: none;
}

.casa:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.casa img {
    width: 100%;
    aspect-ratio: 5/3;
    border-radius: var(--radius);
    object-fit: cover;
    margin-bottom: 15px;
}

.casa > a > div > p {
    margin-bottom: 0px;
    border: 1px solid var(--main);
    padding: 0px 2px;
    margin: 0px 2px;
    text-align: center;
    width: 100%;
    border-radius: var(--radius);
    text-wrap: nowrap;
    font-size: 12px;
}

.casa .house-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.backdrop {
    margin: 90px 0;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.backdrop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(12px);
    z-index: 1;
}

/* Il carosello deve stare sopra allo sfondo sfocato */
.backdrop > .container {
    position: relative;
    z-index: 2;
}

#carousel .carousel-item img {
    border-radius: var(--radius);
    height: 500px;
    object-fit: cover;
}

.color_div {
    background-color: #EAF5EB;
    width: 100%;
    padding: 20px 0 0;
}

.partner-logo {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    margin: 20px;
}

.color_div .col-4 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.call {
    background-color: var(--secondary);
    background-image: url("../img/l/building-50.png");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    border-radius: var(--radius);
    height: 500px;
    padding: 60px 40px;
    margin-top: 100px;
}

#footer {
    background-color: var(--secondary);
    padding: 40px 0;
    margin-top: 100px;
}

#footer p, #footer a, #footer h6 {
    color: #ffffff;
}

#footer a {
    text-decoration: underline!important;
}

/* Services page specific styles */

.services-landing {
    margin-top:30vh;
}

.services-landing::after {
    content: "";
    display: block;
    width: 650px;
    height: 100%;
    background-image: url("../img/l/leaves3.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: -330px;
    left: 74vw;
    z-index: 2;
    filter: drop-shadow(30px 20px 5px rgba(0, 0, 0, 0.2));

    transform: rotate(140deg);

}

.services-landing::before {
    content: "";
    display: block;
    width: 650px;
    height: 100%;
    background-image: url("../img/l/leaves3.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: -300px;
    right: 85vw;
    z-index: 2;
    filter: drop-shadow(30px 20px 5px rgba(0, 0, 0, 0.2));


    transform: rotate(50deg);
}

.titolo-servizi .icon {
    width: 60px;
    height: 60px;
    padding: 10px;
    border: 4px solid var(--main);
    border-radius: 100px;
    background-color: #ffffff;
    margin-right: 10px;
}

.titolo-servizi {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sottotitolo-servizi {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px!important;
}

.carta-space-id {
    padding-top: 160px;
}

.carta-servizi {
    width: 100%;
    box-shadow: var(--shadow);
    border-radius: calc(var(--radius)*2);
    padding: var(--radius);
}

.carta-servizi h2 {
    margin-top: 0px;
    margin-bottom: 0px;
}


.carta-servizi .img-servizi {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
}

.testo-servizi {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.accordion-body {
    padding: 60px 0 0!important;
}

.sottocarta-servizi {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--radius);
    height: 100%;
    position: relative;
}

.sottocarta-servizi h3 {
    margin-bottom: 10px!important;
    
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.sottocarta-servizi p {
    margin-bottom: 0px!important;
}

.col-6 .img-sub-servizi {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: calc(var(--radius)/2);
    margin-bottom: 10px;
}

.col-12 .img-sub-servizi {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    border-radius: calc(var(--radius)/2);
    margin-bottom: 10px;
}

.custom-image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 0;
    padding-bottom: 70%; /* Adjust this value according to your image aspect ratio */
    border-radius: var(--radius);
    margin-bottom: 10px;
  }



  .slider-before,
  .slider-after {
    position: absolute;
    width: 100%;
    display: block;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
  }


  .slider-after {
    overflow: hidden;
  }

  .slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #fff;
    cursor: ew-resize;
  }

.slider-handle::before,
.slider-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  cursor: ew-resize;
  transition: all 0.2s ease-out; /* Add transition property */
}

.slider-handle::before {
  left: -24px;
  border-right: 16px solid #fff;
}

.slider-handle::after {
  right: -24px;
  border-left: 16px solid #fff;
}


/* tooltip */
.custom-image-slider::before {
  content: "Scroll the bar to see before/after";
  position: absolute;
  top: 40px;    
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: var(--secondary);
  color: white;
  padding: 5px 8px;
  border-radius: 100px;
  font-size: 12px;
  text-wrap: nowrap;

  opacity: 0;
  pointer-events: none;
}

/* animazione di durata 2s */
.custom-image-slider:hover::before {
  animation: showTooltip 3s forwards;
}

@keyframes showTooltip {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* gallery page specific styles */

.sottocarta-servizi.slider-gallery {
    border-radius: var(--radius);
    box-shadow: none;
    padding: 0 calc(var(--bs-gutter-x) * .5);
}


.gallery-img {
    cursor: pointer;
    height: 400px;
    object-fit: cover;
    width: 100%;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.carousel-item {
    height: 100%!important;
}

.carousel-item  img{
    max-height: 92vh!important;
    width: 100%!important;
    object-fit: contain;
}

.bg-dark {
    background-color: #ffffff00!important;
    border: none!important;
}


.gallery-landing .container {
    padding: 0 15vw;
    text-align: center;
    margin-top: 24vh;
    margin-bottom: 80px;
}

.gallery-landing::after {
    content: "";
    display: block;
    width: 650px;
    height: 100%;
    background-image: url("../img/l/flowers-r.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: -360px;
    left: 75vw;
    z-index: 2;
    filter: drop-shadow(30px 20px 5px rgba(0, 0, 0, 0.2));
}

.gallery-landing::before {
    content: "";
    display: block;
    width: 650px;
    height: 100%;
    background-image: url("../img/l/flowers-l.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: -360px;
    right: 75vw;
    z-index: 2;
    filter: drop-shadow(30px 20px 5px rgba(0, 0, 0, 0.2));
}

/* contacts card */

.contact-landing .container {
    margin-top: 18vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.contact-card {
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.contact-card .row .col-12 {
    margin-bottom: 15px;
}

.contact-card input, .contact-card textarea {
    border-radius: var(--radius);
}

.contact-card a {
    text-decoration: none;
    color: var(--main);
    margin-left: 10px;
}

.contact-call {
    border-radius: calc(var(--radius)*2);
    box-shadow: var(--shadow);
    padding: var(--radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-call > img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.contact-call p {
    font-style: italic;
    font-size: 12px;
    margin-bottom: 10px!important;
}

.contact-call h3 {
    margin-bottom: 5px!important;
}

.contact-call h3 img {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 100px;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.333);
}

.contact-call a{
    font-size: 16px;
    text-wrap: nowrap;
    margin: 0!important;
}

.contact-call .button {
    display: flex;
    justify-content: space-between;
}

/* login section */

.login {
    padding-top: 18vh;
    padding-bottom: 5vh;
}

.login-background {
    background-color: var(--secondary);
    margin-bottom: -100px;
}

@media (max-width: 768px) {
    .carta-servizi .img-servizi {
        height: 150px;
        margin-bottom: 20px ;
    }
    
}

@media (max-width: 992px) {
    .navbar-collapse-links {
        margin: 60px 0;
        text-align: center;
    }
    
    .navbar-collapse {
        padding: 10px!important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu.show {
        border:none;
        text-align: center;
        max-width: 75vw;
    }

    .dropdown-item {
        padding: 10px 0px;
        display: flex;
        justify-content: center;
        font-size: 14px;
    }

    .landing {
        height: 90vh;
    }

    .landing h1, .call h1 {
        font-size: 40px;
    }

    .button {
        font-size: 20px;
    }

    h2 {
        font-size: 24px;
    }

    .landing::after {
    display: none;
    }

    .carta > img {
        aspect-ratio: 16/9;
    }

    .services-landing::after, .services-landing::before, .gallery-landing::after, .gallery-landing::before {
display: none;
    }

    .carta-space-id {
        padding-top: 60px;
    }

    .gallery-img {
        height: 250px;
    }
    .partner-logo {
        object-fit: contain!important;
        max-width: 150px;
        max-height: 75px;   
    }

    #footer a, #footer p {
        text-align: center;
    }
    
}