/* Card link base style */
.card-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 1.08em;
  display: inline-block;
  margin-top: 12px;
}

/* Feature band: keep "Learn more" consistent with site links, just refine hover */
.feature-band .card-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.feature-band .card-link:hover {
  text-decoration-color: transparent;
}

.feature-band .card-link:focus-visible {
  outline: 3px solid rgba(24, 99, 255, 0.35);
  outline-offset: 3px;
}
.card-link-red {
  color: #d32f2f !important;
}
.card-link-blue {
  color: #214ecd !important;
}
.card-link-cyan {
  color: #006b76 !important;
}

:root {
  --blue-1: #214ecd;
  --blue-2: #163caa;
  --accent: #1863ff;
  --muted: #666666;
  --container: 1536px;
  --header-height: 64px;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #163caa;
  border-radius: 0.25rem;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
    font-family: var(--font-primary);
    margin: 0;
    color: #111;
}
  /* ================== HERO SECTION ================== */

.hero {
    padding: 0;
    margin-bottom: 150px;
    background: #fff;
    position: relative;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
  }

  .hero h1 {
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blue-1);
  }

  .hero p {
    font-size: 1.1rem;
    color: var(--secondary-grey);

    margin: 0 auto;
  }

  @media(min-width: 768px) {
    .hero h1 {
      font-size: 4rem;
    }

    .hero p {
      font-size: 1.25rem;
    }
  }


.hero-slider {
  --hero-media-width: 100%;
}

.hero-slider .hero-layout {
  position: relative;
  height: 100%;
}

.hero-slider .hero-media-area {
  position: absolute;
  inset: 0;
  width: var(--hero-media-width);
  z-index: 0;
}

.hero-slider .hero-media-slide {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #fff;
}

.hero-slider .hero-media-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slider .hero-media-slide--software img {
  width: 80%;
  height: 80%;
  margin: auto 0 auto auto;
  object-fit: contain;
  object-position: right center;
  padding-right: clamp(64px, 9vw, 144px);
}

.hero-slider .hero-text {
  position: relative;
  z-index: 1;
  height: 100%;
}

.hero-slider .hero-swiper {
  height: 100%;
}

.hero-slider .swiper-slide {
  height: 100%;
}

.hero-slider .hero-slide {
  position: relative;
  height: 100%;
  background: #fff;
}

.hero-slider .hero-slide-inner {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-right: 0;
}

.hero-slider .hero-copy {
  max-width: 720px;
  margin-block: 72px;
  padding: 0;
}

.hero-slider .hero-kicker {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 18px;
  color: #006b76;
}

.hero-slider .hero-kicker-strong {
  font-weight: 800;
}

.hero-slider .hero-kicker-light {
  font-weight: 500;
  color: #006b76;
}

.hero-slider .hero-title {
  font-size: 4rem;
  margin: 0;
  font-weight: 900;
  color: var(--blue-1);
  text-wrap: balance;
}

.hero-slider .hero-title-line {
  display: block;
}

/* Page titles (match homepage hero H1 style) */
.page-hero-title {
  font-size: 4rem;
  margin: 150px 0 0 !important;
  font-weight: 900;
  color: var(--blue-1);
  text-wrap: balance;
}

.page-hero-subtitle {
  margin: 18px 0 150px;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--secondary-grey);
}

@media (max-width: 768px) {
  .page-hero-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    margin-top: 96px;
  }

  .page-hero-subtitle {
    margin-bottom: 96px;
  }
}

@media (max-width: 768px) {
  .hero-slider .hero-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }
}

@media (min-width: 1200px) {
  .hero-slider .hero-title-line:first-child {
    white-space: nowrap;
  }
}

.hero-slider .hero-subtitle {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--secondary-grey);
}

.hero-slider .hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-slider .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: 2px solid transparent;
  transition: transform 120ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  will-change: transform;
}

.hero-slider .hero-cta--primary {
  background: var(--blue-1);
  border-color: var(--blue-1);
  color: #fff;
}

.hero-slider .hero-cta--outline {
  background: transparent;
  border-color: var(--blue-1);
  color: var(--blue-1);
}

.hero-slider .hero-cta--primary:hover {
  background-color: #1a3fa8;
  border-color: #1a3fa8;
}

.hero-slider .hero-cta--outline:hover {
  background-color: rgba(33, 78, 205, 0.12);
  border-color: rgba(33, 78, 205, 0.75);
  color: var(--blue-1);
}

.hero-slider .hero-cta:active {
  transform: translateY(0);
}

.hero-slider .hero-cta:focus-visible {
  outline: 3px solid rgba(24, 99, 255, 0.45);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .hero-slider .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-slider .hero-cta {
    width: 100%;
    max-width: 520px;
    font-size: 14px;
    padding: 10px 16px;
    min-height: 40px;
    letter-spacing: 0.05em;
  }
}

.hero-slider .hero-pagination {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(520px, 92vw);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 15;
  pointer-events: auto;
}

.hero-slider .hero-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  opacity: 1;
  background: rgba(0, 0, 0, 0.14);
  transition: background 200ms ease, transform 200ms ease;
}

.hero-slider .hero-pagination .swiper-pagination-bullet-active {
  background: var(--blue-1);
  transform: scale(1.12);
}

@media (max-width: 1024px) {
  .hero-slider {
    height: auto;
    min-height: calc(70vh - var(--header-height));
  }

  .hero-slider .hero-layout {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-slider .hero-media-area {
    position: relative;
    inset: auto;
    width: 100%;
    order: 2;
  }

  .hero-slider .hero-slide-inner {
    padding-right: 0;
  }

  .hero-slider .hero-media-slide {
    height: auto;
    padding: 12px 16px 56px;
  }

  .hero-slider .hero-media-slide img {
    max-height: 52vh;
    object-position: center;
  }

  .hero-slider .hero-slide-inner {
    padding-top: 44px;
    padding-bottom: 24px;
    align-items: flex-start;
  }

  .hero-slider .hero-copy {
    margin-block: 0;
    padding: 0;
    max-width: 100%;
  }

}
.hero-content {
  color: #fff;
  width: 100%;
}
.hero h1 {
  font-size: 5rem;
  line-height: 1.02;
  margin: 0;
  font-weight: 800;
  text-transform: none;
}
.hero .accent {
  color: var(--blue-1);
}
.lead {
  opacity: 0.95;
  margin-top: 14px;
  font-size: 18px;
}
p.lead{color: white;}

.feature-h {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 60px;
  color: var(--blue-1);
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 28px;
  height: 48px;
  border: 2px solid #214ecd;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  opacity: 0.95;
}
.scroll-indicator span {
  display: block;
  width: 6px;
  height: 6px;
  background: #214ecd;
  border-radius: 50%;
  animation: scroll-bounce 1.5s infinite;
}
@keyframes scroll-bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(25px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ================== FEATURE BAND ================== */

.feature-band {
  --site-section-gap: 150px;
  --site-section-gap-compact: 96px;
  position: relative;
  width: 100%;
  padding: 0 0 var(--site-section-gap-compact);
  margin-bottom: 96px;
  background: #f7f9fc;
}

.feature-band::before,
.feature-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 72px;
  pointer-events: none;
}

.feature-band::before {
  top: -72px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #f7f9fc 100%);
}

.feature-band::after {
  bottom: -72px;
  background: linear-gradient(to bottom, #f7f9fc 0%, rgba(255, 255, 255, 0) 100%);
}

.feature-band > .container {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #214ecd;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #214ecd;
}

.feature-band__header {
  margin-bottom: 34px;
  max-width: 980px;
}

.feature-band__title {
  margin: 0;
  color: #121212;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(2rem, 3vw, 2.55rem);
}

.feature-band .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0;
  align-items: stretch;
}

.feature-band .card-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 0;
  box-shadow: 0 10px 32px rgba(10, 22, 48, 0.06);
  padding: 1.5rem;
  margin: 0;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  text-decoration: none;
}

.feature-band .card-band:hover[data-accent="blue"],
.feature-band .card-band:focus-visible[data-accent="blue"] {
  border-color: #214ecd;
}

.feature-band .card-band:hover[data-accent="red"],
.feature-band .card-band:focus-visible[data-accent="red"] {
  border-color: #d32f2f;
}

.feature-band .card-band:hover[data-accent="cyan"],
.feature-band .card-band:focus-visible[data-accent="cyan"] {
  border-color: #163caa;
}

.feature-band .card-band:hover {
  box-shadow: 0 20px 44px rgba(10, 22, 48, 0.12);
  transform: translateY(-6px);
}

.feature-band .card-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.feature-band .card-title--blue {
  color: #214ecd;
}

.feature-band .card-title--red {
  color: #d32f2f;
}

.feature-band .card-title--cyan {
  color: #006b76;
}

.home-page .feature-band .card-title,
.home-page .sub-title {
  color: #000;
}

.home-page .section-label {
  color: var(--blue-1);
  font-weight: 300;
}

.home-page .section-label::before {
  background: var(--blue-1);
}

.home-section-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 10px 22px;
  border: 2px solid var(--blue-1);
  color: var(--blue-1);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.home-section-cta:hover,
.home-section-cta:focus {
  background-color: var(--blue-1);
  border-color: var(--blue-1);
  color: #fff;
}

.home-section-cta--primary {
  background: var(--blue-1);
  border-color: var(--blue-1);
  color: #fff;
}

.home-section-cta--primary:hover,
.home-section-cta--primary:focus {
  background-color: #1a3fa8;
  border-color: #1a3fa8;
  color: #fff;
}

.feature-band .card-desc {
  font-size: 1rem;
  color: #44506b;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-band .card-band .card-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

.feature-band .card-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.feature-band .card-icon {
  width: 100%;
  height: 224px;
  margin: 0 0 1.35rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: #fff;
}

.feature-band .card-icon img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

@media (max-width: 1024px) {
  .feature-band {
    padding: 96px 0 72px;
  }

  .feature-band .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .feature-band {
    padding: 72px 0 56px;
  }

  .feature-band__title {
    font-size: clamp(2rem, 11vw, 2.5rem);
  }

  .feature-band .card-band {
    padding: 1.25rem;
  }

  .feature-band .card-icon {
    height: 200px;
  }
}

  /* ================== ABOUT SECTION ================== */

.about {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 70px 0;
}
.about-left {
  flex: 1;
}
.about-left h2 {
  font-size: 28px;
  margin: 0;
}
.about-left .muted {
  color: var(--blue-1);
  font-weight: 700;
  margin-right: 6px;
}
.about-right img {
  width: 100%;
  height: auto;
}

  /* ================== HISTORY SECTION ================== */

.history {
  position: relative;
  padding: 90px 0;
}
.history-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.history-left {
  max-width: 560px;
}
.history-left .overline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.history-left .number {
  font-size: 13px;
  color: #222;
}
.history-left h2 {
  font-size: 64px;
  line-height: 1.02;
  margin: 0;
  font-weight: 800;
}
.history-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  display: flex;
  align-items: flex-start;
}
.history-right img {
  width: 100%;
  height: auto;
  display: block;
}


.leone-history {
  background-color: #fff;
  overflow: hidden;
  font-family: var(--font-primary);
  margin-bottom: 200px;
  /* Keep history layout aligned with the 3 feature cards grid */
  --card-gap: 100px;
}

.history-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  box-sizing: border-box;
  column-gap: var(--card-gap);
  padding-left: max(var(--page-gutter), env(safe-area-inset-left));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right));
}

.row-top {
  margin-bottom: 150px;
}

.home-page .row-top {
  margin-bottom: 80px;
}

.history-text-col {
  grid-column: 1 / 2;
}

.align-right {
  text-align: left;
}

.history-text-col.align-right {
  grid-column: 3 / 4;
}

.marker {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.marker .num {
  font-size: 12px;
  font-weight: 700;
  color: #333;
}
.marker .line {
  height: 1px;
  width: 60px;
  background-color: #333;
  display: inline-block;
}

.align-right .marker {
  justify-content: flex-end;
}

.main-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.02;
  color: #000;
  letter-spacing: -1.2px;
  margin: 0;
  width: 467px;
}

.main-title .title-line {
  display: block;
}

.content-wrapper {
  padding: 0;
}

@media (min-width: 1025px) {
  .row-top .history-text-col .content-wrapper {
    padding-left: var(--page-gutter);
    padding-right: 0;
  }

  .row-bottom .history-text-col.align-right .content-wrapper {
    padding-right: var(--page-gutter);
    padding-left: 0;
  }
}

/* Accent only the phrase wrapped in .accent inside the title */
.main-title .title-line .accent {
  color: var(--blue-1);
}

.sub-title {
  font-size: 28px;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
  margin-bottom: 20px;
}

.description {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.history-img-col img,
.history-img-col video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.row-top .history-img-col {
  /* Width from the start of the 2nd card to the end of the 3rd */
  grid-column: 2 / 4;
  position: relative;
}

/* Overlay for the first history image to match Hero style */
.row-top .history-img-col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 71, 0.2), rgba(6, 22, 71, 0.4));
  pointer-events: none;
  z-index: 1;
}


.row-bottom .small-img {
  /* 2-card width image inside container */
  grid-column: 1 / 3;
  position: relative;
}

.row-bottom .small-img img,
.row-bottom .small-img video {
  height: 400px;
}

.home-page .row-bottom .small-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 1;
}

  /* ================== GALLERY SECTION ================== */

.gallery {
  padding: 40px 0 60px;
  position: relative;
  margin-bottom: 150px;
}
/* allow wider gallery than the default container width */
.gallery.container,
section.gallery.container {
  max-width: 1280px !important;
}
.gallery .tile img {
  width: 100%;
  display: block;
}

/* Swiper specific adjustments */
.gallery .swiper {
  width: 100%;
  height: 560px;
}
.gallery .swiper-wrapper {
  width: 100%;
  height: 100%;
}
.gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery .swiper-slide {
  position: relative;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(6, 22, 71, 0.9) 0%, rgba(6, 22, 71, 0.7) 100%);
  padding: 30px;
  z-index: 10;
  transform: translateY(0);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: auto;
}

.gallery .swiper-slide:hover .slide-content {
  background: linear-gradient(to top, rgba(6, 22, 71, 0.95) 0%, rgba(6, 22, 71, 0.85) 100%);
}

.slide-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-slide {
  display: inline-block;
  padding: 10px 24px;
  background-color: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-slide:hover {
  background-color: #fff;
  color: var(--blue-1);
}

/* gallery header / controls */
.gallery .gallery-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  margin-top: 150px;
}
.gallery .gallery-intro h2 {
  margin: 0 0 8px 0;
  color: var(--blue-1);
  font-size: 28px;
}
.gallery .gallery-intro p {
  margin: 0;
  max-width: 720px;
  color: #333;
}
.gallery .gallery-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  position: absolute;
  right: 20px;
  top: calc(50% + 40px);
  transform: translateY(-50%);
  justify-content: flex-end;
  z-index: 20;
}

/* put both nav buttons together on the right */
.gallery .swiper-button-prev,
.gallery .swiper-button-next {
  position: relative;
  transform: none;
  z-index: 21;
}

/* ensure both buttons are always visible (force fallback if Swiper icons missing) */
.gallery .swiper-button-prev,
.gallery .swiper-button-next {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.gallery .swiper-button-prev::after,
.gallery .swiper-button-next::after {
  color: var(--blue-1);
}
/* fallback glyphs if Swiper doesn't inject icons */
.gallery .swiper-button-prev svg,
.gallery .swiper-button-next svg {
  display: none !important;
}

/* square nav buttons (reduced size) */
.gallery .swiper-button-prev,
.gallery .swiper-button-next,
.gallery .gallery-nav-prev,
.gallery .gallery-nav-next {
  width: 35px;
  height: 35px;
  border: 1px solid var(--blue-1);
  color: var(--blue-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  padding: 0;
  margin-right: 15px;
}

/* SVG chevrons inside the squares (smaller) */
.gallery .swiper-button-prev::after,
.gallery .swiper-button-next::after {
  content: "";
  z-index: 0;
  width: 18px;
  height: 18px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
.gallery .swiper-button-next::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23163378' stroke-width='2' fill='none' stroke-linecap='square' stroke-linejoin='miter'><polyline points='9 6 16 12 9 18'/></svg>");
}
.gallery .swiper-button-prev::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23163378' stroke-width='2' fill='none' stroke-linecap='square' stroke-linejoin='miter'><polyline points='15 6 8 12 15 18'/></svg>");
}
.gallery .swiper-wrapper {
  display: flex;
  align-items: stretch;
}
.gallery .swiper-slide {
  /* ensure slides don't shrink unexpectedly */
  flex-shrink: 0;
}


/* card visual polish */
.gallery .swiper-slide img {
  box-shadow: 0 10px 30px rgba(6,22,71,0.08);
}

.gallery .swiper {
  box-sizing: border-box;
}

.gallery .gallery-controls {
  z-index: 20;
}

/* pagination dot style */
.gallery .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0,0,0,0.15);
  opacity: 1;
}
.gallery .swiper-pagination-bullet-active {
  background: var(--accent);
}
.gallery .swiper-button-prev::after,
.gallery .swiper-button-next::after {
  font-size: 18px;
  color: var(--blue-1);
}

/* ensure prev/next arrows are correct direction */
/* use Swiper's built-in icons (no forced content) */


.tile.small {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  padding: 30px;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 30px 0;
}
.mini-item img {
  width: 100%;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}


  /* ================== CALLOUT SECTION ================== */

.callout h2{
  color: white !important;
}

.callout {
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  color: #fff;
  padding: 60px 0;
  margin-top: 150px;
}
.callout .btn {
  background: #fff;
  color: var(--blue-1);
  border: none;
  padding: 10px 16px;
}

  /* ================== CASES SECTION ================== */

.cases {
  padding: 40px 0;
}
section.cases.container{
  margin-top: 150px;
  margin-bottom: 150px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.case {
  position: relative;
  overflow: hidden;
}
.case img {
  width: 100%;
  display: block;
}
.case span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 8px;
  font-size: 13px;
}


/* ==================== CASE STUDIES (Bento Grid) ==================== */

.cases {
  padding: 60px 0;
  font-family: var(--font-primary);
}

.cases .section-title {
  color: var(--blue-1); /* Dark Blue similar to screenshot title */
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two main columns: Left Large | Right Complex */
  gap: 20px;
  width: 100%;
  height: 600px; /* Fixed height container to force aspect ratios */
}

/* Common Card Styles */
.bento-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #f0f0f0;
}

.bento-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.bento-item:hover .bento-image {
  transform: scale(1.05); /* Zoom on hover */
}

/* Overlay Gradient & Content Positioning */
.bento-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,0.1) 50%, 
    rgba(0,0,0,0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

/* Category Tag (Top Left) */
.bento-cat {
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Bottom Text Area */
.bento-details {
  color: #fff;
}

.bento-date {
  color: var(--accent); /* Light Blue accent */
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  text-transform: lowercase; /* as per screenshot "orari e date" */
}

.bento-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.bento-link {
  display: inline-block;
  color: #214ecd;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-top: 12px;
  opacity: 0; 
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* Show link on hover (Large item specific usually, but good for all) */
.bento-item:hover .bento-link {
  opacity: 1;
  transform: translateY(0);
}


/* --- Grid Layout Specifics --- */

/* Left Column: Huge Item */
.bento-large {
  grid-column: 1 / 2;
  height: 100%;
}
/* Font size adjustment for large card */
.bento-large .bento-title {
  font-size: 36px;
}

/* Right Column: Nested Grid */
.bento-right-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 100%;
}

.bento-small .bento-title {
  font-size: 24px;
}

/* Wide Item (Bottom Right) */
.bento-wide {
  grid-column: 1 / -1; /* Span full width of right column */
  /* This item is in the bottom row automatically by grid flow */
}

/* =====================================================
   Leone Italia visual alignment
   Shared language only: America content and destinations remain unchanged.
===================================================== */

body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0;
}

.hero-slider .hero-title,
.page-hero-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
}

.hero-slider .hero-subtitle,
.hero-slider .hero-description {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.hero-slider .hero-cta,
.home-section-cta {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 3px;
  font-size: var(--fs-button);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-band {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 38%, #f7f9fc 100%);
}

.feature-band__header {
  max-width: 980px;
  margin-bottom: 34px;
}

.feature-band__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  color: #121212;
}

.feature-band .cards {
  gap: 2rem;
}

.feature-band .card-band {
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 3px;
  box-shadow: 0 10px 32px rgba(10, 22, 48, 0.06);
  padding: 1.5rem;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.feature-band .card-band:hover {
  box-shadow: 0 20px 44px rgba(10, 22, 48, 0.12);
  transform: translateY(-6px);
}

.feature-band .card-title {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  margin-bottom: 0.85rem;
}

.feature-band .card-desc {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #44506b;
}

.feature-band .card-icon {
  height: 224px;
  margin-bottom: 1.35rem;
  border-radius: 3px;
}

.leone-history {
  --card-gap: 100px;
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.leone-history .sub-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
}

.leone-history p,
.leone-history .description {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

@media (max-width: 900px) {
  :root {
    --fs-h1: clamp(2.75rem, 5vw, 4.25rem);
    --fs-h2: clamp(2rem, 3.5vw, 2.375rem);
    --fs-h3: clamp(1.375rem, 2.5vw, 1.5rem);
    --fs-h4: clamp(1.125rem, 2vw, 1.25rem);
  }
}

/* Shared component radius: Leone Italia uses a precise 3px corner treatment. */
:where(
  main img,
  main video,
  .card,
  [class*="card"],
  .prod-card,
  [class*="product-card"],
  [class*="menu"],
  [class*="panel"],
  .btn,
  .cta,
  [class*="cta"],
  .history-cta,
  button,
  input,
  select,
  textarea
) {
  border-radius: 3px !important;
}

/* Keep intentional circular and pill controls circular. */
.account-avatar,
.account-icon,
.user-avatar,
.header-cart-badge,
[class*="avatar"] {
  border-radius: 50% !important;
}

.header-cart-badge,
[class*="badge"] {
  border-radius: 999px !important;
}

/* Media/text splits follow the Italian 35/65 editorial proportion. */
.leone-history .history-row {
  grid-template-columns: minmax(300px, 7fr) minmax(560px, 13fr);
  column-gap: clamp(1rem, 2vw, 2rem);
}

.leone-history .history-text-col {
  grid-column: 1 / 2;
}

.leone-history .history-img-col,
.leone-history .row-top .history-img-col {
  grid-column: 2 / 3;
  position: relative;
}

.leone-history .row-bottom {
  grid-template-columns: minmax(560px, 13fr) minmax(300px, 7fr);
}

.leone-history .row-bottom .history-img-col {
  grid-column: 1 / 2;
  grid-row: 1;
}

.leone-history .row-bottom .history-text-col {
  grid-column: 2 / 3;
  grid-row: 1;
}

.leone-history .history-img-col :is(img, video),
.leone-history .history-video-embed {
  width: 100%;
  height: clamp(350px, 30vw, 430px);
  object-fit: cover;
  object-position: center;
  display: block;
}
