/*
Theme Name: BottegaOperativa Child
Theme URI: https://bottegaoperativa.it/
Template: generatepress
Author: BottegaOperativa
Author URI: https://bottegaoperativa.it/
Description: Child theme di GeneratePress per BottegaOperativa: Design System, Tailwind e template calcolatori.
Tags: two-columns,three-columns,one-column,right-sidebar,left-sidebar,footer-widgets,blog,e-commerce,flexible-header,full-width-template,buddypress,custom-header,custom-background,custom-menu,custom-colors,sticky-post,threaded-comments,translation-ready,rtl-language-support,featured-images,theme-options
Version: 1.0.3
Updated: 2026-11-28 21:50:33
*/

/* ============================================================
   BottegaOperativa — Design System v1 (child theme)
   Blu Bottega #0F2B48 | Arancione Operativo #E85D04
   Inchiostro #1E293B | Fondo #F8FAFC | Card #FFFFFF
   Bordo #E2E8F0 | Verde Formula #15803D | Warning #B45309
   ============================================================ */
html { scroll-behavior: smooth; }
:root {
  --bo-blue: #0F2B48;
  --bo-orange: #E85D04;
  --bo-ink: #1E293B;
/* ============================================================
   BottegaOperativa — Mobile UX / Performance (prompt 10)
   ============================================================ */

/* --- Menu mobile: drawer laterale --- */
.bo-chiudi-menu {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0.5rem 0.5rem auto;
  padding: 0 0.75rem;
  border: 1px solid #1b4965;
  border-radius: 8px;
  background: #fff;
  color: #1b4965;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 769px) {
  .bo-chiudi-menu {
    display: none;
  }
}
@media (max-width: 768px) {
  .main-navigation .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(340px, 88vw);
    max-width: 88vw;
    transform: translateX(102%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: -4px 0 24px rgba(15, 40, 70, 0.18);
  }
  .main-navigation.toggled .main-nav {
    transform: translateX(0);
  }
  .main-navigation .main-nav ul li a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .menu-toggle {
    min-width: 48px;
    min-height: 48px;
  }
}
/* Overlay del menu mobile + blocco scroll pagina */
.bo-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 70, 0.45);
  z-index: 1000;
  display: none;
}
body.bo-menu-aperto {
  overflow: hidden;
}
body.bo-menu-aperto .bo-menu-overlay {
  display: block;
}

/* --- Tabelle responsive --- */
.bo-tabella-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.bo-scroll-tabella {
  display: none;
  font-size: 0.85rem;
  color: #5a6b7d;
  margin: 0 0 0.35rem;
}
@media (max-width: 768px) {
  .bo-tabella-scroll {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    padding: 0.5rem;
  }
  .bo-tabella-scroll.bo-ha-scroll .bo-scroll-tabella {
    display: block;
  }
}

/* --- Touch target minimi 48x48px --- */
.btn-primary,
.bo-btn-secondario,
a[download],
.entry-content a[class] {
  min-height: 48px;
}
.bo-tab-labels label {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.entry-content button,
.entry-content input[type="submit"],
.entry-content input[type="button"],
.entry-content input[type="number"],
.entry-content input[type="text"],
.entry-content select {
  min-height: 48px;
}

  --bo-bg: #F8FAFC;
  --bo-card: #FFFFFF;
  --bo-border: #E2E8F0;
  --bo-green: #15803D;
  --bo-warning: #B45309;
  --bo-disclaimer-bg: #FEF3C7;
  --bo-radius: 6px;
  --bo-font-title: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --bo-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --bo-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body { background: var(--bo-bg); color: var(--bo-ink); font-family: var(--bo-font-body); }
h1, h2, h3, h4, .site-title, .entry-title { font-family: var(--bo-font-title); color: var(--bo-blue); }
.main-navigation, .site-header { background: var(--bo-card); }
.site-title a, .main-title a { color: var(--bo-blue); }

/* Pulsanti */
.btn-primary, a.btn-primary {
  display: inline-block; background: var(--bo-orange); color: #fff;
  font-family: var(--bo-font-title); font-weight: 700;
  padding: 12px 22px; border-radius: var(--bo-radius); border: 0;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover, a.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,93,4,.35); }
.btn-primary:focus-visible, a.btn-primary:focus-visible { outline: 3px solid var(--bo-blue); outline-offset: 2px; }
.btn-secondary, a.btn-secondary {
  display: inline-block; background: transparent; color: var(--bo-ink);
  font-family: var(--bo-font-title); font-weight: 600;
  padding: 11px 20px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius);
  text-decoration: none; cursor: pointer;
}
.btn-secondary:hover, a.btn-secondary:hover { border-color: var(--bo-blue); color: var(--bo-blue); }
.btn-secondary:focus-visible, a.btn-secondary:focus-visible { outline: 3px solid var(--bo-blue); outline-offset: 2px; }

/* Card strumento */
.card-tool {
  position: relative; background: var(--bo-card); border: 1px solid var(--bo-border);
  border-radius: 10px; padding: 28px 24px 24px; height: 100%;
}
.card-tool h3 { margin-top: 0; }
.card-tool .badge-formato {
  position: absolute; top: 12px; right: 12px;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.badge-excel { background: #DCFCE7; color: var(--bo-green); }
.badge-sheets { background: #DBEAFE; color: #1D4ED8; }
.badge-pdf { background: #FEE2E2; color: #B91C1C; }
.badge-calcolatore { background: #FFE8D6; color: var(--bo-orange); }
.badge-kit { background: var(--bo-blue); color: #fff; }

/* Disclaimer */
.box-disclaimer {
  background: var(--bo-disclaimer-bg); border-left: 4px solid var(--bo-warning);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0;
}
.box-disclaimer strong { color: var(--bo-warning); }

/* Box guida: esempio e avviso normativo */
.box-example {
  background: #F1F5F9; border-left: 4px solid var(--bo-blue);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0;
}
.box-warning {
  background: #FEF3C7; border: 1px solid #F59E0B; border-left: 4px solid var(--bo-warning);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0;
}
.box-warning strong { color: var(--bo-warning); }

/* Input calcolatori */
.input-calc {
  height: 48px; font-family: var(--bo-font-mono); font-size: 16px;
  text-align: right; padding: 0 12px; width: 100%;
  border: 1px solid var(--bo-border); border-radius: var(--bo-radius);
  background: var(--bo-card); color: var(--bo-ink);
}
.input-calc:focus { outline: 2px solid var(--bo-blue); outline-offset: 1px; border-color: var(--bo-blue); }
.risultato-calc { font-family: var(--bo-font-mono); font-size: 28px; font-weight: 700; color: var(--bo-green); }
.dato-mono, code, .bo-mono { font-family: var(--bo-font-mono); }

/* Layout sezioni BottegaOperativa */
.bo-section { margin: 48px 0; }
.bo-section > h2 { margin-bottom: 8px; }
.bo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.bo-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 900px) { .bo-grid, .bo-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bo-grid, .bo-grid-4 { grid-template-columns: 1fr; } }
.bo-ticker {
  background: var(--bo-blue); color: #fff; font-family: var(--bo-font-mono);
  font-size: 14px; padding: 10px 16px; border-radius: var(--bo-radius); margin: 24px 0;
}
.bo-chip {
  display: inline-block; border: 1px solid var(--bo-border); background: var(--bo-card);
  border-radius: 999px; padding: 6px 14px; margin: 0 8px 8px 0; font-size: 14px;
}
.bo-breadcrumb { font-size: 14px; color: #64748B; margin-bottom: 8px; }
.bo-breadcrumb a { color: var(--bo-blue); }
.bo-faq details { border: 1px solid var(--bo-border); border-radius: 8px; background: var(--bo-card); padding: 14px 18px; margin-bottom: 10px; }
.bo-faq summary { font-family: var(--bo-font-title); font-weight: 700; color: var(--bo-blue); cursor: pointer; }
.bo-kit { background: var(--bo-card); border: 1px solid var(--bo-border); border-radius: 10px; padding: 24px; }
.bo-prezzo { font-family: var(--bo-font-mono); font-size: 26px; font-weight: 700; color: var(--bo-blue); }
.bo-newsletter { background: var(--bo-blue); color: #fff; border-radius: 12px; padding: 32px; }
.bo-newsletter h2 { color: #fff; }
.bo-newsletter input[type="email"] { height: 48px; padding: 0 14px; border-radius: var(--bo-radius); border: 0; width: 100%; max-width: 420px; }

/* Guide: larghezza ottimale, indice e meta editoriale */
.max-w-prose { max-width: 65ch; }
.bo-toc { background: var(--bo-card); border: 1px solid var(--bo-border); border-radius: 10px; padding: 20px 24px; margin: 24px 0; }
.bo-toc h2 { margin-top: 0; }
.bo-meta { font-family: var(--bo-font-mono); font-size: 13px; color: #64748B; }
.bo-meta a { color: var(--bo-blue); }

/* Shop e scheda prodotto */
.bo-prodotto { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; margin: 24px 0; }
@media (max-width: 900px) { .bo-prodotto { grid-template-columns: 1fr; } }
.bo-acquisto { position: sticky; top: 24px; background: var(--bo-card); border: 1px solid var(--bo-border); border-radius: 12px; padding: 24px; }
.bo-prezzo-grande { font-family: var(--bo-font-mono); font-size: 34px; font-weight: 700; color: var(--bo-blue); }
.bo-tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.bo-tab-btn { background: var(--bo-card); border: 1px solid var(--bo-border); border-radius: 999px; padding: 8px 16px; font-family: var(--bo-font-title); font-weight: 700; color: var(--bo-blue); cursor: pointer; }
.bo-tab-btn:hover { border-color: var(--bo-blue); }
.bo-tab-btn.active { background: var(--bo-blue); color: #fff; border-color: var(--bo-blue); }
.bo-tab-btn:focus-visible { outline: 3px solid var(--bo-orange); outline-offset: 2px; }
.bo-tab-panel { display: none; }
.bo-tab-panel.active { display: block; }
.bo-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.bo-kpi > div { background: var(--bo-bg); border: 1px solid var(--bo-border); border-radius: 8px; padding: 12px; text-align: center; }
.bo-kpi strong { font-family: var(--bo-font-mono); font-size: 20px; color: var(--bo-blue); display: block; }
.bo-barra { height: 18px; border-radius: 4px; background: var(--bo-orange); margin: 4px 0 12px; }
.bo-barra-blu { background: var(--bo-blue); }
.bo-barra-verde { background: var(--bo-green); }
.bo-garanzia { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; padding: 14px 16px; margin: 16px 0; font-size: 14px; }
.bo-recesso { font-size: 13px; color: #64748B; }

.bo-tabella-scroll{box-sizing:border-box}

.box-affiliate {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #0F2B48;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 24px 0;
}
.box-affiliate-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748B;
  margin: 0 0 12px 0;
}
.box-affiliate-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.box-affiliate-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 20px;
  color: #FFFFFF;
  background: #0F2B48;
  border-radius: 8px;
}
.box-affiliate-name {
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 4px 0;
}
.box-affiliate-why {
  color: #1E293B;
  margin: 0;
}
.box-affiliate-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 6px;
  background: #E85D04;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}
.box-affiliate-cta:hover {
  background: #C24E03;
  color: #FFFFFF;
}
.box-affiliate-disclosure {
  font-size: 12px;
  color: #64748B;
  margin: 12px 0 0 0;
}