/*
TEMPLATE FOR MEDIA QUERIES
	@media screen and (min-width:1180px) {}
	@media screen and (min-width:880px) and (max-width:1179px) {}
    @media screen and (max-width:879px) {}

INDEX
	- PAGE RESET
	- STRUCTURE
    - HEADER
	- FOOTER
    - TYPOGRAPHY
	- ARTICLES
    - ENDPAGE/SEPARATOR
    - PLATFORM
    - DEFAULT FORM
    - DEFAULT TABLE
	- SECTION NAVIGATION
	- PAGE INDEX
	- SCROLL TO TOP
    - HMENU01
    - VMENU01
	- SWIPER

    font-family: 'Libre Baskerville', serif;
    font-family: 'Montserat', sans-serif;
    font-family: 'Uncial Antiqua', cursive;

*/

/*-----------------------------------------------------------  PAGE RESET ----------------------*/

/*-------------------------------------------------------------  FONTS  ------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/*-------------------------------------------------------------  ROOT  --------------------------*/

:root {
    --color1000: #184d1f;
    --color2000: #518a58;
    --color3000: #3f291a;
    --color4000: #a45d26;
    --color5000: #473221;
}

/*-----------------------------------------------------------  STRUCTURE -----------------------*/
@media screen and (min-width:1180px) {
    aside, .content { flex-basis: auto;}

    /*main {
        background: url(../images/cross-aside-bg-bottom.png) no-repeat bottom left;
        min-height: 1250px;
        background-position-y: 350px;
    }*/
    
    section.has_aside aside { 
        order: 1;
        padding: 143px 30px 0;
        background: url(../images/cross-aside-bg-bottom.png) no-repeat bottom left; 
        min-height: 1250px;
    }

    section.has_aside .content { padding: 1.8em 50px 1.8em; }    
    
    .content { order: 2; }
}

@media screen and (min-width:880px) and (max-width:1179px) {
    section.has_aside aside { 
        display: flex;
        flex-wrap: wrap;
        background: url(../images/cross-aside-bg-bottom.png) no-repeat bottom right;
        background-size: 280px;
    }    
}

@media screen and (max-width:879px) {
    section.has_aside aside { 
        display: flex;
        flex-wrap: wrap;
        background: url(../images/cross-aside-bg-bottom.png) no-repeat bottom right;
        background-size: 280px;
    }    
}

body { font-family: 'Lora', serif; background: url(../images/texture-01.png) #eae7e0;}

main section { min-height: 450px; }    

.content {  
	background: white;
	overflow: hidden; //se tirar isso a tela fica com scroll horizontal por causa da div.page_title
}

section.has_aside aside {
	position: relative;
}

input { border-radius: 0; }

section#platform {
    padding-top: 140px;
}

section#platform .content {
    min-height: 480px;
}

/*-----------------------------------------------------------  HEADER --------------------------*/
@media screen and (min-width:1180px) {
    #logo {
        background: url("../images/Logo_StDavid_top.svg") no-repeat;
        width: 140px;
        height: 170px;
        top: 10px;
        left: 80px;
    }    
    
    header section { height: 40px; }   
    
	header nav {
		top: 0;
		left: 300px;
		width: 700px;
		height: 40px;
        padding-top: 2px;
        padding-left: 20px;
        background: var(--color1000);
    }

    #social {
        right: 0;
        top: 0;
        background: var(--color1000);
        height: 40px;
        width: 245px;
        padding-top: 10px;
        font-size: 15px;
    }

    #social a { margin-left: 7px; }

    a#donate {
        background-size: 15px !important;
        font-size: 12px;
    }

    .gbar {
        position: absolute;
        height: 40px;
        background: var(--color1000);
        top: 0;
        right: 0;
        width: calc(50% - 575px);
    }
}

@media screen and (min-width:880px) and (max-width:1179px) {
    #logo {
        background: url("../images/Logo_StDavid_wide.svg") no-repeat;
        width: 220px;
        height: 140px;
        top: 5px;
    }

    header { background: var(--color1000); }
    
    header section { height: 120px; }   

    header nav {
        top: 20px;
        right: 0;
    }

    #social {
        right: 45px;
        top: 26px;
    }

    #social a {
        font-size: 18px;
        margin-left: 4px;
    }

    a#donate {
        background-size: 18px !important;
        font-size: 14px;
    }
}

@media screen and (max-width:879px) {
    #logo {
        background: url("../images/Logo_StDavid_wide.svg") no-repeat;
        width: 190px;
        height: 115px;
        top: 0px;
    }

    header { background: var(--color1000); } 
    
    header section { height: 100px; }

    header nav {
        top: 20px;
        right: 0;
    }

    #social {
        right: 0;
        top: 60px;
    }

    #social a {
        font-size: 18px;
        margin-left: 4px;
    }

    a#donate {
        background-size: 15px !important;
        font-size: 12px;
    }

}
 
header { /*! background-color: var(--color5000); */  }

#logo {
    display: block;
    position: absolute;
    z-index: 800;
    background-size: 100%;
}

header nav { position: absolute; }

#social {
    position: absolute;
    text-align: right;
}

#social a {
	color: white;
}

a#donate { 
	background: url(../images/icon-top-donate.png);
	background-repeat: no-repeat;
	padding-left: 21px;
    font-family: 'Montserrat', sans-serif;
	color: white;
	line-height: 20px;
	background-position-y: 0px;
	position: relative;
	top: -2px;
}

/*-----------------------------------------------------------  FOOTER --------------------------*/
@media screen and (min-width:1180px) { }

@media screen and (min-width:880px) and (max-width:1179px) { }

@media screen and (max-width:879px) { }

footer {
    background: var(--color3000);
    color: white;
    padding: 25px 0 0 0;
    font-family: 'Montserrat', sans-serif;
}

footer section { 
    padding: 0 0 40px; 
    position: relative;
    justify-content: center;
}

footer .newsletter,
footer .org_info { text-align: center; }

footer .newsletter h1,
footer .org_info h1 { font-size: 24px !important; }

footer .newsletter input[type=submit] {
    background-color: var(--color4000) !important;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

footer .newsletter input[type=submit]:hover {
    background-color: var(--color2000) !important;
}

footer section h1 {
	color: white;
	margin-bottom: 20px !important;
    text-transform: uppercase;
    /*! margin-top: 70px; */
}

footer p {
	font-size: 13px;
    font-weight: 300;
    line-height: 20px;
	margin: 10px 0;
}

footer p.ft-social { color: var(--color4000); font-size: 22px; }

footer p.ft-social a { color: var(--color4000); font-size: 22px; }

footer p.ft-social a:hover { color: var(--color2000); transition: all 0.2s linear; }

footer a { color: var(--gray4); }
footer a:hover { color: var(--gray1); }

form.newsletter { 
    width: 100%;
    max-width: 350px;
}

form.newsletter input[type="email"],
form.newsletter input[type="email"]:hover {
	width: calc(100% - 70px);
	height: 30px;
	background-color: white;
    color: var(--gray5);
	/*border: 1px solid rgba(255,255,255,0.4);*/
	padding: 0 8px;
}

form.newsletter input[type="submit"] {
	background-color: var(--gray4);
	color: white;
	text-transform: none;
	/*border-color: var(--gray2);*/
	width: 60px;
	height: 30px;
    cursor: pointer;
}

form.newsletter input[type="submit"]:hover {
    background-color: var(--gray1);
    /*border-color: var(--gray1);*/
	color: var(--gray5);
    opacity: 0.7;
}

.wrap_admin { background-color: var(--color5000); /*! position: relative; *//*! bottom: 0; */}

.wrap_admin p, 
.wrap_admin a { color: white; font-size: 11px; }

.wrap_admin a:hover { color: var(--gray3); }

@supports (-ms-ime-align:auto) {
	.newsletter form.default input[type='email'], .newsletter form.default input[type='email']:hover{ width:250px;}
}

/*-----------------------------------------------------------  TYPOGRAPHY   --------------------*/
@media screen and (min-width: 1180px) {
    .page_title { width: calc(100% + 100px); left: -50px; }
}

@media screen and (min-width: 880px) and (max-width:1179px) {
    .page_title { width: calc(100% + 3em); left: -1.5em; }
}

@media screen and (max-width: 879px) {
    .content .page_title {
        top: -14px !important;
        padding: 20px 0 !important;
    }

    .content .page_title h1 { font-size: 30px !important; }
}

.page_title {
    background: url(../images/texture-01.png) #eae7e0;
    width: calc(100% + 100px);
    position: relative;
    left: -50px;
    top: -1.8em;
    text-align: center;
    padding: 30px 0;
}

.content .page_title h1 {
    margin: 0;
    font-weight: 600;
    font-size: 36px;
    text-transform: uppercase;
    color: var(--color3000);
}

.content h1 {
	font-family: 'Montserrat', sans-serif;
	font-size: 36px;
	margin-bottom: 0.35em;
	color: var(--color1000);
}

.content h2 {
	font-family: 'Montserrat', sans-serif;
    color: var(--color4000);
    font-size: 24px;
	margin-bottom: 0.35em;
}

.content h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color2000);
    font-size: 22px;
    font-weight: normal;
	margin-bottom: 0.35em;
}

.content h3 sup { 
	font-size: 12px;
	margin-bottom: 0.35em; 
}

.content h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray4);
    font-size: 18px;
	margin-bottom: 0.35em; 
}

.content p, .content ol, .content ul, .content blockquote, .content pre, .content code { 
	font-size: 17px;
	margin-bottom: 20px;
    font-weight: 300;
    line-height: 27px;
}

.content p.biblical-quote {
    font-size: 22px;
    color: var(--color2000);
}

.content blockquote { 
	padding: 20px 30px 10px;
    color: white;
    background: var(--gray2);
    border-top: 5px solid var(--gray1);
    border-bottom: 5px solid var(--gray1);
}

.content blockquote p { font-size: 0.9em; }

.content blockquote h1 {
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: lighter;
    color: var(--gray1);
    margin-top: 20px;
}

.content ul li::before {
    content: '\f0c8';
    font-size: 0.5em;
    bottom: 0.1875em;
    color: var(--color2000);
}

.content ol li::before {
    color: var(--color1000);
}

a { color: var(--color1000);}
a:hover{ color: var(--color5000); }

.content a { border-bottom: 1px dashed var(--color1000); }

.content a:hover { border-color: var(--color5000); }

aside h3 {
	font-size: 1.9em;
    margin-bottom: 0.3em;
	color: var(--gray5);
	text-transform: uppercase;
	text-align:center;
}

/*-----------------------------------------------------------  ARTICLES ------------------------*/
article h3 {
    display: none;
}

.content article h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray5);
    font-size: 26px;
    font-weight: 300;
    margin-top: 0;
}

.content article h2 {
    font-size: 22px;
    color: var(--color2000);
    font-weight: 300;
}

.article_separator {
    background: url(../images/stdavid-separator.png) no-repeat;
    background-size: 100%;
    height: 20px;
    width: 20px;
    opacity: 0.7;
    margin: 30px auto;
}

/*-----------------------------------------------------------  ENDPAGE/SEPARATOR ---------------*/
.separator {
	background: url(../images/stdavid-separator.png);
	background-size: 100%;
	height: 20px;
	width: 20px;
	margin: 30px auto;
}

.end_page {
    background: url(../images/pg_end.png) no-repeat;
    background-size: 100%;
	height: 8px;
	width: 151px;
	margin: 30px auto;
}

/*-----------------------------------------------------------  DEFAULT FORM   ------------------*/
form.default input,
form.default textarea { border-color: var(--gray2); }

form.default input[type="submit"], 
form.default input[type="button"],
.form_buttons a,
a.button {
    border-color: var(--gray2);
	color: var(--gray2);
    background-color: white;
}

form.default input[type="submit"]:hover, 
form.default input[type="button"]:hover,
.form_buttons a:hover,
a.button:hover, 
a.button.selected {
	color: var(--gray1);
	border-color: var(--gray1);
}

a.button01 {
    border-color: var(--gray1);
    background: none;
    color: var(--gray1);
    height: auto;
    font-weight: bold;
    text-align: center;
    width: 100%;
    font-size: 1.5em;
    border-radius: 30px;
    transition: color, background-color 0.7s;
    margin: 6px auto;
    float: none;
    display: block;
    padding: 10px 51px;
}

a.button01:hover {
	border-color: var(--gray3);
	color: var(--gray3);
	transition: color, background-color 0.7s;
}

input.button {
	width: 188px;
    padding: 5px 15px;
    color: white;
    background-color: var(--gray5);
    font-size: 13px;
    cursor: pointer;
    height: 30px;
    margin-top: 5px;
}

input.button:hover { background-color: var(--gray2); }


form.default .buttons_field_group { float: right; margin-bottom: 20px; }

form.default .buttons_field_group #remove_fgroup {
    background-color: transparent;
    color: var(--color2000);
    border: 1px solid var(--color2000);
    transition: all 0.2s linear;
}

form.default .buttons_field_group #add_fgroup {
    background-color: var(--color2000);
    color: white;
    border: 1px solid var(--color2000);
    transition: all 0.2s linear;
}

form.default .buttons_field_group #remove_fgroup:hover,
form.default .buttons_field_group #add_fgroup:hover {
    border-color: transparent;
    background: var(--color4000);
    color: white;
    transition: all 0.2s linear;
}

.buttons_field_group span {
	color: white;
	padding: 4px 10px;
	margin: 5px 0;
	display: inline-block;
	cursor: pointer;
}

/*-----------------------------------------------------------  DEFAULT TABLE   -----------------*/
table.default {
    max-width: 600px;
    margin: 15px auto;
    font-family: 'Montserrat', sans-serif;
}

table.default caption {
	background-color: var(--color2000);
    color: white;
}

table.default thead {
    background: var(--gray3);
    border-bottom: 2px solid var(--gray4);
}

/*table.default thead tr th {
    font-weight: normal;
    text-transform: uppercase;
    color: white;
    vertical-align: top;
}*/

table.default th, table.default td { padding: 5px 10px; }

table.default th {
    font-weight: normal;
    /*text-transform: uppercase;*/
    color: var(--color1000);
    vertical-align: middle;
    background-color: var(--gray1);
    border-bottom: 1px solid var(--gray2);
}

table.default thead th {
    font-weight: normal;
    text-transform: uppercase;
    color: white;
    background: var(--gray3);
    vertical-align: top;
}

table.default td {
	border-bottom: 1px solid var(--gray2);
	vertical-align: middle;
	font-size: 0.875em;
    font-weight: 300;
}

table.default tfoot th {
    font-size: 14px;
    text-transform: inherit;
    color: white;
    background: var(--gray4);
}

table.default .bg01 {
	font-size: 18px;
	background-color: var(--gray5);
	color: white;
}

table.default .bg02 {
	font-weight: normal;
	background-color: var(--gray4);
	vertical-align: top;
	color: white;
}

/*--------------------------------------------------------  SECTION NAVIGATION  ----------------*/
#section_navigation a.selected {
    background-color: var(--gray3);
    color: white;
    border-color: var(--gray3);
}

/*------------------------------------------------------------  PAGE INDEX  ---------------------*/
.content .box_index { margin-bottom: 50px; }

.content .box_index h1 {
    padding: 10px 0.5em;
    background: var(--gray2);
}

.content .box_index h1.open::after,
.content .box_index h1.close::after { top: 0.7em; }


/*-----------------------------------------------------------  SCROLL TO TOP   ------------------*/
#scrollToTop { color: var(--gray1); }


/*-----------------------------------------------------------  HMENU01   ------------------------*/
@media (min-width: 1180px) {
    /* FIRST LEVEL    -----------------*/
    .hmenu01 ul#main-menu > li > a {
        padding: 9px 18px;
        color: white;
        font-size: 15px;
        font-weight: 300;
        text-decoration: none;
        text-transform: uppercase;
        display: inline-block;
        border: none;
    }

    /*.hmenu01 ul#main-menu > li::after {
        content: '|';
        color: var(--color2000);
    }*/

    .hmenu01 ul#main-menu > li:last-child::after { content: none; padding-right: 0; }  
    
    .hmenu01 ul#main-menu > li > a:hover { color: var(--color2000); }

    .hmenu01 ul#main-menu > li > a.current {
        background: var(--color3000);
        padding: 10px 15px;
        top: -2px;
    }
    
    /* SECOND+ LEVEL    ---------------*/
    .hmenu01 ul#main-menu > li ul {
        border-left: 1px solid transparent;
        box-shadow: 3px 3px rgba(80,80,80,0.2);
    }

    .hmenu01 ul#main-menu > li > ul li {
        background-color: var(--color2000);
        /*border-left: 3px solid var(--color2000);
        border-right: 3px solid var(--color2000);*/
        width: 100%;
        font-size: 14px;
        font-weight: 300;
    }

    .hmenu01 ul#main-menu > li > ul li ul li { background-color: var(--color1000); }

    .hmenu01 ul#main-menu > li > ul li a { 
        color: white; 
        padding: 10px 25px 10px 8px;
        border-bottom: 1px solid white;
    }

    .hmenu01 ul#main-menu > li > ul li:last-child a { border-bottom: none; }

    .hmenu01 ul#main-menu > li ul li a:hover { background-color: var(--color1000); color: white; }        
    
    .hmenu01 ul#main-menu > li > ul li a.has-submenu span.sub-arrow { right: 0.9375em; }

    .hmenu01 ul#main-menu > li > ul li a.has-submenu span.sub-arrow:after {
        content: '\f105';
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
    }
}

@media (max-width: 1179px) {
    .hmenu01 > ul#main-menu {
        background-color: var(--color2000);
        width: 210px;
        padding: 0 5px;
        top: 32px;
    }

    /* FIRST LEVEL    -----------------*/
    .hmenu01 ul#main-menu > li > a {
        padding: 12px 5px;
        background: var(--color2000);
        color: #ffffff;
        font-size: 17px;
        font-weight: normal;
        text-decoration: none;
        text-transform: uppercase;
        border-bottom: 1px solid #ffffff;
    }

    .hmenu01 ul#main-menu > li > a:hover {
        color: var(--color1000);
    }
    
    .hmenu01 ul#main-menu > li > a.highlighted { border-bottom: none; }    
    
    .hmenu01 ul#main-menu > li > ul li a:hover { 
        color: var(--gray5);
		border-bottom-color: var(--gray1);
		background: var(--gray2);
    }

    .hmenu01 ul#main-menu > li:last-child > a { border-bottom: none; }
    
    .hmenu01 ul#main-menu > li > a.has-submenu span.sub-arrow { right: 0.9375em; }

    .hmenu01 ul#main-menu > li > a.has-submenu span:after {
        content: '\f107';
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
    }
    
    /* SECOND+ LEVEL    ---------------*/
    .hmenu01 ul#main-menu > li ul {
        margin: 3px 0 15px;
        background: var(--gray1);
        border: 1px solid var(--color2000);
        outline: 1px solid var(--color2000);
    }

    .hmenu01 ul#main-menu > li > ul li a { 
        color: var(--color2000); 
        padding: 10px 8px;
        border-bottom: 1px dotted var(--color2000);
    }

    .hmenu01 ul#main-menu > li > a.has-submenu span.sub-arrow { right: 0.9375em; }

    .hmenu01 ul#main-menu > li > a.has-submenu span:after {
        content: '\f107';
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
    }
    
    .main-menu-btn { top: 0; }
}

.hmenu01 { font-family: 'Montserrat', sans-serif; }

/* hamburger icon */
.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
    background: var(--gray2);
    width: 100%;
}

/*-----------------------------------------------------------  VMENU01   -----------------------*/
@media screen and (max-width:1179px) {
    .vmenu01 { padding: 0.8em 0; }
}

.mbar {
	position: absolute;
	background-color: rgba(0,0,0,0.03);
	width: 92%;
	height: 100%;
	top: 0;
    left: 4%;
    z-index: -1;
}

.vmenu01 { font-family: 'Montserrat', sans-serif; }

.vmenu01 > ul > li {
	border: none;
    margin: 0;
}

.vmenu01 ul li::before{content: none !important;}

.vmenu01 > ul > li > a {
    border-color: var(--color1000);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 300;
    padding: 10px;
    color: var(--color1000);
    transition: all 0.2s linear;
    margin-bottom: 5px;
}

.vmenu01 a:hover {
    color: var(--color2000); 
    border-color: var(--color2000); 
}

.vmenu01 a.selected {
	color: var(--color3000);
	border-color: var(--color3000);
    background: #ddd8cf;
	font-weight: bold;
}

.vmenu01 a sup { font-size: 10px; }

.vmenu01 > ul > li ul { margin: 0 15px 10px 45px !important; }

.vmenu01 > ul > li ul li { 
    border-bottom: dashed 1px var(--gray2);
    text-transform: uppercase;
    font-size: 0.8em;
	transition: .5s ease;
}

/*-----------------------------------------------------------  SWIPER --------------------------*/
.aspect-ratio-box {
	height: 0;
	padding-top: 65.41%;
	position: relative;
	margin-bottom: 30px;
}



