:root {
    --color-primary: #282b28;
    --color-secondary: #7c898b;
    --yellow: #FCBE1D;
    --orange: #F86E38;
    --blue: #5B6DFF;
    --light-blue: #DAE8FF;
    --turchese: #01E3E3;
    --marrone: #422307;
    --sabbia: #FBF9EA;
    --interno: 40px;
    --sezione: 70px;
    --svg: 20px;
}

/* CUSTOM */
.pit {
    padding-top: var(--interno);
}

.pib {
    padding-bottom: var(--interno);
}

.pst {
    padding-top: var(--sezione);
}

.psb {
    padding-bottom: var(--sezione);
}

.pst-variable {
    padding-top: var(--sezione);
}

.padding-first {
    padding-top: var(--header-height, 0px);
}

.av-credit-link {
    display: none;
}

.regular-svg {
    width: var(--svg);
    height: var(--svg);
}

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

.single-work {
    display: block;
    overflow: hidden;
    color: black;

    img {
        aspect-ratio: 4/3;
        object-fit: cover;
        width: 100%;
        transition: 0.2s ease-out;
    }

    &:hover {
        img {
            scale: 105%;
        }

        .hover-orange {
            color: var(--orange);
        }
    }
}

.big-work {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    img {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        object-fit: cover;
        position: absolute;
        height: 100%;
        transition: 0.4s ease-out;
    }

    .info {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 1);
        transition: 0.4s ease-out;
    }

    &:hover {
        .info {
            display: flex;
        }

        img {
            width: 70%;
            height: 70%;
        }

        .hover-orange {
            color: var(--orange);
        }
    }
}

.single-pref {
    overflow: hidden;
    display: block;
    aspect-ratio: 1;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.2s ease-out;
    }

    &:hover {
        img {
            scale: 105%;
        }
    }
}

.one-to-four .item {
    aspect-ratio: 1;
    overflow: hidden;
    width: 100%;

    img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        display: block;
    }
}

.one-to-four .owl-dots {
    display: none !important;
}

/* CAROSELLO HOBBIES */
.slider-hobby .owl-dots,
.slider-hobby .owl-nav {
    display: none !important;
}

.hobby-slider-card {
    text-decoration: none !important;
    display: block;
    color: #000;
}

.hobby-slider-card .hobby-slider-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--sabbia);
}

.hobby-slider-card .hobby-slider-img-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-out;
}

.hobby-slider-card:hover .hobby-slider-img-wrap img {
    transform: scale(1.05);
}

.hobby-slider-card .hobby-slider-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.3;
    text-underline-offset: 3px;
    color: #000;
    text-decoration: underline !important;
    transition: color 0.2s ease-in-out;
}

.hobby-slider-card:hover .hobby-slider-link {
    color: var(--orange);
}

/* CAROSELLO VIDEO VERTICALI */
.carosello-video-verticali {
    position: relative;
    user-select: none;
}

.carosello-video-verticali .item {
    border-radius: 0;
    overflow: hidden;
    background-color: #000;
}

.carosello-video-verticali .video-verticale-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.carosello-video-verticali .video-verticale {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.carosello-video-verticali .owl-dots {
    display: none !important;
}

.carosello-video-verticali .owl-nav {
    display: block !important;
    margin: 0;
}

.carosello-video-verticali .owl-nav button.owl-prev,
.carosello-video-verticali .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    background-color: var(--blue) !important;
    color: var(--light-blue) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0;
    box-shadow: 0 4px 18px rgba(91, 109, 255, 0.35);
    transition: all 0.25s ease-out !important;
    z-index: 20;
    cursor: -webkit-image-set(url('../img/cursore.png') 1x, url('../img/cursore2x.png') 2x) 16 16, auto !important;
    cursor: image-set(url('../img/cursore.png') 1x, url('../img/cursore2x.png') 2x) 16 16, auto !important;
    border: none;
    outline: none;
}

.carosello-video-verticali .owl-nav button.owl-prev svg,
.carosello-video-verticali .owl-nav button.owl-next svg {
    display: block;
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease-out;
}

.carosello-video-verticali .owl-nav button.owl-prev {
    left: -24px;
}

.carosello-video-verticali .owl-nav button.owl-next {
    right: -24px;
}

.carosello-video-verticali .owl-nav button.owl-prev:hover,
.carosello-video-verticali .owl-nav button.owl-next:hover {
    background-color: var(--orange) !important;
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(248, 110, 56, 0.45);
    transform: translateY(-50%) scale(1.1);
    cursor: -webkit-image-set(url('../img/cursore.png') 1x, url('../img/cursore2x.png') 2x) 16 16, auto !important;
    cursor: image-set(url('../img/cursore.png') 1x, url('../img/cursore2x.png') 2x) 16 16, auto !important;
}

.carosello-video-verticali .owl-nav button.owl-prev:hover svg {
    transform: translateX(-2px);
}

.carosello-video-verticali .owl-nav button.owl-next:hover svg {
    transform: translateX(2px);
}

.carosello-video-verticali .owl-nav button.disabled {
    opacity: 0.3 !important;
    cursor: -webkit-image-set(url('../img/cursore.png') 1x, url('../img/cursore2x.png') 2x) 16 16, auto !important;
    cursor: image-set(url('../img/cursore.png') 1x, url('../img/cursore2x.png') 2x) 16 16, auto !important;
    transform: translateY(-50%) scale(1) !important;
}

@media screen and (max-width: 992px) {
    .carosello-video-verticali .owl-nav button.owl-prev {
        left: -12px;
    }
    .carosello-video-verticali .owl-nav button.owl-next {
        right: -12px;
    }
}

@media screen and (max-width: 576px) {
    .carosello-video-verticali .owl-nav button.owl-prev,
    .carosello-video-verticali .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
        background-color: rgba(91, 109, 255, 0.95) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    }
    .carosello-video-verticali .owl-nav button.owl-prev {
        left: 8px;
    }
    .carosello-video-verticali .owl-nav button.owl-next {
        right: 8px;
    }
    .carosello-video-verticali .owl-nav button.owl-prev svg,
    .carosello-video-verticali .owl-nav button.owl-next svg {
        width: 18px;
        height: 18px;
    }
}

.button {
    padding: 8px 20px;
    border: 2px solid black;
    border-radius: var(--bs-border-radius-pill);
    text-decoration: none;
    display: inline-flex;
    gap: .2rem;
    align-items: center;
    color: black;
    transition: 0.2s ease-out;

    p {
        font-family: 'Archivo';
        font-weight: medium;
        margin-bottom: 0;
        transition: 0.2s ease-out;
    }

    &:hover,
    &.active {
        background-color: black;
        color: white;

        p {
            color: white;
        }
    }

    &.basic {
        padding: 0;
        border: none;
        background-color: transparent;
        color: inherit;

        &:hover,
        &.active {
            background-color: transparent;
            color: inherit;

            p {
                color: inherit;
            }
        }
    }
}

.title-icon {
    width: 140px;
    fill: var(--yellow)
}

.link-colored {
    background-color: var(--blue);
    transition: 0.2s ease-out;

    * {
        color: var(--light-blue) !important;
    }

    &:hover,
    &.active {
        background-color: var(--orange) !important;
    }
}

.scroll-filter {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
        display: none;
    }
}

.gap-hover {
    gap: 10px;
    transition: 0.2s ease-out;

    &:hover {
        gap: 15px;
    }
}

@property --color-dynamic {
    syntax: '<color>';
    inherits: false;
    initial-value: #fff;
}

.gradient-column {
    --color-dynamic: var(--blue);

    background: repeating-linear-gradient(90deg, var(--color-dynamic), var(--color-dynamic) 4%, var(--light-blue) 4%, var(--light-blue) 8%);
    transition: --color-dynamic 0.2s ease-out;

    h2 {
        color: var(--orange);
        transition: 0.2s ease-out;
    }

    &:hover {
        --color-dynamic: var(--yellow);

        h2 {
            color: var(--blue);
        }
    }
}

.rotate {
    animation: rotateAll 8s linear infinite;
    transform-origin: center;
}

@keyframes rotateAll {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* cursor */
*,
*::before,
*::after {
    cursor: -webkit-image-set(url('../img/cursore.png') 1x, url('../img/cursore2x.png') 2x) 16 16, auto !important;
    cursor: image-set(url('../img/cursore.png') 1x, url('../img/cursore2x.png') 2x) 16 16, auto !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea {
    cursor: text !important;
}

button:disabled,
input:disabled {
    cursor: not-allowed !important;
}

/* tabella */
.custom-table {
    thead th {
        background-color: var(--blue);
        color: white;
        font-size: 12px;
        font-family: 'Archivo';
        transition: 0.2s ease-out;
    }

    thead th:first-child {
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
    }

    thead th:last-child {
        border-top-right-radius: 50px;
        border-bottom-right-radius: 50px;
    }

    tbody td:first-child {
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
    }

    tbody td:last-child {
        border-top-right-radius: 50px;
        border-bottom-right-radius: 50px;
    }

    th {
        border: none;
    }

    td {
        border-style: dashed;
    }

    &:hover {
        thead th {
            background-color: var(--yellow);
            color: var(--color-primary);
        }
    }
}

.foto-about {
    height: 220px;
    max-width: 170px;
    object-fit: cover;
}