/**
 * AR Edilizia - Hero Component
 * Full-screen modern hero with professional accents.
 */

/* ========================================
   HERO SECTION BASE
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.92), rgba(11, 18, 33, 1));
    color: #f8fafc;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-container {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(2rem, 5vw, 4rem);
    width: 100%;
    align-items: center;
}

@media (max-width: 1023px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 639px) {
    .hero-container {
        padding: 3.5rem 1.5rem 3rem;
    }
}

/* ========================================
   HERO BACKGROUND MEDIA
   ======================================== */

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-background img,
.hero-background video,
.hero-background-image,
.hero-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-background-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0b1221;
    z-index: 1;
}

.hero-background-image {
    opacity: 0.35;
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(15, 23, 42, 0.88) 15%, rgba(11, 18, 33, 0.6) 65%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
}

.hero-background-pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 64px 64px;
    backdrop-filter: blur(0.5px);
}

/* ========================================
   HERO MAIN COLUMN
   ======================================== */

.hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 640px;
}

.hero-main.hero-main-center {
    align-items: center;
    text-align: center;
}

.hero-main.hero-main-center .hero-cta {
    justify-content: center;
}

.hero-main.hero-main-center .cta-buttons {
    align-items: center;
}

.hero-main.hero-main-right {
    align-items: flex-end;
    text-align: right;
}

.hero-main.hero-main-right .hero-cta {
    justify-content: flex-end;
}

.hero-main.hero-main-right .cta-buttons {
    align-items: flex-end;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(241, 245, 249, 0.8);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #fbbf24;
}

.hero-logo-block {
    display: flex;
    align-items: flex-start;
}

.hero-logo {
    width: clamp(180px, 25vw, 240px);
    margin: 0;
    filter: drop-shadow(0 18px 40px rgba(8, 15, 26, 0.35));
}

.hero-content-block {
    width: 100%;
}

.hero-content {
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
}

.hero-cta {
    justify-content: flex-start;
}

.hero-cta-block {
    display: flex;
    width: 100%;
}

.hero-contact-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.7);
}

.hero-contact-label {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.hero-contact-link {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: none;
}

.hero-contact-link:hover {
    color: #fde68a;
}

/* ========================================
   HERO ASIDE COLUMN
   ======================================== */

.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: stretch;
}

.hero-aside-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    box-shadow: 0 30px 60px rgba(8, 15, 26, 0.4);
}

.hero-aside-card h3,
.hero-aside-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #f8fafc;
}

.hero-aside-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.65rem;
}

.hero-aside-card ul li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.78);
}

.hero-aside-card ul li span {
    display: inline-flex;
    min-width: 44px;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(248, 191, 48, 0.15);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.85rem;
}

.hero-aside-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(248, 191, 48, 0), rgba(248, 191, 48, 0.4), rgba(248, 191, 48, 0));
    margin: 1.5rem 0;
}

.hero-aside-note {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.72);
}

.hero-aside-card.muted {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.hero-aside-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-aside-tags span {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(241, 245, 249, 0.85);
}

@media (max-width: 1023px) {
    .hero-aside-card {
        background: rgba(15, 23, 42, 0.75);
    }
}

@media (max-width: 639px) {
    .hero-aside {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-aside-card {
        border-radius: 20px;
    }
}

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

.hero-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.7s ease forwards;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SCROLL INDICATOR TWEAKS
   ======================================== */

.hero-scroll-indicator {
    z-index: 30;
}

.hero-section .scroll-wrapper {
    opacity: 0.7;
}

.hero-section .scroll-wrapper:hover {
    opacity: 1;
}

/* ========================================
   UTILITY
   ======================================== */

.hero-section:has(.hero-background img),
.hero-section:has(.hero-background video) {
    background: transparent !important;
}

.hero-section.has-admin-media {
    background: transparent !important;
}
