/*
Theme Name: Napoli Shkolnik PLLC
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* color variables */
:root{
	--primary: #2386c8;
	--secondary: #002a5c;
}


@font-face {
    font-family: 'Open Sans Condensed';
    src: url('fonts/OpenSans-CondBold-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans Condensed';
    src: url('fonts/OpenSans-CondLight-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
} 

@font-face {
    font-family: 'Open Sans Condensed';
    src: url('fonts/OpenSans-CondLightItalic-webfont.woff') format('woff');
    font-weight: 300;
    font-style: italic;
} 

.alt-font{
	font-family: "Open Sans Condensed", sans-serif !important;
} 

/* font sizing and new classes */
.display-1 {
    font-size: 4.5em
}

.display-2 {
    font-size: 3.5em
}

.display-3 {
    font-size: 3em
}

.display-4{
	font-size: 2.7em;
}

.display-1, .display-2, .display-3 {
    padding: 0;
    margin-top: .2em;
    margin-bottom: .2em;
}

h1{
	font-size: 2.5em;
}

h2{
	font-size: 2.1em;
}

h3{
	font-size: 1.7em;
}

h4{
	font-size: 1.4em;
}

h5{
	font-size: 1.2em;
}

h6{
	font-size: 1em;
}

p.lead{
	font-size: 1.2em
}

.small{
	font-size: .9em
}

/* Google Maps */
/* adjust padding to change the height of maps */

.google-maps {
  position: relative;
  padding-bottom: 64%;
  height: 0;
  width:  100%;
  overflow: hidden;
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}


/*change color of checkmarks from flatsome's green */
.dark ul li.bullet-checkmark:before, .dark ul li.bullet-arrow:before, .dark ul li.bullet-star:before{
	color: white;
}

/* change the color of bullets. Set your colors at the top */
ul li.bullet-checkmark:before, ul li.bullet-arrow:before, ul li.bullet-star:before{
	color: var(--primary);
}

/* gravity forms */

.gform_wrapper legend{
    text-transform: none !important; 	
}

.gform_wrapper label{
    color: inherit;
}

.gform_wrapper .ginput_complex label{
	font-size: .8em !important;
}

.gform_wrapper.gravity-theme .gfield-choice-input{
	margin-bottom: 0;
}

.gform_wrapper .gfield_required{
	color: var(--primary);
}

/*.gform_button.button{
	border-radius: 10px;
}*/

/* horizontal forms */
.gform_wrapper .gf_simple_horizontal .gform_body{
	width: 100%;
	max-width: unset;
}

.gform_wrapper .gf_simple_horizontal .gform_button.button{
	margin: 0;
}

/* dark forms */
.dark .gform_wrapper.gravity-theme .gf_progressbar_title, .dark .gfield_required{
	color: white;
}

/* align buttons at bottom of row (must be set to equal) */
.align-equal .button{
	margin-top: auto;
}

.align-equal .col-inner{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.no-align.align-equal .button{
	margin-top: unset;
}

.no-align.align-equal .col-inner{
	display: block;
	flex-direction: unset;
	align-items: unset;
}

/* horizontally align icons */

.align-icons{
    align-items: center;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    
    /* mobile for display sizes */
    .display-1 {
		font-size: 3em;
	}

	.display-2 {
		font-size: 2.5em;
	}

	.display-3 {
		font-size: 2.3em;
	}

	.display-4{
		font-size: 2em;
	}
}

/* limit size of containers on mobile */
@media only screen and (max-width: 1200px){
	.container-width, .full-width .ubermenu-nav, .container, .row:not(.row-collapse){
		width: calc(100% - 30px);
	}
}

/* change header menu background */

@media only screen and (min-width: 850px){
	#masthead .flex-right, #masthead .flex-left{
		background-color: var(--primary);
		height: 115px;
		display: flex;
	}
	
	#masthead:after {
		content: '';
		display: block;
		height: 115px;
		width: 50%;
		background-color: var(--primary);
		position: absolute;
		top: 0;
		right: 0;
		z-index: -1;
	}
	
	.stuck #masthead:after{
		height: 70px;
	}
	
	#masthead .nav>li>a{
		font-size: 1em;
	}
}

@media only screen and (max-width: 990px){
	#masthead .nav{
		font-size: .9em;
	}

	#logo{
		max-width: 200px;
	}
}

@media only screen and (max-width: 850px){
	.header-main{
		box-shadow: 1px 1px 10px rgb(0 0 0 / 15%);
		height: 70px !important;
	}
}

.nav-dark .nav>li>a .icon-menu{
	color: var(--secondary);
}

strong, b{
	font-weight: 700;
}

/* buttons */

.button{
	font-family: 'Open Sans Condensed', 'Open Sans', sans-serif;
}

.button.not(.is-link){
	padding: .4em 1.5em !important;
	line-height: 1.2em !important;
	min-height: 0 !important;
}

.button.white, .button.white.is-outline:hover{
	color: var(--primary) !important;
}

.button.white:not(.is-outline):hover{
	color: white !important;
	background-color: var(--primary) !important;
	box-shadow: none;
}

.header-bottom .nav>li.html{
	font-size: unset;	
}

.header-bottom .nav-top-link{
	font-size: .9em;
}

.button.primary:not(.is-outline):not(.is-link){
	box-shadow:  0 2px 2px rgba(35, 134, 200, 0.034), /* change me */
      0 6px 5px rgba(35, 134, 200, 0.048), /* change me */
      0 12px 10px rgba(35, 134, 200, 0.2), /* change me */
      0 22px 17px rgba(35, 134, 200, 0.172), /* change me */
      0 42px 34px rgba(35, 134, 200, 0.086);
}

.button.secondary:not(.is-outline):not(.is-link){

	box-shadow:  0 2px 2px rgba(0, 42, 92, 0.034), /* change me */
      0 6px 5px rgba(0, 42, 92, 0.048), /* change me */
      0 12px 10px rgba(0, 42, 92, 0.2), /* change me */
      0 22px 17px rgba(0, 42, 92, 0.172), /* change me */
      0 42px 34px rgba(0, 42, 92, 0.086);
}

.button.primary:not(.is-outline):not(.is-link):hover{
	background-color: white;
	color: var(--primary);
}

.button.secondary:not(.is-outline):not(.is-link):hover{
	background-color: white;
	color: var(--secondary);
}

/* slider */ 

.home-slider .slider-wrapper .flickity-prev-next-button{
    bottom: 70px;
    left: unset;
    top: unset;
}

.home-slider .slider-wrapper .flickity-prev-next-button.next{
	left: 115px;
	bottom: 70px;
}

.home-slider .slider-wrapper .flickity-prev-next-button.previous{
	left: 70px;
	bottom: 70px;
}


.home-slider .slider-wrapper .flickity-page-dots{
    left: 160px;
	right: unset;
    bottom: 84px;
}

.home-slider .slider-wrapper .flickity-page-dots .dot{
    width: 7px;
    height: 7px;
    opacity: .2;
}

.home-slider .slider-wrapper .flickity-button-icon{
	color: var(--secondary) !important;
}

@media screen and (max-width: 549px){
	.slider-wrapper .flickity-prev-next-button{
		display: block;	
	}

	.home-slider .slider-wrapper .flickity-prev-next-button.next{
		left: 75px;
		bottom: 35px
	}

	.home-slider .slider-wrapper .flickity-prev-next-button.previous{
	    left: 30px;
		bottom: 35px
	}

	.home-slider .slider-wrapper .flickity-page-dots{
		display: none;
	}
}

/* footer links */

footer .ux-menu .menu-item a{
	font-family: 'Open Sans Condensed', 'Open Sans', sans-serif;
	font-weight: bold;
	font-size: 14px;
	min-height: 2.2em;
}

.w-auto{
	width: auto;
}

.pr-15{
	padding-right: 15px;
}

.blog-buttons{
	margin: auto 30px 30px 30px;
}

.top-corner{
	position: absolute;
	top: -15px;
	right: -15px;
	z-index: -1;
	max-width: 30%;
}

.bottom-corner{
	position: absolute;
	left: -15px;
	bottom: -15px;
	z-index: -1;
	max-width: 30%;
}

/* Team members tabbed content */

.single-attorneys .tabbed-content .nav-line-bottom {
	border-bottom: 3px solid #f3f3f3;
}

.single-attorneys .tabbed-content .nav-line-bottom li{
	margin-right: 50px;
}

.single-attorneys .tabbed-content .nav-line-bottom span{
	font-size: 1.1em;
	letter-spacing: .05em;
}

.single-attorneys .tabbed-content .nav-line-bottom>li>a:before{
	bottom: -3px;
	background-color: #aaa;
}

.single-attorneys .tabbed-content .nav-line-bottom .active a{
	color: var(--primary);
}

.single-attorneys .tabbed-content-container{
	position: relative;
	padding-top: 130px;
}

.single-attorneys .tabbed-content-container .row, .tabbed-content-container .col, .tabbed-content-container .col-inner{
	position: static;
}

.single-attorneys .tabbed-content .nav-line-bottom{
	position: absolute;
    top: 0;
}

.single-attorneys .tabbed-content-container p{
	font-size: 1.1em;
	line-height: 1.8em;
}

.single-attorneys .tabbed-content-container .entry-content > .img{
	margin: 40px 0px;
}

@media (min-width: 599px) and (max-width: 850px){
	.single-attorneys .tabbed-content .nav{
		width: 25%;
	}

	.single-attorneys .tabbed-content .tab-panels{
		width: 75%;
		padding-left: 30px;
	}
}

@media (max-width: 600px){
	.single-attorneys .tabbed-content .nav li{
		transition: .2s ease-in;
	}
	
	.single-attorneys .tabbed-content .nav li.active{
		background-color: var(--primary);
		padding-left: 15px;
	}
	
	.single-attorneys .tabbed-content .nav li.active *{
		color: white;
	}
}

/* icon boxes */

.icon-buttons .icon-box{
	padding: 30px;
}

.icon-buttons .col-inner:hover{
	background-color: var(--primary) !important;
	color: white;
	
}

.icon-buttons .col-inner:hover svg path{
	fill: white;
}

.icon-buttons .col-inner:hover a, .icon-buttons .col-inner:hover h3{
	color: white;
}

.icon-buttons .icon-box{
	height: 100%;
    display: flex;
    flex-direction: column;
}

.icon-buttons .icon-box .icon-box-text{
	display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bold *{
	font-weight: bold !important;
}


/* super menu */

header .sub-menu a.plain{
	padding: 10px 20px;
	display:  block;
	transition: .2s ease-in;
}

header .sub-menu a.plain:hover{
	background-color: var(--primary);
	border-left: 4px solid #b3e1ff;
	opacity: 1;
}

header .sub-menu a.plain:hover svg path{
	fill: white;
}

header .row-solid .col:before{
	border-color: #113568;
	border-left-width: 2px !important;
	left: -2px
}

.has-dropdown .sub-menu.nav-dropdown{
	top: 80px;
}

.stuck .has-dropdown .sub-menu.nav-dropdown{
	top: 70px;
}

.header-bottom .has-dropdown .sub-menu.nav-dropdown{
	top: 50px;
}

/* videos */

.video-open-button-container, .video-open-button-container .button, .video-open-button-container .text-box-content, .video-open-button-container .text-inner{
	width: 100%;
	height: 100%;
}

.video-open-button-container .button{
	margin: 0 !important;
	padding: 0 !important;
}

.video-open-button-container .button span{
	display: none;
}


.z-bottom{
	z-index: 1;
}

.z-middle{
	z-index: 2;
}

.z-top{
	z-index: 3;
}

.banner .res-text{
	font-size: 100% !important;
}

p a:hover {
	text-decoration: underline;
}

input[type=submit]{
	margin-right: 0;
}


/* blog pages */
.blog h2, .single-post h1, .single-post h2, .single-post h3, .single-post h4, .single-post h5, .single-post h1 span, .single-post h2 span, .single-post span h3 span, .single-post h4 span, .single-post h5 span{
	text-transform: uppercase;
	font-weight: bold !important;
}

.single-post p{
	line-height: 2em;
}


/* logos slider */

@media (max-width: 550px){
	.logos .stack{
		flex-wrap: wrap;
	}
	
	
	.logos .stack .img{
		width: 33% !important;
		margin: 0 !important;
		padding: 10px;
	}
}

/* map */

.map-container svg *{
	transform-box: fill-box;
}

.map-container svg .st2{
	transform-origin: 50% 100%;
	transition: all .2s;
}

.map-container svg a:hover .st2{
	transform: scale(1.5);	
	fill: white;
	stroke-color: var(--primary);
}