/*
Theme Name: FiGest
Theme URI:
Author: Andrea Ricciotti
Author URI:
Description: Library Theme with Icomoon and Bootstrap 5.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready
Text Domain: figest

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

@media (max-width: 767px) {
  :root {
    --bs-body-font-size: 0.9rem;
  }
}

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  }

.table-container::-webkit-scrollbar {
  display: none;
}

#wpadminbar {display: none;}

/* ! Edit Bootstrap styles */
/* ! - Alert */
.alert-info {
  --bs-alert-color: #1d3757; /*#1d3757;*/
  --bs-alert-bg: #e9ecef; /*#d5e8ff;*/
  --bs-alert-border-color: #9fbada;
}

/* ! - Buttons */
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-link-hover-color);
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-link-hover-color);
  --bs-btn-active-bg: var(--bs-link-hover-color);
  --bs-btn-active-border-color: var(--bs-link-hover-color);
}


/* .btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: #dd9c08;
  --bs-btn-border-color: #dd9c08;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b07d08;
  --bs-btn-hover-border-color: #b07d08;;
} */

/* ! - Nav Pills */
.nav-pills {
  --bs-nav-pills-link-active-color: var(--bs-dark);
  --bs-nav-pills-link-active-bg: var(--bs-warning);
}
.nav-pills .nav-link {color: rgba(33, 37, 41, .8);}
.nav-pills .nav-link:not(.active,:disabled):hover {color: rgba(33, 37, 41, 1);}

/* ! - Accordion */
.accordion-button {background-color: rgba(86, 159, 88, 0.12);}
.accordion-button:not(.collapsed) {color: #333; background-color: var(--primary-light);}
.accordion-button:focus {border-color: var(--bs-primary); box-shadow: none;}
.accordion-button:not(.collapsed)::after {filter: grayscale(1);}


td {line-height: 1.2;}

.text-bg-primary {background-color:var(--bs-primary)!important;}
.btn-outline-dark {box-shadow: 0px 0px 2px #000;}
.btn-outline-light {box-shadow: 0px 0px 2px #fff;}
.btn::first-letter {text-transform: uppercase;}

.modal-header {border-bottom: none;}
.modal-footer {border-top: none;}
.badge {font-weight: normal;}
.toast {bottom:auto;}

@media (max-width:767px){
	h1 {font-size:40px;}
}

/* ! General */
.main-content {min-height: 100vh;}
.full-content {min-height: 100vh; height: 100vh;}

body:not(.home) .main-content :is(h1, h2, h3, h4, h5, h6) {color: var(--bs-primary); font-weight: bold; margin-block-start: 1.33em;}

/* ! Home */
.home-title{font-size: 40px;color:#4A4343; font-weight: bold;line-height: 42px;margin-bottom:36px;}
.logo {width: 300px; height:300px; max-width:50%; background-image: url("img/logo-home.png"); background-repeat: no-repeat; background-size:contain;}


/* ! Header */
#primary-navbar .nav-link{font-size: 16px; text-transform: uppercase;padding:1rem;}

/* ! Widgets */
/* -------------------------------------------------------- */
.widget_search .screen-reader-text{display: block;}
.widget_search #s{width:70%;float:left;}
.widget_search #searchsubmit{width:20%;float:left;background: #fff;}

.widget_block {margin-top: 1rem!important; margin-bottom: 1rem!important;}
.widget_block ul {list-style-type: none; padding-left: 0;}
.widget_block ul a {text-decoration: none;}

/* ! Pagination */
/* -------------------------------------------------------- */
.pagination{margin-bottom:40px}
.page-numbers{display: inline-block;padding: 10px 15px;border: 1px solid #ddd;margin-right:4px;text-decoration: none;}

/* ! - Scroll to top */
.scroll-to-top .icon-arrow-right::before {display: block; line-height: 3rem;transform: rotate(-90deg);}
.scroll-to-top {visibility: hidden; opacity: 0;position: fixed;bottom: 15px;right: 15px; width: 50px;font-size: 20px;height: 50px;border-radius: 100%;text-align: center;line-height: 45px;background-color: var(--bs-primary);cursor: pointer;transition: all .3s cubic-bezier(.215, .61, .355, 1);z-index: 999;}
.scroll-down .scroll-to-top {visibility: visible; opacity: 1;}
.scroll-to-top:hover{background-color: var(--bs-link-color);}

/* Base for label styling */
:not(.form-switch)>[type="checkbox"]:not(:checked),
:not(.form-switch)>[type="checkbox"]:checked {
  position: absolute;
  left: 0;
  opacity: 0.01;
}

:not(.form-switch)>[type="checkbox"]:not(:checked)+label,
:not(.form-switch)>[type="checkbox"]:checked+label,
:not(.form-switch)>[type="checkbox"]:not(:checked)+span.checkbox-style,
:not(.form-switch)>[type="checkbox"]:checked+span.checkbox-style,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:not(:checked)+span,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:checked+span {
  position: relative;
  padding-left: 2em;
  cursor: pointer;
  display: block;
}

/* font-size: 1.05em; line-height: 1.7; */

/* checkbox aspect */
:not(.form-switch)>[type="checkbox"]:not(:checked)+label:before,
:not(.form-switch)>[type="checkbox"]:checked+label:before,
:not(.form-switch)>[type="checkbox"]:not(:checked)+span.checkbox-style:before,
:not(.form-switch)>[type="checkbox"]:checked+span.checkbox-style:before,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:not(:checked)+span:before,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:checked+span:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4em;
  height: 1.4em;
  border: 1px solid #aaa;
  background: #FFF;
  border-radius: .2em;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 rgba(203, 34, 237, .2);
  /* -webkit-transition: all .275s;
  transition: all .275s; */
}

/* checked mark aspect */
:not(.form-switch)>[type="checkbox"]:not(:checked)+label:after,
:not(.form-switch)>[type="checkbox"]:checked+label:after,
:not(.form-switch)>[type="checkbox"]:not(:checked)+span.checkbox-style:after,
:not(.form-switch)>[type="checkbox"]:checked+span.checkbox-style:after,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:not(:checked)+span:after,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:checked+span:after {
  content: '\2713';
  position: absolute;
  top: .62em;
  left: 3px;
  font-size: 1.2em;
  color: var(--bs-primary);
  line-height: 0;
  -webkit-transition: all .2s;
  transition: all .2s;
}

/* checked mark aspect changes */
:not(.form-switch)>[type="checkbox"]:not(:checked)+label:after,
:not(.form-switch)>[type="checkbox"]:not(:checked)+span.checkbox-style:after,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:not(:checked)+span:after {
  opacity: 0;
  -webkit-transform: scale(0) rotate(45deg);
  transform: scale(0) rotate(45deg);
}

:not(.form-switch)>[type="checkbox"]:checked+label:after,
:not(.form-switch)>[type="checkbox"]:checked+span.checkbox-style:after,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:checked+span:after {
  opacity: 1;
  -webkit-transform: scale(1) rotate(0);
  transform: scale(1) rotate(0);
}

/* Disabled checkbox */
:not(.form-switch)>[type="checkbox"]:disabled:not(:checked)+label:before,
:not(.form-switch)>[type="checkbox"]:disabled:checked+label:before,
:not(.form-switch)>[type="checkbox"]:disabled:not(:checked)+span.checkbox-style:before,
:not(.form-switch)>[type="checkbox"]:disabled:checked+span.checkbox-style:before,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:disabled:not(:checked)+span:before,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:disabled:checked+span:before {
  box-shadow: none;
  border-color: #bbb;
  background-color: #e9e9e9;
}

:not(.form-switch)>[type="checkbox"]:disabled:checked+label:after,
:not(.form-switch)>[type="checkbox"]:disabled:checked+span.checkbox-style:after,
.wpcf7-list-item>:not(.form-switch)>[type="checkbox"]:disabled:checked+span:after {
  color: #777;
}

:not(.form-switch)>[type="checkbox"]:disabled+label,
:not(.form-switch)>[type="checkbox"]:disabled+span.checkbox-style,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:disabled+span {
  color: #aaa;
}

/* Accessibility */
:not(.form-switch)>[type="checkbox"]:checked:focus+label:before,
:not(.form-switch)>[type="checkbox"]:not(:checked):focus+label:before,
:not(.form-switch)>[type="checkbox"]:checked:focus+span.checkbox-style:before,
:not(.form-switch)>[type="checkbox"]:not(:checked):focus+span.checkbox-style:before,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:checked:focus+span:before,
.wpcf7-list-item :not(.form-switch)>[type="checkbox"]:not(:checked):focus+span:before {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 6px rgba(45, 108, 47, .2);
}

/* ! - Radio Buttons */
/* Base for label styling */
[type="radio"]:not(.btn-check):not(:checked),
[type="radio"]:not(.btn-check):checked {
  position: absolute;
  left: 0;
  opacity: 0.01;
}

[type="radio"]:not(.btn-check):not(:checked)+label,
[type="radio"]:not(.btn-check):checked+label {
  position: relative;
  padding-left: 2.3em;
  margin-right: 1.5em;
  cursor: pointer;
}

/* Radio aspect */
[type="radio"]:not(.btn-check)+label:before,
[type="radio"]:not(.btn-check):checked+label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4em;
  height: 1.4em;
  border: 1px solid #aaa;
  background: #FFF;
  border-radius: 100%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 rgba(45, 108, 47, .2);
  -webkit-transition: all .275s;
  transition: all .275s;
}

[type="radio"]:not(.btn-check):checked+label:before {
  border-color: var(--bs-primary);
}

/* checked mark aspect */
[type="radio"]:not(.btn-check):not(:checked)+label:after,
[type="radio"]:not(.btn-check):checked+label:after {
  content: '';
  position: absolute;
  width: .9em;
  height: .9em;
  border-radius: 100%;
  top: .25em;
  left: .25em;
  background-color: var(--bs-primary);
  -webkit-transition: all .2s;
  transition: all .2s;
}

/* checked mark aspect changes */
[type="radio"]:not(.btn-check):not(:checked)+label:after {
  opacity: 0;
  -webkit-transform: scale(0);
  transform: scale(0);
}

[type="radio"]:not(.btn-check):checked+label:after {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

/* Disabled radio */
[type="radio"]:not(.btn-check):disabled:not(:checked)+label:before,
[type="radio"]:not(.btn-check):disabled:checked+label:before {
  /* box-shadow: none; */
  border-color: #bbb;
  background-color: #e9e9e9;
}

[type="radio"]:not(.btn-check):disabled:checked+label:after {
  background-color: #777;
}

[type="radio"]:not(.btn-check):disabled+label {
  background-color: #aaa;
}

/* Accessibility */
[type="radio"]:not(.btn-check):checked:focus+label:before,
[type="radio"]:not(.btn-check):not(:checked):focus+label:before {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 6px rgba(45, 108, 47, .2);
}


/* ! Helpers */
.bg-primary-light {background-color:var(--primary-light)!important;}
.bg-muted {background-color: #eee;}
.text-80 {opacity: .8;}
.shadow {box-shadow: 5px 4px 20px rgb(0 0 0 / 15%) !important}
.img-contain {width: 100%; height: 100%; object-fit: contain;}
.primary-on-hover:hover {background-color:var(--primary-light)!important;}

/* ! Animations */
.fade-down { transform: translateY(-100px); opacity: 0; }
body.loaded .fade-down { transform: translateY(0); opacity: 1; }

.reveal { max-height: 0; opacity: 0; overflow: hidden;}
body.loaded .reveal { max-height: none; opacity: 1; }

.animate {
  -webkit-transition: all .5s cubic-bezier(.215, .61, .355, 1);
  -moz-transition: all .5s cubic-bezier(.215, .61, .355, 1);
  -ms-transition: all .5s cubic-bezier(.215, .61, .355, 1);
  -o-transition: all .5s cubic-bezier(.215, .61, .355, 1);
  transition: all .5s cubic-bezier(.215, .61, .355, 1);
}

.animate--fast { transition-duration: .3s; }
.animate--slow { transition-duration: 1s; }


/* ! WordPress core styles */
/* -------------------------------------------------------- */

/* input[type=text] {text-transform: uppercase!important;} */

.wp-block-button > .wp-block-button__link,
.es_subscription_form_submit {
    padding: 0.375rem 0.75rem!important;
    padding-right: 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    background-color: #284E7C;
    border-radius: var(--bs-border-radius-2xl)!important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);
    display: inline-block;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid #284E7C!important;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.wp-block-button > .wp-block-button__link.is-style-outline {
  background-color: transparent;
  color: #284E7C!important;
}

.wp-block-button.btn-arrow {position: relative;}
.wp-block-button.btn-arrow .wp-element-button::after {
  display: inline-block;
  font-family: 'icomoon';
  content: "\e91b";
  padding-left: 10px;
}

.wp-block-button.btn-arrow.btn-down .wp-element-button::after {
  content: "\ea3e";
  font-size: .7rem;
}

.wp-block-button > .wp-block-button__link:hover,
.es_subscription_form_submit:hover {
  background-color: rgba(50,99,154,1)!important;
  color:#fff!important;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
  white-space: nowrap;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

