/* =========================================
   STILI DI BASE
========================================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #fdfdfd; 
    color: #333333; 
}


/* =========================================
   BARRA DI NAVIGAZIONE
========================================= */
.navbar {
    position: sticky;
    top: 0; 
    z-index: 9000; 
    background-color: rgba(255, 255, 255); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    font-weight: 700;
    color: #1a1a1a;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none; 
    color: #555555;
    margin-left: 30px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000000; 
}

.menu-tendina {
    position: relative;
    display: inline-block;
    margin-left: 30px; 
}

.menu-tendina .link-principale {
    margin-left: 0;
}

.contenuto-tendina {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%); 
    background-color: #ffffff;
    min-width: 150px; 
    box-shadow: 0px 10px 25px rgba(0,0,0,0.08); 
    border-radius: 4px;
    padding: 10px 0;
    z-index: 10000; 
}

.nav-links .contenuto-tendina a {
    margin-left: 0;
    padding: 12px 20px;
    display: block;
    text-align: center;
    color: #555555;
    font-size: 0.85em;
    text-transform: uppercase;
}

.nav-links .contenuto-tendina a:hover {
    background-color: #f9f9f9;
    color: #000000;
}

.menu-tendina:hover .contenuto-tendina {
    display: block;
}

a.nav-logo {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 10001;
}

.hamburger div {
    width: 25px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 5px;
    transition: all 0.3s ease;
}

.separatore-mobile {
    display: none; 
}


/* =========================================
   HEADER INDEX
========================================= */
.header-carosello {
    position: relative;
    z-index: 1; 
    height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
}

.sfondi-carosello {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #000000; 
}

.sfondo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    animation: caroselloMagico 25s infinite; 
}

.sfondo-slide:nth-child(1) { animation-delay: 0s; }  
.sfondo-slide:nth-child(2) { animation-delay: -20s; } 
.sfondo-slide:nth-child(3) { animation-delay: -15s; } 
.sfondo-slide:nth-child(4) { animation-delay: -10s; } 
.sfondo-slide:nth-child(5) { animation-delay: -5s; }

@keyframes caroselloMagico {
    0% { 
        opacity: 0; 
        transform: scale(1); 
    }
    4% { 
        opacity: 1; 
    }
    20% { 
        opacity: 1; 
    }
    24% { 
        opacity: 0; 
        transform: scale(1.08); 
    }
    100% { 
        opacity: 0; 
        transform: scale(1);
    }
}

.velo-scuro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contenuto-header {
    position: relative;
    z-index: 2; 
    color: #ffffff; 
}

.contenuto-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.contenuto-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase; 
    letter-spacing: 4px;
    margin-top: 15px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}


/* =========================================
   INDEX - SEZIONI CONTENUTI CENTRALI
========================================= */
.sezione-contenitore {
    display: flex;
    align-items: center;
    margin: 30px 40px;
    padding: 20px 0;
    gap: 60px;
}

.invertito {
    flex-direction: row-reverse;
}

.testo-sezione {
    flex: 1;
}

.testo-sezione h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #222222;
}

.testo-sezione p {
    line-height: 2;
    color: #555555;
    font-size: 1.05em;
}

.immagine-sezione {
    flex: 1;
    overflow: hidden; 
    border-radius: 4px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}

.immagine-sezione img {
    width: 100%;
    height: auto;
    display: block; 
    transition: transform 0.5s ease;
}


.immagine-sezione:hover img {
    transform: scale(1.05); 
}

.bottone-scopri {
    display: inline-block; 
    margin-top: 25px; 
    padding: 12px 35px;
    background-color: #1a1a1a; 
    color: #ffffff; 
    text-decoration: none; 
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 3px; 
    transition: background-color 0.3s ease, transform 0.3s ease; 
}

.bottone-scopri:hover {
    background-color: #555555; 
    transform: translateY(-3px); 
}

.titolo-servizi {
    text-align: center;
    margin: 80px auto 20px auto; 
    padding: 0 20px;
}

.titolo-servizi h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.linea-elegante {
    width: 60px; 
    height: 2px; 
    background-color: #aaaaaa; 
    margin: 0 auto; 
}


/* =========================================
   INDEX - SEZIONE ICONE
========================================= */
.sezione-perche-me {
    padding: 20px 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sezione-perche-me .titolo-servizi {
    margin-top: 40px;
}

.griglia-motivi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.motivo-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.motivo-icona {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.8;
}

.motivo-titolo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: #1a1a1a;
    margin-bottom: 15px;
    margin-top: 0;
}

.motivo-testo {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
}

/* =========================================
   INDEX - RECENSIONI
========================================= */
.sezione-recensioni {
    padding: 20px 20px 80px 20px;
    background-color: #fdfdfd;
}

.contenitore-card {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 50px auto 0 auto;
    flex-wrap: wrap; 
}

.card-recensione {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.04); 
    border: 1px solid #f5f5f5; 
    width: calc(50% - 20px); 
    box-sizing: border-box;
    min-width: 300px; 
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-recensione:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
}

.testo-recensione {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1em;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.autore-recensione {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.autore-recensione span {
    font-weight: 400;
    color: #999999;
    font-size: 0.85em;
    text-transform: none; 
    letter-spacing: 0;
}


/* =========================================
   HEADER GALLERY
========================================= */
.header-gallery-parallax-est {
    position: relative;
    z-index: 1;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('./src/Esterni/Esterni_sfondo.webp'); /* Metti qui un'immagine di sfondo per il titolo della gallery ESTERNI */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.header-gallery-parallax-int {
    position: relative;
    z-index: 1;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('./src/Interni/Interni_sfondo.webp'); /* Metti qui un'immagine di sfondo per il titolo della gallery INTERNI */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.header-gallery-parallax-des {
    position: relative;
    z-index: 1;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('./src/Dettagli/Dettagli_sfondo.webp'); /* Metti qui un'immagine di sfondo per il titolo della gallery HOME DESIGN */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}


/* =========================================
   GALLERY + FOTO CLICCABILI/ZOOM
========================================= */
.sezione-gallery {
    padding: 80px 20px;
    max-width: 90%;
    margin: 0 auto;
}

.griglia-foto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
}

.foto-cliccabile {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    border-radius: 4px;
    cursor: pointer; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.foto-cliccabile:hover {
    transform: scale(1.03); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); 
    z-index: 100000; 
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh; 
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    pointer-events: none; 
}

.chiudi-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chiudi-lightbox:hover {
    color: #aaaaaa;
}

/* =========================================
   GALLERY - PULSANTI FINE PAGINA
========================================= */
.pulsanti-fine-pagina {
    display: flex;
    justify-content: center;
    gap: 20px; 
    padding: 20px 20px 80px 20px; 
    background-color: transparent;
    flex-wrap: wrap;
}

/* =========================================
   CHI SONO - HEADER
========================================= */
.header-about-parallax {
    position: relative;
    z-index: 1;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;   
    background-image: url('./src/Chi_sono/Chisono_sfondo.webp'); /* Metti qui un'immagine di sfondo per il titolo della ABOUT ME */
    background-attachment: fixed;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* =========================================
   CHI SONO - SEZIONE CLIENTI
========================================= */
.sezione-clienti-about {
    padding: 20px 20px 100px 20px;
    background-color: #fdfdfd;
}

.griglia-quattro-colonne {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 60px;
    max-width: 70%; 
    margin: 50px auto 0 auto; 
    align-items: center; 
    justify-items: center;
}

.griglia-quattro-colonne img {
    height: auto; 
    width: 200px;
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.griglia-quattro-colonne img:hover {
    transform: scale(1.1); 
}


/* =========================================
   FOOTER
========================================= */
.footer-sito {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 40px;
    margin-top: 80px; 
}

.footer-contenuto {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    max-width: 100%;
    margin: 0; 
}

.footer-sinistra {
    text-align: left;
    max-width: 50%;
}

.footer-sinistra h2 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 5px 0;
    font-size: 1.4em;
    font-weight: 400;
}

.footer-sinistra p {
    color: #aaaaaa;
    margin: 5px 0;
    font-size: 0.85em;
    line-height: 1.6;
}

.footer-sinistra .copyright {
    margin-top: 25px;
    font-size: 0.75em;
    color: #666666;
}

.footer-destra {
    display: flex;
    flex-direction: column;
    gap: 5px; 
}

.contatto-footer {
    display: flex;
    align-items: center; 
    text-decoration: none;
    color: #aaaaaa;
    font-size: 0.9em;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.contatto-footer:hover {
    color: #ffffff;
}

.icona-footer {
    width: 20px; 
    height: 20px;
    margin-right: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contatto-footer:hover .icona-footer {
    opacity: 1;
}


/* =========================================
   BANDA CREDITS FINALE
========================================= */
.banda-credits {
    background-color: #192cbe;
    text-align: center;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
}

.banda-credits p {
    margin: 0;
    font-size: 0.8em; 
    color: #ffffff; 
    letter-spacing: 1px;
}

.banda-credits a {
    color: #ffffff; 
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.banda-credits a:hover {
    color: #000000; 
}




/* =========================================
   =========================================
   MEDIA QUERIES PER RESPONSIVE DESIGN
=========================================
========================================= */
@media (max-width: 900px) {

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: rgba(255, 255, 255);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    .nav-logo, .nav-logo a {
        font-family: 'Playfair Display', serif;
        font-size: 1.2em;
        font-weight: 700;
        color: #1a1a1a;
        text-decoration: none !important;
    }
    .nav-links a {
        font-family: 'Montserrat', sans-serif;
        text-decoration: none;
        color: #555555;
        margin-left: 30px;
        font-size: 0.9em;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.3s ease;
    }
    .nav-links a:hover {
        color: #000000;     
    }
    .hamburger {
        display: block;
    }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%; 
        background-color: #fdfdfd; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease; 
        z-index: 10000;
    }
    .nav-links.menu-attivo {
        right: 0;
    }
    .nav-links a {
        margin: 20px 0;
        font-size: 1.3em;
    }
    .menu-tendina {
        margin-left: 0;
        text-align: center;
    }
    .contenuto-tendina {
        position: static;
        box-shadow: none;
        background-color: transparent;
        transform: none;
        padding-top: 10px;
    }
    .hamburger.croce .linea1 {
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    .hamburger.croce .linea2 {
        opacity: 0;
    }
    .hamburger.croce .linea3 {
        transform: rotate(45deg) translate(-5px, -5px);
    }
    .separatore-mobile {
        display: block;
        width: 40px;
        height: 1px;
        background-color: #cccccc;
        margin: 10px auto;
    }
    .link-principale {
        display: none !important;
    }
    .contenuto-tendina {
        display: flex !important;
        flex-direction: column;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    .nav-links .contenuto-tendina a {
        margin: 10px 0; 
        font-size: 1.1em;
        color: #555555;
    }

    .contenitore-card {
        flex-direction: column;
        gap: 30px;
        margin-top: 20px;
    }
    .card-recensione {
        width: 100%;
    }
    .card-recensione  p{
            font-size: 1em;
    }

    .header-parallax {
        position: relative;
        height: 85vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-attachment: fixed;
        background-position: center;
        background-size: cover;
    }
    .contenuto-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 2.5em;
        margin: 0;
        letter-spacing: 2px;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
        line-height: 1.1;
    }
    .contenuto-header p {
        font-family: 'Montserrat', sans-serif;
        font-size: 1em;
        text-transform: uppercase;
        letter-spacing: 4px;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
        margin: 15px 30px 0 30px;
    }

    .sezione-contenitore, .sezione-contenitore.invertito {
        flex-direction: column;
        text-align: center;
        gap: 0px;
        margin: 20px 20px 40px 20px;
    }
    .testo-sezione h2 {
        margin: 20px 0;
        line-height: 1.1;
        font-size: 2.0em;
    }
    .testo-sezione p {
        margin: 10px 10px;
        font-size: 0.9em;
        line-height: 1.6;
    }
    .bottone-scopri {
        margin-top: 15px;
    }

    .titolo-servizi {
        margin: 20px 20px 20px 20px;
    }
    .titolo-servizi h2 {
        font-size: 2em;
    }
    .griglia-motivi {
        margin-top: 10px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .motivo-icona {
        width: 120px;
        height: auto;
        margin-bottom: 10px;
    }
    .motivo-testo {
        margin: 0 20px;
    }

    .griglia-foto {
        grid-template-columns: 1fr;
    }
    .griglia-foto img {
        height: 300px;
    }
    .header-gallery-parallax {
        background-attachment: scroll;
    }
    .sezione-gallery {
        padding: 40px 20px;
    }

    .header-gallery-parallax-est, .header-gallery-parallax-int, .header-gallery-parallax-des {
        background-attachment: scroll;
        height: 30vh;
    }

    .griglia-quattro-colonne {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 30px;
    }

    .header-about-parallax {
        background-attachment: scroll;
        height: 30vh;
    }

    .pulsanti-fine-pagina {
        gap: 10px;
        justify-content: none;
        padding-bottom: 50px;
    }
    .pulsanti-fine-pagina a {
        padding: 15px 30px;
        font-size: 0.75em;
        margin: 5px;
    }

    .footer-sito {
        margin-top: 20px;
    }
    .footer-contenuto {
        flex-direction: column-reverse; 
        gap: 30px;
    }
    .footer-sinistra {
        max-width: 100%;
        text-align: center;
    }
    .footer-destra {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 0;
        gap: 10px;
    }
    .footer-destra br {
        display: none;
    }
    .footer-destra > div {
        width: 100%; 
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center; 
        gap: 15px; 
        margin-top: 10px; 
    }
    .contatto-footer {
        padding: 10px;
    }
    .contatto-footer span {
        display: none;
    }
    .icona-footer {
        margin-right: 0;
        width: 30px; 
        height: 30px;
        transition: color 0.3s ease;
    }

}