/* ==========================================================
   Massas Cunha — estilos globais
   ========================================================== */
/* Fontes hospedadas no próprio site (sem Google Fonts: nada de servidor externo bloqueando a página) */
@font-face {
  font-family: "Bueno";
  src: url("../fonts/bueno-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #346136;
  --green-dark: #062922;
  --cream: #fbfde7;
  --yellow: #f7b700;
  --text: #424242;
  --muted: #7a7a7a;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 6px;
  --shadow: 0 18px 40px -18px rgba(6, 41, 34, .35);
  --container: 1180px;
  --header-h: 96px;
  --font-display: "Bueno", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
section[id] { scroll-margin-top: 60px; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: var(--yellow); color: var(--green); padding: 8px 14px; border-radius: 6px; }

.display { font-size: clamp(2.8rem, 6.4vw, 4.75rem); line-height: 1; letter-spacing: 0; text-wrap: balance; }
.hl { color: var(--yellow); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body);
  font-size: .9375rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .85em 2em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--outline { color: var(--white); border-color: var(--white); font-weight: 300; }
.btn--outline:hover { background: var(--white); color: var(--green-dark); }
.btn--yellow { background: var(--yellow); color: var(--green); }
.btn--yellow:hover { background: #ffc61f; }
.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { background: #2a502c; }
.btn--sm { padding: .7em 1.6em; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s, height .35s var(--ease), box-shadow .35s;
}
.site-header.is-scrolled {
  --header-h: 74px;
  background: rgba(6, 41, 34, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -12px rgba(0,0,0,.5);
}
.nav {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__group { display: flex; gap: clamp(24px, 6vw, 90px); }
.nav__group--left { justify-content: flex-end; padding-right: clamp(24px, 6vw, 90px); }
.nav__group--right { grid-column: 3; grid-row: 1; justify-content: flex-start; padding-left: clamp(24px, 6vw, 90px); }
.nav__link {
  position: relative;
  color: var(--white);
  font-size: .8rem; font-weight: 300; letter-spacing: .12em;
  padding: 8px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__logo img { height: calc(var(--header-h) - 20px); width: auto; transition: height .35s var(--ease); }

.nav__toggle { display: none; }
.mobile-menu { display: none; }

/* Seletor de idioma (criado pelo js/i18n.js) */
.lang { position: relative; grid-column: 3; grid-row: 1; justify-self: end; }
.lang__btn {
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 4px;
  border: 0; background: none; cursor: pointer;
  color: var(--white);
  font: inherit; font-size: .8rem; font-weight: 300; letter-spacing: .12em;
  transition: color .2s;
}
.lang__btn:hover, .lang.is-open .lang__btn { color: var(--yellow); }
.lang__btn svg { width: 18px; height: 18px; flex: none; }
.lang__menu {
  position: absolute; top: 100%; right: 0;
  min-width: 148px; margin: 4px 0 0; padding: 6px; list-style: none;
  background: var(--cream); border-radius: 12px; box-shadow: var(--shadow);
  transform-origin: top right;
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.97);
  transition: opacity .15s, transform .15s var(--ease), visibility .15s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__option {
  display: block; width: 100%; min-height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; cursor: pointer;
  color: var(--green-dark); text-align: left;
  font: inherit; font-size: .9rem;
  transition: background-color .15s;
}
.lang__option:hover { background: rgba(6, 41, 34, .08); }
.lang__option[aria-current] { background: var(--yellow); font-weight: 700; }
/* Enquanto a tradução não termina, a página fica oculta (no máximo 2,5 s, caso o script falhe) */
.traduzindo body { visibility: hidden; animation: traducao-limite 0s 2.5s forwards; }
@keyframes traducao-limite { to { visibility: visible; } }

@media (max-width: 1100px) and (min-width: 821px) {
  /* Reserva o espaço do seletor e aproxima os links para tudo caber */
  .nav__group { gap: 24px; }
  .nav__group--left { padding-right: 24px; }
  .nav__group--right { padding-left: 24px; padding-right: 76px; }
}

@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__group { display: none; }
  .nav__logo { grid-column: 1; }
  .lang { grid-column: 2; margin-right: 10px; }
  .nav__toggle {
    grid-column: 3;
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border: 0; border-radius: 12px;
    background: rgba(255,255,255,.1);
    cursor: pointer;
  }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px;
    position: relative; transition: transform .3s var(--ease), background-color .2s;
  }
  .nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
  .nav__toggle span::before { top: -7px; }
  .nav__toggle span::after { top: 7px; }
  .menu-open .nav__toggle span { background: transparent; }
  .menu-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    position: fixed; inset: 0; z-index: 90;
    padding: 100px 28px 40px;
    background: var(--green-dark);
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.4rem; color: var(--cream);
    padding: 6px 0;
    transform: translateY(16px); opacity: 0;
    transition: transform .45s var(--ease), opacity .45s, color .2s;
  }
  .mobile-menu a.is-active { color: var(--yellow); }
  .mobile-menu .btn { margin-top: 24px; align-self: flex-start; font-family: var(--font-body); font-size: .9rem; }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; }
  .menu-open .mobile-menu a { transform: none; opacity: 1; }
  .menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
  .menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
  .menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
  .menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background-color: #000;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
/* Fundo em camada própria: permite o efeito de profundidade e o zoom de entrada */
.hero__bg {
  position: absolute; inset: -12% 0 -12% 0; z-index: -2;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  will-change: transform;
  animation: hero-zoom 2.2s var(--ease) both;
}
.hero__bg--home { background-image: url("../imagens/BANNER.webp"); }
.hero__bg--clientes { background-image: url("../imagens/internas/CLIENTES.webp"); }
.hero__bg--contato { background-image: url("../imagens/internas/CONTATO.webp"); }
.hero__bg--produtos { background-image: url("../imagens/internas/hero-produtos.webp"); }
@keyframes hero-zoom { from { scale: 1.12; opacity: .4; } to { scale: 1; opacity: 1; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%),
              linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 25%);
}
.hero__content { max-width: 560px; }
.hero__content p { font-size: 1rem; max-width: 46ch; color: var(--white); }
.hero .btn { margin-top: 1rem; }

@media (max-width: 820px) {
  .hero { min-height: 88svh; align-items: flex-end; }
  .hero__bg { background-position: 70% center; }
  .hero__bg--home { background-image: url("../imagens/BANNER-mobile.webp") !important; }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.35) 100%); }
}

/* ---------- Faixa "Desde 1963" ---------- */
.ribbon {
  background: var(--green);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
}
.ribbon__inner { display: flex; align-items: center; justify-content: center; gap: 22px; }
.ribbon__title { font-family: var(--font-body); font-style: italic; font-weight: 300; font-size: 1.55rem; margin: 0; letter-spacing: .02em; }
.wheat { width: 46px; height: auto; color: var(--yellow); flex: none; }
.wheat--flip { transform: scaleX(-1); }

/* ---------- Sobre ---------- */
.about {
  background: var(--cream) url("../imagens/FUNDO-GIRL.webp") center / cover no-repeat;
  padding: clamp(72px, 10vw, 130px) 0;
}
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 90px); align-items: center;
}
.about__img img { width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(6,41,34,.25)); }
.about h2 { color: var(--green); }

/* ---------- Depoimentos ---------- */
.testimonials { background: var(--green-dark); padding: clamp(64px, 9vw, 120px) 0; }
.testimonials__card {
  background: var(--cream);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.testimonials h2 { color: var(--green); margin-bottom: 1.1em; }
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.quote {
  margin: 0;
  background: var(--white);
  border-radius: 14px;
  padding: 24px 22px;
  font-family: var(--font-body);
  color: var(--muted);
  font-size: .95rem;
  box-shadow: 0 2px 0 rgba(0,0,0,.03), 0 14px 30px -20px rgba(6,41,34,.35);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex; flex-direction: column;
}
.quote:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(6,41,34,.4); }
.quote blockquote { margin: 0 0 14px; font-style: italic; flex: 1; }
.stars { display: flex; gap: 3px; color: var(--green); margin-bottom: 12px; }
.stars svg { width: 17px; height: 17px; }
.quote cite { font-style: normal; font-weight: 600; }

@media (max-width: 980px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cartões de linha (Massas / Congelados / Representante) ---------- */
.lines { background: var(--cream); padding: clamp(64px, 9vw, 120px) 0; display: grid; gap: 28px; }
.lines__grid { display: grid; gap: 28px; }
.feature {
  border-radius: 24px;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px); align-items: center;
  overflow: hidden;
}
.feature__img img { width: 100%; max-width: 420px; margin-inline: auto; transition: transform .6s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.04) rotate(-1deg); }
.feature p { max-width: 46ch; }
.feature__email { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.feature--green { background: var(--green); color: var(--cream); }
.feature--green h2 { color: var(--cream); }
.feature--yellow { background: var(--yellow); color: var(--green); }
.feature--yellow h2 { color: var(--green); }
.feature--dark { background: var(--green-dark); color: var(--cream); }
.feature--dark h2 { color: var(--yellow); }
.feature--reverse .feature__img { order: 2; }

@media (max-width: 820px) {
  .about__grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature { text-align: left; }
  .feature--reverse .feature__img { order: 0; }
  .feature__img img { max-width: 320px; }
}

/* ---------- Eventos ---------- */
.events { background: var(--cream); padding: clamp(40px, 7vw, 90px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.events__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.events h2 { color: var(--green); }
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 14px;
  scroll-behavior: smooth;
  /* O overflow também recorta a sombra: o padding abre espaço para ela e a margem negativa mantém o alinhamento */
  margin: 0 -14px -8px;
  padding: 8px 14px 28px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 calc((100% - 32px) / 3);
  aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px -10px rgba(6, 41, 34, .28);
  background: #ddd;
}
.carousel__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.carousel__item:hover img { transform: scale(1.05); }
.carousel__nav { display: flex; gap: 10px; margin-top: 8px; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--green); background: transparent; color: var(--green);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.carousel__btn:hover { background: var(--green); color: var(--cream); }
.carousel__btn svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .carousel__item { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 820px) {
  .events__grid { grid-template-columns: minmax(0, 1fr); }
  .carousel { margin-right: calc(50% - 50vw); }
  .carousel__track { margin-right: 0; }
  .carousel__item { flex-basis: 62vw; max-width: 260px; }
}

/* ---------- Onde encontrar (mapa) ---------- */
.onde { background: var(--cream); padding: clamp(64px, 8vw, 110px) 0 0; }
.onde__head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); }
.onde h2 { color: var(--green); }
.onde__head p { margin: 0 auto; max-width: 60ch; }

/* Painel: lista à esquerda e mapa à direita, na mesma altura */
.onde__painel {
  --onde-h: clamp(460px, 44vw, 600px);
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: var(--onde-h);
  background: var(--green-dark); border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(6, 41, 34, .55), 0 0 0 1px rgba(6, 41, 34, .06);
}
.onde__lista { display: flex; flex-direction: column; min-height: 0; padding: 30px 22px 18px; color: var(--cream); }
.onde__numeros { display: flex; gap: 32px; padding: 0 8px 22px; border-bottom: 1px solid rgba(251, 253, 231, .12); }
.onde__numeros p { margin: 0; }
.onde__numeros strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: .9; color: var(--yellow); }
.onde__numeros span { display: block; margin-top: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(251, 253, 231, .65); }
.onde__abas { display: flex; gap: 4px; margin: 20px 0 12px; padding: 4px; border-radius: 999px; background: rgba(251, 253, 231, .07); }
.onde__aba {
  flex: 1; padding: 9px 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: rgba(251, 253, 231, .7);
  transition: background-color .25s, color .25s;
}
.onde__aba span { margin-left: 3px; font-weight: 600; opacity: .6; }
.onde__aba:hover { color: var(--cream); }
.onde__aba.is-active { background: var(--yellow); color: var(--green-dark); }
.onde__cidades {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  list-style: none; margin: 0 -6px; padding: 0 6px;
  scrollbar-width: thin; scrollbar-color: rgba(251, 253, 231, .22) transparent;
}
.onde__cidade {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  font: inherit; font-size: .95rem; text-align: left; color: var(--cream);
  transition: background-color .2s, color .2s;
}
.onde__cidade small { font-size: .68rem; font-weight: 800; letter-spacing: .12em; color: rgba(251, 253, 231, .45); }
.onde__fabrica {
  padding: 3px 9px; border-radius: 999px; background: var(--yellow); color: var(--green-dark);
  font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.onde__cidade:hover, .onde__cidade:focus-visible { background: rgba(251, 253, 231, .08); }
.onde__cidade.is-active { background: rgba(247, 183, 0, .14); color: var(--yellow); }
.onde__cidade.is-active small { color: var(--yellow); }

/* Mapa: base em tons neutros para os pins da marca se destacarem.
   Contexto próprio: as camadas do Leaflet (z-index até 1000) não passam por cima do header fixo. */
.onde__mapa { position: relative; z-index: 0; height: 100%; background: #eceee2; font-family: var(--font-body); }
/* Filtro em cada imagem, e não na camada inteira: assim o navegador redesenha nítido depois do zoom */
.onde__mapa .leaflet-tile { filter: grayscale(1) sepia(.18) contrast(.88) brightness(1.06); }
.onde__mapa .leaflet-bar { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(6, 41, 34, .45); }
.onde__mapa .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; font-size: 1.15rem; color: var(--green-dark); border-color: rgba(6, 41, 34, .08); }
.onde__mapa .leaflet-bar a:hover { background: var(--cream); color: var(--green); }
.onde__mapa .leaflet-control-attribution { font-size: .62rem; background: rgba(251, 253, 231, .8); color: var(--muted); }
.onde__mapa .leaflet-control-attribution a { color: var(--green); }

.mapa-pin span {
  display: block; box-sizing: border-box; width: 100%; height: 100%; border-radius: 50%;
  background: var(--green); border: 3px solid var(--white);
  box-shadow: 0 6px 14px -4px rgba(6, 41, 34, .55);
  transition: transform .25s var(--ease), background-color .25s;
}
.mapa-pin:hover span, .mapa-pin.is-active span { transform: scale(1.35); background: var(--green-dark); }
.mapa-pin--fabrica span { background: var(--yellow); border-color: var(--green-dark); }
.mapa-pin--fabrica:hover span, .mapa-pin--fabrica.is-active span { background: var(--yellow); }
/* Onda em volta da fábrica */
.mapa-pin--fabrica::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: rgba(247, 183, 0, .35); animation: pin-onda 2.4s ease-out infinite;
}
@keyframes pin-onda { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.onde__mapa .leaflet-tooltip.mapa-tooltip {
  padding: 5px 10px; border: 0; border-radius: 999px; background: var(--green-dark); color: var(--cream);
  font-size: .78rem; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(6, 41, 34, .6);
}
.onde__mapa .leaflet-tooltip.mapa-tooltip::before { display: none; }
.onde__mapa .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(6, 41, 34, .55); }
.onde__mapa .leaflet-popup-content { margin: 16px 18px; font-size: .9rem; line-height: 1.4; }
.onde__mapa .leaflet-popup-close-button { top: 6px; right: 6px; color: var(--muted); }
.mapa-popup__cidade { display: block; padding-right: 14px; color: var(--green-dark); font-size: 1.05rem; }
.mapa-popup__tag {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--green-dark); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.onde__mapa .mapa-popup__link {
  display: inline-flex; align-items: center; margin-top: 12px; padding: 8px 14px; border-radius: 999px;
  background: var(--green); color: var(--cream); font-size: .8rem; font-weight: 700; text-decoration: none;
  transition: background-color .2s;
}
.onde__mapa .mapa-popup__link:hover { background: var(--green-dark); }

@media (max-width: 820px) {
  .onde__painel { grid-template-columns: minmax(0, 1fr); grid-template-rows: 380px auto; border-radius: 22px; }
  .onde__mapa { grid-row: 1; }
  .onde__lista { padding: 22px 16px 14px; }
  .onde__cidades { max-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .mapa-pin--fabrica::before { animation: none; opacity: 0; }
}

/* ---------- Redes sociais ---------- */
.social { background: var(--cream); padding: clamp(48px, 7vw, 90px) 0 0; text-align: center; position: relative; }
.social h2 { color: var(--green); }
.social h2 img { display: inline-block; width: .9em; height: .9em; vertical-align: -.08em; }
.social__phone { display: inline-block; position: relative; margin-top: 10px; transition: transform .4s var(--ease); }
.social__phone:hover { transform: translateY(-6px) rotate(-1.5deg); }
.social__phone img { width: 300px; margin-inline: auto; position: relative; z-index: 2; }
.social__phone .play {
  position: absolute; z-index: 3; left: 50%; top: 46%;
  width: 64px; height: 64px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.65); color: #fff;
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background-color .3s;
}
.social__phone:hover .play { transform: translate(-50%, -50%) scale(1.1); background: var(--yellow); color: var(--green-dark); }
.social__phone .play svg { width: 26px; height: 26px; margin-left: 4px; }
.social__links { display: flex; justify-content: center; gap: 12px; margin: 26px 0 0; padding-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--cream); position: relative; padding-bottom: 32px; }
.site-footer__wave { display: block; width: 100%; height: clamp(40px, 7vw, 100px); color: var(--cream); background: var(--green-dark); }
.footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px; padding: clamp(36px, 6vw, 72px) 0 48px;
  font-size: .95rem;
}
.footer__logo { width: 150px; margin-bottom: 20px; }
.footer__grid h3 { font-family: var(--font-body); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__grid a { transition: color .2s; }
.footer__grid a:hover { color: var(--yellow); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--yellow); }
.footer__bottom {
  border-top: 1px solid rgba(251,253,231,.14);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: rgba(251,253,231,.65);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.45);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Páginas internas ---------- */
.products { padding: clamp(64px, 9vw, 120px) 0; }
.products--dark { background: var(--green-dark); }
.products--light { background: var(--cream); }
.products__panel { border-radius: 28px; padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 48px); }
.products--dark .products__panel { background: var(--cream); }
.products--light .products__panel { background: var(--yellow); }
.products h2 { text-align: center; color: var(--green); margin-bottom: 1em; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  background: var(--green-dark);
  border-radius: 18px;
  padding: 22px 22px 26px;
  display: flex; flex-direction: column;
  color: var(--cream);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -22px rgba(0,0,0,.6); }
.product__img { position: relative; aspect-ratio: 1; margin: -6px -6px 14px; overflow: hidden; border-radius: 12px; }
/* Foto real do produto por cima da embalagem, revelada no hover */
.product__img .product__photo { position: absolute; inset: 0; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
@media (hover: hover) { .product:hover .product__img .product__photo { opacity: 1; } }
.product__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.product:hover .product__img img { transform: scale(1.06); }
.product h3 { color: var(--yellow); font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .3em; }
.product p { font-family: var(--font-body); font-size: .9rem; margin-bottom: 18px; }
.product .btn { margin-top: auto; align-self: flex-start; font-weight: 400; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product { padding: 12px 12px 16px; }
  .product__img { margin: 0 0 10px; }
  .product h3 { font-size: 1.15rem; }
  .product p { font-size: .8rem; margin-bottom: 12px; }
  .product .btn { padding: .65em 1em; font-size: .72rem; width: 100%; }
}

/* ---------- Página de produto ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pdp-hero {
  background: radial-gradient(ellipse at 30% 55%, #0d3d33 0%, var(--green-dark) 60%);
  color: var(--cream);
  padding: calc(var(--header-h) + 32px) 0 clamp(48px, 7vw, 90px);
}
.pdp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.pdp-hero__img img { width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.pdp-gallery { display: grid; gap: 14px; width: 100%; max-width: 480px; margin-inline: auto; }
.pdp-gallery__main {
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 24px;
  background: #0b3a30;
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .7);
  transition: background-color .3s;
}
/* A foto da embalagem tem fundo próprio verde-escuro: a moldura assume a mesma cor */
.pdp-gallery__main:has(img.is-contain) { background: #062a20; }
.pdp-gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.pdp-gallery__main img.is-contain { object-fit: contain; }
.pdp-gallery__main img.is-fading { opacity: 0; }
.pdp-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.pdp-gallery__thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  flex: 0 0 68px; aspect-ratio: 1; padding: 0;
  border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  background: #0b3a30; cursor: pointer;
  opacity: .55; transition: opacity .25s, border-color .25s, transform .25s var(--ease);
}
.pdp-thumb:hover { opacity: .9; transform: translateY(-2px); }
.pdp-thumb.is-active { opacity: 1; border-color: var(--yellow); }
.pdp-thumb:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb[data-fit="contain"] img { object-fit: contain; padding: 4px; }
.pdp-hero h1 { color: var(--cream); margin-bottom: .2em; }
.pdp-peso { font-size: 1.15rem; color: var(--yellow); font-weight: 600; margin-bottom: 1.6em; }
.pdp-resumo { margin-bottom: 1.6em; }
.pdp-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(251,253,231,.75); margin-bottom: 8px; min-height: 44px;
  transition: color .2s;
}
.pdp-back:hover { color: var(--yellow); }
.pdp-back svg { width: 16px; height: 16px; }

.pdp-details { background: var(--cream); padding: clamp(48px, 7vw, 100px) 0; }
.pdp-card {
  background: var(--green-dark); color: var(--cream);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.pdp-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--yellow); margin-bottom: .45em; }
.pdp-card__text p { font-size: .98rem; line-height: 1.7; color: rgba(251,253,231,.9); }
.pdp-card__text strong { color: var(--cream); }
.pdp-alert {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 28px; padding: 18px 20px;
  border-radius: 14px;
  background: rgba(247,183,0,.1); border: 1px solid rgba(247,183,0,.35);
}
.pdp-alert > svg { width: 26px; height: 26px; color: var(--yellow); flex: none; margin-top: 6px; }
.pdp-alert h2 { font-size: 1.5rem; margin-bottom: .2em; }
.pdp-alert p { margin: 0; font-weight: 700; letter-spacing: .02em; color: var(--cream); }

.nutri { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: .92rem; background: rgba(255,255,255,.03); border-radius: 14px; overflow: hidden; }
.nutri caption { caption-side: top; text-align: left; font-family: var(--font-body); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--yellow); padding-bottom: 12px; }
.nutri td, .nutri th { padding: 11px 14px; border-bottom: 1px solid rgba(251,253,231,.12); text-align: right; font-weight: 400; }
.nutri thead td { text-align: left; color: rgba(251,253,231,.8); line-height: 1.6; }
.nutri thead th { font-weight: 600; color: var(--yellow); }
.nutri tbody th { text-align: left; }
.nutri tbody tr:nth-child(3) th, .nutri tbody tr:nth-child(4) th,
.nutri tbody tr:nth-child(7) th, .nutri tbody tr:nth-child(8) th { padding-left: 28px; color: rgba(251,253,231,.8); }
.nutri tbody tr:hover { background: rgba(255,255,255,.05); }
.nutri tbody tr:last-child td, .nutri tbody tr:last-child th { border-bottom: 0; }
.nutri__note { font-size: .8rem; color: rgba(251,253,231,.65); margin: 12px 0 0; }

.pdp-related { background: var(--cream); padding: 0 0 clamp(64px, 8vw, 110px); }
.pdp-related h2 { color: var(--green); text-align: center; margin-bottom: .9em; }
.product-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 270px)); justify-content: center; }
.product--link h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.product--link p { margin-bottom: 0; }

@media (max-width: 520px) { .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .pdp-hero__grid, .pdp-card { grid-template-columns: minmax(0, 1fr); }
  .pdp-hero__img img { max-width: 340px; }
  .pdp-gallery { max-width: 380px; }
  .pdp-gallery__thumbs { justify-content: center; }
  .pdp-hero__info { text-align: center; }
  .pdp-card { border-radius: 18px; }
}
@media (max-width: 420px) { .nutri td, .nutri th { padding: 9px 8px; font-size: .82rem; } .nutri tbody tr:nth-child(n) th { padding-left: 8px; } }

/* ---------- Clientes ---------- */
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(52, 97, 54, .1); color: var(--green);
  font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.partners { background: var(--cream); padding: clamp(72px, 9vw, 120px) 0; }
.partners__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.partners__head h2 { color: var(--green); }
.partners__head p { margin: 0 auto; max-width: 56ch; }
.partners__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(6, 41, 34, .06);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 22px 40px -30px rgba(6, 41, 34, .45);
  transition: opacity .9s var(--ease), transform .45s var(--ease), box-shadow .45s;
}
.partner img { width: auto; height: auto; max-width: min(100%, 200px); max-height: 84px; transition: filter .45s, transform .45s var(--ease); }
@media (hover: hover) {
  .partner img { filter: grayscale(1) opacity(.7); }
  .partner:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 30px 50px -28px rgba(6, 41, 34, .5); }
  .partner:hover img { filter: none; transform: scale(1.05); }
}

.cta-band { background: var(--cream); padding: clamp(64px, 8vw, 110px) 0; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 36px; align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 28px;
  background: var(--green); color: var(--cream);
}
.cta::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -160px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 183, 0, .28), rgba(247, 183, 0, 0) 70%);
}
.cta h2 { color: var(--cream); font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.cta p { margin: 0; max-width: 52ch; color: rgba(251, 253, 231, .85); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .partners__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .partner { padding: 20px; border-radius: 16px; }
  .cta { grid-template-columns: minmax(0, 1fr); }
}

.contact-cards { display: grid; gap: 14px; margin: 26px 0 30px; max-width: 520px; }
.contact-card {
  display: flex; gap: 16px; align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border-radius: 14px; padding: 16px 18px;
  color: var(--white);
  transition: background-color .25s, border-color .25s;
}
a.contact-card:hover { background: rgba(255,255,255,.16); border-color: var(--yellow); }
.contact-card svg { width: 24px; height: 24px; color: var(--yellow); flex: none; }

.legal { padding: calc(var(--header-h) + 60px) 0 90px; background: var(--cream); }
.legal .container { max-width: 820px; }
.legal h1 { color: var(--green); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal h2 { color: var(--green); font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Perguntas frequentes ---------- */
.faq { background: var(--cream); padding: clamp(64px, 8vw, 110px) 0 clamp(24px, 4vw, 48px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq h2 { color: var(--green); }
.faq a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  background: var(--white); border: 1px solid rgba(6, 41, 34, .07); border-radius: 16px;
  box-shadow: 0 16px 30px -26px rgba(6, 41, 34, .45);
  transition: box-shadow .3s;
}
.faq__item[open] { box-shadow: 0 22px 40px -26px rgba(6, 41, 34, .55); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px;
  font-weight: 700; color: var(--green-dark); font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(52, 97, 54, .1); color: var(--green);
  font-size: 1.3rem; font-weight: 400; line-height: 1;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--yellow); color: var(--green-dark); }
.faq__item summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 16px; }
.faq__item p { margin: 0; padding: 0 22px 22px; }
@media (max-width: 820px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

address { font-style: normal; }

/* ---------- Animações de entrada ---------- */
/* Só esconde quando o JS está ativo: sem JS (e para buscadores e agentes) o conteúdo aparece direto */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .partner:nth-child(2) { transition-delay: 80ms; }
.js .partner:nth-child(3) { transition-delay: 160ms; }
.js .partner:nth-child(4) { transition-delay: 240ms; }
/* Navegadores automatizados (agentes): sem animações para capturas e leituras confiáveis */
.agent .reveal, .agent .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
.agent .hero__bg { animation: none; }

/* Títulos que sobem palavra por palavra (o JS envolve cada palavra) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.is-visible .w > span, .w.is-visible > span { transform: none; }

/* Rolagem suave (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Transição entre páginas (navegadores compatíveis; nos outros, a navegação é normal) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Galeria em tela cheia ---------- */
.carousel__item { cursor: zoom-in; position: relative; }
.carousel__item:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.carousel__item::after {
  content: ""; position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(6,41,34,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbfde7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease);
}
.carousel__item:hover::after, .carousel__item:focus-visible::after { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: auto 1fr auto; align-items: center;
  background: rgba(3, 20, 17, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
  color: var(--cream);
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: .9rem; letter-spacing: .1em; }
.lightbox__stage { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; padding: 0 72px; }
.lightbox__img {
  max-height: calc(100svh - 150px); max-width: 100%; width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  transition: opacity .25s, transform .45s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__img.is-loading { opacity: 0; transform: scale(.97); }
.lightbox__btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(251,253,231,.3); background: rgba(255,255,255,.06); color: var(--cream);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.lightbox__btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--green-dark); }
.lightbox__btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }
.lightbox__dots { display: flex; justify-content: center; gap: 6px; padding: 18px; flex-wrap: wrap; }
.lightbox__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(251,253,231,.3); transition: background-color .3s, width .3s var(--ease); }
.lightbox__dots span.is-active { background: var(--yellow); width: 22px; border-radius: 4px; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 0 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -66px; translate: none; }
  .lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }
  .lightbox__img { max-height: calc(100svh - 190px); }
}

/* ---------- Página 404 ---------- */
.notfound {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: radial-gradient(ellipse at 50% 40%, #0d3d33 0%, var(--green-dark) 65%);
  color: var(--cream);
}
.notfound .notfound__num { font-family: var(--font-display); font-size: clamp(7rem, 26vw, 15rem); line-height: .85; color: var(--yellow); margin: 0; }
.notfound h1 { color: var(--cream); margin: .2em 0 .3em; }
.notfound p { max-width: 42ch; margin: 0 auto 2em; color: rgba(251,253,231,.85); }
.notfound__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .w > span { transform: none; }
  .hero__bg { animation: none; }
  .marquee { animation: none; }
  * { transition-duration: 0s !important; }
  @view-transition { navigation: none; }
}
