:root {
  /* Color Palette - Based on Logo */
  --color-primary: #005f99;
  /* Logo Blue */
  --color-primary-dark: #004470;
  --color-secondary: #FFD700;
  /* Logo Yellow/Gold */
  --color-secondary-light: #fff9db;
  --color-accent: #FFD700;

  --color-text-main: #2c3e50;
  --color-text-light: #546e7a;
  --color-background: #ffffff;
  --color-background-alt: #f4f8fb;
  --color-white: #ffffff;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Typography */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Borders & Shadows */
  --border-radius: 12px;
  --shadow-sm: 0 2px 4px rgba(0, 95, 153, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 95, 153, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 95, 153, 0.12);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: 6rem 0;
  /* Increased from 4rem to prevent navbar overlap */
}

.bg-alt {
  background-color: var(--color-background-alt);
}

/* Utilities */

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

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

/* Import Fonts *//* Navbar */
.navbar {
    width: 100%;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    /* Reduced vertical padding slightly, spacing handled better */
    min-height: 90px;
    /* Ensure consistent height */
}

.nav-logo {
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    /* Increased weight for visibility */
    color: var(--color-text-main);
    position: relative;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    /* Use primary blue for active instead of yellow for better contrast locally */
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    color: var(--color-primary);
}

/* Grids for Pages (Desktop default) */
.fleet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: block;
        z-index: 1001;
        margin-right: 1rem;
        /* Fix: Move hamburger away from right edge */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        /* Fix: Move items to top */
        padding-top: 6rem;
        /* Fix: Space from top */
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-title {
        font-size: 3.2rem;
        /* Fix: Smaller font for mobile to fit screen */
        line-height: 1.1;
        word-wrap: break-word;
        /* Ensure wrapping */
    }

    .hero-content {
        padding: 0 1.5rem;
        /* Ensure padding on sides */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .schedule-container {
        border-radius: 8px;
    }

    /* Mobile Grid Overrides */
    .fleet-grid {
        grid-template-columns: 1fr;
        /* Fix: Stack fleet items */
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        /* Fix: Stack contact items */
        gap: 3rem;
    }

    /* Fix: "Dove Siamo" margin in contact form */
    .contact-grid>div:first-child {
        margin-right: 0;
        padding-right: 0;
        /* Ensure it has space too */
        padding-left: 5px;
    }

    .contact-form {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Hero */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .hero {
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
        height: 70vh;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    /* Shows the person walking */
    z-index: -1;
    filter: contrast(1.15) saturate(1.1);
    /* Enhance colors */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Significantly darker overlay for maximum contrast */
    background: linear-gradient(180deg, rgba(0, 40, 80, 0.4) 0%, rgba(0, 0, 0, 0.8) 90%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
    /* Optional: verify if background box is needed, but shadow usually suffices with dark overlay */
}

/* Fonts */
@font-face {
    font-family: 'Etna';
    src: url('../etna-free-font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.hero-title {
    font-family: 'Etna', sans-serif;
    font-size: 5rem;
    /* Increased size for impact */
    margin-bottom: 1rem;
    font-weight: normal;
    color: #66b3ff;
    /* Lighter blue for better visibility */
    /* Heavy shadow to separate text from background */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.brand-font {
    font-family: 'Etna', sans-serif;
    font-weight: normal;
    letter-spacing: 0.05em;
    /* Optional: usually looks better for brand names */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 1;
    /* Full opacity */
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Service Card */
.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--color-background-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Schedule Table */
.schedule-container {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 2rem;
}

.schedule-tabs {
    display: flex;
    background: var(--color-primary);
    padding: 0.5rem 0.5rem 0;
    overflow-x: auto;
}

.schedule-tab {
    padding: 1rem 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    white-space: nowrap;
    font-weight: 600;
}

.schedule-tab.active {
    background: var(--color-white);
    color: var(--color-primary);
}

.schedule-content {
    padding: 2rem;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    font-weight: 700;
    color: var(--color-primary);
    /* Blue headers for better contrast */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: #f9f9f9;
}

.schedule-row:last-child td {
    border-bottom: none;
}

.schedule-line {
    font-weight: 700;
    color: var(--color-primary);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-secondary-light);
    color: var(--color-primary-dark);
}

/* Footer */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--color-accent);
    /* Yellow titles in footer */
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

/* Form Styles Override for Mobile/General */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
    /* Ensure alignment */
}

.form-label {
    display: block;
    /* Force new line */
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    /* Ensure white background */
}

/* Mobile Specific Fixes */
@media (max-width: 1024px) {
    .hero-subtitle {
        font-size: 1.1rem;
        /* Smaller subtitle for mobile */
        padding: 0 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    /* Fix: Hero Title was being overridden by desktop styles. moving here ensures precedence */
    .hero-title {
        font-size: 12vw;
        /* Use viewport units to guarantee it fits */
        line-height: 1.1;
        word-wrap: break-word;
        width: 100%;
        /* Ensure full width usage */
        margin-bottom: 0.5rem;
        /* Reduce gap slightly */
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
        /* Prevent zoom on iOSIO */
    }
}