/* ===== RESET & BODY ===== */
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 85px 20px 20px;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

/* ===== NAVBAR ===== */
.universal-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: #0f0f1e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  height: 64px;
}
.nav-logo { text-decoration: none; flex-shrink: 0; }
.logo-text { font-size: 18px; color: #fff; letter-spacing: 0.3px; }
.logo-text strong {
  background: linear-gradient(135deg, #667eea, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #fff !important;
  background: rgba(102, 126, 234, 0.2) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 8px;
  cursor: pointer;
  padding: 9px;
  box-sizing: border-box;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:focus,
.hamburger:active,
.hamburger:focus-visible {
  background: rgba(255,255,255,0.15) !important;
  outline: none !important;
  box-shadow: none !important;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== DROPDOWN NAVBAR ===== */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  color: rgba(255,255,255,0.75);
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto;
  margin-top: 0;
  letter-spacing: 0;
  text-transform: none;
}
.nav-dropdown-btn:hover {
  color: #fff;
  background: rgba(102,126,234,0.2);
  transform: none;
  box-shadow: none;
}
.nav-arrow { font-size: 11px; transition: transform 0.2s; }
.nav-dropdown-btn.active .nav-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 999;
}
.nav-dropdown-menu.active { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-menu a {
  color: rgba(255,255,255,0.8) !important;
  padding: 10px 14px !important;
  border-radius: 7px;
  font-size: 14px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(102,126,234,0.3) !important;
  color: #fff !important;
}

/* Mobile dropdown */
@media (max-width: 820px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    padding: 4px 0 4px 12px;
  }
  .nav-dropdown-btn { color: rgba(255,255,255,0.75); padding: 12px 16px; }
}

/* ===== COMPONENTI ===== */
header { text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 40px 20px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 8px 32px rgba(102,126,234,0.3); }
h1 { margin: 0; font-size: 2.5em; }
.subtitle { font-size: 1.2em; opacity: 0.95; text-align: center; color: #636e72; font-style: italic; }
.tool, .container {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tool:hover, .container:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.tool h2 { color: #495057; margin-top: 0; border-bottom: 3px solid #007cba; padding-bottom: 10px; font-size: 1.4em; }
label { display: block; margin: 15px 0 8px; font-weight: 500; color: #495057; }
input, select {
  width: 100%; padding: 14px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  background: #fff;
}
input:focus, select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 4px rgba(0,124,186,0.1);
  transform: translateY(-1px);
}
button {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white; border: none;
  border-radius: 10px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}
button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(40,167,69,0.4); }
button:active { transform: translateY(0); }
.result-good { color: #155724; }
.result-warning { color: #856404; }
footer {
  text-align: center; margin-top: 60px; padding: 30px;
  background: white; border-radius: 15px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  font-size: 14px; color: #6c757d;
  border-top: 1px solid #ddd;
}
.disclaimer { background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 10px; padding: 20px; margin: 30px 0; }
.preset-info { background: #74b9ff; color: white; padding: 12px; border-radius: 8px; margin: 15px 0; }


    /* ===== DRAWDOWN SPECIFICO ===== */
.good-result {
  background: linear-gradient(135deg, #c6f6d5, #9ae6b4) !important;
  border-left: 6px solid #38a169 !important;
}
.warning-result {
  background: linear-gradient(135deg, #fef5e7, #fed7aa) !important;
  border-left: 6px solid #ed8936 !important;
}

@media (max-width: 820px) {
  .hamburger { display: flex !important; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0;
    width: 100%;
    background: #0f0f1e;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .nav-links.active { display: flex !important; }
  .nav-links a { padding: 12px 16px !important; font-size: 15px; }
  h1 { text-align: center; }
}

/* ===== COMMISSION CALCULATOR ===== */
.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.cost-item {
  background: rgba(255,255,255,0.8);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}
.cost-item h4 { margin: 0 0 8px; font-size: 13px; color: #555; }
.cost-item strong { font-size: 20px; color: #c53030; }


/* ===== HOME HERO ===== */
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  background: white;
  color: #667eea;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #0f0f1e;
  border-radius: 12px;
  margin: 0 0 30px;
  overflow: hidden;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 18px 10px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-item:last-child { border-right: none; }
.stat-item strong { font-size: 22px; color: #a78bfa; font-weight: 700; }
.stat-item span { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== TOOL CARDS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 0 40px;
}
.tool-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 28px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.tool-card-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-green { background: #c6f6d5; color: #276749; }
.tool-card-icon { font-size: 32px; margin-bottom: 12px; }
.tool-card h3 { margin: 0 0 10px; font-size: 1.1em; color: #2d3748; }
.tool-card p { color: #718096; font-size: 14px; margin: 0 0 20px; line-height: 1.5; }
.tool-card-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.tool-card-btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-green  { background: #38a169; color: white; }
.btn-orange { background: #ed8936; color: white; }
.btn-purple { background: #764ba2; color: white; }
.btn-red    { background: #e53e3e; color: white; }
.btn-blue   { background: #007cba; color: white; }

/* ===== WHY SECTION ===== */
.why-section { margin: 10px 0 30px; }
.why-section h2 { text-align: center; color: #2d3748; margin-bottom: 24px; font-size: 1.6em; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.why-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.why-icon { font-size: 36px; margin-bottom: 12px; }
.why-card h4 { margin: 0 0 10px; color: #2d3748; font-size: 1em; }
.why-card p { color: #718096; font-size: 14px; margin: 0; line-height: 1.5; }

/* ===== MOBILE HOME ===== */
@media (max-width: 820px) {
  .stats-bar { gap: 0; }
  .stat-item { padding: 14px 6px; }
  .stat-item strong { font-size: 18px; }
  .tools-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}


/* ===== RELATED TOOLS ===== */
.related-tools { margin: 40px 0 20px; }
.related-tools h3 { color: #2d3748; font-size: 1.1em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #e9ecef; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: #2d3748;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.related-card:hover { background: #667eea; color: white; border-color: #667eea; transform: translateY(-2px); }
.related-card span { font-size: 22px; }

@media (max-width: 820px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== GUIDE PAGE ===== */
.guide-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.guide-card:hover {
  border-color: #667eea;
  box-shadow: 0 6px 24px rgba(102,126,234,0.15);
  transform: translateY(-2px);
}
.guide-card-icon {
  font-size: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-card-body { flex: 1; }
.guide-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.05em;
  color: #2d3748;
}
.guide-card-body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
}
.guide-card .guide-tag {
  background: #edf2ff;
  color: #667eea;
  border: 1px solid #c3d0f5;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
}

@media (max-width: 820px) {
  .guide-card { flex-direction: row; gap: 14px; padding: 16px; }
  .guide-card-icon { font-size: 26px; }
}

.page-wrapper {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== FOOTER ===== */
.universal-footer {
  background: white;
  border-top: 1px solid #e9ecef;
  border-radius: 15px;
  margin-top: 40px;
  padding: 20px 30px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  text-align: center;
  font-size: 14px;
  color: #6c757d;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
}
@media (max-width: 820px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== COOKIE BANNER CUSTOM ===== */
.cc-window {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
  font-size: 14px !important;
  max-width: 480px !important;
  padding: 24px !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  width: 90% !important;
}
.cc-btn {
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.cc-deny {
  background: transparent !important;
  color: #28251d !important;
  border: 2px solid #dcd9d5 !important;
}
.cc-allow {
  background: #01696f !important;
  color: white !important;
}
.cc-message {
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
}