/* ReguBot Analytics – Light, warm design, base font 18px, no blue tones */

:root {
  --regu-bg: #f5f2eb;
  --regu-bg-soft: #fbf9f4;
  --regu-surface: #ffffff;
  --regu-surface-soft: #f8f4ed;
  --regu-primary: #e26d5c;      /* terracotta */
  --regu-primary-soft: #fce3de;
  --regu-secondary: #22a06b;    /* green */
  --regu-amber: #f59e0b;        /* amber */
  --regu-text-main: #1f2933;
  --regu-text-muted: #6b7280;
  --regu-border-soft: #e2ddd2;
}

/* Base typography – 18px */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, #f9efe4 0, #f5f2eb 38%, #f1ebdf 100%);
  color: var(--regu-text-main);
  margin: 0;
}

/* Links */
a {
  color: var(--regu-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #c95544;
  text-decoration: underline;
}

/* Navbar */
.regu-navbar {
  background: rgba(245, 242, 235, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 207, 193, 0.9);
}

.navbar-brand {
  font-size: 1.05rem;
  color: var(--regu-text-main);
}

.navbar-brand:hover {
  color: var(--regu-text-main);
}

.navbar .nav-link {
  font-size: 0.98rem;
  color: var(--regu-text-muted);
  position: relative;
  padding-inline: 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--regu-primary);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: -0.3rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--regu-primary), var(--regu-amber));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
  transform: scaleX(1);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, var(--regu-amber), #f97316);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #3a1c09;
  font-size: 1rem;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
}

.hero-wrapper {
  border-radius: 1.75rem;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92),
      rgba(251, 245, 235, 0.96)
    );
  border: 1px solid var(--regu-border-soft);
  padding: 2.3rem 2.3rem 2.4rem;
  box-shadow:
    0 22px 45px rgba(177, 155, 132, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-size: 2.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--regu-text-muted);
}

.hero-meta-label {
  font-size: 0.9rem;
  color: var(--regu-text-muted);
}

.hero-meta-value {
  font-size: 1rem;
}

/* Badge */
.badge-soft {
  background: var(--regu-primary-soft);
  color: var(--regu-text-main);
  border-radius: 999px;
  border: 1px solid rgba(226, 109, 92, 0.6);
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}

/* Buttons */
.btn-regubot-primary {
  background: linear-gradient(135deg, var(--regu-primary), #f97316);
  border: none;
  color: #3a1c09;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(192, 106, 78, 0.3);
}

.btn-regubot-primary:hover,
.btn-regubot-primary:focus {
  color: #3a1c09;
  filter: brightness(1.04);
  box-shadow: 0 16px 32px rgba(192, 106, 78, 0.4);
}

.btn-outline-regubot {
  border-radius: 999px;
  border: 1px solid rgba(226, 109, 92, 0.7);
  color: var(--regu-text-main);
  background: rgba(251, 245, 235, 0.9);
}

.btn-outline-regubot:hover,
.btn-outline-regubot:focus {
  background: #fff7ed;
  color: var(--regu-text-main);
}

/* Hero panel */
.hero-panel {
  border-radius: 1.4rem;
  background: var(--regu-surface);
  border: 1px solid var(--regu-border-soft);
  padding: 0;
}

.hero-panel-header {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(214, 205, 188, 0.9);
  display: flex;
  align-items: center;
}

.hero-header-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--regu-text-main);
}

.hero-header-tag {
  font-size: 0.82rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #facc15;
}

.hero-panel-body {
  padding: 1.4rem 1.4rem 1.5rem;
}

.hero-kpi {
  font-size: 1rem;
  font-weight: 600;
}

.hero-kpi-small {
  font-size: 0.96rem;
  font-weight: 600;
}

.hero-chip {
  font-size: 0.84rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #4ade80;
}

.hero-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-progress-block span {
  font-size: 0.9rem;
}

/* Progress */
.progress-thin {
  height: 6px;
  background: #f3e9dd;
  border-radius: 999px;
}

.progress-thin .progress-bar {
  background: linear-gradient(90deg, var(--regu-primary), var(--regu-secondary));
  border-radius: 999px;
}

/* Mini cards */
.mini-card {
  background: #fefaf5;
  border-radius: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #f1e0ca;
}

.mini-card-soft {
  background: #f3faf6;
  border-color: #cde8d7;
}

.mini-label {
  font-size: 0.9rem;
  color: var(--regu-text-muted);
}

.mini-value {
  font-size: 1rem;
  font-weight: 600;
}

.mini-hint {
  font-size: 0.9rem;
  color: var(--regu-text-muted);
}

/* Hero list */
.hero-list li {
  font-size: 0.96rem;
  color: var(--regu-text-main);
}

.hero-list i {
  color: var(--regu-secondary);
  margin-top: 0.15rem;
}

/* Sections */
.section-padding {
  padding: 4.3rem 0;
}

.section-alt {
  background: var(--regu-bg-soft);
}

.section-heading .overline {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--regu-secondary);
}

.section-heading .section-title {
  font-size: 2rem;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

.section-heading .section-subtitle {
  max-width: 720px;
  font-size: 1rem;
  color: var(--regu-text-muted);
}

/* Section illustration & images */
.section-illustration {
  border-radius: 1.3rem;
  overflow: hidden;
  background: #fefaf5;
  border: 1px solid var(--regu-border-soft);
  box-shadow: 0 10px 26px rgba(184, 165, 137, 0.2);
}

.section-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.feature-image-wrap {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fefaf5;
}

.feature-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.usecase-image-wrap {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #fefaf5;
}

.usecase-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.contact-illustration {
  border-radius: 1.3rem;
  overflow: hidden;
  background: #fefaf5;
  border: 1px solid var(--regu-border-soft);
  margin-bottom: 1rem;
}

.contact-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* Feature cards */
.feature-card {
  background: var(--regu-surface);
  border-radius: 1.2rem;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--regu-border-soft);
  box-shadow: 0 10px 25px rgba(184, 165, 137, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 109, 92, 0.7);
  box-shadow: 0 16px 36px rgba(184, 165, 137, 0.3);
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fef3c7;
  color: #92400e;
  font-size: 1.4rem;
}

.icon-circle-green {
  background: #dcfce7;
  color: #166534;
}

.icon-circle-amber {
  background: #fef3c7;
  color: #92400e;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.94rem;
}

.feature-list i.bi-dot {
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--regu-secondary);
}

/* Normativa */
.normativa-panel {
  background: var(--regu-surface);
  border-radius: 1.2rem;
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--regu-border-soft);
  box-shadow: 0 10px 24px rgba(184, 165, 137, 0.18);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(183, 138, 85, 0.6);
  font-size: 0.94rem;
  color: #7a4a20;
  background: #fff7ed;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.check-item {
  display: flex;
  gap: 0.75rem;
}

.check-item i {
  font-size: 1.4rem;
  color: var(--regu-secondary);
  flex-shrink: 0;
}

.check-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.check-text {
  font-size: 0.94rem;
  color: var(--regu-text-muted);
}

/* Vantaggi */
.benefit-card {
  background: var(--regu-surface-soft);
  border-radius: 1.2rem;
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px dashed rgba(183, 138, 85, 0.5);
}

/* Casi d'uso */
.usecase-card {
  background: var(--regu-surface);
  border-radius: 1.2rem;
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid var(--regu-border-soft);
}

.usecase-label {
  font-size: 0.9rem;
  color: var(--regu-text-muted);
}

/* Workflow */
.workflow-row {
  position: relative;
  row-gap: 1.5rem;
}

.workflow-row::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(226, 109, 92, 0.15),
    rgba(245, 158, 11, 0.7),
    rgba(34, 160, 107, 0.4)
  );
  z-index: 0;
}

.step-card {
  background: var(--regu-surface);
  border-radius: 1.3rem;
  padding: 1.3rem 1.3rem 1.2rem;
  border: 1px solid var(--regu-border-soft);
  position: relative;
  z-index: 1;
}

.step-number {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, var(--regu-amber), #f97316);
  color: #3a1c09;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

/* FAQ */
.faq-item {
  background: var(--regu-surface);
  border-radius: 1.1rem;
  padding: 1.3rem 1.4rem 1.3rem;
  border: 1px solid var(--regu-border-soft);
}

/* Contatti */
.section-contacts {
  border-top: 1px solid var(--regu-border-soft);
}

.contact-block {
  margin-top: 0.25rem;
}

.contact-icon {
  margin-right: 0.6rem;
  font-size: 1.2rem;
  color: var(--regu-secondary);
}

.contact-link {
  color: var(--regu-text-main);
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
  color: var(--regu-primary);
  text-decoration: underline;
}

.contact-card {
  background: var(--regu-surface);
  border-radius: 1.4rem;
  padding: 1.8rem 1.7rem 1.7rem;
  border: 1px solid var(--regu-border-soft);
  box-shadow: 0 12px 28px rgba(184, 165, 137, 0.2);
}

.form-label {
  font-size: 0.98rem;
}

.form-control,
.form-check-label {
  font-size: 0.98rem;
}

.form-control {
  background: #fdfaf5;
  border: 1px solid #dacfbf;
  color: var(--regu-text-main);
}

.form-control:focus {
  border-color: var(--regu-primary);
  box-shadow: 0 0 0 0.12rem rgba(226, 109, 92, 0.25);
  background: #fffbf5;
}

.form-check-input {
  border-radius: 0.35rem;
  border-color: #dacfbf;
}

.form-check-input:checked {
  background-color: var(--regu-primary);
  border-color: var(--regu-primary);
}

.link-privacy {
  color: var(--regu-secondary);
}

.link-privacy:hover,
.link-privacy:focus {
  text-decoration: underline;
}

/* Alert */
#contactAlert {
  font-size: 0.96rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(202, 190, 170, 0.9);
  padding: 1.4rem 0;
  background: #f2ebe0;
}

.footer-left {
  font-size: 0.94rem;
}

.footer-links .footer-link {
  font-size: 0.94rem;
  color: var(--regu-text-muted);
  text-decoration: none;
}

.footer-links .footer-link:hover,
.footer-links .footer-link:focus {
  color: var(--regu-primary);
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 0.75rem 1rem;
  background: rgba(46, 27, 13, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #fef9f4;
}

.cookie-text {
  flex: 1 1 auto;
}

.cookie-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.cookie-desc {
  font-size: 0.9rem;
  color: #f3e9dd;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--regu-primary), #f97316);
  color: #3a1c09;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  border: none;
  font-size: 0.9rem;
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  color: #3a1c09;
  filter: brightness(1.04);
}

.cookie-btn-reject {
  background: transparent;
  border-radius: 999px;
  border: 1px solid #f5d0b5;
  color: #fef9f4;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
}

.cookie-btn-reject:hover,
.cookie-btn-reject:focus {
  background: rgba(248, 250, 252, 0.08);
}

.cookie-more {
  font-size: 0.9rem;
  color: #fbbf77;
  text-decoration: underline;
}

.cookie-more:hover,
.cookie-more:focus {
  color: #fed7aa;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 6rem;
  }

  .hero-wrapper {
    padding: 1.6rem 1.4rem 1.8rem;
  }

  .workflow-row::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: left;
  }

  .hero-meta {
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem 1.3rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
