/* -------------------------
PAGE INTRO
---------------------------*/

.page__intro {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: 180px;
    background-color: var(--light-grey);
    padding: 170px 0;
}

.page__intro-bg {
    position: relative;
}

.page__intro-bg:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-gradient);
    z-index: 1;
}

.page__intro-text {
    color: var(--white);
    z-index: 2;
}

.page__intro h1 {
    margin-bottom: 0;
}

.page__intro-bg__404 {
    background: url('/wp-content/themes/tglnt -- aeterna/assets/img/page-404-cover.jpg');
}


/* -------------------------
PAGINATION
---------------------------*/

.pagination {
	margin-top: 20px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 12px;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

.pagination a {
	font-size: 14px;
	color: var(--blue);
}


.page-numbers {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    border: 1px solid var(--blue);
    width: 25px;
    height: 25px;
    text-decoration: none;
}

.page-numbers:hover {
	background-color: var(--blue);
	color: var(--white);
}

.page-numbers.current:hover {
	background-color: transparent;
	color: inherit;
}

.page-numbers.current {
	width: auto;
	height: auto;
	border: none;
}


.prev.page-numbers, .next.page-numbers {
	width: auto;
	padding: 0 5px;
}




/* ------------------------------------- 
CONTENT
----------------------------------------*/


.content {
    position: fixed;
    height: auto;
    bottom: 0;
    z-index: 9999999999999999999999;
    visibility: hidden;
}

.content .quick-container {
    visibility: visible;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.content .quick-container {
    position: relative;
    left: -100%; 
    bottom: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-transition: left 0.5s ease;
    -o-transition: left 0.5s ease;
    transition: left 0.5s ease; 
}

.quick-contacts {
    background-color: var(--light-grey);
    width: 100%;
}

.quick-contacts__link ul {
    list-style: none;
}

.quick-contacts__link a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 40px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background-color: transparent;
    color: var(--white);
    -webkit-transition: background-color .5s, color .5s;
    -o-transition: background-color .5s, color .5s;
    transition: background-color .5s, color .5s;
    text-decoration: none;
}

.quick-contacts__link a {
    font-size: 20px;
    color: var(--black);
}

.quick-contacts__link a:hover {
    background-color: var(--gold);
}

.content .language-switcher {
    background-color: var(--grey);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 20px; 
    padding: 10px;
}

.content .toggle-button {
    position: absolute;
    left: 100%; 
    bottom: 0;
    background-color: var(--black);
    height: 30px;
    width: 40px;
    cursor: pointer; 
    -webkit-transition: bottom 0.5s ease, -webkit-transform 0.5s ease; 
    transition: bottom 0.5s ease, -webkit-transform 0.5s ease; 
    -o-transition: transform 0.5s ease, bottom 0.5s ease; 
    transition: transform 0.5s ease, bottom 0.5s ease; 
    transition: transform 0.5s ease, bottom 0.5s ease, -webkit-transform 0.5s ease; 
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    color: var(--white);
    -webkit-transition: background-color .5s, color .5s, -webkit-transform .5s;
    transition: background-color .5s, color .5s, -webkit-transform .5s;
    -o-transition: background-color .5s, color .5s, transform .5s;
    transition: background-color .5s, color .5s, transform .5s;
    transition: background-color .5s, color .5s, transform .5s, -webkit-transform .5s;
    border-radius: 0 5px 5px 0;
}


.content .quick-container.active {
    left: 0px;
}


.content .toggle-button.active {
    background-color: var(--gold);
    color: var(--black);
}

.content .toggle-button i {
    -webkit-transition: -webkit-transform .5s;
    transition: -webkit-transform .5s;
    -o-transition: transform .5s;
    transition: transform .5s;
    transition: transform .5s, -webkit-transform .5s;
}


.content .toggle-button i.active {
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
}




/* ------------------------------------- 
LIGHTBOX GALLERY
----------------------------------------*/

.gallery img {
    width: 100%;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    z-index: 9999999999999999999999999;
}

.lightbox-container {
    position: relative;
    max-width: 800px;
    width: 80%;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-transition: opacity 0.5s ease, -webkit-transform 2s ease;
    transition: opacity 0.5s ease, -webkit-transform 2s ease;
    -o-transition: transform 2s ease, opacity 0.5s ease;
    transition: transform 2s ease, opacity 0.5s ease;
    transition: transform 2s ease, opacity 0.5s ease, -webkit-transform 2s ease;
}

.slide img {
    width: auto!important;
}

.prev, .next {
    color: white;
    font-size: 15px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    z-index: 1001;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    position: absolute;
    bottom: -40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 10px;
    margin-top: 20px;
}


.dots span {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 5px;
    cursor: pointer;
}

.dots span.active {
    background-color: var(--gold);
}

.close {
    position: absolute;
    top: 10px;
    right: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -ms-flex-item-align: end;
        align-self: flex-end;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}



/* -------------------------
FORMS
---------------------------*/

form {
    font-family: 'Karla', sans-serif;
    background-color: var(--light-grey);
    max-width: 700px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    border-radius: 5px;
}


.form__input, .form__input-quiz, .form__input-acceptance {
    margin-bottom: 20px;
}

.form__input-acceptance .wpcf7-list-item-label {
    font-size: 14px;
    color: var(--grey);
}

.form__input-acceptance .wpcf7-list-item-label a {
    font-size: 14px;
    color: var(--grey);
    -webkit-transition: color .5s;
    -o-transition: color .5s;
    transition: color .5s;
}

.form__input-acceptance .wpcf7-list-item-label a:hover {
    color: var(--gold);
}

.wpcf7-list-item {
    margin: 0!important;
}

.wpcf7-list-item label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    cursor: pointer;
}

.wpcf7-list-item input[type="checkbox"] {
    -ms-flex-item-align: start;
        align-self: flex-start;
    margin: 5px 10px 0 0 ;
}

.form__input label, .wpcf7-quiz-label {
    width: 100%;
    display:block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--grey);
    font-weight: bold;
    text-transform: uppercase;
}


select,
textarea,
input[type='date'], 
input[type='email'],
input[type='text'], 
input[type='tel'] {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    font-family: 'Karla', sans-serif;
    width:100%;
    padding: 5px 10px;
    border: none;
    outline: none;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: var(--white);
    -webkit-transition: border .5s;
    -o-transition: border .5s;
    transition: border .5s;
}

input:focus, 
select:focus, 
textarea:focus {
    border: 2px solid var(--gold)!important;
}

input::-webkit-input-placeholder, select::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    opacity: .6;
}

input::-moz-placeholder, select::-moz-placeholder, textarea::-moz-placeholder {
    opacity: .6;
}

input:-ms-input-placeholder, select:-ms-input-placeholder, textarea:-ms-input-placeholder {
    opacity: .6;
}

input::-ms-input-placeholder, select::-ms-input-placeholder, textarea::-ms-input-placeholder {
    opacity: .6;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    opacity: .6;
}

input[type="submit"] {
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    max-width: 150px;
    width: 100%;
    padding: 5px 10px;
    color: var(--grey);
    background-color: var(--gold);
    border-radius: 5px;
    border: 2px solid var(--gold);
    -webkit-transition: background-color .5s, color .5s;
    -o-transition: background-color .5s, color .5s;
    transition: background-color .5s, color .5s;
}

input[type="submit"]:hover {
    background-color: var(--gold-2);
    border: 2px solid var(--gold-2);
}

textarea {
    resize: none;
}


.wpcf7-form-control-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.wpcf7-form-control .wpcf7-validates-as-valid {
    border: 2px solid green; /* Spessore e colore del bordo */
}

.form__input .wpcf7-not-valid, .wpcf7-quiz.wpcf7-not-valid {
    border: 2px solid red;
}

span.wpcf7-not-valid-tip {
    -ms-flex-item-align: end;
        align-self: flex-end;
    margin-top: 5px;
    border-radius: 5px;
    padding: 5px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    background-color: red;
    color: var(--white);
    font-size: 12px;
    text-align: right;
}

span.wpcf7-not-valid-tip:before {
    margin-right: 10px;
    content: '\f071';
    font-family: FontAwesome;
}

.wpcf7-response-output {
    margin: 40px 0 20px 0!important;
    font-size: 14px; 
    color: var(--grey);
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: red!important;
}


/* -------------------------
SITE FOOTER LINK
---------------------------*/

.site__btn-container {
    position: fixed;
    bottom: 0px;
    right: 0;
    margin: 0 auto;
    border: 1px solid var(--black);
    max-width: 1160px;
    width: 100%;
    visibility: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    z-index: 1;
}


.btn__up {
    visibility: visible;
    position: relative;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    background-color: var(--grey);
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    cursor: pointer;
    border-radius: 5px;
    -webkit-transition: background-color.5s, color .5s, -webkit-transform .5s;
    transition: background-color.5s, color .5s, -webkit-transform .5s;
    -o-transition: background-color.5s, color .5s, transform .5s;
    transition: background-color.5s, color .5s, transform .5s;
    transition: background-color.5s, color .5s, transform .5s, -webkit-transform .5s;
}

.btn__up:hover {
    background-color: var(--gold);
    color: var(--grey);
    -webkit-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
            transform: translateY(-10px);
}