:root{--bs-link-color: #4D0E12;}
:root{--bs-link-hover-color: #864728;}
:root{--bs-body-color: #444444}
:root{--bs-body-font-weight: 300}
:root{--as-font-weight-bold: 500}

a, .btn, a i {-webkit-transition: all 0.25s ease-in-out;-moz-transition: all 0.25s ease-in-out;-ms-transition: all 0.25s ease-in-out;-o-transition: all 0.25s ease-in-out;transition: all 0.25s ease-in-out;}

body {-webkit-backface-visibility:hidden;backface-visibility: hidden;background-color:#ffffff;font-size:1rem;line-height:1.5rem;color:var(--bs-body-color);font-weight:var(--bs-body-font-weight);font-family: "Roboto", sans-serif;}
.p {font-size:1rem;line-height:1.5rem;color:var(--bs-body-color);}
.serif {font-family: "EB Garamond", serif;}
b, strong {font-weight: var(--as-font-weight-bold)}
small, .small {font-size:70%}
.white {color:#FFFFFF}
.dark {color:var(--bs-body-color)}
hr.dark {border-color:var(--bs-body-color)}
.beige_bg {background-color:#F1DAAE}
a {color: var(--bs-link-color);text-decoration:underline;}
a:hover, a:focus {color: var(--bs-link-hover-color)}
h1, .h1, h1 small, h2, .h2, h3, .h3, h4, h4 small, .h4, h5, .h5, .p {font-weight:var(--bs-body-font-weight);}
h4, .h4 {font-family: "EB Garamond", serif;}
.btn-link {color: var(--as-link);padding:0}
.btn-link:hover, .btn-link:focus {color: var(--bs-link-hover-color)}
.btn-primary {border-radius:0;background-color:var(--bs-link-color);border-color:var(--bs-link-color);padding:0.2rem 1.5rem;color:#ffffff;letter-spacing:0.1rem}
.btn-primary:hover {color:var(--bs-link-color);background-color:#ffffff;border-color:var(--bs-link-color);}
.btn-primary:focus, .btn-primary:active, .btn-primary:focus:active {color:var(--bs-link-color);background-color:#DADADA;border-color:var(--bs-link-color);}
.btn-secondary {border-radius:0;padding:0.2rem 1.5rem;letter-spacing:0.1rem}
.btn-secondary:focus {color:#ffffff}
hr {border-color:#F1DAAE;opacity:.6}
.img_wrapper {left:0;top:0;height:100%;background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,.5) 100%);}
.tns-slider {transition-timing-function: linear !important;}

@media screen and (min-width:992px) {
	h1, .h1 {font-size:5rem;line-height:5rem}
	h2, .h2 {font-size:2.5rem;line-height:3rem}
	h3, .h3 {font-size:2rem;line-height:2.5rem}
	h4, .h4 {font-size:1.5rem;line-height:2rem;}
}

/*--- NAVIGATION ---*/
header {background-color:var(--bs-body-color)}
header ul#menu_list {list-style-type:none;padding-left:0;padding-right:0}
header ul#menu_list li {vertical-align:top}
header ul#menu_list li a, header ul#menu_list li a:hover, header ul#menu_list li a:focus {text-decoration:none;}
header ul#menu_list li .submenuCollapse ul {padding-left:0px;}
header ul#menu_list li.active > a {text-decoration:underline;color:#ffffff}

@media screen and (max-width:991px) {
	#menu_wrapper.mobile_menu_active {position:fixed;z-index:999;width:100vw;height:100vh;top:0;bottom:0;left:0;right:0;}
	header {margin:0px;padding:10px 0;background-color:#F0F0F0}
	header #menu_open {font-size:20px;line-height:40px;display:inline-block;cursor:pointer;}
	header a#logo {max-height:40px;display:inline-block;}
	header a#logo img {height:40px;width:auto;}
	header ul#menu_list {overflow-y:auto !important;position:fixed;top:0;z-index:1000;left:-240px;height:100%;width:230px;background-color:var(--bs-body-color);box-shadow:0px 0px 8px 8px rgba(0,0,0,0.2)}
	header ul#menu_list li {display:block;}
	header ul#menu_list li a {text-decoration:none;display:block;padding:20px 20px;border-bottom:1px solid rgba(0,0,0,0.15)}
	header ul#menu_list li .submenuCollapse ul {background-color:#E9E9E9}
	header ul#menu_list li .submenuCollapse ul li a {padding:15px 15px 15px 30px;font-size:0.9rem;line-height:1.2rem}
}

@media screen and (min-width:992px) {
	header {background-color:#F0F0F0}
	header a#logo {padding:10px 0;display:inline-block;}
	header ul#menu_list {padding:10px 0 20px;display:flex;align-items:start;margin-bottom:0px;margin-top:20px;}
	header ul#menu_list li {margin: auto;position:relative}
	header ul#menu_list li a {position:relative;z-index:10;padding-bottom:10px;border-bottom: 1px solid transparent}
	header ul#menu_list li.active a, header ul#menu_list li a:hover {text-decoration:none;border-bottom: 1px solid #ffffff}
	header ul#menu_list li .submenuCollapse {position:absolute;white-space:nowrap;}
	header ul#menu_list li .submenuCollapse ul {list-style-type:none}
	header ul#menu_list li .submenuCollapse ul li {margin:0;padding:6px 0;position:relative;z-index:9}
}

/*--- HEADER/FOOTER ---*/
header, footer {background-color:var(--bs-body-color);color:#F1DAAE}
header a, footer a {color:#F1DAAE}
header a:hover, footer a:hover, header a:focus, footer a:focus {color:#ffffff}
footer li.active a {color:#ffffff}
footer #lang_switch li a.active {font-weight: var(--as-font-weight-bold);cursor:default}
footer #lang_switch li {margin:0}
footer #lang_switch li a {text-decoration:none}

/*--- CHI SIAMO ---*/

.timeline_center_line {position:absolute;top:24px;bottom:0;left:50%;width:1px;background-color:#000000;transform:translateX(-50%);z-index:0;}
.timeline_h_line_right {height:1px;background-color:#000000;width:35%;}
.timeline_h_line_left {height:1px;background-color:#000000;width:35%; }
.content_offset_right {margin-left: calc(35% + 1.5rem);}
.content_offset_left {margin-right: calc(35% + 1.5rem);}

@media (min-width: 768px) {
    .with_dividers > .col-md-4:not(:last-child)::after {content:"";position:absolute;top:15%;right:0;height:70%; width:1px;background-color:rgba(0, 0, 0, 0.15);}
}

@media (max-width: 768px) {
	.timeline_center_line {left:15px;transform:none;}
	.timeline_h_line_right, .timeline_h_line_left {width:30px;}
	.content_offset_right, .content_offset_left {margin-left:45px;margin-right:0;}
	.col-md-6.pe-0.d-flex {align-items: flex-start !important;}
	.d-flex.justify-content-end {justify-content: flex-start !important;}
	.timeline_h_line_left {order:-1;margin-right:1rem;}
}

/*--- PROJECTS ---*/
#project_det {aspect-ratio:16/9;object-fit: cover}

@media (max-width: 768px) {
	#project_det {aspect-ratio:3/4}
	.d_block_xs {display:block;}
}