@charset "utf-8"; /* indica uso do formato latino */

body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #f8f8f8;
  margin: 0;
  padding: 0;
}

/*===========================================================
Seção HEADER = topo da página 
=============================================================*/
header{
    border-bottom: 2px solid #e0e0e0; /*borda da base da seção */
    height: 120px; /*altura do header */
    width: 100%; /*ocupa a tela toda = 1200px/1200px */
}

    /*============================================================
    Logotipo
    ==============================================================*/
    header h1 a{
      background: url(imagens/logo.png) no-repeat; /*Logotipo*/
      margin-left: 2.0%; /*24px/1200px */
      display: block; /*torna o link em bloco */
      float: left; /*Logotipo posicionado à esquerda d página */
      text-indent: -9999; /*recuo para ocultar texto à esquerda */
      height: 59px; /*altura do Logo = imagem */
      width: 16.6666666667%; /*200px/1200px = largura do Logo = imagem */
    }

    /*=============================================================
    nav = Menu de navegação
    ===============================================================*/
    nav{
      float: right; /*posiciona o menu à direita */
      margin-top: 60px; /*distância do Menu à margem superior */
      text-align: right; /*alinha os links à direita */
      width: 75.0%; /*900px / 1200px */
    }
    nav ul{
      list-style-type: none; /*retira os marcadores de lista */
    }
    nav li{
      display: inline; /*deixa o menu na horizontal */
    }
    nav ul li a{
      margin-right: 3.3333333333%; /*40px/1200px = espaço à direita de cada link do Menu*/
    }
    nav ul li:nth-last-child(4) a{
      margin-right: 15px; /*indica que o último link terá margem de 15pixels*/
    }
    nav a:link,
    nav a:visited{
      color: #000000;
      font-size: 1.0rem; /*16px/16px*/
      font-weight: 300; /*fonte light*/
      letter-spacing: 0.03125rem; /*0.5px/16px = espaçamento entre as letras */
      line-height: 1.0625rem; /*17px/16px = altura da linha */
      display: inline-block;
    }
    nav a.ativo:link,
    nav a:hover{
      color: #fe9380; /*indica a página ativa e do link:hover */
    }
    nav .dropdown{
      display: inline-block;
    }
    nav .dropdown-content{
      display: none;
      position: absolute;
      background-color: #f9f9f9;
      max-width: 110px;
      text-align: center;
      box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    }
    nav .dropdown:hover .dropdown-content{
      display: block;
    }
    
    /*================== Fim do menu de navegação ==================*/

    h2 {
      margin: 20px 0;
      font-family: Arial, sans-serif;
      font-size: 1.1250rem; /* 18px/16px*/
      text-align: center;
      color: #333;
  }
  h5{
      margin: 5px 0;
      font-family: Arial, sans-serif;
      font-size: 0.75rem; /* 12px/16px*/
      text-align: center;
      color: #333;  
  }

/*=========================================================================  
Grade responsiva de miniaturas
===========================================================================*/
.galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* força 4 imagens por linha */ 
  gap: 8px;  
  margin: 8px; 
  padding: 4px; 
}

.thumb {
  width: 65%;
  border: 2px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}

.thumb:hover {
  transform: scale(1.05);
  border-color: #666;
}

/*===========================================================
Lightbox base
=============================================================*/
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  text-align: center;
  padding: 40px 5%;
  box-sizing: border-box;
}

/*=====================================================================
Mostrar quando alvo
=======================================================================*/
.lightbox:target {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*======================================================================
Imagem ampliada
========================================================================*/
.lightbox img {
  max-width: 95%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 25px #fff;
}
/*======================================================================
Botão fechar
========================================================================*/
.lightbox .fechar {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  color: rgb(3, 247, 121);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.lightbox .fechar:hover {
  color: #ffcc00;
}

/*===================================================================
Navegação
=====================================================================*/
.lightbox .anterior,
.lightbox .proximo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: rgb(3, 247, 121);
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  transition: color 0.3s;
}

.lightbox .anterior { left: 20px; }
.lightbox .proximo { right: 20px; }

.lightbox .anterior:hover,
.lightbox .proximo:hover {
  color: #ffcc00;
}
  /*=============================================
  LEGENDA
  ===============================================*/
  .galeria figure{
  margin: 0;
  text-align: center;
}

.galeria figcaption{
  font-size: 0.6875rem; /*11px/16px*/
  color: #555;
  line-height: 1.2;
  margin-top: 5px;
}

/*==========================================================
Passando para a próxima página
============================================================*/
#tabelaspec2 {
    border-collapse: collapse; /* Remove espaçamento entre células */
    margin: 15px auto;         /* Centraliza horizontalmente */
    text-align: center;
}

/* Estilo das células */
#tabelaspec2 td.pp {
    padding: 8px 12px;
    border: 1px solid #ccc;    /* Borda leve */
    border-radius: 6px;        /* Canto arredondado */
    background-color: #f8f8f8; /* Cor de fundo */
    transition: background-color 0.3s ease;
}

/* Links dentro das células */
#tabelaspec2 td.pp a {
    text-decoration: none;    /* Remove sublinhado */
    color: #007BFF;        /* Cor do link */
    font-weight: bold;
    font-size: 10px;
}

/* Efeito ao passar o mouse */
#tabelaspec2 td.pp:hover {
    background-color: #007BFF;
}

#tabelaspec2 td.pp:hover a {
    color: white;    /* Muda cor do texto no hover */
}

/*==========================================================
section footer (rodapé)
============================================================*/
footer{
    clear: both;
    height: 50px;
    padding: 10px 0px;
    width: 100%; /*1200px/1200px*/
}
.copyright{
    float: left;
    margin-left: 10%; /*120px/1200px*/
}

/*===================================================================
A inserção do simples comando abaixo, no código CSS3, já torna as 
imagens flexíveis
====================================================================*/
img{
    max-width: 100%; /*define a largura máxima da imagem em até 100%*/
}
/*==================================================================*/

/*======================== Responsividade ==========================
Implementando as Media Queries
====================================================================*/

/*==================================================================
960px - TABLETS NO FORMATO PAISAGEM E ALGUNS MONITORES MAIS ANTIGOS
====================================================================*/
@media screen and (max-width:960px) {
    h2 { 
      font-size: 1.0625rem; /*17px/16px*/
    }
    .thumb { 
      border-radius: 5px; 
      /*width: 100%;  */
      width: 60%;
    }
    .galeria {
      grid-template-columns: repeat(2, 1fr); /* força 2 imagens por linha */
    }
    .lightbox img { 
      max-width: 80%; 
      max-height: 64%; 
    }
    .lightbox .anterior, 
    .lightbox .proximo { 
      font-size: 40px; 
    }
}

/*=================================================================
768px - TABLET E iPAD NO FORMATO RETRATO
===================================================================*/
@media (max-width: 768px) {
    nav a:link,
    nav a:visited{
      font-size: 0.875rem; /*14px/16px*/
      line-height: 1.071428571rem; /*15px/14px = altura da linha */
      display: inline-block;
    }

    h2 { 
      font-size: 1.0rem;/*16px/16px*/
    }
    .thumb { 
      border-radius: 4px; 
      /*width: 100%;  */
      width: 60%;
    }
    .galeria {
      grid-template-columns: repeat(2, 1fr); /* força 2 imagens por linha */
    }
    .lightbox img { 
      max-width: 60%; 
      max-height: 48%; 
    }
    .lightbox .anterior, 
    .lightbox .proximo { 
      font-size: 35px; 
    }
}

/*====================================================================
480px - SMARTPHONES NO FORMATO PAISAGEM COM TELA PEQUENA
======================================================================*/
@media (max-width: 480px) {
    nav a:link,
    nav a:visited{
      font-size: 0.75rem; /*12px/16px*/
      line-height: 1.0833333333rem; /*13px/12px = altura da linha */
      display: inline-block;
    }

    h2 { 
      font-size: 0.8750rem; /*14px/16px*/ 
    }

    .thumb { 
      border: 1px solid #aaa;
      border-radius: 3px; 
      width: 100%; /* garante que cada imagem ocupe sua célula */
    }

    .galeria {
      grid-template-columns: repeat(3, 1fr); /* força 3 imagens por linha */
    }

    .galeria figcaption{
      font-size: 9px;
      color: #555;
      line-height: 1.1;
      margin-top: 4px;
    }

    .lightbox img { 
      max-width: 60%; 
      max-height: 48%; 
    }

    .lightbox .fechar { 
      font-size: 28px; 
    }

    .lightbox .anterior, 
    .lightbox .proximo { 
      font-size: 35px; 
    }
}

/*====================================================================
320px - SMARTPHONES NO FORMATO RETRATO COM TELA PEQUENA
======================================================================*/
@media screen and (max-width:320px) {
  nav a:link,
  nav a:visited{
      font-size: 0.625rem; /*10px/16px*/
      line-height: 1.10rem; /*11px/10px = altura da linha */
      display: inline-block;
  }

  h2 { 
      font-size: 0.68750rem; /*11px/16px*/ 
  }
  .thumb { 
      border: 1px solid #aaa;
      border-radius: 3px; 
      width: 100%; /* garante ajuste dentro da célula */
  }

  .galeria {
      grid-template-columns: repeat(2, 1fr); /* força 2 imagens por linha também */
  }

  .galeria figcaption{
      font-size: 8px;
      color: #555;
      line-height: 1.1;
      margin-top: 3px;
    }

  .lightbox img { 
      max-width: 50%; 
      max-height: 40%; 
  }
  .lightbox .fechar { 
      font-size: 25px; 
  }
  .lightbox .anterior, 
  .lightbox .proximo { 
      font-size: 35px; 
  }
}
