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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─────────────────────────────────────────────
   1. TOKENS
   ───────────────────────────────────────────── */
:root {
    /* Brand */
    --pink:        #f16888;
    --pink-600:    #e04f73;
    --pink-700:    #c93c60;
    --violet:      #613390;
    --violet-600:  #52267e;
    --violet-700:  #3f1b64;
    --violet-900:  #1c0b31;
    --teal:        #62c3b6;
    --teal-600:    #45a89b;
    --gold:        #e8a838;

    /* Neutrali tinti di viola (mai grigio puro) */
    --ink:         #16091f;
    --ink-2:       #3a2c47;
    --ink-3:       #6b5c7a;
    --muted:       #8b7f98;
    --line:        #ece7f3;
    --line-2:      #f5f2fa;
    --surface:     #ffffff;
    --surface-2:   #fbf9fe;
    --surface-3:   #f6f2fc;
    --cream:       #fffaf7;

    /* Compat con vecchie variabili */
    --pink-dark:   var(--pink-600);
    --violet-dark: var(--violet-600);
    --green:       var(--teal);
    --green-dark:  var(--teal-600);
    --text:        var(--ink);
    --bg:          var(--surface);
    --bg-soft:     var(--surface-2);
    --bg-alt:      #fff5f8;
    --border:      var(--line);
    --border-pink: rgba(241,104,136,.28);

    /* Gradienti */
    --grad-brand:  linear-gradient(120deg, #f16888 0%, #d2519a 45%, #613390 100%);
    --grad-brand-r:linear-gradient(120deg, #613390 0%, #d2519a 55%, #f16888 100%);
    --grad-ink:    linear-gradient(150deg, #1c0b31 0%, #2e1350 45%, #4a2277 100%);
    --grad-soft:   linear-gradient(140deg, #fff5f8 0%, #f8f2ff 50%, #f0fbf9 100%);

    /* Ombre (tinte viola, mai nero puro) */
    --sh-xs: 0 1px 2px rgba(28,11,49,.05);
    --sh-sm: 0 2px 6px rgba(28,11,49,.05), 0 1px 2px rgba(28,11,49,.04);
    --sh-md: 0 8px 24px -6px rgba(28,11,49,.10), 0 2px 6px rgba(28,11,49,.05);
    --sh-lg: 0 24px 48px -14px rgba(28,11,49,.18), 0 6px 14px rgba(28,11,49,.06);
    --sh-xl: 0 40px 80px -24px rgba(28,11,49,.28), 0 10px 24px rgba(28,11,49,.08);
    --sh-pink: 0 10px 28px -8px rgba(241,104,136,.55);
    --sh-violet: 0 10px 28px -8px rgba(97,51,144,.45);

    /* Compat */
    --shadow-sm: var(--sh-sm);
    --shadow-md: var(--sh-md);
    --shadow-lg: var(--sh-lg);

    /* Raggi */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-2xl: 36px;
    --r-full: 999px;

    /* Motion */
    --ease: cubic-bezier(.22,1,.36,1);
    --ease-spring: cubic-bezier(.34,1.4,.5,1);
    --t-fast: .18s var(--ease);
    --t: .32s var(--ease);
    --t-slow: .6s var(--ease);

    /* Layout */
    --nav-h: 72px;
}

/* ─────────────────────────────────────────────
   2. BASE
   ───────────────────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--surface);
    color: var(--ink);
    font-feature-settings: 'ss01','cv01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
}

/* Selettori a doppio elemento: devono battere il preflight di Tailwind,
   iniettato dopo questo foglio, che azzera font-size/weight dei titoli. */
body h1, body h2, body h3, body h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.12;
    font-weight: 700;
}
/* Dimensioni prudenti: le pagine interne usano h2/h3 senza classe di size,
   quindi i titoli "display" grandi restano confinati alle sezioni marketing. */
body h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
body h2 { font-size: 1.5rem; }
body h3 { font-size: 1.2rem; }
body h4 { font-size: 1.05rem; }

body .hero h1,
body .section-head h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); }
body .section h2,
body .section-head h2,
body .cta-section h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
body .section h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }

body p  { color: var(--ink-3); }

::selection { background: rgba(241,104,136,.24); color: var(--violet-700); }

/* Scrollbar */
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: var(--surface-2); }
*::-webkit-scrollbar-thumb {
    background: #d9d0e6; border-radius: 99px;
    border: 3px solid var(--surface-2);
}
*::-webkit-scrollbar-thumb:hover { background: #bfb0d4; }

/* Focus accessibile */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ─────────────────────────────────────────────
   3. UTILITY
   ───────────────────────────────────────────── */
.font-display { font-family: 'Playfair Display', Georgia, serif; }

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* Titolo con parola evidenziata in corsivo gradient */
.title-accent {
    font-style: italic;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Grana / rumore sottile, dà "materia" ai fondi piatti */
.grain::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    opacity: .32; mix-blend-mode: soft-light; z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* Glass */
.glass {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.7);
}

/* Divisore decorativo */
.rule-brand {
    width: 56px; height: 3px; border-radius: 99px;
    background: var(--grad-brand);
}

/* ─────────────────────────────────────────────
   4. ANIMAZIONI
   ───────────────────────────────────────────── */
@keyframes fadeInUp   { from { opacity:0; transform: translateY(26px); } to { opacity:1; transform:none; } }
@keyframes fadeIn     { from { opacity:0; } to { opacity:1; } }
@keyframes float      { 0%,100%{transform:translateY(0) rotate(0)} 33%{transform:translateY(-18px) rotate(2deg)} 66%{transform:translateY(-8px) rotate(-1deg)} }
@keyframes floatSlow  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-24px)} }
@keyframes drift      { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(4%,-6%) scale(1.08)} 66%{transform:translate(-5%,4%) scale(.95)} }
@keyframes shimmer    { 0%{background-position:-450px 0} 100%{background-position:450px 0} }
@keyframes pulseRing  { 0%{box-shadow:0 0 0 0 rgba(98,195,182,.5)} 70%{box-shadow:0 0 0 10px rgba(98,195,182,0)} 100%{box-shadow:0 0 0 0 rgba(98,195,182,0)} }
@keyframes marqueeX   { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes sheen      { 0%{transform:translateX(-120%) skewX(-18deg)} 100%{transform:translateX(320%) skewX(-18deg)} }

.animate-fade-in-up { animation: fadeInUp .8s var(--ease) both; }
.animate-fade-in    { animation: fadeIn .6s var(--ease) both; }
.animate-float      { animation: float 7s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 9s ease-in-out infinite; }
.delay-100 { animation-delay:.08s } .delay-200 { animation-delay:.16s }
.delay-300 { animation-delay:.24s } .delay-400 { animation-delay:.32s }
.delay-500 { animation-delay:.42s } .delay-600 { animation-delay:.52s }

/* Reveal allo scroll (attivato da app.js, solo se il JS è attivo) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="zoom"]  { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────
   5. NAVBAR
   ───────────────────────────────────────────── */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.site-nav.is-scrolled {
    background: rgba(255,255,255,.9);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 28px -12px rgba(28,11,49,.16);
}
.site-nav .nav-inner {
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 40px; width: auto; transition: transform var(--t); }
.nav-logo:hover img { transform: scale(1.04); }

.nav-link {
    position: relative;
    font-size: 14.5px; font-weight: 600;
    color: var(--ink-2);
    padding: 8px 2px;
    transition: color var(--t-fast);
    white-space: nowrap;
}
.nav-link::after {
    content:''; position:absolute; left:0; right:0; bottom:2px; height:2px;
    border-radius: 99px; background: var(--grad-brand);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--violet); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--violet); }

.nav-icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--r-full);
    color: var(--ink-3); transition: background var(--t-fast), color var(--t-fast);
}
.nav-icon-btn:hover { background: var(--surface-3); color: var(--violet); }
.nav-badge {
    position: absolute; top: 4px; right: 4px;
    min-width: 17px; height: 17px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 99px; background: var(--pink); color: #fff;
    font-size: 10px; font-weight: 800; line-height: 1;
    border: 2px solid #fff;
}

/* ─────────────────────────────────────────────
   6. BOTTONI
   ───────────────────────────────────────────── */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    border-radius: var(--r-full) !important;
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t-fast), border-color var(--t-fast) !important;
}

.btn-primary {
    position: relative; overflow: hidden;
    background: var(--grad-brand) !important;
    background-size: 180% 100% !important;
    background-position: 0% 50% !important;
    border: none !important;
    color: #fff !important;
    box-shadow: var(--sh-pink) !important;
}
.btn-primary::after {
    content:''; position:absolute; top:0; bottom:0; width:38%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
}
.btn-primary:hover {
    background-position: 100% 50% !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 34px -10px rgba(97,51,144,.6) !important;
}
.btn-primary:hover::after { animation: sheen .8s var(--ease) forwards; }
.btn-primary:active { transform: translateY(0) !important; }

.btn-ghost {
    color: var(--ink-2) !important;
    background: transparent !important;
    border: none !important;
}
.btn-ghost:hover { background: var(--surface-3) !important; color: var(--violet) !important; }

.btn-outline {
    background: #fff !important;
    border: 1.5px solid var(--line) !important;
    color: var(--ink-2) !important;
    box-shadow: var(--sh-xs) !important;
}
.btn-outline:hover {
    border-color: rgba(97,51,144,.35) !important;
    background: #fff !important;
    color: var(--violet) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--sh-md) !important;
}

/* Bottone "soft" viola */
.btn-soft {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--surface-3); color: var(--violet);
    border: 1px solid rgba(97,51,144,.14);
    border-radius: var(--r-full);
    font-weight: 700; font-size: 14px;
    padding: 11px 22px;
    transition: all var(--t);
}
.btn-soft:hover {
    background: #fff; border-color: rgba(97,51,144,.3);
    transform: translateY(-2px); box-shadow: var(--sh-md);
}

/* Bottone bianco su fondo scuro */
.btn-light {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; color: var(--violet-700);
    border-radius: var(--r-full);
    font-weight: 700; font-size: 15px;
    padding: 15px 30px;
    box-shadow: 0 14px 34px -10px rgba(0,0,0,.45);
    transition: all var(--t);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -12px rgba(0,0,0,.55); }

.btn-outline-light {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: rgba(255,255,255,.08); color: #fff;
    border: 1.5px solid rgba(255,255,255,.28);
    border-radius: var(--r-full);
    font-weight: 600; font-size: 15px;
    padding: 15px 30px;
    backdrop-filter: blur(8px);
    transition: all var(--t);
}
.btn-outline-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); transform: translateY(-3px); }

/* Freccia che scorre nei link "vedi tutti" */
.link-arrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 700; font-size: 14.5px; color: var(--violet);
    transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow:hover { gap: 12px; color: var(--pink-600); }

/* ─────────────────────────────────────────────
   7. FORM
   ───────────────────────────────────────────── */
.input, .select, .textarea, .file-input {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    border-radius: var(--r-md) !important;
    border: 1.5px solid var(--line) !important;
    background: var(--surface-2) !important;
    color: var(--ink) !important;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast) !important;
}
.input::placeholder, .textarea::placeholder { color: #a99fb5 !important; }
.input:hover, .select:hover, .textarea:hover { border-color: #ddd4ea !important; }
.input:focus, .textarea:focus, .select:focus, .input:focus-within {
    border-color: var(--pink) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(241,104,136,.13) !important;
    outline: none !important;
}
.label-text { color: var(--ink-2) !important; font-weight: 600 !important; }

/* Bottone nativo dell'input file (altrimenti resta lo stile grezzo del browser) */
.file-input { padding: 0 !important; height: auto !important; }
.file-input::file-selector-button {
    margin-right: 12px; border: 0;
    padding: 11px 18px; height: 100%;
    border-radius: var(--r-md) 0 0 var(--r-md);
    background: var(--grad-brand); color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 13.5px; cursor: pointer;
    transition: filter var(--t-fast);
}
.file-input::file-selector-button:hover { filter: brightness(1.07); }

/* Checkbox / radio / toggle nei colori del brand */
:root { accent-color: var(--violet); }
.checkbox:checked, .checkbox[aria-checked="true"] {
    background-color: var(--violet) !important;
    border-color: var(--violet) !important;
}
.radio:checked { --chkbg: var(--violet); border-color: var(--violet) !important; }
.toggle:checked { --tglbg: var(--violet); background-color: var(--violet) !important; }
.checkbox, .radio { border-color: #d7cbe8 !important; }

/* Barra di ricerca "segmentata" (hero + pagine) */
.searchbar {
    display: flex; align-items: stretch; gap: 0;
    background: #fff;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    padding: 7px;
    text-align: left; /* la hero è centrata su mobile, i campi no */
    transition: box-shadow var(--t), border-color var(--t);
}
.searchbar:focus-within { box-shadow: var(--sh-xl); border-color: rgba(241,104,136,.35); }
.searchbar .sb-field {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    padding: 6px 20px; flex: 1 1 0; min-width: 0;
}
.searchbar .sb-field + .sb-field::before {
    content: ''; position: absolute; left: 0; top: 18%; bottom: 18%;
    width: 1px; background: var(--line);
}
.searchbar .sb-label {
    font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1px;
}
.searchbar .sb-input, .searchbar .sb-select {
    width: 100%; border: 0 !important; outline: none !important; background: transparent !important;
    font-size: 15px; font-weight: 600; color: var(--ink);
    padding: 0 !important; height: 26px; min-height: 26px;
    box-shadow: none !important; border-radius: 0 !important;
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
}
.searchbar .sb-input { cursor: text; }
.searchbar .sb-input::placeholder { color: #b3a9bf; font-weight: 500; }
.searchbar .sb-select { background-image: none !important; }
.searchbar .sb-go {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
    padding: 0 28px; border-radius: var(--r-full);
    background: var(--grad-brand); background-size: 180% 100%;
    color: #fff; font-weight: 700; font-size: 15px;
    border: none; cursor: pointer;
    box-shadow: var(--sh-pink);
    transition: background-position var(--t), transform var(--t-fast), box-shadow var(--t);
}
.searchbar .sb-go:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 16px 34px -10px rgba(97,51,144,.6); }

/* In colonna il flex-basis diventa un'altezza: la larghezza ridotta
   del campo "servizio" vale solo nel layout orizzontale. */
@media (min-width: 861px) { .searchbar .sb-narrow { flex: 0 1 220px; } }

@media (max-width: 860px) {
    .searchbar { flex-direction: column; border-radius: var(--r-xl); padding: 10px; gap: 2px; }
    .searchbar .sb-field { flex: 0 0 auto; padding: 11px 14px; }
    .searchbar .sb-field + .sb-field::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
    .searchbar .sb-go { height: 52px; justify-content: center; margin-top: 8px; }
}

/* Autocomplete */
#city-suggestions, .ac-suggestions {
    border-radius: var(--r-lg) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--sh-lg) !important;
    overflow: hidden;
    padding: 6px;
}
#city-suggestions .suggestion-item, .ac-suggestions .suggestion-item {
    padding: 10px 12px; cursor: pointer; font-size: 14px; font-weight: 500;
    border-bottom: none; border-radius: var(--r-sm);
    display: flex; align-items: center; gap: 9px;
    transition: background var(--t-fast), color var(--t-fast);
}
#city-suggestions .suggestion-item:hover,
#city-suggestions .suggestion-item.active,
.ac-suggestions .suggestion-item:hover,
.ac-suggestions .suggestion-item.active {
    background: var(--surface-3); color: var(--violet);
}

/* ─────────────────────────────────────────────
   8. HERO
   ───────────────────────────────────────────── */
.hero {
    /* "hero" è anche un componente DaisyUI (display:grid; place-items:center):
       lo neutralizziamo esplicitamente. */
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fdfbff 0%, #fbf7ff 40%, #fff8fb 100%);
    isolation: isolate;
}
/* griglia sottile */
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(97,51,144,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97,51,144,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}
.hero-blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px); pointer-events: none; z-index: 0;
    will-change: transform;
}
.hero-blob.b1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(241,104,136,.55), transparent 65%); top: -220px; right: -140px; animation: drift 22s ease-in-out infinite; }
.hero-blob.b2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(97,51,144,.42), transparent 65%);  bottom: -200px; left: -160px; animation: drift 28s ease-in-out infinite reverse; }
.hero-blob.b3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(98,195,182,.42), transparent 65%);  top: 42%; left: 38%; animation: drift 24s ease-in-out infinite 3s; }

.hero-inner {
    position: relative; z-index: 3;
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 56px; align-items: center;
    padding: clamp(48px, 6vw, 84px) 0 clamp(96px, 9vw, 132px);
    min-height: calc(100svh - var(--nav-h));
}
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; min-height: 0; padding-bottom: 110px; }
    .hero-copy { margin-inline: auto; }
}

.hero-copy { max-width: 620px; }
.hero h1, body .hero h1 {
    font-size: clamp(2.5rem, 4.4vw, 4rem);
    line-height: 1.04;
    margin-bottom: 22px;
}
.hero-lead {
    font-size: clamp(1.02rem, 1.25vw, 1.18rem);
    line-height: 1.65;
    color: var(--ink-3);
    max-width: 545px;
    margin-bottom: 34px;
}
@media (max-width: 1024px) { .hero-lead { margin-inline: auto; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px 7px 11px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(97,51,144,.14);
    backdrop-filter: blur(10px);
    box-shadow: var(--sh-sm);
    font-size: 13px; font-weight: 700; color: var(--violet);
    margin-bottom: 24px;
}
.eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal); flex: 0 0 auto;
    animation: pulseRing 2.4s ease-out infinite;
}

/* Pill categorie hero */
.hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px 9px 11px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(97,51,144,.12);
    box-shadow: var(--sh-xs);
    backdrop-filter: blur(10px);
    font-size: 13.5px; font-weight: 700; color: var(--ink-2);
    text-decoration: none;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
}
.hero-pill img { width: 20px; height: 20px; }
@media (min-width: 1025px) { .hero-pill { padding: 8px 14px 8px 10px; font-size: 13px; } }
.hero-pill:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: rgba(241,104,136,.4);
    box-shadow: var(--sh-md);
    color: var(--violet);
}

/* Prova sociale */
.proof-row { display: inline-flex; align-items: center; gap: 14px; }
.proof-avatars { display: flex; }
.proof-avatars img, .proof-avatars span {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2.5px solid #fff; object-fit: cover;
    margin-left: -12px; box-shadow: var(--sh-sm);
    background: var(--surface-3);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: var(--violet);
}
.proof-avatars > *:first-child { margin-left: 0; }
.proof-stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; }

/* Visual hero: "palco" con illustrazione + chip flottanti sui bordi */
.hero-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
    padding: 22px 34px;
}
@media (max-width: 1024px) { .hero-visual { padding: 8px 26px 26px; } }

.hero-stage {
    position: relative; z-index: 2;
    width: 100%; max-width: 500px;
    padding: 40px 34px 34px;
    border-radius: var(--r-2xl);
    background: linear-gradient(155deg, #ffffff 0%, #fdf8ff 55%, #fff5f9 100%);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 40px 90px -30px rgba(97,51,144,.34), 0 6px 20px -8px rgba(97,51,144,.12);
}
.hero-stage::before {
    content: ''; position: absolute; inset: 0;
    border-radius: inherit; pointer-events: none;
    background: linear-gradient(150deg, rgba(255,255,255,.85), rgba(255,255,255,0) 55%);
}
.hero-stage .hero-art {
    position: relative;
    display: block; width: 100%;
    mix-blend-mode: multiply;
}

.float-chip {
    position: absolute; z-index: 4;
    display: flex; align-items: center; gap: 11px;
    padding: 11px 16px;
    border-radius: var(--r-md);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: var(--sh-lg);
    font-size: 13px; font-weight: 700; color: var(--ink);
    white-space: nowrap;
}
.float-chip small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.float-chip .fc-ico {
    width: 34px; height: 34px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
/* I chip stanno sui bordi del palco, non sopra l'illustrazione */
.float-chip.fc-1 { top: 4%;      left: -20px;  animation: floatSlow 7s ease-in-out infinite; }
.float-chip.fc-2 { bottom: -18px; right: -18px; animation: floatSlow 8.5s ease-in-out infinite 1.2s; }
.float-chip.fc-3 { bottom: -18px; left: 4%;     animation: floatSlow 9.5s ease-in-out infinite .6s; }
@media (max-width: 1280px) { .float-chip.fc-1 { left: -8px; } .float-chip.fc-2 { right: -8px; } }
@media (max-width: 1100px) { .float-chip.fc-3 { display: none; } }
@media (max-width: 640px)  { .float-chip { display: none; } }

/* Curva di chiusura hero */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.hero-curve svg { display: block; width: 100%; height: 72px; }

/* ─────────────────────────────────────────────
   9. SEZIONI
   ───────────────────────────────────────────── */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-soft { background: var(--surface-2); }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%); }

.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.9);
    color: var(--violet);
    font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    padding: 7px 15px; border-radius: var(--r-full);
    border: 1px solid rgba(97,51,144,.16);
    box-shadow: var(--sh-xs);
    margin-bottom: 16px;
}
.section-head { max-width: 640px; }
.section-head p { font-size: 1.05rem; line-height: 1.7; margin-top: 14px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ─────────────────────────────────────────────
   10. STAT BAND
   ───────────────────────────────────────────── */
.stat-band {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    overflow: hidden;
}
@media (max-width: 720px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
    padding: 30px 20px; text-align: center; position: relative;
    transition: background var(--t);
}
.stat-cell:hover { background: var(--surface-2); }
.stat-cell + .stat-cell::before {
    content:''; position:absolute; left:0; top:24%; bottom:24%; width:1px; background: var(--line);
}
@media (max-width: 720px) {
    .stat-cell:nth-child(3)::before, .stat-cell:nth-child(1)::before { display: none; }
    .stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-top: 1px solid var(--line); }
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 800; line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; letter-spacing: -.005em; }
/* compat vecchia stat-card */
.stat-card { text-align:center; padding:24px; border-radius: var(--r-lg); background:#fff; border:1px solid var(--line); box-shadow: var(--sh-sm); }

/* ─────────────────────────────────────────────
   11. CARD CATEGORIE
   ───────────────────────────────────────────── */
.cat-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 24px 22px 22px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    text-decoration: none;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cat-card::before {
    content:''; position:absolute; inset:0; z-index:0; opacity:0;
    transition: opacity var(--t);
    background: var(--cat-tint, linear-gradient(150deg, #fff5f8, #fff));
}
.cat-card::after {
    content:''; position:absolute; top:-40%; right:-30%;
    width: 180px; height: 180px; border-radius: 50%;
    background: var(--cat-glow, rgba(241,104,136,.18));
    filter: blur(38px); opacity: .55;
    transition: opacity var(--t), transform var(--t);
    z-index: 0;
}
.cat-card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: var(--cat-border, rgba(241,104,136,.35)); }
.cat-card:hover::before { opacity: 1; }
.cat-card:hover::after { opacity: .9; transform: scale(1.15); }
.cat-card > * { position: relative; z-index: 1; }
.cat-ico {
    width: 66px; height: 66px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; box-shadow: var(--sh-sm);
    border: 1px solid var(--line);
    transition: transform var(--t-spring, var(--t)), box-shadow var(--t);
}
.cat-card:hover .cat-ico { transform: translateY(-3px) scale(1.06) rotate(-4deg); box-shadow: var(--sh-md); }
.cat-ico img { width: 42px; height: 42px; object-fit: contain; }
.cat-label { font-weight: 800; font-size: 15.5px; color: var(--ink); letter-spacing: -.015em; }
.cat-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: -7px; }
/* Fuori dal flusso: non lascia spazio vuoto quando è nascosto */
.cat-go {
    position: absolute; right: 18px; bottom: 20px;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 700; color: var(--violet);
    opacity: 0; transform: translateX(-6px);
    transition: opacity var(--t), transform var(--t);
}
.cat-card:hover .cat-go { opacity: 1; transform: none; }
/* compat */
.cat-emoji { font-size: 2.6rem; line-height: 1; }

/* ─────────────────────────────────────────────
   12. STEP "COME FUNZIONA"
   ───────────────────────────────────────────── */
/* NB: non usare il nome "steps" — è un componente DaisyUI (grid-auto-flow:column). */
.how-steps { position: relative; }
.how-steps::before {
    content: ''; position: absolute; top: 62px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(97,51,144,.22) 0 8px, transparent 8px 18px);
    z-index: 0;
}
@media (max-width: 768px) { .how-steps::before { display: none; } }
.step-card {
    position: relative; z-index: 1;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 34px 26px 30px;
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    text-align: center;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(97,51,144,.18); }
.step-icon-wrap {
    width: 76px; height: 76px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--sh-sm);
    border: 1px solid rgba(255,255,255,.9);
    transition: transform var(--t);
}
.step-card:hover .step-icon-wrap { transform: scale(1.07) rotate(-3deg); }
.step-num {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 14px;
    color: #fff; border: 3px solid #fff;
    box-shadow: var(--sh-md);
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-card p { font-size: 14.2px; line-height: 1.7; }

/* ─────────────────────────────────────────────
   13. TRUST
   ───────────────────────────────────────────── */
.trust-item {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.trust-ico {
    width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
}

/* ─────────────────────────────────────────────
   14. CARD PROFESSIONISTA
   ───────────────────────────────────────────── */
.prof-card {
    position: relative; display: block; text-decoration: none;
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.prof-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-xl);
    border-color: rgba(241,104,136,.32);
}
.prof-card .card-img {
    position: relative; height: 232px; overflow: hidden;
    background: linear-gradient(150deg, #f8f2ff, #ffeef4);
}
.prof-card .card-img img { width:100%; height:100%; object-fit: cover; transition: transform .7s var(--ease); }
.prof-card:hover .card-img img { transform: scale(1.08); }
.prof-card .card-img::after {
    content:''; position:absolute; inset:0; pointer-events:none;
    background: linear-gradient(to top, rgba(22,9,31,.82) 0%, rgba(22,9,31,.25) 38%, transparent 62%);
}
.prof-card .card-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    padding: 16px 16px 13px; color: #fff;
}
.prof-card .card-overlay .pc-name { font-weight: 800; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; }
.prof-card .card-overlay .pc-meta { font-size: 12.5px; color: rgba(255,255,255,.78); margin-top: 3px; font-weight: 500; }
.prof-card .card-body-inner { padding: 14px 16px 17px; }
.prof-card .dist-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    color: var(--violet-700);
    font-size: 11.5px; font-weight: 800;
    padding: 5px 10px; border-radius: var(--r-full);
    box-shadow: var(--sh-sm);
}
.prof-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; border-radius: var(--r-full);
    font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .01em;
}
.prof-badge.is-gold { background: linear-gradient(100deg,#f0b429,#ffd977); color:#4a3000; box-shadow: 0 4px 14px rgba(224,160,20,.45); }
.prof-badge.is-premium { background: linear-gradient(100deg,#613390,#a855f7); color:#fff; box-shadow: 0 4px 14px rgba(97,51,144,.45); }

.rating-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--surface-3);
    border: 1px solid rgba(97,51,144,.12);
    border-radius: var(--r-full);
    padding: 4px 10px;
    font-size: 12.5px; font-weight: 800; color: var(--violet-700);
}
.rating-chip svg { color: var(--gold); }
.pc-cta {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 700; color: var(--pink-600);
    transition: gap var(--t-fast);
}
.prof-card:hover .pc-cta { gap: 9px; }

/* ─────────────────────────────────────────────
   15. CTA SCURA
   ───────────────────────────────────────────── */
.cta-section {
    position: relative; overflow: hidden;
    background: var(--grad-ink);
    isolation: isolate;
}
.cta-section::before {
    content:''; position:absolute; z-index:0;
    top:-160px; right:-120px; width:560px; height:560px; border-radius:50%;
    background: radial-gradient(circle, rgba(241,104,136,.42) 0%, transparent 68%);
    filter: blur(30px);
}
.cta-section::after {
    content:''; position:absolute; z-index:0;
    bottom:-180px; left:-140px; width:520px; height:520px; border-radius:50%;
    background: radial-gradient(circle, rgba(98,195,182,.3) 0%, transparent 68%);
    filter: blur(30px);
}
.cta-section > * { position: relative; z-index: 2; }
.cta-section h2 { color: #fff; }
.cta-section p  { color: rgba(255,255,255,.72); }

.coupon-tag {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', monospace;
    font-weight: 800; letter-spacing: .18em;
    padding: 6px 14px; border-radius: var(--r-sm);
    background: rgba(255,255,255,.14);
    border: 1.5px dashed rgba(255,255,255,.55);
    color: #fff;
}

/* ─────────────────────────────────────────────
   16. BANNER PROMO
   ───────────────────────────────────────────── */
.promo-bar {
    position: relative; overflow: hidden;
    background: var(--grad-brand); background-size: 200% 100%;
    animation: promoShift 14s ease-in-out infinite;
    color: #fff;
}
@keyframes promoShift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.promo-bar a, .promo-bar button { color: #fff; }
.promo-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 800;
    padding: 7px 15px; border-radius: var(--r-full);
    background: rgba(255,255,255,.16);
    border: 1.5px solid rgba(255,255,255,.45);
    cursor: pointer; transition: all var(--t-fast);
    white-space: nowrap;
}
.promo-chip:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }

/* ─────────────────────────────────────────────
   17. FOOTER
   ───────────────────────────────────────────── */
.site-footer {
    position: relative; overflow: hidden;
    background: var(--violet-900);
    color: #b6a4c8;
}
.site-footer::before {
    content:''; position:absolute; top:-200px; left:50%; transform:translateX(-50%);
    width: 900px; height: 400px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(97,51,144,.5), transparent 70%);
    filter: blur(60px); pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: #e4d6f2; margin-bottom: 16px;
}
.footer-link {
    display: inline-block; font-size: 14px; color: #b6a4c8;
    transition: color var(--t-fast), transform var(--t-fast);
}
.footer-link:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); color: #8574997d; }

/* ─────────────────────────────────────────────
   18. DAISYUI OVERRIDE
   ───────────────────────────────────────────── */
.badge-neutral { background: rgba(97,51,144,.9) !important; color:#fff !important; border:none !important; }
.badge-ghost   { background: var(--surface-3) !important; color: var(--violet) !important; border-color: var(--line) !important; }

.card {
    border-radius: var(--r-lg) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--sh-md) !important;
    background: #fff !important;
}

.alert {
    border-radius: var(--r-md) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--sh-md) !important;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.alert-success { background: #eefaf6 !important; color: #0f6b58 !important; border-color: #c9ece2 !important; }
.alert-error   { background: #fef1f4 !important; color: #a41f43 !important; border-color: #f8d3dd !important; }
.alert-warning { background: #fff8ec !important; color: #8a5a05 !important; border-color: #f7e3bd !important; }
.alert-info    { background: #f6f2fc !important; color: var(--violet-700) !important; border-color: #e5daf5 !important; }

.divider { color: var(--muted) !important; }
.divider::before, .divider::after { background: var(--line) !important; }

.btm-nav {
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(16px) saturate(1.6);
    border-top: 1px solid var(--line) !important;
    box-shadow: 0 -6px 24px -10px rgba(28,11,49,.18);
}
.btm-nav > a { color: var(--muted); transition: color var(--t-fast); }
.btm-nav > a.is-active { color: var(--pink-600); border-top-color: var(--pink) !important; }
.btm-nav-label { font-weight: 700; }

/* Link generici brand */
a.link-brand { color: var(--violet); font-weight: 600; }
a.link-brand:hover { color: var(--pink-600); text-decoration: underline; text-underline-offset: 3px; }

/* ─────────────────────────────────────────────
   19. MAPPA / MISC
   ───────────────────────────────────────────── */
#map-mini, #prof-map, #full-map { z-index: 1; }
.leaflet-container { font-family: 'Plus Jakarta Sans', sans-serif !important; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md) !important; box-shadow: var(--sh-lg) !important; }
.leaflet-bar a { border-radius: 8px !important; color: var(--violet) !important; }

.search-sticky, .filter-bar {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px) saturate(1.7);
    -webkit-backdrop-filter: blur(16px) saturate(1.7);
    border-bottom: 1px solid var(--line);
}
.filter-bar {
    position: sticky; top: var(--nav-h); z-index: 30;
    box-shadow: 0 4px 20px -12px rgba(28,11,49,.24);
}
.filter-input {
    height: 40px; padding: 0 15px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--line);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 14px; font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    outline: none;
}
select.filter-input { padding-right: 34px; cursor: pointer; }
.filter-input::placeholder { color: #b3a9bf; font-weight: 500; }
.filter-input:hover { border-color: #ddd4ea; }
.filter-input:focus {
    border-color: var(--pink); background: #fff;
    box-shadow: 0 0 0 4px rgba(241,104,136,.13);
}

.review-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px;
}
.contact-sidebar {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--sh-lg);
}

/* Header della scheda professionista */
.profile-header {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, #fdf9ff 0%, #ffffff 45%) !important;
    box-shadow: var(--sh-lg) !important;
}
.profile-header::before {
    content: ''; position: absolute; top: -120px; right: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(241,104,136,.18), transparent 68%);
    filter: blur(26px); pointer-events: none;
}
.profile-avatar {
    width: 128px; height: 128px;
    border-radius: 24px; object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--sh-md), 0 0 0 1px var(--line);
}
@media (max-width: 640px) { .profile-avatar { width: 104px; height: 104px; } }

/* Skeleton */
.skeleton-bar {
    background: linear-gradient(90deg, var(--surface-3) 25%, #fff 50%, var(--surface-3) 75%);
    background-size: 900px 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: var(--r-sm);
}

/* Barra di avanzamento lettura */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--grad-brand); z-index: 60;
    transition: width .1s linear;
    pointer-events: none;
}

@media (max-width: 768px) { body { padding-bottom: 68px; } }

/* ─────────────────────────────────────────────
   19b. PAGINE AUTH
   ───────────────────────────────────────────── */
.auth-page {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #fdfbff 0%, #fbf7ff 50%, #fff7fa 100%) !important;
}
.auth-page::before, .auth-page::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.auth-page::before { width: 480px; height: 480px; top: -190px; right: -150px; background: radial-gradient(circle, rgba(241,104,136,.4), transparent 65%); }
.auth-page::after  { width: 420px; height: 420px; bottom: -180px; left: -150px; background: radial-gradient(circle, rgba(97,51,144,.32), transparent 65%); }
.auth-page > * { position: relative; z-index: 1; }
.auth-page .card { box-shadow: var(--sh-xl) !important; border-radius: var(--r-xl) !important; }
.auth-logo { height: 42px; width: auto; margin: 0 auto; display: block; }
.auth-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.9rem !important; font-weight: 700 !important;
    color: var(--ink) !important; letter-spacing: -.02em; margin-top: 18px;
}
.auth-sub { font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }

/* ─────────────────────────────────────────────
   20. RE-SKIN UTILITY TAILWIND
   Le pagine interne usano ancora le palette grigio/blu di default.
   Qui vengono rimappate sui colori del brand, senza toccare le view.
   !important perché il CSS del CDN Tailwind è iniettato dopo questo foglio.
   ───────────────────────────────────────────── */
.bg-gray-50  { background-color: var(--surface-2) !important; }
.bg-gray-100 { background-color: var(--surface-3) !important; }
.bg-white    { background-color: #fff !important; }

.text-gray-800, .text-gray-900 { color: var(--ink) !important; }
.text-gray-700, .text-gray-600 { color: var(--ink-2) !important; }
.text-gray-500, .text-gray-400 { color: var(--muted) !important; }

.border-gray-100, .border-gray-200 { border-color: var(--line) !important; }
.border-gray-300 { border-color: #ddd4ea !important; }

/* Blu residui → viola brand */
.text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800 { color: var(--violet) !important; }
.hover\:text-blue-700:hover, .hover\:text-blue-800:hover { color: var(--violet-700) !important; }
.bg-blue-50   { background-color: var(--surface-3) !important; }
.border-blue-100, .border-blue-200 { border-color: #e2d7f3 !important; }
.bg-blue-500, .bg-blue-600 { background-color: var(--violet) !important; }
.text-blue-800.card-body, .text-blue-800 { color: var(--violet-700) !important; }

/* Titoli delle pagine interne: restano sans, non serif, ma nel tono giusto */
.text-xl.font-bold, .text-2xl.font-bold, .text-3xl.font-bold {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
}

/* ─────────────────────────────────────────────
   21. MOTION RIDOTTO
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
