/* ===================================
   style-home.css — Hero & Search Bar
   =================================== */

/* ── Hero ── */
.hero {
    padding: 120px 24px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Cerchi decorativi sfumati */
.hero::before {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,.06) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-overlay { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

/* Eyebrow pill */
.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    background: rgba(16,185,129,.08);
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid rgba(16,185,129,.18);
}

/* Titolo hero */
.hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 44px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.25,.46,.45,.94),
                transform .7s cubic-bezier(.25,.46,.45,.94);
}
.hero-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ── Search Bar ── */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--color-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--color-border);
    border-radius: 100px;
    padding: 6px 6px 6px 28px;
    box-shadow: 0 8px 48px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.05);
    max-width: 820px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.25,.46,.45,.94) .15s,
                transform .7s cubic-bezier(.25,.46,.45,.94) .15s,
                border-color .2s, box-shadow .2s;
}
.search-bar.animate {
    opacity: 1;
    transform: translateY(0);
}
.search-bar:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 8px 48px rgba(0,0,0,.1), 0 0 0 3px rgba(16,185,129,.1);
}

.search-field {
    flex: 1;
    min-width: 0;
    position: relative;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-primary);
    background: transparent;
    padding: 16px 16px;
    font-family: 'Inter', sans-serif;
    display: block;
}
.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-separator {
    width: 1px;
    height: 36px;
    background: var(--color-border);
    flex-shrink: 0;
}

.search-button {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-button i { font-size: 14px; }
.search-button:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 20px rgba(16,185,129,.4);
}

/* ── Autocomplete dropdown hero ── */
.hero-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
    z-index: 200;
    overflow: hidden;
}
.hero-search-dd-item {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background .14s;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid var(--color-border);
}
.hero-search-dd-item:last-child { border-bottom: none; }
.hero-search-dd-item:hover {
    background: rgba(16,185,129,.07);
    color: var(--color-accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 90px 20px 64px; }
    .hero-title { margin-bottom: 32px; }
    .search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 8px;
        gap: 2px;
        align-items: stretch;
        box-shadow: 0 4px 24px rgba(0,0,0,.1);
    }
    .search-field { width: 100%; }
    .search-input { padding: 14px 16px; }
    .search-separator { width: 100%; height: 1px; margin: 0 8px; width: calc(100% - 16px); }
    .search-button { border-radius: 14px; padding: 14px 20px; justify-content: center; }
}
@media (max-width: 480px) {
    .hero { padding: 72px 16px 48px; }
    .hero-eyebrow { font-size: 11px; padding: 6px 12px; }
}
