body {
    margin: auto;
    background-color: #F8F8F8;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-image: url("../img/index-photo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    height: 150vh;
    /* Riduci l'altezza per portare l'immagine più vicina */
    width: 100%;
}

#logo {
    display: block;
    /* Rimuove il comportamento di flex su img */
    margin: 15px;
    width: 50px;
    /* Imposta una larghezza personalizzata */
    height: auto;
    /* Mantiene le proporzioni dell'immagine */
    padding-top: 15px;
    padding-left: 5px;

}

.logo-img {
    height: 30px;
}

nav {
    margin-bottom: 5px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 10px;

}

#About {
    display: flex;
    color: #1A1A1A;
    text-decoration: none;
    /*da cambiare a scuola*/
    font-family: "Anonymous Pro", monospace;
    font-size: 1rem;
    font-weight: bolder;
    margin-right: 50px;
}

ul {
    list-style-type: none;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 76vh;
}

.sinistra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 280px;
}

.destra {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.titolo {
    font-weight: bolder;
    font-size: 300px;
    color: #1A1A1A;
    font-family: "Anonymous Pro", monospace;
    margin: 0;
}

.art-1 {
    color: #1A1A1A;
    font-weight: bolder;
    text-align: right;
    font-size: 80px;
    font-family: "Anonymous Pro", monospace;
    margin: 0;
    margin-right: 15px;
}

.kanji {
    color: #1A1A1A;
    font-weight: bolder;
    font-size: 60px;
    font-family: "Anonymous Pro", monospace;
    line-height: 1.2;
    margin: 0;
}

button {
    display: block;
    margin: 0 auto;
    margin-top: 50px;
    font-size: 20px;
    font-family: "Anonymous Pro", monospace;
    width: 300px;
    height: 70px;
    border: none;
    font-weight: bold;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    text-shadow: 1px 1px 0px rgba(74, 74, 74, 1);
    background: #914040;

}

button a {
    color: rgb(9, 9, 9);
    text-decoration: none;
    display: block;
    text-align: center;
    line-height: 50px;
    /* Centra verticalmente il testo */
}

button:hover {
    background: rgb(154, 126, 253);
    transition: transition 0.5s;
}

@media screen and (max-width: 768px) {
    .logo-img {
        height: 18px;
    }

}

/* nuova sezzione sezione foto */


.card-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 2rem;
    background: rgb(69, 69, 69);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    margin: auto;
    margin-top: 50px;
}

.card-img {
    width: 500px;
    margin-top: 50px;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.card-container:hover .card-img {
    transform: scale(1.10);
}

.card-info {
    text-align: center;
    max-width: 500px;
}

.card-title {
    color: #f1f1f1;
    font-size: 1.5rem;
}

.card-description {
    margin: 48px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: #a5a5a5;
}

p {
    text-align: center;
}

.mail {
    margin-bottom: 25px;
}

h4 {
    color: #1A1A1A;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    font-size: 40px;
}

h5 {
    display: flex;
    justify-content: center;
    font-size: large;
}

a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #f1f1f1;
    font-size: large;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    height: 100%;
    width: 100%;
    background-color: #f70505;
}







@media screen and (max-width: 768px) {
    .logo-img {
        margin-left: 0px;
        width: 25px;
    }

    #About {
        margin: 5px;
        /* Imposta una larghezza personalizzata */
        height: auto;
        /* Mantiene le proporzioni dell'immagine */
        padding-top: 5px;
        padding-left: 5px;
    }

    .titolo {
        font-size: 3.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 70px;


    }

    .sinistra {
        margin-top: 40px;
        margin-left: 10px;
    }

    .kanji {
        font-size: 1rem;


    }

    .art-1 {
        font-size: 50px;
    }

    .hero-section {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;

    }

    button {
        width: 200px;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
        border-bottom-left-radius: 7px;
        border-bottom-right-radius: 7px;
        text-shadow: 1px 1px 0px rgba(74, 74, 74, 1);
        background: #914040;
    }

    #card-secion {
        display: flex;
        flex-direction: column;
    }

    .card-container {
        display: flex;
        flex-direction: column;
       margin-left: 24px;
       margin-right: 24px;
    }

    .card-img {
        width: 150px;
        margin: auto;
        border-radius: 12px;
        transition: transform 0.4s ease;
    }
    .card-description{
        margin: 24px auto;
    }
}