/* BIONATOO - CSS Principale
 * Versione: 2.8
 * Data: 2026-06-19
 * Modifiche: navbar alta 72px con tagline, ricerca centrale, stats a destra,
 *            studio del giorno sfondo bianco, immagine reale per area con fallback SVG,
 *            hero rimosso dalla homepage, area pills strip, fix mobile archivio
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0057b8; --blue-dark: #003d82; --green: #00b89c; --green-dark: #00875a;
  --orange: #f5a623; --bg: #f4f6f9; --white: #ffffff; --text: #1a1a2e;
  --text-light: #666; --border: #e8eaf0;
  --shadow: 0 2px 8px rgba(0,0,0,0.07); --shadow-h: 0 6px 20px rgba(0,87,184,0.13);
  --radius: 12px; --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══ NAVBAR ═══════════════════════════════════════════════════════════ */
.bio-nav { background: var(--white); border-bottom: 2px solid var(--blue); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 999; }
.bio-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; height: 72px; }

/* Logo + tagline */
.bio-logo-wrap { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; text-decoration: none !important; }
.bio-logo { font-size: 24px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; text-decoration: none !important; line-height: 1.1; }
.bio-logo span { color: var(--green); }
.bio-logo-tagline { font-size: 12px; color: var(--text-light); font-weight: 600; line-height: 1.3; max-width: 260px; }

/* Search al centro */
.bio-nav-search-wrap { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.bio-nav-search-toggle { background: #f0f5ff; border: 1px solid #d6e4ff; border-radius: 20px; padding: 8px 18px; font-size: 13px; color: var(--blue); cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: inherit; transition: background 0.15s; }
.bio-nav-search-toggle:hover { background: #e2ecff; }
.bio-nav-search { display: none; position: absolute; top: 44px; left: 50%; transform: translateX(-50%); width: min(520px, 90vw); background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 10px; z-index: 1001; }
.bio-nav-search.open { display: block; }
.bio-nav-search form { display: flex; gap: 8px; }
.bio-nav-search input[type="search"] { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; font-size: 14px; color: var(--text); outline: none; }
.bio-nav-search input[type="search"]:focus { border-color: var(--blue); }
.bio-nav-search button { background: var(--blue); color: var(--white); border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 13px; white-space: nowrap; }

/* Stats a destra della ricerca */
.bio-nav-stats { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bio-nav-stat { font-size: 11px; font-weight: 700; color: var(--text-light); }
.bio-nav-stat-sep { color: var(--border); font-size: 13px; }

/* Dropdown Argomenti */
.bio-nav-links { display: flex; gap: 24px; align-items: center; flex-shrink: 0; }
.bio-nav-links a { font-size: 13px; font-weight: 500; color: #444; text-decoration: none; }
.bio-nav-dropdown { position: relative; }
.bio-nav-dropdown-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); background: #f0f5ff; border: 1px solid #d6e4ff; cursor: pointer; padding: 7px 14px; border-radius: 20px; font-family: inherit; transition: background 0.15s; }
.bio-nav-dropdown-toggle:hover { background: #e2ecff; }
.bio-dropdown-arrow { font-size: 10px; transition: transform 0.15s; }
.bio-nav-dropdown-menu { display: none; position: absolute; top: 42px; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 10px; width: 280px; z-index: 1000; grid-template-columns: 1fr; gap: 2px; }
.bio-nav-dropdown-menu.open { display: grid; }
.bio-nav-dropdown-menu a { display: flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: 13px; color: #444; border-radius: 8px; white-space: nowrap; }
.bio-nav-dropdown-menu a:hover { background: #f8faff; color: var(--blue); }

/* ═══ STUDIO DEL GIORNO ═════════════════════════════════════════════════ */
.bio-featured-wrap { background: var(--white); padding: 28px 24px; border-bottom: 3px solid var(--green); border-top: 3px solid var(--green); }
.bio-featured-inner { max-width: 1200px; margin: 0 auto; }
.bio-featured-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--green-dark); margin-bottom: 16px; }
.bio-featured-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: bio-pulse 2s infinite; flex-shrink: 0; }
@keyframes bio-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(0.85); } }
.bio-featured-layout { display: flex; gap: 40px; align-items: flex-start; }
.bio-featured-body { flex: 1; min-width: 0; }
.bio-featured-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bio-featured-emoji { font-size: 20px; }
.bio-featured-title { font-size: 24px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; color: var(--text); }
.bio-featured-title a { color: var(--text); text-decoration: none; }
.bio-featured-title a:hover { color: var(--blue); }
.bio-featured-sintesi { font-size: 14px; color: #444; line-height: 1.75; margin-bottom: 16px; }
.bio-featured-cosa { background: #f0fff8; border-left: 3px solid var(--green); padding: 12px 16px; border-radius: 0 8px 8px 0; margin-bottom: 18px; }
.bio-featured-cosa-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--green-dark); display: block; margin-bottom: 6px; }
.bio-featured-cosa p { font-size: 13px; color: #444; line-height: 1.65; }
.bio-featured-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bio-featured-source { font-size: 12px; color: #888; font-weight: 600; }
.bio-featured-date { font-size: 12px; color: #aaa; }
.bio-featured-cta { display: inline-block; background: var(--green); color: var(--white) !important; padding: 9px 22px; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: background 0.15s; margin-left: auto; }
.bio-featured-cta:hover { background: var(--green-dark); }
.bio-featured-illustration { flex-shrink: 0; width: 220px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bio-featured-img { width: 220px; height: 148px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); display: block; }
.bio-featured-svg svg { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 16px rgba(0,184,156,0.15); }

/* ═══ HERO SLIM ══════════════════════════════════════════════════════════ */
.bio-hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 55%, var(--green) 100%); padding: 40px 24px 36px; color: var(--white); text-align: center; position: relative; overflow: hidden; }
.bio-hero-slim { padding: 32px 24px 28px; }
.bio-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.bio-hero::after { content: ''; position: absolute; bottom: -70px; left: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(0,184,156,0.12); }
.bio-hero-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; padding: 5px 16px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; position: relative; z-index: 1; }
.bio-hero h1 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; max-width: 580px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.bio-hero h1 em { color: #7ee8d8; font-style: normal; }
.bio-hero p { font-size: 15px; opacity: 0.88; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.65; position: relative; z-index: 1; }

/* ═══ AREA PILLS STRIP ═══════════════════════════════════════════════════ */
.bio-areas-strip-wrap { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 24px; }
.bio-areas-strip { max-width: 1200px; margin: 0 auto; display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; flex-wrap: wrap; }
.bio-areas-strip::-webkit-scrollbar { display: none; }
.bio-area-pill { display: inline-flex; align-items: center; gap: 5px; background: #f4f6f9; border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: #444; text-decoration: none !important; white-space: nowrap; transition: all 0.15s; }
.bio-area-pill:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.bio-area-pill-count { font-size: 10px; background: rgba(0,0,0,0.08); border-radius: 10px; padding: 1px 6px; font-weight: 700; }
.bio-area-pill:hover .bio-area-pill-count { background: rgba(255,255,255,0.2); }

/* ═══ LAYOUT ═════════════════════════════════════════════════════════════ */
.bio-section { padding: 40px 24px; max-width: 1200px; margin: 0 auto; }
.bio-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.bio-section-title { font-size: 20px; font-weight: 800; }
.bio-section-sub { font-size: 13px; color: var(--text-light); margin-top: 3px; }
.bio-view-all { font-size: 13px; color: var(--blue); font-weight: 700; }
.bio-divider { height: 1px; background: var(--border); margin: 0 24px; }

/* ═══ CARD STUDI ══════════════════════════════════════════════════════════ */
.bio-studies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bio-study-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--blue); transition: all 0.22s; display: block; color: var(--text); text-decoration: none !important; }
.bio-study-card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.bio-study-card.green { border-left-color: var(--green); }
.bio-study-card.orange { border-left-color: var(--orange); }
.bio-card-meta { display: flex; gap: 7px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.bio-tag { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.bio-tag-blue { background: #e8f0fb; color: var(--blue); }
.bio-tag-green { background: #e6faf6; color: var(--green-dark); }
.bio-tag-orange { background: #fff4e0; color: #b86800; }
.bio-tag-grey { background: #f0f0f0; color: #555; }
.bio-card-title { font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.bio-card-excerpt { font-size: 12px; color: var(--text-light); line-height: 1.55; margin-bottom: 12px; }
.bio-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; }
.bio-card-source { font-size: 11px; color: #888; font-weight: 600; }
.bio-card-date { font-size: 11px; color: #aaa; }
.bio-read-more { font-size: 11px; color: var(--blue); font-weight: 700; }

/* ═══ CATEGORIA ══════════════════════════════════════════════════════════ */
.bio-cat-hero { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); padding: 36px 32px; color: var(--white); }
.bio-cat-breadcrumb { font-size: 11px; opacity: 0.65; margin-bottom: 12px; }
.bio-cat-breadcrumb a { color: rgba(255,255,255,0.8); }
.bio-cat-title-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.bio-cat-emoji { font-size: 48px; }
.bio-cat-hero h1 { font-size: 28px; font-weight: 800; margin: 0; color: var(--white); }
.bio-cat-count { opacity: 0.78; font-size: 13px; margin-top: 4px; }
.bio-filters-wrap { padding: 20px 24px 0; max-width: 1200px; margin: 0 auto; }
.bio-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bio-pill { background: var(--white); color: #444; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); text-decoration: none !important; display: inline-block; transition: all 0.18s; }
.bio-pill:hover, .bio-pill.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.bio-filter-selects { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.bio-filter-selects select { border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 12px; background: var(--white); }
.bio-study-row { background: var(--white); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; gap: 16px; border-left: 4px solid var(--blue); margin-bottom: 10px; transition: all 0.2s; text-decoration: none !important; color: var(--text); }
.bio-study-row:hover { box-shadow: var(--shadow-h); transform: translateX(3px); }
.bio-study-row-body { flex: 1; }
.bio-study-row-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 8px 0; }
.bio-study-row-meta { display: flex; gap: 16px; align-items: center; }
.bio-study-row-source { font-size: 11px; color: #888; font-weight: 600; }
.bio-study-row-date { font-size: 11px; color: #aaa; }
.bio-study-row-ev { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 58px; }

/* ═══ SINGOLO STUDIO ══════════════════════════════════════════════════════ */
.bio-article-wrap { max-width: 860px; margin: 32px auto; padding: 0 24px; }
.bio-article { background: var(--white); border-radius: 16px; padding: 36px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.bio-article-breadcrumb { font-size: 12px; color: #888; margin-bottom: 16px; }
.bio-article-breadcrumb a { color: var(--blue); font-weight: 600; }
.bio-article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bio-article-title { font-size: 26px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.bio-article-subtitle { font-size: 15px; color: #555; line-height: 1.65; font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 14px; margin-bottom: 18px; }
.bio-article-meta { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.bio-meta-item { font-size: 12px; color: #555; }
.bio-meta-item strong { color: var(--text); }
.bio-type-badge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.bio-tooltip-wrap { position: relative; display: inline-block; }
.bio-study-pill { display: inline-flex; align-items: center; gap: 6px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 700; color: #333; cursor: default; }
.bio-tooltip-box { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #1a1a2e; color: var(--white); border-radius: 10px; padding: 14px 16px; width: 280px; font-size: 12px; line-height: 1.6; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.22); }
.bio-tooltip-box::before { content: ''; position: absolute; top: -6px; left: 20px; width: 12px; height: 12px; background: #1a1a2e; transform: rotate(45deg); border-radius: 2px; }
.bio-tooltip-wrap:hover .bio-tooltip-box { display: block; }
.bio-tooltip-title { font-weight: 800; font-size: 13px; margin-bottom: 6px; color: #7ee8d8; }
.bio-tooltip-desc { font-size: 12px; opacity: 0.9; margin-bottom: 10px; }
.bio-tooltip-link { display: inline-block; background: rgba(255,255,255,0.15); color: var(--white) !important; text-decoration: none !important; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.bio-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.bio-badge-inst { background: #e8f0fb; color: var(--blue); }
.bio-badge-new { background: #fff4e0; color: #b86800; }
.bio-badge-conf { background: #e6faf6; color: var(--green-dark); }
.bio-badge-warn { background: #fff0f0; color: #c0392b; }
.bio-summary-box { background: #f8faff; border-left: 4px solid var(--blue); padding: 18px 22px; border-radius: 0 10px 10px 0; margin-bottom: 24px; }
.bio-summary-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin-bottom: 10px; }
.bio-summary-text { font-size: 14px; line-height: 1.75; color: #333; }
.bio-deepdive-box { background: #faf8ff; border-left: 4px solid #8b5fbf; padding: 18px 22px; border-radius: 0 10px 10px 0; margin-bottom: 24px; }
.bio-deepdive-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #8b5fbf; margin-bottom: 10px; }
.bio-deepdive-text { font-size: 14px; line-height: 1.75; color: #333; }
.bio-article-body { font-size: 15px; line-height: 1.8; color: #333; margin-bottom: 24px; }
.bio-article-body h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.bio-action-box { background: #f0fff8; border: 1px solid #b8e8de; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.bio-action-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--green-dark); margin-bottom: 8px; }
.bio-action-text { font-size: 13px; line-height: 1.75; }
.bio-limit-box { background: #fffaf0; border: 1px solid #fde8b0; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.bio-limit-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #b86800; margin-bottom: 8px; }
.bio-limit-text { font-size: 12px; line-height: 1.75; color: #555; }
.bio-cite-box { background: #f8f8f8; border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; font-size: 12px; color: #666; }
.bio-cite-box strong { color: var(--text); display: block; margin-bottom: 6px; font-size: 13px; }
.bio-doi-link { color: var(--blue); font-weight: 600; }
.bio-disclaimer { font-style: italic; margin-top: 10px; color: #999; font-size: 11px; }

/* ═══ FOOTER ══════════════════════════════════════════════════════════════ */
.bio-footer { background: var(--text); color: rgba(255,255,255,0.8); text-align: center; padding: 20px 24px; font-size: 12px; margin-top: 40px; }
.bio-footer a { color: rgba(255,255,255,0.6); }

/* ═══ RESPONSIVE ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .bio-studies-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .bio-studies-grid { grid-template-columns: 1fr; }
  .bio-hero h1 { font-size: 26px; }
  .bio-article { padding: 20px; }
  .bio-nav-dropdown-menu { width: 90vw; right: -16px; }
  .bio-nav-inner { padding: 0 16px; gap: 10px; }
  .bio-logo { font-size: 19px; }
  .bio-nav-dropdown-toggle { font-size: 12px; padding: 6px 11px; }
  .bio-nav-stats { display: none; }
  .bio-logo-tagline { display: none; }
  .bio-nav-inner { height: 56px; gap: 12px; }
  /* Featured */
  .bio-featured-wrap { padding: 20px 16px; }
  .bio-featured-title { font-size: 18px; }
  .bio-featured-illustration { display: none; }
  .bio-featured-layout { flex-direction: column; }
  .bio-featured-cta { margin-left: 0; }
  /* Area pills */
  .bio-areas-strip { flex-wrap: nowrap; }
  /* Card studio - righe archivio */
  .bio-study-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .bio-study-row-body { min-width: 0; }
  .bio-study-row-title { font-size: 13px; }
  .bio-study-row-meta { flex-wrap: wrap; gap: 10px; }
  .bio-study-row-ev { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; min-width: 0; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px; }
  .bio-ev-label { display: none; }
}