/* America homepage — marketplace layout */

#wrap.o_america_home {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: #f5f5f5;
}

.am-mp {
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  color: #191919;
  overflow-x: hidden;
}

.am-mp a {
  text-decoration: none;
  color: inherit;
}

.am-mp a:hover {
  text-decoration: underline;
  color: #0654ba;
}

/* —— Promo banner —— */
.am-promo {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.am-promo__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.am-promo__top {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 0.85rem;
  align-items: center;
}

@media (max-width: 900px) {
  .am-promo__top {
    grid-template-columns: 1fr;
  }
}

.am-promo__main {
  background: linear-gradient(145deg, #f8fbff 0%, #ffffff 60%);
  border: 1px solid #d0e0f5;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 0 rgba(6, 84, 186, 0.06);
}

.am-promo__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0654ba;
}

.am-promo__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #191919;
}

.am-promo__text {
  margin: 0 0 0.75rem;
  max-width: 46ch;
  color: #555;
  font-size: 0.88rem;
  line-height: 1.4;
}

.am-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.95rem;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.am-btn--primary {
  background: #0654ba;
  color: #fff !important;
  text-decoration: none !important;
}

.am-btn--primary:hover {
  background: #00489d;
  color: #fff !important;
  text-decoration: none !important;
}

.am-btn--link {
  color: #0654ba !important;
  padding-left: 0;
  padding-right: 0;
}

.am-promo__aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (max-width: 700px) {
  .am-promo__aside {
    grid-template-columns: 1fr;
  }
}

.am-promo__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  max-height: 168px;
}

.am-promo__visual-item {
  display: block;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.am-promo__visual-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(25, 25, 25, 0.07);
  text-decoration: none !important;
}

.am-promo__visual-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 0.25rem;
}

.am-promo__deal {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none !important;
}

.am-promo__deal:hover {
  border-color: #0654ba;
  text-decoration: none !important;
}

.am-promo__deal-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #767676;
}

.am-promo__deal strong {
  font-size: 0.95rem;
  color: #191919;
}

/* —— Category rail —— */
.am-rail {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.am-rail__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.am-rail__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 72px;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  color: #191919;
}

.am-rail__item:hover {
  background: #f2f2f2;
  text-decoration: none !important;
  color: #191919;
}

.am-rail__item--all .am-rail__icon {
  background: #0654ba;
  color: #fff;
}

.am-rail__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.1rem;
  color: #555;
}

.am-rail__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.am-rail__label {
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  max-width: 80px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Color promo banners —— */
.am-banners {
  padding: 1.25rem 0 0.5rem;
}

.am-banners__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 800px) {
  .am-banners__inner {
    grid-template-columns: 1fr;
  }
}

.am-banner {
  display: block;
  min-height: 220px;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.am-banner:hover {
  text-decoration: none !important;
}

.am-banner:hover .am-banner__bg {
  transform: scale(1.03);
}

.am-banner--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.am-banner--blue::before {
  background: linear-gradient(115deg, rgba(6, 84, 186, 0.88) 0%, rgba(25, 25, 112, 0.82) 100%);
}

.am-banner--teal::before {
  background: linear-gradient(115deg, rgba(10, 110, 92, 0.86) 0%, rgba(7, 59, 50, 0.9) 100%);
}

.am-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.35s ease;
}

.am-banner__copy {
  position: relative;
  z-index: 2;
}

.am-banner--blue,
.am-banner--teal {
  color: #fff;
}

.am-banner--blue:not(:has(.am-banner__bg)) {
  background: linear-gradient(115deg, #3665f3 0%, #191970 100%);
  color: #fff;
}

.am-banner--teal:not(:has(.am-banner__bg)) {
  background: linear-gradient(115deg, #2ac4a4 0%, #0a6e5c 100%);
  color: #073b32;
}

.am-banner--teal:not(:has(.am-banner__bg)) .am-banner__cta {
  background: #073b32;
  color: #fff !important;
}

.am-banner:hover:not(:has(.am-banner__bg)) {
  filter: brightness(0.97);
}

.am-banner__kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.am-banner__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 18ch;
}

.am-banner__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 32ch;
  opacity: 0.92;
}

.am-banner__cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #191919 !important;
  font-size: 0.85rem;
  font-weight: 700;
}

/* —— Horizontal item carousel —— */
.am-carousel {
  padding: 1.25rem 0 0.5rem;
}

.am-carousel__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 1rem;
}

.am-carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.am-carousel__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.am-carousel__title a {
  color: #191919;
  text-decoration: none !important;
}

.am-carousel__title a:hover {
  color: #0654ba;
  text-decoration: underline !important;
}

.am-carousel__sub {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #767676;
}

.am-carousel__see-all {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0654ba !important;
  text-decoration: underline !important;
}

.am-carousel__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.am-item {
  flex: 0 0 168px;
  width: 168px;
  scroll-snap-align: start;
  text-decoration: none !important;
  color: #191919;
}

.am-item:hover {
  text-decoration: none !important;
}

.am-item:hover .am-item__name {
  color: #0654ba;
  text-decoration: underline;
}

.am-item__media {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.am-item:hover .am-item__media {
  border-color: #c5d9f2;
  box-shadow: 0 6px 16px rgba(6, 84, 186, 0.08);
}

.am-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.am-item__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.3;
  min-height: 2.2em;
}

.am-item__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #767676;
}

/* —— Loyalty / promo strip —— */
.am-strip {
  padding: 1.25rem 0 0.5rem;
}

.am-strip__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 1.15rem 1.35rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.am-strip__inner--brand {
  background: linear-gradient(100deg, #0654ba 0%, #00489d 100%);
  color: #f3f8ff;
}

.am-strip__title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.am-strip__text {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
  max-width: 48ch;
}

.am-strip__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  color: #191919 !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.am-strip__cta:hover {
  text-decoration: none !important;
  filter: brightness(0.96);
}

/* —— Destinations (brands / categories) —— */
.am-dest {
  padding: 1.25rem 0 0.5rem;
}

.am-dest__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 1rem;
}

.am-dest__title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.am-dest__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

/* Brand marquee (stesso pattern di Composites) */
.am-dest--brands .am-dest__wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.am-dest--brands .am-dest__track {
  overflow: visible;
  width: max-content;
  padding-bottom: 0;
  animation: am-marquee 40s linear infinite;
}

.am-dest--brands .am-dest__track:hover {
  animation-play-state: paused;
}

@keyframes am-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.am-dest__card {
  flex: 0 0 120px;
  width: 120px;
  text-align: left;
  text-decoration: none !important;
  color: #191919;
}

.am-dest__card:hover {
  text-decoration: none !important;
}

.am-dest__card:hover .am-dest__label {
  color: #0654ba;
  text-decoration: underline;
}

.am-dest__media {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.45rem;
  padding: 0.65rem;
}

.am-dest__media--cover {
  padding: 0;
}

.am-dest__media--cover img {
  object-fit: cover;
}

.am-dest__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.am-dest__fallback {
  font-size: 1.5rem;
  font-weight: 700;
  color: #767676;
}

.am-dest__label {
  font-size: 0.85rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.am-dest--cats .am-dest__card {
  flex-basis: 140px;
  width: 140px;
}

/* —— Event row: promo + scroller —— */
.am-event {
  padding: 1.25rem 0 0.5rem;
}

.am-event__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 800px) {
  .am-event__inner {
    grid-template-columns: 1fr;
  }
}

.am-event__promo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: #e8edf5;
  color: #191919;
  text-decoration: none !important;
  min-height: 240px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.am-event__promo--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.08) 0%, rgba(25, 25, 25, 0.72) 100%);
  pointer-events: none;
}

.am-event__promo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.am-event__promo-copy {
  position: relative;
  z-index: 2;
}

.am-event__promo--image {
  color: #fff;
}

.am-event__promo--image .am-event__kicker {
  color: #dbeafe;
}

.am-event__promo--image .am-event__text {
  color: rgba(255, 255, 255, 0.9);
}

.am-event__promo--image .am-event__cta {
  background: #fff;
  color: #191919 !important;
}

.am-event__promo:hover {
  text-decoration: none !important;
  filter: brightness(0.98);
}

.am-event__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0654ba;
}

.am-event__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.am-event__text {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.am-event__cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  background: #191919;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
}

.am-event__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  align-items: flex-start;
}

/* —— Large hero banner —— */
.am-hero-banner {
  padding: 1.25rem 0 0.5rem;
}

.am-hero-banner__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  border-radius: 12px;
  min-height: 200px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 900px) {
  .am-hero-banner__inner {
    grid-template-columns: 1fr;
  }
}

.am-hero-banner__inner--neutral {
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 0 rgba(25, 25, 25, 0.04);
}

.am-hero-banner__mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

@media (max-width: 900px) {
  .am-hero-banner__mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
}

.am-hero-banner__mosaic-item {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  text-decoration: none !important;
}

.am-hero-banner__mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
  background: #fff;
}

.am-hero-banner__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  max-width: 22ch;
  line-height: 1.2;
}

.am-hero-banner__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #555;
  max-width: 40ch;
}

/* —— Full-bleed customer support —— */
.am-cs {
  margin-top: 1.25rem;
  background: #191919;
  color: #fff;
}

.am-cs__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.am-cs__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

.am-cs__text {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: #c8c8c8;
  max-width: 42ch;
}

.am-cs__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  color: #191919 !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.am-cs__cta:hover {
  text-decoration: none !important;
  filter: brightness(0.95);
}
