/* =========================================================
   ≥ 568px (35.5em) – Small / Smartphone landscape
   .pure-u-sm-*
========================================================= */
@media screen and (min-width: 35.5em) {

  /* Cart icon + testo */
  .link-cart .text{
    display: inline-block;
  }
  .link-cart svg{

  }

  .details-cart .text{
    display: inline-block;
  }
  .details-cart svg{
 
  }

  .on-checkout{
    display: flex;
    flex-direction: column;
    cursor: initial;
    align-items: center;
    justify-content: center;
  }

  .on-checkout .cart-text-box{
    top: -8px;
  }

  /* Cart table */
  .cart tbody th{
    display: flex;
    gap: 1rem;
    align-items: center;
    white-space: nowrap;
    overflow: visible;
    max-width: inherit;
  }

  /* Checkout cart padding */
  .checkout-cart td {
    padding: 0.2rem;
  }

  /* Typography – hero */
  .temp-home{
    font-size: 1.8rem;
  }
  .start h1{
    font-size: 1.8rem;
  }
  .start h2{
    font-size: 1.8rem;
  }
  .start p{
    font-size: 1.8rem;
  }
  .button-md{
    font-size: 1.2rem;
  }

  /* Hero: scroll & newsletter */
  .scroll-to{
    bottom: 3.5rem;
  }

  .newsletter{
    bottom: 4rem;
  }
}



/* =========================================================
   ≥ 768px (48em) – Tablet / Medium
   .pure-u-md-*
========================================================= */
@media screen and (min-width: 48em){

  /* Menu box */
  .box-menu h5{
    margin-bottom: 2rem;
    margin-top: 2rem;
  }
  .menu .menu-button a{
    margin-top: 0;
  }
  .box-menu ul.right-menu {
    margin-bottom: 3rem;
  }
  .box-menu ul.right-menu li a{
    font-size: 2.8rem;
    margin-bottom: 2.4rem;
    padding: 0.8rem 1.6rem;
  }

  /* Layout di testo / footer */
  .align-right {
    text-align: right;
  }
  footer .pure-g{
    padding: 0;
  }
  footer .fifty{
    width: 50%;
    margin-bottom: 0;
  }

  /* Swiper navigation */
  .swiper-button-prev,
  .swiper-button-next {
    display: flex;
  }

  /* Accordion layout: immagine + testo affiancati */
  .accordion-row {
    display: flex;
    align-items: flex-start;
    margin: 2rem 0;
    float: none;
  }
  .accordion-content .accordion-image {
    flex: 1 1 60%;
    max-width: 50%;
    margin-left: 4rem;
    mix-blend-mode: multiply;
  }
  .accordion-content .accordion-text {
    flex: 1 1 67%;
  }

  /* Hero mini-video */
  .start .mini-video{
    display: block;
    width: 20%;
    position: absolute;
    right: 2.5rem;
    bottom: 2.5rem;
    z-index: 91;
  }

  /* Link cart positioning */
  .link-cart {
    right: 3.75rem;
    top: 1rem;
  }

  /* Checkout cart styling */
  .checkout-cart {
    padding: 2rem;
    border-radius: 2.2rem;
  }
  .checkout-cart tbody th {
    gap: 1rem;
    min-width: auto;
  }
  .checkout-cart tbody th img {
    display: block;
  }
  .checkout-cart th {
    padding: 0.5rem 1rem;
  }
  .checkout-cart td {
    padding: 0.5rem 1rem;
    text-align: right;
  }

  /* Checkout form: 1/2 width field */
  .checkout-form .field[data-width="1/2"] {
    flex: 0 0 calc(50% - 0.5rem);
  }

  .checkout .field label {
    font-size: 1rem;
  }

  .checkout-cart th:not(:first-child),
  .checkout-cart td:not(:first-child) {
    width: 80px;
  }

  /* Checkout warning */
  .checkout .warning{
    padding: 2rem;
    border-radius: 2.2rem;
  }

  /* Configurator buttons */
  .configurator button{
    letter-spacing: 0rem;
    padding: 0.3rem 1.2rem;
  }
  .configurator .button-back{
    letter-spacing: 0;
  }
  .configurator .button-back svg{
    top: 1px;
  }
  .configurator .button-configurator svg{
    top: 1px;
  }

  /* Cart dropdown */
  .cart{
    border-radius: 2.2rem;
    padding: 2rem;
    top: 3.5rem;
    max-width: auto;
  }
  .cart img{
    display: block;
  }
  .cart th{
    padding: 0.5rem 1rem;
  }
  .cart td{
    padding: 0.5rem 1rem;
  }

  /* Subpages: quadrate */
  .subpages {
    aspect-ratio: 1 / 1;
  }
}



/* =========================================================
   ≥ 1024px (64em) – Desktop
   .pure-u-lg-*
========================================================= */
@media screen and (min-width: 64em){

  /* Header & hamburger */
  #hamburger-button {
    margin: 2.75rem 0 0 0;
  }
  .header {
    width: calc(100% - 7.7rem);
    padding: 3rem 3.8rem;
  }
  .header .logo svg{
    width: 940px;
  }
  .scrolling .header .logo svg{
    width: 290px;
  }

  /* Full height sections */
  .full-h .pure-g div{
    margin-top: 50vh;
  }

  /* Box menu dimensioni */
  .box-menu {
    margin-top: 0;
    margin-bottom: 4rem !important;
    height: calc(100% - 8rem);
  }
  .box-menu ul.languages{
    margin-left: 1.5rem;
  }

  /* Mobile vs desktop display switch */
  .display-mobile{
    display: none;
  }
  .display-desktop{
    display: block;
  }

  /* Reverse flex reset */
  .reverse{
    flex-flow: inherit;
  }

  /* Accordion typography / image */
  button.accordion {
    font-size: 2.6rem;
  }
  .accordion-content .accordion-image img{
    max-width: 650px;
    border-radius: 0.8rem;
  }
  .accordion-content.only-text {
    /* padding: 0 20%; */
  }

  /* Hero text scaling */
  .temp-home{
    font-size: 3.6rem;
  }
  .temp-home{
    font-size: 2.4rem;
  }
  .start h1{
    font-size: 2.4rem;
  }
  .start h2{
    font-size: 2.4rem;
  }
  .start p{
    font-size: 2.4rem;
  }
  .start h1 span{
    font-size: 3.3rem;
    letter-spacing: 0.8rem;
  }

  /* Button md scaling */
  .button-md{
    padding: 0.6rem 1.8rem;
    font-size: 1.6rem;
    letter-spacing: 0.1rem;
  }

  /* CTA product box spacing */
  .product-box {
    margin: 2rem;
  }

  /* Box-menu layout desktop */
  .box-menu .center-vertical{
    flex-direction: row;
    flex-flow: nowrap;
  }
  .box-menu .left-menu ul{
    padding-right: 2rem;
    margin-bottom: 4rem;
  }

  /* Footer */
  .footer .full{
    width: calc(100% - 5rem);
    margin: 2.5rem;
  }
  .footer .pure-g{
    min-height: 480px;
  }

  /* Swiper heights */
  .swiper2{
    height: 55vh;
  }
  .swiper3{
    height: 55vh;
  }

  /* Intro small text padding */
  .intro-small2-text{
    padding: 2rem;
  }

  /* Section list typography */
  .section-element ul li{
    font-size: 1.6rem;
    width: fit-content;
  }

  /* Intro full text position/size */
  .intro-full-text{
    top: 7.8rem;
  }
  .intro-full-text h1{
    font-size: 10rem;
  }

  /* Single video height fix */
  .single-video{
    margin-top: 18rem;
    height: calc(100vh - 18rem);
  }

  /* Sidebar visibile */
  .section-element .sidebar{
    display: block;
  }
  .section-element .main-content{
    width: 75%;
  }

  /* Accordion text scaling */
  button.accordion {
    font-size: 1.6rem;
  }
  .accordion-content .accordion-text p{
    font-size: 1.4rem;
  }

  /* Square box */
  .square-box{
    padding: 4rem;
    min-height: 360px;
  }

  /* Intro overlay box spacing */
  .intro-over-text{
    margin: 2.5rem;
  }
  .intro-over-text-configurator{
    margin: 12rem 2.5rem 2.5rem 2.5rem;
  }

  /* Swiper3 nav visible */
  .swiper3-nav {
    display: flex;
  }

  /* button3 positioning */
  .button3{
    margin: 0.8rem 0 0.8rem 3rem;
  }

  /* Newsletter layout desktop */
  .newsletter{
    bottom: 0;
    left: 0;
    width: auto;
    background-color: transparent;
  }
  .newsletter-submit{
    font-family: var(--font-family-sans);
    letter-spacing: 0.01rem;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 0.6rem 1.1rem;
    border: 0;
    color: var(--color-white);
    background-color: var(--color-black);
    cursor: pointer;
    transition: 0.35s;
    box-sizing: border-box;
    border-radius: 0.5rem;
    position: absolute;
    right: 0.45rem;
    bottom: 0.37rem;
  }
  #newsletter_email{
    font-family: var(--font-family-sans);
    letter-spacing: 0.01rem;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 1rem 9rem 1rem 1.5rem;
    border: 0;
    color: var(--color-black);
    background-color: var(--color-white);
    cursor: pointer;
    transition: 0.35s;
    box-sizing: border-box;
    border-radius: 0.8rem;
    width: 420px;
    background-color: var(--color-white);
  }

  /* Cart / details-cart positioning desktop */
  .cart{
    top: 7rem;
    right: -13.3rem;
  }
  .link-cart {
    top: 2rem;
  }
}



/* =========================================================
   ≥ 1280px (80em) – Large Desktop
   .pure-u-xl-*
========================================================= */
@media screen and (min-width: 80em){

  /* Typo scale up */
  .xl5{
    font-weight: 400;
    font-size: 6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .xl4{
    font-weight: 400;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .xl3{
    font-weight: 400;
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  .xxl{
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  .xl{
    font-weight: 400;
    font-size: 2.5rem;
    margin-bottom: 0.6rem;
  }
  .lg{
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }
  .md{
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }
  .sm{
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  /* Header extended menu */
  .header ul.extended-menu{
    display: block;
  }

  /* Intro small text padding */
  .intro-small-text{
    padding: 4rem 2rem;
  }
  .intro-small-text h1{
    font-size: 5.8rem;
  }
  .link-cart a{
    margin-top: 0;
  }
}


/* =========================================================
   ≤ 1280px (max-width: 80em) – Placeholder
========================================================= */
@media screen and (max-width: 80em){

  /* Vuoto – placeholder per eventuali override specifici */

}


/* =========================================================
   ≥ 1600px (100em) – Very large screens
========================================================= */
@media screen and (min-width: 100em){

  .single-image-footer{
    height: 50vh;
  }

  .temp-home{
    font-size: 1.6rem;
  }
  .start h1{
    font-size: 1.6rem;
  }
  .start h2{
    font-size: 1.6rem;
  }
  .start p{
    font-size: 1.6rem;
  }
}