/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background-color: #f4f1eb;
    color: #1c1c1c;
}



/* =========================
   TIPOGRAFIA
========================= */

body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.6;
    background-color: #f4f1eb;
    color: #1c1c1c;
}

/* Titoli principali delle sezioni */

.section-title,
.bio-text .sottotitolo,
.contatti .sottotitolo,
.riconoscimenti-title h5 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1;
    font-weight: normal;
    letter-spacing: 1px;
    color: #1c1c1c;
}

/* Titoli su fondo scuro */

h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 3vw, 45px);
    line-height: 1;
    font-weight: normal;
    letter-spacing: 1px;
    color: #f4f1eb;
}

/* Titoli delle opere e riconoscimenti */

.opera-info h3,
.riconoscimento-info h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: normal;
}

/* Testo */

.bio-text p,
.contatti > p:not(.sottotitolo),
.riconoscimento-info p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.6;
    font-weight: normal;
}

/* =========================
   NAVBAR
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* altezza fissa */
    z-index: 1000;
    background: #222222;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1c1c1c;
}

.navbar {
    max-width: 1440px;
    height: 100%;
    margin: auto;

    padding: 0 1.5%;

    display: flex;
    justify-content: space-between;
    align-items: center; /* invece di left */
}

.logo-container {
    width: 150px;
    height: 70px; /* area fissa */
    overflow: hidden;
    display: flex;
    align-items: center;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.logo {
    color: #f4f1eb;
    text-decoration: none;

    font-size: 40px;
    font-weight: bold;
    letter-spacing: 2px;
}

.menu {
    list-style: none;

    display: flex;
    gap: 45px;
}

.menu a {
    color: #f4f1eb;
    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;

    transition: opacity 0.3s;
}

.menu a:hover {
    opacity: 0.5;
}

/* =========================
   Contenitore
========================= */
.contenitore {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 0 30px;
}


/* =========================
   HERO
========================= */


.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: row;

    align-items: center;

    gap: 60px;

    max-width: 1440px;
    margin: 0 auto;

    padding: 130px 10px;

    background-color: #f4f1eb;
}

/* =========================
   NAVIGAZIONE HERO
========================= */

.navigazione-hero {
    width: 100%;
    margin: 0;
    padding: 40px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    border-top: 1px solid #1c1c1c;
    background-color: #f4f1eb;
}


/* =========================
   TESTO HERO
========================= */

.hero-content {
    width: 50%;
    max-width: 600px;

    color: #1c1c1c;
}

.hero h1 {
    font-size: clamp(50px, 10vw, 130px);
    line-height: 0.85;

    margin-bottom: 20px;
    margin-top: 10px;
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
}

/* =========================
   AUTORE
========================= */
/* =========================
   CITAZIONE
========================= */

.citazione {
    text-align: left;
    margin-bottom: 25px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.5;
}

.autore {
    margin-left: 120px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px !important;
    line-height: 1.5 !important;

    color: #1c1c1c;
}

/* =========================
   IMMAGINE HERO
========================= */
.hero-image {
    width: 120%;
    height: 120%;

    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

/* =========================
   Citazione
========================= */
.citazione {
    text-align: left;
}

/* =========================
   Citazione immagine prima pagina
========================= */
.autore {
    text-align: right;
}

.opera {
    position: relative;
}

.didascalia {
    position: relative;
    right: 0.5%;
    top: 86%;

    text-align: right;
    color: #1c1c1c;
    padding: 10px 15px;
}

.didascalia h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: normal;
}

.didascalia p {
    margin: 5px 0 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}


/* =========================
   SEZIONI
========================= */
.opere {
    width: 100%;
    margin: 0;
    padding: 60px 0 130px;
    background-color:#222222;
}

.biografia,
.contatti {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 60px;
}
.opere-contenuto {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
}
.section-title {
    margin-bottom: 60px;
}

.section-title p,
.bio-text .sottotitolo,
.contatti .sottotitolo {
    color: #1c1c1c;
    font-size: clamp(45px, 6vw, 40px);
    font-weight: normal;
    text-align: left;

}

.contatti .sottotitolo {
    color: #1c1c1c;
    font-size: clamp(45px, 6vw, 40px);
    font-weight: normal;
    text-align: center;

}



h4 {
    font-size: clamp(20px, 2vw, 35px);
    font-weight: normal;
    color: #1c1c1c;
}

h6 {
    font-size: clamp(20px, 2vw, 30px);
    font-weight: normal;
    color: #1c1c1c;
}

.riconoscimenti-title {
    margin-bottom: 60px;
}

.riconoscimenti-title p {
    color: #777;
}

h5 {
    font-size: clamp(45px, 6vw, 40px);
    font-weight: normal;
    text-align: center;
}

/* =========================
   RICONOSCIMENTI
========================= */

.riconoscimenti {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 100px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 100px;
    align-items: center;
}

.riconoscimenti-title {
    margin-bottom: 45px;
}

.riconoscimenti-title h5 {
    margin: 0;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 3px;
    text-align: left;
}

.riconoscimento-list {
    position: relative;
}

.riconoscimento {
    display: grid;
    grid-template-columns: 80px 1fr;

    position: relative;

    padding-bottom: 45px;
}

.riconoscimento:last-child {
    padding-bottom: 0;
}

.anno {
    font-size: 18px;
    font-weight: bold;

    padding-top: 3px;
}

.riconoscimento-info {
    padding-left: 30px;
    border-left: 1px solid #1c1c1c;
}

.riconoscimento-info h3 {
    margin: 0 0 10px;

    font-size: 23px;
    font-weight: 500;
}

.riconoscimento-info p {
    max-width: 550px;

    margin: 0;

    font-size: 16px;
    line-height: 1.6;

    opacity: 0.7;
}

/* FOTO */



.riconoscimenti-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.riconoscimenti-image {
    width: 100%;
}

.riconoscimenti-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* =========================
   GALLERIA
========================= */

.gallery {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

.opera {
    cursor: pointer;
}

.opera img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border: 8px solid #f4f1eb;;
    padding: 5px;
    transition: transform 0.5s;
}

.opera:hover img {
    transform: scale(1.03);
}

.opera-info {
    padding: 20px 0;
}

.opera-info h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.3;
    font-weight: normal;
    color: #f4f1eb;
}

.opera-info p {
    margin-top: 8px;

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;

    color: #f4f1eb;
}


/* =========================
   BIOGRAFIA
========================= */

.biografia {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;
    align-items: center;
}

.biografia::before {
    content: "";
    position: absolute;

    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100vw;

}

.bio-image img {
    width: 50%;
    max-height: 700px;

    object-fit: cover;
}

.bio-text p {
    font-size: 19px;
    line-height: 1.7;

    margin: 25px 0;
}

.bio-text .button {
    margin-top: 15px;

    background: #1c1c1c;
    color: white;
}


/* =========================
   CONTATTI
========================= */

.contatti {
    text-align: center;
}

.contatti h2 {
    margin: 20px 0;
}

.contatti > p:not(.sottotitolo) {
    max-width: 500px;
    margin: 20px auto;

    font-size: 18px;
    line-height: 1.6;
}

.email {
    display: inline-block;

    margin-top: 20px;
    padding: 12px 25px;

    color: #1c1c1c;
    text-decoration: none;

    font-size: 22px;

    border: 1px solid #1c1c1c;
    border-radius: 30px;

    transition: all 0.3s ease;
}

.email:hover {
    background: #1c1c1c;
    color: #f4f1eb;
}

.telefono {
    display: inline-block;

    margin-top: 20px;
    padding: 12px 25px;

    color: #1c1c1c;
    text-decoration: none;

    font-size: 22px;

    border: 1px solid #1c1c1c;
    border-radius: 30px;

    transition: all 0.3s ease;
}

.telefono:hover {
    background: #1c1c1c;
    color: #f4f1eb;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 30px 5%;

    border-top: 1px solid #1c1c1c;
    background: #222222;
    display: flex;
    justify-content: space-between;

    font-family: Arial, sans-serif;
    font-size: 12px;
    color:#f4f1eb;
}

footer a {
    color: #f4f1eb;;
    margin-left: 20px;
    
}

/* =========================
   lightbox
========================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);

    justify-content: center;
    align-items: center;

    padding: 40px;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}


/* =========================
   VERSIONE SMARTPHONE
   ========================= */

@media (max-width: 768px) {

    /* Generale */
    body {
        font-size: 16px;
        overflow-x: hidden;
    }

    section {
        scroll-margin-top: 90px;
    }

    /* NAVBAR */
    header {
        height: 70px;
    }

    .navbar {
    padding: 0 15px;
}



    .logo {
        font-size: 28px;
    }

    .menu {
    margin-left: 30px;
    gap: 15px;
}

    .menu a {
        font-size: 13px;
        letter-spacing: 0.5px;
    }


    /* HERO */
    .hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 35px;
        padding: 110px 20px 60px;
    }

    .hero-content {
        width: 100%;
        max-width: none;
    }

    .hero h1 {
        font-size: clamp(55px, 18vw, 90px);
        line-height: 0.85;
        margin-top: 0;
        margin-bottom: 25px;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.5;
    }

    .citazione {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .autore {
        margin-left: 0;
        font-size: 15px !important;
    }

    .hero-image {
        width: 100%;
        height: auto;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .didascalia {
        position: relative;
        right: auto;
        top: auto;
        padding: 10px 0;
        text-align: right;
    }

    .didascalia h3 {
        font-size: 17px;
    }

    .didascalia p {
        font-size: 13px;
    }


    /* OPERE */
    .opere {
        padding: 50px 0 80px;
    }

    .opere-contenuto {
        padding: 0 20px;
    }

    h2 {
        font-size: 48px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .opera img {
        height: auto;
        width: 100%;
        border: 5px solid #f4f1eb;
        padding: 4px;
    }

    .opera-info {
        padding: 15px 0 0;
    }

    .opera-info h3 {
        font-size: 20px;
    }

    .opera-info p {
        font-size: 14px;
        line-height: 1.5;
    }


    /* RICONOSCIMENTI */
    .riconoscimenti {
        display: block;
        padding: 0 20px 70px;
    }

    .riconoscimenti-title {
        margin-bottom: 40px;
    }

    .riconoscimenti-title h5 {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .riconoscimento {
        grid-template-columns: 60px 1fr;
        gap: 0;
        padding-bottom: 35px;
    }

    .anno {
        font-size: 15px;
    }

    .riconoscimento-info {
        padding-left: 20px;
    }

    .riconoscimento-info h3 {
        font-size: 19px;
    }

    .riconoscimento-info p {
        font-size: 14px;
        line-height: 1.5;
    }


    /* BIOGRAFIA */
    /* BIOGRAFIA - SMARTPHONE */
/* =========================
   BIOGRAFIA - SMARTPHONE
========================= */

#biografia {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 70px !important;
}

#biografia .bio-text {
    width: 100% !important;
    margin: 0 !important;
}

#biografia .bio-images {
    width: 120% !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

#biografia .bio-image {
    width: 10% !important;
    margin: 0 !important;
}

#biografia .bio-image img {
    width: 120% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
}

.bio-text {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

/* L'ARTISTA */
.bio-text .titolo-artista {
    text-align: left;
    font-size: 40px;
    line-height: 1;
    margin-bottom: 20px;
}

/* Un cuoco con una grande passione per la pittura */
.bio-text .sottotitolo {
    text-align: left;
    font-size: 26px;
    line-height: 1.2;
    font-weight: normal;
    margin-bottom: 30px;
}

/* Testo della biografia */
.bio-text p {
    text-align: l;
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
}




    /* CONTATTI */
    .contatti {
        padding: 50px 20px;
    }

    .contatti .sottotitolo {
        font-size: 40px;
        line-height: 1;
    }

    .contatti p {
        font-size: 16px;
    }


    /* FOOTER */
    footer {
        padding: 30px 20px;
    }
}



