@font-face {
    font-family: "Clash Grotesk";
    src: url("./fonts/ClashGrotesk-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mattone"; 
    src: url("https://fonts.cdnfonts.com/s/88923/Mattone-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiA.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}  

html, 
body {
    padding: 0; 
    margin: 0;  
    overflow-y: scroll; 
    scrollbar-width: none; 
}

.home-panificio {
    flex: 0 0 100%; 
    width: 100%;
    height: 100dvh;
}

.copertina {
    overflow: hidden; 
    position: relative; 
    min-height: 100dvh; 
    background-color: #762622;
}

.slider {
    display: flex; 
    animation: scorri 22s infinite; 
    position: relative; 
    z-index: 0; 
    user-select: none; 
}

.copertina::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

#frase-home {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}

#frase-principale {
    max-width: min(100%, 50rem);
    margin: 0;
    color: white;
    user-select: none;
}

#frase-principale {
    font-family: 'Mattone', sans-serif;
    font-size: 1.5rem;
    line-height: 1.15;
    text-transform: uppercase;
}

#frase-secondaria {
    font-family: 'Clash Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    text-transform: capitalize;
}

@keyframes scorri {
    0%, 11.67% {
        transform: translateX(0);
    }
    16.67%, 28.33% {
        transform: translateX(-100%);
    }
    33.33%, 45% {
        transform: translateX(-200%);
    }
    50%, 61.67% {
        transform: translateX(-300%);
    }
    66.67%, 78.33% {
        transform: translateX(-400%);
    }
    83.33%, 95% {
        transform: translateX(-500%);
    }
    100% {
        transform: translateX(-600%);
    }
}

#header-home {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 50px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#logo-titolo {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);  
    z-index: 1; 
    width: 150px; 
    height: 40px; 
    user-select: none; 
}

#bottone-scopri-container {
    z-index: 2; 
    position: absolute;
    left: 50%;
    top: 78%; 
    align-items: center; 
    transform: translateX(-50%); 
}

#bottone-scopri {
    padding: 10px 20px;
    color: white;
    font-family: "Mattone", sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

#bottone-scopri:hover {
    opacity: 0.8;
}

#bottone-scopri img:first-child {
    width: 24px;
    height: 24px;
}

#bottone-scopri img:nth-child(2) {
    width: 10px;
    height: auto;
}

#copertina2 {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: auto;
    overflow-x: clip;
    overflow-y: visible;
    width: 100%;
    background: white;
}


#copertina2 > picture,
#copertina2 > img {
    order: 1;
    align-self: flex-end;
    width: 550px;
    height: auto;
    right: 0;
    position: absolute;
    bottom: 50px;
    transform: translateX(10vw);
}

#copertina2 > picture > img,
#copertina2 > img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 601px) {
    #copertina2 {
        box-sizing: border-box;
        min-height: 0;
        padding-bottom: calc(126px + var(--copertina2-extra-height, 0px));
    }

    #copertina2 > picture,
    #copertina2 > img {
        top: calc(100% - 270px);
        bottom: auto;
        width: 567px;
        transform: translateX(10vw);
        z-index: 0;
    }

    #copertina2 .storia {
        flex-shrink: 0;
    }

    #copertina2 #pane-logo img {
        top: auto;
        bottom: 125px;
        transform: none;
        width: 161px;
    }

    #copertina2 #pane-logo img[alt="Croissant"],
    #copertina2 #pane-logo img[alt="Baguette"] {
        width: 112.7px;
    }

    #copertina3 .prodotti {
        position: relative;
        z-index: 1;
    }
}

.storia {
    padding: 20px;
    color: #762622;
    margin-right: 30px;
    margin-left: 10px;  
    margin-top: 50px; 
}

.storia-label {
    margin: 0 0 28px;
    font-family: "Mattone";
    font-size: 16px;
    font-weight: 700;
}

.storia-titolo {
    margin: 0 0 25px;
    font-family: "Inter";
    font-size: 28px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -1px;
}

.storia-testo {
    margin: 0;
    font-family: "Clash Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

#pane-logo img {
    position: absolute; 
    bottom: 200px;
    left: 20%; 
    width: 200px; 
    height: auto; 
    transition: opacity 50ms linear;
}

.prodotti {
    padding: 20px;
    color: #762622;
    margin-right: 30px;
    margin-left: 10px;
    margin-top: 50px;
}

#prodotti-logo {
    display: none;
}

.prodotti-label {
    margin: 0 0 28px;
    font-family: "Mattone";
    font-size: 16px;
    font-weight: 700;
}

.prodotti-titolo {
    margin: 0 0 25px;
    font-family: "Inter";
    font-size: 28px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -1px;
}

.prodotti-testo {
    margin: 0;
    font-family: "Clash Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

#testo-nostra-storia {
    color: #6D201D;
    font-family: 'Mattone', sans-serif;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

#testo-nostra-storia #titolo-testo-nostra-storia {
    font-size: 15px;
    font-weight: bold;
}

#testo-nostra-storia #testo-testo-nostra-storia {
    font-size: 25px;
    line-height: 1.15;
}

#testo-nostra-storia #test-secondario-testo-nostra-storia,
#testo-nostra-storia #test-terziario-testo-nostra-storia {
    font-size: 14px;
    line-height: 1.3;
}

#copertina3 {
    background-color: #FCEBEB; 
    min-height: auto;
    height: auto;  
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
    overflow: visible;  
}

#prodotti-titolo {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: #6D201D; 
    font-family: 'Mattone', sans-serif;
    font-weight: 400; 
    line-height: 36px; 
    font-size: 20px; 
    margin-top: 50px; 
    width: 50%; 
}

#prodotti-titolo h1 {
    padding: 20px; 
    margin-top: 30px; 
    width: 100%; 
}

#prodotti-paragrafo p {
    text-align: center; 
    font-family: 'Clash Grotesk', sans-serif;
    text-align: justify; 
    width: 50%; 
    margin: 0 auto; 
    line-height: 1.5; 
    width: 100%; 
    font-size: 15px; 
    line-height: 1.5; 
}

#prodotti-paragrafo {
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: center; 
    color: #6D201D; 
    font-family: 'Mattone', sans-serif;
    font-weight: 400; 
    line-height: 36px; 
    font-size: 20px; 
    margin-top: 0; 
    width: 50%; 
    gap: 40px; 
}

#pane-logo {
    width: 139.25445556640625px; 
    height: 139.25445556640625px; 
}

.prodotti-carosello {
    width: 100vw;
    position: relative; 
    overflow: hidden; 
    margin-top: 50px; 
    margin-bottom: -1px;
}

.prodotti-carosello-nastro {
    display: flex; 
    flex-direction: row; 
    width: max-content; 
}

.prodotti-carosello-sequenza {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    animation: scorri-prodotti 30s linear infinite;
    will-change: transform;
    line-height: 0; 
}

@media (min-width: 601px) and (hover: hover) and (pointer: fine) {
    .prodotti-carosello:hover .prodotti-carosello-sequenza {
        animation-play-state: paused;
    }
}

.prodotti-carosello-nastro img {
    display: block; 
    aspect-ratio: 2 / 3;
    width: 60vh; 
    object-fit: cover;
    height: auto; 
    margin-right: -1px;
}

@keyframes scorri-prodotti {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-100%, 0, 0);
    }
}

#copertina4 {
    background-color: #E2CCB1;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 24px;
    color: #6D201D; 
}

#copertina4-introduzione {
    grid-column: 1 / -1;
    width: 90%; 
    margin-left: 10px; 
}

#copertina2 .storia {
    width: 90%;
}

#copertina3 .prodotti {
    width: 90%; 
    margin-left: 10px; 
}

@media (min-width: 901px) {
    #copertina2 .storia,
    #copertina4-introduzione {
        margin-left: 42px;
    }
}

#copertina4-immagini {
    align-items: flex-start;
    padding: 0 17px 0 0;
    margin-left: 10px; 
}

#copertina4-immagini img {
    width: 353px;
    aspect-ratio: 1;
    object-fit: cover;
}

#copertina4 nav#copertina4-gruppo-bottoni {
    align-self: start;
    width: 45.36%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 20px;
}

#copertina4-gruppo-bottoni a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
    border-bottom: 1px solid #762622;
    color: inherit;
    font-family: "Mattone", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

#copertina4-gruppo-bottoni a:first-child > span {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

#copertina4-gruppo-bottoni a:hover {
    color: #c8aa47;
}

#copertina4-gruppo-bottoni a:hover img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(26%) saturate(656%) hue-rotate(7deg) brightness(89%) contrast(85%);
}

#copertina4-gruppo-bottoni a img {
    width: 8px;
    height: auto;
}

#copertina4-gruppo-bottoni .motion-contatti {
    width: 478px;
    margin-top: 20px;
    transform: translateX(66.666%);
    height: auto;
}

#copertina4-testo {
    width: 50%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

#copertina4-titolo {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    color: #6D201D; 
    font-family: 'Mattone', sans-serif;
    font-weight: 400; 
    line-height: 36px; 
    font-size: 20px; 
    margin-top: 50px; 
    width: 80%; 
    padding: 20px; 
}

#copertina4-contenuto p {
    text-align: center; 
    font-family: 'Clash Grotesk', sans-serif;
    text-align: center; 
    margin: 0 auto; 
    line-height: 1.5; 
    width: 80%; 
    font-size: 15px; 
    line-height: 1.5; 
}

#copertina4-gruppo-bottoni {
    display: flex; 
    flex-direction: row; 
    gap: 10px; 
    justify-content: center; 
    padding: 20px; 
    margin-top: 20px; 
}

#scopri-menu {
    padding: 10px 20px;
    color: #6D201D;
    font-family: "Mattone", sans-serif;
    font-size: 10px;
    cursor: pointer;
    border: 1px solid #6D201D;
    border-radius: 5px;
    transition: background-size 1s ease, color 1s ease;
    background: #FCEBEB linear-gradient(#6D201D, #6D201D) left / 0% 100% no-repeat;
}

#scopri-menu:hover {
    background-size: 100% 100%;
    color: #FCEBEB;
}

#bordo-scopri-menu {
    background-color: #FCEBEB; 
    padding: 2px;
    border-radius: 5px;  
}

#contattaci {
    background: none; 
    border: none; 
    cursor: pointer; 
    color: #6D201D;
    font-weight: 400; 
    font-family: "Mattone", sans-serif;
    font-size: 10px;
}


#copertina4-immagini {
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    justify-content: center; 
    align-items: flex-start; 
    padding: 20px 20px 20px 30px; 
    height: fit-content; 
    width: auto; 
    gap: 5px; 
}

@media (min-width: 901px) {
    #copertina4-immagini {
        margin-left: 32px;
    }
}

#foto-doppia {
    width: 505px; 
    aspect-ratio: 8 / 5;
    display: flex; 
    flex-direction: row; 
    gap: 5px; 
    overflow: hidden; 
}

#foto-doppia-img-container-sinistra,
#foto-doppia-img-container-destra {
    width: 250px; 
    height: auto;
    overflow: hidden; 
}

#foto-doppia img {
    width: 250px; 
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    transition: transform 0.3s ease; 
}

#foto-doppia img:hover {
    transform: scale(1.1); 
}

#foto-singola {
    width: 505px; 
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

#foto-singola img {
    display: block; 
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}

#foto-singola img:hover {
    transform: scale(1.1); 
}

/* test */ 

#scopri-menu a {
    text-decoration: none; 
    color: inherit; 
}

#contattaci a {
    text-decoration: none; 
    color: inherit; 
}

#contenitore-newsletter {
    overflow: hidden;
    margin: 0;
    background: #8D9DC8;
    color: white;
}

.fascia-nastro {
    display: flex;
    width: max-content;
    padding: 20px 0;
    animation: scorrimento-fascia 18s linear infinite;
}

.fascia-gruppo {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 20px;
    padding-left: 60px;
    white-space: nowrap;
    font-family: "Inter", sans-serif;
    font-size: 30px;
    font-weight: 500;
}

.fascia-gruppo img {
    display: block;
    flex: 0 0 auto;
    width: 64px;
    height: auto;
}

.fascia-gruppo .fascia-freccia {
    width: 15px;
    margin-left: -33px;
}

@keyframes scorrimento-fascia {
    to {
        transform: translateX(-25%);
    }
}

#fascia-ordini {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 76.6667px;
    padding: 0;
    overflow: hidden;
    background: #762622;
    color: white;
}

.fascia-ordini-logo {
    position: absolute;
    top: 0;
    left: -150px;
    width: auto;
    height: 100%;
}

#fascia-ordini p {
    grid-column: 2;
    z-index: 1;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 30px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 600px) {
    #copertina2 {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #copertina2 > picture,
    #copertina2 > img {
        position: static;
        order: 2;
        width: min(72vw, 340px);
        max-width: 340px;
        margin: 16px auto;
        transform: none;
        align-self: center;
        z-index: 0;
    }

    #copertina2 > picture > img,
    #copertina2 > img {
        display: block;
        width: 100%;
        height: auto;
    }

    .storia {
        order: 1;
    }
}

#fascia-ordini a {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-self: end;
    width: 160px;
    gap: 12px;
    color: inherit;
    font-family: "Mattone", sans-serif;
    font-size: 14.4px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease;
}

#fascia-ordini a:hover {
    transform: scale(1.08);
}

#fascia-ordini a > span {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

#fascia-ordini a img {
    width: 12px;
    height: auto;
    filter: brightness(0) invert(1);
}

#footer-navigazione {
    display: flex; 
    flex-direction: row;
    gap: 80px; 
    justify-content: center; 
    align-items: center; 
}

#footer-contatti {
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    height: 100px; 
    width: 300px; 
}

#footer-contatti h1 {
    font-size: 15px; 
}

#footer-contatti p {
    font-size: 10px; 
}

#footer-contatti p a {
    text-decoration: none; 
    color: inherit; 
}

#footer-contatti p a:hover {
    text-decoration: underline; 
    color: inherit; 
}

#footer-newsletter {
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    height: 100px; 
}

#footer-newsletter-form {
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    height: 100px; 
}

#bottone-newsletter {
    padding: 10px 20px;
    color: #6D201D;
    font-family: "Mattone", sans-serif;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #6D201D;
    border-radius: 5px;
    transition: background-size 1s ease, color 1s ease;
    background: #E1CCB1 linear-gradient(#6D201D, #6D201D) left / 0% 100% no-repeat;
}

#bottone-newsletter:hover {
    background-size: 100% 100%;
    color: #FCEBEB;
}

#newsletter-email {
    padding: 5px; 
    background-color: #F4EFE8; 
    border: none; 
    padding: 10px 20px; 
    font-size: 15px; 
}

#bottone-label {
    display: flex; 
    flex-direction: row; 
    gap: 10px; 
    align-items: center; 
    justify-content: center; 
}

#form-newsletter input:focus {
    outline: none;
    box-shadow: none;
}

#disclaimer {
    font-family: "Clash Grotesk", sans-serif;
    width: 300px; 
    font-size: 10px;
}

#lable-iscriviti {
    font-size: 15px; 
}

#newsletter-col-sinistra {
    display: flex; 
    flex-direction: row; 
    gap: 20px; 
    align-items: center; 
}

#logo-newsletter img {
    width: 70px;
    height: auto; 
}

footer {
    background-color: #E1CCB1;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 20px 0; 
    gap: 20px; 
    width: 100%;
    margin: 0; 
    box-sizing: border-box; 
}

#icone-social-footer img {
    width: 50px; 
    height: auto; 
}

#icone-social-footer {
    display: flex; 
    flex-direction: row; 
    gap: 1px; 
}

#icone-social-footer a:hover {
    transform: scale(1.1); 
    transition: transform 0.3s ease; 
}

footer img {
    width: 100px; 
    height: auto; 
}

#contenitore-logo-footer img {
    width: 120px; 
    height: auto; 
}

#copyright-footer {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    text-align: center; 
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    align-self: stretch; 
    padding: 10px; 
    gap: 20px; 
    display: flex;
}

#copyright-footer a {
    color: inherit;
    text-decoration: none;
}

#copyright-footer a:hover {
    text-decoration: underline;
}

#info-footer {
    display: grid;
    grid-template-columns: 370px 1fr;
    column-gap: 200px;
    max-width: 870px;
    min-height: 230px;
    margin: 16px auto 0;
    padding: 20px 0 0;
    box-sizing: border-box;
    background: #fff;
    color: #762622;
    font-family: "Clash Grotesk", sans-serif;
}

#info-contatti h2,
#form-newsletter label {
    margin: 0 0 8px;
    color: #c8aa47;
    font-family: "Mattone", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

#form-newsletter {
    grid-column: 2;
}

#form-newsletter label {
    display: block;
    white-space: nowrap;
}

#info-contatti > div {
    margin-bottom: 28px;
}

#info-contatti > div:nth-child(2) {
    margin-bottom: 30px;
}

#info-contatti p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 3px 0;
    border-bottom: 1px solid #762622;
    font-family: "Clash Grotesk", sans-serif;
    font-size: 14.4px;
    font-weight: 400;
    white-space: nowrap;
}

@media (min-width: 901px) {
    #info-contatti p {
        width: 85%;
    }
}

#info-contatti p a {
    color: inherit;
    text-decoration: none;
}

#info-contatti > div:first-child p strong {
    font-weight: 400;
}

#form-newsletter > div {
    display: flex;
    height: 42px;
    border-bottom: 1px solid #762622;
}

#form-newsletter input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: 16px "Clash Grotesk", sans-serif;
    padding: 0 12px;
}

#form-newsletter button {
    display: grid;
    place-items: center;
    width: 36px;
    border: 0;
    background: transparent;
    color: #762622;
    cursor: pointer;
}

#form-newsletter button img {
    width: 16.8px;
    height: auto;
}

#form-newsletter small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-family: "Clash Grotesk", sans-serif;
    font-size: 9px;
}

#vieni-trovarci {
    align-self: start;
    padding-top: 3px;
}

#footer-via {
    display: none;
    width: min(20%, 200px);
    height: auto;
    margin: 20px auto 0;
}

@media (max-width: 900px) {
    #footer-via {
        display: none;
    }

    #info-footer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 40px;
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 600px) {
    #copertina2 .storia,
    #copertina3 .prodotti,
    #copertina4-introduzione {
        margin-left: 10px;
        
    }

    #copertina2 .storia {
        padding: 16px;
        margin-top: 32px;
    }

    #copertina2 .storia-label {
        margin-bottom: 20px;
        font-size: 16px;
    }

    #copertina2 .storia-titolo {
        margin-bottom: 18px;
        font-size: 24px;
    }

    #copertina2 .storia-testo {
        font-size: 14.4px;
    }

    #copertina2 .storia-titolo {
        margin-bottom: 20px;
        font-size: 28px;
    }

    #copertina3 .prodotti-label {
        margin-bottom: 22.4px;
        font-size: 16px;
    }

    #copertina3 .prodotti-titolo {
        margin-bottom: 20px;
        font-size: 28px;
    }

    #copertina4 .prodotti-titolo {
        margin-bottom: 20px;
        font-size: 28px;
    }

    #copertina2 .storia-testo {
        font-size: 16px;
    }


    #copertina3 .prodotti-testo {
        font-size: 16px;
    }

    #copertina3 .prodotti {
        position: relative;
        box-sizing: border-box;
        margin-top: 32px;
        padding-top: 16px;
        padding-bottom: 32px;
        height: auto;
        min-height: 0;
    }

    #copertina3 #prodotti-logo {
        display: flex;
        justify-content: center;
        margin-top: 32px;
    }

    #copertina3 #prodotti-logo img {
        display: block;
        width: 100px;
        height: auto;
    }

    .prodotti-carosello {
        height: calc(100svh + 2px);
        flex-shrink: 0;
        line-height: 0;
        margin-top: 0;
    }

    .prodotti-carosello-nastro,
    .prodotti-carosello-sequenza {
        height: 100%;
    }

    .prodotti-carosello-nastro img {
        width: auto;
        height: 100%;
    }

    .home-panificio {
        object-fit: cover;
    }

    #copertina2 {
        min-height: 0;
        overflow-x: clip;
        overflow-y: visible;
    }

    #copertina2 > img {
        display: block;
        position: relative;
        order: 2;
        align-self: center;
        right: auto;
        bottom: auto;
        width: auto;
        height: 100px;
        max-width: 100%;
        flex-shrink: 0;
        transform: none;
        margin: auto 0 16px;
    }

    #copertina2 .storia {
        order: 1;
    }

    #copertina2 #pane-logo {
        display: none;
    }

    #copertina2 #pane-logo img {
        display: block;
        position: static;
        width: 100px;
        height: 100px;
        object-fit: contain;
    }

    #copertina3 #prodotti-logo img {
        height: 100px;
        object-fit: contain;
    }

    #copertina4 {
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
    }

    #copertina4-introduzione {
        box-sizing: border-box;
        margin-top: 32px;
        padding-top: 16px;
        margin-left: 10px; 
        height: auto;
        min-height: 0;
        margin-bottom: 24px;
    }

    #copertina4-introduzione,
    #copertina4-immagini,
    #copertina4 nav#copertina4-gruppo-bottoni {
        min-width: 0;
        box-sizing: border-box;
    }

    #copertina4-immagini {
        padding: 0 20px;
    }

    #copertina4-immagini img {
        width: 100%;
        max-width: 100%;
    }

    #copertina4 nav#copertina4-gruppo-bottoni {
        width: auto;
        margin: 20px;
    }

    #copertina4-gruppo-bottoni .motion-contatti {
        width: min(478px, 100%);
        transform: none;
    }

    #fascia-ordini {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        height: 76.6667px;
        min-height: 0;
        padding: 0 12px;
        box-sizing: border-box;
    }

    #fascia-ordini .fascia-ordini-logo {
        display: none;
    }

    #fascia-ordini p {
        grid-column: 1;
        font-size: clamp(18px, 4.8vw, 24px);
        white-space: normal;
        text-shadow: 0 1px 4px #40110f;
    }

    #fascia-ordini a {
        grid-column: 2;
        width: auto;
    }

    #info-footer {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: 0;
    }

    #form-newsletter {
        grid-column: 1;
    }
}

#footer-brand {
    position: relative;
    display: block;
    min-height: 150px;
    padding: 52px max(24px, calc((100% - 870px) / 2)) 20px;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    color: #762622;
}

#footer-brand .footer-brand-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
}

#footer-brand .footer-brand-top::before {
    content: "";
    flex: 0 0 66px;
    height: 66px;
}

#footer-brand .footer-brand-top::after {
    content: "";
    flex: 0 0 66px;
    height: 66px;
}

#footer-brand .footer-brand-logo {
    display: block;
    width: 180px;
    height: auto;
}

#footer-brand .footer-brand-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px; 
    margin-bottom: 15px;
}

#maps-arrow {
    width: 10px;
    height: 10px;
    margin-right: 6px;
}

#footer-brand .footer-brand-social img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

#footer-brand .footer-brand-social a:last-child img {
    width: 15px;
    height: 15px;
}

#footer-brand #copyright-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    font-family: "Inter", sans-serif;
    font-size: 13.2px;
    white-space: nowrap;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    #footer-brand {
        min-height: 172px;
        padding-right: 20px;
        padding-left: 20px;
    }

    #footer-brand #copyright-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        overflow: visible;
        font-size: clamp(6.8px, 2.15vw, 8.5px);
        white-space: nowrap;
    }

    #footer-brand #copyright-footer span:last-child {
        flex: 0 0 100%;
        text-align: center;
    }

}