/* ===============================
   INTRO
================================ */
.itinerary-intro {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.quote {
    font-style: italic;
    font-size: 1.4rem;
    color: var(--col-gold);
    margin-bottom: 30px;
}


/* ===============================
   LOGISTICS GRID
================================ */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 100px;
}

.log-card {
    background: #fff;
    padding: 45px 35px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.log-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.log-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    opacity: 0.8;
}

.log-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.log-card p {
    font-size: 0.95rem;
    margin: 0;
}


/* ===============================
   TIMELINE
================================ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(27,48,34,0.1);
    z-index: 1; /* linea dietro */
}

.day-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 80px;
    z-index: 2; /* sopra la linea */
}

.day-marker {
    position: absolute;
    left: -9px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--col-forest);
    border: 4px solid var(--col-cream);
    border-radius: 50%;
    z-index: 3; /* sopra linea */
}

.day-header {
    margin-bottom: 20px;
}

.day-title {
    font-size: 2rem;
    color: var(--col-forest);
    display: block;
}

.day-meta {
    font-family: var(--font-sans);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--col-gold);
    font-size: 0.9rem;
}


/* ===============================
   TIMELINE IMAGES
================================ */
.day-img-container {
    margin-top: 30px;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    display: block;
}

.day-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.day-img-container:hover img {
    transform: scale(1.08);
}


/* ===============================
   HERO RESPONSIVE (INLINE FIX)
================================ */
@media (max-width: 768px) {

    body > div[style*="height: 400px"] {
        height: 260px !important;
    }

    body > div h1 {
        font-size: 2.2rem; /* più piccolo */
        text-align: center;
        padding: 0 20px;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {

    body > div[style*="height: 400px"] {
        height: 220px !important;
    }

    body > div h1 {
        font-size: 1.9rem; /* ancora più piccolo */
    }
}


/* ===============================
   MOBILE FIXES (DEFINITIVI)
================================ */
@media (max-width: 768px) {

    /* logistics */
    .logistics-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    /* timeline spacing */
    .timeline {
        padding-left: 25px;
        padding-right: 10px;
        margin: 0 auto;
    }

    .timeline::before {
        left: 12px;
    }

    .day-item {
        padding-left: 45px;
    }

    .day-marker {
        left: 3px;
    }

    /* immagini sempre centrate */
    .day-img-container {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===============================
   HERO IMAGE NO BORDER-RADIUS
================================ */
body > div[style*="height: 400px"] img {
    border-radius: 0 !important;
}