* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

:root {
	--gold: #cfb27a;
	--dark-gold: #DAA520;
	--black: #000000;
	--dark-gray: #1a1a1a;
	--light-gray: #f5f5f5;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
	font-family: 'Inter', sans-serif;
	line-height: 1.6;
	color: var(--light-gray);
	background: var(--black);
	overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6{
	font-family: "Archivo", sans-serif;
}

p{
font-weight: 300;	
}


/* Header con effetto glassmorphism */
.header {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 0 1rem;
	transition: all 0.3s ease;
}

.header.scrolled {
	background: rgba(0, 0, 0, 0.95);
	box-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 1rem;
}

.logo {
	font-size: 1.8rem;
	font-weight: 300;
	color: var(--gold);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	 white-space: nowrap; /* evita il ritorno a capo */
    flex-shrink: 1;      /* consente di ridurre la scritta se serve */
    min-width: 0;        /* importante per il calcolo flex */
}

@media screen and (max-width: 359px){
	
	.logo > img {
	height: 40px !important;
	width: 40px !important;
	}
	
	.logo > span {
	display: none;
	}
	
}
.logo i {
	font-size: 2rem;
	animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-link {
	color: var(--light-gray);
	text-decoration: none;
	transition: color 0.3s ease;
	position: relative;
}

.nav-link:hover {
	color: var(--gold);
}

.nav-link::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -5px;
	left: 0;
	background: var(--gold);
	transition: width 0.3s ease;
}

.nav-link:hover::after {
	width: 100%;
}

/* Hamburger icon più grande e visibile */
.mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
  /*   z-index: 1100; sopra overlay */
}



.mobile-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.4s ease;
      z-index: 1100;
}

/* Hamburger trasformazione in X quando aperto */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* Mobile menu overlay completo */
.nav-menu.mobile-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.98); /* quasi completamente opaco, 2% trasparenza */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1000; /* sopra tutto */
    opacity: 1;
}
.nav-menu.mobile-open li {
    margin: 0;
}

.nav-menu.mobile-open a {
    font-size: 1.6rem;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu.mobile-open a:hover {
    color: #fff;
}
.nav-menu.mobile-open .nav-link {
	font-size: 1.2rem;
	padding: 1rem;
}

/* Hero Section con parallax */
.hero {
	height: 100vh;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.7),
		rgba(26, 26, 26, 0.8)),
		url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23000" width="1200" height="600"/><g fill="%23FFD700" opacity="0.1"><circle cx="200" cy="100" r="50"/><circle cx="800" cy="200" r="30"/><circle cx="1000" cy="400" r="40"/></g></svg>');
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.hero-content {
	text-align: center;
	max-width: 800px;
	padding: 0 1rem;
	animation: fadeInUp 1s ease;
}

.hero h1 {
	font-size: clamp(2.5rem, 8vw, 4rem);
	margin-bottom: 1rem;
	background: linear-gradient(45deg, var(--gold), var(--dark-gold));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: bold;
}

.hero p {
	font-size: clamp(1.1rem, 3vw, 1.3rem);
	margin-bottom: 2rem;
	opacity: 0.9;
}

.cta-button {
	display: inline-block;
	background: linear-gradient(45deg, var(--gold), var(--dark-gold));
	color: var(--black);
	padding: 1rem 2rem;
	text-decoration: none;
	border-radius: 50px;
	font-weight: bold;
	transition: all 0.3s ease;
	box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
	position: relative;
	overflow: hidden;
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.cta-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3),
		transparent);
	transition: left 0.5s;
}

.cta-button:hover::before {
	left: 100%;
}

/* Floating elements */
.floating-element {
	position: absolute;
	opacity: 0.1;
	animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
	top: 20%;
	left: 10%;
	animation-delay: 0s;
}

.floating-element:nth-child(2) {
	top: 60%;
	right: 10%;
	animation-delay: 2s;
}

.floating-element:nth-child(3) {
	bottom: 20%;
	left: 20%;
	animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}


/* Services Section */
.services {
	padding: 5rem 0;
	background: linear-gradient(135deg, var(--dark-gray), var(--black));
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.section-title {
	text-align: center;
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 3rem;
	color: var(--gold);
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: var(--gold);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 4rem;
}

.service-card {
	color: inherit;              /* eredita il colore del testo, non blu */
    text-decoration: none;       /* elimina sottolineatura */
	background: rgba(26, 26, 26, 0.8);
	padding: 2rem;
	border-radius: 15px;
	text-align: center;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 215, 0, 0.1);
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}


.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.05),
		transparent);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.service-card:hover::before {
	transform: translateX(100%);
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
	border-color: var(--gold);
	text-decoration: none;       /* sicuro che resti senza underline */
    color: inherit;              /* mantiene il colore */
    cursor: pointer;
}

.service-icon {
	font-size: 3rem;
	color: var(--gold);
	margin-bottom: 1rem;
	display: block;
}

.service-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--gold);
}

/* Features Section */
.features {
	padding: 5rem 0;
	background: var(--black);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.feature-item:hover {
	background: rgba(255, 215, 0, 0.1);
}

.feature-icon {
	background: var(--gold);
	color: var(--black);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}

/* Contact Section */
.contact {
	padding: 5rem 0;
	background: linear-gradient(135deg, var(--dark-gray), var(--black));
}

.contact-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 3rem;
	align-items: center;
}

.contact-info {
	display: grid;
	gap: 1.5rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: rgba(26, 26, 26, 0.5);
	border-radius: 10px;
	transition: all 0.3s ease;
}

.contact-item:hover {
	transform: translateX(10px);
	background: rgba(255, 215, 0, 0.1);
}

.contact-item i {
	color: var(--gold);
	font-size: 1.5rem;
	width: 30px;
}

.whatsapp-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #25D366;
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	z-index: 1000;
	animation: bounce 2s infinite;
	box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
	
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/* Footer */
.footer {
	background: var(--black);
	text-align: center;
	padding: 2rem 0;
	border-top: 1px solid var(--dark-gray);
}

/* Professional scroll animations */
.scroll-reveal {
	opacity: 0;
	transform: translateY(50px);
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
	opacity: 1;
	transform: translateY(0);
}

.scroll-reveal-left {
	opacity: 0;
	transform: translateX(-50px);
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
	opacity: 1;
	transform: translateX(0);
}

.scroll-reveal-right {
	opacity: 0;
	transform: translateX(50px);
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
	opacity: 1;
	transform: translateX(0);
}

.scroll-reveal-scale {
	opacity: 0;
	transform: scale(0.9);
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-scale.revealed {
	opacity: 1;
	transform: scale(1);
}



/* Mobile responsiveness */
@media (max-width: 810px) {
	.nav-menu {
		display: none;
	}

	.mobile-menu {
		display: flex;
	}

	.hero-content {
		padding: 0 1rem;
	}

	.services-grid, .features-grid, .contact-content {
		grid-template-columns: 1fr;
	}

	.service-card, .feature-item, .contact-item {
		padding: 1.5rem;
	}

	.cta-button {
		padding: 0.8rem 1.5rem;
		font-size: 1rem;
	}
	
	.whatsapp-button {
        bottom: 80px; /* sopra il menu mobile */
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Logo + testo */
.nav-container .logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* permette di andare a capo se lo spazio è poco */
}

.nav-container .logo img {
    max-width: 50px; /* riduci il logo su schermi piccoli */
    height: auto;
    margin-right: 0.5rem;
}

/* Testo accanto al logo */
.nav-container .logo span {
    font-size: 1rem; /* riduci un po' il testo su schermi medi */
}

/* Media query per schermi tra 768px e 1200px */
@media (max-width: 1200px) {
    .nav-container .logo img {
        max-width: 40px;
    }
    .nav-container .logo {
        justify-content: center; /* centra logo + testo */
    }
}

/* Overlay animato: aggiungi un leggero movimento o gradient animato dietro il testo, non solo gli elementi flottanti. */
.hero::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05), transparent 70%);
    animation: rotateHero 20s linear infinite;
   
}

@keyframes rotateHero {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

a.cta-button {
    position: relative;
}


/* SERVIZI */
.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2);
}

.service-card.clicked {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
}

.service-card.clicked .service-icon {
    transform: rotate(15deg) scale(1.2);
}

.service-card .service-icon {
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.2);
}

.booking {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
}

.booking h2 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 1rem;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
/*     background: #fff; */
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.booking-form label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.booking-form input,
.booking-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.booking-form input:focus,
.booking-form textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.booking-form button.cta-button {
    width: 100%;
    margin-top: 1rem;
    background: var(--gold);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.booking-form button.cta-button:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}


/* Stile uniforme per input e select */
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="number"],
.booking-form input[type="datetime-local"],
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* Focus */
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Opzione della select un po’ più grande */
.booking-form select option {
    padding: 0.5rem;
    font-size: 1rem;
}

/* Altezza totale identica agli input normali */
.select2-container--default .select2-selection--single {
    height: 40px !important; /* altezza uguale agli input */
    line-height: 40px !important;
    padding: 0 12px !important; /* stesso padding degli input */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Testo dentro la select */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    color: #000;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    line-height: 40px !important;
    color: #888;
}

/* Dropdown opzioni */
.select2-container--default .select2-results__option {
    color: #000;
}

.select2-container--default .select2-dropdown {
    background-color: #fff;
}

.bagagli-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;    /* forza tutto su una riga */
    overflow-x: auto;     /* scroll orizzontale se necessario */
}

.bagagli-container > div {
    flex: 1 1 0;          /* ciascun div cresce per occupare spazio */
    min-width: 80px;      /* evita che diventi troppo piccolo */
}

.bagagli-container input {
    width: 100%;
    box-sizing: border-box;
}


#bottonePrenota {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--gold), var(--dark-gold));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

#bottonePrenota:hover {
    background: linear-gradient(45deg, var(--dark-gold), var(--gold));
}

.camion-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    opacity: 0;
}

@keyframes moveTruck {
    0% { left: -50px; transform: translateY(-50%) rotate(0deg); opacity: 1; }
    50% { left: 50%; transform: translate(-50%, -50%) rotate(5deg); opacity: 1; }
    100% { left: 100%; transform: translateY(-50%) rotate(10deg); opacity: 0; }
}

.camion-move {
    animation: moveTruck 1.5s ease-in-out forwards;
}


/* ========= NUOVE FEATURE ========== */

/* Pulsante flottante prenotazione mobile */
.floating-booking {
    position: fixed;
    bottom: 90px; /* sopra al pulsante WhatsApp */
    right: 20px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}
.floating-booking i {
    font-size: 1.2rem;
}
.floating-booking:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

/* Bottone prenota liquido */
.bottonePrenota {
    position: relative;
    overflow: hidden;
}
.bottonePrenota::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.4), transparent 70%);
    animation: liquidMove 6s linear infinite;
}
@keyframes liquidMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card 3D touch */
.service-card {
    perspective: 1000px;
}
.service-card:hover {
    transform: rotateY(8deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

/* Gradiente animato come background hero */
.hero {
    background: linear-gradient(-45deg, #000, #1a1a1a, #111, #000);
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll reveal smooth per mobile */
.scroll-reveal {
    transition: all 0.8s ease-out;
}
.scroll-reveal.revealed {
    transform: translateY(0) scale(1.02);
    opacity: 1;
}

/* footer */
.footer {
    background: #000;
    padding: 25px 10px;
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
}

.footer-divider {
    border: none;
    border-top: 1px solid #d4af37;
    width: 60%;
    margin: 0 auto 15px;
    opacity: 0.6;
}

.footer a {
    color: #d4af37;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

/* LOGIN */
/* Hero style per login */
.login-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(26,26,26,0.8)), url('${contextPath}/resources/ImageWeb/chauffeur.jpg') center/cover no-repeat;
    overflow: hidden;
    padding: 1rem;
}

/* Centra login-box sopra le icone */
.login-box {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 25px 20px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    animation: fadeIn 1s ease;
}

/* Titolo e testo */
.login-box h2 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

/* Input e pulsanti */
.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-box input:focus {
    border-color: var(--gold);
    outline: none;
    background: #1a1a1a;
}

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--gold);
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #c19d2b;
    transform: translateY(-2px);
}

/* Link opzioni */
.login-options {
    text-align: center;
    margin-top: 12px;
}

.login-options a {
    color: var(--gold);
    font-size: 0.9rem;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}

.login-options a:hover {
    color: #fff;
}
/* Floating elements animati per login - sempre visibili */
.floating-element {
    position: absolute;
    pointer-events: none; /* non blocca il login */
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
    font-size: 2.5rem;
    color: var(--gold);
    z-index: 5; /* sopra il login-box */
}

/* Desktop: posizionamento icone - anche ripetute */
.floating-element:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 15%; right: 10%; animation-delay: 0.5s; }
.floating-element:nth-child(3) { top: 25%; left: 15%; animation-delay: 1s; }
.floating-element:nth-child(4) { top: 35%; right: 20%; animation-delay: 1.5s; }
.floating-element:nth-child(5) { top: 45%; left: 25%; animation-delay: 2s; }
.floating-element:nth-child(6) { top: 55%; right: 30%; animation-delay: 2.5s; }
.floating-element:nth-child(7) { top: 65%; left: 35%; animation-delay: 3s; }
.floating-element:nth-child(8) { top: 75%; right: 40%; animation-delay: 3.5s; }
.floating-element:nth-child(9) { top: 85%; left: 45%; animation-delay: 4s; }
.floating-element:nth-child(10){ bottom: 5%; right: 5%; animation-delay: 4.5s; }
.floating-element:nth-child(11){ bottom: 15%; left: 10%; animation-delay: 5s; }
.floating-element:nth-child(12){ bottom: 25%; right: 15%; animation-delay: 5.5s; }
.floating-element:nth-child(13){ bottom: 35%; left: 20%; animation-delay: 6s; }
.floating-element:nth-child(14){ bottom: 45%; right: 25%; animation-delay: 6.5s; }
.floating-element:nth-child(15){ bottom: 55%; left: 30%; animation-delay: 7s; }
.floating-element:nth-child(16){ bottom: 65%; right: 35%; animation-delay: 7.5s; }
.floating-element:nth-child(17){ top: 10%; left: 40%; animation-delay: 8s; }
.floating-element:nth-child(18){ top: 20%; right: 45%; animation-delay: 8.5s; }
.floating-element:nth-child(19){ top: 30%; left: 50%; animation-delay: 9s; }
.floating-element:nth-child(20){ top: 40%; right: 55%; animation-delay: 9.5s; }

/* Animazione float */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Mobile: riduzione dimensione e riposizionamento */
@media (max-width: 768px) {
    .floating-element { font-size: 2rem; opacity: 0.1; }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .floating-element { font-size: 1.5rem; opacity: 0.09; }
}

/* Overlay */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.85); /* sfondo nero semi-trasparente */
  transition: all 0.3s ease;
}

/* Header della modale */
.modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* Contenuto della modale */
.modal-content {
  background-color: #111; /* nero profondo */
  color: #f5c518; /* oro chiaro */
  margin: 10% auto; 
  padding: 30px 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 0 20px rgba(245,197,24,0.5);
  font-family: 'Arial', sans-serif;
}

/* Link che circonda l'icona */
.modal-icon-link {
  display: inline-block;
  text-decoration: none; /* rimuove sottolineatura */
}

/* Icona nel titolo */
.modal-icon {
  font-size: 32px;
  color: #f5c518;
  border: 2px solid #f5c518;
  padding: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

/* Hover dell’icona/link */
.modal-icon-link:hover .modal-icon {
  transform: scale(1.2) rotate(-5deg);
  color: #fff7e6;
  box-shadow: 0 0 15px rgba(245,197,24,0.7);
}

/* Click dell’icona/link */
.modal-icon-link:active .modal-icon {
  transform: scale(1.1) rotate(0deg);
  box-shadow: 0 0 10px rgba(245,197,24,0.5);
}


/* Titolo */
.modal-header h2 {
  margin: 0;
  font-size: 26px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testo */
.modal-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #fff7e6; /* bianco leggermente dorato */
}

/* Bottone chiudi */
.close {
  color: #f5c518;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close:hover {
  color: #fff7e6;
  transform: scale(1.2);
}

/* card inziiale home hero */
.hero-card {
	transform: none !important;
    animation: none !important;
    width: 90%;
    max-width: 999px;
    padding: 4rem 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;

    /* Sfondo fisso con overlay leggero scuro per testo leggibile */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url("/romeluxurytransfers/resources/ImageWeb/homepage-colosseo-ncc.webp") 
                center/cover no-repeat;

    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2);
    border: 1px solid var(--gold);

    /* Transizione per hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover elegante */
.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.3);
}

/* Titolo e paragrafo */
.hero-card h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--gold);
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}

.hero-card p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #fff7e6;
    margin-bottom: 2rem;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Bottone CTA */
.hero-card .cta-button {
    position: relative;
    z-index: 2; /* Sopra qualsiasi overlay */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, var(--gold), var(--dark-gold));
    color: var(--black);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.hero-card .cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5);
}

.hero-card .cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.3), transparent 70%);
    animation: liquidMove 6s linear infinite;
    z-index: 1;
}

@keyframes liquidMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Overlay animato sopra la card (solo decorativo, senza bloccare il bottone) */
.card-con-immagine::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none; /* importante: non blocca click */
}

.card-con-immagine:hover::before {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .card-con-immagine::before,
    .hero-card .cta-button::before {
        animation: none; /* stop animazioni pesanti */
    }
}
.card-con-immagine,
.hero-card,
.floating-element {
    transform: translateZ(0); /* forza layer GPU */
    backface-visibility: hidden; /* migliora performance su mobile */
}

/* !!sezione servizi!! */
/* Hero Services */
.services-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}


.hero-container {
    position: relative;
    min-height: 300px; /* mobile default */
    max-height: 700px; /* desktop max */
    display: flex;
    align-items: center; /* centra verticalmente */
}


.hero-img {
    width: 100%;
    object-fit: cover;
    display: block;
    height: auto; /* lascia l'altezza proporzionata */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}


.hero-title {
   font-size: clamp(2rem, 6vw, 3rem);
    color: var(--gold);
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}

.hero-service{
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--gold);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--gold), var(--dark-gold));
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.hero-subtitle {
    color: #fff7e6;
    line-height: 1.7;
 	font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Sezione descrizione sotto l'hero */
.services-description {
    background: #111;
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.services-description h2 {
    color: #cfb27a;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.services-description p {
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.services-description .highlight-gold {
    color: #d4af37;
    font-weight: 600;
}


/* Responsive */
@media (max-width: 768px) {
    .services-hero {
        position: relative;
        width: 100%;
        overflow: hidden;
        min-height: 250px; /* altezza minima ragionevole */
        margin-top: -20px;
    }

    .hero-container {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end; /* testo in basso */
    }

/* 	.hero-service {
        font-size: 1.8rem;
        white-space: nowrap;
        overflow-x: auto;
        margin-bottom: 0; annulla margine inferiore
        margin-top: auto;
    } */

    .hero-img {
        width: 100%;
        height: auto;  /* mantiene proporzioni */
        display: block;
        object-fit: cover;
    }

	.hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
        box-sizing: border-box;
    }

    .hero-title,
    .hero-service {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Descrizione generale subito sotto la foto */
    .services-description {
        margin-top: 0;
        padding-top: 1rem;
    }

    
}


/* !!sezione servizi!! FINE */


/* MODALE */
/* MODALE BASE */
.modal {
  display: none;           /* di default è nascosta */
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  padding: 0;            /* meglio azzerarlo per mobile */
  overflow-y: auto;       /* solo scroll verticale */
  overflow-x: hidden;     /* blocca scroll orizzontale */
  box-sizing: border-box;
}

/* Evita scroll laterale su tutta la pagina quando la modale è aperta */
body.modal-open {
  overflow: hidden;
}
/* CONTENUTO MODALE */
.modal-content {
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;            /* quasi tutto lo schermo su mobile */
  max-width: 600px;      /* desktop */
  height: auto;          /* si adatta al contenuto */
  max-height: 95vh;      /* non supera viewport */
  overflow-y: auto;      /* scroll interno se necessario */
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
  animation: fadeIn 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* CHIUDI BOTTONE */
.modal .close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gold);
  z-index: 10;
}

/* ANIMAZIONE */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .modal {
    padding: 0;
    align-items: flex-start; /* top scroll per mobile */
  }

  .modal-content {
    width: 95%;           /* quasi tutto lo schermo */
    max-height: 95vh;     /* non oltre viewport */
    padding: 1.5rem;      /* più leggibile su mobile */
    font-size: 1rem;      /* testo leggibile */
    border-radius: 10px;
  }

  .modal .close {
    top: 8px;
    right: 10px;
    font-size: 1.6rem;    /* facile da cliccare */
  }
}

/* OPTIONAL: contenuto sempre centrato desktop */
@media (min-width: 769px) {
  .modal {
    align-items: center;
  }
}
/* MODALE FINE */

/* -------- */


/* TOM SELECT */
        .ts-control {
            border: 1px solid #ddd;
            border-radius: 4px;
            min-height: 42px;
        }
        
        .ts-input {
            padding: 10px 12px;
            font-size: 14px;
        }
        
        .ts-dropdown-content {
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        /* Stile per le opzioni con emoji */
        .vehicle-option {
            display: flex;
            align-items: center;
            padding: 8px 12px;
        }
        
        .vehicle-emoji {
            margin-right: 8px;
            font-size: 16px;
        }
/* TOM SELECT FINE */


/* Reset stile iOS */
input[type="datetime-local"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #000;
    color: #FFD700;
    font-size: 1em;
    font-family: inherit;
    padding: 0.5em 0.6em;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #FFD700;
    border-radius: 6px;
    outline: none;
    height: 45px; /* forza l’altezza uguale agli altri */
    line-height: 45px; /* centra il testo verticalmente */
}

/* Icona calendario/orologio di Safari */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(77%) sepia(84%) saturate(512%) hue-rotate(10deg) brightness(101%) contrast(102%);
    cursor: pointer;
}
