/* Contatti hero animations */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: subtle-zoom 30s infinite alternate ease-in-out;
    filter: brightness(0.9) contrast(1.1);
    opacity: 0.2;
}

@keyframes subtle-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.header-wave {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.header-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 46px;
}

.header-wave .shape-fill { fill: #FFFFFF; }

.blur-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.blur-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

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

.blur-text:after {
    content: "";
    position: absolute;
    bottom: -8px; left: 0;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out;
    animation: lineSlide 1s ease-out 0.7s forwards;
}

@keyframes lineSlide {
    to { transform: scaleX(1); }
}

.contact-float {
    position: absolute;
    right: 5%;
    bottom: 46px;
    width: 140px; height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    animation: pulse 3s ease-in-out infinite;
    display: none;
    z-index: 10;
}

.contact-float svg { width: 70px; height: 70px; color: white; }

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

@media (min-width: 1024px) {
    .contact-float { display: flex; }
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 300px; height: 300px; animation: orbit-spin 20s linear infinite; }
.orbit-2 { width: 400px; height: 400px; animation: orbit-spin 30s linear infinite reverse; }

.orbit-dot {
    position: absolute;
    width: 10px; height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4);
}

.orbit-1 .orbit-dot:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-1 .orbit-dot:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.orbit-1 .orbit-dot:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit-1 .orbit-dot:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

.orbit-2 .orbit-dot:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-2 .orbit-dot:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.orbit-2 .orbit-dot:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit-2 .orbit-dot:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

@keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
