/* SPORTGYM — CSS consolidato, revisione prudente STEP 8.6.1 (25-10-2026)
   Eliminati duplicati certi e selettori banner non presenti nel DOM.
   Conservata la cascata dei layout storici: ulteriori accorpamenti
   richiedono confronto visivo desktop/tablet/mobile prima di produzione.
   Non modificare il JavaScript home-promotions.js durante questo test.
*/

/* Sportgym - personalizzazioni */

/* =========================================================
   SPORTGYM - PRODUCT CARD
   STEP 5.3 - Base
   ========================================================= */

.product-miniature {
  height: 100%;
}

.product-miniature__inner {
  height: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-miniature__inner:hover {
  border-color: #d5d5d5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.product-miniature__top {
  position: relative;
}

.product-miniature__bottom {
  display: flex;
  flex-direction: column;
  height: calc(100% - 0px);
}

.product-miniature__infos {
  padding: 14px 16px 8px;
}

.product-miniature__title {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
}

.product-miniature__prices {
  margin-top: 10px;
}

.product-miniature__price {
  font-size: 18px;
  font-weight: 700;
}

.product-miniature__discount-price {
  margin-top: 2px;
}

.product-miniature__regular-price {
  font-size: 13px;
  opacity: 0.65;
  text-decoration: line-through;
}

.product-miniature__actions {
  margin-top: auto;
  padding: 8px 16px 16px;
}

.product-miniature__form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-miniature__add {
  flex: 1;
}



/* =========================================================
   SPORTGYM - PRODUCT CARD
   STEP 5.3.2 - Immagini e proporzioni
   ========================================================= */

/* Area immagine */
.product-miniature__top {
  position: relative;
  background: #fff;
}

/* Immagine prodotto: dimensioni coerenti */
.product-miniature__top img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Area visiva dell'immagine */
.product-miniature__top .product-thumbnail,
.product-miniature__top .product-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Evita che le immagini escano dalla card */
.product-miniature__inner {
  overflow: hidden;
}

/* Separazione visiva tra immagine e informazioni */
.product-miniature__bottom {
  border-top: 1px solid #f0f0f0;
}

/* Titolo: altezza più regolare tra prodotti */
.product-miniature__title {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Evita che i contenuti allunghino la card */
.product-miniature__infos {
  min-width: 0;
}


/* =========================================================
   SPORTGYM - PRODUCT CARD
   STEP 5.3.3 - Area immagini uniforme
   ========================================================= */

/* Area immagine con altezza visiva costante */
.product-miniature__top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

/* Le immagini mantengono le proprie proporzioni */
.product-miniature__top img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* =========================================================
   SPORTGYM - PRODUCT CARD
   STEP 5.3.4 - Tipografia e prezzi
   ========================================================= */

/* Titolo prodotto */
.product-miniature__title {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: #222;
}

/* Prezzo attuale */
.product-miniature__price {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: #222;
}

/* Prezzo precedente */
.product-miniature__regular-price {
  font-size: 12px;
  color: #888;
  text-decoration: line-through;
}

/* Spaziatura delle informazioni */
.product-miniature__infos {
  padding: 14px 12px 8px;
}

/* Spaziatura delle azioni */
.product-miniature__actions {
  padding: 8px 12px 14px;
}

/* STEP 5.3.5 - Prezzi affiancati */

.product-miniature__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 4px;
}

/* Pulsante Ask sotto i prezzi */

.product-miniature .sportgym-ask {
    margin-top: 10px;
    margin-bottom: 18px;
}

/* =====================================
   SPORTGYM - STEP 5.3.6
   Allineamento verticale card prodotti
   ===================================== */

.product-miniature {
    height: 100%;
}

.product-miniature__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-miniature__bottom {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-miniature__actions {
    margin-top: auto;
}

/* =====================================
   SPORTGYM - STEP 5.3.7
   Titoli prodotto: massimo 3 righe
   ===================================== */

.product-miniature__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    line-clamp: 3;
    overflow: hidden;

    line-height: 1.4;
    height: 4.2em;
}

/* =========================================
   SPORTGYM - STEP 5.4.1.5
   Menu categorie compatto e leggibile
   ========================================= */

.category-tree__list {
    margin: 0;
    padding: 0;
}

.category-tree__item {
    margin: 0;
    padding: 0;
}

/* Riga categoria */
.category-tree__item-header {
    display: flex;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 0;
}

/* Testo categoria */
.category-tree__item-link {
    display: block;
    flex: 1;
    min-width: 0;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;

    padding: 1px 0;
    margin: 0;

    color: #333;
    text-decoration: none;
}

/* Hover */
.category-tree__item-link:hover {
    color: #1769df;
}

/* Freccia apertura sottocategorie */
.category-tree__item-header .accordion-button {
    flex: 0 0 20px;
    width: 20px;
    min-height: 20px;
    padding: 2px;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.category-tree__item-header .accordion-button:not(.collapsed) {
    background: transparent;
    box-shadow: none;
}

/* Contenitore sottocategorie */
.category-tree__item .accordion-body {
    padding: 0 0 0 10px;
}

/* Sottocategorie */
.category-tree__list[data-depth="1"] .category-tree__item-link,
.category-tree__list[data-depth="2"] .category-tree__item-link {
    font-size: 12.5px;
    line-height: 1.2;
    padding: 1px 0;
}

/* Categoria selezionata */
.category-tree__item.active > .category-tree__item-header .category-tree__item-link,
.category-tree__item-link[aria-current="page"] {
    color: #1769df;
    font-weight: 600;
}


/* =========================================
   SPORTGYM - STEP 5.4.2.6
   Banner superiore breadcrumb
   ========================================= */

.breadcrumb__wrapper {
    background-image: url("../img/banner-sportgym.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 140px;
    padding: 35px 0;

    display: flex;
    align-items: center;
}

/* Contenuto del banner */
.breadcrumb__wrapper > .container {
    width: 100%;
}

/* Breadcrumb */
.breadcrumb__wrapper .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Testi */
.breadcrumb__wrapper .breadcrumb-item,
.breadcrumb__wrapper .breadcrumb-item a {
    font-size: 14px;
    color: #263238;
}

/* Link al passaggio del mouse */
.breadcrumb__wrapper .breadcrumb-item a:hover {
    color: #1769df;
}

/* Versione smartphone */
@media (max-width: 767px) {
    .breadcrumb__wrapper {
        min-height: 100px;
        padding: 20px 0;
    }

    .breadcrumb__wrapper .breadcrumb-item,
    .breadcrumb__wrapper .breadcrumb-item a {
        font-size: 12px;
    }
}

/* =========================================
   SPORTGYM - STEP 5.4.2.7
   Titolo e breadcrumb nel banner
   ========================================= */

.breadcrumb__wrapper > .container {
    text-align: center;
}

.sportgym-banner-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #263238;
    margin-top: 0;
    margin-bottom: 10px;
}

.breadcrumb__wrapper .breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

@media (max-width: 767px) {
    .sportgym-banner-title {
        font-size: 21px;
        margin-bottom: 7px;
    }
}

/* =========================================
   SPORTGYM - STEP 5.4.3.1
   Descrizione della categoria
   ========================================= */

body#category .category__header {
    margin-bottom: 20px;
}

/* Testo descrizione */

body#category .category__description {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

/* Paragrafi */

body#category .category__description p {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Ultimo paragrafo */

body#category .category__description p:last-child {
    margin-bottom: 0;
}

/* Eventuali titoli nella descrizione */

body#category .category__description h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0 8px;
}

body#category .category__description h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 12px 0 6px;
}

/* Smartphone */

@media (max-width: 767px) {
    body#category .category__description {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* =========================================
   SPORTGYM - STEP 5.4.3.3
   Barra ordinamento prodotti
   ========================================= */

/* Contenitore superiore */
body#category #js-product-list-top {
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Numero prodotti e ordinamento */
body#category .products__selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    padding: 8px 0 12px;
    border-bottom: 1px solid #e8e8e8;
}

/* Numero prodotti */
body#category .products__count {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

/* Area ordinamento */
body#category .products__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Smartphone */
@media (max-width: 767px) {

    body#category .products__selection {
        gap: 10px;
        padding: 8px 0;
    }

    body#category .products__count {
        font-size: 12px;
    }

    body#category .products__sort {
        width: 100%;
    }
}


/* =========================================
   SPORTGYM - STEP 5.4.3.4
   Paginazione categorie
   ========================================= */

/* Contenitore della paginazione */
body#category .products__pagination {
    margin-top: 24px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

/* Numeri prima, riepilogo sotto */
body#category .pagination__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Navigazione numerica */
body#category .pagination__nav {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

body#category .pagination__nav nav {
    max-width: 100%;
}

/* Elenco pagine */
body#category .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

/* Rimuove eventuali margini degli elementi */
body#category .pagination .page-item {
    margin: 0;
}

/* Pulsanti pagina */
body#category .pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 35px;
    height: 35px;
    padding: 0 8px;

    font-size: 13px;
    font-weight: 500;

    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;

    box-shadow: none;
    text-decoration: none;
}

/* Hover */
body#category .pagination .page-link:hover {
    color: #1769df;
    background: #f3f7ff;
    border-color: #1769df;
}

/* Pagina corrente */
body#category .pagination .page-item.active .page-link,
body#category .pagination .page-link[aria-current="page"] {
    color: #fff;
    background: #1769df;
    border-color: #1769df;
    font-weight: 600;
}

/* Pulsanti disabilitati */
body#category .pagination .page-link:disabled,
body#category .pagination .page-link.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Riepilogo prodotti */
body#category .pagination__number {
    order: 2;
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* Smartphone */
@media (max-width: 767px) {
    body#category .products__pagination {
        margin-top: 18px;
        padding-top: 12px;
    }

    body#category .pagination {
        gap: 4px;
    }

    body#category .pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }
}



/* =========================================
   SPORTGYM - STEP 5.5.2.1
   Accordion scheda prodotto
   ========================================= */

/* Contenitore */
body#product .product__accordion {
    border-top: 1px solid #e5e9ed;
}

/* Singola sezione */
body#product .product__accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid #e5e9ed;
    background: #fff;
}

/* Pulsante della sezione */
body#product .product__accordion .accordion-button {
    padding: 13px 15px;
    background: #fff;
    color: #303840;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: none;
    border-radius: 0;
}

/* Sezione aperta */
body#product .product__accordion .accordion-button:not(.collapsed) {
    color: #1769df;
    background: #f7faff;
    box-shadow: none;
}

/* Hover */
body#product .product__accordion .accordion-button:hover {
    color: #1769df;
    background: #f7faff;
}

/* Freccia */
body#product .product__accordion .accordion-button::after {
    width: 14px;
    height: 14px;
    background-size: 14px;
}

/* Contenuto */
body#product .product__accordion .accordion-body {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Paragrafi */
body#product .product__accordion .accordion-body p {
    margin-bottom: 10px;
}

body#product .product__accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

/* Smartphone */
@media (max-width: 767px) {
    body#product .product__accordion .accordion-button {
        padding: 12px;
        font-size: 13px;
    }

    body#product .product__accordion .accordion-body {
        padding: 12px;
        font-size: 13px;
    }
}


/* =========================================
   SPORTGYM - STEP 5.5.2.2
   Parte inferiore scheda prodotto
   ========================================= */

/* Contenitore inferiore */
body#product .product__bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* Accordion a tutta larghezza */
body#product .product__bottom-left {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

/* Informazioni aggiuntive sotto gli accordion */
body#product .product__bottom-right {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

/* Smartphone */
@media (max-width: 767px) {
    body#product .product__bottom {
        margin-top: 20px;
        gap: 15px;
    }
}


/* =========================================
   SPORTGYM - STEP 5.5.2.8
   Blocchi HTML nella scheda prodotto
   ========================================= */

body#product .sportgym-product-info {
    margin-top: 20px;
    width: 100%;
}

body#product .sportgym-product-info p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}

body#product .sportgym-product-info p:last-child {
    margin-bottom: 0;
}

body#product .sportgym-product-info a {
    color: #1769df;
}


/* =========================================
   SPORTGYM - STEP 5.5.3.1.2
   Griglia compatta prodotti correlati
   ========================================= */

/* Griglia prodotti correlati */
body#product .product__accessories .module-products__list .products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
}

/* Card più compatte */
body#product .product__accessories .product-miniature {
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* Immagini */
body#product .product__accessories .product-miniature__top {
    margin-bottom: 6px;
}

/* Titoli: massimo 3 righe */
body#product .product__accessories .product-miniature__title {
    font-size: 12px;
    line-height: 1.3;
    height: 3.9em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Prezzo */
body#product .product__accessories .product-miniature__price {
    font-size: 14px;
    font-weight: 700;
}

/* Prezzo barrato */
body#product .product__accessories .product-miniature__regular-price {
    font-size: 11px;
}

/* Spaziature interne */
body#product .product__accessories .product-miniature__bottom {
    padding: 8px;
}

/* Pulsanti: dimensioni compatte */
body#product .product__accessories .product-miniature__actions {
    margin-top: auto;
}

body#product .product__accessories .product-miniature__add {
    padding: 6px 8px;
    font-size: 12px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    body#product .product__accessories .module-products__list .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    body#product .product__accessories .module-products__list .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body#product .product__accessories .product-miniature__title {
        font-size: 12px;
    }

    body#product .product__accessories .product-miniature__bottom {
        padding: 6px;
    }
}


/* =========================================
   SPORTGYM - STEP 5.5.3.2
   Slider prodotti stessa categoria
   ========================================= */

body#product .sportgym-category-slider {
    margin: 35px 0;
    width: 100%;
}

/* Titolo sezione */
body#product .sportgym-category-slider__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Contenitore slider */
body#product .sportgym-category-slider__viewport {
    width: 100%;
    overflow: hidden;
}

/* Tracciato scorrevole */
body#product .sportgym-category-slider__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 8px;
}

/* Nasconde scrollbar su Chrome/Safari */
body#product .sportgym-category-slider__track::-webkit-scrollbar {
    display: none;
}

/* Quattro prodotti per schermata */
body#product .sportgym-category-slider__item {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

/* Card */
body#product .sportgym-category-slider__item .product-miniature {
    width: 100%;
    height: 100%;
    min-width: 0;
}

/* Tablet: 3 prodotti */
@media (min-width: 768px) and (max-width: 1199px) {
    body#product .sportgym-category-slider__item {
        flex-basis: calc((100% - 32px) / 3);
    }
}

/* Smartphone: 2 prodotti */
@media (max-width: 767px) {
    body#product .sportgym-category-slider__track {
        gap: 10px;
    }

    body#product .sportgym-category-slider__item {
        flex-basis: calc((100% - 10px) / 2);
    }

    body#product .sportgym-category-slider__title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body#product .sportgym-category-slider__track {
        scroll-behavior: auto;
    }
}

/* SPORTGYM - STEP 5.5.3.2.3 - Frecce slider */

body#product .sportgym-category-slider__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

body#product .sportgym-category-slider__title {
    margin: 0;
}

body#product .sportgym-category-slider__controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

body#product .sportgym-category-slider__controls button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

body#product .sportgym-category-slider__controls button:hover:not(:disabled) {
    background: #1769df;
    border-color: #1769df;
    color: #fff;
}

body#product .sportgym-category-slider__controls button:disabled {
    opacity: 0.35;
    cursor: default;
}


/* =========================================
   SPORTGYM - STEP 5.5.4.1
   Galleria immagini scheda prodotto
   ========================================= */

/* Contenitore immagini */
body#product .product__images {
    width: 100%;
    min-width: 0;
}

/* Carosello principale */
body#product .product__carousel {
    width: 100%;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fff;
}

/* Ogni immagine mantiene la stessa area */
body#product .product__carousel .carousel-item {
    aspect-ratio: 1 / 1;
}

/* Immagine adattata senza tagli */
body#product .product__carousel .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Picture occupa l'intera area */
body#product .product__carousel .carousel-item picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Area miniature */
body#product .product__thumbnails {
    margin-top: 12px;
}

/* Elenco miniature */
body#product .product__thumbnails-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

/* Pulsanti miniature */
body#product .product__thumbnail {
    width: 64px;
    height: 64px;
    padding: 4px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #fff;
}

/* Immagini miniature */
body#product .product__thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Miniatura selezionata */
body#product .product__thumbnail.active {
    border-color: #1769df;
}

/* Smartphone */
@media (max-width: 767px) {
    body#product .product__thumbnail {
        width: 54px;
        height: 54px;
    }

    body#product .product__thumbnails-list {
        gap: 6px;
    }
}

/* SPORTGYM - Nasconde il vecchio pannello a comparsa Quotes */
.afqQuotesCartOver .quotes_cart_block {
    display: none !important;
}


/* =========================================
   SPORTGYM - STEP 5.5.4.2.10
   Pulsante richiesta preventivo
   ========================================= */

body#product .product__right > .ask_offer {
    width: 100%;
    margin: 12px 0 20px;
    clear: both;
}

body#product .product__right > .ask_offer .quote_ask_form {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

body#product .product__right > .ask_offer .fly_to_quote_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 9px 16px;
    color: #1265e9;
    background: #ffffff;
    border: 1px solid #1265e9;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

body#product .product__right > .ask_offer .fly_to_quote_cart_button:hover {
    color: #ffffff;
    background: #1265e9;
}

body#product .product__right > .ask_offer .fly_to_quote_cart_button:focus-visible {
    outline: 2px solid #1265e9;
    outline-offset: 3px;
}


/* =========================================
   SPORTGYM - STEP 5.5.4.4
   Informazioni utili prima dell'acquisto
   ========================================= */

body#product .sportgym-purchase-info {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e2e7ed;
    border-radius: 8px;
    background: #fff;
    color: #263238;
}

body#product .sportgym-purchase-info__header,
body#product .sportgym-purchase-info__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

body#product .sportgym-purchase-info__header {
    padding-bottom: 16px;
}

body#product .sportgym-purchase-info__item {
    padding: 15px 0;
    border-top: 1px solid #edf0f3;
}

body#product .sportgym-purchase-info__item:last-child {
    padding-bottom: 0;
}

body#product .sportgym-purchase-info__symbol,
body#product .sportgym-purchase-info__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1265e9;
    background: #eef5ff;
    border-radius: 7px;
    font-size: 17px;
    font-weight: 700;
}

body#product .sportgym-purchase-info h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

body#product .sportgym-purchase-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

body#product .sportgym-purchase-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #58636d;
}

@media (max-width: 767px) {
    body#product .sportgym-purchase-info {
        padding: 15px;
    }

    body#product .sportgym-purchase-info__header,
    body#product .sportgym-purchase-info__item {
        gap: 10px;
    }
}


/* =========================================
   SPORTGYM - STEP 5.5.4.5
   Condivisione social scheda prodotto
   ========================================= */

body#product .product__additional-info {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #e9edf1;
}

body#product .product__additional-info .ps-sharebuttons {
    font-size: 13px;
    color: #66717c;
}

body#product .product__additional-info .ps-sharebuttons a {
    transition: opacity 0.2s ease;
}

body#product .product__additional-info .ps-sharebuttons a:hover {
    opacity: 0.7;
}



/* =========================================
   SPORTGYM - STEP 6.1.1
   Dimensioni logo header
   ========================================= */

/* Desktop */
@media (min-width: 992px) {
    .header-bottom .navbar-brand .logo {
        width: auto;
        max-width: 220px;
        max-height: 65px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .header-bottom .navbar-brand .logo {
        width: auto;
        max-width: 180px;
        max-height: 55px;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    .header-bottom .navbar-brand .logo {
        width: auto;
        max-width: 145px;
        max-height: 42px;
    }
}

/* =========================================================
   SPORTGYM - STEP 7.2.1 - Scheda prodotto, parte superiore
   Da aggiungere IN FONDO a themes/sportgym/assets/css/custom.css
   Non sostituire il file CSS esistente.
   ========================================================= */

/* Titolo e spaziatura della colonna informazioni */
body#product .product__right .product__name {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

/* Prezzo corrente e prezzo precedente sulla stessa riga */
body#product .product__right .product__prices-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: .25rem;
  margin-bottom: .75rem;
}
body#product .product__right .product__prices-block > .product__prices-inline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
}
body#product .product__right .product__prices-block > .product__prices-inline:has(.product__price) {
  order: 0;
}
body#product .product__right .product__discount-price {
  order: 1;
}
body#product .product__right .product__price {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 750;
  line-height: 1.15;
}
body#product .product__right .product__regular-price {
  font-size: .98rem;
  color: #6b7280;
}
body#product .product__right .product__discount-percentage,
body#product .product__right .product__discount-amount {
  font-size: .8rem;
  font-weight: 600;
}
body#product .product__right .product__tax-infos,
body#product .product__right .product__pack-price,
body#product .product__right .product__taxless-price {
  flex-basis: 100%;
}

/* Descrizione breve: leggibilità senza modificarne il contenuto */
body#product .product__right .product__description-short {
  font-size: .96rem;
  line-height: 1.65;
  margin: 1rem 0 1.25rem;
}
body#product .product__right .product__description-short p {
  margin-bottom: .6rem;
}

/* Pulsanti acquisto: dimensioni e spaziature */
body#product .product__right .product__actions-qty-add {
  gap: .75rem;
}
body#product .product__right .product__add-to-cart-button {
  min-height: 44px;
  font-weight: 650;
  border-radius: 5px;
}

/* Galleria: manteniamo l'assetto già realizzato allo STEP 5.5.4.1 */
body#product .product__left .product__images {
  min-width: 0;
}

@media (max-width: 767px) {
  body#product .product__right .product__name {
    font-size: 1.45rem;
  }
  body#product .product__right .product__description-short {
    line-height: 1.55;
  }
}

/* =========================================================
   SPORTGYM - STEP 7.2.2 - Riquadro informazioni commerciali
   Aggiungere IN FONDO a themes/sportgym/assets/css/custom.css
   ========================================================= */

/* Solo scheda prodotto: contenitore hook Sportgym */
body#product .product__right .sportgym-product-info {
  width: 100%;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
}

/* Migliora leggibilita' e compattezza dei testi */
body#product .product__right .sportgym-product-info p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 5px;
}
body#product .product__right .sportgym-product-info p:last-child {
  margin-bottom: 0;
}

/* Evita elementi piu' larghi della colonna, soprattutto su smartphone */
body#product .product__right .sportgym-product-info,
body#product .product__right .sportgym-product-info * {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Elementi testuali secondari, se inseriti tramite HTML semplice */
body#product .product__right .sportgym-product-info small {
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 767px) {
  body#product .product__right .sportgym-product-info {
    margin-top: 12px;
  }
}


/* ============================================================
   SPORTGYM — STEP 7.2.3
   Rifinitura accordion nella scheda prodotto
   Non modifica contenuti, struttura HTML o comportamento Bootstrap.
   ============================================================ */

/* Separazione leggera fra le sezioni */
body#product .product__accordion {
  border-top: 1px solid #e3eaf2;
}

body#product .product__accordion > .accordion-item {
  border-bottom: 1px solid #e3eaf2;
}

/* Intestazioni: gerarchia visiva */
body#product .product__accordion .accordion-button {
  min-height: 44px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  transition: background-color .18s ease, color .18s ease;
}

body#product .product__accordion .accordion-button:not(.collapsed) {
  color: #155dc2;
  background-color: #f3f7fd;
}

body#product .product__accordion .accordion-button:focus-visible {
  outline: 2px solid #1769df;
  outline-offset: -2px;
  box-shadow: none;
}

/* Testi: migliore leggibilità */
body#product .product__accordion .accordion-body {
  padding: 16px 18px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #354052;
  overflow-wrap: break-word;
}

body#product .product__accordion .accordion-body p {
  margin: 0 0 11px;
}

body#product .product__accordion .accordion-body p:last-child {
  margin-bottom: 0;
}

body#product .product__accordion .accordion-body ul,
body#product .product__accordion .accordion-body ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

body#product .product__accordion .accordion-body a {
  text-underline-offset: 2px;
}

/* Adattamento per smartphone */
@media (max-width: 767px) {
  body#product .product__accordion .accordion-button {
    padding: 12px 14px;
    font-size: 14px;
  }

  body#product .product__accordion .accordion-body {
    padding: 14px;
    font-size: 14px;
    line-height: 1.65;
  }
}


/* ==========================================
   SPORTGYM - STEP 8.1.4
   Slider homepage a tutta larghezza
   ========================================== */

body#index #carousel {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

body#index #carousel img {
    display: block;
    width: 100%;
    height: auto;
}

body#index {
    overflow-x: clip;
}


/* ==========================================
   SPORTGYM - STEP 8.1.5.3
   Personalizzazione testo slider
   ========================================== */

body#index .ps-imageslider__figcaption {
    left: 8%;
    right: auto;
    bottom: 14%;
    width: 520px;
    max-width: 45%;
    padding: 28px 32px;
    text-align: left;
    background: rgba(20, 35, 50, 0.78);
    border-radius: 8px;
}

body#index .ps-imageslider__figcaption h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

body#index .ps-imageslider__figcaption p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 18px;
}

body#index .sportgym-slide-cta {
    background: #0868d8;
    border-color: #0868d8;
    color: #fff;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
}

body#index .sportgym-slide-cta:hover {
    background: #004fa8;
    border-color: #004fa8;
}

/* ==========================================
   SPORTGYM - STEP 8.1.5.4
   Slider responsive smartphone e tablet
   ========================================== */

@media (max-width: 991.98px) {

  body#index .ps-imageslider__figcaption {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 22px 20px 28px;
    background: #253d50;
    border-radius: 0;
    text-align: center;
    transform: none;
  }

  body#index .ps-imageslider__figcaption h2 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  body#index .ps-imageslider__figcaption p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  body#index .sportgym-slide-cta {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
  }

}

/* ==========================================
   SPORTGYM - STEP 8.1.5.4 FIX
   Slider mobile: immagine + testo sotto
   ========================================== */

@media (max-width: 991.98px) {

  body#index .ps-imageslider__figure {
    height: auto !important;
    margin: 0;
  }

  body#index .ps-imageslider__figure img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
  }

  body#index .ps-imageslider__figcaption {
    display: block !important;
    position: static !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 24px 20px 35px;
    transform: none !important;
    background: #253d50;
    border-radius: 0;
    text-align: center;
    color: #fff;
  }

  body#index .ps-imageslider__figcaption h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
  }

  body#index .ps-imageslider__figcaption p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #fff;
  }

  body#index .sportgym-slide-cta {
    display: inline-block;
    padding: 11px 22px;
    font-size: 14px;
  }

}


/* ==========================================
   SPORTGYM - STEP 8.2.7
   Banner homepage
   ========================================== */

body#index .sg-home-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 220px;
    padding: 20px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
}

body#index .sg-home-preventivi {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65),
            transparent 65%
        ),
        url("../img/sportgym-preventivi.webp");
}

body#index .sg-home-banner-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

/* ==========================================
   SPORTGYM - STEP 8.2.8
   Banner Offerte del mese
   ========================================== */

body#index .sg-home-offerte {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65),
            transparent 65%
        ),
        url("../img/sportgym-offerte-mese.webp");
}


/* ==========================================
   SPORTGYM - STEP 8.2.9
   Testata homepage a tre elementi
   ========================================== */

@media (min-width: 992px) {

  body#index .page-content--home {
    display: grid;
    grid-template-rows: 210px 210px;
    gap: 12px;
    align-items: stretch;
  }

  /* Slider: colonna sinistra, due righe */
  body#index .page-content--home > .ps-imageslider {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
    height: 100%;
    margin: 0;
  }

  body#index .ps-imageslider #ps_imageslider,
  body#index .ps-imageslider .carousel-inner,
  body#index .ps-imageslider .carousel-item,
  body#index .ps-imageslider__figure {
    height: 100%;
  }

  body#index .ps-imageslider__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Banner superiore */
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-preventivi) {
    grid-column: 2;
    grid-row: 1;
  }

  /* Banner inferiore */
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-offerte) {
    grid-column: 2;
    grid-row: 2;
  }

  /* Dimensioni dei due banner */
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-banner) {
    min-width: 0;
    height: 100%;
  }

  body#index .page-content--home .sg-home-banner {
    height: 100%;
    min-height: 0;
  }

  body#index .page-content--home .sg-home-banner-title {
    font-size: 19px;
  }

  /* Tutti gli altri moduli sotto la testata */
  body#index .page-content--home >
  :not(.ps-imageslider):not(
    .sportgym-htmlblock:has(.sg-home-banner)
  ) {
    grid-column: 1 / -1;
  }
}

/* Smartphone e tablet */
@media (max-width: 991.98px) {

  body#index .page-content--home {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body#index .page-content--home > * {
    grid-column: 1;
  }

  body#index .page-content--home .sg-home-banner {
    min-height: 180px;
  }
}

/* SPORTGYM - STEP 8.2.12
   Banner preventivi cliccabile */

body#index a.sg-home-banner {
    text-decoration: none;
    cursor: pointer;
}

body#index a.sg-home-banner:hover {
    text-decoration: none;
}

body#index a.sg-home-banner:hover .sg-home-banner-title {
    text-decoration: underline;
}

/* ==========================================
   SPORTGYM - STEP 8.2.12 FIX
   Banner preventivi cliccabile
   ========================================== */

body#index .sg-home-preventivi {
    position: relative;
    padding: 0;
}

body#index .sg-home-banner-link {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 20px;
    color: #ffffff;
    text-decoration: none;
}

body#index .sg-home-banner-link:hover {
    color: #ffffff;
    text-decoration: none;
}

body#index .sg-home-banner-link:hover
.sg-home-banner-title {
    text-decoration: underline;
}


/* ==========================================
   SPORTGYM - STEP 8.3.2
   Prodotti in vetrina: 5 colonne desktop
   ========================================== */

@media (min-width: 1200px) {

  body#index .ps-featuredproducts
  .module-products__list .products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  body#index .ps-featuredproducts
  .module-products__list .products
  > .product-miniature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

}

/* Tablet: 3 colonne */
@media (min-width: 768px) and (max-width: 1199.98px) {

  body#index .ps-featuredproducts
  .module-products__list .products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

}

/* Smartphone: 2 colonne */
@media (max-width: 767.98px) {

  body#index .ps-featuredproducts
  .module-products__list .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

}


/* ==========================================
   SPORTGYM - STEP 8.4.2
   Macrocategorie fotografiche
   ========================================== */

body#index .sg-home-categories {
    width: 100%;
    max-width: 100%;
    margin: 28px auto;
}

body#index .sg-home-categories h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Griglia delle nove categorie */

body#index .sg-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Riquadro fotografico */

body#index .sg-category-card {
    position: relative;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Fascia scura trasparente */

body#index .sg-category-band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 54px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    background: rgba(20, 35, 50, 0.78);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

/* Responsive */

@media (max-width: 991.98px) {
    body#index .sg-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    body#index .sg-categories-grid {
        grid-template-columns: 1fr;
    }
}


/* SPORTGYM - STEP 8.4.2
   Ordine sezioni homepage */

body#index .page-content--home > * {
    order: 3;
}

body#index .page-content--home > .ps-imageslider,
body#index .page-content--home >
.sportgym-htmlblock:has(.sg-home-banner) {
    order: 0;
}

body#index .page-content--home > .ps-featuredproducts {
    order: 1;
}

body#index .page-content--home >
.sportgym-htmlblock:has(.sg-home-categories) {
    order: 2;
    grid-column: 1 / -1;
}


/* ==========================================
   SPORTGYM - STEP 8.4.2 FIX
   Allineamento sezione macrocategorie
   ========================================== */

body#index .sg-home-categories {
    box-sizing: border-box;
    width: calc(100% - 24px);
    max-width: 1320px;
    margin: 28px auto;
}

/* Allineamento ai container Bootstrap */

@media (min-width: 1200px) {
    body#index .sg-home-categories {
        max-width: 1140px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body#index .sg-home-categories {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body#index .sg-home-categories {
        max-width: 720px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    body#index .sg-home-categories {
        max-width: 540px;
    }
}

/* SPORTGYM - STEP 8.4.4
   Fotografie macrocategorie */

body#index .sg-category-calcio {
  background-image: url("../img/sportgym-cat-calcio-calcetto.webp");
}

body#index .sg-category-squadra {
  background-image: url("../img/sportgym-cat-basket-volley-squadra.webp");
}

body#index .sg-category-ginnastica {
  background-image: url("../img/sportgym-cat-ginnastica-danza.webp");
}

body#index .sg-category-atletica {
  background-image: url("../img/sportgym-cat-atletica-leggera.webp");
}

body#index .sg-category-fitness {
  background-image: url("../img/sportgym-cat-fitness-benessere.webp");
}

body#index .sg-category-individuali {
  background-image: url("../img/sportgym-cat-sport-individuali.webp");
}

body#index .sg-category-arredo {
  background-image: url("../img/sportgym-cat-arredo-spogliatoi-scuola.webp");
}

body#index .sg-category-impianti {
  background-image: url("../img/sportgym-cat-impianti-sicurezza.webp");
}

body#index .sg-category-trial {
  background-image: url("../img/sportgym-cat-palloni-trial.webp");
}


/* ==========================================
   SPORTGYM - STEP 8.4.5.5
   Pagine CMS macrocategorie
   ========================================== */

.sg-macro-page {
    margin: 24px 0 40px;
}

.sg-macro-intro {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.sg-macro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sg-macro-card {
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    padding: 24px;
    background: #fff;
}

.sg-macro-card h2 {
    font-size: 21px;
    font-weight: 700;
    color: #1769a5;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e5eb;
}

.sg-macro-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sg-macro-card li {
    margin-bottom: 12px;
}

.sg-macro-card a {
    color: #33485c;
    text-decoration: none;
}

.sg-macro-card a:hover {
    color: #0868d8;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .sg-macro-grid {
        grid-template-columns: 1fr;
    }

    .sg-macro-card {
        padding: 18px;
    }
}

/* SPORTGYM - STEP 8.4.5.7
   Macrocategorie cliccabili */

body#index a.sg-category-card {
    display: block;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

body#index a.sg-category-card:hover {
    text-decoration: none;
}

body#index a.sg-category-card:hover .sg-category-band {
    background: rgba(20, 35, 50, 0.90);
}


/* ==========================================
   SPORTGYM - STEP 8.5.2.3
   Banner + Offerte speciali homepage
   ========================================== */

@media (min-width: 992px) {

  /* Sei colonne per gestire le due sezioni
     mantenendo le proporzioni della testata */
  body#index .page-content--home {
  }

  /* Mantiene lo slider a 2/3 della larghezza */
  body#index .page-content--home > .ps-imageslider {
    grid-column: 1 / 5;
  }

  /* Mantiene i banner della testata a destra */
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-preventivi),
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-offerte) {
    grid-column: 5 / 7;
  }

  /* Offerte speciali: colonna destra */
  body#index .page-content--home > .ps-specials {
    grid-column: 3 / 7 !important;
    min-width: 0;
  }

  /* Contenitore interno delle offerte */
  body#index .ps-specials .module-products {
    width: 100%;
    max-width: 100%;
  }

  /* Quattro prodotti in griglia 2 x 2 */
  body#index .ps-specials
  .module-products__list .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }

  body#index .ps-specials
  .module-products__list .products > .product-miniature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
}

/* Tablet e smartphone */
@media (max-width: 991.98px) {

  body#index .page-content--home > .ps-specials {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  body#index .ps-specials
  .module-products__list .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body#index .ps-specials
  .module-products__list .products > .product-miniature {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
}

/* ==========================================
   SPORTGYM - STEP 8.5.2.7
   Correzione banner Pilates + Offerte
   ========================================== */

@media (min-width: 992px) {

  /* Banner Pilates: colonna sinistra */
  body#index .page-content--home > .banner {
    grid-column: 1 / 3 !important;
    grid-row: auto;
    order: 3;
    min-width: 0;
    width: 100%;
    align-self: stretch;
  }

  /* Offerte speciali: colonna destra */
  body#index .page-content--home > .ps-specials {
    grid-column: 3 / 7 !important;
    grid-row: auto;
    order: 3;
    min-width: 0;
    width: 100%;
  }

  /* Banner: occupa tutta la larghezza disponibile */
  body#index .page-content--home > .banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* Quattro offerte disposte 2 x 2 */
  body#index .ps-specials
  .module-products__list .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body#index .ps-specials
  .module-products__list .products > .product-miniature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
}

/* Smartphone e tablet */
@media (max-width: 991.98px) {

  body#index .page-content--home > .banner,
  body#index .page-content--home > .ps-specials {
    grid-column: 1 !important;
    width: 100%;
    min-width: 0;
  }

  body#index .page-content--home > .banner {
    order: 3;
  }

  body#index .page-content--home > .ps-specials {
    order: 4;
  }

  body#index .page-content--home > .ps-bestsellers {
    order: 5;
  }
}

/* ==========================================
   SPORTGYM - STEP 8.6.2.1
   Offerte speciali: card compatte consolidate
   (valori finali degli STEP 8.5.2.8 e 8.5.2.9)
   ========================================== */

@media (min-width: 992px) {
  body#index .ps-specials .module-products__list .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body#index .ps-specials .product-miniature {
    min-width: 0;
    height: 100%;
  }

  body#index .ps-specials .product-miniature__top {
    height: 125px;
    min-height: 125px;
    overflow: hidden;
  }

  body#index .ps-specials .product-miniature__top img {
    width: 100%;
    height: 115px;
    max-height: 115px;
    object-fit: contain;
  }

  body#index .ps-specials .product-miniature__infos {
    padding: 6px 10px 2px;
  }

  body#index .ps-specials .product-miniature__title {
    font-size: 12px;
    line-height: 1.3;
    height: 2.6em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  body#index .ps-specials .product-miniature__price {
    font-size: 14px;
  }

  body#index .ps-specials .product-miniature__prices {
    margin-top: 5px;
  }

  body#index .ps-specials .product-miniature__actions {
    padding: 4px 10px 8px;
  }

  body#index .ps-specials .sportgym-ask {
    margin-top: 4px;
    margin-bottom: 5px;
  }
}

/* ==========================================
   SPORTGYM - STEP 8.5.2.11
   Allineamento offerte al contenitore centrale
   ========================================== */

@media (min-width: 992px) {

  /* Griglia con sei colonne centrali
     e due colonne laterali flessibili */
  body#index .page-content--home {
    grid-template-columns:
      minmax(0, 1fr)
      repeat(6, minmax(0, 150px))
      minmax(0, 1fr);
  }

  /* Slider e banner superiori */
  body#index .page-content--home > .ps-imageslider {
    grid-column: 1 / 6;
  }

  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-preventivi),
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-offerte) {
    grid-column: 6 / 9;
  }

  /* Banner Pilates */
  body#index .page-content--home > .banner {
    grid-column: 2 / 4 !important;
    min-width: 0;
  }

  /* Quattro offerte speciali */
  body#index .page-content--home > .ps-specials {
    grid-column: 4 / 8 !important;
    min-width: 0;
  }
}

@media (min-width: 1200px) {

  body#index .page-content--home {
    grid-template-columns:
      minmax(0, 1fr)
      repeat(6, minmax(0, 180px))
      minmax(0, 1fr);
  }
}


/* ==========================================
   SPORTGYM - STEP 8.5.2.12
   Contenitore centrale promozioni
   ========================================== */

body#index .page-content--home > .sg-home-promotions {
  grid-column: 1 / -1;
  order: 3;

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;

  width: calc(100% - 24px);
  margin: 20px auto 30px;
  min-width: 0;
}

/* Larghezze responsive come container Bootstrap */
@media (min-width: 576px) {
  body#index .sg-home-promotions {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  body#index .sg-home-promotions {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  body#index .sg-home-promotions {
    max-width: 960px;
    /* Le colonne desktop definitive sono definite nello STEP 8.5.2.13. */
    align-items: start;
  }
}

@media (min-width: 1200px) {
  body#index .sg-home-promotions {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  body#index .sg-home-promotions {
    max-width: 1320px;
  }
}

/* Banner Pilates */
body#index .sg-home-promotions > .banner {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body#index .sg-home-promotions > .banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Offerte speciali */
body#index .sg-home-promotions > .ps-specials {
  width: 100%;
  min-width: 0;
  margin: 0;
  grid-column: auto;
}

/* Griglia delle quattro offerte */
body#index .sg-home-promotions .ps-specials
.module-products__list .products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body#index .sg-home-promotions .ps-specials
.product-miniature {
  width: 100%;
  min-width: 0;
}

/* Smartphone */
@media (max-width: 767.98px) {
  body#index .sg-home-promotions .ps-specials
  .module-products__list .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* ==========================================
   SPORTGYM - STEP 8.5.2.13
   Correzione griglia promozioni desktop
   ========================================== */

@media (min-width: 992px) {

  body#index .page-content--home > .sg-home-promotions {
    display: grid;

grid-template-columns:
  minmax(0, 2fr) minmax(0, 3fr);

    gap: 16px;
    align-items: start;
  }

  body#index .sg-home-promotions > .banner {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
  }

  body#index .sg-home-promotions > .ps-specials {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
  }

}

/* ==========================================
   SPORTGYM - STEP 8.5.2.16.2
   Titolo offerte nel contenitore centrale
   ========================================== */

/* Blocco HTML del titolo */
body#index .page-content--home >
.sportgym-htmlblock:has(.sg-home-offers-heading) {
  grid-column: 1 / -1;
  order: 3;
  width: calc(100% - 24px);
  max-width: 100%;
  margin: 25px auto 0;
  box-sizing: border-box;
}

/* Larghezze responsive come la sezione promozioni */
@media (min-width: 576px) {
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-offers-heading) {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-offers-heading) {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-offers-heading) {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-offers-heading) {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  body#index .page-content--home >
  .sportgym-htmlblock:has(.sg-home-offers-heading) {
    max-width: 1320px;
  }
}

/* Titolo */
body#index .sg-home-offers-heading h2 {
  font-size: 24px;
  font-weight: 700;
  color: #263238;
  margin: 0 0 8px;
}

/* Sottotitolo */
body#index .sg-home-offers-heading p {
  font-size: 14px;
  color: #66717c;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   SPORTGYM - STEP 8.5.2.16.3
   Nasconde il titolo originale delle offerte
   ========================================== */

body#index .sg-home-promotions
.ps-specials .section-title {
    display: none;
}

/* ==========================================
   SPORTGYM - STEP 8.5.2.16.4
   Offerte speciali: 3 prodotti per riga
   ========================================== */

@media (min-width: 992px) {

  body#index .sg-home-promotions .ps-specials
  .module-products__list .products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  body#index .sg-home-promotions .ps-specials
  .module-products__list .products > .product-miniature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
}

/* ==========================================
   SPORTGYM - STEP 8.5.2.16.5
   Banner Pilates più verticale
   ========================================== */

@media (min-width: 992px) {

  body#index .sg-home-promotions > .banner {
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    border-radius: 8px;
  }

  body#index .sg-home-promotions > .banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

}

/* ==========================================
   SPORTGYM - STEP 8.5.2.17
   Ripristino immagini offerte speciali
   ========================================== */

@media (min-width: 992px) {

  /* Ripristina un'area immagine più ampia */
  body#index .sg-home-promotions .ps-specials
  .product-miniature__top {
    height: 180px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* Immagini ingrandite senza deformazioni */
  body#index .sg-home-promotions .ps-specials
  .product-miniature__top img {
    display: block;
    width: 100%;
    height: 170px;
    max-height: 170px;
    object-fit: contain;
  }

}

/* ==========================================
   SPORTGYM - STEP 8.5.3.2
   Titolo Più venduti
   ========================================== */

/* Posizione e contenitore centrale */
body#index .page-content--home >
.sportgym-htmlblock:has(.sg-home-bestsellers-heading) {
    grid-column: 1 / -1;
    order: 4;

    width: calc(100% - 24px);
    max-width: 100%;
    margin: 30px auto 0;
    box-sizing: border-box;
}

/* Il modulo segue il nuovo titolo */
body#index .page-content--home > .ps-bestsellers {
    order: 5;
}

/* Larghezze responsive */
@media (min-width: 576px) {
    body#index .page-content--home >
    .sportgym-htmlblock:has(.sg-home-bestsellers-heading) {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    body#index .page-content--home >
    .sportgym-htmlblock:has(.sg-home-bestsellers-heading) {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    body#index .page-content--home >
    .sportgym-htmlblock:has(.sg-home-bestsellers-heading) {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    body#index .page-content--home >
    .sportgym-htmlblock:has(.sg-home-bestsellers-heading) {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    body#index .page-content--home >
    .sportgym-htmlblock:has(.sg-home-bestsellers-heading) {
        max-width: 1320px;
    }
}

/* Tipografia */
body#index .sg-home-bestsellers-heading h2 {
    font-size: 24px;
    font-weight: 700;
    color: #263238;
    margin: 0 0 8px;
}

body#index .sg-home-bestsellers-heading p {
    font-size: 14px;
    color: #66717c;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   SPORTGYM - STEP 8.5.3.3
   Nasconde il titolo originale Più venduti
   ========================================== */

body#index .page-content--home
.ps-bestsellers .section-title {
    display: none;
}

/* ==========================================
   SPORTGYM - STEP 8.5.4.4
   Personalizzazione grafica newsletter
   ========================================== */

/* Contenitore newsletter */
#emailsubscription_anchor_displayFooterBefore {
    padding: 35px 0 !important;
    background: #f3f6f9;
}

/* Titolo newsletter */
#emailsubscription_anchor_displayFooterBefore
h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #263238;
}

/* Campo email */
#emailsubscription_anchor_displayFooterBefore
input[type="email"] {
    min-height: 44px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #dce3eb;
}

/* Pulsante iscrizione */
#emailsubscription_anchor_displayFooterBefore
button[type="submit"] {
    min-height: 44px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
}

/* Testo informativo */
#emailsubscription_anchor_displayFooterBefore
form p,
#emailsubscription_anchor_displayFooterBefore
form small {
    font-size: 12px;
    line-height: 1.5;
    color: #687583;
}

/* Smartphone */
@media (max-width: 767.98px) {

    #emailsubscription_anchor_displayFooterBefore {
        padding: 25px 0 !important;
    }

    #emailsubscription_anchor_displayFooterBefore h2 {
        font-size: 19px;
        margin-bottom: 15px;
    }

    #emailsubscription_anchor_displayFooterBefore
    input[type="email"] {
        font-size: 13px;
    }

    #emailsubscription_anchor_displayFooterBefore
    button[type="submit"] {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   SPORTGYM - STEP 10.5.6
   Correzione sovrapposizione menu account
   ========================================== */

/* Barra superiore con menu account */
@media (min-width: 768px) {
    .header-top {
        position: relative;
        z-index: 1300;
    }

    /* Header principale con logo e ricerca */
    .header-bottom {
        position: relative;
        z-index: 100;
    }
}
/* SPORTGYM — STEP 12.7.4
   Spaziatura recensioni Feedaty */

.sg-feedaty-reviews {
  margin-top: 24px;
  margin-bottom: 36px;
}

.sg-feedaty-reviews > :first-child {
  margin-top: 0;
}

.sg-feedaty-reviews > :last-child {
  margin-bottom: 0;
}


/* STEP 16.3 - Fascia servizi Sportgym */

.sg-home-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: calc(100% - 30px);
  max-width: 1320px;
  margin: 24px auto 32px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  box-sizing: border-box;
}

.sg-service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.sg-service-icon {
  flex: 0 0 42px;
  font-size: 34px;
  color: #222;
  line-height: 1;
}

.sg-service-content {
  flex: 1;
  min-width: 0;
}

.sg-service-content h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #1680c0;
  margin: 0 0 8px;
}

.sg-service-content p {
  font-size: 12px;
  line-height: 1.65;
  color: #777;
  margin: 0;
}

/* Tablet */
@media (max-width: 991px) {
  .sg-home-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

/* Smartphone */
@media (max-width: 575px) {
  .sg-home-services {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 16px;
    margin: 20px auto;
  }

  .sg-service-content h3 {
    font-size: 15px;
  }

  .sg-service-content p {
    font-size: 13px;
  }
}

/* ==========================================
   SPORTGYM - STEP 16.4
   Posizionamento fascia servizi homepage
   ========================================== */

/* Slider e banner iniziali */
body#index .page-content--home > .ps-imageslider,
body#index .page-content--home >
.sportgym-htmlblock:has(.sg-home-banner) {
  order: -2;
}

/* Fascia servizi subito dopo i banner */
body#index .page-content--home >
.sportgym-htmlblock:has(.sg-home-services) {
  order: -1;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

/* Mantiene la fascia nel contenitore centrale */
body#index .sg-home-services {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* STEP 16.5 - Icone SVG fascia servizi */

body#index .sg-service-icon svg {
  display: block;
  width: 38px;
  height: 38px;
  stroke: #252525;
}
