:root {
  --sl-bg: #0f0b10;
  --sl-bg-alt: #181018;
  --sl-panel: #211621;
  --sl-panel-soft: #281a25;

  --sl-accent: #ff6b3d;
  --sl-accent-strong: #ff4f2f;
  --sl-accent-soft: #ff9d66;

  --sl-text-main: #f7f1ea;
  --sl-text-muted: #c3b5a8;

  --sl-border-subtle: #35212f;
  --sl-chip-bg: #2b1b26;
  --sl-badge-bg: #fbe5d6;

  --sl-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --sl-radius-lg: 1.5rem;
  --sl-radius-md: 1rem;
  --sl-radius-sm: 0.75rem;

  --sl-transition-fast: 0.18s ease-out;
  --sl-transition-base: 0.25s ease-out;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #261320 0, var(--sl-bg) 46%);
  color: var(--sl-text-main);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Layout helpers */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(90%, 1180px);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top right, #2a1623 0, #130d14 40%, #130c12 100%);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-head h2 {
  font-size: 2.1rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.section-head p {
  margin: 0;
  color: var(--sl-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    to bottom,
    rgba(9, 4, 10, 0.98),
    rgba(9, 4, 10, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0.2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.logo-mark {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content:center;
  background: radial-gradient(circle at 0 0, #ffb183 0, var(--sl-accent) 52%, #c2331c 100%);
  color: #120709;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1rem;
}

.logo-text {
  display: inline-flex;
  flex-wrap: wrap;
  column-gap: 0.3rem;
  row-gap: 0.15rem;
  align-items: baseline;
}

.logo-text span:nth-child(2) {
  color: var(--sl-accent-soft);
}

.logo-sub {
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  opacity: 0.8;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  padding-block: 0.25rem;
  color: var(--sl-text-muted);
  transition: color var(--sl-transition-fast);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sl-accent) 0, var(--sl-accent-soft) 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--sl-transition-fast);
}

.main-nav a:hover {
  color: var(--sl-text-main);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.6rem;
  height: 2px;
  border-radius: 999px;
  background: var(--sl-text-main);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--sl-text-main);
  transition:
    background var(--sl-transition-base),
    color var(--sl-transition-base),
    border-color var(--sl-transition-base),
    box-shadow var(--sl-transition-base),
    transform var(--sl-transition-fast);
}

.btn i {
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sl-accent) 0, var(--sl-accent-strong) 100%);
  box-shadow: 0 10px 30px rgba(255, 89, 60, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(255, 89, 60, 0.4);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(221, 191, 167, 0.03);
}

.btn-outline:hover {
  border-color: var(--sl-accent-soft);
  background: rgba(221, 191, 167, 0.12);
}

.full-width {
  width: 100%;
}

.full-width-sm {
  width: auto;
}

@media (max-width: 640px) {
  .full-width-sm {
    width: 100%;
  }
}

/* Hero */

.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.4rem;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.hero-text {
  margin: 0 0 1.5rem;
  color: var(--sl-text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 174, 124, 0.07);
  border: 1px solid rgba(255, 174, 124, 0.3);
  color: var(--sl-accent-soft);
  font-size: 0.83rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}

.hero-label i {
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.7rem;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.96rem;
  color: var(--sl-text-muted);
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-points i {
  color: var(--sl-accent-soft);
  margin-top: 0.1rem;
}

/* Hero visual */

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 1.7rem;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, #ffb580 0, #422028 35%, #190b13 80%);
  box-shadow: var(--sl-shadow-soft);
}

.hero-card img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: lighten;
}

.hero-card-badge {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(16, 9, 12, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 224, 199, 0.4);
}

.hero-card-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.hero-card-text {
  display: block;
  font-size: 0.85rem;
  color: var(--sl-text-muted);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.stat {
  flex: 1 1 9rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 214, 189, 0.5);
  background: linear-gradient(
    135deg,
    rgba(255, 132, 77, 0.12),
    rgba(48, 21, 27, 0.9)
  );
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--sl-text-muted);
}

/* Generic cards grid */

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .three-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .three-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Info / service / role / testimonial cards */

.info-card,
.service-card,
.role-card,
.testimonial-card {
  border-radius: var(--sl-radius-lg);
  padding: 1.6rem 1.5rem;
  background: radial-gradient(circle at top left, #2c1622 0, var(--sl-panel) 46%);
  border: 1px solid var(--sl-border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.info-icon,
.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 155, 105, 0.18);
  color: var(--sl-accent-soft);
  margin-bottom: 1rem;
}

.info-card h3,
.service-card h3,
.role-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.info-card p,
.service-card p,
.role-card p,
.testimonial-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--sl-text-muted);
}

.service-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--sl-text-muted);
}

.service-list li + li {
  margin-top: 0.3rem;
}

.role-card h3 i {
  margin-right: 0.5rem;
  color: var(--sl-accent-soft);
}

/* Service images */

.service-img {
  border-radius: 1rem;
  margin-bottom: 0.85rem;
}

/* Normative strip */

.normative-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2.1rem;
  padding: 1rem 1.3rem;
  border-radius: var(--sl-radius-md);
  border: 1px dashed rgba(255, 205, 173, 0.6);
  background: rgba(15, 8, 11, 0.85);
}

.normative-label {
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sl-text-muted);
}

.normative-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.normative-strip li i {
  margin-right: 0.35rem;
  color: var(--sl-accent-soft);
}

/* Workflow */

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.workflow-step {
  position: relative;
  padding: 1.3rem 1.2rem 1.6rem;
  border-radius: var(--sl-radius-lg);
  background: radial-gradient(circle at top left, #321625 0, var(--sl-panel-soft) 55%);
  border: 1px solid var(--sl-border-subtle);
  overflow: hidden;
}

.workflow-step h3 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1rem;
}

.workflow-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sl-text-muted);
}

.workflow-count {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 149, 98, 0.18);
  border: 1px solid rgba(255, 177, 131, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .workflow-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Testimonials */

.testimonials-grid {
  align-items: stretch;
}

.testimonial-card {
  position: relative;
  padding-top: 1.8rem;
}

.testimonial-text {
  font-size: 0.95rem;
}

.testimonial-author {
  margin: 1.1rem 0 0;
  font-size: 0.86rem;
  color: var(--sl-text-muted);
  opacity: 0.9;
}

/* FAQ */

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border-radius: var(--sl-radius-md);
  background: radial-gradient(circle at top left, #301823 0, #180f16 52%);
  border: 1px solid var(--sl-border-subtle);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  border: none;
  background: none;
  color: var(--sl-text-main);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  margin-left: 1rem;
  flex-shrink: 0;
  color: var(--sl-text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.1rem;
  transition: max-height var(--sl-transition-base);
}

.faq-answer p {
  margin: 0.15rem 0 1rem;
  font-size: 0.9rem;
  color: var(--sl-text-muted);
}

.faq-item.is-open .faq-answer {
  max-height: 200px;
}

.faq-item.is-open .faq-icon i {
  transform: rotate(45deg);
}

/* Contatti */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--sl-text-muted);
}

.contact-list i {
  margin-top: 0.2rem;
  color: var(--sl-accent-soft);
}

.contact-list a {
  color: inherit;
}

/* Forms */

.contact-form-wrapper {
  display: grid;
  gap: 1.3rem;
}

.form-card {
  border-radius: var(--sl-radius-lg);
  padding: 1.5rem 1.4rem 1.6rem;
  background: radial-gradient(circle at top left, #311724 0, var(--sl-panel) 55%);
  border: 1px solid var(--sl-border-subtle);
  box-shadow: var(--sl-shadow-soft);
}

.form-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row-stack {
  align-items: flex-end;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.form-field label {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sl-text-muted);
}

.form-field input,
.form-field textarea {
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 219, 190, 0.35);
  background: rgba(10, 4, 8, 0.9);
  padding: 0.65rem 0.75rem;
  color: var(--sl-text-main);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color var(--sl-transition-fast),
    box-shadow var(--sl-transition-fast),
    background var(--sl-transition-fast);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sl-accent-soft);
  box-shadow: 0 0 0 1px rgba(255, 126, 76, 0.4);
  background: rgba(13, 6, 11, 0.95);
}

.form-field textarea {
  resize: vertical;
}

.form-consent {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--sl-text-muted);
}

.checkbox-label input {
  margin-top: 0.16rem;
}

.newsletter-form p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--sl-text-muted);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    flex-direction: column;
  }

  .section {
    padding-block: 3.5rem;
  }
}

/* Footer */

.site-footer {
  background: #0a0509;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 3rem 0 2.2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sl-text-muted);
  max-width: 20rem;
}

.footer-col h3 {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--sl-text-muted);
}

.footer-links a:hover {
  color: var(--sl-accent-soft);
}

.footer-contacts li {
  display: flex;
  gap: 0.55rem;
}

.footer-contacts i {
  margin-top: 0.18rem;
  color: var(--sl-accent-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--sl-text-muted);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 207, 177, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 15, 18, 0.9);
}

.footer-social a:hover {
  border-color: var(--sl-accent-soft);
}

/* Responsive header & footer grids */

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 0;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 64px;
    background: rgba(10, 4, 10, 0.98);
    padding: 0.8rem 5%;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--sl-transition-base),
      opacity var(--sl-transition-base);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .main-nav--open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: rgba(14, 7, 10, 0.98);
  border-top: 1px solid rgba(255, 211, 183, 0.4);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.55);
  z-index: 50;
  transform: translateY(0);
  transition: transform var(--sl-transition-base), opacity var(--sl-transition-base);
}

.cookie-banner h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--sl-text-muted);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-link {
  font-size: 0.86rem;
  color: var(--sl-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-btn {
  padding-inline: 1.2rem;
}

.cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    align-self: stretch;
    justify-content: flex-end;
  }
}

/* Popup for form success */

.form-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity var(--sl-transition-base);
}

.form-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 6, 0.86);
}

.form-popup__box {
  position: relative;
  z-index: 1;
  width: min(90%, 420px);
  padding: 1.7rem 1.5rem 1.6rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at top left, #321824 0, #12070b 60%);
  border: 1px solid rgba(255, 207, 177, 0.8);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.form-popup__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1.2rem;
  background: rgba(103, 213, 142, 0.25);
  border: 1px solid rgba(163, 255, 196, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: #a4ffbf;
}

.form-popup__icon i {
  font-size: 1.5rem;
}

.form-popup__box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.form-popup__box p {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  color: var(--sl-text-muted);
}

.form-popup__close {
  border: none;
  background: transparent;
  color: var(--sl-text-muted);
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  cursor: pointer;
}

.form-popup__close i {
  font-size: 1.1rem;
}

.form-popup--visible {
  opacity: 1;
  pointer-events: auto;
}
