/* -------------------------------------------------------------------------------- */
/* ! Impostazioni di base */
/* -------------------------------------------------------------------------------- */


:root {
    /* Tavolozza colore
    --primary: #533A22;
    --secondary: #BC2830;
    --light: #fff;
    --dark: #333;
    --accent: #EB4E62;
    Distanziatori
    --space: 10px;
    Animazioni 
     --transition: all 0.3s ease-in-out; */

    /* COLORI */

    --color-primary: #533A22;
    --color-secondary: #BC2830;
    --color-accent: #f8233f;
    --color-light: #fffdfd;
    --color-dark: #333;
    --color-gray: #ccc;
    --color-gray-light: #ddd;

    /* TIPOGRAFIA */
    --font-primary: 'Nunito Sans', sans-serif;
    --font-display: 'Patrick Hand', sans-serif;

    /* DIMENSIONI */
    --space-xxs: 0.1rem;
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 3rem;
    --space-xl: 4rem;

    /* PROPRIETA' ELEMENTI */
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* ANIMAZIONI */
    --animazione-micro-s: 0.7s cubic-bezier(.32, .92, .66, .2);
    --animazione-micro-l: 0.9s cubic-bezier(.32, .92, .65, .39);

}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: var(--color-light);
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utility */
html {
    scroll-behavior: smooth;
}

/* Immagine che si adatta alla larghezza del dispositivo */
.res {
    width: 100%;
    max-width: 150px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Tipografia */
body {
    font-family: var(--font-primary);
}

h3 {
    font-family: var(--font-primary);
}

h1,
h2,
h4,
h5,
h6 {
    font-family: var(--font-display);
}

p {
    font-size: 1.1em;
    line-height: 1.5em;
}

p.leading {
    padding-top: var(--space-xs);
}

h2.leading {
    color: var(--color-accent);
    padding-bottom: var(--space-m);
}

h3.leading {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1em;
    padding-top: var(--space-xs);
}

.title {
    font-size: 120px;
    color: var(--color-light);
}

.subtitle {
    font-size: 60px;
}

.headline {
    font-size: 40px;
}

.headline,
.title,
.subtitle {
    font-family: var(--font-display);
    margin: 0 0 var(--space-xs) 0;
}



/* HEADER */
header.header {
    background: var(--color-light);
}

/* con lo spazio solo il conteiner di header avrà questi elementi -  header è figlio di container */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-s);
    margin: 0 auto;
}

.fixed {
    position: fixed;
    width: 100%;
    z-index: 2;
    box-shadow: var(--box-shadow);
}

.icone__menu>i {
    display: inline-block;
    color: var(--color-primary);
    padding: 5px;
    font-size: 20px;
}

.header__icon {
    display: none;
    color: var(--color-primary);
}

.site-nav>li {
    /* Mettere l'elenco in orizzontale */
    display: inline-block;
}

.site-nav>li>a {
    color: var(--color-primary);
    padding: var(--space-xs);
}

/* HERO */
.hero {
    position: relative;
    background: url(../img/img-1.webp) no-repeat center center var(--color-primary);
    /* vh altezza in verticale, si adatta */
    height: 100vh;
    background-size: cover;
    /* Blocco di testo al centro */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-light);
    opacity: 0.3;
    z-index: 0;
}

.hero__content {

    align-items: center;
    display: flex;
    max-width: 500px;
    z-index: 1;
}

section {
    scroll-margin-top: 165px;
    padding: 20px;
}

.content__personalizzazioni {
    margin-top: 40px;
}

.content__delivery {
    margin-top: 40px;
}

.content__ordini {
    margin-top: 40px;
}

.content__workshop {
    margin-top: 40px;
}

/* GRIGLIA */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-m);
    max-width: 1300px;
    margin: auto;
    text-align: left;
}

.grid-item p {
    color: var(--color-primary);
}

.grid-item h3 {
    color: var(--color-primary);
}

/* IMMAGINI */
.grid-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, var(--box-shadow);
}

.grid-item img:hover {
    transform: scale(1.01);
    box-shadow: var(--box-shadow);
}

/* RETTANGOLI */
.rectangle {
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: var(--space-s);
    text-align: left;
    border-radius: var(--border-radius);
}

/* WORKSHOP */
.signup-form {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.signup-form p {
    padding-bottom: 10px;
    color: var(--color-primary);
}

.email-input-container {
    display: flex;
    margin-bottom: 15px;
}

.email-input {
    flex-grow: 1;
    padding: 14px;
    border: 2px solid var(--color-gray);
    border-radius: 10px 0 0 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.email-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.submit-button {
    background-color: var(--color-accent);
    color: var(--color-light);
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    background-color: var(--color-accent);
}

.workshop-details {
    font-size: 0.9rem;
    color: var(--color-primary);
}

.workshop-details strong {
    color: var(--color-primary);
}

.privacy-checkbox-container {
    border-radius: 4px;
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;/
}

.checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-gray-light);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-input:checked {
    background-color: var(--color-light);
}

.checkbox-input:checked::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid var(--color-primary);
    border-width: 0 2px 2px 0;
    top: 3px;
    left: 7px;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 400;
    line-height: 1.4;
}

.required {
    color: var(--color-accent);
    margin-left: 3px;
}

.checkbox-label a {
    color: var(--color-primary);
}

/* IMMAGINI */
.containerimg {
    padding: var(--space-m);
    display: flex;
    margin: auto;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

.image-box {
    width: calc(50% - 20px);
    aspect-ratio: 1/1;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.4s ease;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-box:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow);
}

.image-box:hover img {
    transform: scale(1.1);
}


/* FOOTER */
.footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    width: 100%;
    margin-top: 40px;
}

.footer__container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;

}

.footer__section {
    flex: 1;
    padding: 20px;
    position: relative;
    border-left: solid 1px var(--color-light);
}

.primo {
    border: unset;
}

.footer__section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    color: var(--color-accent);
}

.footer__section p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 8px;
}

.footer__section a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__section a:hover {
    color: var(--color-light);
}

.footer__section i {
    font-size: 20px;
    padding: 3px;
}

/* Sezione metodi di pagamento */
.list-payment {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.list-payment__item {
    padding: 3px;
}

.payment__methods {
    border-top: 1px solid var(--color-light);
    padding: 20px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.payment__methods h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--color-accent);
}

/* Copyright section */
.copyright {
    background-color: var(--color-accent);
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
}


/* -------------------------------------------------------------------------------- */
/* ! Media query MEDIUM */
/* -------------------------------------------------------------------------------- */

/* Versione dispositivi medi*/
@media (max-width: 840px) {

    /* Tipografia */
    .title {
        font-size: 60px;
    }

    .subtitle {
        font-size: 40px;
    }

    .headline {
        font-size: 20px;
    }

    /* Se voglio far riapparire l'hamburger */
    .header__icon {
        display: block;
    }

    /* HEADER */
    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--color-light);
        transform: translateY(-100%);
        transition: var(--animazione-micro-s);
    }

    .header__logo {
        order: 1;
    }

    .header__menu {
        order: 3;
    }

    .icone__menu {
        order: 2;
    }

    .open .header__menu {
        transform: translateY(0);
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        gap: var(--space-m);
        font-size: 30px;
        padding: var(--space-xl);
        padding-top: 200px;
    }

    .site-nav>li>a {
        color: var(--color-accent);
        padding: var(--space-xs);
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-s);
    }

    /* Hamburger  */
    .icon-hamburger {
        cursor: pointer;
        height: 20px;
        width: 40px;
        position: relative;
        transition: var(--animazione-micro-s);
    }

    .icon-hamburger span {
        background: var(--color-dark);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: var(--border-radius);
    }

    .icon-hamburger span:nth-child(1) {
        top: 0;
    }

    .icon-hamburger span:nth-child(2),
    .icon-hamburger span:nth-child(3) {
        top: 10px;
    }

    .icon-hamburger span:nth-child(4) {
        top: 20px;
    }

    /* Hamburger solo quando la classe antenato è in open */
    .open .icon-hamburger {
        transform: rotate(180deg);
    }

    .open .icon-hamburger span:nth-child(1),
    .open .icon-hamburger span:nth-child(4) {
        width: 0;
    }

    .open .icon-hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon-hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    section {
        scroll-margin-top: 160px;
        padding: 20px;
    }

    .content__personalizzazioni {
        margin-top: 20px;
    }

    .content__delivery {
        margin-top: 20px;
    }

    .content__ordini {
        margin-top: 20px;
    }

    .content__workshop {
        margin-top: 20px;
    }

    /* GRIGLIA */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 colonne */
        gap: var(--space-m);
        max-width: 500px;
        margin: auto;
        text-align: center;
    }

    .grid-item img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: var(--border-radius);
        transition: transform 0.3s ease, var(--box-shadow);
    }

    .grid-item img:hover {
        transform: scale(1.01);
        box-shadow: var(--box-shadow);
    }

    /* WORKSHOP */

    .email-input-container {
        flex-direction: column;
    }

    .email-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .submit-button {
        border-radius: 8px;
        padding: 12px;
    }

    .privacy-checkbox-container {
        padding: 12px 15px;
    }

    .checkbox-label {
        font-size: 14px;
    }

    .checkbox-input {
        width: 18px;
        height: 18px;
    }

    .checkbox-input:checked::after {
        width: 4px;
        height: 9px;
        top: 2px;
        left: 6px;
    }

    /* IMMAGINI */
    .containerimg {
        display: flex;
        gap: var(--space-xs);
    }

    .image-box {
        width: 80%;
        max-width: 300px;
        /* Limita la dimensione su mobile */
        aspect-ratio: 1/1;
    }

    /* FOOTER */
    .footer__container {
        flex-direction: column;
    }

    .footer__section {
        padding: 20px;
        border-bottom: solid 1px var(--color-light);
        border-left: unset;
    }

    .terzo {
        border-bottom: unset;
    }

    .payment__icons {
        gap: 10px;
    }

    .payment__icon {
        width: 60px;
        height: 40px;
    }
}


/* -------------------------------------------------------------------------------- */
/* ! Media query SMALL */
/* -------------------------------------------------------------------------------- */

/* Versione dispositivi piccoli*/
@media (max-width: 480px) {

    /* Tipografia */
    .title {
        font-size: 60px;
    }

    .subtitle {
        font-size: 40px;
    }

    .headline {
        font-size: 20px;
    }

    /* Se voglio far riapparire l'hamburger */
    .header__icon {
        display: block;
    }

    /* HEADER */
    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--color-light);
        transform: translateY(-100%);
        transition: var(--animazione-micro-s);
    }

    .header__logo {
        order: 1;
    }

    .header__menu {
        order: 3;
    }

    .icone__menu {
        order: 2;
    }

    .open .header__menu {
        transform: translateY(0);
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        gap: var(--space-m);
        font-size: 16px;
        padding: var(--space-xl);
        padding-top: 200px;
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-s);
    }

    /* Hamburger  */
    .icon-hamburger {
        cursor: pointer;
        height: 20px;
        width: 40px;
        position: relative;
        transition: var(--animazione-micro-s);
    }

    .icon-hamburger span {
        background: var(--color-primary);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: var(--border-radius);
    }

    .icon-hamburger span:nth-child(1) {
        top: 0;
    }

    .icon-hamburger span:nth-child(2),
    .icon-hamburger span:nth-child(3) {
        top: 10px;
    }

    .icon-hamburger span:nth-child(4) {
        top: 20px;
    }

    /* Hamburger solo quando la classe antenato è in open */
    .open .icon-hamburger {
        transform: rotate(180deg);
    }

    .open .icon-hamburger span:nth-child(1),
    .open .icon-hamburger span:nth-child(4) {
        width: 0;
    }

    .open .icon-hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon-hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    section {
        scroll-margin-top: 190px;
        padding: 20px;
    }

    /* GRIGLIA */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: var(--space-m);
        max-width: 500px;
        margin: auto;
        text-align: center;
    }

    .grid-item img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: var(--border-radius);
        transition: transform 0.3s ease, var(--box-shadow);
    }

    .grid-item img:hover {
        transform: scale(1.01);
        box-shadow: var(--box-shadow);
    }

    /* WORKSHOP */
    .image-box {
        width: 70%;
        max-width: 250px;
    }

    .privacy-checkbox-container {
        padding: 10px;
    }

    .checkbox-label {
        font-size: 13px;
        line-height: 1.3;
    }

    .checkbox-input {
        width: 16px;
        height: 16px;
        margin-top: 1px;
    }

    .checkbox-input:checked::after {
        width: 3px;
        height: 7px;
        top: 2px;
        left: 5px;
    }

    /* FOOTER */
    .footer__container {
        flex-direction: column;
    }

    .footer__section {
        padding: 20px;
        border-left: solid 1px var(--color-light);
        border-left: unset;
    }

    .terzo {
        border-bottom: unset;
    }

    .payment__icons {
        gap: 10px;
    }

    .payment__icon {
        width: 60px;
        height: 40px;
    }

}



/* -------------------------------------------------------------------------------- */
/* ! Seconda pagina */
/* -------------------------------------------------------------------------------- */

.secondary * {
    margin: 0;
    box-sizing: border-box;
}

.secondary body {
    background-color: var(--color-light);
    overflow: hidden;
    height: 100vh;
}

.containersecond {
    display: flex;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}


/* LATO DESTRO */

.right-side {
    width: 50%;
    overflow-y: auto;
    background-color: var(--color-light);
    margin-top: 180px;
    padding: 30px;
}

.secondary h1 {
    font-family: var(--font-display);
    font-size: var(--space-l);
    color: var(--color-accent);
}

.secondary p {
    font-family: var(--font-primary);
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.text-content {
    max-width: 600px;
    margin: auto;
}

.text-content>h3 {
    margin-bottom: 25px;
    color: var(--color-primary);
}

.titolo {
    margin-bottom: 5px;
}

.secondary .quantity-container-button {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
    width: 100%;
}

.secondary .quantity-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.secondary .quantity-selector {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    height: 42px;
    border: 1px solid var(--color-light);
    border-radius: 4px;
    overflow: hidden;
}

.secondary .quantity-btn {
    width: 42px;
    border: none;
    background-color: var(--color-light);
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.secondary .quantity-btn:hover {
    background-color: var(--color-gray-light);
}

.secondary .quantity-input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 15px;
    color: var(--color-primary);
    padding: 0 10px;
    width: 40px;
}

.secondary .quantity-input::-webkit-inner-spin-button,
.secondary .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.secondary .quantity-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.secondary .quantity-selector {
    display: flex;
    height: 42px;
    border: 1px solid var(--color-gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.secondary .quantity-btn {
    width: 42px;
    border: none;
    background-color: var(--color-gray);
    color: var(--color-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.secondary .quantity-btn:hover {
    background-color: var(--color-gray-light);
}

.secondary .quantity-input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 15px;
    color: var(--color-primary);
    padding: 0 10px;
    width: 40px;
}

.secondary .quantity-input::-webkit-inner-spin-button,
.secondary .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-button {

    display: block;
    margin: 0 auto;
    align-items: center;
    padding: 12px 36px;
    background-color: var(--color-accent);
    color: var(--color-light);
    border: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.buy-button:hover {
    background-color: var(--color-light);
    color: var(--color-accent);
    border: solid 3px var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.buy-button:active {
    background-color: var(--color-accent);
    transform: translateY(1px);
    box-shadow: var(--box-shadow);
}

/* LATO SINISTRO */

.left-side {
    width: 50%;
    height: 100vh;
    overflow-y: auto;
    margin-top: 180px;
    padding: 40px;
    margin-bottom: 50px;
}

.main-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    height: 600px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-pairs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-pair {
    display: flex;
    gap: 15px;
    width: 100%;
}

.image-item {
    width: 50%;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.05);
}

/* FOOTER */
.secondary .footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    width: 100%;
}

.secondary .footer__container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.secondary .footer__section {
    flex: 1;
    padding: 20px;
    position: relative;
    border-left: solid 1px var(--color-light);
}

.secondary .primo {
    border: unset;
}

.secondary .footer__section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    color: var(--color-accent);
}

.secondary .footer__section p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-light);
}

.secondary .footer__section ul {
    list-style: none;
}

.secondary .footer__section ul li {
    margin-bottom: 8px;
}

.secondary .footer__section a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s;
}

.secondary .footer__section a:hover {
    color: var(--color-light);
}

/* Sezione metodi di pagamento */
.secondary .payment__methods {
    border-top: 1px solid var(--color-light);
    padding: 20px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.secondary .payment__methods h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--color-accent);
}

.secondary .payment__icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.secondary .payment__icon {
    background-color: var(--color-light);
    border-radius: 4px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 45px;
}

.secondary .payment__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Copyright section */
.secondary .copyright {
    background-color: var(--color-accent);
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
}


/* -------------------------------------------------------------------------------- */
/* ! Media query MEDIUM */
/* -------------------------------------------------------------------------------- */

@media (max-width: 840px) {


    .containersecond {
        flex-direction: column;
    }

    .left-side,
    .right-side {
        width: 100%;
    }

    .secondary .right-side h1 {
        text-align: center;
        margin-top: 20px;
        font-size: var(--space-m);
    }

    .secondary .right-side p {
        text-align: center;
    }

    .text-content>h3 {
        text-align: center;
    }

    /* Modifica l'ordine degli elementi nel layout mobile */

    .right-side {
        order: 1;
    }

    .left-side {
        order: 2;
        margin-top: 20px;
        height: 85vh;
        margin-bottom: 30px;
    }

    .main-image {
        height: 300px;
    }

    .image-item {
        height: 200px;
    }

    .quantity-selector {
        height: 38px;
    }

    .quantity-btn {
        width: 38px;
    }

    /* FOOTER */
    .secondary .footer__container {
        flex-direction: column;
    }

    .secondary .footer__section {
        padding: 20px;
        border-bottom: solid 1px var(--color-light);
        border-left: unset;
    }

    .secondary .terzo {
        border-bottom: unset;
    }

    .secondary .payment__icons {
        gap: 10px;
    }

    .secondary .payment__icon {
        width: 60px;
        height: 40px;
    }

}


/* -------------------------------------------------------------------------------- */
/* ! Media query SMALL */
/* -------------------------------------------------------------------------------- */

@media (max-width: 480px) {

    .containersecond {
        flex-direction: column;
    }

    .right-side {
        width: 100%;
    }

    .left-side {
        margin-bottom: 20px;
    }

    .secondary .right-side h1 {
        margin-top: 10px;
        font-size: 1.8em;
    }

    .secondary .right-side h3 {
        margin-top: 10px;
    }

    /* Modifica l'ordine degli elementi nel layout mobile */
    .left-side {
        order: 2;
    }

    .right-side {
        order: 1;
    }

    .left-side {
        margin-top: 20px;
    }

    .main-image {
        height: 300px;
    }

    .image-item {
        height: 100px;
    }

    .quantity-selector {
        height: 38px;
    }

    .quantity-btn {
        width: 38px;
    }

    /* FOOTER */
    .secondary .footer__container {
        flex-direction: column;
    }

    .secondary .footer__section {
        padding: 20px;
        border-bottom: solid 1px var(--color-light);
        border-left: unset;
    }

    .secondary .terzo {
        border-bottom: unset;
    }

    .secondary .footer__section .terzo {
        border-bottom: unset;
    }

    .secondary .payment__icons {
        gap: 10px;
    }

    .secondary .payment__icon {
        width: 60px;
        height: 40px;
    }
}