/* ===========================================================
   ESSF — European Schools for a Sustainable Fashion
   Paleta principal: verde-floresta + branco + verde-lima
   =========================================================== */

:root {
  --green-900: #0e3b1f;
  --green-800: #124d28;
  --green-700: #1a6b38;
  --green-600: #22854a;
  --green-500: #2fa15a;
  --green-300: #9fd5b1;
  --green-050: #eaf4ee;
  --lime:      #b9e86b;
  --white:     #ffffff;
  --cream:     #f7f6f1;
  --ink:       #0c1a12;
  --muted:     #556b5c;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(14, 59, 31, 0.08);
  --shadow-md: 0 18px 40px rgba(14, 59, 31, 0.18);
  --shadow-lg: 0 30px 80px rgba(14, 59, 31, 0.25);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--green-700) var(--green-050);
}

/* WebKit (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--green-050);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--green-700), var(--green-800));
  border-radius: 999px;
  border: 3px solid var(--green-050);   /* "padding" visual à volta do thumb */
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--green-600), var(--green-700));
  background-clip: padding-box;
  border: 3px solid var(--green-050);
}
::-webkit-scrollbar-thumb:active {
  background: var(--green-800);
  background-clip: padding-box;
  border: 3px solid var(--green-050);
}
::-webkit-scrollbar-corner {
  background: var(--green-050);
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 1rem;
}
.section__eyebrow.light { color: var(--lime); }

.section__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--green-900);
  margin-bottom: 1.6rem;
}
.section__title.light { color: var(--white); }

.section__text {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 56ch;
}

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  position: relative;
}


.section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__head .section__text { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--green-800);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--green-800);
  transform: translateY(-3px);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding-top: .65rem;
  padding-bottom: .65rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: .1em;
  transition: color .4s var(--ease);
}
.nav.is-scrolled .nav__brand { color: var(--green-900); }

.nav__logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: var(--green-900);
}

.nav__title { font-size: 1.1rem; }

.nav__links {
  display: flex;
  gap: 2rem;
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
  transition: color .4s var(--ease);
}
.nav.is-scrolled .nav__links { color: var(--green-900); }
.nav__links a {
  position: relative;
  padding: .4rem 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 42px; height: 42px;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: .3s var(--ease);
}
.nav.is-scrolled .nav__burger span { background: var(--green-900); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;     /* viewport dinâmico em mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  padding:
    clamp(4.5rem, 9vh, 6.5rem)   /* topo: deixa folga para a nav */
    clamp(1rem, 4vw, 2.5rem)
    clamp(1.5rem, 4vh, 3rem);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--green-800);    /* base sólida — visível enquanto o vídeo carrega ou se falhar */
}

/* Vídeo de fundo */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s var(--ease);
  /* Aceleração GPU + evitar bordas de 1px em alguns browsers */
  transform: translateZ(0);
}
.hero__video.is-ready {
  opacity: 1;
}
.hero__video.is-failed {
  display: none;
}

/* Overlay para legibilidade — mais escuro em baixo onde estão os botões */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(14, 59, 31, 0.45) 0%,
      rgba(14, 59, 31, 0.55) 50%,
      rgba(14, 59, 31, 0.75) 100%
    );
}

/* Reforço de legibilidade no título e lead */
.hero__title,
.hero__lead {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.leaf {
  position: absolute;
  display: block;
  width: 280px; height: 280px;
  border-radius: 70% 30% 55% 45% / 55% 45% 55% 45%;
  background: linear-gradient(135deg, rgba(185,232,107,.18), rgba(47,161,90,.15));
  filter: blur(2px);
  will-change: transform;
}
.leaf--1 { top: 12%;  left: -6%;   width: 320px; height: 320px; transform: rotate(-18deg); }
.leaf--2 { top: 55%;  right: -8%;  width: 360px; height: 360px; transform: rotate(28deg); opacity: .8; }
.leaf--3 { bottom: -10%; left: 30%; width: 260px; height: 260px; transform: rotate(12deg); opacity: .7; }
.leaf--4 { top: 10%;  right: 14%;  width: 160px; height: 160px; transform: rotate(-42deg); opacity: .55; }

/* Conteúdo principal: ocupa o espaço disponível e centra os filhos */
.hero__content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;            /* permite encolher sem overflow */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 920px;
  gap: clamp(.5rem, 1.6vh, 1.2rem);
}
.hero__logo {
  width: clamp(80px, 14vh, 160px);
  max-width: 35vw;          /* nunca maior que 35% da largura */
  height: auto;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0;
  animation: fadeUp .9s var(--ease) 0s forwards;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: clamp(.7rem, 1.3vw, .85rem);
  color: var(--lime);
  margin: 0;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .1s forwards;
}
.hero__title {
  font-size: clamp(1.9rem, 5.6vw, 4.9rem);
  line-height: 1.06;
  margin: 0;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .25s forwards;
}
.hero__title em {
  font-style: italic;
  color: var(--lime);
  position: relative;
}
.hero__lead {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  max-width: 58ch;
  margin: 0 auto;
  color: rgba(255,255,255,.85);
  opacity: 0;
  animation: fadeUp .9s var(--ease) .4s forwards;
}

/* CTAs: sempre no fundo do hero, lado a lado em desktop */
.hero__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.6rem, 1.5vw, 1rem);
  width: 100%;
  max-width: 560px;
  margin-top: clamp(.8rem, 2.5vh, 2rem);
  opacity: 0;
  animation: fadeUp .9s var(--ease) .55s forwards;
}
.hero__cta .btn {
  flex: 1 1 200px;
  text-align: center;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- PROJETO ---------- */
.section--projeto {
  background: var(--cream);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stats li {
  background: var(--white);
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,59,31,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stats li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.stats__num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green-800);
  font-weight: 700;
}
.stats__label {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- HANDBOOK (secção do index) ---------- */
.section--handbook {
  background: var(--white);
}
.handbook {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.handbook__cover {
  display: flex;
  justify-content: center;
}
/* Mockup de livro com sombra e leve rotação */
.handbook__book {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(14, 59, 31, .25),
    0 12px 24px rgba(14, 59, 31, .15),
    -3px 0 0 rgba(14, 59, 31, .12);    /* "lombada" do lado esquerdo */
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  transform: perspective(1200px) rotateY(-6deg);
  transition: transform .6s var(--ease);
}
.handbook__cover:hover .handbook__book {
  transform: perspective(1200px) rotateY(-2deg) translateY(-4px);
}
.handbook__book-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.handbook__book-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.1;
  padding: 1.5rem;
}
.handbook__book--placeholder .handbook__book-placeholder {
  display: flex;
}
.handbook__book::after {
  /* brilho fino na "página" */
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 6px;
  width: 1px;
  background: rgba(255,255,255,.18);
}
.handbook__text { max-width: 56ch; }
.handbook__btn {
  margin-top: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

@media (max-width: 880px) {
  .handbook {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .handbook__text { margin-inline: auto; }
  .handbook__book { transform: none; }
  .handbook__cover:hover .handbook__book { transform: translateY(-4px); }
}

/* ---------- ESCOLAS ---------- */
.section--escolas { background: var(--green-050); }

.schools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.school {
  background: var(--white);
  padding: 0 0 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  border: 1px solid rgba(14,59,31,.05);
  display: flex;
  flex-direction: column;
}
.school > h3,
.school > p,
.school > .school__link,
.school > .school__badge {
  margin-left: 1.6rem;
  margin-right: 1.6rem;
}
.school > h3 { margin-top: 1.2rem; }
.school__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--green-050);
}
.school__photo > img:not(.school__flag) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.school:hover .school__photo > img:not(.school__flag) {
  transform: scale(1.06);
}
.school__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(14,59,31,.35));
  pointer-events: none;
}
.school:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.school h3 {
  font-size: 1.35rem;
  color: var(--green-900);
  margin-bottom: .4rem;
}
.school__city {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--green-600);
  margin-bottom: 1rem;
  font-weight: 600;
}
.school__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--lime);
  color: var(--green-900);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.school__flag {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  width: 48px; height: 32px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  background: var(--green-600);
  z-index: 2;
  border: 2px solid var(--white);
  overflow: hidden;
}
.school__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.2rem;
  padding: .55rem 1rem;
  background: var(--green-050);
  color: var(--green-800);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.school__link svg {
  width: 14px; height: 14px;
  transition: transform .3s var(--ease);
}
.school__link:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
}
.school__link:hover svg { transform: translate(2px, -2px); }

.school[data-flag="pt"] .school__flag {
  background: linear-gradient(to right, #006600 0 40%, #cc0000 40% 100%);
}
.school[data-flag="it"] .school__flag {
  background: linear-gradient(to right, #008c45 0 33.3%, #ffffff 33.3% 66.6%, #cd212a 66.6% 100%);
}
.school[data-flag="lu"] .school__flag {
  background: linear-gradient(to bottom, #ed2939 0 33.3%, #ffffff 33.3% 66.6%, #00a1de 66.6% 100%);
}

/* ---------- Faixa de logos das escolas ---------- */
.school-logos {
  margin-top: 3.5rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2rem;
  border: 1px solid rgba(14,59,31,.06);
}
.school-logos__item {
  display: grid;
  place-items: center;
  padding: .5rem;
  transition: transform .4s var(--ease), filter .4s var(--ease);
  filter: grayscale(100%) opacity(.7);
}
.school-logos__item:hover {
  transform: translateY(-4px);
  filter: grayscale(0%) opacity(1);
}
.school-logos__item img {
  max-height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 680px) {
  .school-logos {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* ---------- MOBILIDADES (timeline) ---------- */
.section--mobilidades {
  background: var(--green-900);
  color: var(--white);
  overflow: hidden;
}
.section--mobilidades::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(185,232,107,.12), transparent 55%),
    radial-gradient(ellipse at 90% 80%, rgba(47,161,90,.18), transparent 55%);
  pointer-events: none;
}
.mobilidades__bg {
  position: absolute;
  inset: -20% -10% -10% -10%;
  background:
    radial-gradient(circle at 30% 30%, rgba(185,232,107,.08) 0, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(47,161,90,.14) 0, transparent 40%);
  will-change: transform;
  pointer-events: none;
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 32px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--lime), transparent);
}
.timeline__item {
  position: relative;
  padding: 1rem 0 2.5rem 5rem;
}
.timeline__item::before {
  content: attr(data-step);
  position: absolute;
  left: 64px; top: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: rgba(185,232,107,.12);
  font-weight: 700;
  pointer-events: none;
}
.timeline__dot {
  position: absolute;
  left: 22px; top: 1.6rem;
  width: 22px; height: 22px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(185,232,107,.15);
}
.timeline__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  padding: 1.8rem 1.8rem;
  border-radius: var(--radius);
  transition: transform .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.timeline__card:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,.09);
  border-color: rgba(185,232,107,.35);
}
.timeline__where {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--lime);
  font-weight: 600;
  margin-bottom: .6rem;
}
.timeline__card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .6rem;
}
.timeline__card p {
  color: rgba(255,255,255,.75);
  font-size: .98rem;
}
.timeline__media {
  margin-top: 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.timeline__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.timeline__card:hover .timeline__media img {
  transform: scale(1.04);
}
.timeline__btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.4rem;
  padding: .8rem 1.4rem;
  background: var(--lime);
  color: var(--green-900);
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.timeline__btn svg {
  width: 18px; height: 18px;
  transition: transform .35s var(--ease);
}
.timeline__btn:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.timeline__btn:hover svg { transform: translateX(4px); }

/* ---------- IMPACTO (flip cards) ---------- */
.section--impacto { background: var(--cream); }

.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.flip {
  perspective: 1000px;
  height: 260px;
}
.flip__inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .8s var(--ease);
  transform-style: preserve-3d;
}
.flip:hover .flip__inner,
.flip:focus-within .flip__inner {
  transform: rotateY(180deg);
}
.flip__face {
  position: absolute;
  inset: 0;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-sm);
}
.flip__face--front {
  background: var(--white);
  color: var(--green-900);
  border: 1px solid rgba(14,59,31,.08);
}
.flip__face--back {
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: var(--white);
  transform: rotateY(180deg);
}
.flip__face h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.flip__face p {
  font-size: .95rem;
  color: inherit;
  opacity: .85;
}
.flip__hint {
  margin-top: 1rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 600;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(185,232,107,.18), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(47,161,90,.25), transparent 55%),
    linear-gradient(135deg, var(--green-800), var(--green-700) 60%, var(--green-900));
}
.cta__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .78rem;
  color: var(--lime);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
  max-width: 22ch;
  margin-inline: auto;
  color: var(--white);
}
.cta__lead {
  max-width: 54ch;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .3rem;
}
.footer__title {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  color: var(--lime);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer ul li { margin-bottom: .45rem; font-size: .95rem; }
.footer a:hover { color: var(--lime); }
.footer__small { font-size: .8rem; opacity: .65; margin-top: 1rem; }
.footer__bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
}
.footer__bottom > p:first-child { opacity: .6; }
.footer__credit {
  font-size: .82rem;
  opacity: .8;
  letter-spacing: .02em;
}
.footer__credit-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: .3rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  color: var(--lime);
  font-weight: 700;
  position: relative;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.footer__credit-link svg {
  width: 12px; height: 12px;
  transition: transform .3s var(--ease);
}
.footer__credit-link::after {
  content: '';
  position: absolute;
  left: .6rem; right: .6rem;
  bottom: .12rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.footer__credit-link:hover {
  background: rgba(185,232,107,.12);
  transform: translateY(-2px);
  color: var(--lime);
}
.footer__credit-link:hover::after { transform: scaleX(1); }
.footer__credit-link:hover svg { transform: translate(2px, -2px); }

/* ---------- REVEAL on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .schools { grid-template-columns: 1fr; }
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .flip-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .timeline::before { left: 18px; }
  .timeline__dot { left: 8px; }
  .timeline__item { padding-left: 3.5rem; }
  .timeline__item::before { display: none; }

  /* Hero em mobile: CTAs em coluna, full-width */
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 320px; flex: 0 0 auto; }

  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .container { width: 94%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   Language switcher
   ========================================================= */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  z-index: 110;
}
.lang-switch--in-nav {
  margin-right: .6rem;
}
.lang-switch--floating {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
}
.lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lang-switch__trigger:hover {
  background: rgba(255,255,255,.25);
}
.nav.is-scrolled .lang-switch__trigger,
.lang-switch--floating .lang-switch__trigger,
body.mob .lang-switch__trigger {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--green-050);
  box-shadow: var(--shadow-sm);
}
.nav.is-scrolled .lang-switch__trigger:hover,
.lang-switch--floating .lang-switch__trigger:hover,
body.mob .lang-switch__trigger:hover {
  background: var(--green-050);
}
.lang-switch__current {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.lang-switch__flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.lang-switch__short {
  letter-spacing: .08em;
}
.lang-switch__caret {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease);
}
.lang-switch.is-open .lang-switch__caret {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: .4rem;
  list-style: none;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--green-050);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.lang-switch.is-open .lang-switch__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-switch__menu li { list-style: none; }
.lang-switch__option {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .55rem .7rem;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--green-900);
  font-size: .9rem;
  font-weight: 500;
  text-align: left;
  transition: background .2s var(--ease);
}
.lang-switch__option:hover {
  background: var(--green-050);
}
.lang-switch__option.is-active {
  background: var(--green-050);
  color: var(--green-800);
  font-weight: 700;
}
.lang-switch__option .lang-switch__name {
  flex: 1;
}
.lang-switch__option .lang-switch__short {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .12em;
}

@media (max-width: 680px) {
  .lang-switch--in-nav {
    margin-left: auto;
    margin-right: .4rem;
  }
  .lang-switch__trigger {
    padding: .4rem .65rem;
    font-size: .8rem;
  }
  /* No mobile, .nav__links está escondido — o switcher ocupa o lugar a meio */
  .lang-switch__menu {
    right: 0;
    min-width: 200px;
  }
}

/* =========================================================
   Cookie banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--green-900);
  color: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  max-width: 980px;
  margin-inline: auto;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1 1 320px;
  font-size: .9rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,.92);
}
.cookie-banner__actions {
  display: inline-flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: .85rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.cookie-banner__btn--primary {
  background: var(--lime);
  color: var(--green-900);
}
.cookie-banner__btn--primary:hover {
  background: var(--white);
  transform: translateY(-1px);
}
.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.cookie-banner__btn--ghost:hover {
  background: rgba(255,255,255,.1);
}

@media (max-width: 560px) {
  .cookie-banner { padding: .9rem 1rem; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* Páginas de Workshop (mob): header flutuante para o switcher */
body.mob .lang-switch--floating {
  top: 1rem;
  right: 1rem;
}
@media (max-width: 560px) {
  body.mob .lang-switch--floating {
    top: .8rem;
    right: .8rem;
  }
}

/* =========================================================
   PÁGINA HANDBOOK
   ========================================================= */
body.handbook-page {
  background: var(--cream);
}

/* HERO da página */
.hbk-hero {
  position: relative;
  color: var(--white);
  padding: clamp(6rem, 12vh, 9rem) 1rem clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hbk-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--green-800);
  z-index: -1;
}
.hbk-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(185,232,107,.18), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hbk-hero__content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hbk-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: clamp(.7rem, 1.3vw, .85rem);
  color: var(--lime);
  margin-bottom: 1rem;
}
.hbk-hero__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}
.hbk-hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 56ch;
  color: rgba(255,255,255,.85);
}
.hbk-hero__cover {
  display: flex;
  justify-content: center;
}
.hbk-hero__cover .handbook__book {
  max-width: 280px;
}

/* Bloco-slide: wrapper para cada hbk-block como slide individual */
.hbk-block-slide {
  position: relative;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.hbk-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hbk-block--reverse .hbk-block__media { order: 2; }
.hbk-block__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-050);
  box-shadow: var(--shadow-sm);
}
.hbk-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder com padrão se a imagem não carregar */
.hbk-block__media--placeholder {
  background:
    linear-gradient(135deg, var(--green-300) 0%, var(--green-050) 100%);
}
.hbk-block__media--placeholder::after {
  content: '';
  position: absolute;
  inset: 25%;
  background:
    radial-gradient(circle at 30% 30%, var(--green-700) 0 22%, transparent 22%),
    radial-gradient(circle at 70% 70%, var(--green-600) 0 22%, transparent 22%);
  opacity: .35;
}
.hbk-block__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-900);
  margin-bottom: 1rem;
}
.hbk-block__text p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 56ch;
}

/* Bloco final de download */
.hbk-download {
  background: var(--green-900);
  color: var(--white);
  padding: clamp(3rem, 9vh, 6rem) 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hbk-download__inner {
  max-width: 720px;
}
.hbk-download__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.hbk-download__text {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 56ch;
  margin-inline: auto;
}
.hbk-download__btn {
  background: var(--lime) !important;
  color: var(--green-900) !important;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.hbk-download__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
}
.hbk-download__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Responsividade */
@media (max-width: 880px) {
  .hbk-hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hbk-hero__cover { order: -1; }
  .hbk-hero__lead { margin-inline: auto; }
  .hbk-block,
  .hbk-block--reverse {
    grid-template-columns: 1fr;
  }
  .hbk-block--reverse .hbk-block__media { order: 0; }
}

/* =========================================================
   PÁGINA ANEXOS
   ========================================================= */
body.anexos-page {
  background: var(--cream);
}

/* Hero */
.anx-hero {
  position: relative;
  color: var(--white);
  padding: clamp(7rem, 14vh, 10rem) 1rem clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.anx-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--green-800);
  z-index: -1;
}
.anx-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(185,232,107,.12), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(47,161,90,.18), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.anx-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: clamp(.7rem, 1.3vw, .85rem);
  color: var(--lime);
  margin-bottom: 1rem;
}
.anx-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}
.anx-hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 56ch;
  margin-inline: auto;
  color: rgba(255,255,255,.85);
}

/* Lista de anexos */
.anx-section {
  background: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.anx-list {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 900px;
  margin-inline: auto;
}
.anx-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,59,31,.05);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.anx-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.anx-card__icon {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  border-radius: 14px;
  background: var(--green-050);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.anx-card__icon svg {
  width: 55%;
  height: 55%;
}
.anx-card__body {
  min-width: 0;     /* permite shrink em mobile */
}
.anx-card__type {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: .5rem;
}
.anx-card__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--green-900);
  margin-bottom: .7rem;
  line-height: 1.2;
}
.anx-card__desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
  max-width: 60ch;
}
.anx-card__btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  font-size: .92rem;
  border-radius: 999px;
}
.anx-card__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .anx-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .anx-card__icon {
    width: 52px;
    height: 52px;
  }
}

/* ---------- Redes sociais ---------- */
.anx-social-section {
  background: var(--green-050);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.anx-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  max-width: 1100px;
  margin-inline: auto;
}
.anx-social__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,59,31,.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  color: var(--green-900);
}
.anx-social__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.anx-social__icon {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.anx-social__icon svg {
  width: 60%;
  height: 60%;
}
.anx-social__card--youtube .anx-social__icon {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
}
.anx-social__card--instagram .anx-social__icon {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.anx-social__card--blog .anx-social__icon {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
}
.anx-social__body { min-width: 0; }
.anx-social__type {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: .4rem;
}
.anx-social__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--green-900);
  margin-bottom: .55rem;
}
.anx-social__desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.anx-social__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-700);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.anx-social__link svg {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease);
}
.anx-social__card:hover .anx-social__link { color: var(--green-900); }
.anx-social__card:hover .anx-social__link svg { transform: translate(2px, -2px); }

@media (max-width: 960px) {
  .anx-social {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .anx-social {
    grid-template-columns: 1fr;
  }
}

/* ---------- Action list (What is there for me?) ---------- */
.anx-action-section {
  background: var(--green-050);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.anx-action-section__lead {
  margin-inline: auto;
  text-align: center;
}
.anx-action__frame {
  display: block;
  max-width: 720px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,59,31,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.anx-action__frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.anx-action__frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Galeria de desenhos ---------- */
.anx-gallery-section {
  background: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.anx-gallery-section__lead {
  margin-inline: auto;
  text-align: center;
}
.anx-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.anx-gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-050);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.anx-gallery__item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.anx-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.anx-gallery__item:hover img {
  transform: scale(1.06);
}
.anx-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,59,31,.4), transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.anx-gallery__item:hover::after {
  opacity: 1;
}

@media (max-width: 960px) {
  .anx-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .anx-gallery { grid-template-columns: repeat(2, 1fr); }
}
