/*
     SISTEMA DE ESCALA PROPORCIONAL 1920px
     Padronizacao Rendimento Solution Architecture - ULTRA UNIQUE CLASSES
  */
  #block-especialidades{
    --cec-s3-navy: #253064;
    --cec-s3-gold: #d89a14;
    --cec-s3-white: #ffffff;
    --cec-s3-black: #000000;
  }

  #block-especialidades, #block-especialidades *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
  }

  @font-face{
    font-family: "Lemon Milk";
    src: url("/fontes/lemonmilk-bold.woff2")
      format("woff2");
    font-weight: 700;
    font-display: swap;
  }
  @font-face{
    font-family: "Ekster";
    src: url("/fontes/ekster-regular.woff2")
      format("woff2");
    font-weight: 400;
    font-display: swap;
  }

  #block-especialidades .cec-s3-section{
    width: 100%;
    background: var(--cec-s3-white);
    position: relative;
    overflow: hidden;
    height: 940px;
  }

  #block-especialidades #cec-s3-scaling{
    width: 1920px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(1);
    transform-origin: top center;
    padding: 80px 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #block-especialidades .cec-s3-reveal{
    opacity: 0;
    filter: blur(12px);
    transition:
      opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
      filter 1s cubic-bezier(0.23, 1, 0.32, 1),
      transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(30px);
    will-change: opacity, filter, transform;
  }

  #block-especialidades .cec-s3-reveal.is-visible{
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  #block-especialidades .cec-s3-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 50px;
  }

  #block-especialidades .cec-s3-tag{
    font-size: 18px;
    font-weight: 700;
    color: var(--cec-s3-gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
    display: block;
    font-family: "Ekster", sans-serif;
  }

  #block-especialidades .cec-s3-title{
    font-family: "Lemon Milk", sans-serif;
    font-size: 34px;
    line-height: 1.1;
    color: var(--cec-s3-navy);
    text-transform: uppercase;
  }

  #block-especialidades .cec-s3-nav{
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
  }

  #block-especialidades .cec-s3-nav-btn{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--cec-s3-gold) !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--cec-s3-white) !important;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    outline: none !important;
    box-shadow: none !important;
  }

  #block-especialidades .cec-s3-nav-btn:hover{
    background: #c28a12 !important;
    transform: scale(1.1);
  }

  #block-especialidades .cec-s3-nav-btn svg{
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
  }

  #block-especialidades .cec-s3-slider{
    width: 100%;
    overflow: visible;
  }

  #block-especialidades .cec-s3-track{
    display: flex;
    gap: 30px;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
  }

  #block-especialidades .cec-s3-card{
    flex: 0 0 720px;
    height: 400px;
    display: flex;
    background: var(--cec-s3-navy);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: none;
  }

  #block-especialidades .cec-s3-card-img{
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
  }

  #block-especialidades .cec-s3-card-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #block-especialidades .cec-s3-card-content{
    flex: 1;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--cec-s3-white);
  }

  #block-especialidades .cec-s3-card-title{
    font-family: "Lemon Milk", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.3;
  }

  #block-especialidades .cec-s3-card-text{
    font-family: "Ekster", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
  }

  #block-especialidades .cec-s3-saiba-mais{
    font-family: "Ekster", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--cec-s3-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    margin-top: auto;
    position: relative;
    width: fit-content;
  }

  #block-especialidades .cec-s3-saiba-mais::after{
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--cec-s3-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  #block-especialidades .cec-s3-saiba-mais:hover{
    color: var(--cec-s3-gold);
  }

  #block-especialidades .cec-s3-saiba-mais:hover::after{
    background: var(--cec-s3-gold);
    transform: scaleX(1);
    transform-origin: left;
  }

  #block-especialidades .cec-s3-saiba-mais svg{
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
  }

  #block-especialidades .cec-s3-saiba-mais:hover svg{
    transform: translate(3px, -3px);
    stroke: var(--cec-s3-gold);
  }

  @media (max-width: 1024px){
    #block-especialidades .cec-s3-section{
      height: auto !important;
      padding: 80px 0;
    }

    #block-especialidades #cec-s3-scaling{
      width: 100% !important;
      position: relative !important;
      left: auto !important;
      transform: none !important;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    #block-especialidades .cec-s3-header{
      display: contents;
    }

    #block-especialidades .cec-s3-header > div:first-child{
      order: 1;
      margin-bottom: 30px;
      padding: 0 20px;
    }

    #block-especialidades .cec-s3-title{
      font-size: 30px;
      max-width: 15ch;
      margin: 0 auto;
    }

    #block-especialidades .cec-s3-slider{
      order: 2;
      width: 100%;
      overflow: hidden;
    }

    #block-especialidades .cec-s3-track{
      gap: 0;
      padding: 0;
    }

    #block-especialidades .cec-s3-card{
      flex: 0 0 calc(100% - 68px);
      margin: 0 34px;
      flex-direction: column;
      height: auto;
      border-radius: 24px;
    }

    #block-especialidades .cec-s3-card-img{
      height: 220px;
      flex: none;
    }

    #block-especialidades .cec-s3-card-content{
      padding: 35px 25px;
      text-align: center;
      align-items: center;
    }

    #block-especialidades .cec-s3-card-title{
      font-size: 24px;
      margin-bottom: 15px;
      min-height: 0;
      justify-content: center;
    }

    #block-especialidades .cec-s3-nav{
      order: 3;
      margin: 35px auto 0;
      justify-content: center;
      display: flex;
      width: 100%;
    }
  }