/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* Layout comune */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(245, 245, 245, 0.95);
    padding: 1.5rem;
    z-index: 100;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

nav.hide {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    color: #4a4a4a;
    font-weight: 500;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #7ab8d1;
}

/* Titoli sezioni */
.section-title h2 {
    font-size: 2.5rem;
    color: #4a4a4a;
    font-weight: 300;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h2::after,
.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background-color: #7ab8d1;
}

/* Hero section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;

}

.hero-text {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 70%;
    max-width: 800px;
    text-align: right;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: #ccf3ff;
    font-weight: 300;
}

.subtitle-1,
.subtitle-2 {
    font-size: 1.2rem;
    color: #ccf3ff;
    letter-spacing: 3px;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.6;
}

/* About section */
.about {
    padding: 2rem 0;
    background-color: #f5f5f5;
    text-align: center;
    padding-bottom: 3rem;
}

.about h2 {
    font-size: 2.5rem;
    color: #4a4a4a;
    margin: 2rem 0 4rem;
    font-weight: 300;
    position: relative;
    padding-bottom: 0.5rem;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about strong {
    color: #7ab8d1;
    font-weight: bold;
}

/* Photo grid */
.photo-grid {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 0;
    max-width: 1200px;
}

.photo-item {
    position: absolute;
    width: 400px;
    height: 400px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.photo-item:nth-child(1) {
    transform: translateY(-10%);
    z-index: 3;
}

.photo-item:nth-child(2) {
    transform: translateX(-80%);
    z-index: 2;
}

.photo-item:nth-child(3) {
    transform: translateX(80%);
    z-index: 2;
}

/* Contacts section */
.contacts {
    background-color: #7ab8d19f;
    padding: 2rem 0;
    
}

.contacts .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
}

.contact-info {
    color: #4a4a4a;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.contact-info .subtitle {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.contact-info .email {
    display: block;
    color: #4a4a4a;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links i {
    font-size: 3rem;
    color: #4a4a4a;
}

.fa-instagram {
    color: #4a4a4a !important;
}

/* Foto section */
.foto {
    padding: 8rem 0 0 0;
    background-color: #f5f5f5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foto h2 {
    font-size: 2.5rem;
    color: #4a4a4a;
    margin-bottom: 3rem;
    font-weight: 300;
    text-align: center;
}

.foto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 120%;
    max-width: 1800px;
    margin: 5rem auto 0;
    padding: 0 1rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.foto-credits {
    text-align: left;
    color: #4a4a4a;
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-left: -3.5rem;
    padding-bottom: 6.5rem;
}

.foto-credits strong {
    font-weight: bold;
}

.foto-item {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.foto-item:hover {
    opacity: 0.8;
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.foto-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

/* Cinema section */
.cinema-section {
    padding: 8rem 0 4rem 0;
    background-color: #f5f5f5;
    min-height: calc(100vh - 120px);
}

.cinema-section h2 {
    font-size: 2.5rem;
    color: #4a4a4a;
    margin-bottom: 4rem;
    font-weight: 300;
    text-align: center;
}

.cinema-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cinema-year {
    margin-bottom: 4rem;
}

.cinema-year:last-child {
    margin-bottom: 0;
}

.year {
    font-size: 1.5rem;
    color: #7ab8d1;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.cinema-project {
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
}

.cinema-project::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 5px;
    height: 5px;
    background-color: #7ab8d1;
    border-radius: 50%;
}

.cinema-project h3 {
    color: #4a4a4a;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.cinema-details {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-style: italic;
}

.cinema-director {
    color: #4a4a4a;
    font-size: 0.95rem;
}

/* Portfolio section */
.portfolio-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.portfolio-section h2 {
    text-align: center;
    color: #4a4a4a;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.video-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.video-container {
    width: 100%;
    background: #000000;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.video-frame.active {
    opacity: 1;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.video-info {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
    padding: 0 1rem;
}

.video-title {
    color: #4a4a4a;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.video-description {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.4;
}

.video-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 2rem 0;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(74, 74, 74, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #7ab8d1;
    transform: scale(1.2);
}

.nav-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-button:hover {
    background: white;
}

.nav-button.prev {
    left: 0;
}

.nav-button.next {
    right: 0;
}

.nav-button i {
    color: #4a4a4a;
    font-size: 1.5rem;
}

.youtube-link {
    text-align: center;
    margin: 3rem auto 2.5rem;
}

.youtube-link p {
    color: #4a4a4a;
    font-size: 1.1rem;
}

.youtube-link a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.youtube-link a:hover {
    color: #7ab8d1;
}

/* Teatro section */
.show-detail {
    padding: 6rem 0;
    background-color: #f5f5f5;
}

.show-detail:nth-child(even) {
    background-color: #ffffff;
}

.show-detail:nth-child(odd) {
    background-color: #f5f5f5;
}

/* Rimuovi padding sotto l'ultima sezione */
.show-detail:last-child {
    padding-bottom: 0;
}

/* Rimuovi anche il padding dalla sezione dei contatti quando è l'ultima */
.contacts:last-child {
    padding-bottom: 0;
}

/* Base grid layout */
.show-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.show-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.show-info {
    padding-top: 0;
}

.show-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #7ab8d1;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.show-info .producer {
    color: #4a4a4a;
    font-weight: bold;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.show-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #4a4a4a;
}

/* Let's Talk About Plus specifics */
.plus-text {
    color: #4a4a4a;
}

.subtitle {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

/* Oklahoma specific layout */
.oklahoma-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.oklahoma-text {
    grid-column: 2 / 3;
}

.oklahoma-image {
    grid-column: 1 / 2;
}

.oklahoma-cast {
    grid-column: 1 / -1;
    margin-top: 2rem;
    color: #4a4a4a;
    line-height: 1.8;
}

/* Ami e Tami specific layout */
.new-show-grid {
    display: grid;
    grid-template-columns: 51.5% 48.5%;
    max-width: 1200px;
    margin: 0 auto;

    gap: 4rem;
}

.show-text {
    padding: 0;
}

.show-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 2rem;
}

.show-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Image grids */
.vertical-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin-top: -1rem; 
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.vertical-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.horizontal-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.horizontal-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* Carousel */
.carousel {
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin: 4rem auto;
    position: relative;
    perspective: 1000px;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide {
    position: absolute;
    width: 60%;
    max-width: 800px;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-slide.left {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.6;
}

.carousel-slide.center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
}

.carousel-slide.right {
    transform: translateX(50%) scale(0.8);
    opacity: 0.6;
}

/* Photo credits */
.photo-credit {
    color: #4a4a4a;
    text-align: left;
    margin-top: 2rem;
    padding-right: 9rem;
    margin-left: 7rem;
}

.photo-credit-ami_e_tami {
    color: #4a4a4a;
    text-align: left;
    margin-top: 2rem;
    padding-right: 9rem;
    margin-left: 7rem;

}

/* Media Queries */
@media (max-width: 992px) {
    .carousel {
        height: 350px;
    }
    
    .carousel-slide {
        width: 400px;
        height: 240px;
    }

    .carousel-slide.left {
        transform: translate3d(-80%, 0, -200px) scale(0.8);
    }

    .carousel-slide.right {
        transform: translate3d(80%, 0, -200px) scale(0.8);
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }

    .carousel-slide {
        width: 350px;
        height: 210px;
    }

    .carousel-slide.left {
        transform: translate3d(-70%, 0, -150px) scale(0.8);
    }

    .carousel-slide.right {
        transform: translate3d(70%, 0, -150px) scale(0.8);
    }
}

    .show-info h2 {
        font-size: 2rem;
    }

    .show-images {
        padding: 0 2rem;
    }

    .photo-credit,
    .photo-credit-ami_e_tami {
        padding-right: 2rem;
    }


@media (max-width: 480px) {
    .show-detail {
        padding: 3rem 1rem;
    }

    .carousel {
        margin: 2rem auto;
    }

    .vertical-images-grid,
    .horizontal-images-grid {
        margin: 2rem auto;
        gap: 1rem;
    }

    .show-info h2 {
        font-size: 1.8rem;
    }
}

/* Illustration Section Styles */
.illustration-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.main-project {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 4rem;
}

.project-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.echo-logo {
    width: 200px;
    height: auto;
}

.project-title {
    color: #7ab8d1;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.project-description {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
}

/* Masonry Layout */
.illustration-masonry {
    position: relative;
    width: 92%;
    height: 1600px;
    margin-top: 3rem;
}

/* Carousel base styles */
.illustration-carousel {
    position: absolute;
    width: calc(50% - 2rem);
    overflow: visible;
    padding-bottom: 2.5rem;
}

/* Posizionamento specifico per ogni progetto */
.project-1 {
    left: 80px;
    top: 100px;
    width: 45%;
}

.project-1 .carousel-content {
    aspect-ratio: 1/1;/
}

.project-2 {
    right: -40px;
    top: 0;
    width: 45%;
}

.project-2 .carousel-content {
    aspect-ratio: 3/5;
}


.project-3 {
    left: 80px;
    top: 720px;
    width: 45%;
}

.project-3 .carousel-content {
    aspect-ratio: 3/4;
}

.project-4 {
    right: -40px;
    top: 980px;
    width: 45%;
}

.project-4 .carousel-content {
    aspect-ratio: 1/1; 
}

.carousel-content {
    position: relative;
    width: 100%;
    overflow: hidden; 
    border-radius: 8px; 
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 2;
}

.illustration-carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-nav:hover {
    background: white;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(74, 74, 74, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #7ab8d1;
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .illustration-masonry {
        height: auto;
        margin-top: 2rem;
    }

    .illustration-carousel {
        position: relative;
        width: 100%;
        margin-bottom: 2rem;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
    }

    .project-2 .carousel-content {
        aspect-ratio: 2/3;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .echo-logo {
        width: 150px;
    }
}

/* Pensiero Teatro */
.pensiero-teatro {
    position: relative;
    width: 100%;
    height: 900px;
    min-height: 900px;
    padding: 0;
    background-color: #f5f5f5;
    overflow: hidden;
}

.pensiero-teatro-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
}

/* Scritta "Pensiero Teatro" - punto di riferimento per le immagini */
.right-aligned-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;  
    text-align: right;     
    margin-top: 250px;
    margin-left: auto;
    margin-right: 2rem;
    max-width: 600px;
    z-index: 3;
}

.right-aligned-header h3 {
    color: #7ab8d1;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    max-width: 500px;
}

.right-aligned-header p {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 500px;
}

/* Immagine di sfondo 5_2.webp - centrata nella pagina, leggermente spostata a sinistra */
.background-image {
    position: absolute;
    top: 50%;
    left: calc(50% - 200px);
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 700px;
    background-image: url('Illustrazione/5_2.webp');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 0.95;
    z-index: 1;
}

/* Container per l'immagine di destra - distanza verticale fissa di 50px dalla scritta */
.content-layout {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 0 2rem 4rem;
    margin-top: 50px;
    z-index: 3;
}

/* Immagine 5_1.webp - distanza verticale fissa dalla scritta */
.featured-image {
    width: 500px;
    height: auto;
    object-fit: contain;
    display: block;
}

.featured-image-right {
    margin-right: 0;
    margin-left: auto;
}

/* Media Queries */
@media (max-width: 992px) {
    .pensiero-teatro {
        height: 700px;
        min-height: 700px;
    }
    
    .background-image {
        width: 800px;
        height: 600px;
        left: calc(50% - 150px);
    }
    
    .right-aligned-header {
        margin: 200px auto 2rem auto;
        text-align: center;
        align-items: center;
    }
    
    .content-layout {
        justify-content: center;
        padding: 0 2rem 2rem;
        margin-top: 50px;
    }
    
    .featured-image {
        width: 400px;
    }
    
    .featured-image-right {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .pensiero-teatro {
        height: 600px;
        min-height: 600px;
    }
    
    .background-image {
        width: 600px;
        height: 500px;
        left: calc(50% - 100px);
    }
    
    .right-aligned-header {
        margin: 150px auto 2rem auto;
        padding: 0 1rem;
    }
    
    .content-layout {
        flex-direction: column;
        padding: 0 1rem 2rem;
        align-items: center;
        margin-top: 50px;
    }
    
    .featured-image {
        width: 100%;
    }
    
    .featured-image-right {
        margin-right: 0;
    }
}

/* Sezione U.R.C.A. */
.urca-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.urca-logo {
    width: 400px;
    height: auto;
    margin-bottom: -3rem;
    margin-top: -2rem;
}

.urca-header .project-title {
    margin-top: 0;
    color: #7ab8d1;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.urca-header .project-description {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
}

/* Dual Carousel Container */
.dual-carousel-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    margin-bottom: 5rem;
    margin-top: -1rem;
}

/* Individual Carousel Styling */
.project-dual {
    width: calc(50% - 1rem);
    position: relative;
}

.project-dual .carousel-content {
    aspect-ratio: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .urca-logo {
        width: 300px;
    }
    
    .dual-carousel-container {
        flex-direction: column;
        gap: 3rem;
    }

    .project-dual {
        width: 100%;
    }

    .project-dual .carousel-content {
        aspect-ratio: 2/3;
    }
    
    .urca-header .project-title {
        font-size: 1.8rem;
    }
    
    .urca-header .project-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .urca-logo {
        width: 250px;
    }
}

/* Photo grid - Mobile */
@media screen and (max-width: 768px) {
    .photo-grid {
        height: auto;
        flex-direction: column;
        position: static;
        gap: 2rem;
        padding: 0 2rem;
        margin-bottom: 2rem;
    }

    .photo-item {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        transform: none !important;
    }

    .photo-item img {
        width: 100%;
        height: 100%;
    }
}

/* Aggiungi il pulsante hamburger (nascosto su desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #4a4a4a;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(245, 245, 245, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    /* Stile per il menu hamburger quando è attivo */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media screen and (max-width: 768px) {
    .foto .container {
        padding: 0;
    }
    
    .foto-grid {
        width: 100%;
        margin: 2rem auto 0;
        padding: 0 2rem;
        transform: none;
        left: auto;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .foto .container {
        width: 100%;
        padding: 0;
    }

    .foto .section-title {
        padding: 0 2rem;
    }

    .foto-credits {
        margin-left: 0;
        padding: 0 2rem;
        margin-top: 2rem;
        margin-bottom: 4rem;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    /* Layout base per gli spettacoli */
    .show-grid {
        grid-template-columns: 1fr;  /* Una sola colonna */
        gap: 2rem;
        padding: 0 2rem;
    }

    /* Immagini degli spettacoli */
    .show-image {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Griglia verticale */
    .vertical-images-grid {
        grid-template-columns: 1fr;  /* Una sola colonna */
        gap: 1rem;
        padding: 0 2rem;
    }

    .vertical-image img {
        height: auto;  /* Altezza automatica */
        width: 100%;
    }

    /* Griglia orizzontale */
    .horizontal-images-grid {
        grid-template-columns: 1fr;  /* Una sola colonna */
        gap: 1rem;
        padding: 0 2rem;
    }

    .horizontal-image img {
        height: auto;
        width: 100%;
    }

    /* Layout Oklahoma */
    .oklahoma-grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .oklahoma-text {
        grid-column: 1;
    }

    .oklahoma-image {
        grid-column: 1;
    }

    /* Layout Ami e Tami */
    .new-show-grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    /* Trasforma il carousel in una griglia statica su mobile */
    .carousel {
        height: auto;
        margin: 3rem 0;
        perspective: none;
    }

    .carousel-container {
        position: static;
        height: auto;
        transform-style: flat;
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .carousel-slide {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none !important;
        margin: 0;
    }

    .carousel-slide.left,
    .carousel-slide.center,
    .carousel-slide.right {
        transform: none;
        opacity: 1;
        z-index: 1;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Nascondi i controlli del carousel su mobile */
    .carousel-nav,
    .carousel-indicators {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    /* Layout uniforme per tutte le sezioni */
    .show-detail {
        padding: 4rem 0;  /* Spazio uniforme tra le sezioni */
    }

    /* Uniforma gli spazi per Let's talk about plus e Sycorax */
    .vertical-images-grid,
    .horizontal-images-grid {
        grid-template-columns: 1fr;
        gap: 3rem;  /* Aumentato lo spazio tra le immagini */
        padding: 0 2rem;
        margin: 3rem 0;
    }

    /* Uniforma il layout dei contatti per tutte le pagine */
    .contacts {
        padding: 3rem 0 0;  /* Rimuovi il padding bottom */
        margin-top: 2rem;
        margin-bottom: 0;   /* Rimuovi il margin bottom */
    }

    .contacts .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-bottom: 2rem;  /* Aggiungi un po' di padding al container interno */
    }

    .contact-info {
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    /* Rimuovi padding/margin extra nelle sezioni nidificate */
    .show-detail .show-detail {
        padding: 0;
        margin: 3rem 0;
    }

    /* Uniforma gli spazi per tutte le griglie di immagini */
    .show-grid,
    .vertical-images-grid,
    .horizontal-images-grid,
    .carousel-container {
        gap: 3rem;
        margin-bottom: 3rem;
    }

    /* Uniforma gli spazi per i credits delle foto */
    .photo-credit,
    .photo-credit-ami_e_tami {
        padding: 0 2rem;
        margin: 2rem 0 3rem;
    }
}

/* Rimuovi spazi extra dalle ultime sezioni */
.show-detail:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
}

.contacts:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Uniforma il layout dei contatti */
.contacts {
    padding: 3rem 0 0;  /* Rimuovi il padding bottom */
    margin-top: 2rem;
    margin-bottom: 0;   /* Rimuovi il margin bottom */
}

.contacts .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-bottom: 2rem;  /* Aggiungi un po' di padding al container interno */
}
