/* ============== GERAL ============== */

:root {
  font-size: 62.5%;

  --primary-color: hsl(199, 100%, 14%);
  --bg-color: hsl(0, 0%, 98%);
  --headline-color: hsl(45, 9%, 25%);
  --border-color: hsl(0, 0%, 96%);

  --nav-height: 6rem;
}

html {
  scroll-behavior: smooth;
}
html,
body {
  width: 100%;
  height: 100%;
}
.wrapper {
  width: min(40rem, 100%);
  margin-inline: auto;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  text-align: center;
  overflow: auto;

  background-color: var(--bg-color);
}

img {
  max-width: 100%;
}

section {
  padding-block: 2rem;
}

.col-a {
  margin-block: 1em;
}

.col-a h1 {
  color: var(--primary-color);
  font-size: 1.4em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 3.9em;
}

.col-a p {
  color: var(--headline-color);
  font-size: 0.8em;
  font-weight: 700;
  line-height: 350%;
}

.col-a form {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  align-items: center;
}

.col-a form input {
  width: 60%;
  height: 2em;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}

.col-a form button {
  width: 62%;
  height: 2.2em;
  background-color: var(--primary-color);
  border: 1px solid var(--border-color);

  color: white;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 5px;
}
button {
  cursor: pointer;
}
button:hover {
  filter: brightness(130%);
  transition: 0.3s;
}

.col-a button {
  cursor: pointer;
}
.col-a button:hover {
  filter: brightness(150%);
  transition: 0.3s;
}

input:hover,
textarea:hover {
  filter: brightness(90%);
  transition: 0.3s;
}

/* ============== MOBILE 320 ============== */

/* ============== Navigation ============== */

nav {
  position: fixed;
  top: 0;
  width: 100vw;
  height: var(--nav-height);
  z-index: 100;
  background-color: var(--primary-color);
}
nav picture {
  position: absolute;
  width: 5rem;
  left: 3%;
  top: 10%;
}
nav h1 {
  position: absolute;
  width: 20rem;
  top: 40%;
  left: 6%;
  color: white;
}

nav ul {
  float: right;
  margin-right: 2.5rem;
  list-style: none;
}

nav ul li {
  display: inline-block;
  line-height: 5rem;
  margin: 0 1.5rem;
}

nav ul li a {
  position: relative;
  padding: 0.5rem 0;
  color: azure;
  font-size: 1.8rem;
  text-decoration: none;
}

label #sign-one,
label #sign-two {
  font-size: 3rem;
  color: #fff;
  float: right;
  line-height: 5rem;
  margin-right: 3rem;
  cursor: pointer;
  display: none;
}

#res-menu {
  display: none;
}

/* ate aqui foi feito uma versão fixa para ser adaptada */

label #sign-one {
  display: block;
}

label #sign-one:hover {
  transform: scale(1.3);
  transition: 0.3s;
}

nav ul {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: var(--primary-color);
  z-index: 110;
  top: var(--nav-height);
  left: 100%;
  text-align: center;
  transition: 0.5s;
}

nav ul li {
  display: block;
  margin: 4rem 0;
  line-height: 3rem;
}

nav ul li a {
  font-size: 2rem;
}

nav ul li a:hover {
  letter-spacing: 0.4rem;
  transition: 0.3s;
}

#res-menu:checked ~ ul {
  left: 0;
}
#res-menu:checked ~ label #sign-one {
  display: none;
}
#res-menu:checked ~ label #sign-two {
  display: block;
}

label #sign-two:hover {
  transform: scale(1.3);
  transition: 0.3s;
}

/* ============== HOME ============== */

#home {
  padding-top: var(--nav-height);
  text-transform: uppercase;
}

#home h1 {
  background-color: rgba(15, 15, 15, 0.534);
  color: white;
  font-size: 1.6rem;
  padding: 0.2em;
}
#home h3 {
  background-color: rgba(15, 15, 15, 0.534);
  font-size: 0.8rem;
  color: white;
  padding: 0.2em;
  padding-bottom: 1.8em;
}

#home a {
  display: inline-block;
  background-color: var(--primary-color);
  border-radius: 5px;
  border: none;
  color: #fff;
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 500;

  margin: 0.6em;
  text-transform: uppercase;
  padding: 0.6em 1em;
}

.home-foto picture img {
  min-width: 100%;
}

.home-texto {
  position: absolute;
  top: 12vh;
  left: 10vw;
  right: 10vw;
}

#tablet-media {
  display: none;
}

/* ============== Deputados ============== */

.deputados {
  display: flex;
  flex-wrap: wrap;
  margin-inline: auto;
  justify-content: center;

  gap: 1.2em;
}

.deputado {
  width: 40%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: white;
  border-radius: 3px;
  border: 1px solid var(--border-color);
}

.deputado:hover {
  filter: brightness(90%);
  transition: 0.3s;
}

#deputados li {
  display: inline-block;

  font-size: 0.8em;

  margin-block: 0.4em;
}

#deputados li span {
  font-weight: 700;
}

/* ============== Partido ============== */

.partidos-card {
  display: flex;
  flex-wrap: wrap;
  margin-inline: auto;
  justify-content: center;

  gap: 1.2em;
}

.partido {
  display: flex;
  justify-content: center;
  align-content: space-between;
  flex-wrap: wrap;
  gap: 0.8em;
  width: 40%;
  text-align: center;
  background-color: white;
  border-radius: 3px;
}

.partido:hover {
  filter: brightness(90%);
  transition: 0.3s;
}

.logo-partido {
  height: 180px;
}
.partido .social-links img {
  cursor: pointer;
}

/* ============== BANCADA ============== */
#bancada {
  margin: 0.4em;
}
#bancada .col-b {
  overflow-x: auto;
}

table {
  table-layout: auto;
  color: var(--headline-color);
  font-size: 1em;
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th {
  border: 1px solid var(--border-color);
  text-align: left;
  color: white;
  background-color: var(--primary-color);
  padding: 10px;
}

td {
  height: 2.5em;
  border: 1px solid var(--border-color);
  text-align: left;
  line-height: 200%;
  padding-inline: 1em;
}

.table-partido {
  display: block;
  width: 16em;
}

tfoot td {
  width: 100%;
  border-collapse: collapse;
}

#bancada a {
  color: var(--headline-color);
}
#bancada p {
  margin-block: 1em;
}

#bancada tfoot td {
  font-weight: 700;
}

/* ============== NOTICIAS ============== */

#noticias .col-b {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 0.4em;
}

.noticia-texto h3 {
  color: var(--headline-color);
}

.noticia-texto p {
  text-align: justify;
  margin-block: 2em;
  color: var(--headline-color);
}

.noticia-texto p:nth-child(3) {
  text-align: center;
}

.noticia-texto button {
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 0.8em;
  text-transform: uppercase;
  padding: 0.6em 5em;
}

/* ============== PLENÁRIO ============== */

#plenario .col-a h1 {
  font-size: 1.1em;
}

.video {
  padding-bottom: 50%;
  position: relative;
}

.video > iframe {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
}

#plenario .col-b p {
  margin-top: 1em;
  color: var(--headline-color);
  font-size: 0.8em;
  font-weight: 700;
}
#plenario .col-b a {
  color: var(--headline-color);
  font-weight: 400;
}

/* ============== CONTATO ============== */
.contato-texto {
  margin-bottom: 1em;
}
.contato-texto h3 {
  color: var(--headline-color);
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 1em;
}

.contato-texto p {
  margin-bottom: 1em;
  font-size: 0.9em;
}

.contato-texto ul {
  list-style: none;
}

.contato-texto ul li a {
  color: var(--headline-color);
  line-height: 180%;
}

.contato-formulario {
  margin-bottom: 1em;
}

.contato-formulario form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}

.contato-formulario form input {
  height: 2em;
  width: 80%;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

.contato-formulario form textarea {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  width: 80%;
  height: 8em;
}

.contato-formulario form button {
  height: 2.2em;
  width: 82%;
  color: white;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============== FOOTER ============== */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding-block: 0.8em;
  line-height: 150%;
}

footer p {
  margin-inline: 1em;
}

/* ============== FAB ============== */

#FAB {
  position: fixed;
  bottom: 1rem;
  right: 2.5rem;
}

#FAB:hover {
  filter: brightness(150%);
  transition: 0.3s;
}

/* ============== ASSESSMENT ============== */

#experiencia {
  padding-top: var(--nav-height);
}

.col-d {
  margin-inline: .2em;
}
.col-d h3{
  text-align: justify;
  font-size: 1em;
  margin-block: 1em;
  color: var(--headline-color);

}

.col-d p{
  text-align: justify;
  color: var(--headline-color);
  font-size: .9em;
  margin-block: 1em;
}


/* =================== TABLET 667 =================== */
@media (min-width: 667px) {
  #home h1 {
    font-size: 2em;
  }
  #home h3 {
    font-size: 1em;
  }

  #home button {
    margin-top: 2em;
    transform: scale(1.4);
  }
  .col-a {
    transform: scale(1.2);
    margin-bottom: 2.4em;
  }

  #bancada .col-b {
    margin: 0 -10em;
    transform: scale(0.7);
  }

  #bancada tfoot td {
    font-weight: 700;
  }
}

/* =================== PC 1024 =================== */

@media (min-width: 1024px) {
  body {
    overflow: auto;
    overflow-x: hidden;
  }
  .wrapper {
    width: min(80rem, 100%);
  }

  label #sign-one {
    display: none;
  }

  nav ul {
    position: initial;
    width: initial;
    height: initial;
    top: initial;
    /* text-align: initial; */
    left: initial;
    background-color: initial;
  }

  nav ul li {
    display: initial;
    margin: initial;
    line-height: initial;
  }
  nav ul li a {
    font-size: initial;
  }

  nav {
    position: fixed;
    top: 0;
    width: 100vw;
    height: var(--nav-height);
    z-index: 100;
    background-color: var(--primary-color);
  }

  nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
    height: 6rem;
  }

  nav ul li a {
    opacity: 0.7;
    text-decoration: none;
  }

  nav ul li a:hover {
    letter-spacing: initial;
    opacity: 1;
    font-weight: 700;
    text-decoration: underline;

    padding-inline: 0.8rem;
    width: 100%;
  }

  #home {
    padding-top: var(--nav-height);
  }

  .col-a {
    padding: 0em;
  }

  .col-a h1 {
    margin: -2rem;
  }

  .col-a p {
    line-height: 200%;
  }

  .col-a form input {
    transform: initial;
    width: 32%;
  }
  .col-a form button {
    transform: initial;
    width: 33%;
  }

  .home-texto {
    position: absolute;
    top: 25vh;
  }

  .deputados {
    gap: 0.6em;
  }

  .deputado {
    gap: 1em;
    padding-bottom: 1em;
    width: 20%;
  }

  .deputado ul {
    margin-inline: 1em;
    list-style: disc;
    text-align: left;
  }

  .partidos-card {
    gap: 0.6em;
  }

  .partido {
    width: 20%;
    font-weight: 700;
  }
  .logo-partido {
    height: 200px;
  }

  #bancada .col-b {
    margin: -1em 2em;
    transform: scale(0.9);
  }

  #bancada tfoot td {
    font-weight: 700;
  }

  #noticias .col-b {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
  }

  .col-b > .noticia-foto {
    display: grid;
    align-self: center;
  }

  .col-b > .noticia-texto {
    display: grid;
    align-self: center;
    justify-self: end;
  }

  .noticia-texto h3 {
    font-weight: 700;
    font-size: 1.1em;
  }

  .noticia-texto p {
    margin-block: 1.8em;
  }

  .noticia-texto button {
    text-decoration: underline;
  }

  #contato .col-b {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
  }

  .col-b .contato-formulario {
    display: grid;
    align-self: center;
  }

  .col-b .contato-texto {
    display: grid;
    align-self: center;
    justify-self: center;
    text-align: left;
  }

  .contato-texto ul {
    margin-left: 1em;
    list-style: circle;
  }

  #FAB {
    display: none;
    transition: 0.3s;
  }
}
