/* ============================================================
   Giuliano Store - responsive breakpoints v4
   Loaded after app.css and custom.css.
   ============================================================ */

html,
body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

#main-content,
#main-content > section,
.gs-header,
.gs-footer {
  max-width: 100%;
}

.gs-values {
  max-width: 100vw;
  overflow-x: clip;
  overflow-y: visible;
}

.gs-values-stage {
  max-width: 100%;
}

/* >= 1900px -------------------------------------------------------------- */

@media (min-width: 1900px) {
  .gs-container {
    width: min(100% - 96px, 1680px);
  }

  .page-index #main-content > section:first-child {
    min-height: calc(820px - var(--gs-header-height));
  }

  .gs-values,
  .gs-values-stage {
    min-height: 920px;
  }
}

/* >= 1500px -------------------------------------------------------------- */

@media (min-width: 1500px) and (max-width: 1899.98px) {
  .gs-container {
    width: min(100% - 72px, 1500px);
  }

  .gs-values,
  .gs-values-stage {
    min-height: 860px;
  }

  .gs-value {
    font-size: clamp(185px, 12vw, 195px) !important;
    margin: auto;
  }
}

/* >= 1350px -------------------------------------------------------------- */

@media (min-width: 1350px) and (max-width: 1499.98px) {
  .gs-container {
    width: min(100% - 64px, 1360px);
  }

  .gs-value {
    font-size: clamp(168px, 12vw, 175px) !important;
    margin: auto;
  }
}

/* >= 1200px -------------------------------------------------------------- */

@media (min-width: 1200px) and (max-width: 1349.98px) {
  .gs-container {
    width: min(100% - 56px, 1200px);
  }

  .gs-value {
    font-size: clamp(150px, 12vw, 160px) !important;
  }

  .gs-dot-row--quality {
  }

  .gs-dot-row--security {
    right: 52px;
  }

  .gs-footer__grid {
    gap: 70px;
  }
}

/* >= 992px --------------------------------------------------------------- */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .gs-container {
    width: min(100% - 48px, 1060px);
  }

  .page-index #main-content > section:first-child {
    min-height: calc(620px - var(--gs-header-height));
  }

  .page-index #hero-title {
    font-size: 72px !important;
  }

  .page-index #hero-title span {
    font-size: 50px !important;
  }

  .gs-values,
  .gs-values-stage {
    min-height: 700px;
  }

  .gs-value {
    font-size: clamp(100px, 12vw, 135px) !important;
    margin: auto;
  }

  .gs-value--quality {
  }

  .gs-value--reliability {
  }

  .gs-value--security {
  }

  .gs-value--easy {
  margin: auto;
  }

  .gs-dot-row span {
    width: 20px;
    height: 20px;
  }

  .gs-dot-row--quality {
  }

  .gs-dot-row--reliability {
  }

  .gs-dot-row--security {
  }

  .gs-footer__grid {
    grid-template-columns: .9fr 1.15fr 1.25fr;
    gap: 48px;
  }
}


@media (max-width: 991.98px) {
  [data-theme="dark"] .gs-back-top {
    color: #ffffff !important;
}
  .gs-back-top {
    right: 24px;
    bottom: 18px;
    font-size: 10px;
    z-index: 45;
    mix-blend-mode: revert;
    isolation: isolate;
  }
  .gs-back-to-top,
  .gs-back-to-top svg,
  .gs-back-to-top span {
    color: #fff;
    fill: currentColor;
    stroke: currentColor;
    mix-blend-mode: difference;
  }

  .gs-back-top span {
    width: 24px;
    height: 24px;
    border: 3px solid currentColor;
  }
}
/* 768 - 991: tablet uses the same regular row logic --------------------- */

@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --gs-header-height: 68px;
  }

  .gs-container {
    width: min(100% - 40px, 900px);
  }

  .gs-header__logo img {
    width: 142px;
  }

  .gs-header__nav {
    gap: 34px;
    font-size: 15px;
  }

  .gs-theme-toggle {
    width: 40px;
    height: 40px;
  }

  .page-index #main-content > section:first-child {
    min-height: 480px;
  }

  .page-index #hero-title {
    max-width: 680px;
    font-size: 60px !important;
  }

  .page-index #hero-title span {
    font-size: 40px !important;
  }

  .gs-values,
  .gs-values-stage {
    min-height: 620px;
  }

  .gs-values-stage {
    padding-block: 58px 112px;
  }

  .gs-value {
    font-size: clamp(92px, 12vw, 115px) !important;
  }

  .gs-value--quality {
  }

  .gs-value--reliability {
  }

  .gs-value--security {
  }

  .gs-value--easy {
  margin: auto;
  }

  .gs-dot-row {
    gap: 42px;
  }

  .gs-dot-row span {
    width: 16px;
    height: 16px;
  }

  .gs-dot-row--quality {
  }

  .gs-dot-row--reliability {
  }

  .gs-dot-row--security {
  }

  .gs-values-card {
    width: min(430px, 80vw);
    bottom: -62px;
  }

  .gs-people-section {
    padding-top: 110px !important;
  }

  .gs-people-section h2 .text-\[97px\] {
    font-size: 52px !important;
  }
  .gs-people-section h2 .text-\[128px\] {
    font-size: 52px !important;
  }

  .gs-iso-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(100%, 680px);
    margin-inline: auto;
    gap: 52px 56px !important;
    padding: 58px 64px !important;
  }

  .gs-cert-strip__panel {
    grid-template-columns: 120px 1fr;
    gap: 26px;
  }

  .gs-cert-strip__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 34px;
  }

  .gs-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 46px;
  }

  .gs-footer__brand {
    grid-column: 1 / -1;
  }

  .gs-footer__info {
    grid-template-columns: repeat(3, 1fr);
  }

  .gs-contact-form {
    max-width: none;
  }
}

/* < 768px ---------------------------------------------------------------- */

@media (max-width: 767.98px) {
  :root {
    --gs-header-height: 60px;
  }

  .gs-container {
    margin-inline: auto;
  }

  /* Header */

  .gs-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .gs-header__logo img {
    width: 110px;
  }

  .gs-header__nav {
    display: none;
  }

  .gs-header__actions {
    justify-self: end;
    margin-left: auto;
    gap: 14px;
  }

  .gs-theme-toggle,
  .gs-menu-toggle {
    width: 28px;
    height: 28px;
  }

  .gs-theme-toggle img {
    width: 24px;
    height: 24px;
  }

  .gs-menu-toggle {
    display: inline-flex;
  }

  .gs-menu-toggle span {
    width: 22px;
  }

  .gs-mobile-menu__close {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--gs-bg);
    cursor: pointer;
  }

  .gs-mobile-menu__close span {
    position: absolute;
    width: 28px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
  }

  .gs-mobile-menu__close span:first-child {
    transform: rotate(45deg);
  }

  .gs-mobile-menu__close span:last-child {
    transform: rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Hero */

  .page-index #main-content > section:first-child {
    min-height: 280px !important;
    height: 280px;
  }

  .page-index #main-content > section:first-child img {
    object-position: center center;
  }

  .page-index #hero-title {
    max-width: 320px;
    font-size: 32px !important;
    line-height: .96;
  }

  .page-index #hero-title span {
    font-size: 24px !important;
    line-height: 1.03;
  }

  .page-index #hero-title + a {
    margin-top: 16px !important;
    font-size: 10px !important;
    line-height: 1.1;
  }

  /* Intro / brands */

  .page-index #chi-siamo {
    padding-block: 44px !important;
  }

  .page-index #chi-siamo p {
    font-size: 12px !important;
    line-height: 1.25;
  }

  .page-index [aria-label="Brand distribuiti"] .gs-container {
    width: 100%;
    min-height: 58px;
    padding-inline: 16px;
    gap: 18px;
    border-radius: 0 0 var(--radius-gs) var(--radius-gs);
  }

  .page-index [aria-label="Brand distribuiti"] img {
    max-height: 34px;
  }

  /* Values: ogni riga ha valore + pallini */

  .gs-values {
    /* min-height: 500px; */
    overflow-x: clip;
    overflow-y: visible;
  }

  .gs-values-stage {
    padding-block: 30px 90px;
  }

  .gs-value {
    font-size: 70px !important;
  }

  .gs-dot-row {
  }

  .gs-dot-row span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
  }

  .gs-values-card {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: -54px;
    width: min(100%, 340px);
    padding: 22px 26px;
    transform: translateX(-50%);
    transform-origin: left bottom;
  }

  .gs-values-card p {
    font-size: 14px !important;
    line-height: 1.22;
  }

  .gs-values-card .gs-marker {
    left: 50%;
    bottom: -13px;
    margin-left: -14px;
  }

  /* People / ISO */

  .gs-people-section {
    padding-top: 106px !important;
    padding-bottom: 0px !important;
  }

  .gs-people-section h2 .text-\[97px\] {
    max-width: 340px;
    margin-inline: auto;
    font-size: 28px !important;
    line-height: 1.12;
  }

  .gs-people-section h2 .text-\[128px\] {
    max-width: 340px;
    margin-inline: auto;
    font-size: 28px !important;
    line-height: 1.12;
  }

  .gs-people-section h2 + p {
    max-width: 260px;
    margin-top: 22px !important;
    margin-bottom: 46px !important;
    font-size: 12px !important;
    line-height: 1.2;
  }

  .gs-iso-panel {
    width: min(100%, 340px);
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 54px 32px !important;
    padding: 54px 28px 64px !important;
    border-radius: 14px;
  }

  .gs-iso-icon {
    width: 94px;
    height: 78px;
  }

  .gs-iso-item h3 {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.1;
  }

  .gs-iso-item p {
    font-size: 12px !important;
    line-height: 1.12;
  }
  
  .gs-iso-item p a{
    font-size: 12px !important;
  }
  .gs-iso-item p a span{
    font-size: 10px !important;
    padding-left: 2px;
  }
  .gs-iso-item p a svg{
    width: 12px;
    margin: auto auto auto 5px;
  }

  .gs-people-section .mx-auto.mt-\[110px\] {
    margin-top: 64px !important;
    gap: 28px !important;
  }

  .gs-people-section .fs-40 {
    max-width: 340px;
    font-size: 15px !important;
    line-height: normal;
  }

  .gs-people-section .gs-btn {
    min-height: 46px;
    padding-inline: 28px;
    font-size: 12px !important;
    border-radius: 5px;
    color: var(--gs-bg);
    background: var(--gs-blue-light);
  }

  /* Certification strip */

  .gs-cert-strip {
    padding-top: 0px;
  }

  .gs-cert-strip .gs-container {
    width: 100%;
  }

  .gs-cert-strip__panel {
    width: min(100% - 32px, 380px);
    margin-inline: auto;
    min-height: 150px;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 0px 18px;
    border-bottom: 0;
    border-radius: var(--radius-gs) var(--radius-gs) 0 0;
  }

  .gs-cert-strip__logo .gs-iso-icon {
    width: 82px;
    height: 70px;
  }

  .gs-cert-strip__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    padding: 20px 0;
  }

  .gs-cert-strip__item {
    min-height: 0;
  }

  .gs-cert-strip__item strong {
    font-size: 12px !important;
    line-height: 1.05;
  }

  .gs-cert-strip__item span {
    font-size: 10px !important;
    line-height: 1.08;
  }

  /* Footer sotto 768: righe singole */

  .gs-footer {
    padding: 44px 0 28px;
  }

  .gs-footer .gs-container {
    width: min(100% - 32px, 380px);
  }

  .gs-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .gs-footer__brand {
    display: grid;
    gap: 28px;
  }

  .gs-footer__logo {
    width: 190px;
    margin: 0;
  }

  .gs-footer__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0;
  }

  .gs-footer__menus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .gs-footer__social-block {
    display: grid;
    gap: 12px;
    justify-items: start;
  }

  .gs-footer__menus h2,
  .gs-contact-form h2,
  .gs-footer__info strong,
  .gs-footer__social-block > span {
    font-size: 10px !important;
    line-height: 1.1;
  }

  .gs-footer__menus a,
  .gs-footer__info span,
  .gs-footer__info a {
    font-size: 10px !important;
    line-height: 1.18;
  }

  .gs-footer__menus a {
    margin-bottom: 12px;
  }

  .gs-socials {
    margin-top: 0;
    gap: 14px;
  }

  .gs-socials__link {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .gs-socials__fallback {
    font-size: 11px;
  }

  .gs-contact-form {
    max-width: none;
    gap: 10px;
    margin-top: 0;
  }

  .gs-contact-form h2 {
    margin-bottom: 8px;
  }

  .gs-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .gs-input {
    min-height: 28px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .gs-input::placeholder {
    font-size: 10px;
  }

  .gs-contact-form textarea.gs-input {
    min-height: 74px;
  }

  .gs-form-footer {
    margin-top: 8px;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .gs-checkbox {
    gap: 9px;
    font-size: 10px;
  }

  .gs-checkbox input {
    width: 14px;
    height: 14px;
  }

  .gs-btn--footer {
    min-width: 74px;
    min-height: 28px;
    padding-inline: 18px;
    font-size: 10px !important;
    background: var(--gs-blue-light);
    border-color: var(--gs-blue-light);
  }

  .gs-footer__legal {
    margin-top: 44px;
    font-size: 8px;
  }
}

/* < 575px --------------------------------------------------------------- */

@media (max-width: 574.98px) {
  .gs-container {
  }

  .page-index #main-content > section:first-child {
    height: 280px;
    min-height: 280px !important;
  }

  .page-index #main-content > section:first-child img {
    object-position: 50% 50%;
  }

  .page-index #hero-title {
    max-width: 310px;
  }

  .page-index [aria-label="Brand distribuiti"] .gs-container {
    gap: 18px;
  }

  .gs-values-stage {
  padding-block: 30px 80px;
  }
  .gs-value {
      font-size: 58px !important;
  }

  .gs-people-section {
    padding-top: 100px !important;
  }

  .gs-cert-strip__panel,
  .gs-footer .gs-container {
    width: min(100% - 32px, 380px);
  }
}

/* < 480px --------------------------------------------------------------- */

@media (max-width: 479.98px) {
  .page-index #main-content > section:first-child {
    height: 282px;
    min-height: 282px !important;
  }

  .page-index #hero-title {
    font-size: 32px !important;
  }

  .page-index #hero-title span {
    font-size: 24px !important;
  }

  .page-index #chi-siamo {
    padding-block: 42px !important;
  }

  .page-index [aria-label="Brand distribuiti"] img {
    max-height: 32px;
  }

  .gs-values {
    /* min-height: 470px; */
  }

  .gs-values-stage {
  padding-block: 30px 80px;
  }

  .gs-value {
    font-size: 35px !important;
  }

  .gs-dot-row {
  }

  .gs-dot-row--quality {
  }

  .gs-dot-row--quality span {
  }

  .gs-iso-panel {
    width: min(100%, 340px);
    gap: 52px 28px !important;
  }

  .gs-cert-strip__panel {
    grid-template-columns: 82px 1fr;
  }

  .gs-footer__grid {
    gap: 30px;
  }
}

/* < 320px --------------------------------------------------------------- */

@media (max-width: 319.98px) {
  .gs-container {
  }

  .gs-header__logo img {
    width: 96px;
  }

  .gs-header__actions {
    gap: 8px;
  }

  .page-index #main-content > section:first-child {
    height: 260px;
    min-height: 260px !important;
  }

  .page-index #hero-title {
    max-width: 280px;
    font-size: 28px !important;
  }

  .page-index #hero-title span {
    font-size: 20px !important;
  }

  .page-index #chi-siamo p {
    font-size: 11px !important;
  }

  .page-index [aria-label="Brand distribuiti"] .gs-container {
    padding-inline: 10px;
    gap: 10px;
  }

  .page-index [aria-label="Brand distribuiti"] img {
    max-height: 26px;
  }

  .gs-values,
  .gs-values-stage {
  }

  .gs-values-stage {
  padding-block: 30px 50px;
  }

  .gs-value {
    font-size: 34px !important;
  }

  .gs-dot-row {
  }

  .gs-dot-row span {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
  }

  .gs-dot-row--quality {
  }

  .gs-dot-row--quality span {
  }

  .gs-values-card {
    width: min(100%, 292px);
    padding: 18px 20px;
  }

  .gs-values-card p {
    font-size: 10px !important;
  }

  .gs-people-section h2 .text-\[97px\] {
    font-size: 24px !important;
  }
  .gs-people-section h2 .text-\[128px\] {
    font-size: 24px !important;
  }

  .gs-iso-panel {
    width: min(100%, 292px);
    padding: 42px 18px 52px !important;
    gap: 42px 16px !important;
  }

  .gs-iso-icon {
    width: 78px;
    height: 64px;
  }

  .gs-iso-item h3,
  .gs-iso-item p {
    font-size: 10px !important;
  }

  .gs-people-section .fs-40 {
    font-size: 13px !important;
  }

  .gs-cert-strip__panel {
    width: min(100% - 24px, 312px);
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding-inline: 12px;
  }

  .gs-cert-strip__logo .gs-iso-icon {
    width: 68px;
    height: 58px;
  }

  .gs-cert-strip__items {
    gap: 14px 12px;
  }

  .gs-footer .gs-container {
    width: min(100% - 24px, 312px);
  }

  .gs-form-row {
    gap: 10px;
  }

  .gs-input {
    padding-inline: 8px;
  }
}
