/*
 * B2BCompare — CSS per landing page statiche
 */

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #18181b; background: #f6f5f2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: #fff; border-bottom: 1px solid #e5e3de; padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.logo { font-weight: 700; font-size: 1.25rem; color: #18181b; text-decoration: none; }
.logo img { vertical-align: middle; }
.nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.nav-pill { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid #e5e3de; background: #fff; color: #18181b; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: all 0.15s; }
.nav-pill:hover { border-color: #4f46e5; color: #4f46e5; background: #f4f4f5; }
.nav-item { position: relative; display: inline-block; }
/* Il selettore di nazione deve stare FUORI dal flusso: senza queste regole il suo menu
   (26px) entra nel layout, manda a capo la riga e raddoppia la testata: misurato
   132px contro 61. Le stesse regole che site_nav.py emette col componente, ripetute
   qui perché questa testata è propria. Si apre con hover e focus-within:
   accessibile da tastiera, senza JavaScript. */
.lang-dropdown { position: relative; flex-shrink: 0; }
.lang-menu { position: absolute; top: 100%; right: 0; z-index: 100; display: none;
             background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 6px;
             min-width: 190px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.lang-dropdown:hover .lang-menu, .lang-dropdown:focus-within .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: #18181b;
               text-decoration: none; font-size: .85rem; }
.lang-menu a:hover { background: #f3f2ff; }
.lang-menu a[aria-current="page"] { background: #4f46e5; color: #fff; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #fff;
    border: 1px solid #e5e5e5; border-radius: 10px; min-width: 210px; padding: 6px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12); z-index: 300; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 7px; color: #374151;
    text-decoration: none; font-size: .85rem; font-weight: 600; }
.dropdown a:hover { background: #eef2ff; color: #4f46e5; }

/* Main */
.main { padding: 40px 0; }
.breadcrumb { font-size: 0.875rem; color: #6b7280; margin-bottom: 24px; }
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: #4f46e5; }
.breadcrumb span { color: #9ca3af; }

h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; color: #111827; }
.lead { font-size: 1.125rem; color: #6b7280; margin-bottom: 32px; }

/* Category / Format grids */
.format-grid, .qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.format-card, .qty-card { display: block; padding: 24px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; text-decoration: none; color: inherit; transition: all 0.2s; }
.format-card:hover, .qty-card:hover { border-color: #4f46e5; box-shadow: 0 4px 12px rgba(79,70,229,0.12); transform: translateY(-2px); }
.format-card strong, .qty-card strong { display: block; font-size: 1.125rem; color: #111827; margin-bottom: 8px; }
.format-card span, .qty-card span { font-size: 0.875rem; color: #6b7280; }

/* Comparison table */
.comparison-table-section h2 { font-size: 1.5rem; margin-bottom: 16px; }
.table-responsive { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.comparison-table th, .comparison-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e5e5e5; }
.comparison-table th { background: #f9fafb; font-weight: 600; color: #374151; }
.comparison-table td.price { font-weight: 700; font-size: 1rem; color: #111827; }
.comparison-table tr:hover { background: #f9fafb; }

.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; font-size: 0.875rem; transition: all 0.2s; }
.btn-primary { background: #4f46e5; color: #fff; }
.btn-primary:hover { background: #4338ca; }

.disclaimer { margin-top: 16px; font-size: 0.75rem; color: #9ca3af; }

/* Footer */
.footer { border-top: 1px solid #e5e5e5; padding: 32px 0; margin-top: 64px; color: #9ca3af; font-size: 0.875rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.125rem; color: #111827; margin-bottom: 16px; }
.footer-brand img { height: 32px; }
.footer a { color: #6b7280; text-decoration: none; }
.footer a:hover { color: #4f46e5; }

/* CTA Section */
.cta-section { margin-top: 32px; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
    /* Riga, non colonna: impilata la testata su telefono arrivava a 169px, un
   quinto dello schermo. Questo foglio lo SCRIVONO questi generatori e la home
   lo carica: la stessa regola stava in tre punti e tutti e tre impilavano. */
    .header .container { flex-direction: row; flex-wrap: wrap; align-items: center;
                         justify-content: space-between; gap: 10px; }
    .nav-pill { padding: 6px 12px; font-size: 0.8rem; }
    .comparison-table th, .comparison-table td { padding: 8px 12px; font-size: 0.8125rem; }
    .format-grid, .qty-grid { grid-template-columns: 1fr; }
}
