/* ============================================
   VARIABILI CSS - Tema Cartomanzia
   ============================================ */
:root {
    --primary-color: #8B4CBF;
    --primary-dark: #6B2A9F;
    --primary-light: #B87DD9;
    --secondary-color: #D4A5F0;
    --accent-color: #FF6B9D;
    --accent-gold: #FFD700;
    --text-dark: #2D1B3D;
    --text-light: #6B5B7D;
    --bg-light: #F8F5FC;
    --bg-white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #8B4CBF 0%, #6B2A9F 50%, #B87DD9 100%);
    --gradient-hero: linear-gradient(135deg, #2D1B3D 0%, #8B4CBF 50%, #6B2A9F 100%);
    --shadow-sm: 0 2px 10px rgba(139, 76, 191, 0.1);
    --shadow-md: 0 5px 25px rgba(139, 76, 191, 0.15);
    --shadow-lg: 0 10px 40px rgba(139, 76, 191, 0.2);
}

/* ============================================
   RESET E BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Applica il font a tutti gli elementi di testo */
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th, label,
.btn, .form-control, input, textarea, select {
    font-family: 'Cormorant Garamond', serif;
}

/* ============================================
   HEADER E NAVIGAZIONE
   ============================================ */
.header-landing {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-landing.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.logo-landing {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-landing img {
    max-height: 50px;
    transition: transform 0.3s;
}

.logo-landing:hover img {
    transform: scale(1.05);
}

.nav-landing {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-landing a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-landing a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-landing a:hover {
    color: var(--primary-color);
}

.nav-landing a:hover::after {
    width: 100%;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    /* Sfondo: gradiente + immagine (puoi cambiare il percorso sotto) */
    background:
        linear-gradient(135deg, rgba(45, 27, 61, 0.85), rgba(107, 42, 159, 0.85)),
        url('/frontend/assets/img/hero-bg.jpg') center center no-repeat;
    background-size: cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 240, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 157, 0.15) 0%, transparent 50%);
    z-index: 1;
}

/* Rimosso effetto emoji gigante di sfondo per una hero più pulita */

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-content .lead {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}

.hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

/* Bottoni chiamata nel hero */
.hero-call-row {
    margin-top: 40px;
}

.hero-call-card {
    display: block;
    border-radius: 20px;
    padding: 24px 28px;
    text-align: left;
    text-decoration: none;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.hero-call-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.hero-call-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero-call-card p {
    margin-bottom: 12px;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 500;
}

.hero-call-number {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.hero-call-number i {
    font-size: 32px;
}

.hero-call-price {
    font-size: 16px;
    margin-top: 10px;
    opacity: 0.95;
    font-weight: 600;
}

.hero-call-card-899 {
    background: #008000;
}

.hero-call-card-06 {
    background: #ff7a3c;
}

.hero-call-card-ricarica {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-call-card-ricarica h3,
.hero-call-card-ricarica p {
    color: #ffffff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CARTOMANTI ONLINE SECTION
   ============================================ */
.cartomanti-section {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 30px auto 0;
}

/* Filtri Categorie Cartomanti */
.cartomanti-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(139, 76, 191, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

.cartomanti-filters-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cartomanti-filters-label {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.cartomanti-filters-slider {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}

.cartomanti-filters-slider::-webkit-scrollbar {
    height: 4px;
}

.cartomanti-filters-slider::-webkit-scrollbar-track {
    background: transparent;
}

.cartomanti-filters-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.cartomanti-filters-slider::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.cartomanti-filters-container {
    display: inline-flex;
    gap: 0.75rem;
    padding-right: 1rem;
}

.cartomanti-filter-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    flex-shrink: 0;
    cursor: pointer;
}

.cartomanti-filter-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 76, 191, 0.3);
}

.cartomanti-filter-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 76, 191, 0.3);
    font-weight: 600;
}

.cartomanti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .cartomanti-filters {
        padding: 1rem;
    }
    
    .cartomanti-filters-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cartomanti-filters-label {
        font-size: 0.95rem;
    }
    
    .cartomanti-filters-slider {
        width: 100%;
    }
    
    .cartomanti-filter-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .cartomanti-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cartomanti-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .cartomanti-grid {
        grid-template-columns: 1fr;
    }
}

.cartomante-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.cartomante-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.cartomante-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.cartomante-card:hover::before {
    transform: scaleX(1);
}

.cartomante-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    display: block;
}

.cartomante-card:hover .cartomante-avatar {
    transform: scale(1.1);
}

.cartomante-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cartomante-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 60px;
}

.btn-cartomante {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

/* Pulsante verde per "Chiamami Ora" (disponibile) */
.btn-cartomante.btn-disponibile {
    background: #00B894;
}

.btn-cartomante.btn-disponibile:hover {
    background: #00A085;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Pulsante rosso per "Occupata" */
.btn-cartomante.btn-occupata {
    background: #E74C3C;
    opacity: 0.9;
}

.btn-cartomante:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-cartomante:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   SERVIZI SECTION
   ============================================ */
.servizi-section {
    padding: 100px 0;
    background: white;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 2px solid transparent;
    position: relative; /* per link cliccabile su tutta la card */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-md);
    background: #000;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* ============================================
   PERCHÉ SCEGLIERE NOI
   ============================================ */
.why-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.why-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   TESTIMONIANZE
   ============================================ */
.testimonianze-section {
    padding: 100px 0;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonianze-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 165, 240, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 157, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.testimonianze-section .container {
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    font-size: 16px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-control {
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    padding: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 76, 191, 0.15);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-cartomanti {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.8),
            0 0 16px rgba(255, 255, 255, 0.6),
            0 0 24px rgba(255, 255, 255, 0.4),
            0 0 32px rgba(255, 255, 255, 0.3),
            0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .hero-content .lead {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .nav-landing {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
}

/* Footer hover effects */
.footer a.hover-white:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

