

/************************************************
  SECTION Change
*************************************************/

#mdpage .sectionChange {
  position: relative;
  height: 100%;
  background: #f4f4f4;
}
#mdpage .sectionChange .phoneswitch {
  display: flex;
  justify-content: center;
  width: 600px;
  max-width: 100%;
  margin: 30px auto 50px;
}
#mdpage .sectionChange .phoneswitch span {
  padding-bottom: 5px;
  width: 50%;
  border-bottom: 1px solid #000000;
  text-align: center;
  text-decoration: none;
  font-size: 22px;
  color: #000000;
  opacity: .5;
  cursor: pointer;
}
#mdpage .sectionChange .phoneswitch span.active {
  border-bottom: 2px solid #000000;
  opacity: 1;
}

#mdpage .sectionChange.parallax-pin-container {
  height: 100%;
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  /*max-height: 1172px;*/
  display: flex;
  flex-direction: column;
}
#mdpage section.sectionChange .container { 
  position: relative;
  z-index: 10;
}
#mdpage .sectionChange .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 80%;
  height: 100%;
  background: url("https://risorse.tim.it/content/dam/flytoco-areapubblica-aemfe/tim_it/img/prodotti/smartphone/samsung/samsung-a57/html-img/bg_desktop.png") bottom left / 65% no-repeat;
  pointer-events: none;
  will-change: transform;
  transform: translateY(calc((var(--parallax-progress, 0.5) - 0.4) * 300px));
}
#mdpage .sectionChange .content-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
}
#mdpage .sectionChange .content {
  z-index: 1;
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  color: #000000;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: none;
  top: 0;
  left: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
}
#mdpage .sectionChange .top-content {
  padding: 0px 100px 40px;
}
#mdpage .sectionChange .bottom-content {
  padding: 40px 100px 60px;
}
#mdpage .sectionChange .header-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#mdpage .sectionChange .header-text {
  max-width: 394px;
}
#mdpage .sectionChange .header-text h1 {
  margin-bottom: 10px;
  font-weight: 700;
}
#mdpage .sectionChange h1 {
  font-size: 32px;
  line-height: 1.25;
}
#mdpage .sectionChange p {
  font-size: 16px;
}
#mdpage .sectionChange .dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 200px;
}

#mdpage .sectionChange .dropdown-trigger {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #000000;
  border-radius: 8px;
  color: #000000;
  font-size: 16px;
  cursor: pointer;
  font-weight: 400;
}
#mdpage .sectionChange .chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
#mdpage .sectionChange .dropdown.open .chevron {
  transform: rotate(225deg);
}
#mdpage .sectionChange .dropdown-menu {
  position: absolute;
  top: 80px;
  right: 0;
  width: 200px;
  list-style: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 1;
}
#mdpage .sectionChange .dropdown-menu li {
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
}
#mdpage .sectionChange .dropdown-menu li:hover {
  background: rgba(180, 180, 180, 0.08);
}
#mdpage .sectionChange .dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Column spans */
#mdpage .sectionChange .col-1 {
  grid-column-end: span 1;
}
#mdpage .sectionChange .col-2 {
  grid-column-end: span 2;
}
#mdpage .sectionChange .col-3 {
  grid-column-end: span 3;
}

/* Row spans */
#mdpage .sectionChange .row-2 {
  grid-row-end: span 2;
}
#mdpage .sectionChange .row-3 {
  grid-row-end: span 3;
}
#mdpage .sectionChange .row-5 {
  grid-row-end: span 5;
}

/* Column start positions */
#mdpage .sectionChange .col-start-1 {
  grid-column-start: 1;
}
#mdpage .sectionChange .col-start-2 {
  grid-column-start: 2;
}
#mdpage .sectionChange .col-start-3 {
  grid-column-start: 3;
}

/* Row start positions */
#mdpage .sectionChange .row-start-1 {
  grid-row-start: 1;
}
#mdpage .sectionChange .row-start-2 {
  grid-row-start: 2;
}
#mdpage .sectionChange .row-start-3 {
  grid-row-start: 3;
}
#mdpage .sectionChange .row-start-4 {
  grid-row-start: 4;
}
#mdpage .sectionChange .row-start-5 {
  grid-row-start: 5;
}
#mdpage .sectionChange .row-start-6 {
  grid-row-start: 6;
}

#mdpage .sectionChange .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 53px);
  column-gap: 20px;
  row-gap: 20px;

  grid-auto-flow: dense;
}

#mdpage .sectionChange .glass {
  padding: 30px;
  border-radius: 8px;
  height: 200px;
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 0.5px solid rgba(180, 180, 180, 0.5);
}

#mdpage .sectionChange .glass h2 {
  font-size: 40px;
  margin-bottom: 8px;
}
#mdpage .sectionChange .glass h4 {
  font-size: 16px;
  line-height: 1.1;
}

#mdpage .sectionChange .glass p {
  font-size: 16px;
  font-weight: 600;
}

#mdpage .sectionChange .glass.wide {
  grid-column: span 2;
}

#mdpage .sectionChange .stat-card {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 22px;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  --icon-size-desktop: 50px;
  --icon-size-tablet: var(--icon-size-desktop);
  --icon-size-mobile: var(--icon-size-tablet);
}

#mdpage .sectionChange .stat-text h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0px;
  margin-bottom: 5px;
}

#mdpage .sectionChange .title-group {
  display: flex;
  align-items: baseline;
  gap: 0px;
}
#mdpage .sectionChange .cards > div:nth-child(3) .title-group {
  flex-wrap: wrap;
}

#mdpage .sectionChange .stat-text .num {
  font-size: 36px;
  font-weight: 700;
  line-height: 28px;
}

#mdpage .sectionChange .rollup-num {
  display: inline-block;
  width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#mdpage .sectionChange .stat-text .suffix {
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

#mdpage .sectionChange .stat-text .label,
#mdpage .sectionChange .stat-text .preLabel {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

#mdpage .sectionChange .stat-text .desc {
  font-size: 13px;
  font-weight: 400;
}

#mdpage .sectionChange .stat-icon {
  position: absolute;
  top: 20px;
  width: var(--icon-size-desktop);
  height: auto;
  opacity: 0.9;
  z-index: 1;
}

#mdpage .sectionChange .icon-bottom-right .stat-icon {
  bottom: 20px;
  right: 20px;
  top: auto;
}

#mdpage .sectionChange .icon-top-left .stat-icon {
  left: 20px;
}

#mdpage .sectionChange .icon-top-right .stat-icon {
  right: 20px;
}
#mdpage .sectionChange .content-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
#mdpage .sectionChange .square-card {
  backdrop-filter: blur(35px);
  border-radius: 10px;
  border: 0.5px solid rgba(180, 180, 180, 0.5);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  box-sizing: border-box;
}
#mdpage .sectionChange .square-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 700;
}
#mdpage .sectionChange .square-card p {
  font-size: 16px;
  padding-bottom: 0;
  font-weight: 300;
}
#mdpage .sectionChange .square-card-img {
  height: 80px;
  width: 80px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  #mdpage .sectionChange .content {
    padding: 30px 40px 50px;
  }

  #mdpage .sectionChange .square-card {
    width: 100%;
    margin-bottom: 20px;
    gap: 15px;
  }
}

@media (min-width: 603px) and (max-width: 768px) {
  #mdpage .sectionChange .parallax-bg {
    background: url("https://risorse.tim.it/content/dam/flytoco-areapubblica-aemfe/tim_it/img/prodotti/smartphone/samsung/samsung-a57/html-img/bg_desktop.png") top / cover no-repeat;
  }
  #mdpage .sectionChange .content {
    gap: 40px;
  }
  #mdpage .sectionChange .top-content {

    padding-top: 0px;
    padding-bottom: 40px;
  }

  #mdpage .sectionChange .bottom-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #mdpage .sectionChange .stat-icon {
    width: var(--icon-size-tablet);
  }
}

@media (max-width: 768px) {

  #mdpage .sectionChange .col-sm-1 {
    grid-column-end: span 1;
  }
  #mdpage .sectionChange .col-sm-2 {
    grid-column-end: span 2;
  }

  #mdpage .sectionChange .col-sm-start-1 {
    grid-column-start: 1;
  }
  #mdpage .sectionChange .col-sm-start-2 {
    grid-column-start: 2;
  }

  #mdpage .sectionChange .row-sm-start-1 {
    grid-row-start: 1;
  }
  #mdpage .sectionChange .row-sm-start-2 {
    grid-row-start: 4;
  }
  #mdpage .sectionChange .row-sm-start-3 {
    grid-row-start: 7;
  }

  #mdpage .sectionChange .content .cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(9, 44px);
  }

  #mdpage .sectionChange h1 {
    font-size: 28px;
  }

  #mdpage .sectionChange .stat-text .num {
    font-size: 32px;
    line-height: 26px;
  }

  #mdpage .sectionChange .stat-text .suffix {
    font-size: 16px;
    line-height: 22px;
  }

  #mdpage .sectionChange .stat-text .label,
  #mdpage .sectionChange .stat-text .preLabel {
    font-size: 16px;
    line-height: 22px;
  }

  #mdpage .sectionChange .stat-text .desc {
    font-size: 13px;
  }
  
  #mdpage .sectionChange .content {
    padding: 30px 20px 40px;
  }
  #mdpage .sectionChange .content-cards {
    display: block;
  }
  #mdpage .sectionChange .square-card {
    width: 100%;
    margin-bottom: 20px;
    gap: 15px;
  }
  #mdpage .sectionChange .square-card-img {
    height: 60px;
    width: 60px;
  }
}

/* Mobile */
@media (max-width: 602px) {
  #mdpage .sectionChange .parallax-bg {
    background: url("https://risorse.tim.it/content/dam/flytoco-areapubblica-aemfe/tim_it/img/prodotti/smartphone/samsung/samsung-a57/html-img/bg_desktop.png") top / cover no-repeat;
  }

  #mdpage .sectionChange .content-track {
    padding-top: 0 !important;
  }
  #mdpage .sectionChange .content {
    gap: 30px;
  }

  #mdpage .sectionChange .top-content {
    padding-top: 0px;
    padding-bottom: 30px;
  }

  #mdpage .sectionChange .bottom-content {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  #mdpage .sectionChange .header-row {
    flex-direction: column;
    gap: 20px;
  }

  #mdpage .sectionChange .stat-icon {
    width: var(--icon-size-mobile);
  }

  #mdpage .sectionChange .cards {
    column-gap: 16px;
    row-gap: 16px;
  }

  #mdpage .sectionChange .square-card {
    margin-bottom: 16px;
    gap: 14px;
  }
}

@media (max-width: 440px) {
  #mdpage .sectionChange .stat-card.stack-on-mobile .stat-text h2 {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  #mdpage .sectionChange .parallax-pin-container {
    max-height: 1172px; 
    display: flex;
    flex-direction: column;
  }

  #mdpage .sectionChange .parallax-wrapper {
    display: flex;
    flex-direction: column;
  }
}

