/* ================================================
   SBI SYSTEMS BUILDERS — COMPLETE CUSTOM CSS
   Version: v23 — 2026-06-04

   SLIDESHOW — FINAL CORRECT VALUES from console:
   .rstpl-all-content-position .container:
     left: 314.67px  width: 1320px
   #sbi-slider must match: max-width:1320px centered
   ================================================ */


/* ================================================
   1. TOP POSITION (header bar)
   ================================================ */
.rstpl-top-position {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background: #0d2248 !important;
}
section#rstpl-top-position {
  background: #dadadc !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.rstpl-top-position .container-fluid {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}
.rstpl-top-position .row {
  margin: 0 !important;
  padding-bottom: 0 !important;
}
.rstpl-top-position .container {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.rstpl-top-position [class*="col-"] {
  padding: 0 !important;
}


/* ================================================
   2. NAV BAR — full width gray strip
   ================================================ */
section#rstpl-main-menu-position,
.rstpl-main-menu-position {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #8b8b8b !important;
  display: block !important;
}
.rstpl-main-menu-position .navbar,
.rstpl-main-menu-position .container-fluid,
.rstpl-main-menu-position .rstpl-main-menu-col,
.rstpl-main-menu-position .menu_right,
.rstpl-main-menu-position .navbar-nav-scroll {
  background: #8b8b8b !important;
}
.rstpl-main-menu-position .navbar {
  padding: 0 !important;
  border: none !important;
  min-height: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}
.rstpl-main-menu-position .container-fluid {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.rstpl-main-menu-position .rstpl-main-menu-col {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding: 0 !important;
}
.rstpl-main-menu-position .navbar-brand {
  display: none !important;
}
.rstpl-main-menu-position .navbar-toggler {
  margin: 0 !important;
  padding: 8px !important;
}
.rstpl-main-menu-position .menu_right {
  width: 100% !important;
  flex: 0 0 100% !important;
  justify-content: center !important;
  display: flex !important;
  margin: 0 !important;
}
.rstpl-main-menu-position .navbar-nav-scroll {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  overflow: visible !important;
}
.rstpl-main-menu-position .navbar-nav {
  justify-content: center !important;
  flex-direction: row !important;
  margin: 0 auto !important;
  width: auto !important;
}
.rstpl-main-menu-position .rstpl-template-menu li > a {
  font-size: 15px !important;
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  display: inline-block !important;
}
.rstpl-main-menu-position .rstpl-template-menu li > a:hover {
  color: #c9a227 !important;
}
.rstpl-main-menu-position .rstpl-template-menu li.active > a {
  color: #cc0000 !important;
}


/* ================================================
   3. RSPAGEBUILDER GLOBAL HEIGHT + SPACING FIX
   ================================================ */
.rspbld-page,
.rspbld-pages,
.page-content,
#rspbld,
.col-md-12.p-0.enter.bottom,
.rstpl-all-content-position,
.rstpl-all-content-position .container,
.rstpl-all-content-position .row,
.rstpl-all-content-position .col-md-12 {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.rspbld-page,
#rspbld,
.rspbld-page .page-content,
.col-md-12.p-0.enter.bottom {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
section[style*="background-repeat"],
div[class="row animation-container"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* ================================================
   4. KILL GAPS BETWEEN SECTIONS
   ================================================ */
section#rstpl-all-content-position {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
section#rstpl-slideshow-position {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* ================================================
   5. SLIDESHOW POSITION — EXACT 1320px CENTERED
   ================================================ */
section#rstpl-slideshow-position,
.rstpl-slideshow-position {
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1295px !important;
  background: #dadadc !important;
  display: block !important;
  overflow: hidden !important;
}
.rstpl-slideshow-position .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.rstpl-slideshow-position .col-md-12 {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
.rstpl-slideshow-position .rstpl-module,
.rstpl-slideshow-position .rstpl-module-content,
.rstpl-slideshow-position .mod-custom {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}


/* ================================================
   6. SBI SLIDESHOW — DESKTOP 380px
   6 slides × 13s = 78s total cycle
   ================================================ */
#sbi-slider {
  position: relative !important;
  width: 100% !important;
  height: 380px !important;
  overflow: hidden !important;
  background: #0d2248 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
#sbi-slider .sbi-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation-duration: 78s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* --- IMAGES + KEN BURNS --- */
#sbi-slider .sbi-slide img {
  width: 100%;
  height: 380px !important;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: sbi-kenburns 13s ease-in-out infinite alternate;
}

@keyframes sbi-kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.03); }
}

/* --- 6 SLIDE FADE SEQUENCE --- */
#sbi-slider .sbi-slide:nth-child(1) { animation-name: sbi-fade-1; }
#sbi-slider .sbi-slide:nth-child(2) { animation-name: sbi-fade-2; }
#sbi-slider .sbi-slide:nth-child(3) { animation-name: sbi-fade-3; }
#sbi-slider .sbi-slide:nth-child(4) { animation-name: sbi-fade-4; }
#sbi-slider .sbi-slide:nth-child(5) { animation-name: sbi-fade-5; }
#sbi-slider .sbi-slide:nth-child(6) { animation-name: sbi-fade-6; }

@keyframes sbi-fade-1 {
  0%    { opacity: 1; }
  14%   { opacity: 1; }
  18%   { opacity: 0; }
  96%   { opacity: 0; }
  100%  { opacity: 1; }
}
@keyframes sbi-fade-2 {
  0%    { opacity: 0; }
  14%   { opacity: 0; }
  18%   { opacity: 1; }
  30%   { opacity: 1; }
  34%   { opacity: 0; }
  100%  { opacity: 0; }
}
@keyframes sbi-fade-3 {
  0%    { opacity: 0; }
  30%   { opacity: 0; }
  34%   { opacity: 1; }
  46%   { opacity: 1; }
  50%   { opacity: 0; }
  100%  { opacity: 0; }
}
@keyframes sbi-fade-4 {
  0%    { opacity: 0; }
  46%   { opacity: 0; }
  50%   { opacity: 1; }
  62%   { opacity: 1; }
  66%   { opacity: 0; }
  100%  { opacity: 0; }
}
@keyframes sbi-fade-5 {
  0%    { opacity: 0; }
  62%   { opacity: 0; }
  66%   { opacity: 1; }
  78%   { opacity: 1; }
  82%   { opacity: 0; }
  100%  { opacity: 0; }
}
@keyframes sbi-fade-6 {
  0%    { opacity: 0; }
  78%   { opacity: 0; }
  82%   { opacity: 1; }
  96%   { opacity: 1; }
  100%  { opacity: 0; }
}

/* --- OVERLAY --- */
#sbi-slider .sbi-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to right,
    rgba(26,58,107,0.55) 0%,
    rgba(26,58,107,0.15) 60%,
    rgba(0,0,0,0.02) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* --- TEXT BLOCK --- */
#sbi-slider .sbi-text {
  position: absolute !important;
  bottom: 14px !important;
  top: auto !important;
  left: 6% !important;
  transform: none !important;
  z-index: 4 !important;
  max-width: 80% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
}

/* --- HEADLINE --- */
#sbi-slider .sbi-headline {
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* --- SUBLINE --- */
#sbi-slider .sbi-subline {
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #e8e8e8;
  margin-bottom: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- CTA BUTTON --- */
#sbi-slider .sbi-cta {
  display: inline-block !important;
  background: #c9a227 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 2px 6px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  margin: 0 !important;
}
#sbi-slider .sbi-cta:hover {
  background: #cc0000 !important;
  color: #fff !important;
  text-decoration: none !important;
}


/* ================================================
   7. HIDE RSJOOMLA COPYRIGHT BAR
   ================================================ */
.copyright-link {
  display: none !important;
}


/* ================================================
   8. REMOVE GAP ABOVE FOOTER
   ================================================ */
.rstpl-footer-position,
section#rstpl-footer-position {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* ================================================
   9. MOBILE
   ================================================ */
#sbi-mobile-header { display: none !important; }
.top-a-mobile { display: none !important; }

@media (max-width: 767px) {
  #sbi-mobile-header { display: block !important; }
  .top-a-mobile { display: block !important; }
  .top-a-desktop { display: none !important; }

  /* Hide RSLazio default mobile menu — use our custom header only */
  .rstpl-main-menu-position { display: none !important; }
  .navbar-toggler { display: none !important; }
  section#rstpl-main-menu-position { display: none !important; }
}

@media (max-width: 768px) {
  #sbi-slider {
    height: 200px !important;
  }
  #sbi-slider .sbi-slide img {
    height: 200px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  #sbi-slider .sbi-headline {
    font-size: 16px !important;
  }
  #sbi-slider .sbi-text {
    bottom: 9px !important;
    top: auto !important;
    left: 4% !important;
    max-width: 92% !important;
    transform: none !important;
    gap: 10px !important;
  }
  #sbi-slider .sbi-cta {
    font-size: 13px !important;
    padding: 2px 5px !important;
  }
  section#rstpl-slideshow-position,
  .rstpl-slideshow-position {
    max-width: 100% !important;
  }
  .rstpl-component-position .container,
  .rstpl-component-position .container-fluid,
  .rstpl-component-position .col-md-12,
  .rstpl-component-position [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .rstpl-component-position div[style*="min-width:280px"],
  .rstpl-component-position div[style*="min-width: 280px"] {
    min-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}