﻿#s-container {
    max-width: 1200px;
    margin: auto;
    padding: 130px 40px 30px 40px;
    font-family: Lato, sans-serif;
}

.r {
    flex-direction: row-reverse;
}

.storia-testo {
    flex: 1;
}

.storia-testo h1 {
    font-family: Playfair Display;
    color: #6b4b2a;
    margin-top: 0;
}

.storia-testo h2 {
    font-family: Playfair Display;
    color: #6b4b2a;
    margin-bottom: 20px;
}

.storia-testo p {
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

.storia-im {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.storia-blocco {
    display: flex;
    align-items: center;
    grid-gap: 60px;
    border-bottom: none;
    margin-bottom: 60px;
}

.storia-blocco:last-child {
    margin-bottom: 0;
}

.storia-blocco .storia-testo:only-child {
    flex: 100%;
    max-width: 100%;
}

.storia-im img {
    border-radius: 12px;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.descrizione-im {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
    font-style: normal;
}

.inrisalto {
    font-family: "Darrel Allura", cursive;
    font-style: italic;
    font-size: 32px;
    color: #3e2f24;
    line-height: 1.7;
    padding: 20px 30px;
    background-color: #f7f3ee;
    border-left: 5px solid #b08968;
    border-radius: 8px;
    text-align: justify;
}

@font-face {
    font-family: "Darrel Allura";
    src: url("../fonts/Darrel Allura.ttf") format("truetype");
}

@media (max-width: 850px) {

    #s-container {
        padding: 100px 20px 30px 20px;
    }

    .storia-blocco {
        display: block;
    }

    .storia-im {
        flex: none;
        width: 100%;
        max-width: 220px;
        margin: 0 auto 20px auto;
    }

    .storia-im img {
        width: 100%;
        height: auto;
        display: block;
    }

    .storia-testo {
        display: block;
        width: auto;
    }

    .storia-testo h1,
    .storia-testo h2 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 14px;
    }

    .storia-testo p {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}





