/* =================================================================
   DishFlow — faq.css
   Pagina FAQ · Tab clienti/ristoratori · Ricerca live
   Zero font esterni
   ================================================================= */

:root {
    --bg:     #07090f;
    --bg2:    #0b0e18;
    --card:   #0d1120;
    --gold:   #c9a84c;
    --goldh:  #e8c96a;
    --white:  #ffffff;
    --gray:   #8892a4;
    --gray2:  #4a5568;
    --green:  #22c55e;
    --border: rgba(201,168,76,.15);
    --brd2:   rgba(255,255,255,.07);
    --serif:  'Georgia','Times New Roman',serif;
    --sans:   -apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
    --ease:   cubic-bezier(.16,1,.3,1);
}
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--sans); background:var(--bg); color:var(--white); overflow-x:hidden; }
a { text-decoration:none; color:inherit; }
button { cursor:pointer; font-family:inherit; border:none; background:none; }
img { display:block; }
p { line-height:1.75; }

/* ── NOISE + ORBS ────────────────────────────────────────────── */
.noise {
    position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.022;
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size:160px;
}
.ambient { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.orb { position:absolute; border-radius:50%; filter:blur(130px); }
.o1 { width:700px; height:700px; top:-200px; right:-150px; background:radial-gradient(circle,rgba(201,168,76,.06) 0%,transparent 70%); animation:orbD 14s ease-in-out infinite; }
.o2 { width:500px; height:500px; bottom:-100px; left:-80px; background:radial-gradient(circle,rgba(201,168,76,.04) 0%,transparent 70%); animation:orbD 11s ease-in-out 6s infinite reverse; }
@keyframes orbD { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-18px)} }

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal {
    opacity:0; transform:translateY(22px);
    transition:opacity .7s var(--ease), transform .7s var(--ease);
    animation:revFall 0s 2s forwards;
}
.reveal.visible { opacity:1; transform:translateY(0); animation:none; }
@keyframes revFall { to { opacity:1; transform:translateY(0); } }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.sc { max-width:1100px; margin:0 auto; padding:0 48px; }

/* ── NAVBAR ──────────────────────────────────────────────────── */
.nav {
    position:sticky; top:0; z-index:100;
    display:flex; align-items:center; justify-content:space-between;
    padding:0 48px; height:68px;
    transition:background .4s, border-color .4s;
}
.nav.scrolled { background:rgba(7,9,15,.93); border-bottom:1px solid var(--border); backdrop-filter:blur(20px); }
.nav-logo { display:flex; align-items:center; }
.nav-logo img { height:32px; object-fit:contain; }
.nav-logo-txt { font-family:var(--serif); font-size:1.3rem; font-weight:700; }
.nav-logo-txt em { font-style:italic; color:var(--gold); }
.nav-right { display:flex; align-items:center; gap:20px; }
.nav-link { font-size:.83rem; color:var(--gray); transition:color .2s; font-weight:500; }
.nav-link:hover { color:var(--white); }
.nav-btn-ghost {
    font-size:.82rem; font-weight:600; color:var(--gray);
    border:1px solid var(--brd2); border-radius:50px; padding:7px 18px;
    transition:all .2s;
}
.nav-btn-ghost:hover { color:var(--white); border-color:rgba(255,255,255,.2); }
.nav-btn-gold {
    font-size:.82rem; font-weight:700; color:#07090f;
    background:var(--gold); border-radius:50px; padding:7px 20px;
    transition:background .2s, transform .2s;
    box-shadow:0 4px 14px rgba(201,168,76,.22);
}
.nav-btn-gold:hover { background:var(--goldh); transform:translateY(-1px); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    position:relative; z-index:2;
    padding:80px 0 60px; text-align:center;
    border-bottom:1px solid var(--brd2);
}
.hero-inner { max-width:680px; margin:0 auto; padding:0 24px; }

.hero-tag {
    display:inline-flex; align-items:center; gap:8px;
    background:rgba(201,168,76,.08); border:1px solid rgba(201,168,76,.22);
    border-radius:50px; padding:5px 14px;
    font-size:.67rem; font-weight:700; color:var(--gold);
    text-transform:uppercase; letter-spacing:2px; margin-bottom:20px;
}
.tag-dot { width:5px; height:5px; border-radius:50%; background:var(--gold); animation:blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero-title {
    font-family:var(--serif);
    font-size:clamp(2.8rem,5vw,4rem);
    font-weight:400; line-height:1.08;
    letter-spacing:-.02em; margin-bottom:14px;
}
.hero-title em { font-style:italic; color:var(--gold); }
.hero-desc { font-size:.94rem; color:var(--gray); font-weight:300; margin-bottom:36px; }

/* Search */
.search-wrap {
    display:flex; align-items:center; gap:10px;
    background:rgba(255,255,255,.05); border:1px solid var(--brd2);
    border-radius:14px; padding:13px 18px;
    max-width:520px; margin:0 auto 28px;
    transition:border-color .25s, background .25s, box-shadow .25s;
}
.search-wrap:focus-within {
    border-color:rgba(201,168,76,.45);
    background:rgba(255,255,255,.08);
    box-shadow:0 0 0 3px rgba(201,168,76,.09);
}
.search-wrap > svg { width:17px; height:17px; stroke:var(--gray); flex-shrink:0; transition:stroke .2s; }
.search-wrap:focus-within > svg { stroke:var(--gold); }
.search-wrap input {
    flex:1; background:transparent; border:none; outline:none;
    color:var(--white); font-size:.92rem; font-family:var(--sans);
}
.search-wrap input::placeholder { color:rgba(255,255,255,.25); }
kbd {
    background:rgba(255,255,255,.07); border:1px solid var(--brd2);
    border-radius:5px; padding:2px 7px;
    font-size:.65rem; color:var(--gray2); font-family:var(--sans);
    flex-shrink:0;
}

/* Tab switcher */
.tab-switch {
    display:inline-flex; background:rgba(255,255,255,.04);
    border:1px solid var(--brd2); border-radius:14px;
    padding:4px; gap:4px;
}
.ts-btn {
    display:flex; align-items:center; gap:8px;
    padding:10px 22px; border-radius:10px;
    font-size:.84rem; font-weight:600; color:var(--gray);
    transition:all .25s var(--ease);
}
.ts-btn svg { width:15px; height:15px; flex-shrink:0; }
.ts-btn.active {
    background:var(--gold); color:#07090f;
    box-shadow:0 4px 14px rgba(201,168,76,.25);
}
.ts-btn.active svg { stroke:#07090f; }
.ts-btn:not(.active):hover { color:var(--white); background:rgba(255,255,255,.05); }

/* ── FAQ SECTION ─────────────────────────────────────────────── */
.faq-section { position:relative; z-index:2; padding:60px 0 80px; }
.faq-inner { max-width:820px; margin:0 auto; padding:0 48px; }

/* Panel */
.faq-panel { display:none; }
.faq-panel.active { display:block; animation:panelIn .4s var(--ease) both; }
@keyframes panelIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* Categoria */
.faq-category { margin-bottom:48px; }
.faq-category:last-child { margin-bottom:0; }
.fcat-header {
    display:flex; align-items:center; gap:14px;
    margin-bottom:20px;
}
.fcat-icon {
    width:40px; height:40px; border-radius:11px; flex-shrink:0;
    background:rgba(201,168,76,.08); border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
}
.fcat-icon svg { width:18px; height:18px; stroke:var(--gold); }
.fcat-header h2 {
    font-family:var(--serif); font-size:1.2rem; font-weight:600;
}

/* FAQ items */
.faq-list { border:1px solid var(--brd2); border-radius:16px; overflow:hidden; }
.faq-item { border-bottom:1px solid var(--brd2); background:var(--card); }
.faq-item:last-child { border-bottom:none; }
.faq-item.hidden { display:none; }

.faq-q {
    width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:20px 24px; font-size:.88rem; font-weight:600; color:var(--white);
    text-align:left; transition:background .2s, color .2s;
}
.faq-q svg { width:17px; height:17px; flex-shrink:0; stroke:var(--gray); transition:transform .3s var(--ease), stroke .2s; }
.faq-q:hover { background:rgba(255,255,255,.02); color:var(--gold); }
.faq-q:hover svg { stroke:var(--gold); }
.faq-q.open { color:var(--gold); background:rgba(201,168,76,.04); }
.faq-q.open svg { transform:rotate(180deg); stroke:var(--gold); }

.faq-a {
    display:none; padding:0 24px 20px;
    font-size:.84rem; color:var(--gray); line-height:1.85;
}
.faq-a.open { display:block; animation:fadeA .3s ease; }
.faq-a strong { color:var(--white); font-weight:600; }
@keyframes fadeA { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }

/* Messaggio nessun risultato */
.no-results {
    display:none; text-align:center; padding:60px 24px;
    font-size:.92rem; color:var(--gray);
}
.no-results.show { display:block; }
.no-results strong { color:var(--white); display:block; font-size:1.1rem; margin-bottom:8px; }

/* Highlight testo ricerca */
mark {
    background:rgba(201,168,76,.25); color:var(--white);
    border-radius:3px; padding:0 2px;
}

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-section { padding:0 0 80px; position:relative; z-index:2; }
.contact-card {
    display:flex; align-items:center; justify-content:space-between; gap:40px;
    background:var(--card); border:1px solid var(--border);
    border-radius:20px; padding:44px 48px;
    background-image:linear-gradient(135deg, rgba(201,168,76,.04) 0%, transparent 50%);
    position:relative; overflow:hidden;
    max-width:1100px; margin:0 auto;
}
.contact-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:2px;
    background:linear-gradient(to right, transparent, var(--gold), transparent);
}
.contact-tag {
    display:flex; align-items:center; gap:7px;
    font-size:.67rem; font-weight:700; color:var(--gold);
    text-transform:uppercase; letter-spacing:2px; margin-bottom:10px;
}
.contact-left h2 {
    font-family:var(--serif); font-size:1.7rem; font-weight:600;
    margin-bottom:8px; line-height:1.2;
}
.contact-left p { font-size:.84rem; color:var(--gray); }

.contact-btns { display:flex; gap:12px; flex-shrink:0; }
.contact-btn {
    display:flex; align-items:center; gap:9px;
    border-radius:12px; padding:13px 22px;
    font-size:.86rem; font-weight:700;
    transition:all .25s var(--ease); white-space:nowrap;
}
.contact-btn svg { width:17px; height:17px; flex-shrink:0; }
.contact-btn--gold {
    background:linear-gradient(135deg,#e8c96a,#b8900a); color:#07090f;
    box-shadow:0 6px 20px rgba(201,168,76,.22);
}
.contact-btn--gold:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(201,168,76,.32); }
.contact-btn--green {
    background:rgba(37,211,102,.10); border:1px solid rgba(37,211,102,.25);
    color:#25d366;
}
.contact-btn--green svg { fill:#25d366; }
.contact-btn--green:hover { background:rgba(37,211,102,.18); transform:translateY(-2px); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { background:#040608; border-top:1px solid var(--brd2); padding:52px 0 0; }
.footer-inner {
    max-width:1100px; margin:0 auto; padding:0 48px 40px;
    display:grid; grid-template-columns:1.8fr 1fr 1fr 1fr;
    gap:48px; border-bottom:1px solid var(--brd2);
}
.footer-logo { height:30px; object-fit:contain; margin-bottom:10px; }
.footer-logo-txt { font-family:var(--serif); font-size:1.2rem; font-weight:700; display:block; margin-bottom:10px; }
.footer-logo-txt em { font-style:italic; color:var(--gold); }
.footer-brand p { font-size:.80rem; color:var(--gray); }
.footer-col h4 { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--white); margin-bottom:14px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col a { font-size:.82rem; color:var(--gray); transition:color .2s; }
.footer-col a:hover { color:var(--gold); }
.footer-bottom { max-width:1100px; margin:0 auto; padding:16px 48px; text-align:center; font-size:.70rem; color:var(--gray2); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media(max-width:900px) {
    .nav { padding:0 20px; }
    .nav-link, .nav-btn-ghost { display:none; }
    .faq-inner { padding:0 20px; }
    .sc { padding:0 20px; }
    .contact-card { flex-direction:column; align-items:flex-start; padding:28px 24px; }
    .contact-btns { flex-direction:column; width:100%; }
    .contact-btn { justify-content:center; }
    .footer-inner { grid-template-columns:1fr 1fr; padding:0 20px 32px; }
}
@media(max-width:600px) {
    .tab-switch { flex-direction:column; width:100%; }
    .ts-btn { justify-content:center; }
    .hero-title { font-size:2.4rem; }
    .footer-inner { grid-template-columns:1fr; }
    .footer-bottom { padding:16px 20px; }
}