/* ============================================================
   cover.css — Stili hero section
   Sito: Lavanderia L'ApeGreen
   Percorso: lavanderialapegreen/css/cover.css
   ============================================================ */

@import url('style.css');

/* ------------------------------------------------------------
   HERO — contenitore principale
   ------------------------------------------------------------ */
#hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 84px);
    min-height: 520px;
    max-height: 800px;
    overflow: hidden;
}

/* ------------------------------------------------------------
   SLIDES
   ------------------------------------------------------------ */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay scuro per leggibilità testo */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.58) 35%,
        rgba(0, 0, 0, 0.18) 100%
    );
}

/* ------------------------------------------------------------
   CONTENUTO — testo sovrapposto
   ------------------------------------------------------------ */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-xl);
}

.hero-text {
    max-width: 600px;
    color: #FFFFFF;
}

/* Eyebrow */
.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

/* Titolo principale */
.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: var(--spacing-md);
}

/* Sottotitolo */
.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-lg);
    max-width: 480px;
}

/* Pulsante */
.hero-btn {
    display: inline-block;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: var(--border-radius-btn);
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.hero-btn:hover {
    background-color: var(--btn-bg-hover);
    transform: translateY(-1px);
}

.hero-btn:active {
    background-color: var(--btn-bg-active);
    transform: translateY(0);
}

/* ------------------------------------------------------------
   PALLINI NAVIGAZIONE
   ------------------------------------------------------------ */
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
    background: #FFFFFF;
    transform: scale(1.25);
}

/* ------------------------------------------------------------
   RESPONSIVE — TABLET
   ------------------------------------------------------------ */
@media (max-width: 991px) {
    #hero {
        max-height: 650px;
    }

    .hero-content {
        padding: 0 var(--spacing-lg);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
}

/* ------------------------------------------------------------
   RESPONSIVE — MOBILE
   ------------------------------------------------------------ */
@media (max-width: 575px) {
    #hero {
        height: calc(85vh - 68px);
        max-height: 600px;
    }

    .hero-content {
        padding: 0 var(--spacing-md);
        align-items: flex-end;
        padding-bottom: 4rem;
    }

    .hero-slide::after {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.7) 40%,
            rgba(0, 0, 0, 0.2) 100%
        );
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
        padding: 13px 20px;
    }
}

/* ------------------------------------------------------------
   ANIMAZIONE TITOLO — lettera per lettera, da bianco a magenta logo
   ------------------------------------------------------------ */
.hero-letter {
    display: inline-block;
    color: #FFFFFF;
    animation: hero-letter-light 0.5s ease forwards;
    animation-fill-mode: both;
}

@keyframes hero-letter-light {
    from { color: #FFFFFF; }
    to   { color: #F623EF; }
}

/* ------------------------------------------------------------
   ANIMAZIONE SOTTOTITOLO — parola per parola, effetto ingrandimento
   ------------------------------------------------------------ */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: scale(0.4);
    animation: hero-word-grow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes hero-word-grow {
    from {
        opacity: 0;
        transform: scale(0.4);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ------------------------------------------------------------
   ANIMAZIONI DI INGRESSO TESTO HERO
   Attivate da scripts.js (classe .visible aggiunta al load)
   ------------------------------------------------------------ */
.cover-anim {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cover-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.cover-delay-1.visible { transition-delay: 0.1s; }
.cover-delay-2.visible { transition-delay: 0.25s; }
.cover-delay-3.visible { transition-delay: 0.4s; }
.cover-delay-4.visible { transition-delay: 0.55s; }