/* CSS DA PÁGINA home (/site) — só esta página carrega este arquivo.
   O hero tem o CSS dele: css/hero.css. O cartão dos Destaques: css/prg-card.css (o mesmo da Programação). */

/* barra do topo na home: em cima do hero só o ☰ vinho; o nome aparece quando a barra ganha fundo */
.site--home .site-topo:not(.topo-com-fundo) { color: #b3121f; }
.site--home .site-topo:not(.topo-com-fundo) .site-topo__marca { opacity: 0; pointer-events: none; }
.site--home .site-topo:not(.topo-com-fundo) .site-topo__abrir { color: #f6e7c8; }

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

/* peças de couro que as duas seções usam: botão e etiqueta com pesponto (o tracejado = a costura) */
.dst__botao, .nov__botao {
  display: inline-flex; align-items: center; gap: .8rem; padding: 1.3rem 2.6rem; border-radius: 99px;
  background: #8a1a14 url('../../img/hero/botao.webp?v=20260918c') center / cover no-repeat; color: #fbe9c6;
  font-family: var(--site-fonte); font-size: 1.8rem; text-decoration: none; box-shadow: 0 1rem 2.4rem -1rem rgba(30, 0, 6, .7);
  outline: 2px dashed rgba(251, 233, 198, .55); outline-offset: -.6rem; transition: transform .3s, box-shadow .3s;
}
.dst__botao:hover, .nov__botao:hover { transform: translateY(-.3rem); box-shadow: 0 1.6rem 3rem -1rem rgba(30, 0, 6, .8); }
.dst__botao:focus-visible, .nov__botao:focus-visible { outline: 3px solid #f3c969; outline-offset: 3px; }

/* ═════════ EMENDA ENTRE AS SEÇÕES (Sandro, 10/10/2026: "quando a de baixo sobe, está cortado de vez; deveria ter uma
   borda, uma sombra, mostrando que é outra área subindo por cima — mas a ponta não tão brusca") ═════════
   A seção que sobe tem os cantos de cima arredondados, uma sombra forte PARA CIMA (sobre a de baixo) e, no alto,
   uma faixa de couro com pesponto dourado — como a barra de um tecido costurado. */
.secoes > .secao.secao--destaques:not(.secao--hero), .secoes > .secao.secao--novidades:not(.secao--hero) {
  position: sticky; border-radius: 2.8rem 2.8rem 0 0; box-shadow: 0 -1.6rem 3.6rem rgba(30, 0, 8, .38), 0 -.2rem .6rem rgba(30, 0, 8, .25);
}
.secao--destaques::before, .secao--novidades::before {
  content: ""; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 1.4rem; pointer-events: none; border-radius: 2.8rem 2.8rem 0 0;
  background: linear-gradient(#6d0d18, #4d0710); box-shadow: inset 0 -.1rem 0 rgba(0, 0, 0, .35), 0 .3rem .6rem rgba(0, 0, 0, .25);
}
.secao--destaques::after, .secao--novidades::after {   /* o pesponto da faixa */
  content: ""; position: absolute; z-index: 4; top: .62rem; left: 3.2rem; right: 3.2rem; border-top: .2rem dashed rgba(243, 201, 105, .75); pointer-events: none;
}
@media (max-width: 767px) {
  .secoes > .secao.secao--destaques:not(.secao--hero), .secoes > .secao.secao--novidades:not(.secao--hero),
  .secao--destaques::before, .secao--novidades::before { border-radius: 1.8rem 1.8rem 0 0; }
  .secao--destaques::after, .secao--novidades::after { left: 2rem; right: 2rem; }
}

/* ═════════ DESTAQUES DA SEMANA — retalhos de chita + couro vinho; carrossel andando (só CSS) ═════════ */
.secoes > .secao.secao--destaques:not(.secao--hero) {   /* a arte de retalhos É o fundo (aqui no lugar do G gigante do geral.css) */
  background: #4a0d12 url('../../img/home/destaques-fundo.webp?v=20261010') center / cover no-repeat;
  color: #fbe9c6; overflow: hidden;
}
.secao--destaques .secao__dentro { width: 100%; padding: 7rem 0; }
.dst { display: grid; justify-items: center; gap: 3.2rem; }
.dst__topo { display: grid; justify-items: center; gap: 1rem; padding: 2.4rem 4rem 2.8rem; text-align: center;
             background: rgba(60, 4, 12, .62); border-radius: 1.6rem; backdrop-filter: blur(2px);
             outline: 2px dashed rgba(243, 201, 105, .55); outline-offset: -.8rem; box-shadow: 0 2rem 4rem -2rem rgba(0, 0, 0, .6); }
.dst__selo { padding: .4rem 1.4rem; border-radius: 99px; background: #e1a12a; color: #3d0010; font-weight: 800; font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase; }
.dst__titulo { margin: 0; font-size: clamp(3.2rem, 5vw, 5.6rem); line-height: 1; color: #fbe9c6; text-shadow: 0 .3rem 1rem rgba(0, 0, 0, .5); }
.dst__titulo em { font-style: normal; color: #f3c969; }
.dst__sub { margin: 0; font-size: 1.6rem; color: #f4dcc0; }

/* a faixa: as pontas somem no tecido (máscara), os cartões passam por baixo */
.dst__faixa { width: 100%; overflow: hidden; padding: 1.6rem 0 2.4rem;
              mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
              -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.dst__trilho { display: flex; width: max-content; animation: dst-anda 60s linear infinite; }
.dst__faixa:hover .dst__trilho, .dst__faixa:focus-within .dst__trilho { animation-play-state: paused; }
.dst__grupo { display: flex; gap: 2.4rem; padding-right: 2.4rem; }
.dst__cartao { flex: 0 0 auto; width: clamp(22rem, 19vw, 28rem); box-shadow: 0 2rem 3.6rem -1.6rem rgba(0, 0, 0, .75), 0 0 0 .4rem rgba(251, 233, 198, .9); }
@keyframes dst-anda { to { transform: translateX(-50%); } }
/* velocidade: ~7 s por cartão, qualquer que seja a quantidade (a classe vem do destaques.php) */
.dst--v8  .dst__trilho { animation-duration: 56s; }
.dst--v12 .dst__trilho { animation-duration: 84s; }
.dst--v16 .dst__trilho { animation-duration: 112s; }
.dst--v24 .dst__trilho { animation-duration: 168s; }
.dst--v32 .dst__trilho { animation-duration: 224s; }
.dst--v40 .dst__trilho { animation-duration: 280s; }
.dst--v48 .dst__trilho { animation-duration: 336s; }
.dst--v64 .dst__trilho { animation-duration: 448s; }

/* COM CONTROLE (21/10/2026): o home.js põe .dst--js — quem anda é a rolagem (dá para puxar), não mais a animação CSS */
.dst--js .dst__trilho { animation: none; }
.dst--js .dst__faixa { overflow-x: auto; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.dst--js .dst__faixa::-webkit-scrollbar { display: none; }
.dst--js .dst__faixa.arrastando { cursor: grabbing; user-select: none; }
.dst--js .dst__faixa.arrastando a { pointer-events: none; }
.dst__controle { display: none; gap: 1.6rem; justify-content: center; margin-top: -.8rem; }
.dst--js .dst__controle { display: flex; }
.dst__seta { display: grid; place-items: center; width: 4.8rem; height: 4.8rem; border-radius: 50%; cursor: pointer; font-size: 2.2rem;
             color: #f3c969; background: radial-gradient(circle at 35% 30%, #a3172c, #6d0d18 60%, #4d0710);
             border: .3rem solid #d9962b; outline: 2px dashed rgba(243, 201, 105, .7); outline-offset: -.8rem;
             box-shadow: 0 .8rem 1.6rem -.6rem rgba(30, 0, 6, .7); transition: transform .2s ease; }
.dst__seta:hover, .dst__seta:focus-visible { transform: scale(1.1); }

/* sem programação ainda: aviso bonito no couro */
.dst__breve { display: grid; justify-items: center; gap: 2.4rem; max-width: 64rem; padding: 3.2rem 4rem; text-align: center;
              background: rgba(60, 4, 12, .62); border-radius: 1.6rem; outline: 2px dashed rgba(243, 201, 105, .55); outline-offset: -.8rem; }
.dst__breve p { margin: 0; font-size: 1.8rem; line-height: 1.5; color: #fbe9c6; }

@media (prefers-reduced-motion: reduce) {
  .dst__trilho { animation: none; }
  .dst__faixa { overflow-x: auto; scroll-snap-type: x mandatory; mask-image: none; -webkit-mask-image: none; }
  .dst__grupo[aria-hidden="true"] { display: none; }
  .dst__cartao { scroll-snap-align: start; }
}
/* celular (10/10/2026): a seção CABE numa tela só (a seguinte sobe por cima — o que passar da tela não aparece);
   o alto começa abaixo da barra do topo (~8rem) */
@media (max-width: 767px) {
  .secao--destaques .secao__dentro { padding: 9rem 0 3rem; }
  .dst { gap: 1.8rem; }
  .dst__topo { gap: .6rem; padding: 1.4rem 2rem 1.6rem; margin-inline: 1.6rem; outline-offset: -.6rem; }
  .dst__selo { font-size: 1.1rem; padding: .3rem 1.1rem; }
  .dst__titulo { font-size: 3rem; }
  .dst__sub { font-size: 1.35rem; }
  .dst__faixa { padding: .8rem 0 1.4rem; }
  .dst__grupo { gap: 1.6rem; padding-right: 1.6rem; }
  .dst__cartao { width: 58vw; max-width: 24rem; }
  .dst__botao, .nov__botao { font-size: 1.6rem; padding: 1.1rem 2.2rem; }
  .dst__breve { margin-inline: 1.6rem; padding: 2.4rem 2rem; }
  .dst__breve p { font-size: 1.6rem; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .dst__cartao { width: 50vw; }
  .dst__sub { display: none; }
}

/* ═════════ NOVIDADES / "VEM SABER MAIS" — papel kraft do hero, flores e cacto do menu ═════════ */
.secoes > .secao.secao--novidades:not(.secao--hero) {   /* o G gigante (geral.css) continua, por cima do papel kraft do hero */
  background-color: #e8d6b0;
  background-image: url('../../img/g-fundo.webp?v=20260918b'), url('../../img/hero/papel.webp?v=20260918c');
  background-repeat: no-repeat, no-repeat; background-attachment: fixed, scroll;
  background-size: auto 90svh, cover; background-position: right calc(-90svh * 186 / 268 / 2) center, center;
  color: #3d0010; overflow: hidden;
}
.nov { position: relative; display: grid; gap: 3.2rem; }
.nov__enfeite { position: absolute; pointer-events: none; z-index: 0; }
.nov__enfeite--flor { top: -7rem; right: -9rem; width: clamp(14rem, 17vw, 24rem); transform: scaleX(-1) rotate(-8deg); }
.nov__enfeite--cacto { left: -7rem; bottom: -12rem; width: clamp(8rem, 9vw, 13rem); }
.nov__titulo { position: relative; z-index: 1; margin: 0; font-size: clamp(3.2rem, 5vw, 5.6rem); line-height: 1; color: var(--site-vinho); }
.nov__titulo em { font-style: normal; color: #c8641a; }
.nov__grade { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.2rem; align-items: stretch; }

/* a novidade: couro vinho com o sol de couro girando atrás */
.nov__destaque { position: relative; overflow: hidden; isolation: isolate; display: grid; align-content: end; gap: 1.4rem; min-height: 42rem; padding: 4rem;
                 border-radius: 1.8rem; background: radial-gradient(120% 90% at 85% 10%, #a3242a, #6d0d18 55%, #3d0010); color: #fbe9c6;
                 outline: 2px dashed rgba(243, 201, 105, .6); outline-offset: -1rem; box-shadow: 0 2.6rem 5rem -2.4rem rgba(61, 0, 16, .7); }
.nov__sol { position: absolute; z-index: -1; top: -14%; right: -18%; width: 78%; opacity: .5; animation: nov-gira 80s linear infinite; }
@keyframes nov-gira { to { transform: rotate(360deg); } }
.nov__logo { justify-self: start; max-width: 18rem; max-height: 6rem; object-fit: contain; padding: .8rem 1.2rem; border-radius: .6rem; background: #fff; box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, .25); }
.nov__etiqueta { justify-self: start; padding: .5rem 1.4rem; border-radius: .4rem; background: #e1a12a; color: #3d0010; font-weight: 800; font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-2deg); }
.nov__dest-titulo { margin: 0; font-size: clamp(2.8rem, 3.2vw, 4rem); line-height: 1.08; color: #fbe9c6; }
.nov__dest-texto { margin: 0; max-width: 46ch; font-size: 1.7rem; line-height: 1.55; color: #f4dcc0; }
.nov__botao { justify-self: start; margin-top: .8rem; }

/* as três chamadas: cartões de papel com pesponto vinho */
.nov__chamadas { display: grid; gap: 1.8rem; }
.nov__chamada { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 1.8rem 2.2rem; border-radius: 1.4rem;
                background: rgba(255, 248, 232, .92); color: #3d0010; text-decoration: none; outline: 2px dashed rgba(128, 0, 32, .35); outline-offset: -.7rem;
                box-shadow: 0 1.4rem 3rem -2rem rgba(61, 0, 16, .55); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.nov__chamada:hover { transform: translateX(.6rem); box-shadow: 0 2rem 3.6rem -2rem rgba(61, 0, 16, .7); }
.nov__chamada:focus-visible { outline: 3px solid var(--site-vinho); outline-offset: 3px; }
.nov__texto { display: grid; gap: .3rem; min-width: 0; }
.nov__texto small { font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c8641a; }
.nov__texto strong { font-family: var(--site-fonte); font-weight: 400; font-size: clamp(1.9rem, 1.7vw, 2.4rem); line-height: 1.15; color: var(--site-vinho); }
.nov__seta { font-size: 2.4rem; color: var(--site-vinho); transition: transform .35s; }
.nov__chamada:hover .nov__seta { transform: translateX(.4rem); }

.nov__arte { display: flex; align-items: center; width: 14.6rem; height: 9rem; }
.nov__arte--pessoas img { width: 4.8rem; height: 4.8rem; margin-left: -1.2rem; border-radius: 50%; object-fit: cover; border: .3rem solid #fff8e8; box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .25); }
.nov__arte--pessoas img:first-child { margin-left: 0; }
.nov__arte--cartazes { position: relative; }
.nov__arte--cartazes img { position: absolute; top: .4rem; width: 5.6rem; aspect-ratio: 3 / 4; object-fit: cover; border-radius: .4rem; border: .2rem solid #fff8e8; box-shadow: 0 .6rem 1.2rem rgba(0, 0, 0, .3); }
.nov__arte--cartazes img:nth-child(1) { left: 0; transform: rotate(-9deg); }
.nov__arte--cartazes img:nth-child(2) { left: 3.6rem; transform: rotate(2deg); z-index: 1; }
.nov__arte--cartazes img:nth-child(3) { left: 7.2rem; transform: rotate(10deg); z-index: 2; }
.nov__arte--ingresso img { width: 8rem; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 .6rem 1rem rgba(0, 0, 0, .3)); }

@media (prefers-reduced-motion: reduce) { .nov__sol { animation: none; } }
@media (max-width: 900px) {
  .nov__grade { grid-template-columns: 1fr; }
  .nov__destaque { min-height: 34rem; padding: 3rem 2.6rem; }
}
@media (max-width: 1100px) {
  .secao--novidades .secao__dentro { padding-top: 12rem; }   /* tablet: o título não fica em cima da borda de couro do papel */
}
@media (max-width: 767px) {
  .secao--novidades .secao__dentro { padding: 11rem 0 5rem; }   /* o título não fica em cima da borda de couro do papel */
  .nov { gap: 2rem; }
  .nov__grade { gap: 1.6rem; }
  .nov__destaque { min-height: 0; gap: 1rem; padding: 2.6rem 2.2rem; outline-offset: -.7rem; }
  .nov__sol { width: 95%; top: -10%; right: -35%; }
  .nov__dest-titulo { font-size: 2.6rem; }
  .nov__dest-texto { font-size: 1.5rem; }
  .nov__chamadas { gap: 1.2rem; }
  .nov__chamada { padding: 1.3rem 1.6rem; outline-offset: -.5rem; }
  .nov__texto strong { font-size: 1.8rem; }
}
@media (max-width: 560px) {
  .nov__chamada { grid-template-columns: 1fr auto; gap: 1.2rem; padding: 1.6rem 1.8rem; }
  .nov__arte { display: none; }
  .nov__enfeite--flor { right: -7rem; top: -5rem; }
}
