/* =============================================================================
   LAGO DI GARDA - MOVIMENTO BLOCK
   Design System basato su dinamismo e movimento continuo
   ============================================================================= */

/* --- Color Palette --- */
:root {
    --movement-dark: #0a0a0a;
    --movement-accent: #ff3366;
    --movement-light: #f5f5f5;
    --movement-gray: #666666;
}

/* --- Base Section Styling --- */
.garda-movement-section {
    background: var(--movement-dark);
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--movement-light);
    overflow: hidden;
    position: relative;
}

/* =============================================================================
   HERO WITH ANIMATED IMAGE STACK
   ============================================================================= */

.movement-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.movement-image-stack {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.movement-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1);
}

.movement-img.active {
    opacity: 0.6;
    transform: scale(1.1);
    animation: zoomPulse 8s ease-in-out infinite;
}

@keyframes zoomPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.movement-title-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
}

.movement-pre {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--movement-accent);
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.movement-main-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    margin: 0 0 40px 0;
    letter-spacing: -4px;
    text-transform: uppercase;
}

.movement-word {
    display: block;
    animation: fadeInUp 1s ease-out both;
}

.movement-word:nth-child(1) { animation-delay: 0.4s; }
.movement-word:nth-child(2) { animation-delay: 0.6s; }
.movement-word:nth-child(3) { animation-delay: 0.8s; }

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

.movement-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 1s both;
}

/* =============================================================================
   MOVEMENT GRID - CARD LAYOUT
   ============================================================================= */

.movement-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* =============================================================================
   MOVEMENT CARDS
   ============================================================================= */

.movement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.movement-card:hover {
    transform: translateY(-10px);
    border-color: var(--movement-accent);
    box-shadow: 0 20px 60px rgba(255, 51, 102, 0.3);
}

.movement-card-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    z-index: 1;
    transition: color 0.4s ease;
}

.movement-card:hover .movement-card-number {
    color: rgba(255, 51, 102, 0.2);
}

.movement-card-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.movement-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 10, 10, 0.9) 100%);
}

.movement-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.movement-card:hover .movement-card-image img {
    transform: scale(1.1);
}

.movement-card-content {
    padding: 40px;
    position: relative;
}

.movement-card-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    color: var(--movement-light);
}

.movement-card-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 25px 0;
}

.movement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.movement-tags span {
    font-size: 0.75rem;
    padding: 6px 14px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--movement-accent);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.movement-card:hover .movement-tags span {
    background: var(--movement-accent);
    color: var(--movement-dark);
    border-color: var(--movement-accent);
}

/* =============================================================================
   MOVEMENT FOOTER - INTERACTIVE MAP CARTOON STYLE
   ============================================================================= */

.movement-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 40px 40px 60px;
    position: relative;
    overflow: hidden;
}

/* Pattern decorativo sfondo */
.movement-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 51, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 138, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.map-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Titolo Animato Creativo - Effetto Macchina da Scrivere */
.map-title-animated {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.typewriter-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    font-family: 'Courier New', 'Courier', monospace;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(255, 51, 102, 0.2);
    position: relative;
    display: inline-block;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(26, end) forwards;
}

/* Animazione typing lettera per lettera */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.map-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 15px 0 0 0;
    animation: fadeIn 0.8s ease-out 3.2s both;
}

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

.bounce-icon {
    display: inline-block;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    animation: bounce 2s infinite;
    animation-delay: 3s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.map-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 1s ease 0.8s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.subtitle-icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Map Container - Design Moderno */
.garda-map-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    border-radius: 32px;
    padding: 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1;
}

.google-map {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
    filter: saturate(0.9) contrast(1.05);
}

/* Markers Overlay */
.markers-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

/* Custom Markers - Design Moderno Migliorato */
.custom-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
    transition: z-index 0s 0.3s;
}

.custom-marker:hover,
.custom-marker.active {
    z-index: 20;
    transition: z-index 0s;
}

.marker-icon {
    width: 56px;
    height: 56px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.marker-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-marker:hover .marker-icon::before {
    opacity: 1;
}

.custom-marker.restaurant .marker-icon {
    background: linear-gradient(135deg, #ff3366 0%, #ff5577 50%, #ff6b8a 100%);
}

.custom-marker.hotel .marker-icon {
    background: linear-gradient(135deg, #3498db 0%, #4aa3e0 50%, #5dade2 100%);
}

.marker-emoji {
    font-size: 26px;
    transform: rotate(45deg);
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.custom-marker:hover .marker-icon {
    transform: rotate(-45deg) scale(1.15) translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.35),
        0 0 0 4px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 51, 102, 0.4);
}

.custom-marker.hotel:hover .marker-icon {
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.35),
        0 0 0 4px rgba(255, 255, 255, 1),
        0 0 30px rgba(52, 152, 219, 0.4);
}

/* Marker Tooltip - Design Migliorato */
.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 51, 102, 0.3);
    letter-spacing: 0.3px;
}

.custom-marker.hotel .marker-tooltip {
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(52, 152, 219, 0.3);
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1a1a1a;
}

.custom-marker:hover .marker-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Popup attivazione su click marker */
.custom-marker.active .marker-icon {
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 0 0 5px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 51, 102, 0.6);
}

.custom-marker.hotel.active .marker-icon {
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 0 0 5px rgba(255, 255, 255, 1),
        0 0 40px rgba(52, 152, 219, 0.6);
}

/* Popup Cards - Design moderno e compatto */
.map-popup {
    position: absolute;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    backdrop-filter: blur(30px);
    border-radius: 16px;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(255, 51, 102, 0.2);
    border: 2px solid transparent;
    background-clip: padding-box;
    pointer-events: none;
    overflow: hidden;
}

.map-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(255, 51, 102, 0.3), rgba(255, 107, 138, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.map-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: scale(1);
}

.popup-header {
    position: relative;
    padding: 12px 14px 8px 14px;
    background: transparent;
    border-bottom: none;
}

.popup-title {
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
    padding-right: 35px;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 300;
    backdrop-filter: blur(10px);
}

.popup-close:hover {
    background: #ff3366;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.5);
}

.popup-body {
    padding: 0 14px 14px 14px;
}

.popup-image {
    width: calc(100% + 28px);
    height: 100px;
    object-fit: cover;
    border-radius: 0;
    margin: 0 -14px 10px -14px;
    display: block;
}

.popup-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.popup-category.restaurant {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b8a 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(255, 51, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.popup-category.hotel {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.popup-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b8a 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.72rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 20px rgba(255, 51, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(255, 51, 102, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.popup-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff3366;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.popup-link:hover {
    transform: translateX(4px);
    color: #ff5577;
}

/* =============================================================================
   AOS ANIMATION SUPPORT
   ============================================================================= */

[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

