/* =========================================================================
   Carreta-Escola Senac — landing page (app 2sxc)
   Portado da landing RD Station. Tudo fica dentro de .ce para não vazar
   no skin do site (nada de regras em body/html, exceto o overflow-x).
   ========================================================================= */

.ce{
  --azul: #055592;
  --azul-2: #004C94;
  --laranja: #F7941D;
  --laranja-2: #F6871F;
  --laranja-claro: #FDC180;
  --azul-claro: #B5D4F4;
  --texto: #1D1D1F;
  --texto-2: #6E6E73;
  --linha: #EDEDED;
  --whatsapp: #25D366;

  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--texto);
}
.ce *, .ce *::before, .ce *::after{ box-sizing: border-box; }
/* as seções ocupam a largura toda da janela (100vw): evita a barra horizontal */
body:has(.ce){ overflow-x: clip; }

/* blocos que estouram o container do skin e ocupam a largura da janela */
.ce .hero,
.ce .about,
.ce .emp,
.ce .caminhos-slide,
.ce .prog{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  container-type: inline-size;
}

/* ===== HERO ===== */
.ce .hero{
  aspect-ratio: 1440 / 900;
  min-height: 480px;
  overflow: hidden;
  background: linear-gradient(62.81deg, var(--azul-2) 49.31%, var(--laranja-2) 105.6%) 0 100% / 100% 34.1% no-repeat, #fff;
}
.ce .hero__stage{ display: contents; }
.ce .hero__pattern{
  position: absolute;
  left: 8.4%;
  top: 31.6%;
  width: 83.2%;
  height: 69.6%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.ce .hero__pattern-row{
  font-weight: 700;
  font-size: clamp(36px, 8cqw, 116px);
  line-height: 0.87;
  letter-spacing: 0.005em;
  white-space: nowrap;
  margin: 0;
  color: var(--laranja);
}
.ce .hero__pattern-row--outline{ opacity: 0.10; }
.ce .hero__pattern-row--fill{ opacity: 0.5; }

.ce .hero__trucks{
  position: absolute;
  left: 11%;
  width: 78%;
  aspect-ratio: 865 / 289;
  bottom: 15%;
  z-index: 3;
}
.ce .hero__truck{ position: absolute; display: block; height: auto; max-width: none; }
.ce .hero__truck--gastro{ left: -1.37%; top: -1.07%; width: 68.27%; z-index: 2; }
.ce .hero__truck--ti{     left: 44.93%; top: 6.73%;  width: 55.6%;  z-index: 1; }

.ce .hero__logo{
  position: absolute;
  left: 60.76%;
  top: 10%;
  width: 23.4%;
  z-index: 4;
  line-height: 0;
}
.ce .hero__logo img{ width: 100%; height: auto; display: block; }

.ce .hero__copy{
  position: absolute;
  left: 16.53%;
  top: 10.22%;
  width: 30%;
  z-index: 4;
}
.ce .hero__title{
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(26px, 3.2cqw, 46px);
  line-height: 1.05;
  color: var(--azul);
}
.ce .hero__title strong{ font-weight: 800; }
.ce .hero__title .word{ display: inline-block; }
.ce .hero__subtitle{
  margin: 0.6em 0 0;
  font-weight: 400;
  font-size: clamp(14px, 1.9cqw, 27px);
  line-height: 1.2;
  color: #9B9B9B;
}
.ce .hero__subtitle strong{ font-weight: 700; color: #6E6E6E; }

@media (max-width: 768px){
  .ce .hero{
    aspect-ratio: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 40px;
    gap: 12px;
    background: #fff;
  }
  .ce .hero__logo{ position: static; width: 168px; order: 1; margin-bottom: 8px; }
  .ce .hero__copy{ position: static; width: 100%; order: 2; }
  .ce .hero__title{ font-size: 40px; }
  .ce .hero__subtitle{ font-size: 19px; margin-bottom: 8px; }
  .ce .hero__stage{
    display: block;
    position: relative;
    width: 100%;
    order: 3;
    overflow: hidden;
    min-height: 260px;
    padding-top: 40px;
    padding-bottom: 70px;
    background: linear-gradient(62.81deg, var(--azul-2) 49.31%, var(--laranja-2) 105.6%) 0 100% / 100% calc(100% - 110px) no-repeat;
  }
  .ce .hero__pattern{ left: 0; top: 0; width: 100%; text-align: center; }
  .ce .hero__pattern-row{ font-size: 46px; }
  .ce .hero__trucks{ position: relative; left: auto; bottom: auto; width: 100%; z-index: 5; }
  .ce .hero__title .word,
  .ce .hero__subtitle,
  .ce .hero__truck{ opacity: 1 !important; transform: none !important; }
}

/* ===== SOBRE + ROTAS ===== */
.ce .about{
  padding: clamp(64px, 9cqw, 128px) clamp(24px, 8cqw, 120px);
  background: #fff;
}
@media (max-width: 768px){ .ce .about{ padding-top: 8px; } }

.ce .about__text{
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(22px, 3.6cqw, 40px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--azul);
  text-align: left;
}
.ce .about__text + .about__text{ margin-top: 0.9em; }
.ce .about__text strong{ font-weight: 800; }

.ce .routes{ max-width: 900px; margin: clamp(48px, 6cqw, 80px) auto 0; }
.ce .about__routes{
  --gap: clamp(16px, 2.5cqw, 28px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@container (max-width: 600px){ .ce .about__routes{ grid-template-columns: 1fr; } }

.ce .routes.is-slider .about__routes{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 3px;
  margin: -3px;
}
.ce .routes.is-slider .about__routes::-webkit-scrollbar{ display: none; }
.ce .routes.is-slider .route-card{ flex: 0 0 calc((100% - var(--gap)) / 2); scroll-snap-align: start; }
@container (max-width: 600px){ .ce .routes.is-slider .route-card{ flex-basis: 100%; } }

.ce .routes__nav{ display: none; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ce .routes.is-slider .routes__nav{ display: flex; }
.ce .routes__btn{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #DCE6F0;
  background: #fff;
  color: var(--azul);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.ce .routes__btn:hover:not(:disabled){ background: #F7FAFD; border-color: var(--azul); }
.ce .routes__btn:disabled{ opacity: .35; cursor: default; }

.ce .route-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(24px, 3cqw, 36px);
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid #EDEDED;
  transition: background .2s ease, border-color .2s ease;
}
.ce .route-card:hover{ background: #F7FAFD; border-color: #B7CFE3; text-decoration: none; }
.ce .route-card:focus-visible{ outline: 3px solid var(--laranja); outline-offset: 3px; }
.ce .route-card__eyebrow{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--laranja);
}
.ce .route-card__label{
  font-size: clamp(22px, 2.6cqw, 30px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--azul);
}
.ce .route-card__label strong{ font-weight: 800; }
.ce .route-card__cta{ margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--azul); }
.ce .route-card__cta .cta-on{ display: none; }
.ce .route-card.is-active{ background: #F7FAFD; border-color: var(--azul); box-shadow: 0 0 0 1px var(--azul); }
.ce .route-card.is-active .cta-off{ display: none; }
.ce .route-card.is-active .cta-on{ display: inline; }
.ce .route-card__oculta{
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #7A4A00;
  background: var(--laranja-claro);
  border-radius: 6px;
  padding: 2px 8px;
}

/* ===== EMPRESÁRIOS ===== */
.ce .emp{
  padding: clamp(48px, 7cqw, 88px) clamp(24px, 8cqw, 120px);
  background: #F2F2F2;
}
.ce .emp__inner{ max-width: 700px; margin: 0 auto; text-align: center; }
.ce .emp__title{
  margin: 0 0 12px;
  font-family: inherit;
  font-size: clamp(24px, 3.2cqw, 34px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--texto);
  text-wrap: balance;
}
.ce .emp__sub{
  margin: 0 0 clamp(28px, 3.5cqw, 40px);
  font-size: clamp(15px, 1.6cqw, 17px);
  color: var(--texto-2);
  line-height: 1.5;
  text-wrap: balance;
}
.ce .emp__btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--whatsapp);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 10px;
}
.ce .emp__btn:hover{ color: #fff; text-decoration: none; }
.ce .emp__btn svg{ flex-shrink: 0; }

/* ===== SLIDES POR CARRETA (Caminhos + Programação) =====
   Só a primeira carreta começa visível; o JS troca as demais. */
.ce [data-track]{ display: none; }
.ce [data-track].is-current{ display: block; }

@keyframes ceEntra{
  from{ opacity: 0; transform: translateY(12px); }
  to{   opacity: 1; transform: none; }
}
html[data-carreta] .ce [data-track]{ animation: ceEntra .35s ease; }

/* ===== CAMINHOS ===== */
.ce .caminhos-slide{
  padding: clamp(48px, 7cqw, 96px) clamp(24px, 8cqw, 120px);
  background: #004C94;
}
@media (max-width: 768px){ .ce .caminhos-slide{ padding-top: 16px; } }
.ce .caminhos-slide__title{
  max-width: 900px;
  margin: 0 0 clamp(32px, 5cqw, 56px);
  font-family: inherit;
  font-size: clamp(24px, 3.4cqw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-align: left;
  text-wrap: balance;
}
.ce .caminhos-slide__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5cqw, 48px);
}
@container (max-width: 700px){ .ce .caminhos-slide__grid{ grid-template-columns: 1fr; } }
.ce .caminho__title{
  font-family: inherit;
  font-size: clamp(19px, 2.2cqw, 24px);
  font-weight: 800;
  color: var(--laranja);
  margin: 0 0 12px;
  text-wrap: balance;
}
.ce .caminho__text{
  font-size: clamp(15px, 1.7cqw, 17px);
  line-height: 1.55;
  color: #D7E3EF;
  margin: 0;
}
.ce .caminhos-slide__cta{ margin-top: clamp(40px, 5cqw, 64px); display: flex; }
.ce .caminhos-slide__cta a{
  text-decoration: none;
  background: var(--laranja);
  color: #1A1A1A;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 10px;
}

/* ===== PROGRAMAÇÃO ===== */
.ce .prog{
  padding: clamp(48px, 7cqw, 96px) clamp(24px, 8cqw, 120px);
  background: #fff;
}
@media (max-width: 768px){ .ce .prog{ padding-top: 16px; } }
.ce .prog__head{ max-width: 900px; margin: 0 auto clamp(28px, 4cqw, 44px); }
.ce .prog__title{
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(24px, 3.4cqw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--azul);
  text-align: left;
  text-wrap: balance;
}
.ce .prog__sub{
  margin: 0 0 16px;
  font-size: clamp(15px, 1.7cqw, 17px);
  color: var(--texto-2);
  line-height: 1.5;
}
.ce .prog__local-card{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #EAF2FA;
  border-left: 3px solid var(--azul);
  border-radius: 8px;
}
.ce .prog__local-card svg{ color: var(--azul); flex-shrink: 0; margin-top: 2px; }
.ce .prog__local-card strong{ display: block; font-size: 15px; font-weight: 700; color: var(--azul); margin-bottom: 3px; }
.ce .prog__local-card span{ display: block; font-size: 14px; color: var(--texto-2); }

.ce .prog__legend{ display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--texto-2); }
.ce .prog__legend span{ display: inline-flex; align-items: center; gap: 6px; }
.ce .prog__legend i{ width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ce .prog__legend .oficina{ background: var(--laranja); }
.ce .prog__legend .curso{ background: var(--azul); }

.ce .prog__wrap{ max-width: 900px; margin: 0 auto; }
.ce .prog__tabs{ display: flex; flex-wrap: wrap; gap: 8px; max-width: 900px; margin: 0 auto 8px; }
.ce .prog__tab{
  background: #F7F8FA;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--texto-2);
  cursor: pointer;
}
.ce .prog__tab.is-active{ background: var(--azul); color: #fff; }
.ce [data-mes-panel]{ display: none; }
.ce [data-mes-panel].is-active{ display: block; }

.ce .prog__group{
  margin: 0;
  padding: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--azul);
  text-transform: uppercase;
}
.ce .prog__day{ padding: 14px 16px; margin: 6px 0; background: #F7F8FA; border-radius: 10px; }
.ce .prog__day-label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--texto);
  margin-bottom: 12px;
}
.ce .prog__day-label svg{ color: var(--texto-2); flex-shrink: 0; }
.ce .prog__day-local{
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -6px 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--azul);
}
.ce .prog__day-local svg{ flex-shrink: 0; }
.ce .prog__activities{ display: flex; flex-direction: column; gap: 14px; padding: 0 0 2px; }
.ce .prog__activity{ display: flex; align-items: baseline; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.ce .prog__badge{ flex-shrink: 0; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 500; }
.ce .prog__badge--oficina{ background: var(--laranja-claro); color: #7A4A00; }
.ce .prog__badge--curso{ background: var(--azul-claro); color: #0C447C; }
.ce .prog__activity-time{ display: inline-flex; align-items: center; gap: 4px; color: var(--texto-2); flex-shrink: 0; }
.ce .prog__activity-time svg{ flex-shrink: 0; }
.ce .prog__activity-name{ color: var(--texto); }
.ce .prog__activity-duracao{ color: var(--texto-2); }
.ce .prog__vazio{ margin: 12px 0; font-size: 15px; color: var(--texto-2); }

/* ===== BOTÃO + MODAL DE PRÉ-INSCRIÇÃO ===== */
.ce .insc-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--laranja);
  color: #1A1A1A;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
}
.ce .insc-btn--top{ margin-bottom: 24px; }
.ce .insc-btn--bottom{ margin-top: 32px; }
.ce .insc-btn-wrap{ max-width: 900px; margin: 0 auto; }

.ce-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ce-overlay.is-open{ display: flex; }
.ce-modal{
  --azul: #055592;
  --texto: #1D1D1F;
  --texto-2: #6E6E73;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--texto);
  text-align: left;
}
.ce-modal *, .ce-modal *::before, .ce-modal *::after{ box-sizing: border-box; }
.ce-modal__close{
  float: right;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--texto-2);
  cursor: pointer;
  line-height: 1;
}
.ce-modal h3{ margin: 0 0 6px; font-family: inherit; font-size: 20px; font-weight: 800; color: var(--azul); }
.ce-modal p.desc{ margin: 0 0 20px; font-size: 13px; color: var(--texto-2); }
.ce-modal p.local{ margin: -12px 0 20px; font-size: 13px; font-weight: 700; color: var(--azul); }

.insc-field{ display: block; margin-bottom: 16px; }
.insc-field > span{
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--texto);
  margin-bottom: 6px;
}
.insc-field select,
.insc-field input,
.insc-field textarea{
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--texto);
  padding: 12px 14px;
  border: 1px solid #DEDEDE;
  border-radius: 8px;
  background: #fff;
  height: auto;
  box-shadow: none;
}
.insc-field select:disabled{ background: #F7F8FA; color: #B0B0B0; }
.insc-field input:focus,
.insc-field select:focus,
.insc-field textarea:focus{ outline: 2px solid var(--azul); outline-offset: 0; border-color: var(--azul); }

.insc-aceite{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--texto-2);
  cursor: pointer;
}
.insc-aceite input{ margin: 2px 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--azul); }

/* armadilha anti-robô: fica fora da tela, gente de verdade não preenche */
.insc-hp{ position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.insc-erro{
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FDECEC;
  color: #9B1C1C;
  font-size: 13px;
}
.insc-erro.is-on{ display: block; }

.insc-submit{
  width: 100%;
  margin-top: 6px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.insc-submit:disabled{ background: #C9C9C9; cursor: not-allowed; }

.insc-sucesso{ display: none; text-align: center; padding: 24px 0; }
.insc-sucesso__icone{ font-size: 40px; margin-bottom: 12px; color: var(--azul); }

/* ===== MODO EDIÇÃO (só aparece para quem pode editar) ===== */
.ce .ce-edit{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px dashed var(--laranja);
  border-radius: 10px;
  background: #FFF8EF;
  font-size: 13px;
  color: #7A4A00;
}
.ce .ce-edit button{
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--azul);
  color: #fff;
  cursor: pointer;
}
.ce .ce-edit--routes{ max-width: 900px; margin: 0 auto 20px; }
.ce .prog__activity--fechada .prog__activity-name::after{
  content: " (inscrições encerradas)";
  color: var(--texto-2);
  font-size: 12px;
}
