/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Variabili CSS */
:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8A65;
    --dark-grey: #2C3E50;
    --light-grey: #95A5A6;
    --white: #FFFFFF;
    --black: #000000;
    --light-bg: #F8F9FA;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Popup Form di Contatto */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-popup:hover {
    color: var(--primary-orange);
}

.popup-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-grey);
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-orange);
}

/* Sezione 1: Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(90deg, rgba(245, 246, 245, 0.95) 0%, rgba(245, 246, 245, 0.6) 50%, rgba(245, 246, 245, 0.05) 100%), url('hero-image.png');
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.vertical-text {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 14px;
    color: var(--light-grey);
    letter-spacing: 2px;
    font-weight: 300;
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.hero-left {
    flex: 2;
    padding-top: 2rem;
    z-index: 2;
}

.logo {
    margin-bottom: 3rem;
}

.brand-name {
    font-family: 'Cherry Bomb One', cursive;
    font-size: 4rem;
    font-weight: 900;
    font-style: italic;
    position: relative;
    line-height: 1.2;
    padding: 0.2rem 0;
    white-space: nowrap;
    word-break: keep-all;
    display: inline-block;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.y-letter {
    color: var(--primary-orange);
    -webkit-text-stroke: 1px white;
    text-stroke: 1px white;
    animation: yPulse 2s ease-in-out infinite;
}

.route69-text {
    color: white;
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
}

@keyframes yPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8));
    }
}







/* Testo "A NEW ERA OF TRAVEL" accanto al logo */
.era-text {
    display: none;
    font-size: 14px;
    color: var(--light-grey);
    letter-spacing: 2px;
    font-weight: 300;
    margin-left: 1.5rem;
    align-self: center;
}

.hero-text .subtitle {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.hero-text .line {
    width: 40px;
    height: 2px;
    background: var(--light-grey);
    margin-right: 1rem;
}

.hero-text .subtitle span {
    font-size: 16px;
    color: var(--light-grey);
}

.highlight {
    color: var(--primary-orange) !important;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.vertical-line {
    width: 3px;
    height: 60px;
    background: var(--primary-orange);
    margin: 2rem 0;
}

.hero-text p {
    font-size: 18px;
    color: var(--light-grey);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-primary {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--black);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.demo-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.demo-button:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.star-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-grey);
}

.demo-button span {
    color: var(--light-grey);
    font-weight: 500;
}

.hero-right {
    flex: 1;
    position: relative;
    z-index: 1;
}




.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--light-grey);
    font-size: 12px;
    letter-spacing: 1px;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: var(--light-grey);
    margin: 0.5rem auto 0;
}

.sidebar {
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar span {
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transform: rotate(90deg);
    white-space: nowrap;
}


/* Sezione 2: Tu scrivi, noi creiamo */
.services-section {
    min-height: 100vh;
    background: url('bianco.png') center/cover;
    padding: 5rem 5%;
    display: flex;
    align-items: center;
}

.services-content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
}

.services-left {
    flex: 1;
}

.image-cluster {
    position: relative;
    width: 100%;
    height: 600px;
}

.diamond-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: rotate(45deg);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.diamond-card:hover {
    transform: rotate(45deg) scale(1.1);
}

/* Background animato per tutta la sezione 2 */
.services-section {
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('bianco.png') center/cover;
    opacity: 0.05;
    z-index: -1;
}

/* Animazione di entrata semplice per le card */
.diamond-card.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Delays diversi per ogni card per creare un effetto a cascata */
.diamond-card.fade-in:nth-child(1) { animation-delay: 0.1s; }
.diamond-card.fade-in:nth-child(2) { animation-delay: 0.2s; }
.diamond-card.fade-in:nth-child(3) { animation-delay: 0.3s; }
.diamond-card.fade-in:nth-child(4) { animation-delay: 0.4s; }
.diamond-card.fade-in:nth-child(5) { animation-delay: 0.5s; }
.diamond-card.fade-in:nth-child(6) { animation-delay: 0.6s; }
.diamond-card.fade-in:nth-child(7) { animation-delay: 0.7s; }
.diamond-card.fade-in:nth-child(8) { animation-delay: 0.8s; }

/* Animazione di entrata */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Hover effect migliorato */
.diamond-card:hover {
    animation-play-state: paused;
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.card-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Immagini per tutti i quadrati */
.diamond-card[data-category="enjoying"] {
    transform: none;
    border-radius: 15px;
    background: url('Enjoining.jpg') center/cover;
}

.diamond-card[data-category="beach"] {
    transform: none;
    border-radius: 15px;
    background: url('beach.jpg') center/cover;
}

.diamond-card[data-category="adventure"] {
    transform: none;
    border-radius: 15px;
    background: url('adventure.jpg') center/cover;
}

.diamond-card[data-category="dining"] {
    transform: none;
    border-radius: 15px;
    background: url('dining.jpg') center/cover;
}

.diamond-card[data-category="wildlife"] {
    transform: none;
    border-radius: 15px;
    background: url('wild_life.jpg') center/cover;
}

.diamond-card[data-category="resort"] {
    transform: none;
    border-radius: 15px;
    background: url('resorts.jpg') center/cover;
}

.diamond-card[data-category="tours"] {
    transform: none;
    border-radius: 15px;
    background: url('tours.jpg') center/cover;
}

.diamond-card[data-category="spa"] {
    transform: none;
    border-radius: 15px;
    background: url('SPArelax.jpg') center/cover;
}

/* Nascondi le card-image interne per tutti */
.diamond-card .card-image {
    display: none;
}

/* Correggi le etichette per tutti */
.diamond-card .card-label {
    transform: translateX(-50%);
}

.card-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-grey);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.diamond-card:nth-child(1) { top: 10%; left: 10%; }
.diamond-card:nth-child(2) { top: 20%; right: 20%; }
.diamond-card:nth-child(3) { top: 40%; left: 5%; }
.diamond-card:nth-child(4) { top: 60%; right: 10%; }
.diamond-card:nth-child(5) { bottom: 30%; left: 20%; }
.diamond-card:nth-child(6) { bottom: 20%; right: 30%; }
.diamond-card:nth-child(7) { bottom: 10%; left: 40%; }
.diamond-card:nth-child(8) { top: 30%; right: 5%; }

.central-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--primary-orange);
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-image::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: url('avatarsez2.png') center/cover;
    border-radius: 50%;
    z-index: 2;
}

.services-right {
    flex: 1;
}

.services-right h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.services-right p {
    font-size: 18px;
    color: var(--light-grey);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.input-field {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 5px;
    max-width: 400px;
}

.input-field input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
}

.send-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.send-btn:hover {
    background: var(--secondary-orange);
}

/* Sezione 6: Diventa nostro Partner */
.partner-section {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('heart.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 5%;
    position: relative;
}

.partner-content {
    max-width: 600px;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partner-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
}

.partner-content p {
    font-size: 18px;
    color: var(--dark-grey);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-grey);
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-left span {
    color: white;
    font-size: 14px;
}

/* Sezione 3: Pianifica. Personalizza. Parti. */
.plan-section {
    min-height: 100vh;
    background: var(--light-bg);
    padding: 5rem 5%;
}

.plan-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.plan-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.plan-header p {
    font-size: 18px;
    color: var(--light-grey);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.slogan {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-orange);
}

/* Dashboard Interface */
.dashboard-interface {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* Responsive per la tabella dashboard - scroll orizzontale su mobile */
@media (max-width: 768px) {
    .dashboard-interface {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-orange) #f0f0f0;
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .dashboard-interface::-webkit-scrollbar {
        height: 6px;
    }
    
    .dashboard-interface::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .dashboard-interface::-webkit-scrollbar-thumb {
        background: var(--primary-orange);
        border-radius: 3px;
    }
    
    .dashboard-interface::-webkit-scrollbar-thumb:hover {
        background: #e55a2b;
    }
    
    /* Mantieni la larghezza minima della tabella */
    .dashboard-content {
        min-width: 800px;
    }
}

/* Carosello automatico sotto 950px */
@media (max-width: 950px) {
    .dashboard-interface {
        display: none !important;
    }
    
    .dashboard-carousel {
        display: block !important;
        position: relative;
        width: 100%;
        height: 400px;
        overflow: hidden;
        background: #f0f0f0;
        border: 5px solid red;
        margin: 2rem 0;
        z-index: 999;
    }
    
    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-slide.active {
        opacity: 1;
    }
    
    .slide-content {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-orange);
        margin-bottom: 1.5rem;
    }
    
    /* Slide 1: Thailandia */
    .thailand-package {
        background: white;
        border-radius: 15px;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .package-images {
        margin-bottom: 1rem;
    }
    
    .main-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }
    
    .image-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .image-grid img {
        width: 100%;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .package-details {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .package-buttons {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .btn-outline {
        background: white;
        border: 2px solid var(--primary-orange);
        color: var(--primary-orange);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
        cursor: pointer;
    }
    
    .package-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .category {
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        font-size: 0.7rem;
        color: white;
        font-weight: 600;
    }
    
    .category.nature { background: #4CAF50; }
    .category.relax { background: #2196F3; }
    .category.adventure { background: #FF9800; }
    .category.culture { background: #9C27B0; }
    .category.party { background: #F44336; }
    
    /* Slide 2: Chat AI */
    .ai-chat-mobile {
        background: white;
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .ai-message {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .ai-avatar {
        width: 40px;
        height: 40px;
        background: var(--primary-orange);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
    }
    
    .ai-content {
        flex: 1;
        text-align: left;
    }
    
    .ai-text {
        font-size: 0.9rem;
        color: var(--dark-grey);
        margin-bottom: 0.5rem;
    }
    
    .ai-preview {
        font-size: 0.8rem;
        color: var(--light-grey);
        line-height: 1.4;
    }
    
    /* Slide 3: Mappa */
    .map-explore {
        position: relative;
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .map-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .map-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        padding: 1rem;
    }
    
    .map-hint {
        color: white;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .map-hint i {
        margin-right: 0.5rem;
        color: var(--primary-orange);
    }
    
    /* Slide 4: Calendario */
    .calendar-mobile {
        background: white;
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .calendar-events {
        margin-bottom: 1rem;
    }
    
    .calendar-event {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.8rem;
        background: #f8f9fa;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }
    
    .event-icon {
        width: 30px;
        height: 30px;
        background: var(--primary-orange);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.8rem;
    }
    
    .event-details {
        flex: 1;
    }
    
    .event-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--dark-grey);
    }
    
    .event-time {
        font-size: 0.8rem;
        color: var(--light-grey);
    }
    
    .drag-indicator {
        color: var(--light-grey);
        font-size: 0.8rem;
    }
    
    .calendar-hint {
        text-align: center;
        font-size: 0.8rem;
        color: var(--light-grey);
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .calendar-hint i {
        margin-right: 0.5rem;
        color: var(--primary-orange);
    }
    
    /* Indicatori del carosello */
    .carousel-indicators {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 107, 53, 0.3);
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .indicator.active {
        background: var(--primary-orange);
    }
}

/* Nascondi carosello su desktop */
@media (min-width: 951px) {
    .dashboard-carousel {
        display: none !important;
    }
    
    .test-carousel {
        display: none !important;
    }
}

/* Carosello semplice per mobile */
@media (max-width: 950px) {
    .simple-carousel {
        display: block !important;
        position: relative;
        width: 100%;
        height: 350px;
        overflow: hidden;
        background: transparent;
        margin: 2rem 0;
        z-index: 999;
    }
    
    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-slide.active {
        opacity: 1;
    }
    
    .slide-content {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-orange);
        margin-bottom: 1.5rem;
    }
    
    .map-explore {
        position: relative;
    }
    
    /* Indicatori del carosello */
    .carousel-indicators {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 107, 53, 0.3);
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .indicator.active {
        background: var(--primary-orange);
    }
}

/* Nascondi carosello su desktop */
@media (min-width: 951px) {
    .simple-carousel {
        display: none !important;
    }
}

/* Ottimizzazioni per schermi molto piccoli */
@media (max-width: 330px) {
    .simple-carousel {
        height: 300px;
    }
    
    .carousel-slide {
        padding: 1rem;
    }
    
    .slide-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-content {
        max-width: 300px;
    }
    
    /* Riduci padding per le card */
    .thailand-package,
    .ai-chat-mobile,
    .calendar-mobile {
        padding: 0.8rem;
    }
    
    /* Riduci dimensioni immagini */
    .thailand-package img {
        height: 80px !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* Riduci margini */
    .package-info > div {
        margin-bottom: 0.3rem !important;
    }
    
    /* Riduci padding bottoni */
    .package-info button {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Riduci padding categorie */
    .package-info span {
        padding: 0.2rem 0.6rem !important;
        font-size: 0.6rem !important;
    }
}

/* Forza visibilità del carosello su mobile */
@media (max-width: 950px) {
    .dashboard-carousel {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: 5px solid red !important;
        background: #f0f0f0 !important;
        height: 400px !important;
        width: 100% !important;
        position: relative !important;
        z-index: 999 !important;
    }
    
    .carousel-slide {
        display: flex !important;
    }
    
    .carousel-slide.active {
        display: flex !important;
        opacity: 1 !important;
    }
}

/* Header */
.dashboard-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.my-trip-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.profile-icon i {
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
}

/* Main Content */
.dashboard-content {
    display: flex;
    min-height: 600px;
    flex-wrap: wrap;
}

/* Left Sidebar */
.dashboard-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.sidebar-item:hover i,
.sidebar-item:hover span {
    color: var(--primary-orange);
}

.sidebar-item i {
    font-size: 16px;
    color: #6c757d;
    transition: all 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.sidebar-item span {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}



/* Center Main Content */
.dashboard-main {
    flex: 1;
    padding: 1.5rem;
    min-width: 300px;
}

.destination-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.destination-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.destination-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin: 0;
}

.destination-rating {
    text-align: right;
    min-width: 120px;
}

.destination-rating span {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.stars {
    color: #FFD700;
    font-size: 14px;
}

/* Gallery */
.destination-gallery {
    display: flex;
    gap: 1rem;
    height: 200px;
}

.main-image {
    flex: 2;
    background: url('thai1.png') center/cover;
    border-radius: 10px;
    min-width: 200px;
}

.gallery-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    min-width: 150px;
}

.gallery-item {
    background: url('thai2.jpg') center/cover;
    border-radius: 8px;
}

.gallery-item:nth-child(1) { background: url('thai1.png') center/cover; }
.gallery-item:nth-child(2) { background: url('thai2.jpg') center/cover; }
.gallery-item:nth-child(3) { background: url('resorts.jpg') center/cover; }
.gallery-item:nth-child(4) { background: url('beach.jpg') center/cover; }

/* Trip Actions */
.trip-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.add-trip-btn {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.trip-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 200px;
}

.trip-destination, .trip-date, .trip-duration, .trip-price {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
}

.book-now-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

/* Interests */
.interests-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
}

.interest-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.interest-dot.nature { background: #4CAF50; }
.interest-dot.relax { background: #2196F3; }
.interest-dot.adventure { background: #FF9800; }
.interest-dot.culture { background: #9C27B0; }
.interest-dot.party { background: #E91E63; }

/* AI Chat Section */
.ai-chat-section {
    margin-top: 1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.ai-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-orange), #FF8A65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-avatar i {
    color: white;
    font-size: 14px;
}

.ai-content {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.ai-text {
    font-size: 13px;
    color: var(--dark-grey);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.ai-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-preview span {
    font-size: 12px;
    color: var(--dark-grey);
    padding: 0.25rem 0;
}

.ai-preview span:last-child {
    color: var(--primary-orange);
    font-weight: 600;
    text-align: center;
    margin-top: 0.25rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
}

.typing-indicator span {
    font-size: 11px;
    color: var(--primary-orange);
    font-weight: 500;
}

.typing-dots {
    display: flex;
    gap: 0.2rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Right Sidebar */
.dashboard-right {
    width: 280px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-section, .calendar-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-section h4, .calendar-section h4 {
    font-weight: 600;
    margin: 0;
    color: var(--dark-grey);
    font-size: 14px;
}

.map-container {
    height: 150px;
    background: url('esploramappa.png') center/cover;
    border-radius: 10px;
    position: relative;
    border: 1px solid #e0e0e0;
}

.calendar-container {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.calendar-day {
    margin-bottom: 1rem;
}

.calendar-day:last-child {
    margin-bottom: 0;
}

.calendar-day h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-grey);
    font-size: 12px;
}

.calendar-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.calendar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-card:active {
    cursor: grabbing;
}

.calendar-card.restaurant {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
}

.calendar-card.hotel {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.calendar-card.flight {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
}

.calendar-card.activity {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.3);
}

.card-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.card-subtitle {
    font-size: 10px;
    color: #6c757d;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.card-tag {
    display: inline-block;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark-grey);
    font-weight: 500;
}

.card-day-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--primary-orange);
    color: white;
    font-weight: 600;
}

/* Indicatori di drag & drop per il calendario */
.calendar-container {
    position: relative;
}

.draggable {
    cursor: grab;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.draggable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: grabbing;
}

.draggable:active {
    cursor: grabbing;
}

.drag-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #6c757d;
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.draggable:hover .drag-indicator {
    opacity: 1;
    color: var(--primary-orange);
}

.calendar-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    font-size: 12px;
    color: var(--primary-orange);
    font-weight: 500;
}

.calendar-hint i {
    font-size: 14px;
}

/* Sezione 5: Tutto quello di cui hai bisogno */
.features-section {
    min-height: 100vh;
    background: white;
    padding: 5rem 5%;
}

.features-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-card.pink { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.feature-card.blue { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.feature-card.green { background: linear-gradient(135deg, #d299c2, #fef9d7); }
.feature-card.purple { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.feature-card.teal { background: linear-gradient(135deg, #ffecd2, #fcb69f); }

.feature-icon {
    margin-bottom: 1.5rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #000;
    line-height: 1.6;
}

/* Nascondi immagini e mostra icone tra 770px e 380px */
@media (max-width: 770px) and (min-width: 380px) {
    .feature-icon img {
        display: none;
    }
    
    .feature-icon::before {
        content: '';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 3rem;
        color: var(--primary-orange);
        display: block;
        margin-bottom: 1rem;
    }
    
    /* Icone specifiche per ogni card */
    .feature-card.pink .feature-icon::before {
        content: '\f245'; /* fa-mouse-pointer - per "Un Click, Tutto Fatto" */
    }
    
    .feature-card.blue .feature-icon::before {
        content: '\f3ed'; /* fa-shield-alt - per "Assicurazione" */
    }
    
    .feature-card.green .feature-icon::before {
        content: '\f019'; /* fa-download - per "Viaggia Offline" */
    }
    
    .feature-card.purple .feature-icon::before {
        content: '\f51e'; /* fa-coins - per "RouteCoin" */
    }
    
    .feature-card.teal .feature-icon::before {
        content: '\f004'; /* fa-heart - per "Un piccolo gesto" */
    }
}



/* Sezione 4: Find Your Tribe */
.community-section {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('people.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 5%;
    display: flex;
    align-items: center;
}

/* Sotto 860px: community-text con immagine people invece di background color */
@media (max-width: 860px) {
    .community-text {
        background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('people.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
}

.community-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.community-text {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.community-text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.community-text p {
    font-size: 18px;
    color: var(--dark-grey);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.community-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.explore-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-grey);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.explore-link:hover {
    color: var(--primary-orange);
}



/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content,
    .create-content,
    .services-content,
    .destinations-content,
    .community-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-text h1,
    .create-left h2,
    .services-right h2,
    .plan-header h2,
    .features-section h2,
    .destinations-header h2,
    .community-text h2 {
        font-size: 2.5rem;
    }
}

/* Responsive per "A NEW ERA OF TRAVEL" */
@media (max-width: 1749px) {
    .vertical-text {
        display: none;
    }
    
    .era-text {
        display: inline;
        color: var(--light-grey);
    }
    
    .logo {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .brand-name {
        white-space: nowrap;
        color: var(--primary-orange);
        word-break: keep-all;
    }
}

/* Sezione 2 - Sostituisci parte sinistra con immagine sez2 sotto 1500px */
@media (max-width: 1500px) {
    .services-left {
        background-image: url('sez2.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: white;
        position: relative;
        min-height: 400px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .services-left .image-cluster {
        display: none !important;
    }
}

/* Mobile specifico per sezione 2 */
@media (max-width: 768px) {
    .services-left {
        background-size: 90% auto;
        min-height: 300px;
        background-color: white;
    }
}

/* Scritte grigie che diventano nere da 1300px in giù */
@media (max-width: 1300px) {
    .hero-text p {
        color: var(--black);
    }
    
    .demo-button span {
        color: var(--black);
    }
    
    .star-icon {
        border-color: var(--black);
        color: var(--black);
    }
    
    .era-text {
        color: var(--black);
    }
}

@media (max-width: 768px) {
    /* Sezioni generali */
    .hero-section,
    .services-section,
    .plan-section,
    .features-section,
    .community-section,
    .partner-section {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    /* Hero Section */
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .vertical-text {
        display: none;
    }
    
    .sidebar {
        display: none;
    }
    
    /* Nascondi "SCROLL TO DISCOVER" su mobile */
    .scroll-indicator {
        display: none;
    }
    
    /* Cambia colore delle scritte grigie in nero su mobile */
    .hero-text .subtitle span {
        color: var(--black);
    }
    
    .hero-text p {
        color: var(--black);
    }
    
    .star-icon {
        border-color: var(--black);
        color: var(--black);
    }
    
    .demo-button span {
        color: var(--black);
    }
    
    .era-text {
        color: var(--black);
    }
    
    /* Logo responsive con effetti mantenuti */
    .brand-name {
        font-family: 'Cherry Bomb One', cursive;
        font-size: 3.2rem;
        line-height: 1.2;
        padding: 0.2rem 0;
        white-space: nowrap;
        word-break: keep-all;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    }
    
    .y-letter {
        color: var(--primary-orange);
        -webkit-text-stroke: 1px white;
        text-stroke: 1px white;
        animation: yPulse 2s ease-in-out infinite;
    }
    
    .route69-text {
        color: white;
        -webkit-text-stroke: 1px black;
        text-stroke: 1px black;
    }
    
    .brand-name::before {
        line-height: 1.2;
        padding: 0.2rem 0;
        color: var(--primary-orange);
    }
    
    /* Mantieni YRoute69 sempre attaccato su mobile */
    .logo {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
    }
    
    .era-text {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        align-items: center;
    }
    
    /* Services Section */
    .services-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .image-cluster {
        height: 400px;
        margin-bottom: 2rem;
    }
    
    .diamond-card {
        width: 80px;
        height: 80px;
    }
    
    /* Animazione di entrata più veloce su mobile */
    .diamond-card.fade-in {
        animation-duration: 0.6s;
    }
    
    .services-right h2 {
        font-size: 2rem;
    }
    
    .services-right p {
        font-size: 16px;
    }
    
    /* Plan Section */
    .plan-header h2 {
        font-size: 2rem;
    }
    
    .plan-header p {
        font-size: 16px;
    }
    
    .dashboard-interface {
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .sidebar-icons {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .sidebar-item {
        padding: 8px;
        gap: 0.5rem;
        min-width: 0;
    }
    
    .sidebar-item i {
        font-size: 14px;
    }
    
    .sidebar-item span {
        font-size: 12px;
    }
    

    
    .dashboard-main {
        padding: 1rem;
        min-width: auto;
    }
    
    .destination-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .destination-header h3 {
        font-size: 1.25rem;
    }
    
    .destination-rating {
        text-align: left;
        min-width: auto;
    }
    
    .destination-gallery {
        flex-direction: column;
        height: auto;
        gap: 0.5rem;
    }
    
    .main-image {
        height: 150px;
        min-width: auto;
    }
    
    .gallery-grid {
        height: 100px;
        min-width: auto;
    }
    
    .trip-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .trip-info {
        min-width: auto;
        text-align: center;
    }
    
    .interests-list {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .interest-item {
        font-size: 11px;
    }
    
    .ai-chat-section {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    .ai-message {
        gap: 0.5rem;
    }
    
    .ai-avatar {
        width: 28px;
        height: 28px;
    }
    
    .ai-avatar i {
        font-size: 12px;
    }
    
    .ai-content {
        padding: 0.75rem;
    }
    
    .ai-text {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }
    
    .ai-preview {
        gap: 0.25rem;
    }
    
    .ai-preview span {
        font-size: 11px;
    }
    
    .typing-indicator {
        margin-top: 0.25rem;
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .typing-indicator span {
        font-size: 10px;
    }
    
    .typing-dots {
        gap: 0.15rem;
    }
    
    .dot {
        width: 5px;
        height: 5px;
    }
    
    .dashboard-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding: 1rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .map-section, .calendar-section {
        flex: 1;
        min-width: 0;
    }
    
    .map-container {
        height: 120px;
    }
    
    .calendar-container {
        padding: 0.75rem;
    }
    
    .calendar-day h5 {
        font-size: 11px;
        margin-bottom: 0.5rem;
    }
    
    .calendar-card {
        padding: 0.6rem;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }
    
    .card-icon {
        font-size: 14px;
    }
    
    .card-title {
        font-size: 10px;
    }
    
    .card-subtitle {
        font-size: 9px;
    }
    
    .card-tag {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .card-day-tag {
        font-size: 7px;
        padding: 1px 3px;
    }
    
    /* Indicatori mobile */
    .drag-indicator {
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
    
    .calendar-hint {
        margin-top: 0.75rem;
        padding: 0.5rem;
        font-size: 11px;
    }
    
    .calendar-hint i {
        font-size: 12px;
    }
    
    /* Features Section */
    .features-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
    }
    
    .feature-card p {
        font-size: 16px;
    }
    
    /* Community Section */
    .community-content {
        max-width: 100%;
        gap: 2rem;
    }
    
    .community-text h2 {
        font-size: 2rem;
    }
    
    .community-text p {
        font-size: 16px;
    }
    
    .community-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Partner Section */
    .partner-content {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .partner-content h2 {
        font-size: 2rem;
    }
    
    .partner-content p {
        font-size: 16px;
    }
    
    /* Footer */
    .footer-bar {
        padding: 1rem;
        text-align: center;
    }
    
    .footer-left span {
        font-size: 12px;
    }
    
    /* Popup */
    .popup-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .services-right h2,
    .plan-header h2,
    .features-section h2,
    .community-text h2,
    .partner-content h2 {
        font-size: 1.8rem;
    }
    
    .diamond-card {
        width: 60px;
        height: 60px;
    }
    
    .image-cluster {
        height: 300px;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
}

/* Animazioni aggiuntive */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
    background-color: #f5f5f5;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

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