/* =========================================================
   PAGINA BRAND (manufacturer.tpl)
   ========================================================= */

/* Nasconde h1, short description e description default di PS */
#manufacturer h1,
#manufacturer #manufacturer-short_description,
#manufacturer #manufacturer-description {
  display: none;
}

/* =========================================================
   SEZIONE 1: Tre anime
   ========================================================= */

.mfr-brands {
  padding: 1.5rem 0 2rem;
}

.mfr-brands__intro {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.mfr-brands__title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--unnamed-color-3f3f3e);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.mfr-brands__subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--unnamed-color-3f3f3e);
  line-height: 1.7;
  margin: 0;
}

/* Griglia 3 colonne */
.mfr-brands__grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 2.5rem 0 0 0;
  padding: 0;
}

/* Card singola brand */
.mfr-brand-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Immagine con overlay logo */
.mfr-brand-card__visual {
  position: relative;
  overflow: hidden;
}

.mfr-brand-card__visual img {
  width: 100%;
  height: auto;
  display: block;
}

.mfr-brand-card__logo {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
}

.mfr-brand-card__logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contenuto sotto l'immagine */
.mfr-brand-card__body {
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  background-color: #fcf7f7;
}

.mfr-brand-card__body p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--unnamed-color-3f3f3e);
  line-height: 1.7;
  margin: 0;
}

/* Pulsanti CTA */
.mfr-brand-card__ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mfr-brand-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--unnamed-color-3f3f3e);
  background: transparent;
  color: var(--unnamed-color-3f3f3e);
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mfr-brand-btn:hover {
  background-color: var(--unnamed-color-3f3f3e);
  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   DESKTOP: annulla stili Swiper, mantiene il layout a 3 colonne
   ========================================================= */

@media (min-width: 992px) {
  .mfr-brands__grid {
    display: flex;
    gap: 1.5rem;
  }

  .mfr-brand-card {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* =========================================================
   MOBILE: scroll snap slider
   ========================================================= */

@media (max-width: 991px) {
  .mfr-brands__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 16px;
    padding: 0.5rem 0 1rem;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    margin-top: 1.5rem;
  }

  .mfr-brands__grid::-webkit-scrollbar {
    display: none;
  }

  .mfr-brand-card {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
    overflow: hidden;
  }

  .mfr-brand-card__body {
    width: 100%;
    box-sizing: border-box;
  }

  .mfr-brand-card__visual {
    height: 420px;
    overflow: hidden;
  }

  .mfr-brand-card__visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mfr-brands__title {
    font-size: 1.125rem;
  }
}

@media (max-width: 575px) {
  .mfr-brands {
    padding: 2rem 0 1rem;
  }

  .mfr-brand-card__body {
    padding: 1.25rem 1rem 1.5rem;
  }
}

/* Slider brand con frecce */
.mfr-brands__slider-outer {
  position: relative;
}

.mfr-brands__arrow {
  display: none;
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--unnamed-color-3f3f3e);
  cursor: pointer;
  padding: 0 0.75rem;
  align-self: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.mfr-brands__arrow:hover { opacity: 1; }
.mfr-brands__arrow:focus { outline: none; }
.mfr-brands__arrow:focus-visible { outline: 2px solid var(--unnamed-color-3f3f3e); outline-offset: 2px; }

@media (min-width: 992px) {
  .mfr-brands__arrow { display: none !important; }
}

@media (max-width: 991px) {
  .mfr-brands__slider-outer {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    width: 100%;
  }
}

/* Mobile: immagini bottom donna/uomo impilate */
@media (max-width: 991px) {
  .mfr-as__bottom {
    flex-direction: column;
  }
}

/* =========================================================
   SEZIONE 2: Alexander Smith
   ========================================================= */

.mfr-as {
  padding: 3rem 0;
  border-bottom: 2.5px solid var(--unnamed-color-3f3f3e);
}

.mfr-brand-section--last {
  border-bottom: none;
}

/* Titolo Alexander London: ALEXANDER grande + LONDON sotto più piccolo */
.mfr-as__title--al {
  line-height: 1.1;
}

.mfr-as__title--al span {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.3em;
  font-weight: 600;
}

/* Header: testo + immagini editoriali */
.mfr-as__header-wrap {
  background: #fcf7f7;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
}

.mfr-as__header {
  display: flex;
  gap: 4rem;
  align-items: stretch;
}

.mfr-as__info {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mfr-as__label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #666;
  margin-bottom: 0.4rem;
}

.mfr-as__title {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--unnamed-color-3f3f3e);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.mfr-as__logo-img {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.mfr-as__title sup {
  font-size: 0.5em;
  vertical-align: super;
}

.mfr-as__desc p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--unnamed-color-3f3f3e);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.mfr-as__desc p:last-child {
  margin-bottom: 0;
}

/* Immagine editoriale (destra) */
.mfr-as__visuals {
  flex: 1;
  overflow: hidden;
}

.mfr-as__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

/* Tabs donna/uomo */
.mfr-as__products-section {
  padding: 2rem 4rem;
  margin-top: 0;
}

.mfr-as__tabs-row {
  margin-bottom: 2rem;
}

.mfr-as__tabs {
  display: inline-flex;
  border: 1px solid #666;
  gap: 0;
  border-radius: 2rem;
  padding: 0.5rem 1.75rem;
}

.mfr-as__tab {
  background: none;
  border: none;
  padding: 0 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.mfr-as__tab.is-active {
  color: var(--unnamed-color-3f3f3e);
  border-bottom-color: var(--unnamed-color-3f3f3e);
}

/* Carousel prodotti */
.mfr-as__carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.mfr-as__carousel.is-hidden {
  height: 0;
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

/* Track scorrevole */
.as-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 0.5rem 0 1rem;
}

.as-track::-webkit-scrollbar {
  display: none;
}

/* Card prodotto */
.mfr-as-product-card {
  flex: 0 0 calc(25% - 12px);
  scroll-snap-align: start;
}

.mfr-as-product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mfr-as-product-card__image {
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
}

.mfr-as-product-card__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.mfr-as-product-card:hover .mfr-as-product-card__image img {
  transform: scale(1.03);
}

.mfr-as-product-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--unnamed-color-af8065);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
}

.mfr-as-product-card__info {
  padding: 0.75rem 0 0.5rem;
}

.mfr-as-product-card__name {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--unnamed-color-3f3f3e);
  line-height: 1.4;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mfr-as-product-card__price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--unnamed-color-3f3f3e);
  letter-spacing: 0.05em;
  margin: 0;
}

/* Frecce prev/next */
.as-arrow {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--unnamed-color-3f3f3e);
  cursor: pointer;
  padding: 0 0.75rem;
  align-self: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.as-arrow:hover {
  opacity: 1;
}

.as-arrow:focus {
  outline: none;
}

.as-arrow:focus-visible {
  outline: 2px solid var(--unnamed-color-3f3f3e);
  outline-offset: 2px;
}

/* Pulsante Vedi tutto */
.mfr-as__vedi-tutto {
  text-align: center;
  margin-top: 2.5rem;
}

.mfr-as__btn-all {
  display: inline-block;
  padding: 0.6rem 2.5rem;
  border: 1px solid var(--unnamed-color-3f3f3e);
  background: transparent;
  color: var(--unnamed-color-3f3f3e);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.mfr-as__btn-all:hover {
  background: var(--unnamed-color-3f3f3e);
  color: #fff;
  text-decoration: none;
}

/* Immagini fondo Donna/Uomo */
.mfr-as__bottom {
  display: flex;
  margin-top: 4rem;
}

.mfr-as__bottom-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
}

.mfr-as__bottom-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.mfr-as__bottom-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.mfr-as__bottom-item:hover img {
  transform: scale(1.03);
}

.mfr-as__bottom-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 2rem;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

/* =========================================================
   SEZIONE 2 RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  .mfr-as {
    padding: 3rem 0;
  }

  .mfr-as__header {
    flex-direction: column;
    gap: 2rem;
  }

  .mfr-as__info {
    flex: none;
  }

  .mfr-as__products-section {
    padding: 2rem 0 3rem;
    margin-top: 2rem;
  }

  .mfr-as-product-card {
    flex: 0 0 72vw;
  }

  .mfr-as__bottom {
    flex-direction: column;
  }

  .mfr-as__bottom-item img {
    height: 320px;
  }

  .mfr-as__visual-img {
    height: auto;
    object-fit: unset;
    min-height: 0;
  }
}
