/* VARIABILI E RESET */
:root {
    --primary-color: #009FE3; /* Azzurro del brand */
    --secondary-color: #0077b3;
    --text-color: #333333;
    --light-gray: #f9f9f9;
    --white: #ffffff;
    --gradient-btn: linear-gradient(90deg, #d53369 0%, #daae51 100%); /* Simile al bottone instagram */
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* UTILITY CLASSES */
.section-padding {
    padding: 80px 0;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-transparent {
    border: 1px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-gradient {
    background: var(--gradient-btn);
    color: var(--white);
    border-radius: 30px;
    padding: 12px 40px;
}
[id] {
    scroll-margin-top: 80px; /* Set this to the height of your header */
}
/* HEADER */
.header {
    background-color: rgba(255,255,255,0.5);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(20px);
}

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

.nav-left ul, .nav-right ul {
    display: flex;
    gap: 30px;
}
.nav-left, .nav-right {
    width: 250px;
}
.nav-right ul {
    justify-content: end;
}

.nav-left a, .nav-right a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.logo img {
    height: 60px;
}

/* HERO SECTION */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 120px 0; /* Extra padding bottom per le card */
    position: relative;
}
.hero-default {
    padding-bottom: 80px;
}
.hero-content {
    display: block;
    text-align: center;
    padding-bottom: 100px;
}
.hero-default .hero-content {
    padding-bottom: 0;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: -80px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* FEATURES OVERLAP (Schede Azzurre) */
.features-overlap {
    margin-top: -60px; /* Pull up */
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}
.no-overlap {
    margin-top: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: #2bbfff; /* Un tono più chiaro del primario o gradiente */
    background: linear-gradient(135deg, #009FE3, #29c6ff);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,159,227,0.3);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* FLEET SECTION (Cards Mezzi) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.grid-3.mezzi .card img {
    height: 360px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.logo-chi-siamo img {
    width: 100%;
}
.azienda, .obiettivi, .servizi, .privacy {
    padding: 80px 0;
}
.obiettivi {
    background-color: #f9f9f9;
}
.obiettivi ul {
    list-style:disc;
    padding: 20px;
}
.servizi {
    padding-bottom: 0;
}
.privacy h2 {
    margin: 20px 0;
}
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.card-body ul {
    list-style: disc;
    margin-left: 20px;
    font-size: 0.85rem;
    color: #555;
}
video {
    width: 100%;
}
/* VIDEO SECTION */
.video-placeholder {
    position: relative;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.video-placeholder img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0 0 10px rgba(0,159,227,0.3);
    transition: transform 0.3s;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item p {
    color: #666;
    font-weight: 500;
}

/* TESTIMONIALS */
.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.avatar.blue {
    background-color: #29c6ff;
}

.stars {
    color: #f4c150;
    font-size: 0.9rem;
}

.review-card p {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
}

/* CONTACT FORM */
.form-container {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    background-color: white;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* MAP SECTION */
.map-placeholder {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #e74c3c;
    font-size: 3rem;
    transform: translate(-50%, -100%);
}

/* INSTAGRAM */
.insta-link {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.insta-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.insta-grid img {
    flex: 1;
    border-radius: 10px;
    max-width: 200px;
    transition: 0.3s;
}

.insta-grid img:hover {
    opacity: 0.8;
}

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

/* FOOTER */
.footer {
    background-color: #009FE3;
    color: white;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #e0e0e0;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

#mobileNav {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .features-grid, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0;
    }
    .header {
        padding: 10px 0;
        padding-bottom: 5px;
    }
    .logo img {
        height: 45px;
    }
    
    .nav-left ul, .nav-right ul {
        gap: 15px;
        font-size: 0.8rem;
        display: none;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-bottom: 0;
    }
    .hero-buttons .btn {
        display: block;
        margin: 0;
        margin-top: 7px;
    }
    .hero {
        padding-bottom: 0px;
    }
    .hero-image {
        position: static;
        transform: none;
        margin-top: 30px;
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .features-grid, .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        width: 45%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .form-container {
        padding: 20px;
    }
    .scorri {margin-bottom: 20px;}
    #mobileNav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #009fe36c;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 999;
        backdrop-filter: blur(20px);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
    .azienda, .obiettivi {
        text-align: center;
    }
    .obiettivi ul {
        list-style: none;
        padding: 0;
        font-weight: bold;
    }
}