/* ═══════════════════════════════════════════════════════
   TataFrancesca.it — Design System Rebrand
   Palette: rosa #f16888 · viola #613390 · verde #62c3b6
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
    --pink:       #f16888;
    --pink-dark:  #d94f72;
    --violet:     #613390;
    --violet-dark:#4a1f73;
    --green:      #62c3b6;
    --green-dark: #45a89b;
    --bg:         #ffffff;
    --bg-soft:    #faf5ff;
    --bg-alt:     #fff0f5;
    --border:     #ede9f6;
    --border-pink: rgba(241,104,136,0.25);
    --text:       #1a1a2e;
    --muted:      #6b7280;
    --shadow-sm:  0 2px 8px rgba(97,51,144,0.06);
    --shadow-md:  0 8px 32px rgba(97,51,144,0.1);
    --shadow-lg:  0 20px 48px rgba(97,51,144,0.15);
}

/* ── Reset / Base ── */
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ── Btn primary: gradient pink → viola ── */
.btn-primary {
    background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(241,104,136,0.35) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease !important;
}
.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 22px rgba(97,51,144,0.42) !important;
    background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%) !important;
}
.btn-primary:active {
    transform: translateY(0) !important;
}

/* ── Line clamp ── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Animazioni keyframes ── */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-18px) rotate(2deg); }
    66%       { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-24px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes pulse-brand {
    0%, 100% { box-shadow: 0 0 0 0 rgba(241,104,136,0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(241,104,136,0); }
}

.animate-fade-in-up { animation: fadeInUp 0.7s ease both; }
.animate-fade-in    { animation: fadeIn 0.5s ease both; }
.animate-float      { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 8s ease-in-out infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ── Hero ── */
.hero-bg {
    background: linear-gradient(145deg, #1a0a2e 0%, #2d1254 40%, #613390 70%, #f16888 100%);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 64px);
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(241,104,136,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(98,195,182,0.18) 0%, transparent 50%);
    pointer-events: none;
}

/* Orb decorativi */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.38;
    pointer-events: none;
}

/* Glassmorphism search box */
.glass-search {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.1);
}

/* ── Hero pills ── */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.hero-pill:hover {
    background: rgba(255,255,255,0.8);
    border-color: rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* ── Cards professionisti ── */
.prof-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, border-color 0.25s ease;
    display: block;
    text-decoration: none;
    position: relative;
}
.prof-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-pink);
}
.prof-card .card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #faf5ff, #ede9f6);
}
.prof-card .card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.prof-card:hover .card-img img {
    transform: scale(1.07);
}
.prof-card .card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,10,46,0.62) 0%, transparent 55%);
    pointer-events: none;
}
.prof-card .card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 14px 10px;
    color: #fff;
    z-index: 1;
}
.prof-card .card-body-inner {
    padding: 14px 16px 16px;
}
.prof-card .dist-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(26,10,46,0.72);
    color: #e9d5ff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--violet);
}

/* ── Category cards ── */
.cat-card {
    border-radius: 20px;
    border: 2px solid transparent;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
    pointer-events: none;
}
.cat-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 40px rgba(97,51,144,0.15);
}
.cat-card .cat-emoji {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: transform 0.25s ease;
}
.cat-card:hover .cat-emoji {
    transform: scale(1.15) translateY(-4px);
}
.cat-card .cat-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

/* ── Steps "Come funziona" ── */
.step-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(97,51,144,0.12);
}
.step-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.step-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

/* ── Trust strip ── */
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ── Wavy divider ── */
.wave-divider svg {
    display: block;
    margin-bottom: -2px;
}

/* ── Search bar sticky ── */
.search-sticky {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* ── Input/Select focus ── */
.input:focus, .textarea:focus, .select:focus {
    border-color: var(--pink) !important;
    box-shadow: 0 0 0 3px rgba(241,104,136,0.15) !important;
    outline: none !important;
}

/* ── Autocomplete ── */
#city-suggestions .suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}
#city-suggestions .suggestion-item:hover,
#city-suggestions .suggestion-item.active {
    background: var(--bg-soft);
    color: var(--violet);
}
#city-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

/* ── Map ── */
#map-mini, #prof-map, #full-map { z-index: 1; }

/* ── Bottom nav ── */
@media (max-width: 768px) {
    body { padding-bottom: 64px; }
}

/* ── Badge DaisyUI override ── */
.badge-neutral {
    background: rgba(97,51,144,0.85) !important;
    color: #fff !important;
    border: none !important;
}
.badge-ghost {
    background: var(--bg-soft) !important;
    color: var(--violet) !important;
    border-color: var(--border) !important;
}

/* ── CTA sezione ── */
.cta-section {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1254 50%, #613390 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241,104,136,0.35) 0%, transparent 70%);
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(98,195,182,0.25) 0%, transparent 70%);
}

/* ── Stat card ── */
.stat-card {
    text-align: center;
    padding: 20px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Section tag ── */
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(241,104,136,0.1), rgba(97,51,144,0.1));
    color: var(--violet);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
    border: 1px solid rgba(97,51,144,0.2);
}

/* ── Pagination ── */
.btn-ghost:hover {
    background-color: var(--bg-soft) !important;
    color: var(--violet) !important;
}

/* ── Review card ── */
.review-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

/* ── Profilo sidebar ── */
.contact-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* ── Active link / nav highlight ── */
a.active, .nav-active {
    color: var(--green) !important;
}
