/*
Theme Name: Penedo FM 2026
Author: Arthur Paredes
URI: https://arthurparedes.com
Text Domain: penedofm
*/
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;1,400;1,700&display=swap');


/* Global Styles */
:root {
    /* Cores */
    --color-gray: #555555;
    --color-medium-gray: #ACACAC;
    --color-light-gray: #E4E4E4;
    --color-red: #d85751;
    --color-light-red: #d85751;
    --color-brand-red: #a8171e;
    --color-voce-acontece: #9d1201;
    
    /* Margens */
    --h-gap: 40px;
    --v-gap: 30px;
    --article-v-gap: 30px;
    --article-h-gap: 30px;
    --big-h-gap: 60px;
    --big-v-gap: 60px;
    --medium-h-gap: 15px;
    --medium-v-gap: 15px;
    --small-h-gap: 5px;
    --small-v-gap: 5px;
    
    /* Tipografia */
    --big-fs: 24px;
    --big-lh: 30px;

    /* Outros */
    --border-radius: 6px;
    --h2-article-size: 18px;
    --img-hover-scale: 1.1;
    --img-hover-duration: .2s;
    
    --img-square-max-width: 110px;
    --img-16x9-max-width: 240px;
}

html {
    scroll-behavior: auto;
}

html, body {
    overflow-x: hidden;
    padding: 0 !important;
    margin: 0 !important;
    background-color: white;
}

body {
    position: relative;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
    margin: 0;
    padding: 0;
    line-height: 150%;
    color: var(--color-gray);
}

*, :after, :before {
    box-sizing: inherit;
}

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    font-style: normal;
}

h1, h2, h3, h4, h5 {
    display: block;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: normal;
    unicode-bidi: isolate;
    line-height: 120%;
}

a {
    color: var(--color-gray);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

form input[type=text]:focus {
    color: black;
}

::-moz-placeholder,
:-ms-input-placeholder,
::-webkit-input-placeholder {
   color: var(--color-medium-gray);
}

header, footer {
    padding: 10px 20px;
}

main {
    position: relative;
    margin: 98px auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80px;
    background-color: white;
    z-index: 9999;
    box-shadow: rgba(149, 157, 165, 0.35) 0px 2px 15px;
    padding: 1vh 2vw;
    flex-wrap: nowrap;
    white-space: nowrap;
}

header .logo {
    padding-top: 10px;
    max-width: 80px;
    min-width: 80px;
    margin-right: var(--h-gap);
}

/* Caixa de pesquisa */
header form {
    white-space: nowrap;
}

header form input[type=text] {
    font-size: 16px;
    padding: 10px 25px;
    border: 0;
    border-radius: 50px;
    background-color: #F2F2F2;
}

/* Lupa */
header form span a {
    display: inline-block;
    vertical-align: top;
    max-width: 26px;
    padding: 4px;
    margin-top: 2px;
    margin-left: -45px;
}

/* Navegação Topo */
#nav-bar {

}

#nav-bar ul {
    list-style: none;
    display: flex;
    flex-flow: row;
}

#nav-bar ul li a {
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--color-gray);
    padding: 8px 14px;
    transition: background-color 0.2s ease;
    border-radius: 50px;
    margin: 5px;
}

#nav-bar ul li a:hover {
    background-color: var(--color-light-red);
    text-decoration: none;
    color: white;
}

#nav-bar ul li.penedo-fm a {
    background-image: url('img/icons/pulse.svg');
    background-repeat: no-repeat;
    background-size: 18px;
    background-position-y: center;
    background-position-x: 5px;
    padding-left: 25px;
    font-size: 18px;
    letter-spacing: -0.5px;
    font-weight: 400;
}

#nav-full {
    display: flex;
    align-items: center;
    flex-flow: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Menu Lateral */
#nav-full #menu-full{
    position: fixed;
    flex-direction: column;
    right: -310px;
    top: 0;
    transition: right .4s ease-out;
    -moz-transition: right .4s ease-out; /* Firefox 4 */
    -webkit-transition: right .4s ease-out; /* Safari and Chrome */
    -o-transition: right .4s ease-out; /* Opera */
    -ms-transition: right .4s ease-out; /* Explorer 10 */
    width: 100%;
    max-width: 310px;
    height: 100vh;
    z-index: 9998;
    padding: 0; 
    margin-top: 98px;
    background-color: white;
}

#nav-full #menu-full ul{
    list-style: none;
    margin: 30px 30px !important;
    padding: 0;
}

#nav-full #menu-full ul li{
    font-size: 1.15rem;
    padding: 6px 0;
}

#nav-full #menu-full ul:first-child li:before {
    content: "\25B8";
    margin-right: 12px;
    color: var(--color-red);
    line-height: 30px;
}

#nav-full #menu-full ul li.penedo-fm:before{
    display: none;
}

#nav-full #menu-full ul li.penedo-fm{
    background-image: url(img/icons/pulse.svg);
    background-repeat: no-repeat;
    background-size: 14px;
    background-position-y: center;
    padding-left: 20px; 
}

#nav-full.nav-full-open #menu-full {
    right: 0;
}

#nav-full-overlay {
    display: none;
}

@media (min-width: 729px) {
    #nav-full-overlay {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, .5);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all .3s linear;
    }
    
    #nav-full-overlay.nav-full-open {
        visibility: visible;
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 728px) {
    
    header {
        justify-content: space-between;
    }
    
    #banner-penedo-fm-ao-vivo div audio{
        width: 100%;
        min-width: 350px;
        max-width: none;
    }
    
    html.nav-full-open {
        overflow: hidden;
    }
    
    #nav-bar {
        display: none;
    }
    
    #nav-full #menu-full {
        right: -100vw;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
    }
    
    #nav-full form{
        display: none;
    }
    
    #nav-full.nav-full-open form{
        display: block;
        position: fixed;
        white-space: nowrap;
        top: unset;
        bottom: 30px;
        left: 30px;
        z-index: 9999;
    }
    
    #nav-full.nav-full-open form input{
        width: 50vw;
    }
    
    #nav-full #menu-full ul:first-child{
        grid-template-columns: 2fr 1fr;
    }
}

/* Hamburger menu */
#nav-full .hamburger {
    display: inline-block;
    cursor: pointer;
    padding: 20px;
    background-color: white;
    min-width: 20px;
    vertical-align: middle;
}

#nav-full .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-gray);
    margin: 5px 0;
}

#nav-full .social-media li a{
    color: var(--color-red) !important;
    border-color: var(--color-brand-red);
}

.social-media li {
    line-height: 0.5;
    display: inline-block;
    margin-right: var(--small-h-gap);
}

.social-media li a{
    border: 1px solid var(--color-medium-gray);
    border-radius: 100px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    padding: 12px;
}

.social-media li a:hover{
    background-color: var(--color-medium-gray);
    border: 1px solid var(--color-light-red);
}

.social-media li a img {
    width: 100%; 
    min-width: 30px;
}

/* Modelos de chamadas de notícias */
.noticia {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Chapéu */
.noticia span{
    display: block;
    color: var(--color-medium-gray);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: var(--small-v-gap);
}

.noticia picture:has(img[src=""]) {
    display: none !important;
}

/* Barra lateral (wall) */
.wall > div{
    border-left: 4px solid var(--color-red);
    padding-left: 20px;
}

/* Título */
.noticia h2 {
    font-size: var(--h2-article-size);
    line-height: 24px;
    align-self: center;
    font-weight: 300;
}

.noticia h2 a {
    display: block;
}

/* Imagem */
.noticia picture {
    width: 100%;
    margin-right: var(--small-h-gap);
    overflow: hidden;
    border-radius: var(--border-radius);
    display: block;
}

.noticia picture img {
    display: block;
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: auto;
    transition: all var(--img-hover-duration) ease-out;
    max-height: 100%;
}

.noticia picture img:hover {
    transform: scale(var(--img-hover-scale));
    transition: all var(--img-hover-duration) ease-out;
}

/* Bloco Chapéu+Título */
.noticia div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Formatação de imagens */

/* Corte proporção 16x9 */
.img-16x9 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.img-16x9 picture{
    margin-bottom: var(--medium-v-gap);
}

.img-16x9-left picture img {
    height: 100%;
    aspect-ratio: 16/9;
}

.img-16x9 picture img {
    aspect-ratio: 16/9;
}

/* Imagem à esquerda */
.img-16x9-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--medium-h-gap);
}

.img-16x9-left picture {
    min-width: var(--img-16x9-max-width);
    max-width: var(--img-16x9-max-width);
    max-height: var(--img-16x9-max-width);
}

/* Corte proporção quadrada */
.img-square {
    
}

/* Imagem à esquerda */
.img-square-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--medium-h-gap);
}

.img-square-left picture {
    min-width: var(--img-square-max-width);
    max-width: var(--img-square-max-width);
    max-height: var(--img-square-max-width);
}

.img-square-left picture img {
    height: 100%;
    aspect-ratio: 1/1;
}


/* Banners */
.banner{
    width: 100%;
    text-align: center;
}

.big-banner{
    text-align: center;
    margin: var(--v-gap);
}

.banner-full-width{
    margin: var(--v-gap) 0;
    width: 100%;
    text-align: center;
    background-color: var(--color-light-gray);
    padding: 10px;
}

.banner-728x90{
    position: absolute;
    left: 0;
    right: 0;
    top: 34px;
    background-color: var(--color-light-gray);
    text-align: center;
    width: 100%;
    margin: var(--v-gap) 0;
    padding: 20px;
}

/* Formato apenas mobile */
.banner-320x50{
    display: none;
}

.banner-300x250{
    margin-top: var(--v-gap);
}

.banner-320x50 img{
    width: 320px;
    height: 50px;
}

.banner-300x250 img{
    width: 300px;
    height: 250px;
}

.banner-300x100 img {
    width: 320px;
    height: 100px;
    margin: var(--small-v-gap) auto;
}

.banner-336x280 {
    text-align: center;
}

.banner-336x280 img {
    width: 336px;
    height: 280px;
}

/* Blocos Homepage */
.bloco {
    display: flex;
    flex-direction: row;
    gap: var(--h-gap);
    margin: var(--v-gap) 0;
    align-items: flex-start;
}

.bloco > div {
    display: flex;
    gap: var(--article-v-gap);
    flex-direction: column;
    /*
    flex-basis: 100%;
    flex-grow: 1;
    flex-shrink: 1;
    */
}

.bloco .col-1 {
    flex: 1;
    flex-direction: column;
}

.bloco .row-1 {
    display: flex;
    flex-direction: row;
    gap: var(--v-gap);
}

.bloco .row-2 {
    display: grid;
    gap: var(--v-gap);
    grid-template-columns: 1fr 1fr;
}

.bloco .row-3 {
    display: grid;
    gap: var(--v-gap);
    grid-template-columns: repeat(3, 300px);
}

.bloco .noticia {
    flex: 1;
}

.bloco h3,
.bloco-header{
    width: 100%;
    font-size: 28px;
    border-bottom: 4px solid var(--color-red);
    padding-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.bloco .box h2{
    font-size: 24px;
    line-height: 30px;
}

.bloco h3.right{
    text-align: right;
}

.box {
    background-color: var(--color-light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
}





/* Rodapé */
footer {
    padding-top: 60px;
    background-color: var(--color-gray);
    color: white;
    font-size: 1rem;
    color: var(--color-medium-gray);
    line-height: 1.5;
}

footer > div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

footer > div > section:first-child {
    display: flex;
    flex-direction: row;
    column-gap: var(--h-gap);
}

footer section {
    align-content: flex-start;
    flex: 1;
    margin: var(--medium-v-gap);
    gap: 20px;
}

footer section h3 {
    display: block;
    margin-bottom: var(--medium-v-gap);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    padding: 2px 0;
}

footer ul li a {
    color: var(--color-light-gray);
    text-decoration: none;
}

footer .contact-info {
    display: flex;
    flex-direction: column;
    max-width: 320px;
    margin-bottom: var(--small-v-gap);
}

footer .contact-info ul li{
    margin-bottom: 10px;
}

footer .site-map {
    line-height: 1.6em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

footer .copyright {
    padding: 20px 30px;
}

footer .social-media img {
  filter: brightness(0) invert(1);
}



/* Responsive */
@media (max-width: 1024px) {
    /* For tablets */
    header {
        overflow-x: auto;
    }

    .bloco {
        flex-direction: column;
    }

    .bloco > div {
        flex-basis: 100%;
        max-width: 100%;
    }

}

/* For smartphones */
@media (max-width: 768px) {
    header {
        overflow: hidden;
    }
    
    footer {
        font-size: 0.9em;
        padding: 40px 0 20px 0;
    }
    
    footer .copyright{
        font-size: 12px;
    }
    
    footer ul li {
        padding: 0 !important;
    }
    
    footer section {
        flex-basis: 100%;
        max-width: 100%;
        column-gap: 0;
        margin: 0;
    }
    
    footer > div {
        padding: 0 20px;
    }
    
    footer > div > section:first-child {
        flex-direction: column;
        text-align: center;
    }

    footer .contact-info{
        max-width: 100%;
        text-align: center;
    }
    
    footer .social-media,
    footer .site-map{
        margin-bottom: var(--v-gap);
    }
    
    footer .site-map {
        font-size: 0.85em;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* see notes below */
    }
    
    footer .site-map div:first-child ul{
        display: block;
    }

    header {
        padding: 1vh 4vw;
    }

    .bloco {
        flex-direction: column;
        row-gap: var(--v-gap);
        column-gap: 0;
    }

    .bloco > div {
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .bloco .box h2{
        font-size: 22px;
        line-height: 26px;
        font-weight: 400;
    }
    
    .bloco .col-1 {
        flex-wrap: wrap;
    }
    
    .bloco .row-1 {
        flex-wrap: wrap;
    }

    .bloco .row-2,
    .bloco .row-3{
        display: flex;
        flex-direction: column;
    }
    
    .bloco-header {
        width: 100%;
        margin-top: var(--small-v-gap);
    }
    
    .bloco h3.right{
        text-align: left;
    }
    
    .bloco .box {
        margin: 0 -20px;
        padding: 30px 20px;
        border-radius: 0;
    }
    
    .bloco .noticia {
        flex: auto;
    }
    
    /* Adaptações de banners para o mobile */
    .banner-728x90 {
        padding: 20px 0;
    }
    
    .banner-300x250,
    .banner-336x280{
        display: none !important;
    }
    
    .banner-320x50{
        display: block;
    }
    
    /*========*/

}