/* ==========================================================================
   FG-SITE-PRO — vestito nuovo delle pagine "classiche" (quelle con header.php e
   footer.php: home, ricette, categorie, login, registrazione, chi siamo...).
   Stessi token e stesse forme della community.
   ========================================================================== */
html.fgc-site body{ padding-top:var(--fgc-top,0px)!important; background:var(--fgc-page); color:var(--fgc-text); font-family:Lato,Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif; }
html.fgc-site .skip-link{ z-index:100001; }

/* ---------- header ---------- */
html.fgc-site .site-header{ top:var(--fgc-top,0px); background:color-mix(in srgb,var(--fgc-card) 94%,transparent); -webkit-backdrop-filter:saturate(1.4) blur(14px); backdrop-filter:saturate(1.4) blur(14px); box-shadow:none; border-bottom:1px solid var(--fgc-line); }
html.fgc-site .site-header .wrap{ display:flex; align-items:center; gap:10px; min-height:60px; padding-block:6px; }
html.fgc-site .site-header .brand-container{ display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
html.fgc-site .site-header .brand{ font-family:'Pacifico','Playfair Display',serif; font-weight:400; font-size:1.5rem; color:var(--fgc-accent); text-decoration:none; white-space:nowrap; line-height:1; letter-spacing:.2px; }
html.fgc-site .lang-pick__btn{ border-radius:12px; border:1px solid var(--fgc-line); background:var(--fgc-soft); padding:6px 8px; }
html.fgc-site .main-nav{ display:none; }
html.fgc-site .mobile-menu-toggle{ width:42px; height:42px; border-radius:14px; background:var(--fgc-soft); border:0; display:inline-flex; align-items:center; justify-content:center; color:var(--fgc-text); }
html.fgc-site .theme-toggle{ width:42px; height:42px; border-radius:14px; background:var(--fgc-soft); border:0; display:inline-flex; align-items:center; justify-content:center; font-size:1rem; }
html.fgc-site .main-nav .install-app-btn{ display:none!important; }
/* "Installa app" nel menu a tendina del telefono: bottone pieno, colore del sito */
html.fgc-site .mobile-menu-links .install-app-btn{ display:flex!important; align-items:center; justify-content:center; gap:8px; margin:10px 0!important; padding:13px 16px!important; border-radius:14px!important; background:linear-gradient(135deg,#d4705f,#b55a4a)!important; color:#fff!important; font-weight:700!important; border:0!important; box-shadow:0 8px 18px -10px rgba(212,112,95,.9)!important; text-decoration:none!important; }
html.fgc-site .mobile-menu-links .install-app-btn::before, html.fgc-site .mobile-menu-links .install-app-btn::after{ display:none!important; content:none!important; animation:none!important; }
html.fgc-site .mobile-menu-links .install-app-btn .install-app-icon, html.fgc-site .mobile-menu-links .install-app-btn .install-app-badge{ display:none!important; }
html.fgc-app-installata .install-app-btn{ display:none!important; }
#fgcInstalla{ position:fixed; inset:0; z-index:2147483600; background:rgba(0,0,0,.55); display:flex; align-items:flex-end; justify-content:center; }
#fgcInstalla .box{ width:100%; max-width:480px; background:#fff; color:#262626; border-radius:22px 22px 0 0; padding:22px 20px calc(22px + env(safe-area-inset-bottom,0px)); font:500 .95rem/1.5 Inter,system-ui,sans-serif; }
#fgcInstalla h3{ margin:0 0 10px; font-size:1.1rem; font-weight:800; }
#fgcInstalla ol{ margin:0 0 16px; padding-left:20px; } #fgcInstalla li{ margin:6px 0; }
#fgcInstalla button{ width:100%; padding:13px; border:0; border-radius:14px; background:linear-gradient(135deg,#d4705f,#b55a4a); color:#fff; font-weight:700; font-size:1rem; }
body.dark #fgcInstalla .box, body.dark-mode #fgcInstalla .box{ background:#1a1817; color:#f3eee9; }

/* menu a comparsa (telefono) */
html.fgc-site .mobile-menu{ background:var(--fgc-card); color:var(--fgc-text); border-radius:0 24px 24px 0; box-shadow:0 20px 60px rgba(0,0,0,.25); }
html.fgc-site .mobile-menu-content{ padding:16px; }
html.fgc-site .mobile-menu-links a,html.fgc-site .mobile-dropdown-toggle,html.fgc-site .ai-dropdown-toggle{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:14px; color:var(--fgc-text); text-decoration:none; font-weight:600; font-size:1rem; border:0; background:transparent!important; width:100%; text-align:left; font-family:inherit; }
html.fgc-site .mobile-menu-links a:hover,html.fgc-site .mobile-menu-links a.active{ background:var(--fgc-soft)!important; color:var(--fgc-accent); }
html.fgc-site .mobile-dropdown-menu a,html.fgc-site .ai-dropdown-menu a{ padding:10px 14px 10px 28px; font-size:.95rem; }
html.fgc-site .mobile-lang-flags{ gap:8px; flex-wrap:wrap; }
html.fgc-site .mobile-lang-flags img{ border-radius:6px; }
html.fgc-site .mobile-menu .btn-primary-small,html.fgc-site .mobile-menu .donation-link{ border-radius:999px; }

/* ---------- pulsanti ---------- */
html.fgc-site .btn-primary,html.fgc-site .btn-primary-small,html.fgc-site button.btn-primary{ background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2))!important; color:#fff!important; border:0!important; border-radius:999px!important; font-weight:700; box-shadow:0 8px 20px -10px rgba(212,112,95,.9); }
html.fgc-site .btn-secondary{ background:var(--fgc-soft)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line)!important; border-radius:999px!important; font-weight:700; }
html.fgc-site .btn-primary:hover,html.fgc-site .btn-secondary:hover{ transform:translateY(-1px); }

/* ---------- home: hero e categorie ---------- */
html.fgc-site .hero{ height:auto; min-height:0; aspect-ratio:4/5; max-height:72vh; margin:10px 8px 0; border-radius:var(--fgc-r); }
html.fgc-site .hero .overlay{ justify-content:flex-end; align-items:flex-start; text-align:left; padding:28px 22px 30px; background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(20,12,10,.72)); }
html.fgc-site .hero .overlay h1{ font-family:'Pacifico','Playfair Display',serif; font-weight:400; text-shadow:0 4px 18px rgba(0,0,0,.4); margin-bottom:8px; }
html.fgc-site .hero .overlay p{ font-size:1rem; opacity:.92; margin-bottom:14px; }
html.fgc-site .hero .btn-primary,html.fgc-site .hero .btn-secondary{ padding:13px 24px; margin:4px 8px 4px 0; border-radius:999px; }
html.fgc-site .hero .btn-secondary{ background:rgba(255,255,255,.16)!important; color:#fff!important; border:1.5px solid rgba(255,255,255,.7)!important; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
html.fgc-site .section-title{ font-family:'Playfair Display',serif; font-weight:700; letter-spacing:-.3px; text-align:left; padding:0 16px; }
html.fgc-site .categories{ background:transparent; padding:1.6rem 0; }
html.fgc-site .category-grid{ grid-template-columns:repeat(2,1fr); gap:10px; padding:0 8px; }
html.fgc-site .category-card{ border-radius:var(--fgc-r); background:var(--fgc-card); box-shadow:var(--fgc-shadow); padding:18px 10px; color:var(--fgc-text); font-weight:700; transition:transform .15s; }
html.fgc-site .category-card:active{ transform:scale(.97); }
html.fgc-site .category-icon{ font-size:1.9rem; }

/* ---------- card ricette ---------- */
html.fgc-site .grid{ gap:12px; padding:1rem 8px 2rem; }
html.fgc-site .card{ border-radius:var(--fgc-r); box-shadow:var(--fgc-shadow); background:var(--fgc-card); color:var(--fgc-text); overflow:hidden; transition:transform .15s,box-shadow .15s; }
html.fgc-site .card:hover{ transform:translateY(-2px); box-shadow:0 14px 34px -14px rgba(43,36,32,.35); }
html.fgc-site .grid > .card > img,html.fgc-site .grid > .card > a > img{ aspect-ratio:4/3; }
html.fgc-site img[class*="avatar"],html.fgc-site [class*="avatar"] img{ aspect-ratio:1/1!important; object-fit:cover!important; border-radius:50%; }
html.fgc-site .card-body{ padding:12px 14px 14px; }
html.fgc-site .card-body h3,html.fgc-site .card-body h2{ font-size:1.02rem; line-height:1.3; }
html.fgc-site .card-meta{ color:var(--fgc-text2); font-size:.82rem; }
html.fgc-site .category-badge{ background:var(--fgc-soft); color:var(--fgc-accent); border-radius:999px; padding:3px 10px; font-weight:700; font-size:.72rem; }
html.fgc-site .card-footer{ border-top:1px solid var(--fgc-line); }

/* filtri ricette */
html.fgc-site .page-header{ padding:14px 16px 6px; }
html.fgc-site .page-header h1{ font-family:'Playfair Display',serif; font-size:1.6rem; }
html.fgc-site .filters-bar,html.fgc-site .search-form{ background:var(--fgc-card); border-radius:var(--fgc-r); box-shadow:var(--fgc-shadow); padding:12px; margin:0 8px 10px; border:0; }
html.fgc-site .filters-bar input,html.fgc-site .filters-bar select,html.fgc-site .fg-in,html.fgc-site .fg-cerca input{ background:var(--fgc-bg2)!important; border:1.5px solid transparent!important; border-radius:999px!important; padding:11px 16px!important; color:var(--fgc-text)!important; font-family:inherit; }
html.fgc-site .filters-bar input:focus,html.fgc-site .filters-bar select:focus{ outline:none; border-color:var(--fgc-accent)!important; background:var(--fgc-card)!important; }
html.fgc-site .results-count{ background:var(--fgc-soft); border-radius:999px; padding:6px 12px; font-weight:700; font-size:.82rem; color:var(--fgc-text2); display:inline-block; margin:0 16px 8px; }
html.fgc-site .fg-ord{ display:flex; gap:6px; overflow-x:auto; padding:0 8px 8px; scrollbar-width:none; }
html.fgc-site .fg-ord a,html.fgc-site .fg-ord button,html.fgc-site .fg-ord span{ flex:0 0 auto; border-radius:999px; padding:7px 14px; background:var(--fgc-card); border:1px solid var(--fgc-line); color:var(--fgc-text); font-size:.82rem; font-weight:600; text-decoration:none; }
html.fgc-site .fg-ord .on,html.fgc-site .fg-ord .active{ background:var(--fgc-accent); color:#fff; border-color:var(--fgc-accent); }
html.fgc-site .pagination-sexy{ background:transparent; }
html.fgc-site .page-btn,html.fgc-site .page-num{ border-radius:12px!important; background:var(--fgc-card)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-site .page-num.active,html.fgc-site .page-num.current{ background:var(--fgc-accent)!important; color:#fff!important; border-color:var(--fgc-accent)!important; }
html.fgc-site .empty-state{ background:var(--fgc-card); border-radius:var(--fgc-r); margin:0 8px; }

/* ---------- accesso / registrazione ---------- */
html.fgc-site .auth-page{ padding:16px 8px 40px; min-height:0; }
html.fgc-site .auth-box{ border-radius:var(--fgc-r); border:0; box-shadow:var(--fgc-shadow); padding:28px 22px; background:var(--fgc-card); color:var(--fgc-text); }
html.fgc-site .auth-box h2{ font-family:'Playfair Display',serif; }
html.fgc-site .form-group input,html.fgc-site .form-group select,html.fgc-site .form-group textarea{ background:var(--fgc-bg2); border:1.5px solid transparent!important; border-radius:14px!important; padding:13px 15px; color:var(--fgc-text); }
html.fgc-site .form-group input:focus{ border-color:var(--fgc-accent)!important; background:var(--fgc-card); }
html.fgc-site .form-group label{ font-size:.78rem; text-transform:uppercase; letter-spacing:.5px; color:var(--fgc-text2); }
html.fgc-site .link-primary,html.fgc-site .back-link{ color:var(--fgc-accent); font-weight:600; }
html.fgc-site .code-digit{ border-radius:12px; border:1.5px solid var(--fgc-line); background:var(--fgc-bg2); }

/* ---------- footer ---------- */
html.fgc-site .site-footer{ background:var(--fgc-card); color:var(--fgc-text2); border-top:1px solid var(--fgc-line); margin-top:30px; padding:28px 0 calc(28px + var(--fgc-bottom)); }
html.fgc-site .site-footer a{ color:var(--fgc-text); }
html.fgc-site .site-footer .wrap{ line-height:1.9; font-size:.9rem; }

/* ---------- elementi flottanti: cookie, FAB assistente, push ---------- */
html.fgc-site #cookie-banner{ left:10px!important; right:10px!important; bottom:calc(var(--fgc-bottom) + 10px + env(safe-area-inset-bottom,0px))!important; width:auto!important; max-width:520px; margin:0 auto; border-radius:var(--fgc-r)!important; background:var(--fgc-ink)!important; color:#fff; box-shadow:0 20px 50px rgba(0,0,0,.35); padding:14px 16px!important; font-size:.85rem; line-height:1.45; }
html.fgc-site #cookie-banner button,html.fgc-site #cookie-banner a.btn{ background:var(--fgc-accent)!important; color:#fff!important; border-radius:999px!important; border:0!important; padding:9px 18px!important; font-weight:700; }
html.fgc-site #fabHubBtn,html.fgc-site .floating-ai-btn{ bottom:calc(var(--fgc-bottom) + 80px + env(safe-area-inset-bottom,0px))!important; right:16px!important; width:50px!important; height:50px!important; border-radius:16px!important; background:var(--fgc-card)!important; color:var(--fgc-accent)!important; box-shadow:var(--fgc-shadow)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-site .push-fab{ bottom:calc(var(--fgc-bottom) + 140px + env(safe-area-inset-bottom,0px))!important; }
html.fgc-site .push-fab-btn{ border-radius:16px!important; background:var(--fgc-card)!important; color:var(--fgc-accent)!important; box-shadow:var(--fgc-shadow)!important; }
html.fgc-site .mini-ai-chat{ border-radius:var(--fgc-r); overflow:hidden; bottom:calc(var(--fgc-bottom) + 80px + env(safe-area-inset-bottom,0px))!important; }

/* ---------- tablet e desktop: header completo con menu, niente barra ---------- */
@media (min-width:768px){
  html.fgc-site body{ padding-left:0!important; }
  html.fgc-site #fgcRail,html.fgc-site .fgc-create{ display:none!important; }
  html.fgc-site .site-footer{ padding-bottom:28px; }
  html.fgc-site #cookie-banner{ left:auto!important; right:20px!important; bottom:20px!important; margin:0; }
  html.fgc-site #fabHubBtn,html.fgc-site .floating-ai-btn{ bottom:24px!important; right:24px!important; }
  html.fgc-site .push-fab{ bottom:90px!important; }
  html.fgc-site .mini-ai-chat{ bottom:24px!important; }
  html.fgc-site .mobile-menu-toggle{ display:none; }
  html.fgc-site .site-header .wrap{ max-width:1240px; gap:14px; min-height:68px; }
  html.fgc-site .site-header .brand{ font-size:1.7rem; }
  html.fgc-site .main-nav{ display:flex; align-items:center; gap:4px; flex-wrap:nowrap; margin-left:auto; }
  html.fgc-site .main-nav .dropdown{ display:block; }
  html.fgc-site .main-nav .dropdown-menu{ left:auto; right:0; min-width:230px; }
  html.fgc-site .main-nav .dropdown-menu a{ font-size:.95rem; }
  html.fgc-site .main-nav > a,html.fgc-site .main-nav .dropdown-toggle{ background:transparent!important; color:var(--fgc-text)!important; border:0!important; box-shadow:none!important; border-radius:12px!important; padding:10px 14px!important; font-weight:600!important; font-size:1rem!important; flex:0 0 auto; overflow:visible; text-decoration:none; white-space:nowrap; transition:background .15s,color .15s; text-shadow:none!important; }
  html.fgc-site .main-nav > a:hover,html.fgc-site .main-nav .dropdown-toggle:hover,html.fgc-site .main-nav > a.active{ background:var(--fgc-soft)!important; color:var(--fgc-accent)!important; }
  html.fgc-site .main-nav .btn-primary-small{ background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2))!important; color:#fff!important; border-radius:999px!important; padding:9px 16px!important; margin-left:6px; }
  html.fgc-site .main-nav .dropdown-menu,html.fgc-site .ai-dropdown-menu{ border-radius:var(--fgc-r); border:1px solid var(--fgc-line); box-shadow:0 18px 40px -16px rgba(43,36,32,.35); background:var(--fgc-card); padding:8px; }
  html.fgc-site .main-nav .dropdown-menu a{ border-radius:10px; padding:9px 12px; color:var(--fgc-text); }
  html.fgc-site .main-nav .dropdown-menu a:hover{ background:var(--fgc-soft); color:var(--fgc-accent); }
  html.fgc-site .hero{ aspect-ratio:auto; height:62vh; min-height:420px; max-height:640px; margin:16px auto 0; max-width:1240px; }
  html.fgc-site .hero .overlay{ padding:48px 56px; max-width:640px; }
  html.fgc-site .section-title{ text-align:center; }
  html.fgc-site .category-grid{ grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; padding:0; }
  html.fgc-site .grid{ gap:18px; padding:1.4rem 0 2.6rem; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); }
  html.fgc-site .filters-bar,html.fgc-site .search-form{ margin:0 0 12px; padding:14px 16px; }
  html.fgc-site .auth-page{ padding:50px 20px 70px; }
  html.fgc-site .auth-box{ padding:40px 36px; }
}
@media (min-width:1100px){
  html.fgc-site .main-nav > a,html.fgc-site .main-nav .dropdown-toggle{ padding:9px 13px!important; font-size:.92rem!important; }
}
@media (max-width:767px){
  html.fgc-site .main-nav{ display:none!important; }
}

/* rifiniture */
html.fgc-site .page-header{ border-bottom:0!important; margin-bottom:8px!important; padding:14px 16px 4px!important; align-items:flex-start!important; text-align:left!important; }
html.fgc-site .page-header .section-title{ font-size:1.5rem; padding:0; color:var(--fgc-text)!important; }
html.fgc-site .filters-bar .search-form{ box-shadow:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
html.fgc-site .filters-bar .fg-in{ background:var(--fgc-bg2)!important; color:var(--fgc-text)!important; -webkit-text-fill-color:var(--fgc-text)!important; }
html.fgc-site #cookie-banner{ padding-right:74px!important; text-align:left!important; }
html.fgc-site .hero .overlay h1{ font-size:clamp(2rem,8vw,3.4rem); }
@media (min-width:768px){
  html.fgc-site .page-header{ padding:20px 0 6px!important; }
  html.fgc-site .page-header .section-title{ font-size:2rem; }
  html.fgc-site .filters-bar .search-form{ flex-direction:row; flex-wrap:wrap; align-items:center; }
  html.fgc-site .filters-bar .fg-in{ flex:1 1 220px; }
}

html.fgc-site .fgc-create{ display:none!important; }
html.fgc-site body{ overflow-x:hidden; }

/* campanella notifiche: icona visibile sul fondo chiaro */
html.fgc-site .push-fab-btn .bell-icon{ color:var(--fgc-accent)!important; }
html.fgc-site .push-fab-btn{ border:1px solid var(--fgc-line)!important; }

@media (min-width:768px){ html.fgc-site .main-nav a::before,html.fgc-site .main-nav a::after{ display:none!important; } }

/* ---------- pulsanti morbidi nelle card e nella paginazione ---------- */
html.fgc-site .card .btn-primary,html.fgc-site .card a.btn-primary,html.fgc-site .card button.btn-primary{ background:var(--fgc-soft)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line)!important; box-shadow:none; font-weight:700; }
html.fgc-site .card .btn-primary:hover{ background:var(--fgc-bg2)!important; color:var(--fgc-accent)!important; }
html.fgc-site .pagination-sexy,html.fgc-site .pagination-main,html.fgc-site .pagination-quick-jump{ background:transparent!important; box-shadow:none!important; border:0!important; }
html.fgc-site .page-btn,html.fgc-site .page-num,html.fgc-site .pagination-quick-jump button,html.fgc-site .pagination-quick-jump a{ background:var(--fgc-soft)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line)!important; border-radius:999px!important; box-shadow:none!important; font-weight:700; background-image:none!important; }
html.fgc-site .page-num.active,html.fgc-site .page-num.current,html.fgc-site .page-num[aria-current]{ background:var(--fgc-accent)!important; color:#fff!important; border-color:var(--fgc-accent)!important; }
html.fgc-site .page-info-sexy{ background:var(--fgc-card)!important; border:1px solid var(--fgc-line)!important; border-radius:999px!important; box-shadow:none!important; color:var(--fgc-text2); }
html.fgc-site .page-info-sexy *{ color:inherit!important; }
html.fgc-site .fg-cerca button,html.fgc-site .search-form button[type=submit]{ background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2))!important; color:#fff!important; border:0!important; border-radius:999px!important; font-weight:700; }

/* ---------- bandierine tonde ---------- */
html.fgc-site .lang-pick__btn{ gap:8px; padding:6px 10px 6px 6px; border-radius:999px; }
html.fgc-site .lang-pick__flag,html.fgc-site .lang-pick__item img,html.fgc-site .mobile-lang-flags img,html.fgc-site .desktop-lang-flags img{ width:26px!important; height:26px!important; border-radius:50%!important; object-fit:cover!important; box-shadow:0 0 0 2px var(--fgc-card),0 1px 4px rgba(0,0,0,.25); }
html.fgc-site .lang-pick__panel{ border-radius:var(--fgc-r)!important; border:1px solid var(--fgc-line)!important; box-shadow:0 18px 40px -16px rgba(43,36,32,.35)!important; padding:8px!important; background:var(--fgc-card)!important; }
html.fgc-site .lang-pick__item{ border-radius:12px; gap:10px; padding:8px 10px; }
html.fgc-site .lang-pick__item--now{ background:var(--fgc-soft)!important; color:var(--fgc-accent); }
html.fgc-site .mobile-lang-flags{ display:grid!important; grid-template-columns:repeat(6,1fr); gap:10px 6px; justify-items:center; padding:6px 4px 12px; }
html.fgc-site .mobile-lang-flags a{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--fgc-soft); }
html.fgc-site .mobile-lang-flags img{ width:28px!important; height:28px!important; box-shadow:none; }

/* ---------- hub unico (telefono) ---------- */
html.fgc-hub .fgc-hub-btn{ display:none; }
@media (max-width:767px){
  html.fgc-hub #fabHubBtn,html.fgc-hub .push-fab,html.fgc-hub .floating-ai-btn,html.fgc-hub .dopamine-fab-container,html.fgc-hub .theme-toggle{ display:none!important; }
  html.fgc-hub .fgc-hub-btn{ display:flex; position:fixed; right:14px; bottom:calc(var(--fgc-bottom) + 14px + env(safe-area-inset-bottom,0px)); z-index:97; width:54px; height:54px; border-radius:18px; border:1px solid var(--fgc-line); background:var(--fgc-card); color:var(--fgc-accent); box-shadow:0 10px 24px -10px rgba(43,36,32,.5); align-items:center; justify-content:center; cursor:pointer; transition:transform .2s; }
  html.fgc-hub .fgc-hub-btn::before{ content:''; width:26px; height:26px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8M4 12h16'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8M4 12h16'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E") center/contain no-repeat; }
  html.fgc-hub-open .fgc-hub-btn{ transform:rotate(90deg); background:var(--fgc-accent); color:#fff; }
  html.fgc-hub .fgc-hub-pan{ position:fixed; right:14px; bottom:calc(var(--fgc-bottom) + 78px + env(safe-area-inset-bottom,0px)); z-index:97; display:flex; flex-direction:column; align-items:flex-end; gap:8px; opacity:0; pointer-events:none; transform:translateY(10px) scale(.96); transform-origin:bottom right; transition:opacity .18s,transform .18s; }
  html.fgc-hub-open .fgc-hub-pan{ opacity:1; pointer-events:auto; transform:none; }
  html.fgc-hub .fgc-hub-it{ display:flex; align-items:center; gap:10px; border:1px solid var(--fgc-line); background:var(--fgc-card); color:var(--fgc-text); border-radius:999px; padding:10px 16px 10px 12px; font:inherit; font-weight:700; font-size:.9rem; box-shadow:0 10px 24px -12px rgba(43,36,32,.45); cursor:pointer; }
  html.fgc-hub .fgc-hub-it::before{ content:''; width:20px; height:20px; background:var(--fgc-accent); -webkit-mask:var(--fgc-i) center/contain no-repeat; mask:var(--fgc-i) center/contain no-repeat; }
  html.fgc-hub .fgc-hub-theme{ --fgc-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5z'/%3E%3C/svg%3E"); }
  html.fgc-hub .fgc-hub-ai{ --fgc-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
  html.fgc-hub .fgc-hub-notif{ --fgc-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l2 2H4z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }
  html.fgc-hub .fgc-hub-gam{ --fgc-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
}

/* ---------- prestazioni su telefono: niente sfocature, ombre leggere ---------- */
@media (max-width:767px){
  html.fgc-site .site-header{ -webkit-backdrop-filter:none; backdrop-filter:none; background:var(--fgc-card); }
  html.fgc{ --fgc-shadow:0 1px 3px rgba(43,36,32,.08); }
  html.fgc-site .card:hover{ transform:none; }
}
html.fgc-site .btn-secondary:hover,html.fgc-site .btn-secondary:active{ background:var(--fgc-bg2)!important; color:var(--fgc-accent)!important; }
html.fgc-site .hero .btn-primary::before,html.fgc-site .hero .btn-primary::after,html.fgc-site .hero .btn-secondary::before,html.fgc-site .hero .btn-secondary::after{ display:none!important; }
html.fgc-site .mobile-dropdown-toggle,html.fgc-site .ai-dropdown-toggle{ font-weight:600; }

/* ---------- tema scuro delle pagine del sito (body.dark-mode) ---------- */
html.fgc-site{ --card:var(--fgc-card); --border:var(--fgc-line); }
html.fgc-site.fgc-dark body.dark-mode{ background:var(--fgc-page)!important; color:var(--fgc-text)!important; }
html.fgc-site body.dark-mode .site-header{ background:var(--fgc-card)!important; border-bottom:1px solid var(--fgc-line)!important; box-shadow:none!important; }
html.fgc-site body.dark-mode .site-header .main-nav > a:not(.btn-primary-small),html.fgc-site body.dark-mode .site-header .dropdown-toggle{ color:var(--fgc-text)!important; background:transparent!important; border:0!important; }
html.fgc-site body.dark-mode .site-header .main-nav > a.btn-primary-small{ color:#fff!important; background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2))!important; }
html.fgc-site body.dark-mode .theme-toggle,html.fgc-site body.dark-mode .mobile-menu-toggle{ background:var(--fgc-soft)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-site body.dark-mode .main-nav .dropdown,html.fgc-site body.dark-mode .main-nav .fgc-more{ background:transparent!important; border:0!important; }
html.fgc-site body.dark-mode .main-nav .dropdown-menu{ background:var(--fgc-card)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-site body.dark-mode .main-nav .dropdown-menu a{ color:var(--fgc-text)!important; }
html.fgc-site body.dark-mode .hero{ background:#222!important; }
html.fgc-site body.dark-mode .hero .slides{ background:transparent!important; }
html.fgc-site body.dark-mode .hero .overlay{ background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(10,8,7,.78))!important; }
html.fgc-site .hero a.btn-primary,html.fgc-site body.dark-mode .hero a.btn-primary{ color:#fff!important; background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2))!important; opacity:1!important; }
html.fgc-site body.dark-mode .card,html.fgc-site body.dark-mode .category-card,html.fgc-site body.dark-mode .fg-best a,html.fgc-site body.dark-mode .filters-bar,html.fgc-site body.dark-mode .auth-box,html.fgc-site body.dark-mode .empty-state{ background:var(--fgc-card)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-site body.dark-mode .categories,html.fgc-site body.dark-mode main,html.fgc-site body.dark-mode section{ background-color:transparent!important; }
html.fgc-site body.dark-mode .btn-secondary{ background:var(--fgc-soft)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-site body.dark-mode .site-footer{ background:var(--fgc-card)!important; }
html.fgc-site body.dark-mode input,html.fgc-site body.dark-mode select,html.fgc-site body.dark-mode textarea{ background:var(--fgc-bg2)!important; color:var(--fgc-text)!important; border-color:transparent!important; }
html.fgc-site .category-card img{ border-radius:50%; }

/* ---------- niente icone emoji nella sezione "Le migliori" e nei menu ---------- */
html.fgc-site .fg-best .e,html.fgc-site .ai-dropdown-icon,html.fgc-site .mobile-menu .category-icon,html.fgc-site .dropdown-menu .category-icon{ display:none!important; }
html.fgc-site .fg-best a{ padding:14px 16px!important; border-radius:var(--fgc-r)!important; box-shadow:var(--fgc-shadow); border:1px solid var(--fgc-line)!important; }
html.fgc-site .fg-best .t{ font-size:1rem!important; }
html.fgc-site .fg-best h2{ font-family:'Playfair Display',serif; font-size:1.3rem!important; }

/* ---------- foglio "I tuoi progressi" ---------- */
#fgcProg{ position:fixed; inset:0; z-index:1250; display:none; align-items:flex-end; justify-content:center; background:rgba(20,14,12,.45); }
#fgcProg.open{ display:flex; }
#fgcProg .fgc-sh{ width:100%; max-width:520px; background:var(--fgc-card); color:var(--fgc-text); border-radius:24px 24px 0 0; padding:10px 16px calc(22px + env(safe-area-inset-bottom,0px)); box-shadow:0 -10px 40px rgba(0,0,0,.25); font-family:Inter,-apple-system,system-ui,sans-serif; }
#fgcProg .fgc-grip{ width:40px; height:4px; border-radius:2px; background:var(--fgc-line); margin:0 auto 14px; }
#fgcProg .fgc-prog-vuoto{ margin:4px 0 14px; color:var(--fgc-text2); }
#fgcProg button{ font:inherit; color:inherit; cursor:pointer; text-align:left; }
#fgcProg .fgc-prog-lvl{ display:flex; gap:14px; align-items:center; width:100%; border:1px solid var(--fgc-line); background:var(--fgc-soft); border-radius:var(--fgc-r); padding:14px; margin-bottom:10px; }
#fgcProg .fgc-prog-lvl .n{ flex:0 0 58px; height:58px; border-radius:50%; background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2)); color:#fff; font-weight:800; font-size:1.5rem; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 18px -8px rgba(212,112,95,.9); }
#fgcProg .fgc-prog-lvl .t{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
#fgcProg .fgc-prog-lvl b{ font-size:1.05rem; }
#fgcProg small{ color:var(--fgc-text2); font-size:.78rem; }
#fgcProg .bar{ display:block; height:8px; border-radius:4px; background:var(--fgc-line); overflow:hidden; margin:4px 0 2px; }
#fgcProg .bar i{ display:block; height:100%; background:linear-gradient(90deg,var(--fgc-accent),#f2a65a); border-radius:4px; }
#fgcProg .fgc-prog-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#fgcProg .fgc-prog-it{ display:flex; flex-direction:column; gap:2px; border:1px solid var(--fgc-line); background:var(--fgc-card); border-radius:16px; padding:14px; position:relative; }
#fgcProg .fgc-prog-it b{ font-size:1.25rem; font-weight:800; padding-left:30px; }
#fgcProg .fgc-prog-it span{ font-size:.78rem; color:var(--fgc-text2); padding-left:30px; }
#fgcProg .fgc-prog-it::before{ content:''; position:absolute; left:14px; top:17px; width:22px; height:22px; background:var(--fgc-accent); -webkit-mask:var(--fgc-i) center/contain no-repeat; mask:var(--fgc-i) center/contain no-repeat; }
#fgcProg .fgc-prog-fuoco{ --fgc-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2c1 4 5 5.5 5 10a5 5 0 0 1-10 0c0-2 1-3.5 2-4.5 0 2 1 3 2 3 0-3-1-5 1-8.5z'/%3E%3C/svg%3E"); }
#fgcProg .fgc-prog-coins{ --fgc-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9.5 9.5h3.5a1.75 1.75 0 0 1 0 3.5h-2a1.75 1.75 0 0 0 0 3.5h3.5'/%3E%3C/svg%3E"); }
#fgcProg .fgc-prog-shop{ --fgc-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l1 14H5z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E"); }
#fgcProg .fgc-prog-lb{ --fgc-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
#fgcProg .fgc-pill{ display:inline-flex; padding:11px 20px; border-radius:999px; text-decoration:none; }

/* i pannelli nuovi restano col loro colore anche sotto il vecchio tema scuro (che dipinge di nero ogni div e bottone) */
#fgcProg{ background:rgba(20,14,12,.45)!important; }
#fgcProg .fgc-sh,#fgcSheet .fgc-sh{ background:var(--fgc-card)!important; color:var(--fgc-text)!important; }
#fgcProg .fgc-grip,#fgcSheet .fgc-grip{ background:var(--fgc-line)!important; }
#fgcProg .fgc-prog-lvl{ background:var(--fgc-soft)!important; border:1px solid var(--fgc-line)!important; color:var(--fgc-text)!important; }
#fgcProg .fgc-prog-it{ background:var(--fgc-card)!important; border:1px solid var(--fgc-line)!important; color:var(--fgc-text)!important; }
#fgcProg .fgc-prog-lvl .n{ background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2))!important; color:#fff!important; }
#fgcProg .bar{ background:var(--fgc-line)!important; }
#fgcProg .bar i{ background:linear-gradient(90deg,var(--fgc-accent),#f2a65a)!important; }
#fgcSheet{ background:rgba(20,14,12,.45)!important; }
#fgcSheet a{ background:var(--fgc-soft)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-hub .fgc-hub-pan{ background:transparent!important; }
html.fgc-hub .fgc-hub-it{ background:var(--fgc-card)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-hub .fgc-hub-btn{ background:var(--fgc-card)!important; color:var(--fgc-accent)!important; border:1px solid var(--fgc-line)!important; }
html.fgc-hub-open .fgc-hub-btn{ background:var(--fgc-accent)!important; color:#fff!important; }
html.fgc #fgcRail .fgc-create{ background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2))!important; border:0!important; }
html.fgc-dark #fgcRail{ background:var(--fgc-card)!important; }

/* telefono: la vecchia barra del gioco in basso (fiamma, shop, livello, monete) e' dentro "I tuoi progressi" */
@media (max-width:767px){
  .gamification-mobile-bar,.dopamine-xp-bar-mobile,.fg-gam-mobile-bar{ display:none!important; }
}

/* ==========================================================================
   PAGINE SINGOLE (stesso stile ovunque): post condiviso, ricette salvate, 404, chi siamo
   ========================================================================== */
/* --- post.php: scheda come nell'app --- */
html.fgc-site main.fgc-post{ max-width:560px!important; margin:18px auto 28px!important; padding:0!important; background:var(--fgc-card)!important; border:1px solid var(--fgc-line); border-radius:var(--fgc-r); box-shadow:var(--fgc-shadow); overflow:hidden; color:var(--fgc-text); }
html.fgc-site main.fgc-post > div:first-child{ padding:12px 14px!important; margin:0!important; background:transparent!important; }
html.fgc-site main.fgc-post > div:first-child img{ width:40px!important; height:40px!important; aspect-ratio:1/1; border-radius:50%!important; object-fit:cover; box-shadow:0 0 0 2px var(--fgc-card),0 0 0 4px var(--fgc-accent); }
html.fgc-site main.fgc-post > div:first-child a{ color:var(--fgc-text)!important; text-decoration:none; }
html.fgc-site main.fgc-post > img, html.fgc-site main.fgc-post > video{ display:block; width:100%!important; max-height:72vh!important; border-radius:0!important; object-fit:cover; background:#000; }
html.fgc-site main.fgc-post > p{ margin:0!important; padding:12px 14px 4px!important; color:var(--fgc-text)!important; font-size:.95rem!important; }
html.fgc-site main.fgc-post > p strong{ color:var(--fgc-text)!important; }
html.fgc-site main.fgc-post > div:nth-last-child(2){ margin:0!important; padding:10px 14px!important; border-top:1px solid var(--fgc-line)!important; color:var(--fgc-text2)!important; background:transparent!important; }
html.fgc-site main.fgc-post > div:nth-last-child(2) span{ color:var(--fgc-text2)!important; font-weight:600; }
html.fgc-site main.fgc-post > div:last-child{ margin:0!important; padding:4px 14px 16px!important; background:transparent!important; }
html.fgc-site main.fgc-post > div:last-child a{ display:flex!important; justify-content:center; width:100%; border-radius:14px!important; color:#fff!important; padding:14px!important; }
@media (max-width:600px){ html.fgc-site main.fgc-post{ margin:0 0 20px!important; border-radius:0; border-left:0; border-right:0; box-shadow:none; } }
html.fgc-site.fgc-dark main.fgc-post{ background:var(--fgc-card)!important; }

/* --- ricette salvate --- */
html.fgc-site .saved-recipes-page .login-prompt{ background:var(--fgc-soft)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line); border-radius:var(--fgc-r)!important; }
html.fgc-site .saved-recipes-page .login-prompt a{ color:var(--fgc-accent)!important; font-weight:700; }
html.fgc-site .saved-recipes-page .stat-card{ background:var(--fgc-card)!important; border:1px solid var(--fgc-line)!important; border-radius:16px!important; box-shadow:var(--fgc-shadow)!important; }
html.fgc-site .saved-recipes-page .stat-number{ background:none!important; -webkit-text-fill-color:var(--fgc-accent)!important; color:var(--fgc-accent)!important; }
html.fgc-site .saved-recipes-page .stat-label{ color:var(--fgc-text2)!important; }
html.fgc-site .saved-recipes-page .tabs{ background:var(--fgc-soft)!important; border-radius:14px!important; padding:4px!important; gap:4px; }
html.fgc-site .saved-recipes-page .tab-btn{ border-radius:11px!important; background:transparent!important; color:var(--fgc-text2)!important; border:0!important; }
html.fgc-site .saved-recipes-page .tab-btn.active{ background:var(--fgc-card)!important; color:var(--fgc-accent)!important; box-shadow:0 1px 3px rgba(0,0,0,.12)!important; }
html.fgc-site .saved-recipes-page .empty-state, html.fgc-site .saved-recipes-page .recipe-card, html.fgc-site .saved-recipes-page .shopping-section{ background:var(--fgc-card)!important; border:1px solid var(--fgc-line)!important; border-radius:var(--fgc-r)!important; color:var(--fgc-text); }
html.fgc-site .saved-recipes-page .empty-state *{ background-color:transparent!important; }
html.fgc-site .saved-recipes-page .badge-offline{ background:#7a6a62!important; }
html.fgc-site .saved-recipes-page .badge-cloud{ background:#4f7f9a!important; }

/* --- 404 --- */
html.fgc-site .error-page{ min-height:60vh; display:flex; align-items:center; justify-content:center; padding:40px 20px!important; }
html.fgc-site .error-container{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; max-width:520px; }
html.fgc-site .error-code{ font-family:'Pacifico','Playfair Display',serif; font-weight:400; font-size:clamp(4.5rem,22vw,7rem)!important; line-height:1!important; color:var(--fgc-accent)!important; margin:0 0 6px!important; }
html.fgc-site .error-title{ font-size:1.35rem!important; color:var(--fgc-text)!important; margin:0 0 6px!important; }
html.fgc-site .error-description{ color:var(--fgc-text2)!important; margin:0 0 18px!important; }
html.fgc-site .error-actions{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
html.fgc-site .error-illustration{ display:none!important; }

/* --- chi siamo (about.php: pagina a sé) --- */
html.fgc-about{ --bg-gradient-start:#d4705f; --bg-gradient-end:#b55a4a; --card-bg:var(--fgc-card); --text-primary:var(--fgc-text); --text-secondary:var(--fgc-text2); --founder-bg-start:var(--fgc-soft); --founder-bg-end:var(--fgc-soft); --border-color:var(--fgc-line); }
html.fgc-about body, html.fgc-about body.dark-mode{ --bg-gradient-start:#d4705f; --bg-gradient-end:#b55a4a; --card-bg:var(--fgc-card); --text-primary:var(--fgc-text); --text-secondary:var(--fgc-text2); --founder-bg-start:var(--fgc-soft); --founder-bg-end:var(--fgc-soft); --border-color:var(--fgc-line); background:var(--fgc-page)!important; font-family:Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif!important; }
html.fgc-about .main-card{ border:1px solid var(--fgc-line); box-shadow:var(--fgc-shadow)!important; border-radius:var(--fgc-r)!important; }
html.fgc-about .back-button{ background:var(--fgc-card)!important; color:var(--fgc-text)!important; border:1px solid var(--fgc-line); font-weight:600; }
html.fgc-about .hero-section::before, html.fgc-about .founder-card::before{ content:none!important; }
html.fgc-about .hero-section h1{ font-family:'Pacifico','Playfair Display',serif; font-weight:400!important; }
html.fgc-about .section-title, html.fgc-about .founder-name, html.fgc-about .founder-card p strong, html.fgc-about .vision-box h3, html.fgc-about .timeline-content h4, html.fgc-about .mission-box h3, html.fgc-about .cta-section h3{ color:var(--fgc-accent)!important; }
html.fgc-about .passion-tag{ background:var(--fgc-card)!important; color:var(--fgc-accent)!important; border:1px solid var(--fgc-line); box-shadow:none!important; }
html.fgc-about .mission-box, html.fgc-about .vision-box, html.fgc-about .cta-section{ background:var(--fgc-soft)!important; border:1px solid var(--fgc-line); }
html.fgc-about .mission-box p, html.fgc-about .vision-box p, html.fgc-about .cta-section p{ color:var(--fgc-text2)!important; }
html.fgc-about .feature-icon{ display:none!important; }
html.fgc-about .feature-card{ border:1px solid var(--fgc-line)!important; }
html.fgc-about .cta-button, html.fgc-about .timeline-icon{ background:linear-gradient(135deg,var(--fgc-accent),var(--fgc-accent-2))!important; box-shadow:0 6px 16px -8px rgba(212,112,95,.9)!important; color:#fff!important; }
html.fgc-about .timeline-icon{ font-size:0!important; }
html.fgc-about .timeline-icon::after{ content:''; width:12px; height:12px; border-radius:50%; background:#fff; }
html.fgc-about .timeline::before{ background:var(--fgc-line)!important; }
html.fgc-about .timeline-content{ border:1px solid var(--fgc-line); box-shadow:none!important; }
html.fgc-about a:not(.cta-button):not(.back-button):not([class*="fgc"]){ color:var(--fgc-accent); }
/* scuro: il vecchio tema dipinge di nero ogni div, qui no */
html.fgc-site.fgc-dark body main.fgc-post div, html.fgc-site.fgc-dark body main.fgc-post span, html.fgc-site.fgc-dark body main.fgc-post p,
html.fgc-site.fgc-dark body .error-page div, html.fgc-site.fgc-dark body .error-page h1, html.fgc-site.fgc-dark body .error-page h2, html.fgc-site.fgc-dark body .error-page p,
html.fgc-site.fgc-dark body .saved-recipes-page .stat-card *, html.fgc-site.fgc-dark body .saved-recipes-page .empty-state *{ background-color:transparent!important; }
html.fgc-site.fgc-dark body .saved-recipes-page .tabs{ background:#1f1b19!important; }
html.fgc-site.fgc-dark body .saved-recipes-page .tab-btn{ background:transparent!important; color:var(--fgc-text2)!important; }
html.fgc-site.fgc-dark body .saved-recipes-page .tab-btn.active{ background:var(--fgc-card)!important; color:var(--fgc-accent)!important; }

/* ---- bottoni che erano solo emoji (microfono, foto, voce...): icona vera, stesso significato ---- */
.fgc-ico{ font-size:0!important; line-height:0!important; display:inline-flex!important; align-items:center; justify-content:center; }
.fgc-ico::before{ content:''; width:1.45rem; height:1.45rem; background:currentColor; -webkit-mask:var(--fgc-ii) center/contain no-repeat; mask:var(--fgc-ii) center/contain no-repeat; }
.phd-icon-btn.fgc-ico{ min-width:38px; min-height:38px; }
.phd-icon-btn.fgc-ico::before{ width:1.2rem; height:1.2rem; }
[data-fgc-ico=mic]{ --fgc-ii:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M12 17v5M8 22h8'/%3E%3C/svg%3E"); }
[data-fgc-ico=rec]{ --fgc-ii:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7' fill='black'/%3E%3C/svg%3E"); }
[data-fgc-ico=cam]{ --fgc-ii:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E"); }
[data-fgc-ico=vol]{ --fgc-ii:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M19 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E"); }
[data-fgc-ico=mute]{ --fgc-ii:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6'/%3E%3C/svg%3E"); }
[data-fgc-ico=stop]{ --fgc-ii:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2' fill='black'/%3E%3C/svg%3E"); }
[data-fgc-ico=clip]{ --fgc-ii:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11l-8.5 8.5a5 5 0 0 1-7-7L14 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 7'/%3E%3C/svg%3E"); }
[data-fgc-ico=img]{ --fgc-ii:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E"); }

/* ---- AI PhD: via le frecce e la maniglia della casella di testo ---- */
textarea.phd-input{ resize:none!important; scrollbar-width:none!important; -ms-overflow-style:none; overflow-y:auto; }
textarea.phd-input::-webkit-scrollbar{ display:none!important; width:0!important; height:0!important; }

/* ---- ricette: niente bollino "Admin", Modifica nel colore del sito (come "Aggiungi Ricetta") ---- */
.recipes-page .admin-badge, .card > .admin-badge{ display:none!important; }
html.fgc-site .admin-actions .btn-edit, html.fgc-site .admin-actions a.btn-edit{ background:linear-gradient(135deg,var(--fgc-accent,#d4705f),var(--fgc-accent-2,#b55a4a))!important; color:#fff!important; border:0!important; box-shadow:0 6px 14px -8px rgba(212,112,95,.9)!important; }
html.fgc-site .admin-actions .btn-delete{ background:transparent!important; color:#c0392b!important; border:1.5px solid rgba(192,57,43,.45)!important; box-shadow:none!important; }
html.fgc-site .admin-actions .btn-delete:hover{ background:rgba(192,57,43,.08)!important; }
html.fgc-site.fgc-dark .admin-actions .btn-delete{ color:#ff8a7a!important; border-color:rgba(255,138,122,.5)!important; }

/* ---- paginazione accorciata: i puntini ---- */
.fgc-pag .fgc-dots{ display:inline-flex; align-items:center; justify-content:center; min-width:28px; color:var(--fgc-accent,#d4705f); font-weight:800; }
.fgc-pag{ flex-wrap:wrap!important; justify-content:center!important; }

/* ---- recipes.php: Modifica / Elimina tondi ---- */
html.fgc-site .admin-actions .btn-edit, html.fgc-site .admin-actions .btn-delete{ border-radius:999px!important; display:inline-flex!important; align-items:center; justify-content:center; padding:10px 16px!important; font-weight:700!important; }

/* ---- pagina ricetta: tutti i bottoni nello stesso colore (come Modifica e Salva modifiche), tondi ---- */
html.fgc-site .recipe-actions{ display:flex!important; flex-wrap:wrap; gap:10px!important; align-items:center; justify-content:center; }
html.fgc-site .recipe-actions > a, html.fgc-site .recipe-actions > button, html.fgc-site .recipe-actions .fg-auth > button, html.fgc-site .recipe-actions .fg-anon > a,
html.fgc-site .pwa-btn, html.fgc-site .btn-edit, html.fgc-site .recipe-hero .btn-delete ~ .btn-edit{
  background:linear-gradient(135deg,var(--fgc-accent,#d4705f),var(--fgc-accent-2,#b55a4a))!important; color:#fff!important; border:0!important; border-radius:999px!important;
  padding:12px 20px!important; font:700 .92rem/1.1 Inter,system-ui,sans-serif!important; letter-spacing:0!important; text-transform:none!important;
  box-shadow:0 8px 18px -10px rgba(212,112,95,.9)!important; display:inline-flex!important; align-items:center; justify-content:center; gap:8px; min-height:46px; text-decoration:none!important; animation:none!important; transition:transform .15s ease, filter .15s ease!important; }
html.fgc-site .recipe-actions > a:hover, html.fgc-site .recipe-actions button:hover, html.fgc-site .pwa-btn:hover{ transform:translateY(-1px); filter:brightness(1.05); }
html.fgc-site .recipe-actions > a.btn-secondary{ background:var(--fgc-soft,#fbf3ef)!important; color:var(--fgc-text,#262626)!important; border:1px solid var(--fgc-line,#e6ddd6)!important; box-shadow:none!important; }
html.fgc-site .recipe-actions .heart-icon, html.fgc-site .recipe-actions .cook-icon, html.fgc-site .pwa-btn > span:first-child:not(:last-child){ display:none!important; }
html.fgc-site .recipe-actions .fg-auth, html.fgc-site .recipe-actions .fg-anon{ gap:10px; flex-wrap:wrap; }
html.fgc-site .recipe-actions .fg-auth[style*="inline"], html.fgc-site .recipe-actions .fg-auth[style*="flex"]{ display:inline-flex!important; }
/* riquadri "Funzioni Offline" e "Valuta": carte pulite al posto dei gradienti */
html.fgc-site .pwa-buttons-grid{ gap:10px!important; }
html.fgc-site .pwa-info-box{ background:var(--fgc-soft,#fbf3ef)!important; border-left-color:var(--fgc-accent,#d4705f)!important; color:var(--fgc-text)!important; }
html.fgc-site .pwa-buttons-grid{ grid-template-columns:repeat(auto-fit,minmax(200px,1fr))!important; }
html.fgc-site .pwa-offline-actions, html.fgc-site .pwa-rating-section{ background:var(--fgc-card,#fff)!important; border:1px solid var(--fgc-line,#e6ddd6)!important; box-shadow:var(--fgc-shadow)!important; border-radius:var(--fgc-r,18px)!important; }
html.fgc-site .pwa-offline-actions h3, html.fgc-site .pwa-rating-section h3{ color:var(--fgc-text,#262626)!important; }
html.fgc-site .pwa-offline-actions h3 > span:first-child:not(:last-child), html.fgc-site .pwa-rating-section h3 > span:first-child:not(:last-child){ display:none!important; }

/* ---- modifica ricetta: via il viola, il colore del sito ---- */
html.fgc-site .admin-notice, html.fgc-site .emoji-picker-btn, html.fgc-site .btn-add, html.fgc-site .btn-primary,
html.fgc-site .file-upload-input::file-selector-button{ background:linear-gradient(135deg,var(--fgc-accent,#d4705f),var(--fgc-accent-2,#b55a4a))!important; color:#fff!important; border:0!important; }
html.fgc-site .btn-add{ border-radius:999px!important; min-height:46px; font-weight:700!important; box-shadow:0 8px 18px -10px rgba(212,112,95,.9)!important; }
html.fgc-site .form-section{ border-left-color:var(--fgc-accent,#d4705f)!important; }
html.fgc-site .ql-editor img:hover{ border-color:var(--fgc-accent,#d4705f)!important; }
html.fgc-site .ingredient-toolbar button:hover{ background:var(--fgc-accent,#d4705f)!important; color:#fff!important; }
html.fgc-site input[name="galleria[]"]{ display:block; width:100%!important; box-sizing:border-box; padding:12px 14px!important; border:1px solid var(--fgc-line,#e6ddd6)!important; border-radius:12px!important; background:var(--fgc-soft,#fbf3ef)!important; color:var(--fgc-text,#262626)!important; font:500 .95rem/1.3 Inter,system-ui,sans-serif!important; }
