/* Importazione font nautico */
@import url('https://fonts.googleapis.com/css2?family=Stint+Ultra+Expanded&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@400;700&display=swap');

:root {
    /* Colori principali */
    --primary: #1a4b84;
    --primary-dark: #15406f;
    --primary-light: #3a7ca5;
    --secondary: #3a7ca5;
    --accent: #2f6690;
    --light: #d9dcd6;
    --sand: #f5e7d0;
    
    /* Effetti vetro */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(10px);
    
    /* Animazioni */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
    
    /* Ombre */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #f1f8ff 0%, #e0f7fa 100%);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #73b4ff;
}

a, button {
    transition: all var(--transition-fast) ease;
}

/* Font nautico per il titolo principale */
.nautical-font {
    font-family: 'Cabin Sketch', cursive;
    letter-spacing: 1px;
}

/* Stili per lo slideshow hero */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

/* Slide transitions */
.hero-slide {
    transform-origin: center;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide.inactive {
    opacity: 0;
    transform: scale(1.05);
    z-index: 0;
}

/* Stili per i dot dello slideshow */
.slideshow-dot {
    cursor: pointer;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.slideshow-dot.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.slideshow-dot:hover {
    transform: scale(1.2);
    background-color: white;
}

/* Stili per i pulsanti prev/next */
.slideshow-prev,
.slideshow-next {
    transition: all 0.3s ease;
    opacity: 0;
    outline: none;
}

.slideshow-container:hover .slideshow-prev,
.slideshow-container:hover .slideshow-next {
    opacity: 0.8;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-prev:active,
.slideshow-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }
    
    .slideshow-prev,
    .slideshow-next {
        width: 40px;
        height: 40px;
        opacity: 0.8;
    }
    
    .slideshow-dots {
        bottom: 100px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 80vh;
    }
    
    .slideshow-dots {
        bottom: 80px;
    }
}

/* Effetto di animazione per il contenuto */
.hero .max-w-4xl {
    animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide .wave {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.hero-slide .wave1 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 350 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,100 C50,130 100,110 150,100 C250,80 300,120 350,100 L350,150 L0,150 Z" fill="white"/></svg>');
    background-size: 350px 150px;
    animation: waveAnimation 15s linear infinite;
}

.hero-slide .wave2 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 350 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 C60,120 150,50 260,110 C300,130 350,100 350,80 L350,150 L0,150 Z" fill="white"/></svg>');
    background-size: 350px 150px;
    animation: waveAnimation 20s linear infinite;
    opacity: 0.2;
}

.hero-slide .wave3 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 350 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C100,100 200,30 300,80 C320,90 350,60 350,60 L350,150 L0,150 Z" fill="white"/></svg>');
    background-size: 350px 150px;
    animation: waveAnimation 30s linear infinite;
    opacity: 0.1;
}

@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 350px;
    }
}

/* Miglioramento del design delle card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
nav {
    transition: all var(--transition-fast);
}

.nav-link {
    position: relative;
    transition: all 0.3s;
}

/* Miglioramento dei pulsanti di navigazione */
.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 100%;
}

/* Pulsanti */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    z-index: 1;
    transition: all 0.5s;
    opacity: 0;
}

.btn-primary:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    z-index: 1;
    transition: all 0.5s;
    opacity: 0;
}

.btn-secondary:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

/* Wave Animation per Activities Section */
.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    left: 0;
    top: 0;
}

.wave1 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 350 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,100 C50,130 100,110 150,100 C250,80 300,120 350,100 L350,150 L0,150 Z" fill="white"/></svg>');
    background-size: 350px 150px;
    animation: waveAnimation 15s linear infinite;
}

.wave2 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 350 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 C60,120 150,50 260,110 C300,130 350,100 350,80 L350,150 L0,150 Z" fill="white"/></svg>');
    background-size: 350px 150px;
    animation: waveAnimation 20s linear infinite;
    opacity: 0.2;
}

.wave3 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 350 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C100,100 200,30 300,80 C320,90 350,60 350,60 L350,150 L0,150 Z" fill="white"/></svg>');
    background-size: 350px 150px;
    animation: waveAnimation 30s linear infinite;
    opacity: 0.1;
}

@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 350px;
    }
}

/* Effetti sulle immagini */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform var(--transition-medium);
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Testimonianze */
.testimonial-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '❝';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 5rem;
    font-family: serif;
    color: rgba(26, 75, 132, 0.1);
    z-index: 0;
}

/* Effetti form */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(26, 75, 132, 0.2);
    border-color: var(--primary);
    outline: none;
}

/* Back to top button */
#backToTop {
    transition: all var(--transition-fast);
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Cookie Banner */
#cookieBanner {
    transition: transform var(--transition-medium);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Boat card enhancement */
.boat-card {
    transition: all 0.5s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

.boat-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.boat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1a4b84, #3a7ca5);
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.boat-card:hover::before {
    transform: scaleX(1);
}

/* Wave divider effect */
.wave-divider {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
}

/* Form styling */
.booking-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.booking-form label {
    font-weight: 500;
    color: var(--primary);
    transition: all 0.3s;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s;
    background-color: #f8fafc;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 75, 132, 0.2);
    background-color: white;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: #a0aec0;
}

/* Floating labels effect */
.booking-form .floating-label {
    position: relative;
}

.booking-form .floating-label label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

.booking-form .floating-label input:focus ~ label,
.booking-form .floating-label input:not(:placeholder-shown) ~ label,
.booking-form .floating-label textarea:focus ~ label,
.booking-form .floating-label textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    padding: 0 0.25rem;
    background-color: white;
}

/* Checkbox style */
.booking-form .custom-checkbox {
    display: flex;
    align-items: center;
}

.booking-form .custom-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid var(--primary);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s;
}

.booking-form .custom-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary);
}

.booking-form .custom-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    font-size: 0.875rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Activity cards enhancement */
.activity-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    transition: all 0.5s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-card img {
    transition: all 0.5s ease;
}

.activity-card:hover img {
    transform: scale(1.1);
}

.activity-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 1.5rem;
    color: white;
    transform: translateY(30%);
    transition: all 0.5s ease;
}

.activity-card:hover .overlay {
    transform: translateY(0);
}

.activity-card .btn-action {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

.activity-card:hover .btn-action {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial carousel */
.testimonial-slider {
    position: relative;
}

.testimonial-slider .slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-slider .slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #e2e8f0;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-slider .slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Contatti card */
.contact-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-card .icon-container {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.contact-card:hover .icon-container {
    transform: scale(1.1);
    background-color: var(--accent);
}

/* Footer navigation style */
.footer-nav-link {
    position: relative;
    display: inline-block;
    color: #cbd5e0;
    transition: all 0.3s;
    padding-left: 1rem;
}

.footer-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s;
}

.footer-nav-link:hover {
    color: white;
    padding-left: 1.5rem;
}

.footer-nav-link:hover::before {
    opacity: 1;
    background-color: white;
}

/* Newsletter input */
.newsletter-input {
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s;
    flex-grow: 1;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--primary);
}

.newsletter-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    background-color: var(--accent);
}

/* Animazioni per i pulsanti */
.btn-wave {
    position: relative;
    overflow: hidden;
}

.btn-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.8s;
}

.btn-wave:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: all 0s;
}

/* Media queries */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }
    
    h1 {
        font-size: 2.25rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .nav-link:after {
        bottom: 0;
    }
    
    .boat-card,
    .activity-card,
    .service-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .nautical-font {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 70vh;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .contact-card {
        margin-bottom: 1.5rem;
    }
}

/* Stili aggiuntivi per migliorare gli input del form */

/* Posiziona il cursore più a destra per non coprire l'icona */
.booking-form input,
.booking-form select,
.booking-form textarea {
    text-indent: 2rem !important; /* Garantisce che il testo non copra l'icona */
    padding-left: 2.5rem !important; /* Spazio extra dal bordo sinistro */
}

/* Stile campo con errore */
.booking-form input.border-red-500,
.booking-form select.border-red-500,
.booking-form textarea.border-red-500 {
    border-width: 2px;
    background-color: rgba(254, 226, 226, 0.5); /* Rosso molto chiaro, quasi impercettibile */
}

/* Stile per messaggio di errore */
.error-message {
    padding-left: 0.5rem;
    font-size: 0.85rem;
    color: #e53e3e;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

/* Stile per checkbox della privacy */
.booking-form input[type="checkbox"] {
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    transition: all 0.3s ease;
}

.booking-form input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Animazione di validazione per input corretti */
.booking-form input:valid:not(.border-red-500):not([type="checkbox"]),
.booking-form select:valid:not(.border-red-500),
.booking-form textarea:valid:not(.border-red-500) {
    border-color: #38a169; /* Un verde sottile per indicare validità */
}

/* Stile per il captcha */
.cf-turnstile {
    margin: 0.5rem 0;
}

#captchaError {
    margin-top: 0.5rem;
}

/* Miglioramento per gli input di tipo data */
.booking-form input[type="date"] {
    appearance: none;
    background-color: white;
}

/* Stile per focalizzarsi sui campi obbligatori */
.booking-form label span.text-red-500 {
    font-size: 1.2em;
    vertical-align: middle;
    line-height: 1;
}

/* Hover state per il pulsante di invio */
.booking-form button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.booking-form button[type="submit"]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
    transition: all 0.5s;
    opacity: 0;
}

.booking-form button[type="submit"]:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.booking-form button[type="submit"] i {
    position: relative;
    z-index: 2;
}

/* Animazione per indicare campi obbligatori all'utente */
@keyframes pulseRequired {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.booking-form .form-group.has-error label {
    animation: pulseRequired 0.5s ease;
}