AltoCode

Nemoli Menù

HTML


<!-- ============================================ -->
<!--                  Prezzi                      -->
<!-- ============================================ -->

<section id="pricing-1028">
    <div class="cs-container">
        <div class="cs-content">
            <h2 class="cs-title">I Nostri Piatti</h2>
            <ul class="cs-menu-group">
                <li class="cs-menu-item">
                    <h3 class="cs-h3">
                        <span class="cs-header">Piatto Esempio</span>
                        <span class="cs-price">€29</span>
                    </h3>
                    <p class="cs-menu-text">
                        Un modo creativo di dipingere, decorare, valorizzare e impreziosire.
                    </p>
                </li>
                <li class="cs-menu-item">
                    <h3 class="cs-h3">
                        <span class="cs-header">Piatto Esempio</span>
                        <span class="cs-price">€29</span>
                    </h3>
                    <p class="cs-menu-text">
                        Un modo creativo di dipingere, decorare, valorizzare e impreziosire.
                    </p>
                </li>
                <li class="cs-menu-item">
                    <h3 class="cs-h3">
                        <span class="cs-header">Piatto Esempio</span>
                        <span class="cs-price">€29</span>
                    </h3>
                    <p class="cs-menu-text">
                        Un modo creativo di dipingere, decorare, valorizzare e impreziosire.
                    </p>
                </li>
                <li class="cs-menu-item">
                    <h3 class="cs-h3">
                        <span class="cs-header">Piatto Esempio</span>
                        <span class="cs-price">€29</span>
                    </h3>
                    <p class="cs-menu-text">
                        Un modo creativo di dipingere, decorare, valorizzare e impreziosire.
                    </p>
                </li>
                <li class="cs-menu-item">
                    <h3 class="cs-h3">
                        <span class="cs-header">Piatto Esempio</span>
                        <span class="cs-price">€29</span>
                    </h3>
                    <p class="cs-menu-text">
                        Un modo creativo di dipingere, decorare, valorizzare e impreziosire.
                    </p>
                </li>
            </ul>
        </div>
        <picture class="cs-picture">
            <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Food-Menu/steak2.jpg">
            <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Food-Menu/steak2.jpg">
            <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Food-Menu/steak2.jpg" alt="piatto di carne" width="542" height="743">
        </picture>
    </div>
</section>

CSS


/*-- -------------------------- -->
<---          Prezzi            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #pricing-1028 {
        padding: var(--sectionPadding);
    }
    #pricing-1028 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #pricing-1028 .cs-content {
        text-align: left;
        width: 100%;
        max-width: 46.125rem;
        padding: 3rem clamp(1.5rem, 3.5vw, 3rem);
        box-sizing: border-box;
        border: 1px solid #c7c7c7;
        border-top: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #pricing-1028 .cs-title {
        margin: 0;
        display: contents;
    }
    #pricing-1028 .cs-title:after {
        content: "";
        width: 100%;
        height: 1px;
        margin: clamp(1.25rem, 3vw, 2rem) 0;
        background: #c7c7c7;
        opacity: 1;
        position: relative;
        display: block;
    }
    #pricing-1028 .cs-menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        column-gap: 1.25rem;
        row-gap: clamp(1.75rem, 3vw, 2.5rem);
    }
    #pricing-1028 .cs-menu-group {
        width: 100%;
        max-width: 39.375rem;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(1.75rem, 3vw, 2.5rem);
    }
    #pricing-1028 .cs-menu-item {
        list-style: none;
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.5rem;
    }
    #pricing-1028 .cs-h3 {
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        z-index: 1;
    }
    #pricing-1028 .cs-h3:before {
        content: "";
        width: 60%;
        height: 1px;
        background-image: linear-gradient(
            90deg,
            #c7c7c7,
            #c7c7c7 75%,
            transparent 75%,
            transparent 100%
        );
        background-size: 6px 6px;
        border: none;
        opacity: 1;
        display: block;
        order: 2;
        z-index: -1;
    }
    #pricing-1028 .cs-header {
        font-size: clamp(1.25rem, 2vw, 1.5625rem);
        line-height: 1.2em;
        text-align: inherit;
        font-weight: 700;
        width: auto;
        max-width: 70%;
        color: var(--headerColor);
        display: block;
        flex: none;
    }
    #pricing-1028 .cs-price {
        font-size: clamp(1.6525rem, 2.5vw, 1.9375rem);
        line-height: 1.2em;
        font-weight: bold;
        color: var(--primary);
        order: 3;
    }
    #pricing-1028 .cs-menu-text {
        font-size: clamp(1rem, 2vw, 1.25rem);
        line-height: 1.5em;
        text-align: inherit;
        margin: 0;
        color: var(--bodyTextColor);
    }
    #pricing-1028 .cs-picture {
        width: 100%;
        height: 72vw;
        display: block;
        order: -1;
        position: relative;
    }
    #pricing-1028 .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #pricing-1028 .cs-container {
        max-width: 80rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }
    #pricing-1028 .cs-content {
        width: 66%;
        border: 1px solid #c7c7c7;
        border-right: none;
        flex: none;
    }
    #pricing-1028 .cs-menu-group {
        width: 100%;
    }
    #pricing-1028 .cs-picture {
        width: 100%;
        height: auto;
        max-width: 33.875rem;
        max-height: 1000%;
        order: 2;
    }
}