:root {
    --primary: #c0392b;
    --secondary: #8e44ad;
    --sakura: #fd79a8;
    --dark: #2d3436;
    --light: #fdf5e6;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* HERO HOME */
.hero-home {
    height: calc(100vh - 70px);
    background: 
        linear-gradient(135deg, rgba(192, 57, 43, 0.7), rgba(142, 68, 173, 0.7)),
        url('../uploads/fuji.png') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    width: 100%;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-home h1 {
    font-size: 4rem;
    animation: fadeInDown 1s ease;
}

.hero-home p {
    animation: fadeInUp 1s ease 0.3s both;
}

/* CARDS ITINERARI */
.itinerary-section {
    padding: 60px 0;
}

.day-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.day-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.day-card .day-date {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.day-card ul {
    list-style: none;
    padding-left: 0;
}

.day-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.day-card ul li:last-child {
    border-bottom: none;
}

/* NOTE TEXTAREA */
.note-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ddd;
}

.note-area textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.note-area textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.save-note-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.save-note-btn:hover {
    background: #a93226;
    transform: scale(1.05);
}

/* MAPPE */
.map-container {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* ANIMAZIONI */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-home h1 {
        font-size: 2.5rem;
    }
    
    .hero-home p {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ALERT/MESSAGGI */
.alert-custom {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
