:root {
    --primary-black: #000;
    --primary-white: #fff;
    --gray: #666;
    --blue-accent: #0033FF;
}

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 1em;
    scroll-behavior: smooth;
}

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

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

.navbar-brand {
    font-size: 36px;
    font-weight: 400;
    color: #fff !important;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 36px;
    margin-left: 1em;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    text-decoration: none;
}

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

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

.language-toggle {
    font-size: 14px;
    cursor: pointer;
    margin-left: 20px;
    color: #fff !important;
    transition: all 0.3s ease;
}

.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: 5em;
}

.img-hero img {
    width: 100%;
    max-height: 45em;
    object-fit: cover;
}

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

h1, .hero-paragraph{
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-weight: 400;
}

.mail{
    color: #000;
}

/* Projects Section */
.section-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 2em;
    margin-top: 4em;
}

.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;
}

.project-card {
    cursor: pointer;
    transition: transform 0.3s;
    margin-bottom: 2em;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-title {
    font-size: 20px;
    letter-spacing: -0.25px;
    text-transform: uppercase;
    margin-top: 0.25em;
    font-weight: 400;
}

.video-container-cover {
    overflow: hidden;
    display: inline-block;
    margin-bottom: -0.20em;
}
.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-title{
    font-size: 18px;
    font-weight: 500;
    padding-top: 2em;
    text-transform: uppercase;
}

 .competenze-dettaglio{
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    width: 95%;
}

/* 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: 5em;
}

.contacts{
    padding-bottom: 2em;
}

.footer-link{
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    display: block;
}

.focus{
    font-weight: 500;
    text-decoration: underline;
}

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

.footer-logo img{
    width: 100%;
    padding-bottom: 2em;
}

.footer-bottom {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    padding-bottom: 1em;
}

.legal{
    color: #000;
    text-decoration: none;
    padding: 2em 0 1em;
}

@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;
}

.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;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Christmas Banner */
.christmas-banner-link {
    text-decoration: none;
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.christmas-banner {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: #fff;
    padding: 1.2em 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-scrolling-text {
    display: flex;
    animation: banner-scroll 15s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.banner-scrolling-text span {
    font-size: 48px;
    text-transform: uppercase;
    font-weight: 400;
    padding-right: 40px;
    line-height: 1;
    color: #fff;
}

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

.christmas-banner-link:hover .banner-scrolling-text {
    animation-play-state: paused;
}

.banner-close {
    display: none !important;
    position: absolute;
    top: 50%;
    left: 1em;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    border-radius: 50%;
    z-index: 10;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}


@media screen and (max-width: 768px) {
    .christmas-banner {
        padding: 0.8em 0;
    }

    .banner-scrolling-text span {
        font-size: 28px;
        padding-right: 20px;
    }

    .banner-close {
        right: 0.5em;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    body {
        padding-top: 3.5em;
    }
}

/* 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;
}

/* Projects Table */
.projects-table {
    width: 100%;
    border-collapse: collapse;
}

.projects-table th {
    text-align: left;
    padding-bottom: 0.5em;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border-bottom: 1px solid #000;
}

.projects-table tbody tr {
    cursor: pointer;
    transition: transform 0.3s ease, padding-left 0.3s ease;
    transform: translateX(0);
    border-bottom: 1px solid #000;
}

.projects-table tbody tr:hover {
    transform: translateX(10px);
    background: transparent;
}

.projects-table td {
    font-size: 18px;
    font-weight: 400;
    transition: padding-left 0.3s ease;
    padding-top: 0.55em;
    padding-bottom: 0.55em;
}

.projects-table td.project-name {
    font-weight: 500;
}

.list-view-wrapper {
    padding-left: 0.75em;
    padding-right: 1em;
}

/* Responsive per mobile */
@media screen and (max-width: 768px) {
    .list-view-wrapper {
        padding-left: 1em;
        padding-right: 1em;
    }
}
