/* Homepage Custom CSS for CodiceDivino */

:root {
    --primary: #6a1b9a;           /* Viola primario */
    --primary-dark: #4a148c;      /* Viola scuro */
    --primary-light: #9c4dcc;     /* Viola chiaro */
    --secondary: #8e0000;         /* Rosso vino */
    --accent: #d4af37;            /* Oro/Giallo */
    --light: #f8f9fa;             /* Sfondo chiaro */
    --dark: #212529;              /* Testo scuro */
    --gray: #6c757d;              /* Grigio */
}

/* Classi di utilità per i colori personalizzati */
.bg-primary-custom {
    background-color: var(--primary) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline-primary-custom {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary-custom:hover,
.btn-outline-primary-custom:focus {
    background-color: var(--primary);
    color: white;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
    font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: #c09b2d;
    border-color: #c09b2d;
    color: var(--dark);
}

/* Navbar personalizzata */
.navbar-custom {
    transition: all 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-custom.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-custom.scrolled .nav-link {
    color: var(--dark) !important;
}

.navbar-custom.scrolled .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-custom .navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-custom .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--accent) !important;
}

.navbar-custom .btn-nav {
    padding: 0.5rem 1.5rem;
    margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/hero-pattern.png');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.floating-badge {
    position: absolute;
    background-color: white;
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    bottom: 15%;
    left: 5%;
    animation-delay: 0.5s;
}

.floating-badge.badge-3 {
    bottom: 30%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Badge EU e Italia */
.badge-eu, .badge-italy {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-eu {
    background-color: #003399;
    color: white;
}

.badge-italy {
    background-color: #008C45;
    color: white;
}

/* Section Title */
.section-title {
    margin-bottom: 2rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.text-start .section-title::after {
    margin-left: 0;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Testimonial Cards */
.testimonial-card {
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 5rem;
    color: rgba(106, 27, 154, 0.1);
    line-height: 1;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .navbar-custom .btn-nav {
        margin-left: 0;
        margin-top: 0.5rem;
        display: block;
    }
    
    .floating-badge {
        display: none;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .floating-badge {
        display: none;
    }
}

/* Animazioni */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Stili per il footer */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent) !important;
    text-decoration: none;
}

/* Stili per la sezione prezzi */
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

/* Stili per la sezione come funziona */
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step-line {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

/* Stili per la sezione CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Stili per le immagini */
.img-hover {
    transition: all 0.3s ease;
}

.img-hover:hover {
    transform: scale(1.05);
}

/* Stili per i bottoni */
.btn {
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-rounded {
    border-radius: 50px;
}

/* Stili per il video demo */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-container::after {
    content: '';
    display: block;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
