.hero {
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* SECTION Text */
.btn-custom:hover {
    color: white;
}

.custom-hover-color-pink a:hover {
    color: #a02067 !important;
}

.custom-hoverable-pink {
    color: #a02067 !important;
    font-weight: 600;

}

.custom-hoverable-pink:hover {
    color: #a04778 !important;
    transition: color 0.1s ease-in-out;
}

.custom-link-ep {
    color: white;
}

.custom-link-ep:hover {
    color: #f29400;
}

.custom-hover-color-x:hover {
    color: #aaaaaa !important;
}

.custom-hover-color-ln:hover {
    color: #0077B5 !important;
}

.custom-hover-color-ig:hover {
    color: #E4405F !important;
}

.custom-disabled-hover {
    pointer-events: none;
}

.tracking-in-expand {
    -webkit-animation: tracking-in-expand 10s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation: tracking-in-expand 10s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@-webkit-keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/*!SECTION Text */

/* SECTION Home*/
/* SECTION land CTA*/
/* Mobile portrait adjustments */
/* @media screen and (orientation: portrait) {
    #fixed-cta {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        border-radius: 0;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        max-height: none !important;
    }

    #fixed-cta .card-header,
    #fixed-cta .card-body {
        text-align: center;
        justify-content: center;
    }

    #fixed-cta .card-header {
        flex-direction: column;
        align-items: center;
    }

    #fixed-cta .btn-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    #fixed-cta .card-header h5 {
        text-align: center;
        width: 100%;
    }
} */


/* Mobile landscape adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #fixed-cta {
        max-height: 120px !important;
        overflow-y: auto;
        padding: 10px 15px !important;
    }

    #fixed-cta .card-body p:last-child {
        display: none;
        /* nasconde il testo più piccolo per risparmiare spazio */
    }

    #fixed-cta .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    #fixed-cta h5 {
        font-size: 1rem;
    }
}

/* !SECTION land CTA*/

#scroll-up.hide-scroll-up {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* !SECTION Home*/

/*SECTION Services*/
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    height: 100%;
    min-height: 240px;

}

.service-card .card-title,
.service-card .card-subtitle {
    align-self: center;
    text-align: center;
}

.service-card .card-button {
    margin-top: auto;
    /* width: auto;
    display: inline-block;*/
    align-self: center;
}

/*!SECTION Services*/

/* SECTION News */
.custom-post-title {
    color: #a02067 !important;
    font-weight: 600;

}

.custom-post-title:hover {
    color: #6b1745 !important;
    transition: color 0.1s ease-in-out;
}

.custom-news-link a:not(button a) {
    color: #a02067;
    text-decoration: none;
    font-weight: bold;
}

.custom-news-link a:not(button a):hover {
    color: #b62b77;
    text-decoration: underline;
}

.custom-category-button {
    background-color: #a02067;
    color: white;
    border: none;
    padding: 10px 20px;
    /* font-size: 16px; */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/*!SECTION News */

/* SECTION Word rotator */
.custom-section .spinny-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    position: relative;
    gap: 20px;
    /* horizontal space after previous text */
}

.spinny-words {
    display: inline-flex;
    align-items: center;
    height: 1.0em;
    line-height: 1.0em;
    /*centers the text vertically */
    position: relative;
    vertical-align: middle;
}

.spinny-words span {
    position: absolute;
    font-weight: bold;
    opacity: 0;
    top: 0;
    line-height: 0.85em;
    animation: rotateWord 9s linear infinite;
}

.spinny-words span:nth-child(2) {
    animation-delay: 3s;
}

.spinny-words span:nth-child(3) {
    animation-delay: 6s;
}

/* .spinny-words span:nth-child(4) {
    animation-delay: 9s;
}
.spinny-words span:nth-child(5) {
    animation-delay: 12s;
}
.spinny-words span:nth-child(6) {
    animation-delay: 15s;
} */
@keyframes rotateWord {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 0;
        transform: translateY(-30px);
    }

    5% {
        opacity: 1;
        transform: translateY(0px);
    }

    17% {
        opacity: 1;
        transform: translateY(0px);
    }

    20% {
        opacity: 0;
        transform: translateY(30px);
    }

    80% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* !SECTION Word rotator */

/* SECTION Breadcrumb */
.custom-breadcrumb li {
    display: flex;
    align-items: center;
}

.custom-breadcrumb li:not(:last-child)::after {
    content: ">";
    font-size: smaller;
    color: "text-light-gray";
    font-weight: 700;
}

/* !SECTION Breadcrumb */

/*SECTION About */
.bg-gradient-amaranto {
    background-image: linear-gradient(50deg, #a02067 0%, #ffffff 100%);
}

.bg-medium-dark-gray {
    background-color: #242424;
}

.text-silver-ridge {
    color: #0091b5;
}

.zoom {
    transition: transform .2s;
    /* Animation */
}

.zoom:hover {
    transform: scale(1.05);
    /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

/*SECTION Timeline */
/* The actual timeline (the vertical ruler) */
.main-timeline-2 {
    position: relative;
}

/* The actual timeline (the vertical ruler) */
.main-timeline-2::after {
    content: "";
    position: absolute;
    width: 3px;
    background-color: #dddddd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.timeline-2 {
    position: relative;
    background-color: inherit;
    width: 50%;
    z-index: 2;
}

/* The circles on the timeline */
.timeline-2::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -11px;
    background-color: #a02067;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left-2 {
    padding: 0px 40px 20px 0px;
    left: 0;
}

/* Place the container to the right */
.right-2 {
    padding: 0px 0px 20px 40px;
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left-2::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right-2::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right-2::after {
    left: -14px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {

    /* Place the timelime to the left */
    .main-timeline-2::after {
        left: 31px;
    }

    /* Full-width containers */
    .timeline-2 {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .timeline-2::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left-2::after,
    .right-2::after {
        left: 18px;
    }

    .left-2::before {
        right: auto;
    }

    /* Make all right containers behave like the left ones */
    .right-2 {
        left: 0%;
    }
}

.timeline-img {
  width: 100%;
  height: auto;
  object-fit: contain; /* or 'contain'*/
}
/*!SECTION Timeline */

/*!SECTION About */

/*SECTION Swiper */
.custom-swiper-slider-second {
    display: flex;
    align-items: center;
}

.custom-swiper-wrapper {
    display: flex;
    align-items: center;
}

.custom-swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-container {
    transition: height 0.3s ease-in-out;
}

/*!SECTION Swiper */

.service-card {}

.custom-work-slide {
    aspect-ratio: 1 / 0.8;
    zoom: 70%;
}

.resizable {
    flex-grow: 1;
}

@media (min-width: 768px) {
    .floated-img {
        width: 45%;
        max-width: 45%;
        float: left;
        margin-right: 2rem;
        margin-bottom: 1rem;
    }
}

/* SECTION Checkboxes */
/* Container */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Hide checkboc but keep its focus/accessibility */
.custom-checkbox input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Custom style */
.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #aaa;
    border-radius: 2px;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Active state */
.custom-checkbox input[type="checkbox"]:checked+label .checkmark {
    background-color: #a02067;
    border-color: #a02067;
}

/* checked icon */
.custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show the check*/
.custom-checkbox input[type="checkbox"]:checked+label .checkmark::after {
    display: block;
}

/* Label & link */
.custom-checkbox .label-text {
    flex: 1 1 auto;
    min-width: 0;
}

.custom-checkbox .checkmark,
.custom-checkbox .label-text {
    vertical-align: middle;
}

@media (max-width: 576px) {
    .custom-checkbox {
        flex-direction: row;
        align-items: flex-start;
    }

    .custom-checkbox .label-text {
        flex: 1 1 85%;
    }
}

/* !SECTION Checkboxes */

.feature-box-image {
    position: relative;
    overflow: hidden;
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    color: #a02067;
    font-size: 40px;
    pointer-events: none;
    /* così non interferisce con l'hover */
    transition: opacity 0.3s ease;
}

.feature-box-image:hover .zoom-icon {
    opacity: 0.9;
    color: #ffffff;
}


/* Hide RECAPTCHA */
.grecaptcha-badge {
    visibility: hidden !important;
}


