  :root{
    --azul-fundo: #203c8a;
    --creme: #F4EEDD;
    --texto-escuro: #26315C;
  }

  @font-face{
    font-family: 'FS Lola';
    src: url('FS Lola-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face{
    font-family: 'FS Lola';
    src: url('FS Lola-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  @font-face{
    font-family: 'FS Lola';
    src: url('FS Lola-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }

  *{ box-sizing: border-box; }

  html, body{
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'Segoe UI', Arial, sans-serif;
  }

  .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;
  }

  #page-nossa-cultura #banner{
    margin-bottom: 7px;
  }

  /* ===================== SEÇÃO / PALCO (SESSÃO 2) ===================== */

  .ser-assai-section{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--azul-fundo);
    padding: 0;
    overflow: hidden;
  }

  /* Container que mantém a proporção exata do design (1422 x 922) */
  .stage-frame{
    position: relative;
    width: 100%;
    max-width: 1422px;
    aspect-ratio: 1422 / 922;
    margin: 0 auto;
    overflow: hidden;
  }

  /* Palco com dimensões fixas de design, escalado via transform pelo JS
     para caber perfeitamente em .stage-frame em qualquer resolução */
  .stage{
    position: absolute;
    top: 0;
    left: 0;
    width: 1422px;
    height: 922px;
    transform-origin: top left;
  }

  /* ===================== BACKGROUND ===================== */

  .bg-color{
    position: absolute;
    inset: 0;
    background: var(--azul-fundo);
  }

  .bg-digital{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('digital.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; /* cortada para preencher todo o fundo */
    mix-blend-mode: normal;
    animation: bgDrift 22s ease-in-out infinite;
  }

  @keyframes bgDrift{
    0%   { background-position: 50% 50%; }
    50%  { background-position: 52% 48%; }
    100% { background-position: 50% 50%; }
  }

  /* ===================== ELEMENTOS POSICIONADOS ===================== */

  .el{
    position: absolute;
  }

  .photo{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  }

  .badge{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  }

  .banner-img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  }

  /* ---- posições (baseadas no mockup, palco 1422x922) ---- */

  /* Foto do galpão (topo-esquerda) */
  .pos-warehouse{ left: 96px;  top: 88px;  width: 270px; height: 205px; }
  /* Selo azul sobre o galpão */
  .pos-badge-blue{ left: 148px; top: 70px;  width: 108px; height: 108px; }
  /* Selo vermelho sobre o galpão */
  .pos-badge-red{ left: 300px; top: 80px;  width: 98px;  height: 98px; }

  /* Banner topo (fachada Assaí Atacadista) */
  .pos-banner{ left: 548px; top: 48px; width: 378px; height: 124px; }
  /* Selo laranja sobre o banner */
  .pos-badge-orange{ left: 852px; top: 118px; width: 92px; height: 82px; }

  /* Foto Central Administrativa */
  .pos-central{ left: 1046px; top: 172px; width: 260px; height: 108px; }
  /* Selo roxo sobre a central administrativa */
  .pos-badge-purple{ left: 1218px; top: 244px; width: 118px; height: 118px; }

  /* Foto caixas/checkout (esquerda) */
  .pos-checkout{ left: 90px; top: 352px; width: 196px; height: 388px; }
  /* Selo verde sobre o checkout */
  .pos-badge-green{ left: 60px; top: 686px; width: 128px; height: 128px; }
  /* Novo selo — acima/à direita da foto do checkout */
  .pos-badge-checkout{ left: 224px; top: 300px; width: 104px; height: 104px; }

  /* Foto totem Assaí (direita) */
  .pos-totem{ left: 1150px; top: 424px; width: 178px; height: 372px; }
  /* Selo amarelo sobre o totem */
  .pos-badge-yellow{ left: 1240px; top: 730px; width: 92px; height: 92px; }

  /* Título (imagem) */
  .pos-title{
    left: 400px;
    top: 258px;
    width: 660px;
    height: 322px;
  }
  .title-img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
  }

  /* Texto lorem ipsum */
  .pos-text{
    left: 400px;
    top: 598px;
    width: 690px;
    color: #ffffff;
  }
  .pos-text p{
    margin: 0 0 14px 0;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: 0.1px;
  }

  /* ===================== MOVIMENTO SUTIL ===================== */

  @keyframes floatSoft{
    0%   { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
    50%  { transform: translate3d(0, -10px, 0) rotate(var(--r, 0deg)); }
    100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  }

  @keyframes floatSoftWide{
    0%   { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
    50%  { transform: translate3d(0, -14px, 0) rotate(var(--r, 0deg)); }
    100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  }

  @keyframes badgePulse{
    0%   { transform: translate3d(0,0,0) rotate(var(--r,0deg)) scale(1); }
    50%  { transform: translate3d(0,-7px,0) rotate(var(--r,0deg)) scale(1.015); }
    100% { transform: translate3d(0,0,0) rotate(var(--r,0deg)) scale(1); }
  }

  .float-a{ animation: floatSoft 6.5s ease-in-out infinite; }
  .float-b{ animation: floatSoftWide 7.5s ease-in-out infinite; }
  .float-c{ animation: floatSoft 5.8s ease-in-out infinite; }
  .badge-float{ animation: badgePulse 4.6s ease-in-out infinite; }

  .delay-1{ animation-delay: 0s; }
  .delay-2{ animation-delay: .6s; }
  .delay-3{ animation-delay: 1.1s; }
  .delay-4{ animation-delay: 1.6s; }
  .delay-5{ animation-delay: 2.1s; }
  .delay-6{ animation-delay: 2.5s; }
  .delay-7{ animation-delay: .3s; }
  .delay-8{ animation-delay: 1.8s; }

  .rot-1{ --r: -2deg; }
  .rot-2{ --r: 3deg; }
  .rot-3{ --r: -1.5deg; }
  .rot-4{ --r: 2.5deg; }

  .title-float{
    animation: floatSoft 8s ease-in-out infinite;
  }

  @media (prefers-reduced-motion: reduce){
    .float-a, .float-b, .float-c, .badge-float, .title-float, .bg-digital{
      animation: none !important;
    }
  }

  /* ===================== RESPONSIVO (SESSÃO 2) ===================== */

  @media (max-width: 720px){
    .pos-text p{ font-size: 15px; line-height: 1.5; }
  }

  /* =====================================================================
     SESSAO 3 - VALORES COM MODAL
     ===================================================================== */

  .valores-section{
    width: 100%;
    background: #EFEFEF;
    padding: 64px 24px;
  }

  .valores-inner{
    max-width: 1300px;
    margin: 0 auto;
  }

  .valores-title{
    display: block;
    height: 56px;
    width: auto;
    margin-bottom: 32px;
  }

  .valores-grid{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
  }

  .valor-card{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    aspect-ratio: 3 / 4;
    border: 0;
    border-radius: 18px;
    background: var(--valor-cor, var(--azul-fundo));
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .valor-card::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('digital.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    mix-blend-mode: soft-light;
    opacity: 0.7;
    pointer-events: none;
  }

  .valor-card:hover,
  .valor-card:focus-visible{
    transform: translateY(-6px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.2);
    outline: none;
  }

  .valor-card-titulo{
    position: relative;
    display: block;
    width: 88%;
    height: auto;
    pointer-events: none;
    z-index: 1;
  }

  /* ---- MODAL ---- */

  .modal-valor{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .modal-valor.is-open{
    display: flex;
  }

  .modal-overlay{
    position: absolute;
    inset: 0;
    background: rgba(15, 16, 60, 0.55);
  }

  .modal-content{
    position: relative;
    width: 100%;
    max-width: min(760px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--valor-cor, var(--azul-fundo));
    border-radius: 22px;
    padding: 40px 48px 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    transition: background-color .2s ease;
  }

  .modal-bg-digital{
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background-image: url('digital.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    opacity: 0.35;
    pointer-events: none;
  }

  .modal-close{
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }

  .modal-close:hover{
    background: rgba(255,255,255,0.22);
  }

  .modal-titulo{
    position: relative;
    display: block;
    max-width: 240px;
    height: auto;
    margin: 0 auto 16px;
    z-index: 1;
  }

  .modal-texto{
    position: relative;
    color: #ffffff;
    z-index: 1;
  }

  .modal-texto p{
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
  }

  .modal-texto strong{
    font-weight: 700;
  }

  .modal-texto em,
  .modal-texto i{
    font-style: italic;
  }

  @media (max-width: 1100px){
    .valores-grid{ grid-template-columns: repeat(4, 1fr); }
  }

  @media (max-width: 640px){
    .valores-grid{ grid-template-columns: repeat(2, 1fr); }
    .modal-content{ padding: 32px 24px 28px; }
    .modal-texto p{ font-size: 15px; }
  }

  /* Monitores com pouca altura (notebooks, telas 720p) — encolhe o
     modal na vertical em vez de deixar rolar */
  @media (max-height: 700px){
    .modal-content{ padding: 24px 40px 24px; }
    .modal-titulo{ max-width: 190px; margin-bottom: 10px; }
    .modal-texto p{ font-size: 14px; line-height: 1.35; margin-bottom: 8px; }
    .modal-close{ top: 10px; right: 14px; width: 30px; height: 30px; font-size: 18px; }
  }

  /* =====================================================================
     SESSAO 4 - MANUAL DE CULTURA
     ===================================================================== */

  .manual-section{
    position: relative;
    width: 100%;
    background: var(--azul-fundo);
    overflow: hidden;
    padding: 56px 24px;
  }

  .manual-bg-digital{
    position: absolute;
    inset: 0;
    background-image: url('digital.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 60rem auto;
  }

  .manual-inner{
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .manual-book{
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 380px;
  }

  .manual-book img{
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
  }

  .manual-content{
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0;
  }

  .manual-box{
    display: block;
    background: var(--creme);
    color: var(--texto-escuro);
    border-radius: 26px;
    /* top | right | bottom | left — o left maior compensa o
       margin-left negativo, então o TEXTO fica alinhado com o
       parágrafo abaixo; só o retângulo (fundo) invade atrás do livro */
    padding: 30px 40px 30px 110px;
    margin-left: -70px;
    text-decoration: none;
    font-family: 'FS Lola', 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.35;
    max-width: 760px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.2);
    transition: transform .2s ease;
  }

  .manual-box:hover{
    transform: translateY(-3px);
  }

  .manual-box strong{
    font-weight: 800;
  }

  .manual-cta{
    font-weight: 800;
    text-decoration: underline;
  }

  .manual-text{
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding-left: 40px; /* mesmo recuo do texto dentro do botão, pra alinhar */
    margin-top: 26px;
    color: #ffffff;
  }

  .manual-text p{
    margin: 0;
    font-family: 'FS Lola', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
  }

  @media (max-width: 900px){
    .manual-inner{
      flex-direction: column;
      text-align: center;
    }
    .manual-content{
      padding-left: 0;
    }
    .manual-box{
      margin-left: 0;
      padding: 22px 26px;
    }
    .manual-text{
      padding-left: 0;
    }
    .manual-box, .manual-text{
      max-width: 100%;
    }
  }

  @media (max-width: 480px){
    .manual-book{ width: 220px; }
    .manual-box{ font-size: 21px; padding: 22px 26px; }
  }

  /* =====================================================================
     SESSAO 5 - MENSAGEM DE FECHAMENTO
     ===================================================================== */

  .closing-section{
    position: relative;
    width: 100%;
    background: #F2F2F2;
    overflow: hidden;
    padding-top: 80px;
  }

  .closing-inner{
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: flex;
    align-items: center;
    gap: 48px;
  }

  .closing-visual{
    position: relative;
    flex: 0 0 auto;
    width: 380px;
    margin-right: 24px;
  }

  .closing-bg-digital-img{
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.9;
  }

  .closing-title{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10%;
  }

  .closing-title img{
    display: block;
    width: 100%;
    height: auto;
  }

  .closing-text{
    flex: 1 1 auto;
    min-width: 0;
    color: var(--texto-escuro);
  }

  .closing-text p{
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
  }

  /* Faixa colorida final, mesma altura do #banner::after do topo.
     Sem padding herdado da section — fica 100% da tela e colada
     no fim da página. */
  .closing-stripe{
    display: flex;
    width: 100%;
    height: 7px;
  }

#page-nossa-cultura #banner::after {
    height: 7px !important;
}

  .closing-stripe span{
    flex: 1 1 0;
    display: block;
  }

  @media (max-width: 900px){
    .closing-inner{
      flex-direction: column;
      text-align: center;
    }
    .closing-visual{
      margin-right: 0;
    }
  }

  @media (max-width: 480px){
    .closing-visual{ width: 260px; }
  }
