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

/* Tipografia generale */
body {
    font-family: 'Albert Sans', sans-serif;
    color: #000;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* Video Section */
.video-section {
    flex-grow: 1; /* Allows this element to grow and fill available space */
    position: relative;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video cover the container */
}

/* H1: 95px, Black, #000 */
h1 {
    font-size: 150px;
    font-weight: 900; /* Black */
    color: #000;
    margin: 0;
}

/* H2: 50px, Black, #000 */
h2 {
    font-size: 50px;
    font-weight: 900; /* Black */
    color: #000;
    margin: 0 0 1rem 0;
    letter-spacing: 10px;
}

/* H3: 45px, Medium, #000 */
h3 {
    font-size: 45px;
    font-weight: 900; /* Black */
    color: #000;
    margin: 0 0 1rem 0;
    letter-spacing: 10px;
}

/* H4: 40px, Black, #000 */
h4 {
    font-size: 40px;
    font-weight: 900; /* Black */
    color: #000;
    margin: 0 0 0.5rem 0;
}

/* H5: 18px, Regular, #c2c2c2 */
h5 {
    font-size: 18px;
    font-weight: 400; /* Regular */
    color: #c2c2c2;
    margin: 0 0 1rem 0;
}

/* Paragrafi: 18px, Regular, #000 */
p {
    font-size: 18px;
    font-weight: 400; /* Regular */
    color: #000;
    margin: 0 0 1.5rem 0;
}

/* Make all header fonts uppercase */
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    height: 50%;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}   

.main-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    color: #000;
}

.hero .carousel {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel img {
    width: 1440px;
    height: auto;
}

.carousel .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    z-index: 10;
}

.carousel .arrow i {
    font-size: 2.5rem;
}

.carousel .arrow.left {
    left: 10px;
}

.carousel .arrow.right {
    right: 10px;
}

.hero .carousel .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.hero .carousel .arrow.left {
    left: 20px;
}

.hero .carousel .arrow.right {
    right: 20px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}

.centered-image {
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

/* Progress Bar */
.progress-bar {
    width: 920px;
    height: 1px;
    background-color: #ccc;
    margin: 20px auto;
    position: relative;
    display: flex;
    align-items: center;
}

.progress {
    height: 1px;
    background-color: #000;
    width: 0;
    position: absolute;
    left: 0;
    transition: width 0.3s ease;
}

.details-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.details-links a {
    background-color: #fff;
    padding: 0 5px;
}

.details-links span {
    font-size: 0.8rem;
    color: gray;
}

/* What We Do Section */
.what-we-do, .causeway {
    padding-top: 2rem;
}

.what-we-do h2, .causeway h2 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
}

.what-we-do .gallery, .causeway .causeway-gallery {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 8rem;
}

.what-we-do .gallery-item, .causeway .causeway-gallery img {
    flex: 1;
    width: 100%;
    height: auto;
}

.what-we-do .gallery-item img {
    width: 100%;
    height: auto;
}

.what-we-do .gallery-item h5 {
    margin-top: 10px;
    text-align: left;
}

.what-we-do .text-container {
    width: 66.67%; /* 2/3 of the page */
    margin-left: auto;
    margin-right: 0;
    font-size: 35px;
    font-weight: 500; /* Medium */
}

.what-we-do .text-container p {
    text-indent: 2em; /* Indent the first line */
}

/* Services Section */
.services {
    padding: 8rem 0 8rem 0;
}

.services h2 {
    text-align: center;
}

.services-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    border-top: 1px solid #DDDDDD;
    border-bottom: 1px solid #DDDDDD;
    width: 100%;
    margin: 0 auto;
}

.services-image, .services-accordion {
    flex: 0 0 50%;
    box-sizing: border-box;
}

.services-image {
    width: 400px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.services-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.services-accordion {
    flex: 1;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding-left: 30px;
    padding-top: 20px;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    font-weight: 900;
    cursor: pointer;
}

.services-accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.services-accordion .accordion-item.active .accordion-content {
    max-height: 500px; /* Adjust based on content length */
}

.services-accordion .accordion-columns {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
}

.services-accordion .column {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Production Accordion Section */
.accordion-columns {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.column {
    flex: 1;
    padding: 0 10px;
}

.accordion-content p:first-of-type {
    color: #C2C2C2;
}

.accordion-columns .column p {
    color: #000000;
}

/* Causeway Section */
.causeway-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 200px;
}

.causeway-text {
    flex: 0 0 33.33%;
    padding-right: 20px;
}

.causeway-images {
    flex: 0 0 66.67%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.causeway-images img:first-child {
    width: 30%;
    position: relative;
    left: 150px;
    transform: translateY(-20%);
    z-index: 1;
}

.causeway-images img:last-child {
    width: 90%;
    position: relative;
    z-index: 0;
}

/* Fade-in-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Footer */
.main-footer {
    padding: 1rem;
    background: #000;
    color: #fff;
    text-align: center;
}

.main-footer .logo-footer {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.main-footer .footer-notes {
    list-style: none;
    margin-bottom: 1rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-column {
    flex: 1;
    padding: 10px;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

.footer-column a {
    text-decoration: none;
    color: #fff;
}

.footer-copyright {
    color: #e0e0e0 !important;
    text-align: center;
    margin-top: 20px;
}

.accordion-toggle-icon {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
    transform-origin: center;
}
