/* ============================================
   HERO SECTION STYLES
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
    gap: 15px;
    padding: clamp(1.25rem, 3vh, 2rem) clamp(0.75rem, 2vw, 1rem) clamp(4rem, 8vh, 6.25rem) clamp(0.75rem, 2vw, 1rem);
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* ============================================
   LOGO E TESTO - APPROCCIO SEMPLICE
   ============================================ */

/* Logo - Grande e diretto */
.hero-logo {
    position: relative;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    width: min(90vw, 100%);
    max-width: min(112.5rem, 100%);
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Testo Hero - Responsive e leggibile */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px 80px 20px;
}

/* Desktop Layout - Logo a sinistra, Titolo a destra */
@media (min-width: 992px) {
    .hero-section {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 60px;
        padding: clamp(3rem, 5vh, 4.5rem);
    }

    .hero-logo {
        width: 45%;
        max-width: 600px;
        flex-shrink: 0;
    }

    .hero-logo img {
        width: 100%;
        max-width: 600px;
    }

    .hero-content {
        width: 55%;
        max-width: 700px;
        text-align: left;
        padding: 0;
    }

    .tap-animation {
        text-align: left;
    }

    .sustainability-badge {
        margin: 0;
    }
}

.hero-slogan {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Forza struttura a 3 righe */
.hero-line-1,
.hero-line-2,
.hero-line-3 {
    display: block;
}

/* Nowrap solo su desktop */
@media (min-width: 768px) {
    .hero-line-1,
    .hero-line-2,
    .hero-line-3 {
        white-space: nowrap;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 25px 0;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* TAP Animation */
.tap-animation {
    margin: 20px 0;
}

.tap-slogan {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
}

.tap-text {
    color: var(--color-orange);
    animation: tapPulse 2s ease-in-out infinite;
    display: inline-block;
}

.top-text {
    color: var(--color-white);
    display: inline-block;
}

/* Phone Tap Icon Animation - REMOVED */
/* .phone-tap-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.phone-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 12px rgba(255, 102, 0, 0.5));
    animation: phoneTap 3s ease-in-out infinite;
} */

/* Sustainability Badge */
.sustainability-badge {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    padding: clamp(var(--spacing-sm), 2vh, var(--spacing-md)) clamp(var(--spacing-md), 3vw, var(--spacing-lg));
    border-radius: var(--border-radius-lg);
    max-width: min(800px, 90vw);
    margin: 0 auto clamp(4rem, 8vh, 6rem) auto;
    display: flex;
    align-items: center;
    gap: clamp(var(--spacing-xs), 2vw, var(--spacing-md));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.badge-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    flex-shrink: 0;
    animation: growPulse 3s ease-in-out infinite;
}

.badge-text {
    flex-grow: 1;
    text-align: left;
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    line-height: 1.5;
}

.badge-text strong {
    color: var(--color-orange);
    font-weight: 700;
}

/* Growing Filaments Animation Background */
.growing-filaments {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, var(--color-orange) 2px, transparent 2px),
        linear-gradient(0deg, var(--color-orange) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 100%;
    animation: filamentsGrow 4s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: clamp(1.5rem, 3vh, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
}

.scroll-indicator span {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: rotate(45deg);
    margin: 0 auto;
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */

@keyframes tapPulse {
    0%, 100% {
        transform: scale(1);
        color: var(--color-orange);
    }
    50% {
        transform: scale(1.05);
        color: #FF8833;
        text-shadow: 0 0 30px rgba(255, 102, 0, 0.6);
    }
}

/* Phone Tap Animation - REMOVED */
/* @keyframes phoneTap {
    0%, 100% {
        transform: translate(80px, -20px) rotate(0deg);
        opacity: 0;
    }
    30% {
        transform: translate(40px, -10px) rotate(-10deg);
        opacity: 1;
    }
    60% {
        transform: translate(0, 0) rotate(-15deg);
        opacity: 1;
    }
    70% {
        transform: translate(0, 5px) rotate(-15deg);
        opacity: 0.8;
    }
    80%, 100% {
        transform: translate(0, 10px) rotate(-15deg);
        opacity: 0;
    }
} */

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

@keyframes filamentsGrow {
    0% {
        background-position: 0 100%;
        opacity: 0.05;
    }
    50% {
        background-position: 0 0;
        opacity: 0.15;
    }
    100% {
        background-position: 0 100%;
        opacity: 0.05;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}
