/*!
Theme Name: giuggioli
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: giuggioli
*/

:root {
	--giuggioli-gold: #d0bb7b;
	--giuggioli-dark-gold: #997300;
}


* {
	font-family: "capitana", sans-serif;
	font-weight: 300;
	font-style: normal;
}

/* HEADER */

header {
	background: linear-gradient(180deg, #0005 0%, #0000 100%);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	padding: 2em 0;
	transition: .3s background ease-out;
}

header.scroll {
	background: none;
	background-color: #ffffff;
}

body:has(> #wpadminbar) header {
	top: 32px;
}

header > div {
	max-width: 1100px;
	margin: 0 auto;	
}

header .site-logo {
	position: relative;
}

header .custom-logo, header .scroll-logo {
	width: 300px;
	height: auto;
	transition: opacity .3s ease-out;
}

header .custom-logo {
	z-index: 1;
}

header .scroll-logo {
	position: absolute;
	left: 0;
	opacity: 0;
	z-index: 0;
}

header.scroll .custom-logo {
	opacity: 0;
}

header.scroll .scroll-logo {
	opacity: 1;
}

header .menu-section .menu {
	list-style: none;
	display: flex;
	gap: 1em;
	margin-bottom: 0;
	padding-left: 0;
}

header .menu-section .menu .menu-item a {
	text-decoration: none;
	color: #ffffff;
	position: relative;
	font-size: 18px;
	transition: color .3s ease-out;
}

header.scroll .menu-section .menu .menu-item a,
header .menu-section.dark .menu .menu-item a {
	color: #000000;
}

header .menu-section .menu .menu-item a::after {
	position: absolute;
	content: '';
	bottom: -5px;
	left: 0;
	height: 2px;
	width: 0;
	background-color: #ffffff;
	transition: width .2s ease-in;
}

header.scroll .menu-section .menu .menu-item a::after,
header .menu-section.dark .menu .menu-item a::after {
	background-color: #000000;
}

header .menu-section .menu .menu-item a:hover::after,
header .menu-section .menu .menu-item.current-menu-item a::after {
	width: 100%;
}

/* HOME */

.home-banner > .wp-block-cover__inner-container {
	width: 100% !important;
}

.home-banner > .wp-block-cover__inner-container p {
	text-align: right;
}

.vertical-title-section {
	position: relative;
	box-sizing: border-box;
}

.vertical-title-section .vertical-title {
	position: absolute !important;
	top: auto;
	left: -5vw;
	width: max-content !important;
	transform:translateY(-50%) translateX(-100%) rotate(-90deg);
	transform-origin: center right;
	font-size: 50px;
}

.home-paragraph {
	font-size: 24px;
	max-width: 60%;
}

/* PAGE - BANNER */

.top-section-banner {
	position: relative;
}

.top-section-banner .vertical-title {
	position: absolute !important;
	top: auto;
	width: max-content !important;
	transform:translateY(-50%) translateX(-100%) rotate(-90deg);
	transform-origin: center;
	font-size: 50px;	
}

.page-template-page-studio .top-section-banner .vertical-title {
	left: 10vw !important;
}

.top-section-banner .vertical-title {
	left: -5vw;
}

/* PAGE - INSIGHT */

.insight-container, .carousel-container {
	margin: 0 auto;
	max-width: 1100px;
}

.insight-container .insights-navigation {
	display: flex;
	justify-content: end;
	gap: 2em;
}

.insights-navigation .insight-control {
	width: 64px;
	cursor: pointer;
}

.carousel-section {
	padding: 100px 0;
	background-image: url(/wp-content/uploads/2024/12/insights-banner.png);
	margin-top: 3em;
}

.insight-content .insight-title {
	margin-bottom: .5em;
}

.insight-content .insight-date {
	text-transform: uppercase;
	font-size: 12px;
}

.insight-content .insight-thumbnail {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	object-position: center;
	height: auto;
	margin-top: 2em;
}

.insight-banner {
	background-image: url(/wp-content/uploads/2024/12/insights-banner-1.png);
	background-size: 100% auto;
}

.insight-banner .insight-banner-title-container {
	max-width: 1100px;
	margin: 0 auto;
	min-height: 450px;
	position: relative;
	display: flex;
	align-items: center;
}

.insight-banner .insight-banner-title-container .vertical-title {
	top: 50%;
	transform-origin: center bottom;
	color: #ffffff;
}

/* RECRUITING */

.recruiting-archive {
	background-color: var(--giuggioli-gold);
	padding: 100px 0;
	min-height: 500px;
}

.recruiting-archive .archive-container {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	gap: 2.5em;
}

.archive-container .job-adv {
	background-color: #ffffff;
	padding: 2em 3em;
	width: calc((100% - 5em) / 3);
	height: fit-content;
}

.archive-container .job-adv .role-name {
	font-size: 18px;
	margin-bottom: .5em;
}

.archive-container .job-adv .job-location {
	text-transform: uppercase;
	font-size: 12px;
	margin-bottom: .5em;
}

.archive-container .job-adv .adv-post {
	text-transform: uppercase;
	font-size: 10px;
	margin-bottom: 2em;
}

.archive-container .job-adv .tag-list {
	margin-bottom: 1em;
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.archive-container .job-adv .tag-list > span {
	background-color: #efefef;
	padding: .2em .5em;
	font-size: 14px;
} 

.archive-container .job-adv .application-link {
	font-size: 12px;
	color: var(--giuggioli-dark-gold);
	height: 1em;
}

.recruiting-archive .load-btn {
	position: relative;
}

.recruiting-archive .load-btn > button {
	background-color: var(--giuggioli-gold);
	position: relative;
	color: #000000;
	border: none;
	padding: .5em 1em;
	text-transform: uppercase;
	z-index: 2;
	overflow: hidden; 
	font-size: 14px;
	transition: color .3s ease-out;
}

.recruiting-archive .load-btn:hover > button {
	color: #ffffff;
}


.recruiting-archive .load-btn::before,
.recruiting-archive .load-btn::after {
	content: '';
	position: absolute;
	top: -2px;
	height: calc(100% + 4px);
	width: 0;
	background-color: #ffffff;
	transition: width .3s ease-out;
}

.recruiting-archive .load-btn::before {
	left: -2px;
}

.recruiting-archive .load-btn::after {
	right: -2px;
}

.recruiting-archive .load-btn:hover::before,
.recruiting-archive .load-btn:hover::after {
	width: calc(50% + 2px);
}

/* ANNUNCIO LAVORO - SINGLE */

.job-adv-banner,
.contact-banner {
	min-height: 250px;
	background-image: url(/wp-content/themes/giuggioli/assets/images/form-banner.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% auto;
}

.job-info-container {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	gap: 2.5em;
}

.job-info-container > div > h1 {
	margin-bottom: 1em;
}

.job-info-container h3 {
	margin-bottom: 1em;
}

.job-info-container > .site-list > .giuggioli-site,
.contact-page-sites > .giuggioli-site{
	text-align: end;
}

/* FORM */

.form-label {
	font-size: 12px;
}

.custom-text-input, .custom-text-area {
	width: 100%;
	border: none;
	outline: none;
	border-bottom: 1px solid var(--giuggioli-gold);
	padding: .5em;
	transition: background .3s ease-out;
}

.custom-text-area {
	resize: none;
}

.custom-text-input:focus, .custom-text-area {
	background-color: #0001;
}

input[type="file"] {
	display: none;
}

p:has(> .file-label) {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	align-items: center;
}

.file-label {
	padding: .5em 1em;
	color: #ffffff;
	background-color: var(--giuggioli-gold);
	cursor: pointer;
	order: 1;
}

#file-name {
	display: inline;
	order: 2;
}

.wpcf7-form-control-wrap {
	order: 3;
	width: 100%;
	flex-shrink: 0;
}

.wpcf7-list-item {
	margin: 0;
}

label:has( > .custom-acceptance) {
	display: flex;
	align-items: center;
	gap: .5em;
}

.custom-acceptance {
	width: 1.5em;
	height: 1.5em;
	border-radius: 0;
	border-color: var(--giuggioli-gold);
	accent-color: var(--giuggioli-gold);
}

p:has( > .custom-submit) {
    position: relative;
    transition: padding .3s ease-out;
    width: fit-content !important;
    padding-left: 1.5em;
	margin: 0;
	display: flex;
	align-items: center;
}

p:has( > .custom-submit)::before {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    width: 1em;
    height: 2px;
    transform: translateY(-50%);
    transition: width .3s ease-out;
    background-color: var(--giuggioli-gold);
}

p:has( > .custom-submit):hover {
    padding-left: 4.5em;
}


p:has( > .custom-submit):hover::before {
    width: 4em;
}

.custom-submit {
	background-color: transparent;
	border: none;
	color: var(--giuggioli-gold);
	padding: 0;
	text-transform: uppercase;
}

/* FOOTER */


.site-footer {
	min-height: 350px;
	background-color: #ffffff;	
	padding-top: 5em;
}

.site-footer .footer-logo {
	width: 200px;
	height: auto;
}

.site-footer .giuggioli-info {
	text-align: center;
}

.giuggioli-site h6 {
	color: var(--giuggioli-gold);
}

.giuggioli-site a {
	text-decoration: none;
	color: #000000;
	position: relative;
}

.giuggioli-site a::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	background-color: #000000;
	height: 2px;
	width: 0;
	transition: width .3s ease-out;
}

.giuggioli-site a:hover::before {
	width: 100%;
}

.site-footer .footer-menu .menu {
	padding-left: 0;
	margin: 0;
	columns: 2;
	line-height: 2em;
} 

.site-footer .footer-menu .menu .menu-item {
	list-style: none;
}

.site-footer .footer-menu .menu .menu-item a {
	color: var(--giuggioli-gold);
	text-decoration: none;
	position: relative;
}

.site-footer .footer-menu .menu .menu-item a::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	height: 2px;
	width: 0;
	background-color: var(--giuggioli-gold);
	transition: width .3s ease-out;
}

.site-footer .footer-menu .menu .menu-item a:hover:before {
	width: 100%;
}

.site-footer .footer-page-link {
	text-decoration: none;
	color: var(--giuggioli-gold);
	position: relative;
	margin-bottom: 1em;
}

.site-footer .footer-page-link::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	height: 2px;
	width: 0;
	background-color: var(--giuggioli-gold);
	transition: width .3s ease-out;
}

.site-footer .footer-page-link:hover::before {
	width: 100%;
}

.site-footer .giuggioli-info > a {
	color: #000000;
	position: relative;
	text-decoration: none;
}
.site-footer .giuggioli-info > a::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	height: 2px;
	width: 0;
	background-color: #000000;
	transition: width .3s ease-out;
}

.site-footer .giuggioli-info > a:hover::before {
	width: 100%;
}

@media screen and (max-width: 1200px) {
	.vertical-title-section .vertical-title {
		position: static !important;
		transform: none;
		font-size: 35px;
		width: 100% !important;
	}
}

@media screen and (max-width: 992px) {
	.home-paragraph {
		font-size: 21px;
		max-width: 100%;
	}
}