:root {
    --primary-black: #000;
    --primary-white: #fff;
    --gray: #dee0e4;
}

body {
    font-family: "Elza", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: var(--primary-black);
    background: var(--primary-white);
    padding: 0 0.5em;
    scroll-behavior: smooth;
}

.divider{
    border-bottom: 1.5px solid #000;
    margin-bottom: 1em;
}

/* Navbar */
.navbar {
    padding: 0.1em 0;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
    background-color: transparent;
}

.navbar-collapse {
    justify-content: flex-start;
}

.navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.navbar-nav .nav-link.navbar-brand {
    font-size: 16px;
}

.navbar-nav .nav-link:hover {
    text-decoration: underline;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0;
    position: relative;
    mix-blend-mode: normal;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler span {
    display: block;
    width: 48px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    margin-top: 2em;
}

.hero-text {
    padding-top: 2em;
}

h1, .hero-paragraph{
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 2em;
}

.view-all-link {
    font-size: 15px;
    text-transform: uppercase;
    color: var(--primary-black);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-weight: 400;
}

.view-all-link:hover {
    color: var(--gray);
    transform: translateX(5px);
}

/* Allineamento desktop */
@media (min-width: 768px) {
    .text-md-end {
        text-align: right;
    }
    
    .view-all-link {
        margin-top: 4em;
        margin-bottom: 2em;
    }
}

@media (max-width: 767px) {
    .view-all-link {
        margin-top: -1em;
        margin-bottom: 2em;
        font-size: 16px;
    }
    
    .text-md-end {
        text-align: left;
    }
}

.view-all-link::after {
    content: '';
    position: absolute;
    right: -20px;
    transition: right 0.3s ease;
}

.view-all-link:hover::after {
    right: -25px;
}

/* Portfolio Masonry Layout */
.portfolio-container .row {
    display: block;
    column-count: 4;
    column-gap: 1rem;
}

.portfolio-container .row > .portfolio {
    break-inside: avoid;
    margin-bottom: 1rem;
    width: 100%;
}

@media (max-width: 991px) {
    .portfolio-container .row {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .portfolio-container .row {
        column-count: 1;
    }
}

/* Effetto onda verticale per le righe del portfolio */
.portfolio-container {
    position: relative; /* Contenitore per gli spostamenti */
    overflow: visible; /* Permette sovrapposizioni */
}

.wave-row {
    position: relative;
    transition: top 0.3s ease;
    z-index: 1; /* Base z-index */
}

.wave-normal {
    top: 0;
    z-index: 2; /* Riga normale in primo piano */
}

.wave-up {
    top: -50px; /* Aumentato a 50px per effetto più visibile */
    z-index: 1; /* Dietro alla normale */
}

.wave-down {
    top: 50px; /* Aumentato a 50px */
    z-index: 3; /* Davanti per coprire se necessario */
}

/* Rimuovi gap verticale per permettere sovrapposizione */
.wave-row.row {
    margin-bottom: -50px; /* Compensazione per gap, regola se necessario */
}

/* Responsive: su schermi piccoli, reset */
@media (max-width: 768px) {
    .wave-up, .wave-down {
        top: 0;
        z-index: auto;
    }
    .wave-row.row {
        margin-bottom: 0;
    }
}

.portfolio {
    display: block;
}

.project-title {
    font-size: 16px;
    letter-spacing: -0.25px;
    font-weight: 500;
    padding-top: 0.25em;
    margin-bottom: 0.1em;
}

.project-specs {
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
}

.project-card {
    display: block;
}

.project-card a {
    display: block;
    position: relative;
    overflow: hidden;
}

.project-card img {
    display: block;
    width: 100%;
}

/* Hover image effect - Desktop only */
@media (min-width: 992px) {
    .project-card img {
        transition: opacity 0.4s ease-in-out;
    }

    .project-card img.hover-img {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }

    .project-card a:hover img.hover-img {
        opacity: 1;
    }

    .project-card a:hover img:not(.hover-img) {
        opacity: 0;
    }
}

.video-container-cover {
    overflow: hidden;
    display: block;
}

.video-container-cover video {
    width: 100%;
    display: block;
}

.category{
    font-size: 14px;
    text-transform: uppercase;
    border: 1.5px solid #000;
    border-radius: 25px;
    padding: 0.25em 0.5em;
    display: inline-block;
    margin-bottom: 0.5em ;
}

/* Competenze */

.skills-section{
    margin-top: 3em;
}

.skills-intro{
    font-size: 21px;
    font-weight: 500;
    padding: 2em 0;
    line-height: 1.1;
    width: 50%;
    margin-bottom: 3em;
}

.competenze-titolo{
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0.5em;
    text-transform: none;
}

.competenze-dettaglio{
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    width: 25%;
    padding-bottom: 2em;
}

/* Blog Section */
.blog-section {
    margin-top: 4em;
}

.article-divider{
    border-bottom: 1.5px solid #000;
    padding: 0.5em 0 1em;
}

.articles-container {
    margin-top: 2em;
}

/* Article Item */
.article-item {
    position: relative;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.article-image{
    width: 100%;
}

.article-title{
    font-size: 18px;
    font-weight: 400;
    text-transform: none;
    width: 95%;
}

.article-author{
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
}

.article-link{
    font-weight: 400;
    margin-top: 0.5em;
    margin-bottom: 2em;
    font-size: 14px;
    color: #000;
    display: inline-block;
}

.section-shop{
    margin-top: 4em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-content {
        padding: 0.5em 0;
    }
    
    .article-title {
        font-size: 21px;
    }
    
    .article-author {
        font-size: 14px;
        padding: 0.25em 0;
    }
    
    .read-article {
        font-size: 16px;
        text-align: left;
        padding-top: 0.25em;
    }
    
    .article-preview {
        display: none;
    }
    
    .article-item:hover .article-content {
        background: transparent;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 769px) {
    .article-preview {
        width: 200px;
        height: 133px;
    }
}


.scrolling-title-container {
    overflow: hidden;
    margin-bottom: 2em;
    margin-top: 1em;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 0%, black 100%, transparent);
    mask-image: linear-gradient(to right, transparent, black 0%, black 100%, transparent);
}

.scrolling-title {
    display: flex;
    animation: scroll-left 10s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.scrolling-title span {
    font-size: 80px;
    text-transform: uppercase;
    font-weight: 400;
    padding-right: 40px;
    line-height: 1;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scrolling-title-container:hover .scrolling-title {
    animation-play-state: paused;
}

/* Medium screens */
@media (max-width: 768px) {
    .scrolling-title span {
        font-size: 48px;
        padding-right: 20px;
    }
}



/* Footer */
.footer {
    margin-top: 15em;
}

.contacts{
    padding-bottom: 1em;
}

.left{
    margin-top: 1.5em;
}

.footer-link{
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
}

.footer-link:hover{
    color: #666;
}

.footer-logo img{
    width: 100%;
}


.legal, .copyright{
    color: #000;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

@media screen and (max-width: 768px){
    .footer-link{
        font-size: 16px;
    }

    .left, .center, .right{
        padding-bottom: 1em;
        padding-left: 0.5em;
    }
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.on-duty {
    background-color: #00C851;
}

.status-dot.off-duty {
    background-color: #ff4444;
}


/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5em;
    align-items: center;
    justify-content: flex-start;
    margin: 0.5em 0 1em;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.toggle-circle {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #fff;
    transition: all 0.3s ease;
}

.toggle-btn.active .toggle-circle {
    background: #000;
}

.toggle-label {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: #000;
    transition: all 0.3s ease;
}

.toggle-btn:hover .toggle-label {
    opacity: 0.6;
}

