/*
Theme Name: IMA Alagoas
Author: Arthur Paredes
URI: https://arthurparedes.com
Description: 
Text Domain: ima
*/
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* Global Styles */
:root {
    /* Cores */
    --color-gray: #555555;
    --color-medium-gray: #ACACAC;
    --color-light-gray: #e5e5e5;
    --color-light-green: #57b847;
    --color-dark-green: #053f26;
    --color-green: #398e3c;
    --color-body: #212529;
    
    /* 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: 140px;
    --img-16x9-max-width: 240px;
}

html, body {
   max-width: 100%;
   overflow-x: hidden;
    padding: 0 !important;
    margin: 0 !important;
    background-color: white;
    display: unset;
}

html{
    font-family: sans-serif;
	-ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0 40px;
    line-height: 150%;
    font-size: 20px;
    color: var(--color-body);
}

.logo-pesquisa {
	max-width: 70%;
	margin: 0 auto;
}

*, :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-body);
    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: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, .15);
    padding: 0;
    margin: 0;
}


.btn-green {
	box-shadow: 0px 10px 19px -4px rgb(31,74,19, 0.4);
	background-color:#44c767;
	border-radius:50px;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-size:16px;
    font-weight: 600;
	padding:16px 32px;
	text-decoration:none;
    margin: 0 auto;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease-out;
}
.btn-green:hover {
    transform: translateY(-3px);
	text-decoration:none;
	background-color: white;
    color: #44c767;
}
.btn-green:active {
	position:relative;
	top:1px;
}



.top-bar {
    display: flex;
    background: url("img/folhas/10.svg") var(--color-green) no-repeat -700px 54%;
    background-size: cover;
    justify-content: flex-end;
    padding: 0 2vw;
    align-items: center;
    min-height: 50px;
    column-gap: 20px;
}

.top-bar .top-menu {
    display: flex;
    margin: 0;
    list-style: none;
    column-gap: 20px;
    align-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.top-bar .top-menu a{
    color: white; 
}

.top-bar .social-media{
    max-width: 1240px;
    align-content: flex-end;
    align-items: flex-end;
}

.top-bar .social-media li a img {
    min-width: 20px;
    max-width: 20px;
}

/* Caixa de pesquisa */
.top-bar #searchform {
    text-align: center;
    white-space: nowrap;
    padding-right: 20px;
}

.top-bar #searchform input[type=text] {
    width: 100%;
    max-width: 130px;
    font-size: 14px;
    padding: 8px 20px;
    padding-right: 40px;
    border: 0;
    border-radius: 50px;
    background-color: #F2F2F2;
}

/* Lupa */
.top-bar #searchdo {
    display: inline-block;
    vertical-align: middle;
    max-width: 20px;
    padding: 4px;
    margin-left: -45px;
}


.menu-bar {
    display: flex;
    gap: var(--medium-h-gap);
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 1.25vh 2vw;
    max-height: 50px;
    background-color: white;
}

.menu-bar .logo {
    margin-top: 6px;
    padding: 0 20px;
    max-width: 260px;
    min-width: 260px;
}

.mega-menu {
    display: flex;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 .8rem 1rem -.6rem rgba(0, 0, 0, .05), 0 2rem 2.5rem -.5rem rgba(0, 0, 0, .05);
    padding: 3.2rem 1.5rem 2rem;
    position: absolute;
    top: 120px;
    min-height: 300px;
    left: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px); /* Start hidden above */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease-in-out, visibility 0.4s;
    overflow: hidden;
}

.mega-menu-wrapper {
    justify-content: flex-start;
    margin: 0 auto;
    min-width: 300px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
    transition: transform var(--animation-duration, .3s)ease-in-out;
}

.mega-menu-open {
    transform: translateY(0); /* Slides down */
    visibility: visible;
    opacity: 1;
}

/* Navegação Topo */
#nav-bar {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

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

#nav-bar ul li a {
    text-decoration: none;
    color: var(--color-dark-green);
    padding: 8px 12px;
    transition: background-color 0.2s ease;
    border-radius: 50px;
    text-transform: uppercase;
}

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

/* Responsive styles */
@media (max-width: 728px) {
    
    #nav-bar .menu-header-menu-container {
        display: none;
    }
  
    header .logo {
        margin-top: 10px;
        max-width: 120px;
        min-width: 120px;
    }

}

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

.social-media li a{
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    padding: 14px 10px;
    transition: background-color 0.2s ease-out;
}

.social-media li a:hover{
    background-color: var(--color-dark-green);
}

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

/* 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: 16px;
    text-transform: uppercase;
    margin-bottom: var(--small-v-gap);
}

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

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

.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-fullwidth{
    background-color: var(--color-light-gray);
    padding: var(--h-gap);
    
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100vw;
    position: relative;
    margin-left: calc(-50vw - var(--h-gap) + 50%); 
    margin-right: calc(-50vw + 50%);
}

.banner-fullwidth .bloco{
    max-width: 1200px;
}

.banner-728x90{
    background-color: var(--color-light-gray);
    text-align: center;
    width: 100%;
    padding: 20px;
    padding-top: 110px;
}

/* 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 {
    max-width: 1250px;
    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-fullwidth {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100vw;
    position: relative;
    margin-left: calc(-50vw + 50%); 
    margin-right: calc(-50vw + 50%);
}

.bloco .noticia {
    flex: 1;
}

.bloco h3,
.bloco-header{
    font-weight: 400;
    font-size: 32px;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.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 {
    color: white;
    margin: 0;
    padding: 0;
    background-color: var(--color-dark-green);
    /*background: url("img/folhas/3.svg") var(--color-dark-green) no-repeat 1000px 40%;*/
    background-size: cover;
}

footer .wrapper {
    padding: 60px 30px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1250px;
    margin: 0 auto;
}

footer .wrapper section {
    align-content: flex-start;
    flex: 1;
    margin: var(--medium-v-gap);
    gap: var(--h-gap);
}

footer .wrapper section:first-child {
    max-width: 360px;
}

footer .wrapper section h4 {
    display: block;
    color: var(--color-light-green);
    font-size: 1rem;
    margin-bottom: 10px;
}

footer .wrapper ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

footer .wrapper ul li {
    padding: 2px 0;
}

footer .wrapper ul li a {
    color: var(--color-light-gray);
    text-decoration: none;
    letter-spacing: 0.5px;
}

footer .wrapper ul li a:hover {
    text-decoration: underline;
}

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

footer .contact-info .logo{
    max-width: 150px;
    margin-bottom: 10px;
}

footer .contact-info ul {
    gap: 30px;
}

footer .contact-info {
    & a, h3 {
        color: var(--color-light-green) !important;
        font-weight: bold;
    }
}

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

footer .contact-info ul li img{
    vertical-align: middle;
    margin-right: 5px;
}

footer .social-media{
    margin-top: 5px;
}

footer .social-media li a {
    border-radius: 50px;
    padding: 14px;
}

footer .social-media li a:hover{
    background-color: var(--color-light-green);
}

footer .site-map {
    font-size: 12px;
    line-height: 1.6em;
    display: flex;
    justify-content: space-between;
}

footer .site-map > div{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--h-gap);
}

footer .site-map h3 {
    margin-bottom: var(--medium-v-gap);  
}

footer .site-map ul{
    margin-bottom: var(--v-gap);
}

footer .copyright{
    padding: 20px;
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: #136cb6;
    font-size: 13px;
    gap: var(--medium-h-gap);
    flex-wrap: nowrap;
    line-height: 1.4;
}

footer .copyright img {
    max-width: 180px;
}


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

    main {
        display: block;
    }

    .bloco {
        flex-direction: column;
    }

    .bloco > div {
        flex-basis: 100%;
        max-width: 100%;
    }
    
    footer .site-map > div{
        grid-template-columns: repeat(2, 1fr);
    }

}

/* For smartphones */
@media (max-width: 768px) {
    body {
        padding-top: 70px !important;
    }
    
    header {
        overflow: hidden;
    }
    
    .top-bar {
        justify-content: center;
    }
    
    .top-bar #searchform {
        margin-top: -4px;
    }
    
    .top-bar .social-media li a {
        max-width: 100%;
    }
    
    .top-bar .top-menu {
        display: none;
    }
    
    .menu-bar {
        padding: 1vh 1vw;
    }
    
    .menu-bar .logo {
        max-width: 280px;
        min-width: 280px;
        padding-bottom: 10px;
    }
    
    main {
    }
    
    footer {
        font-size: 0.85em;
        padding: 0;
    }
    
    footer .wrapper {
        display: block;
        padding: 20px;
    }
    
    footer .wrapper section {
        margin: 0;
    }
    
    footer .contact-info {
        max-width: 100%;
        margin-top: var(--v-gap);
        margin-bottom: 0;
    }
    
    footer .contact-info .logo {
        max-width: 130px;
    }
    
    footer .social-media li a {
        max-width: 50px;
    }

    footer .wrapper section:first-child {
        max-width: 100%;
    }
    
    footer ul li {
        padding: 0 !important;
    }
    
    footer section {
        flex-basis: 100%;
        max-width: 100%;
        column-gap: 0;
        margin: 0;
    }
    
    footer .social-media,
    footer .site-map{
        margin-bottom: var(--v-gap);
    }
    
    footer .site-map > div{
        width: 100%;
        display: block;
    }
    
    footer .site-map div:first-child ul{
        display: block;
    }
    
    footer .copyright {
        flex-direction: column;
        text-align: center;
        font-size: 11px;
        padding: 30px 10px;
    }

    .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 .box {
        margin: 0 -20px;
        padding: 30px 20px;
        border-radius: 0;
    }
    
    .bloco .noticia {
        flex: auto;
    }
}


/* WhatsApp Floater */
#wapp-floater {
    position: fixed;
    width: 30px;
    height: 30px;
    right: 20px;
    bottom: 20px;
    margin: 0;
    z-index: 100;
    display: inline-block;
    line-height: 40px;
    background-color: #4ac758;
    border-radius: 100px;
    overflow: hidden;
    padding: 12px;
}

#wapp-floater span {
    position: relative;
    width: 10%;
    transition: transform .2s ease-out;
}

#wapp-floater:hover {
    transform: scale(1.2);
    transition: transform .2s ease-out;
}


/* Play icon styling */
.noticia.video picture {
    position: relative;
}

.noticia.video picture a::after {
    content:url('img/icons/play.svg');
    display: inline-block;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 18px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 0 0 4px;
    width: 40px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 2.1;
    z-index: 2; /* Ensures the play icon appears above the gradient */
}

/* Video lightbox */
#vlightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9); /* White overlay with opacity */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.post-content #yt_embedded_video {
    position: relative;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 120px;
}

#vlightbox .vlightbox-content{
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#vlightbox .vlightbox-content iframe,
.post-content #yt_embedded_video iframe,
.responsive-video iframe{
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Close button */
#vlightbox .vlightbox-close {
    position: absolute;
    top: -55px;
    right: 0;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    padding: 12px;
    background-color: white;
    border-radius: 50px;
}