
    :root {
      --ryb-red: #E7313A;
      --ryb-red-dark: #922b21;
    }
    * { box-sizing: border-box; }
    body { font-family: 'IBM Plex Sans', sans-serif; color: #111; }
    p { font-size: 1.1rem; opacity: 1; line-height: 1.8; }

    /* ── NAVBAR ── */
    .navbar { position:fixed; width:100%; height:auto; }
    .nav-link { font-size: .85rem; font-weight: 500; color: #fff !important; padding: .5rem .75rem !important; }
    .nav-link:hover, .nav-link.active { color: #000 !important; font-weight:600; border-bottom: #000 solid 1px; }
    .navbar-icons a { color: #fff; font-size: 1.1rem; text-decoration: none; margin-left: .75rem; }
    .navbar-icons a:hover { color:#333; }
    .header { background:#E7313A; }
    .mainn { background:#E7313A; }

    /* ── HERO CAROUSEL ── */
    .hero-carousel { position: relative; margin-top:-60px; }
    .hero-slide {
      min-height: 100vh;
      display: flex; align-items: center;
      color: #fff;
      background-size: cover; background-position: center;
    }
   
    .hero h1 { font-family: 'IBM Plex Sans Condensed', sans-serif; font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700; line-height: 1.1; }
    .hero p { font-size: 1rem; max-width: 520px; opacity: .9; line-height: 1.7; }
    .carousel-control-prev, .carousel-control-next {
      width: 40px; height: 40px; top: 50%; transform: translateY(-50%);
      background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
      opacity: 1; border-radius: 0;
    }
    .carousel-control-prev { left: 1rem; }
    .carousel-control-next { right: 1rem; }
    .carousel-indicators button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); }
    .carousel-indicators button.active { background: #fff; }
    .hero-scroll-btn {
      position: absolute; right: 1rem; top: 85%; transform: translateY(-50%);
      width: 36px; height: 60px; border: 2px solid rgba(255,255,255,.5); border-radius: 18px;
      display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; z-index: 5;
    }
    .hero-scroll-btn::after {
      content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff;
      animation: scrollDot 1.6s ease-in-out infinite;
    }
    @keyframes scrollDot { 0%,100%{transform:translateY(0);opacity:1} 80%{transform:translateY(24px);opacity:.2} }

    /* ── ABOUT STRIP ── */
    .about-strip { background: #fafafa; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }
    .about-strip .accordion-button { font-size: .95rem; font-weight: 600; color: #111; background: #fafafa; box-shadow: none; }
    .about-strip .accordion-button:not(.collapsed) { color: var(--ryb-red); background: #fafafa; }
    .about-strip .accordion-body { font-size: .9rem; color: #444; line-height: 1.8; }
    .about-toggle-btn {
      width: 36px; height: 36px; background: var(--ryb-red); color: #fff; border: none;
      display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
    }

    /* ── LÍNEAS SECTION ── */
    .lineas-section { padding: 3.5rem 0 4rem; }
    .section-eyebrow { font-size: 1rem; color: #888; text-align: center; letter-spacing: .08em; margin-bottom:0px; }
    .section-title { font-family: 'IBM Plex Sans Condensed', sans-serif; font-size: 2.8rem; font-weight: 700; 
                     text-align: center; color: #111; letter-spacing: -.02em; }
    .title-underline { width: 48px; height: 3px; background: var(--ryb-red); margin: .5rem auto 2.5rem; }

    .linea-card { text-align: center; }
    .linea-card .linea-img { width: 100%; height: 180px; object-fit: cover; margin-bottom: 1rem; }
    .linea-card h3 { font-size: 1.6rem; font-weight: 600; margin: 1.2rem 0; }
    .linea-card p { font-size: 1rem; color: #555; line-height: 1.7; margin-bottom: 1rem; height:130px; }
    .btn-ryb-outline {
      display: inline-block; background: var(--ryb-red); color: #fff; border: none;
      padding: .45rem 1.5rem; font-size: 1.1rem; font-weight: 600; letter-spacing: .04em;
      border-radius: 0; text-decoration: none; transition: background .2s;
    }
    .btn-ryb-outline:hover { background: var(--ryb-red-dark); color: #fff; }
    .linea-icon { margin-top: .75rem; color: #ccc; }

    /* ── CONTACT BANNER ── */
    .contact-banner { margin: 75px 3%;
      background: #111; color: #fff;
      display: grid; grid-template-columns: 1fr 1fr;
    }
    .contact-banner-img { min-height: 260px; 
       background: url('img/banner.jpg') center/cover no-repeat; }
    .contact-banner-text { padding: 3rem; }
    .contact-banner-text h3 { font-family: 'IBM Plex Sans Condensed', sans-serif; font-size: 2.8rem; font-weight: 700; margin-bottom: .75rem; }
    .contact-banner-text p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.1rem; }
    @media(max-width:768px){ .contact-banner { grid-template-columns: 1fr; } .contact-banner-img { min-height: 200px; } }

    /* ── ABOUT RYB ── */
    .about-ryb {
       background: #000;
      color: #fff; padding: 6rem 0;
    }
    .about-ryb p { font-size: 1.1rem; line-height: 1.85; color: #fff; }
    .about-ryb strong { color: #fff; font-size: 1.2rem; line-height: 1.85; }

    /* ── CONTACT FORM ── */
    .contact-section {
        background: url('img/contacto.jpg') center/cover no-repeat;
      color: #fff; padding: 4rem 0;
    }
    .contact-section h2 { font-family: 'IBM Plex Sans Condensed', sans-serif; font-size: 2.5rem; font-weight: 700; }
    .contact-section .form-control {
      background: rgba(255,255,255,0); border: 1px solid rgba(255,255,255,.25); color: #fff;
      border-radius: 0; font-size: .85rem; border-radius: 5px;
    }
    .contact-section .form-control::placeholder { color: #fff; }
    .contact-section .form-control:focus { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); box-shadow: none; color: #fff; }
    .contact-section .form-check-label { font-size: .72rem; color: rgba(255,255,255,.18); line-height: 1.5; }
    .btn-ryb {
      background: var(--ryb-red); color: #fff; border: none; padding: .55rem 2rem;
      font-size: 1.1rem; font-weight: 600; letter-spacing: .04em; border-radius: 0;
      transition: background .2s; margin:25px 0; display:block;
    }
    .btn-ryb:hover { background: var(--ryb-red-dark); color: #fff;  }
    .img-placeholder img { width:auto; height:90px; filter: brightness(102%); }

    /* ── FOOTER ── */
    footer { background: #E7313A; color: #fff; padding: 2.5rem 0; }
    footer .footer-nav a { color: #fff; text-decoration: none; font-size: 1.1rem; display: block; margin-bottom: .4rem; }
    footer .footer-nav a:hover { color: rgba(255, 255, 255, .7); }
    footer .footer-address { font-size: 1.1rem; line-height: 1.8; color: #fff; }
    footer .footer-icons a { color: #fff; font-size: 1.1rem; margin-right: .6rem; text-decoration: none; }
    footer .footer-icons a:hover { color: rgba(255, 255, 255, .7);}
    footer .footer-bottom { margin-top: 1.5rem; padding-top: 1rem; font-size: 1.1rem; color: #fff; }


  /* ── PRODUCTS SECTION ── */
    .products-section { padding: 3.5rem 0 4rem; }
    .section-eyebrow { font-size: 1.1rem; color: #888; text-align: center; letter-spacing: .08em; }
    .section-title { font-family: 'IBM Plex Sans Condensed', sans-serif; font-size: 2.8rem; font-weight: 700; text-align: center; color: #111; letter-spacing: -.02em; }

    /* Brand accordion */
    .brand-accordion .brand-item { border-bottom: 1px solid #e0e0e0; }
    .brand-btn {
      width: 100%; display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 0; background: none; border: none; cursor: pointer; text-align: left;
    }
    .brand-btn:hover .brand-plus { border-color: var(--ryb-red); color: var(--ryb-red); }
    .brand-plus {
      width: 30px; height: 30px; display: flex; align-items: center;
      justify-content: center; font-size: 2.5rem; color: #555; flex-shrink: 0; transition: all .2s;
      font-weight: 300;
    }
    .brand-btn[aria-expanded="true"] .brand-plus { border-color: var(--ryb-red); color: var(--ryb-red); transform: rotate(45deg); }

    /* Category accordion */
    .cat-header-btn {
      width: 100%; display: flex; align-items: center; justify-content: space-between;
      padding: .45rem .75rem; background: var(--ryb-red); border: none; cursor: pointer; color: #fff;
    }
    .cat-header-btn:hover { background: var(--ryb-red-dark); }
    .cat-name { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
    .cat-plus {
      width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; color: #fff; transition: transform .2s; font-weight: 300;
    }
    .cat-header-btn[aria-expanded="true"] .cat-plus { transform: rotate(45deg); }

    /* Product rows */
    .prod-row { display: flex; align-items: center; gap: 1rem; padding: .7rem .75rem; border-bottom: 1px solid #f2f2f2; }
    .prod-row:last-child { border-bottom: none; }
    .prod-thumb { width: 50px; height: 50px; object-fit: contain; background: #f8f8f8; border: 1px solid #eee; flex-shrink: 0; }
    .prod-name { display: inline-block; vertical-align: middle; font-size: 1.1rem; font-weight: 600; color: #111; margin: 0 0 .25rem; }
    .dl-links { display: inline-block;  vertical-align: middle; margin-left: 15px; padding: 5px; gap: .4rem .1rem; align-items: center; }
    .dl-link { font-size: .72rem; color: var(--ryb-red); border: red solid 1px; padding: 5px; display: block;
                font-weight: 600; text-decoration: none; letter-spacing: .02em; margin-bottom:5px; }
    .dl-link:hover { text-decoration: underline; }
    .dl-sep { font-size: .72rem; color: #ccc; margin: 0 .3rem; }

    .txtc { max-width:650px; margin:0px auto 75px auto; text-align: center; display:block; }


 /* ── HERO ── */
    .hero {
      position: relative;
      min-height: 100vh;
      background: 
      url('img/automatizacioni.jpg') center/cover no-repeat;
      color: #fff;
      display: flex;
      align-items: center;
    }
    .hero h1 { font-family: 'IBM Plex Sans Condensed', sans-serif; 
     font-size: clamp(4.8rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; }
    .hero p { font-size: 1rem; max-width: 920px; opacity: .9; line-height: 1.4; }
   
    .hero-scroll-btn::after {
      content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff;
      animation: scrollDot 1.6s ease-in-out infinite;
    }
    @keyframes scrollDot { 0%,100%{transform:translateY(0);opacity:1} 80%{transform:translateY(24px);opacity:.2} }

    .control {
      position: relative;
      min-height: 100vh;
      background: 
      url('img/control.jpg') center/cover no-repeat !important; 
      color: #fff;
      display: flex;
      align-items: center;
    }

    .potencia {
      position: relative;
      min-height: 100vh;
      background: 
      url('img/potencia.jpg') center/cover no-repeat !important; 
      color: #fff;
      display: flex;
      align-items: center;
    }


/* HERO */

.rb-hero{
  position:relative;

  width:100%;
  height:100vh;

  overflow:hidden;
}

/* SWIPER */

.rbSwiper,
.swiper-wrapper,
.swiper-slide{
  width:100%;
  height:100%;
}

.swiper-slide{
  position:relative;

  overflow:hidden;
}

/* IMAGE */

.swiper-slide img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  /*transform:scale(1.08);*/
  transition:transform 7s ease;
}

.swiper-slide-active img{
  transform:scale(1);
}

/* OVERLAY 

.overlay{
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      180deg,
      rgba(150,0,0,.35),
      rgba(140,0,0,.55)
    );

  z-index:1;
}*/

.overlay{
  position:absolute;
  inset:0;
  background: #B9272F; mix-blend-mode: multiply;
  z-index:1;
}

/* CONTENT */

.slide-content{
  position:absolute;

  top:50%;
  left:50%;

  transform:translate(-50%, -50%);

  z-index:10;

  width:min(900px, 90%);

  text-align:center;

  color:#fff;
}

.slide-content h2{
  font-size:clamp(48px, 6vw, 92px);

  line-height:.95;

  font-weight:800;

  margin-bottom:28px;

  letter-spacing:-2px;
}

.line{
  width:120px;
  height:1px;
  background:#fff;
  margin:0 auto 28px auto;
}

.slide-content p{
  max-width:550px;
  margin:auto;
  font-size:clamp(20px, 1.6vw, 36px);
  line-height:1.4;
  font-weight:300;
}

/* ARROWS */

.rb-arrow{
  position:absolute;

  top:50%;

  transform:translateY(-50%);

  z-index:20;

  width:54px;
  height:54px;

  background:#fff;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  font-size:38px;

  color:#d02020;

  transition:.3s ease;
}

.rb-arrow:hover{
  transform:translateY(-50%) scale(1.06);
}

.prev{
  left:0;
}

.next{
  right:0;
}

/* CONTROLS */

.rb-controls{
  position:absolute;

  left:50%;
  bottom:80px;

  transform:translateX(-50%);

  z-index:30;

  display:flex;
  align-items:center;
  gap:16px;

  padding:10px 18px;

  border:1.5px solid rgba(255,255,255,.95);

  border-radius:999px;

  background:rgba(255,255,255,.05);

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* PLAY/PAUSE */

.pause-btn{
  width:36px;
  height:36px;

  border:none;

  border-radius:50%;

  background:transparent;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
}

/* ICON */

.pause-icon{
  position:relative;

  width:12px;
  height:12px;
}

.pause-icon::before,
.pause-icon::after{
  content:'';

  position:absolute;
  top:0;

  width:3px;
  height:12px;

  border-radius:10px;

  background:#fff;

  transition:.25s ease;
}

.pause-icon::before{
  left:1px;
}

.pause-icon::after{
  right:1px;
}

/* PLAY STATE */

.pause-btn.is-paused .pause-icon::before{

  width:0;
  height:0;

  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  border-left:11px solid #fff;

  background:none;
}

.pause-btn.is-paused .pause-icon::after{
  opacity:0;
}

/* PAGINATION */

.swiper-pagination{
  position:relative !important;

  inset:auto !important;

  display:flex;
  align-items:center;
  gap:12px;
}

.swiper-pagination-bullet{

  width:12px;
  height:12px;

  margin:0 !important;

  opacity:1;

  background:rgba(255,255,255,.35);

  transition:.35s ease;
}

.swiper-pagination-bullet-active{
  background:#fff;

  transform:scale(1.15);
}

/* MOBILE */

@media(max-width:768px){

  .slide-content{
    width:88%;
  }

  .slide-content h2{
    font-size:54px;
  }

  .slide-content p{
    font-size:20px;
  }

  .rb-controls{
    bottom:40px;
  }

  .rb-arrow{
    width:44px;
    height:44px;

    font-size:28px;
  }

}


