/*
	Theme Name: Magellano
	Theme URI: 
	Author:  Veronika Udod
	Author URI: 
	Version: 2.0
	Description: 
	Tags: x
	Licence: GPL v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: G2R.it
*/

/* MAIN SETTINGS */
body, html{
    overflow-x: hidden;
    position: relative;
	cursor: none;
}

:root{
    --lightblue: #85D1FF;
    --lightgrey: #F3F3F3;
    --blue: #2E3072;
	--grey: #9FA0AD;
	--white: #FFFFFF;
}

*{
	outline: 0;
	font-family: "Archivo", sans-serif;
}

h1, h2, h3, h4, h5, h6, p{
	font-family: "Archivo", sans-serif;
	font-weight: 400;
}

h1{
	font-size: 60px;
	color: var(--blue);
}

h2{
	font-size: 40px;
}

h3{
	font-size: 30px;
}

h4{
	font-size: 20px;
}

p{
	font-size: 18px;
}

.max-w-1240{
	max-width: 1240px; 
	margin: auto;
}

.text-white{
	color: var(--white);
}

.text-blue{
	color: var(--blue) !important;
}

.text-grey{
	color: var(--grey) !important;
}

.d-only-desktop{
	display: flex;
}

@media only screen and (max-width: 768px){
	h1{
		font-size: 36px;
	}

	h2{
		font-size: 22px;
	}

	h3{
		font-size: 18px;
	}

	h4{
		font-size: 18px;
	}

	p{
		font-size: 16px;
	}
	
	.d-only-desktop{
		display: none !important;
	}
}

/* CURSOR */
#cursor{
	aspect-ratio: 1;
	border-radius: 50%;
	width: 0.5rem;
	position: fixed;
	transform: translate(-50%, -50%);
	background-color: #2E3072;
	z-index: 100;
	/*top: 150px;
	left: 470px;*/
	pointer-events: none;
	transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

#cursor-shadow{
	aspect-ratio: 1;
	border-radius: 50%;
	width: 2.5rem;
	position: fixed;
	transform: translate(-50%, -50%);
	border: 2px solid #2E3072;
	z-index: 100;
	top: 150px;
	left: 470px;
	pointer-events: none;
	transition: opacity 0.1s ease;
}

.site-content{
	padding-top: 200px;
}

/* NAVBAR */
nav{
	padding-top: 70px;
	padding-bottom: 50px;
	position: fixed;
	width: 100%;
	background-color: var(--white);
	z-index: 49;
	transition: all 0.5s ease;
}

body.scrolled nav{
	padding-top: 20px;
	padding-bottom: 20px;
}

.logo{
	max-width: 240px;
}

.nav-right{
	display: flex;
	justify-content: end;
	align-items: center;
}

.main-menu-header{
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	width: 75%;
	margin-bottom: 0;
}

.main-menu-header li{
	list-style: none;
}

.main-menu-header a {
    text-decoration: none;
    color: var(--blue);
    font-family: "Archivo", sans-serif;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    display: inline-block; 
    overflow: hidden; 
    transition: transform 0.3s ease; 
}

.main-menu-header a span {
    display: block; 
    position: relative;
    transform: translateY(0); 
    transition: transform 0.3s ease;
}

.main-menu-header a:hover span {
    transform: translateY(-150%); 
}

.main-menu-header a::after {
    content: attr(data-text); 
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0; 
    color: var(--blue); 
    transform: translateY(150%);
    transition: transform 0.3s ease; 
}

.main-menu-header .btn-head::after {
    content: attr(data-text); 
    position: absolute;
    left: 35px;
    bottom: 15px; 
    color: var(--white); 
    transform: translateY(150%);
    transition: transform 0.3s ease; 
}

.main-menu-header a:hover::after {
    transform: translateY(0); 
}

.main-menu-header img{
	width: 25px;
	transition: 0.5s;
}

.main-menu-header img:hover{
	margin-bottom: 10px;
}

.btn-head{
	text-decoration: none;
    color: var(--blue);
    font-family: "Archivo", sans-serif;
    font-size: 20px;
    font-weight: 400;
    padding: 15px 35px;
    background-color: var(--white); 
    border: 2px solid var(--blue);
    border-radius: 12px;
}

.btn-head:hover{
	color: var(--white);
	background-color: var(--blue);
}

.custom-mobile-header {
	display: none;
}

@media only screen and (max-width: 768px){
	.site-content{
		padding-top: 100px;
	}
	
	nav{
		padding-top: 0px;
        padding-bottom: 20px;
		position: fixed;
		width: 100%;
		background-color: var(--white);
		z-index: 49;
		transition: all 0.5s ease;
	}

	body.scrolled nav{
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.logo{
		max-width: 160px;
	}
	
	nav .nav-desk{
		display: none;
	}
	
	body{
		cursor: default;
	}	
	
	#cursor, #cursor-shadow{
		display: none;
	}
	
	/* Mobile Header */
	.custom-mobile-header {
	  display: block;
	  background-color: #fff;
	  padding: 20px;
	  position: relative;
	  z-index: 1000;
	}

	.mobile-header-container {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	}

	.mobile-logo img {
	  width: 160px;
	}

	.mobile-hamburger {
	  display: flex;
	  flex-direction: column;
	  justify-content: space-around;
	  width: 65px;
	  height: 30px;
	  background: none;
	  border: none;
	  cursor: pointer;
	  z-index: 999;
	}

	.mobile-hamburger span {
	  display: block;
	  width: 100%;
	  height: 2px;
	  background: var(--blue);
	  transition: transform 0.3s, opacity 0.3s;
	}

	/* Mobile Menu Overlay */
	.mobile-menu-overlay {
	  display: none;
	  position: fixed;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background: rgba(46, 48, 114, 0.95);
	  z-index: 99;
	  align-items: center;
	  justify-content: center;
	}

	.mobile-menu-overlay.active {
	  display: flex;
	}

	.mobile-menu-links {
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	}

	.mobile-menu-links a {
	  color: #fff;
	  font-size: 1.5rem;
	  text-decoration: none;
	  margin: 1rem 0;
	  transition: color 0.2s;
	}

	.mobile-menu-links a:hover {
	  color: #85D1FF;
	}
	
	.mobile-menu-links .btn-head{
		color: var(--blue);
	}

	/* Hamburger Menu Open State */
	.mobile-hamburger.open span:nth-child(1) {
	  transform: translateY(10px) rotate(45deg);
	  background: var(--white);
	}

	.mobile-hamburger.open span:nth-child(2) {
	  opacity: 0;
	  background: var(--white);
	}

	.mobile-hamburger.open span:nth-child(3) {
	  transform: translateY(-10px) rotate(-45deg);
	  background: var(--white);
	}
	
	.menu-logo-center {
	  display: none;
	  position: absolute;
	  top: 20px; 
	  left: 50%;
	  transform: translateX(-50%);
	  z-index: 1001;
	}

	.menu-logo-center img {
	  opacity: 0;
	  transform: translateX(-50%) scale(0.9);
	  transition: opacity 0.3s ease, transform 0.3s ease;
	}

	.mobile-menu-overlay.active .menu-logo-center img {
	  opacity: 1;
	  transform: translateX(-50%) scale(1);
	}

}

/* HEADER */
.blue-btn a{
	background-color: var(--blue);
	color: var(--white);
	padding: 20px 35px;
	font-size: 20px;
	font-weight: 400;
	border-radius: 14px;
}

.blue-btn a:hover{
	background-color: var(--lightblue);
	color: var(--white);
	padding: 20px 35px;
	font-size: 20px;
	font-weight: 400;
	border-radius: 14px;
}

.blue-btn a{
	position: relative;
    display: inline-block; 
    overflow: hidden; 
    transition: transform 0.3s ease; 
}

.blue-btn a span {
    display: block; 
    position: relative;
    transform: translateY(0); 
    transition: transform 0.3s ease;
}

.blue-btn a:hover span {
    transform: translateY(-190%); 
}

.blue-btn a::after {
    content: attr(data-text); 
    position: absolute;
    left: 35px;
    bottom: 20px; 
    color: var(--white); 
    transform: translateY(190%);
    transition: transform 0.3s ease; 
}

.blue-btn a:hover::after {
    transform: translateY(0); 
}

@media only screen and (max-width: 768px){
	.blue-btn a{
		padding: 20px 120px;
	}
	
	.blue-btn a:hover{
		padding: 20px 120px;
	}
	
	.blue-btn a::after {
		left: 120px;
	}
}

/* PLUGIN TITLE-BLUEBACK */
.title-blueback span{
	background-color: var(--blue);
	border-radius: 9px;
	padding: 7px;
	line-height: 1.2;
	color: var(--white);
}

@media only screen and (max-width: 768px){
	.title-blueback{
		text-align: center;
	}
}

/* WHITE */

.title-whiteback span{
	background-color: var(--white);
	border-radius: 9px;
	padding: 7px;
	line-height: 1.2;
	color: var(--blue);
}

@media only screen and (max-width: 768px){
	.title-whiteback{
		text-align: center;
	}
}

/* FOOTER */
footer{
	margin: 0;
	padding-top: 55px;
	padding-bottom: 55px;
	background-color: var(--blue);
	border-radius: 45px 45px 0 0;
	color: var(--white);
}

.logo-footer{
	max-width: 220px;
	margin-left: 12px;
}

.menu-footer{
	display: flex;
	justify-content: end;
	align-items: center;
}

.main-menu-footer{
	display: flex;
	justify-content: space-between;
	width: 65%;
	margin-bottom: 0;
}

.main-menu-footer li{
	list-style: none;
}

.main-menu-footer a{
	text-decoration: none;
	color: var(--white);
	font-family: "Archivo", sans-serif;
	font-size: 18px;
	font-weight: 400;
}

.middle-row-footer{
	margin-top: 66px;
	padding-bottom: 50px;
	border-bottom: 1px solid #fff;
	margin-bottom: 50px;
	margin-left: 12px;
}

.middle-row-footer p{
	color: #fff;
	font-size: 18px;
} 

.p-copyright{
	margin-left: 12px;
}

@media only screen and (max-width: 768px){
	
	.main-menu-footer{
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		text-align: center;
		width: 100%;
		margin-bottom: 0;
		margin-top: 40px;
		padding-left: 0;
	}
	
	.main-menu-footer li{
		margin-bottom: 10px;
	}
	
	.middle-row-footer{
		text-align: center;
		margin-left: 0;
		margin-top: 36px;
	}
	
	.logo-container{
		text-align: center;
	}
	
	footer h3{
		font-size: 26px;
	}
}

/* NEWSLETTER FORM */
.newsletter-form input{
	padding: 22px 35px;
	border-radius: 14px;
	border: 0;
	font-family: "Archivo", sans-serif;
}

.newsletter-form p{
	margin-bottom: 0;
}

.newsletter-form .wpcf7-spinner{
	display: none;
}

.newsletter-form input:placeholder{
	color: var(--blue);
}

.newsletter-form .btn-newsletter{
	background-color: var(--lightblue);
	color: var(--blue);
	border-radius: 14px;
	border: 0;
	font-family: "Archivo", sans-serif;
}

.wpcf7 .newsletter-form input[type="submit"] {
    color: var(--blue); 
    font-size: 18px;
}

.wpcf7 .newsletter-form input::placeholder{
    color: var(--blue);
    font-size: 18px; 
}

.arrow-btn-white a{
	font-family: "Archivo", sans-serif;
	font-size: 20px;
	display: flex;
    align-items: center;
	color: var(--white);
}

.arrow-btn-white a::before{
	content: ''; 
    display: inline-block; 
    width: 41px;
    height: 41px;
	background-image: url('/wp-content/uploads/2024/11/whiteback_arrow.png');
    background-size: cover; 
    background-repeat: no-repeat;
    margin-right: 10px; 
	transition: .4s;
}

.arrow-btn-white a:hover::before {
    transform: rotate(30deg);
	margin-right: 30px;

}

@media only screen and (max-width: 768px){
	.newsletter-form input , .newsletter-form input[type="submit"] {
		width: 330px;
	}	
	
	.newsletter-form{
		gap: 20px;
		text-align: center;
		margin-top: 50px;
	}
	
	.newsletter-form .col-md-8, .newsletter-form .col-md-4{
		display: flex;
		justify-content: center;
	}
}

/* POPUP */
/* Overlay */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup content */
#popup-content {
    background: var(--blue);
    padding: 0;
    border-radius: 14px;
    width: 100%;
    height: 700px;
    max-width: 70%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close button */
#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.contact-form{
	height: 700px;
	color: #fff;
}


.contact-form a{
	color: #fff;
}

.contact-form .submit-btn p{
	width: 100%;
}

.contact-form .submit-btn input{
	width: 100%;
	border: 2px solid var(--white);
	color: var(--white);
	background-color: transparent;
	transition: 0.5s;
}

.contact-form .submit-btn:hover input{
	width: 100%;
	border: 2px solid var(--white);
	color: var(--blue);
	background-color: var(--white);
}

.contact-form .form-control{
	padding: 15px;
}

.img-form{
	background-image: url('https://magellano.io/wp-content/uploads/2024/12/come_si_vive_in_barca_a_vela1_3ad582a7-0bac-4d81-98fb-5ddb80a86ee9.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 0 14px 14px 0;
}

.col-form{
	padding: 70px;
}

@media only screen and (max-width: 768px){
	#popup-content {
		background: var(--blue);
		padding: 0;
		border-radius: 14px;
		width: 100%;
		height: 100%;
		max-width: 100%;
		position: relative;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	}
	
	.contact-form{
		height: 100%;
		color: #fff;
	}
	
	.col-form{
		padding: 40px;
	}
}

/* SEARCH FORM */
#transaction-search-form{
	text-align: center;
	margin-top: 15px;
	margin-bottom: 15px;
}

#transaction-id{
	width: 80%;
	border: 1px solid #F3F3F3;
	border-radius: 14px;
	padding: 22px 35px;
}

#transaction-search-form button{
	padding: 10px;
	border: 1px solid #F3F3F3;
	border-radius: 6px;
}

#transaction-result{
	margin-top: 40px;
	padding: 10px;
}

.transaction-det{
	background-color: var(--lightgrey);
	border-radius: 10px;
	padding: 40px;
}

.transaction-det .bord-bot{
	border-bottom: 1px solid var(--white);
	padding-bottom: 20px;
}

#transaction-search-form button{
	background-color: var(--blue);
	color: var(--white);
	padding: 20px 35px;
	font-size: 20px;
	font-weight: 400;
	border-radius: 14px;
}

#transaction-search-form button:hover{
	background-color: var(--lightblue);
	color: var(--white);
	padding: 20px 35px;
	font-size: 20px;
	font-weight: 400;
	border-radius: 14px;
}

#transaction-search-form button{
	position: relative;
    display: inline-block; 
    overflow: hidden; 
    transition: transform 0.3s ease; 
}

#transaction-search-form button span {
    display: block; 
    position: relative;
    transform: translateY(0); 
    transition: transform 0.3s ease;
}

#transaction-search-form button:hover span {
    transform: translateY(-190%); 
}

#transaction-search-form button::after {
    content: attr(data-text); 
    position: absolute;
    left: 35px;
    bottom: 20px; 
    color: var(--white); 
    transform: translateY(190%);
    transition: transform 0.3s ease; 
}

#transaction-search-form button:hover::after {
    transform: translateY(0); 
}

@media only screen and (max-width: 768px){
	#transaction-result{
		padding: 0;
	}
	
	.transaction-det p{
		font-size: 12px;
        word-wrap: break-word;
	}
	
	.transaction-det {
		padding: 20px;
	}
	
	#transaction-id {
		width: 100%;
	}
	
	#transaction-search-form button {
		padding: 20px 135px;
		margin-top: 20px;
	}
}

/* LOADER SEARCH */
#loader {
    display: none;
    border: 4px solid #ccc;
    border-radius: 50%;
    border-top: 4px solid var(--blue);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: relative;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
	margin-top: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* LOADER CHECK EMAIL */
#popup-loader {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: block;
}

.spinner {
    border: 4px solid var(--lightblue);
    border-radius: 50%;
    border-top: 4px solid var(--white);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

