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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Project Info Section */
.project-info {
    padding-top: 6em;
    padding-bottom: 4em;
}

.project-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4em;
    margin-bottom: 4em;
    align-items: start;
}

h1 {
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 0.5em;
}

.project-intro {
    font-size: 24px;
    line-height: 1.2;
}

.year{
    text-align: right;
    font-size: 18px;
}

.project-meta{
    margin-top: 2em;
}

/* Accordion Section */
.accordion-section {
    padding-bottom: 4em;
}

.custom-accordion {
    border-top: 1.5px solid #000;
}

.accordion-item {
    border: none;
    border-bottom: 1.5px solid #000;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2em;
    align-items: start;
}

.accordion-header {
    grid-column: 1;
}

.accordion-button {
    background: transparent;
    border: none;
    padding: 1.5em 0;
    font-size: 21px;
    text-transform: uppercase;
    color: var(--primary-black);
    text-align: left;
    width: 100%;
    box-shadow: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.accordion-button:hover {
    opacity: 0.6;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary-black);
    opacity: 1;
}

.accordion-button::after {
    display: none;
}

.accordion-label {
    font-weight: 400;
}

.accordion-collapse {
    background: transparent;
    grid-column: 24;
    padding-top: 2em;
}

.accordion-body {
    padding: 0 0 1.5em 0;
    font-size: 18px;
    line-height: 1.2;
}

/* Portfolio Visual Section */
.portfolio-visual {
    padding-bottom: 4em;
}

.portfolio-visual img,
.portfolio-visual video {
    width: 100%;
    margin-bottom: 1em;
    display: block;
}

/* Portfolio List Section - Stile Blog */
.portfolio-list-section {
    padding-top: 2em; /* Padding invece di margin per allineamento */
}

.portfolio-list-container {
    margin-top: 2em;
}

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

.portfolio-list-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.portfolio-divider {
    border-bottom: 1px solid #000;
    width: 100%;
    transition: all 0.3s ease;
}

.portfolio-content {
    padding: 0.5em 0;
    transition: all 0.3s ease;
    position: relative;
    align-items: center;
}

.portfolio-project-title {
    font-size: 18px;
    text-transform: uppercase;
    margin: 0;
    padding: 0.5em 0;
    font-weight: 400;
    transition: all 0.3s ease;
}

.portfolio-year {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    padding: 0.5em 0;
    color: #666;
    text-align: center;
    transition: all 0.3s ease;
}

.portfolio-services {
    font-size: 16px;
    color: #000;
    text-align: right;
    display: block;
    padding: 0.5em 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-bottom {
    margin-top: 3em;
}

.cta-bottom h4 {
    font-size: 21px;
    font-weight: 400;
    text-transform: uppercase;
    padding-bottom: 1em;
}

.final-cta {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1em;
}

.cta-conversion {
    font-size: 40px;
    color: #666;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    margin: 0;
    padding: 0;
}

.cta-conversion:hover {
    color: #000;
}

.suggested-project {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.suggested-project:hover {
    transform: scale(1.02);
}

.cta-bottom h5 {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    text-decoration: none !important;
    margin-top: 1em;
    margin-bottom: 1.5em;
}

@media (min-width: 768px) {
    .cta-bottom .row .col-md-6 {
        display: inline-block;
        vertical-align: top;
    }
    
    .cta-bottom .col-md-6 .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .cta-bottom .col-md-6 .row .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .final-cta {
        font-size: 36px;
    }

    .cta-conversion {
        font-size: 24px;
    }

    .cta-bottom h5 {
        font-size: 18px;
    }
    
    .cta-bottom .col-xs-12 {
        width: 100%;
        margin-bottom: 2em;
    }
    
    .suggested-project {
        margin-bottom: 0.25em;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .final-cta {
        font-size: 42px;
    }
    
    .cta-conversion {
        font-size: 32px;
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }

    .portfolio-navbar-overlay .navbar-brand {
        font-size: 28px;
    }

    .project-header {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .project-meta h1 {
        font-size: 36px;
    }

    .project-intro {
        font-size: 20px;
    }

    .year{
        text-align: left;
    }

    .accordion-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .accordion-header {
        grid-column: 1;
    }

    .accordion-button {
        font-size: 20px;
        padding: 1.5em 0;
    }

    .accordion-collapse {
        grid-column: 1;
        padding-top: 0;
    }

    .accordion-body {
        padding-bottom: 2em;
        font-size: 18px;
    }

    .final-cta{
        font-size: 36px;
    }

    .cta-link {
        font-size: 24px;
    }

    .social-link {
        font-size: 24px;
    }

    .suggested-title {
        font-size: 18px;
    }

    .project-name {
        font-size: 16px;
    }
}

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

