/* =========================================
   MICHELA TISO
   STILE DEL SITO
   ========================================= */


/* ----- IMPOSTAZIONI GENERALI ----- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f6f2;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ----- TESTATA ----- */

.testata {
    width: min(1400px, 92%);
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    letter-spacing: 2px;
}

.logo span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #777;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu a:hover {
    opacity: 0.55;
}


/* ----- HERO ----- */

.hero {
    width: min(1400px, 92%);
    margin: 10px auto 80px;
    display: flex;
    flex-direction: column;
}

/* Immagine hero */
.hero-immagine {
    width: 100%;
}

.hero-immagine img {
    display: block;
    width: 100%;
    height: auto;
}

/* Testo sotto l'immagine */
.hero-testo {
    padding: 45px 30px 20px;
}

.sopratitolo {
    margin: 0 0 15px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    line-height: 1.15;
}

h1 {
    font-size: clamp(38px, 4vw, 64px);
    margin: 0 0 25px;
}

.hero-testo p:not(.sopratitolo) {
    max-width: 430px;
    color: #555;
}

.pulsante {
    display: inline-block;
    width: fit-content;
    margin-top: 25px;
    padding: 13px 22px;
    background: #222;
    color: white;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-decoration: none;
}

.pulsante:hover {
    opacity: 0.75;
}


/* ----- SEZIONI ----- */

.sezione,
.chi-sono {
    width: min(1400px, 92%);
    margin: 0 auto 130px;
}

.titolo-sezione {
    margin-bottom: 45px;
}

h2 {
    font-size: clamp(36px, 4vw, 55px);
    margin: 0;
}


/* ----- GRIGLIA LAVORI ----- */

.griglia {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.progetto {
    overflow: hidden;
}

.progetto img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #ebe8df;
    transition: transform 0.5s ease;
}

.progetto:hover img {
    transform: scale(1.025);
}

.didascalia {
    padding: 16px 2px 5px;
}

.didascalia h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: normal;
}

.didascalia p {
    margin: 3px 0 0;
    color: #777;
    font-size: 13px;
}


/* ----- SEZIONE PROGETTO ----- */

.progetto-intro {
    background: #252525;
    color: white;
    margin: 0 0 130px;
    padding: 120px 8%;
}

.progetto-testo {
    width: min(800px, 100%);
    margin: 0 auto;
    text-align: center;
}

.progetto-testo .sopratitolo {
    color: #aaa;
}

.progetto-testo h2 {
    font-size: clamp(38px, 5vw, 65px);
}

.progetto-testo p:not(.sopratitolo) {
    max-width: 650px;
    margin: 25px auto;
    color: #ccc;
}

.link {
    display: inline-block;
    margin-top: 15px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
}

/* =========================================
   GALLERIA MURALES + TROMPE-L'ŒIL
   ========================================= */

.sezione-galleria {
    width: min(1400px, 92%);
    margin: 70px auto 120px;
}

.titolo-galleria {
    max-width: 800px;
    margin-bottom: 65px;
}

.titolo-galleria h1 {
    margin: 0 0 22px;
}

.titolo-galleria > p:last-child {
    max-width: 620px;
    margin: 0;
    color: #666;
    font-size: 16px;
}


/* Griglia */

.galleria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.galleria figure {
    margin: 0;
}

.galleria img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.35s ease;
}

.galleria a:hover img {
    opacity: 0.78;
}


/* Smartphone */

@media (max-width: 750px) {

    .sezione-galleria {
        margin-top: 50px;
        margin-bottom: 80px;
    }

    .titolo-galleria {
        margin-bottom: 40px;
    }

    .galleria {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}

/* ----- STOLE RELIGIOSE ----- */

.sezione-stole {
    width: min(950px, 88%);
    margin: 0 auto 110px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 70px;
    align-items: center;
}

.stole-immagine {
    width: 100%;
}

.stole-immagine img {
    display: block;
    width: 100%;
    height: auto;
}

.stole-testo {
    max-width: 480px;
}

.stole-testo .sopratitolo {
    margin-bottom: 10px;
}

.stole-testo h2 {
    font-size: clamp(30px, 3vw, 42px);
    margin: 0 0 18px;
}

.stole-testo p:not(.sopratitolo) {
    max-width: 430px;
    margin: 0 0 20px;
    color: #666;
    font-size: 15px;
}

.stole-testo .link {
    margin-top: 5px;
}

@media (max-width: 750px) {

    .sezione-stole {
        display: block;
        margin-bottom: 80px;
    }

    .stole-testo {
        margin-top: 35px;
    }

}


/* ----- CHI SONO ----- */

.chi-sono {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 10%;
}

.testo-biografia {
    max-width: 650px;
    font-size: 17px;
}

.testo-biografia p:first-child {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.35;
}


/* ----- CONTATTI ----- */

.contatti {
    background: #ebe8df;
    text-align: center;
    padding: 110px 20px;
}

.contatti h2 {
    font-size: clamp(40px, 5vw, 65px);
}

.contatti p:not(.sopratitolo) {
    color: #666;
}

.pulsante.chiaro {
    background: #222;
}


/* ----- FOOTER ----- */

footer {
    padding: 30px;
    text-align: center;
    font-size: 11px;
    color: #888;
}


/* =========================================
   SMARTPHONE
   ========================================= */
@media (max-width: 750px) {

    .testata {
        display: block;
        text-align: center;
        padding: 25px 0;
    }

    .menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 20px;
    }

    .hero {
        margin-top: 10px;
        margin-bottom: 80px;
    }

    .hero-testo {
        padding: 45px 30px;
    }

    h1 {
        font-size: 42px;
    }

    .sezione,
    .chi-sono {
        margin-bottom: 80px;
    }

    .griglia {
        grid-template-columns: 1fr;
    }

    .progetto.largo {
        grid-column: span 1;
    }

    .progetto.largo img {
        aspect-ratio: 4 / 3;
    }

    .progetto-intro {
        margin-bottom: 80px;
        padding: 80px 30px;
    }

    .chi-sono {
        display: block;
    }

    .testo-biografia {
        margin-top: 35px;
    }

    .contatti {
        padding: 80px 20px;
    }
}


/* ----- GALLERIA ----- */

.sezione-galleria {
    width: min(1400px, 92%);
    margin: 70px auto 120px;
}

.titolo-galleria {
    max-width: 800px;
    margin-bottom: 65px;
}

.titolo-galleria h1 {
    margin: 0 0 22px;
}

.titolo-galleria > p:last-child {
    max-width: 620px;
    margin: 0;
    color: #666;
    font-size: 16px;
}

.galleria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.galleria figure {
    margin: 0;
}

.galleria img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.35s ease;
}

.galleria a:hover img {
    opacity: 0.78;
}


/* ----- LIGHTBOX ----- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
}

.lightbox.aperta {
    display: flex;
}

.lightbox-img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    border: 0;
    background: none;
    color: white;
    cursor: pointer;
    font-size: 35px;
    line-height: 1;
}

.lightbox-chiudi {
    top: 25px;
    right: 30px;
    font-size: 45px !important;
}

.lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-contenuto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-didascalia {
    margin-top: 15px;
    color: white;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    max-width: 850px;
}


/* ----- GALLERIA SU SMARTPHONE ----- */

@media (max-width: 750px) {

    .sezione-galleria {
        margin-top: 50px;
        margin-bottom: 80px;
    }

    .titolo-galleria {
        margin-bottom: 40px;
    }

    .galleria {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}

    .lightbox {
        padding: 25px 45px;
    }

    .lightbox-img {
        max-width: 95vw;
        max-height: 85vh;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

}