*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1;min-height:100vh;text-rendering:optimizeSpeed}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}button,input,select,textarea{font:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto;display:block}:focus{outline:0}audio,canvas,iframe,img,svg,video{vertical-align:middle}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

html, body {
    height: 100%;
}
body {
    background-color: #111;
    color: #FAF4E8;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "nimbus-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}
body.not-hp {
    background-color: #FAF4E8;
    color: #0A0A0A;
}
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 3rem;
}
body.not-hp .container {
    min-height: auto;
}
header, main, footer {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
main {
    flex: 1;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-category {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.nav-item:nth-child(1) > * { color: #f5f2e9; font-weight: 700; }
.nav-item:nth-child(2) > * { color: #4077dc; }
.nav-item:nth-child(3) > * { color: #e56117; }
.nav-item:nth-child(4) > * { color: #d298d6; }
.nav-item:nth-child(5) > * { color: #9bcf51; }

body.not-hp .nav-item > * { color: #0a0a0a; }
body.not-hp .nav-item:nth-child(1) > * { color: #d298d6; }

body.not-hp .nav-item:hover:nth-child(2) > *, body.not-hp .nav-item.active:nth-child(2) > * { color: #4077dc; }
body.not-hp .nav-item:hover:nth-child(3) > *, body.not-hp .nav-item.active:nth-child(3) > * { color: #e56117; }
body.not-hp .nav-item:hover:nth-child(4) > *, body.not-hp .nav-item.active:nth-child(4) > * { color: #d298d6; }
body.not-hp .nav-item:hover:nth-child(5) > *, body.not-hp .nav-item.active:nth-child(5) > * { color: #9bcf51; }

.nav-subtitle {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.slider {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

main .slider:last-child {
    margin-bottom: 0;
}

.project-desc {
    margin-top: 20px;
}

h3.project-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 3px;
    font-weight: 700;
}

.art-direction p.project-text {
    font-size: 0.8rem;
    color: #4077dc;
}
.graphic-design p.project-text {
    font-size: 0.8rem;
    color: #529749;
}
.illustrations p.project-text {
    font-size: 0.8rem;
    color: #d14b47;
}


/* Bio home */
.bio-section {
    max-width: 70%;
    margin: 4rem auto;
}
.not-hp .bio-section {
    max-width: 800px;
}

.bio-text {
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
}

/* About  */
.about-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 50px;
}
.about-image {
    flex-basis: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    height: auto;
}
.about-text {
    flex-basis: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    font-size: 1rem;
    text-align: left;
}
.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.about-text p {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}
.about-text strong {
    font-weight: 700;
}
.hor-images {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

/* Logo */
.logo-section {
    position: relative;
    margin: 2rem 0;
}

.logo {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.cta-button {
    position: absolute;
    top: -20px;
    right: 5%;
    background-color: #3da642;
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    font-size: 1.1rem;
    transform: rotate(25deg);
    animation: rotate 3s infinite ease-in-out;
}

@keyframes rotate {
  0% {
    transform: rotate(-20deg);
  }
  50% {
    transform: rotate(20deg);
  }
  100% {
    transform: rotate(-20deg);
  }
}

/* Social index */
.social-section {
    display: flex;
    margin: 2rem 0;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: #f5f2e9;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.social-link:hover {
    text-decoration: underline;
}

/* Footer not-index */
.not-hp footer {
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid #0A0A0A;
    width: 100%;
    max-width: 100%;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.not-hp footer .social-section .social-link {
    color: #0A0A0A;
    border: 1px solid #0A0A0A;
    border-radius: 50px;
    font-weight: normal;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}
@supports (-webkit-overflow-scrolling: touch) {
  .not-hp footer .social-section .social-link {
      line-height: 35px; /* Questo è un esempio, da calibrare */
  }
}
.not-hp footer .social-link:hover {
    background-color: #0A0A0A;
    color: #FAF4E8;
    text-decoration: none;
}


/* Responsive */
@media (max-width: 800px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
        margin-top: 25px;
    }
    .nav-item {
        margin-bottom: 1.5rem;
    }
    .nav-item:last-child {
        margin-bottom: 0;
    }
    .bio-section {
        max-width: 100%;
    }
    .cta-button {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }
    .container {
        padding: 1rem;
    }
    .about-section {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    .about-image, .about-text {
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 0;
    }
    .about-text {
        margin-top: 50px;
    }
    .nav-category {
        font-size: 2.5rem;
    }
    .nav-subtitle {
        font-size: 0.9rem;
    }
    .bio-text {
        font-size: 0.9rem;
        text-align: center;
    }
    .footer-container {
        padding: 1rem;
        flex-direction: column;
    }
    .not-hp footer .social-section {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 1280px) {
    .footer-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .cta-button {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }
}


/* Slick Slider */
.slick-loading .slick-list
{
    background: #fff url('./ajax-loader.gif') center center no-repeat;
}

/* Dots */
.slick-dotted.slick-slider
{
    /* margin-bottom: 30px; */
}

.slick-dots
{
    position: absolute;
    bottom: 5px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}
.slick-dots li
{
    position: relative;
    display: inline-block;
    width: 10px;
    height: 20px;
    margin: 0px;
    padding: 0;
    cursor: pointer;
}
.slick-dots li button
{
    font-size: 0;
    line-height: 0;
    display: block;
    width: 10px;
    height: 20px;
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus
{
    outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before
{
    opacity: 1;
}
.slick-dots li button:before
{
    font-family: 'slick';
    font-size: 12px;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 20px;
    content: '•';
    text-align: center;
    opacity: .2;
    color: #0a0a0a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before
{
    opacity: 1;
    color: #0a0a0a;
}

.custom-icon-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: none;
}

.custom-icon-arrow .icon {
    font-size: 36px;
    color: #f5f2e9;
    font-weight: 300;
}

.custom-icon-arrow:hover {
    transform: translateY(-50%) scale(1.15);
}

.slick-prev.custom-icon-arrow {
    left: -35px;
}

.slick-next.custom-icon-arrow {
    right: -35px;
}