/* Artes visuais — bloco autoral imediatamente após Caderno de percurso */
.dev-home main > .home-artes{
  position:relative;
  background:#eee7db!important;
  padding:clamp(90px,8vw,125px) 0 clamp(75px,7.5vw,116px)!important;
}
.dev-home .home-artes .artes-section-heading{
  display:flex;
  flex-direction:column;
  text-align:center;
  align-items:center;
  justify-content:center;
  margin:0 auto clamp(30px,4vw,52px);
  width:100%;
}
.dev-home .home-artes .artes-section-heading h2{
  margin:0 0 clamp(16px,2vw,27px);
  color:#101010;
  font:normal clamp(43px,5.5vw,78px)/1.1 Georgia,'Times New Roman',serif;
  letter-spacing:-.045em;
}
.dev-home .home-artes .artes-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100%,360px);
  height:58px;
  position:relative;
  margin:0 auto clamp(15px,2.6vw,26px);
}
.dev-home .home-artes .artes-divider:before{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:#B50000;
}
.dev-home .home-artes .artes-divider svg{
  width:53px;
  height:55px;
  padding:5px 11px;
  color:#B50000;
  background:#eee7db;
  position:relative;
  z-index:1;
  flex-shrink:0;
}
.dev-home .home-artes .artes-description{
  max-width:790px;
  margin:0 auto;
  color:#403932;
  font:normal clamp(16px,1.4vw,20px)/1.68 Arial,Helvetica,sans-serif;
  text-wrap:pretty;
}
.dev-home .home-artes .artes-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(17px,2.3vw,31px);
  padding:0;
  margin:0;
}
.dev-home .home-artes .artes-gallery-card{
  display:flex;
  flex-direction:column;
  text-align:left;
  align-items:stretch;
  border:0;
  background:transparent;
  padding:0;
  min-width:0;
  cursor:zoom-in;
  color:#101010;
}
.dev-home .home-artes .artes-gallery-image{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  aspect-ratio:4/4.7;
  overflow:hidden;
  padding:clamp(8px,1.1vw,15px);
  background:#d8cec1;
  border:1px solid #cfc2b3;
  transition:background .3s ease,border-color .3s ease;
}
.dev-home .home-artes .artes-gallery-image img{
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:contain;
  display:block;
  transition:transform .45s cubic-bezier(.22,1,.36,1);
}
.dev-home .home-artes .artes-gallery-card:hover .artes-gallery-image,
.dev-home .home-artes .artes-gallery-card:focus-visible .artes-gallery-image{
  background:#e1d5c8;
  border-color:#B50000;
}
.dev-home .home-artes .artes-gallery-card:hover .artes-gallery-image img,
.dev-home .home-artes .artes-gallery-card:focus-visible .artes-gallery-image img{transform:scale(1.025)}
.dev-home .home-artes .artes-gallery-card .artes-caption{
  display:block;
  font:normal clamp(17px,1.6vw,22px)/1.28 Georgia,serif;
  letter-spacing:-.025em;
  margin-top:13px;
  transition:color .25s ease;
  overflow-wrap:anywhere;
}
.dev-home .home-artes .artes-gallery-card:hover .artes-caption,
.dev-home .home-artes .artes-gallery-card:focus-visible .artes-caption{color:#B50000}
.dev-home .home-artes .artes-gallery-card .artes-series{
  display:block;
  margin-top:7px;
  font:700 10px/1.6 Arial,Helvetica,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#75685d;
}
.dev-home .home-artes .artes-gallery-status{
  min-height:25px;
  font-size:13px;
  color:#685e53;
}
.dev-home .home-artes .artes-gallery-more{
  display:flex;
  justify-content:center;
  margin-top:clamp(31px,4vw,52px);
}
.dev-home .home-artes .artes-gallery-more a{
  border-bottom:1px solid #B50000;
  font:700 11px/1.5 Arial,Helvetica,sans-serif;
  color:#101010;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:7px 0;
}
.dev-home .home-artes .artes-gallery-more a:hover{color:#B50000}
.artes-lightbox[hidden]{display:none!important}
.artes-lightbox{
  position:fixed;
  inset:0;
  z-index:1100;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(12,11,11,.93);
  padding:clamp(20px,5vw,68px);
}
.artes-lightbox .artes-lightbox-figure{
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  max-width:100%;
  max-height:100%;
  gap:12px;
}
.artes-lightbox img{
  display:block;
  max-width:min(94vw,1300px);
  max-height:calc(100dvh - 145px);
  object-fit:contain;
}
.artes-lightbox figcaption{
  font:normal 16px/1.5 Georgia,serif;
  color:#F5F0E6;
  text-align:center;
}
.artes-lightbox .artes-lightbox-close{
  position:absolute;
  top:clamp(15px,3vw,35px);
  right:clamp(15px,3vw,35px);
  width:48px;
  height:48px;
  border:1px solid #f5f0e6a8;
  background:#101010;
  color:#fff;
  font-size:26px;
  cursor:pointer;
}
@media(max-width:1000px){
  .dev-home .home-artes .artes-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .dev-home .home-artes .artes-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dev-home .home-artes .artes-gallery-image{aspect-ratio:4/5}
  .dev-home .home-artes .artes-gallery-card .artes-caption{font-size:17px}
}
@media(max-width:460px){
  .dev-home main > .home-artes{padding-top:85px!important;padding-bottom:77px!important}
  .dev-home .home-artes .artes-gallery{gap:18px 12px}
  .dev-home .home-artes .artes-gallery-image{padding:7px}
  .dev-home .home-artes .artes-gallery-card .artes-caption{font-size:15px}
  .dev-home .home-artes .artes-divider{width:min(100%,270px)}
  .dev-home .home-artes .artes-description{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .dev-home .home-artes .artes-gallery-card .artes-gallery-image img,
  .dev-home .home-artes .artes-gallery-card .artes-gallery-image{transition:none}
  .dev-home .home-artes .artes-gallery-card:hover .artes-gallery-image img{transform:none}
}

/* Prioridade do fundo próprio sobre a alternância de seções */
.dev-home main > section.section.home-artes{background:#eee7db!important;}
.dev-home main > section.section.home-artes::before{background:#eee7db!important;}

/* Galeria Pro: mosaico de duas fileiras, título sobre a fotografia */
.dev-home .home-artes .artes-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  padding:0;
  margin:0;
}
.dev-home .home-artes .artes-gallery-card{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
  aspect-ratio:1 / 1;
  overflow:hidden;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  text-align:center;
  background:transparent;
  cursor:zoom-in;
}
.dev-home .home-artes .artes-gallery-card .artes-gallery-image{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:1 / 1;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  outline:0;
  background:transparent;
  overflow:hidden;
}
.dev-home .home-artes .artes-gallery-card .artes-gallery-image img{
  display:block;
  width:100%;
  height:100%;
  padding:0;
  object-fit:cover;
  object-position:center;
  transform:scale(1);
  transition:transform .55s cubic-bezier(.22,1,.36,1);
}
.dev-home .home-artes .artes-gallery-card .artes-gallery-image::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  opacity:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(16,16,16,.04),rgba(16,16,16,.78));
  transition:opacity .3s ease;
}
.dev-home .home-artes .artes-gallery-card .artes-caption{
  position:absolute;
  inset:auto 8% 11%;
  z-index:2;
  display:block;
  width:auto;
  max-width:84%;
  margin:0;
  padding:0;
  color:#fff;
  font:normal clamp(17px,1.8vw,27px)/1.22 Georgia,serif;
  letter-spacing:-.02em;
  text-align:center;
  text-wrap:balance;
  overflow-wrap:anywhere;
  opacity:0;
  visibility:hidden;
  transform:translateY(9px);
  transition:opacity .32s ease, transform .32s ease, visibility .32s;
  pointer-events:none;
  text-shadow:0 2px 12px rgba(0,0,0,.45);
}
.dev-home .home-artes .artes-gallery-card:hover .artes-gallery-image,
.dev-home .home-artes .artes-gallery-card:focus-visible .artes-gallery-image{
  border:0;
  background:transparent;
}
.dev-home .home-artes .artes-gallery-card:hover img,
.dev-home .home-artes .artes-gallery-card:focus-visible img{
  transform:scale(1.06);
}
.dev-home .home-artes .artes-gallery-card:hover .artes-gallery-image::after,
.dev-home .home-artes .artes-gallery-card:focus-visible .artes-gallery-image::after{
  opacity:1;
}
.dev-home .home-artes .artes-gallery-card:hover .artes-caption,
.dev-home .home-artes .artes-gallery-card:focus-visible .artes-caption{
  color:#fff;
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.dev-home .home-artes .artes-gallery-card .artes-series{display:none}
@media(max-width:990px){
  .dev-home .home-artes .artes-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
}
@media(max-width:720px){
  .dev-home .home-artes .artes-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .dev-home .home-artes .artes-gallery-card .artes-gallery-image{aspect-ratio:1 / 1}
  .dev-home .home-artes .artes-gallery-card .artes-caption{font-size:clamp(15px,3vw,22px)}
}
@media(max-width:460px){
  .dev-home .home-artes .artes-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
  .dev-home .home-artes .artes-gallery-card .artes-caption{font-size:15px}
}
@media(hover:none){
  .dev-home .home-artes .artes-gallery-card:active .artes-caption,
  .dev-home .home-artes .artes-gallery-card:focus-visible .artes-caption{
    opacity:1;
    visibility:visible;
  }
}
@media(prefers-reduced-motion:reduce){
  .dev-home .home-artes .artes-gallery-card .artes-gallery-image img,
  .dev-home .home-artes .artes-gallery-card .artes-gallery-image::after,
  .dev-home .home-artes .artes-gallery-card .artes-caption{transition:none}
  .dev-home .home-artes .artes-gallery-card:hover img{transform:none}
}


/* Continuidade de papel rasgado: Caderno → Artes Visuais */
/* A seção Artes Visuais fica acima da anterior para mostrar o recorte. */
.dev-home main > section.section.home-caderno {
  position:relative;
  z-index:2;
}
.dev-home main > section.section.home-artes {
  position:relative;
  z-index:3;
  isolation:isolate;
  background:#eee7db!important;
  margin-top:0!important;
  border-top:0!important;
  overflow:visible;
}
/* A mesma máscara já usada nas demais transições do tema. */
.dev-home main > section.section.home-artes::before {
  content:'';
  display:block;
  position:absolute;
  left:0;
  right:0;
  top:calc(1px - var(--tear-h));
  width:100%;
  height:calc(var(--tear-h) + 2px);
  z-index:1;
  pointer-events:none;
  background:#eee7db!important;
  -webkit-mask-image:url('/assets/paper-cut-top.png');
  mask-image:url('/assets/paper-cut-top.png');
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
}
/* O título e a galeria permanecem acima do recorte, com espaço seguro. */
.dev-home main > section.section.home-artes > .wrap {
  position:relative;
  z-index:2;
}
@media (max-width:640px){
  .dev-home main > section.section.home-artes {
    padding-top:clamp(79px,15vw,95px)!important;
  }
}


/* Ritmo compacto: títulos, divisórias e transições — revisão 2026-11-11 */
.dev-home main > section.section.home-artes{padding-top:clamp(80px,7.2vw,111px)!important;padding-bottom:clamp(69px,6.2vw,94px)!important}
.dev-home .home-artes .artes-section-heading{margin-bottom:clamp(22px,2.8vw,36px)}
.dev-home .home-artes .artes-section-heading h2{margin-bottom:clamp(8px,1vw,14px)}
.dev-home .home-artes .artes-divider{height:42px;margin-bottom:clamp(9px,1.4vw,17px)}
.dev-home .home-artes .artes-divider svg{width:45px;height:46px;padding:4px 10px}
.dev-home .home-artes .artes-gallery-more{margin-top:clamp(24px,2.8vw,38px)}
@media(max-width:640px){
 .dev-home main > section.section.home-artes{padding-top:78px!important;padding-bottom:68px!important}
 .dev-home .home-artes .artes-section-heading{margin-bottom:23px}
 .dev-home .home-artes .artes-divider{height:38px;margin-bottom:11px}
}


/* Refinamento de respiro — cabeçalho Artes Visuais */
.dev-home main > section.section.home-artes{padding-top:clamp(73px,6.5vw,101px)!important;padding-bottom:clamp(65px,5.8vw,87px)!important}
.dev-home .home-artes .artes-section-heading{margin-bottom:clamp(17px,2.1vw,29px)}
.dev-home .home-artes .artes-section-heading h2{margin-bottom:clamp(5px,.7vw,10px)}
.dev-home .home-artes .artes-divider{height:39px;margin-bottom:clamp(6px,1vw,12px)}
.dev-home .home-artes .artes-divider svg{width:44px;height:44px;padding:4px 9px}
@media(max-width:640px){
 .dev-home main > section.section.home-artes{padding-top:73px!important;padding-bottom:63px!important}
 .dev-home .home-artes .artes-section-heading{margin-bottom:18px}
 .dev-home .home-artes .artes-divider{height:36px;margin-bottom:8px}
}
