* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
}

/* Header */
header {
    background-color: #1a365d;
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
}

.language-switcher button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher button.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh; /* Utilizza min-height invece di height per dispositivi mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden; /* Previene eventuali scroll indesiderati */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1; /* Assicura che il sovrapposto stia sopra al video */
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 0; /* Posiziona il video sotto il sovrapposto */
    pointer-events: none; /* Disabilita interazioni col video */
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem); /* Testo responsive */
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2; /* Testo sopra tutto */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Migliora leggibilità */
    line-height: 1.2;
    padding: 0 1rem;
}
.hero p {
    font-size: clamp(2rem, 5vw, 2rem); /* Testo responsive */
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2; /* Testo sopra tutto */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Migliora leggibilità */
    line-height: 1.2;
    padding: 0 1rem;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a365d;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
}

.gallery {
    margin: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-description {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

/* Sleeping Boat Card */
.sleeping-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    padding: 10px;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sleeping-content {
    padding: 2rem;
    text-align: center;
}

.sleeping-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.sleeping-content p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}


/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: #1a365d;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4da6ff;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4da6ff;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.contact-text p, .contact-text a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #4da6ff;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #4da6ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.2);
}

button {
    background-color: #1a365d;
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

button:hover {
    background-color: #142a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}


/* Footer */
footer {
    background-color: #1a365d;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
}

@media (max-width: 992px) {
    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: #1a365d;
        width: 250px;
        height: calc(100vh - 70px);
        padding: 2rem 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

    .language-switcher {
        margin-left: auto;
        margin-right: 20px;
    }

    .sleeping-boat {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .sleeping-boat {
        height: 50vh;
    }

    .sleeping-overlay h2 {
        font-size: 2rem;
    }

    .sleeping-overlay p {
        font-size: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 90vh;
    }
}


@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .sleeping-boat {
        height: 40vh;
    }

    .sleeping-overlay h2 {
        font-size: 1.6rem;
    }

    .contact-info, .contact-form {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}