.noMargin {
    margin: 0px;
}

body {
    background-color: #efebe5;
    margin: 0px;
}

.divisione {
    position: relative;
    overflow: hidden;
}

.divisione::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("Immagini/Sfondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    /* trasparenza molto leggera */
    z-index: 0;
}

.divisione>* {
    position: relative;
    z-index: 1;
}


.descrizione {
    font-size: 40px;
    text-align: center;
    padding-top: 8%;
    padding-bottom: 30px;
}

.divisione3 {
    background-color: #444;
    color: white;
    padding: 40px;
    text-align: center;
    font-size: 30px;
    line-height: 2;
    margin-top: 40px;
}

.sottoTesto3 {
    padding-top: 20px;
    color: white;
    text-align: center;
    font-size: 40px;

}

.sfondo {


    display: flex;
    justify-content: center;
    align-items: center;
}

.sfondo-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.img2 {
    margin-top: 10px;
    margin-bottom: 150px;
}

.testo2 {
    text-align: center;
    margin-left: 20%;
    margin-right: 20%;
    font-size: 25px;
    margin-bottom: 10%;
    line-height: 2;
}


.divisore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.4em;
    line-height: 1.4em;
}

.sezione1 {
    background-color: #efebe5;
}

.sezione2 {
    background-color: #f4f1ed;
}



.icone {
    display: flex;
    gap: 14em;
    margin-right: 1%;
}

.icona img {
    width: 90%;
    margin-bottom: 10%;
}

.bottone:hover {
    transform: scale(1.1);
}

.fotoSopra {
    margin-top: 200px;
}

.fotoNumDue {
    margin-top: 200px;
}


#barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    padding: 15px 40px;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: 6%;
}


#barra img {
    width: 80px;
    object-fit: contain;
}

.barra-superiore {
    width: 90%;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: 4%;

}

.barra-superiore.nascosta {
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}


.barra-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
}

.barra-top img {
    width: 80px;
}

.siteTitleBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centra titolo + sottotitolo */
    line-height: 1.1;
}

.siteSubtitle {
    font-size: 14px;
    font-weight: 400;
    color: black;
    margin-top: 4px;
    letter-spacing: 0.5px;
    font-style: italic
}

.siteTitle {
    font-weight: 900;
    color: black;
    font-size: 30px;
    letter-spacing: 1px;
}

.barra-menu {
    width: 100%;
    border-top: 2px solid black;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    background-color: white;
}


#menu li a {
    text-decoration: none;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

#menu li a:hover {
    color: #d32f2f;
}



.contatti {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: #444;
}



#menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px
}

#menu>li>a {
    text-decoration: none;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

#menu>li>a:hover {
    color: #d32f2f;
}

#menu li {
    position: relative;
}



#menu li ul li a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

#menu li ul li a:hover {
    background-color: #f5f5f5;
}


#menu>li {
    position: relative;
    padding: 0 20px;
    margin-right: 20px;
    /* spazio ai lati della linea */
}

#menu>li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    /* spessore linea */
    height: 18px;
    /* altezza linea */
    background-color: #999;
    /* colore linea */
}

#menu li {
    position: relative;
}

/*#menu li ul {
    position: absolute;
    top: 100%;
     scende sotto la voce
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
} */

/*#menu li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}*/

#menu li ul li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

#menu li ul li a:hover {
    background-color: #f5f5f5;
}

/* Submenu di primo livello (quello che si apre sotto) */
#menu>li>ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

#menu>li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu LATERALE 
.has-submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 160px;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Quando clicchi → appare 
.has-submenu.open .submenu {
    display: block;
}

/* Disattiva hover sui submenu interni 
#menu li ul ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.submenu {
    list-style: none;
} */


.boxTitolo {
    align-items: center;
}

.coloreSfondo {
    background-color: #f5ebe0;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.foto-slide {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    display: none;
    border-radius: 12px;
}

.foto-slide.attiva {
    display: block;
}

video.foto-slide {
    background: black;
}

/* Nasconde il submenu */
.has-submenu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 160px;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mostra il submenu quando attivo */
.has-submenu.open .submenu {
    display: block;
}



/*.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 5%;
} */

.contenitoreBox {
    display: flex;
    gap: 150px;
    /* spazio tra i box */
    justify-content: center;
    /* li centra orizzontalmente */
    align-items: flex-start;
}


.carta {
    padding: 5px;
    background-color: black;
    width: 100%;
    box-shadow: 0px 5px 10px 3px black;
    transition: transform 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.carta:hover {
    transform: scale(1.1);
}

.sfondoCarta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenutoCarta {
    padding: 80px 25px 25px 25px;
    font-size: 25px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.titoloCarta {
    margin-top: -30px
}

.tasto {
    color: white;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #333;
    text-decoration: none;
}

.tasto:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}


.lineaHome {
    border: 1px solid black;
    width: 90%;
}

.informazioni {
    font-size: 1.2em;
    margin-left: 5%;
}

.titoloPagina {
    padding-top: 100px;
    padding-bottom: 40px;
    text-align: center;
}


.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* massimo 4 per riga */
    gap: 60px;
    justify-items: center;
    width: 90%;
    margin: auto;
}

.doppia-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* distanza tra le due card */
    width: 80%;
    align-items: center;
}

.card-piccola .card-btn {
    margin-top: -10px;
    /* invece di 15px */
}

.prima-riga {
    grid-column: span 1;
}

.prima-riga:nth-child(1),
.prima-riga:nth-child(2),
.prima-riga:nth-child(3) {
    grid-column: span 1;
}

/* Forza la prima riga a 3 colonne */
.prima-riga:nth-child(3) {
    grid-column-end: 4;
}



.slideshow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 30px;
}



.descrizione-lavori {
    font-size: 20px;
    font-family: "Montserrat", sans-serif;
    color: black;
    margin-top: 180px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: -330px;
    margin-right: -20%;
    line-height: 1.4;

}


#foto {
    width: 100%;
    border-radius: 5px;
}

#indietro,
#avanti {
    cursor: pointer;
    padding: 16px;
    color: black;
    font-weight: bold;
    font-size: 1.2em;
    background: none;
    border: none;
}

/*.hamburger-menu {
    display: none;
    font-size: 30px;
    cursor: pointer;
}*/

.scritta {
    font-size: 42px;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    color: black;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    margin-top: -120px;
    padding-left: 70px
}

.scritta::before {
    content: "";
    width: 250px;
    height: 4px;
    background-color: black;
    position: absolute;
    top: -20px;

    padding-left: 20px
}


body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    padding: 20px;
}

.titolo-pagina {
    text-align: center;
    margin-bottom: 30px;
}


.card {
    width: 300px;
    text-align: center;
    margin-left: 80px;
    margin-top: 80px;
}

/* FOTO SOPRA */
.card-img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
}

/* Effetto 3D al passaggio */
.card-img:hover {
    transform: translateY(-6px);
}

/* BOTTONE SOTTO */
.card-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: black;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease
}

/* Effetto hover */
.card-btn:hover {
    background: #222;
    transform: scale(1.05);
}

.sezione-utenti {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 per riga */
    gap: 50px;
    /* spazio tra i blocchi */
    max-width: 1100px;
    margin: 60px auto;
}

.blocco-utente {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.blocco-utente img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-left: 300px;
    margin-bottom: 100px;
}

.info-utente h3 {
    font-size: 30px;
    margin: 0 0 10px 0;
    color: black;
    margin-top: 40px;
}

.info-utente p {
    font-size: 20px;
    line-height: 1.5;
    max-width: 600px;
}


.SezioneLavori {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 100px;
    margin-bottom: 50px;
    background-color: #a99985;
}



.parte2 {
    background-color: #8b8c89;
    padding: 100px;
}

.riga-cerchi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    margin-top: 200px;
}

/* stile base dei cerchi */
.cerchio {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
    text-align: center;
    line-height: 1.8;
}

/* cerchio sinistro (più basso) */
.cerchio-sx {
    background-color: #d32f2f;
    transform: translateY(80px);
    opacity: 0;
    animation: rotola-sx 1.8s ease-out forwards;
    margin-bottom: 150px;
}


/* cerchio destro (più alto) */
.cerchio-dx {
    background-color: #f1c40f;
    color: black;
    transform: translateY(-80px);
    opacity: 0;
    animation: rotola-dx 1.8s ease-out forwards;
}



/* Slideshow a destra */
.divisoreFoto {
    width: 65%;
}

.slideshow {
    width: 50%;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 250px;
    margin-top: 8%;
    margin-bottom: 4%;
}



.slideshow img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.slideshow input[type="button"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
}

#indietro {
    left: -32px;
}

#avanti {
    right: -32px;
}

.dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.4s;
}

.dot.active {
    background-color: #444;
}

.dots2 {
    text-align: center;
    margin-top: 15px;
}

.dot2 {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.4s;
}

.dot2.active {
    background-color: #444;
}

#foto {
    opacity: 0;
    transition: opacity 4s ease-in-out;
}

#foto.visibile {
    opacity: 1;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.fade-in.visibile {
    opacity: 1;
    transform: translateY(0);
}

.SezioneLavori2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px;
    margin-top: 150px;
}

/* FOTO A SINISTRA */
.divisoreFoto2 {
    width: 50%;
}

.slideshow2 {
    width: 100%;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow2 img {
    width: 50%;
    border-radius: 8px;
    display: block;
}

/* TESTO A DESTRA */
.testo-lavori2 {
    width: 45%;
    text-align: left;
}

.scritta2 {
    font-size: 42px;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    color: black;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.scritta2::before {
    content: "";
    width: 200px;
    /* lunghezza riga */
    height: 4px;
    /* spessore riga */
    background-color: black;
    position: absolute;
    top: -20px;
    /* distanza dalla scritta */
    left: 0;
}


.descrizione-lavori2 {
    font-size: 20px;
    font-family: "Montserrat", sans-serif;
    color: black;
    line-height: 1.4;
}

.linea-animata {
    width: 0;
    height: 3px;
    background-color: black;
    margin: -20px auto 20px auto;
    opacity: 0;
    transition: width 2.5s ease, opacity 0.5s ease;
}

.linea-animata.attiva {
    width: 80%;
    opacity: 1;
}

.tessere-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Tessera quadrata */
.tessera {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #444;
    width: 400px;
    margin-left: 100px;
    margin-top: 30px;
}

/* Immagine diversa per ogni tessera */
.tessera::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 1;
}

/* Overlay scuro */
.tessera::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

/* Link */
.tessera-link {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
}

/* Contenuto */
.tessera-content {
    z-index: 4;
    height: 100%;
    padding: 20px;
}

/* Scritta in alto a sinistra */
.tessera-content h3 {
    font-size: 2rem;
    font-weight: 600;
    padding: 30px;
    line-height: 40px;
}

/* Freccia in basso a destra */
.tessera-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 4rem;
    z-index: 5;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover */
.tessera:hover .tessera-arrow {
    transform: translateX(6px);
}

.tessera:hover::before {
    opacity: 0.5;
}

.sezione-info {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
    font-family: "Montserrat", sans-serif;
}

/* Titolo in alto */
.titolo-info {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #222;
}

/* Contenitore foto + box */
.contenitore-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Foto con bordi stondati */
.foto-info {
    width: 45%;
    max-height: 600px;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    margin-top: 80px;
}

/* Box descrizione */
.box-descrizione {
    margin-top: 150px;
    width: 45%;
    background-color: #e3d5ca;
    padding: 80px;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);

}

.box-descrizione h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #333;
}

.box-descrizione p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

.fotoscorrevoli-section {
    width: 100%;
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.fotoscorrevoli-container {
    width: 70%;
    max-width: 900px;
    height: 650px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.foto-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-color: #f4f4f4
}


.foto-slide.attiva {
    opacity: 1;
}


.footer {
    background: #111;
    color: #fff;
    padding: 50px 0;
    padding: 60px 0;
    font-family: "Inter", "Poppins", sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer p {
    line-height: 1.7;
    margin-bottom: 14px;
    color: #ccc;
    font-size: 15px;
}

.footer-logo {
    width: 160px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #ddd;
    text-decoration: none;
    transition: 0.2s;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-social a {
    color: #fff;
    font-size: 20px;
    margin-right: 15px;
    transition: 0.2s;
}

.footer-social a:hover {
    color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        text-align: left;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .contenitore-info {
        flex-direction: column;
        text-align: center;
    }

    .foto-info,
    .box-descrizione {
        width: 90%;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .tessere-section {
        grid-template-columns: 1fr;
    }
}





@keyframes rotola-sx {
    0% {
        transform: translateX(-300px) rotate(-180deg) translateY(80px);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotate(0deg) translateY(80px);
        opacity: 1;
    }
}

@keyframes rotola-dx {
    0% {
        transform: translateX(300px) rotate(180deg) translateY(-80px);
        opacity: 0;
    }

    100% {
        transform: translateX(0) rotate(0deg) translateY(-80px);
        opacity: 1;
    }
}

@media (max-width: 770px) {
    .Testo-cerchio {
        font-size: 14px !important;
        line-height: 1.25 !important;
        padding: 20px !important;
    }

    .Testo-cerchio h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
}