/**
 * Homepage Styles - Fabio Trovato Osteopata
 * Stili specifici per homepage - palette teal-blu
 */

/* === HERO SECTION === */
.hero-section {
    background: var(--ft-gradient-hero);
    min-height: 65vh;
    position: relative;
    overflow: hidden;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section .lead {
    color: #ffffff !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.04)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper img {
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
    border: 4px solid rgba(255,255,255,0.15);
}

.hero-image-wrapper img:hover {
    transform: scale(1.02);
}

/* === HERO CAROUSEL === */
.hero-carousel-wrapper {
    position: relative;
}

.hero-carousel-wrapper .carousel {
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.15);
    border-radius: var(--ft-radius-lg);
}

.hero-carousel-wrapper .carousel-inner img {
    transition: transform 0.6s ease;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    white-space: nowrap;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    border: none;
    margin: 0 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#heroCarousel .carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.3);
}

/* === SERVICE CARDS === */
.services-section {
    background: var(--ft-bg-warm) !important;
}

.services-section .card {
    background: white !important;
    border: 1px solid rgba(27, 107, 147, 0.08);
    border-radius: var(--ft-radius-lg);
}

.services-section .card p,
.services-section .card li {
    color: var(--ft-text-secondary) !important;
    font-weight: 400;
}

.services-section .card h3 {
    color: var(--ft-primary) !important;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--ft-gradient-primary);
    margin: 0 auto;
    box-shadow: 0 6px 16px rgba(14, 77, 110, 0.25);
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 8px 20px rgba(14, 77, 110, 0.35);
}

.service-features-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--ft-text-secondary) !important;
}

.service-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ft-success);
    font-weight: bold;
}

/* === PROCESS STEPS === */
.how-it-works-section {
    background: var(--ft-bg-light) !important;
}

.how-it-works-section p {
    color: var(--ft-text-secondary) !important;
}

.step-number {
    background: var(--ft-gradient-primary);
    box-shadow: 0 6px 16px rgba(14, 77, 110, 0.25);
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 77, 110, 0.35);
}

/* Connector line between steps */
@media (min-width: 992px) {
    .process-step {
        position: relative;
    }
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        right: -15%;
        width: 30%;
        height: 2px;
        background: linear-gradient(90deg, var(--ft-primary-light), transparent);
        opacity: 0.4;
    }
}

/* === TESTIMONIALS === */
.testimonial-stars {
    color: #FFC107;
}

/* === CTA SECTION === */
.cta-section {
    background: var(--ft-gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section .lead {
    color: #ffffff !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section .btn-light {
    background: #ffffff;
    color: var(--ft-primary-dark);
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-section .btn-light:hover {
    background: var(--ft-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        width: 60px !important;
        height: 60px !important;
    }
}

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-section img {
    animation: float 4s ease-in-out infinite;
}
