/*
Theme Name: Gibraltar (baseado na Twenty Twenty-Four)
Author: Underdog Bytes baseado no trabalho do time da WordPress
Author URI: https://underdogbytes.com
Description: Gibraltar é uma customização do tema Twenty Twenty-Four, oficial do WordPress, desenvolvido para ser flexível, versátil e aplicável.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.0
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gibraltar
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
  --white: #fafafa;
  --blue: #4156a6;

  --footer-bg: #888880;
  --btn-default-bg: rgb(207, 139, 45);
  --btn-default-color: rgb(250, 250, 250);

  --color-text: #575852;

  --max-width-mobile: 85%;
  --padding-mobile: 0 2rem;
}

* {
  font-family: inherit;
}

:root :where(.is-layout-flow) > * {
  margin-block-start: 0;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  background: #dfdfdc;
}

main.wp-block-group {
  overflow: hidden;
}

section {
  padding: 60px 0;
}

section h2 {
  width: 100%;
  margin-bottom: 60px;
  margin-top: 20px;
  text-align: center;
  font-size: 32px;
  color: #4156a6;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  font-family: 'Source Sans Pro', sans-serif;
}

h2 {
  margin-top: 20px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
}

p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text);
}

:root :where(.is-layout-flow) > p {
    margin-block-end: 1rem;
}

a  {
    color: #337ab7;
}

.ghost {
  height: 10vh;
  width: 100%
}

.container-gibraltar {
  width: 100%;
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
}

.button-link {
  width: fit-content;
  padding: 10px 20px;
  border-radius: 5px;
  background: var(--btn-default-bg);
  text-decoration: none;
  font-size: 18px;
  color: var(--btn-default-color);
}

img {
  width: 100%;
  max-width: 100%;
}

.img--circle img {
  border-radius: 50%;
}

/* Header */
header {
  width: 100%;
  padding: 20px 0 15px 0;
  position: fixed;
  top: 0px;
  z-index: 2;
  background: var(--white);
}

header .container-gibraltar {
  padding: 0;
}

header img {
  width: 100%;
  max-width: 220px;
  height: auto;
  padding: 0px 5px;
}

header ul.wp-block-page-list {
  margin-top: 35px;
}

header ul {
  padding: 20px;
}

header a {
  text-decoration: none;
  font-size: 18px;
  color: var(--color-text)!important; /* sei que é má prática, mas WP issues :P */
  text-transform: uppercase;
}

header .wp-block-navigation__item.current-menu-item > a {
  color: var(--blue);
  font-weight: 600;
}

.banner--news {
  min-height: 150px;
  padding: 50px 0;
  margin-top: 100px;
  background: #84ae6c;
  background: -moz-linear-gradient(left, #84ae6c 0%, #888980 100%);
  background: -webkit-linear-gradient(left, #84ae6c 0%, #888980 100%);
  background: linear-gradient(to right, #84ae6c 0%, #888980 100%);
}

.banner--news .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.banner--news .container h2 {
  margin-bottom: 10px;
  color: #fafafa;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
}

.banner--news .container .back {
  padding: 8px 16px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #fafafa;
  color: #fafafa;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
}

/* Banner interno - [Home]CTA Serviços && [Sobre]Quem Somos */
section .banner-interno {
  display: flex;
  justify-content: center;
  padding: 50px 0;
  text-align: center;
  flex-direction: column;
  align-items: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

section.banner.news {
  min-height: 200px;
  position: relative;
  background: #84ae6c;
  background: -moz-linear-gradient(left, #84ae6c 0%, #888980 100%);
  background: -webkit-linear-gradient(left, #84ae6c 0%, #888980 100%);
  background: linear-gradient(to right, #84ae6c 0%, #888980 100%);
  background-size: cover;
  background-position: center;
}

section.banner.news img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 370px;
}

.banner-decorativo {
  margin: 0;
  padding: 0;
}

/* Banner interno variação Quem Somos*/
section.quem-somos {
  width: 100%;
  max-width: 100%;
  min-height: 240px;
  padding: 50px 0;
  background: linear-gradient(to right, #84ae6c 0%, #888980 100%);
}

section.quem-somos .banner-interno--quem-somos {
  margin: auto;
  max-width: 1170px;
}

section.quem-somos .banner-interno__conteudo--quem-somos {
    max-width: 680px;
}

section.quem-somos .banner-interno__conteudo--quem-somos > * {
  text-align: left;
  color: #ffffff;
}

section.quem-somos .banner-interno__conteudo--quem-somos .titulo {
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
}

section.quem-somos .banner-interno__conteudo--quem-somos .texto {
  font-size: 16px;
}

section .banner-interno__diagonal {
  width: 100%;
  vertical-align: top;
  margin-block-start: 0;
}

/* Página: Sobre */
.sobre--decoracao--topo {
  width: 400px;
  position: absolute;
  right: 0;
  top: 150px;
}

.sobre--decoracao--topo img {
  width: 100%;
  vertical-align: middle;
}

/* Sobre - Descrição de cada membro do time */
.sobre__time {
  padding-top: 200px;
}

.sobre__time:first-child {
  padding: 15px;
}

.sobre__time .sobre__time__img {
  width: 100%;
  max-width: 360px;
  max-height: 360px;
  display: flex;
}

.sobre__time p {
  margin-block-start: 1.2rem;
  font-size: 16px;
  line-height: 24px;
}

.sobre__time .sobre__time__nome {
  text-align: left;
  font-size: 32px;
  color: var(--blue);
  font-weight: 700;
  margin: 20px 0px 0px;
}

.sobre__time .sobre__time__cargo {
  display: block;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

/* Sobre - Time - Zeina */
.sobre__time--zeina {
  background-position: -120px 0;
  background-size: 800px;
  background-repeat: no-repeat;
}

.sobre__time--zeina__fotos {
  margin: 100px 0;
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.sobre__time--zeina__fotos img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

.sobre__time--zeina__fotos .sobre__time--zeina__fotos--quadrado {
  max-width: 200px;
}

.sobre__time--zeina__fotos .sobre__time--zeina__fotos--retangulo {
  max-width: 424px;
}

/* Sobre - Time - Marcos */
.sobre__time--marcos {
  background-position: 110% 20px;
  background-size: 800px;
  background-repeat: no-repeat;
}

.sobre__time--marcos__fotos {
  margin: 100px 0;
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.sobre__time--marcos__fotos img {
  max-height: 200px;
}

/* Sobre - Time - Cristiano */
.sobre__time--cristiano {
  padding-bottom: 100px;
}

.bg-cidade {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.bg-cidade img {
  width: 100%;
  height: auto;
}


/* SINGLE POST */
.single-post-title {
  padding: 5rem 0 0 0;
  margin-bottom: 25px;
  text-transform: uppercase;
  font-size: 42px;
  color: #4156a6;
  text-align: center;
}

.single-post-content {
  margin: 0 auto;
  padding: 0 0 8rem 0;
}

/* Footer */
footer {
  padding: 14px;
  margin-block-start: 0;
  margin: 0;
  background-color: var(--footer-bg);
  color: var(--white);
}

footer .container-gibraltar {
  display: flex;
  justify-content: space-between;
}

footer .footer__contato {
  margin-left: 1rem;
  margin-bottom: 0;
  font-size: 14px;
}

footer .footer__conteudo {
  width: 100%;
  display: inline-grid;
  grid-template-columns: 0.25fr 0.5fr auto 1fr;
}

footer .footer__conteudo > * {
  display: flex;
  padding: 0 15px;
}

footer .footer__logo {
  max-width: 120px;
  margin: 0;
}

footer .footer__icon {
  width: 30px;
  height: 100%;
  display: flex;
}
footer .footer__icon a {
  margin: auto 0 0 auto;
}

footer .footer__icon img {
  height: 18px;
}

footer .footer__copyright {
  justify-content: end;
}

footer .footer__copyright p {
  margin: auto 0 0 0;
  font-size: 14px;
}

/* ----------- */
/* RESPONSIVO */
/* ----------- */

/* 1️⃣ até 1200px */
@media (max-width: 1200px) {
  .container-gibraltar {
    max-width: 970px;
  }
    section .banner-interno {
        padding: 2rem;
    }
}

/* 2️⃣ até 992px — vem depois para sobrescrever o de cima */
@media (max-width: 992px) {
  .container-gibraltar {
    padding: var(--padding-mobile);
    width: fit-content;
  }

  /* Responsivo colunas */
  .wp-block-columns {
    flex-direction: column;
  }

  .wp-block-columns,
  .wp-block-column {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wp-block-column img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Sobre */
  .sobre--decoracao--topo {
    display: none;
  }

  .banner-interno--quem-somos {
    max-width: var(--max-width-mobile);
    padding: var(--padding-mobile);
    margin-top: 70px;
    padding-bottom: 35px;
  }
  
  .sobre__time--zeina__fotos {
    display: grid;
  }

  /* News: em telas menores, uma coluna apenas */
  .news-2-col .latest-posts {
    grid-template-columns: 1fr;
  }

  /* Footer */
  footer {
    padding: 15px;
  }

  footer .container-gibraltar {
    padding: 0 1rem;
  }

  footer .footer__contato {
    text-align: center;
    margin: 0;
  }

  footer .footer__conteudo {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
  }
  
  footer .footer__conteudo > * {
    padding: 0;
    margin: 0;
  }

  footer .footer__logo {
    padding: 20px 0;
  }

  footer .footer__icon {
    padding: 20px 0;
  }

  footer .footer__icon a {
    margin: 0;
  }

  footer .footer__copyright p {
    text-align: center;
  }
}

/* 3️⃣ acima de 1200px */
@media (min-width: 1200px) {
  .container-gibraltar {
    max-width: 1150px;
  }
}