/* Homepage Elegant Layout - Layout 2: Elegante Classico */

:root {
    --primary-color: #324a6d;
    --accent-color: #D4AF37; /* Oro */
    --text-color: #ffffff;
    --light-bg: rgba(255, 255, 255, 0.05);
}

.homepage-elegant {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    color: #ffffff !important;
    background-color: #324a6d !important;
}

.homepage-elegant h1,
.homepage-elegant h2,
.homepage-elegant h3,
.homepage-elegant h4,
.homepage-elegant h5 {
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero-elegant {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    padding-top: 80px;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(50, 74, 109, 0.4) 0%, rgba(50, 74, 109, 0.3) 50%, rgba(9, 16, 68, 0.45) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-elegant .container,
.hero-elegant .row,
.hero-content-elegant,
.hero-title-elegant,
.hero-subtitle-elegant,
.hero-elegant .btn,
.hero-elegant .divider-elegant {
    position: relative;
    z-index: 2;
}

/* Pseudo-elementi rimossi per permettere al video di essere il background principale */

.hero-content-elegant {
    text-align: center;
    color: #ffffff !important;
    z-index: 2;
    position: relative;
    padding: 4rem 1rem;
    width: 100%;
}

.hero-content-elegant * {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title-elegant {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInDown 1s ease;
    color: #ffffff !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
    letter-spacing: -0.5px;
}

.hero-subtitle-elegant {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 1;
    animation: fadeInUp 1s ease 0.3s both;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.divider-elegant {
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    margin: 2rem auto;
    animation: expandWidth 1s ease 0.6s both;
}

.btn-elegant {
    background: var(--accent-color);
    color: #324a6d !important;
    padding: 1rem 3rem;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.9s both;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-shadow: none;
}

.btn-elegant:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #324a6d !important;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* Services Section */
.services-elegant {
    padding: 6rem 0;
    background: #324a6d !important;
}

.section-title-elegant {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff !important;
    position: relative;
    padding-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.section-title-elegant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 4rem;
    font-style: italic;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card-elegant {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.4) !important;
    transition: all 0.4s ease;
    position: relative;
    margin-bottom: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.service-card-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-elegant:hover::before {
    transform: scaleX(1);
}

.service-card-elegant:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.7) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-8px);
}

.service-icon-elegant {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.service-card-elegant:hover .service-icon-elegant {
    transform: scale(1.1);
}

.service-card-elegant h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card-elegant p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features-elegant {
    padding: 6rem 0;
    background: linear-gradient(180deg, #324a6d 0%, rgba(50, 74, 109, 0.95) 100%) !important;
    position: relative;
}

.features-elegant .row {
    display: flex;
    flex-wrap: wrap;
}

.features-elegant .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.features-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.feature-box {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-color) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-left-width: 8px;
    border-left-color: var(--accent-color) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.2);
    transform: translateX(8px);
}

.feature-box h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-box h4 i {
    margin-right: 0.75rem;
    color: var(--accent-color) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-box p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex: 1;
}

/* CTA Section */
.cta-elegant {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.08) 100%) !important;
    color: white !important;
    text-align: center;
    position: relative;
    border-top: 2px solid rgba(212, 175, 55, 0.4);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    overflow: hidden;
}

.cta-elegant::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: #324a6d !important;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: rotate(180deg);
}

.cta-title-elegant {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.btn-cta-elegant {
    background: var(--accent-color);
    color: #324a6d !important;
    padding: 1rem 3rem;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.btn-cta-elegant:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #324a6d !important;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title-elegant {
        font-size: 3rem;
    }

    .hero-subtitle-elegant {
        font-size: 1.3rem;
    }

    .section-title-elegant {
        font-size: 2.5rem;
    }

    .service-card-elegant {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-elegant {
        min-height: calc(100vh - 70px); /* Altezza viewport meno navbar */
        padding-top: 90px !important; /* Spazio per navbar sticky */
        padding-bottom: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content-elegant {
        padding: 2rem 0 !important;
        width: 100%;
    }

    .hero-title-elegant {
        font-size: 2.5rem !important;
        color: #ffffff !important;
        text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
    }

    .hero-subtitle-elegant {
        font-size: 1.2rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        opacity: 1 !important;
    }

    .divider-elegant {
        background: var(--accent-color) !important;
    }

    .btn-elegant {
        color: #324a6d !important;
        background: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

    .section-title-elegant {
        font-size: 2.25rem;
    }

    .cta-title-elegant {
        font-size: 2rem;
    }

    .services-elegant,
    .features-elegant,
    .cta-elegant {
        padding: 4rem 0;
    }

    .service-card-elegant {
        padding: 2rem 1.5rem;
    }

    .feature-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-elegant {
        min-height: calc(100vh - 65px); /* Altezza viewport meno navbar */
        padding-top: 85px !important; /* Spazio per navbar sticky più piccolo */
        padding-bottom: 2.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-content-elegant {
        padding: 1.5rem 0 !important;
        width: 100%;
    }

    .hero-title-elegant {
        font-size: 2rem !important;
        color: #ffffff !important;
        text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
        margin-bottom: 1rem !important;
    }

    .hero-subtitle-elegant {
        font-size: 1.1rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        margin-bottom: 2rem !important;
        opacity: 1 !important;
    }

    .divider-elegant {
        background: var(--accent-color) !important;
        margin: 1.5rem auto !important;
    }

    .btn-elegant {
        color: #324a6d !important;
        background: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
        padding: 0.875rem 2rem !important;
        font-size: 0.85rem !important;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

    .section-title-elegant {
        font-size: 1.75rem;
    }

    .cta-title-elegant {
        font-size: 1.75rem;
    }

    .btn-cta-elegant {
        padding: 0.875rem 2rem;
        font-size: 0.85rem;
    }

    .services-elegant,
    .features-elegant,
    .cta-elegant {
        padding: 3rem 0;
    }

    .service-card-elegant {
        padding: 1.5rem 1rem;
    }

    .feature-box {
        padding: 1.5rem 1rem;
        height: 100%;
    }
}

/* Dark Theme Support */
[data-theme="material-dark"] .hero-elegant,
[data-theme="dark"] .hero-elegant {
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)), 
                linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="material-dark"] .services-elegant,
[data-theme="dark"] .services-elegant {
    background: var(--rz-base-background-color, #1a1a2e);
}

[data-theme="material-dark"] .section-title-elegant,
[data-theme="dark"] .section-title-elegant {
    color: var(--rz-text-color, #ffffff);
}

[data-theme="material-dark"] .service-card-elegant,
[data-theme="dark"] .service-card-elegant {
    background: var(--rz-surface, #2d2d2d);
    border-color: var(--rz-border-color);
}

[data-theme="material-dark"] .service-card-elegant h3,
[data-theme="dark"] .service-card-elegant h3 {
    color: var(--rz-text-color, #ffffff);
}

[data-theme="material-dark"] .service-card-elegant p,
[data-theme="dark"] .service-card-elegant p {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="material-dark"] .features-elegant,
[data-theme="dark"] .features-elegant {
    background: var(--rz-base-200, #2d2d2d);
}

[data-theme="material-dark"] .feature-box,
[data-theme="dark"] .feature-box {
    background: var(--rz-surface, #1a1a2e);
    border-left-color: var(--accent-color);
}

[data-theme="material-dark"] .feature-box h4,
[data-theme="dark"] .feature-box h4 {
    color: var(--rz-text-color, #ffffff);
}

[data-theme="material-dark"] .feature-box p,
[data-theme="dark"] .feature-box p {
    color: rgba(255, 255, 255, 0.8);
}

