/*
Theme Name: APOFEN
Theme URI: https://www.apofen.pt
Author: APOFEN
Description: Tema WordPress baseado no site original da APOFEN (Bootstrap 4). Mantém o CSS e o aspeto do site PHP original.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: apofen
*/

/* ------------------------------------------------------------------
   Estilos que no site original estavam inline (nav.php, foot.php,
   index.php, blog.php, blogpost.php, receitas.php, socio.php).
   Os restantes ficheiros CSS originais estão em assets/css/ sem alterações.
------------------------------------------------------------------- */

/* nav.php */
a:link, a:visited, a:hover, a:active {
  text-decoration: none;
}

/* foot.php */
.icon:hover {
  color: #ad1a33;
}

/* index.php (slider) */
.swiper-slide {
  display: block;
}

.swiper-slide .text {
  font-size: 20px;
  text-align: justify;
  color: white;
  background: black;
  background: rgba(0,0,0,0.3);
  line-height: 1.3;
  display: block;
  position: absolute;
  max-width: auto;
  padding: 0 15px 0 15px;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
}

.text small {
  color: white;
  font-size: 12px;
}

.text a:link,
.text a:visited,
.text a:hover,
.text a:active {
  color: white;
}

/* blog.php / blogpost.php */
.team-boxed .card-img-top {
  width: 100%;
  height: 20vw;
  object-fit: cover;
}

.single-post .team-boxed .card-img-top {
  height: 25vw;
}

/* media.php */
.pb-video {
  border: 1px solid #ffffff;
  padding: 5px;
}

.pb-row {
  margin-bottom: 10px;
}

.noticia img {
  margin: 15px;
}

/* receitas.php */
.descricao {
  position: relative;
  width: 50%;
}

.descricao .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: black;
  background: rgba(0,0,0,0.4);
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.descricao:hover .overlay {
  height: 100%;
}

.descricao .texto {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.texto a:link,
.texto a:visited,
.texto a:hover,
.texto a:active {
  color: white;
}

/* socio.php (formulário em passos) */
#regForm {
  background-color: #F9F9F9;
  margin: 10px auto;
  width: 80%;
  min-width: 300px;
}

input.invalid {
  background-color: #ffdddd;
}

#regForm .tab {
  display: none;
}

#regForm .step {
  height: 15px;
  width: 15px;
  margin: 0 3px;
  background-color: #bbbbbb;
  border: none;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.8;
}

#regForm .step.active {
  opacity: 1;
}

#regForm .step.finish {
  background-color: #AD1A33;
}

/* Contactos: honeypot invisível */
.apofen-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Conteúdo vindo do editor do WordPress */
.team-boxed .wp-block-image img,
.team-boxed .entry-content img {
  max-width: 100%;
  height: auto;
}

/* Barra de administração do WordPress não deve cobrir o menu */
body.admin-bar .navbar {
  position: relative;
}

/* Relatório e Contas: lista que abre (<details>, sem JavaScript) */
.rc-list{margin:0 0 30px}
.rc-list details{border-bottom:1px solid #e5e5e5}
.rc-list summary{cursor:pointer;padding:11px 4px;font-size:22px;list-style:none;display:flex;justify-content:space-between;color:#2a89bf}
.rc-list summary::-webkit-details-marker{display:none}
.rc-list summary::after{content:'+';color:#a3182f;font-weight:700}
.rc-list details[open] summary::after{content:'\2013'}
.rc-list details[open] summary{color:#a3182f}
.rc-list .rc-links a{display:block;padding:7px 4px 7px 12px;font-size:15px;border-left:3px solid #a3182f;margin:4px 0 8px;color:#333}
.rc-list .rc-links a:hover{color:#a3182f}
.rc-list .rc-pdf{display:inline-block;font-size:10px;font-weight:700;background:#a3182f;color:#fff;border-radius:3px;padding:2px 5px;margin-right:8px;vertical-align:middle}
