:root {
  --bg: #06110b;
  --bg-2: #081711;
  --bg-3: #0d2118;
  --surface: rgba(8, 27, 18, 0.78);
  --surface-2: rgba(12, 34, 22, 0.9);
  --surface-soft: rgba(26, 61, 41, 0.22);
  --line: rgba(129, 255, 175, 0.14);
  --line-strong: rgba(129, 255, 175, 0.24);
  --text: #effff4;
  --text-soft: #b7d7c0;
  --title: #ffffff;
  --primary: #22c55e;
  --primary-2: #16a34a;
  --primary-3: #86efac;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.26);
  --radius: 28px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text-soft);
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 197, 94, 0.18), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(134, 239, 172, 0.10), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(135deg, #041009 0%, #07160f 45%, #0b1f15 100%);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: .28;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all .28s ease;
}

a:hover { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5 {
  margin-top: 0;
  margin-bottom: .75rem;
  color: var(--title);
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -0.03em;
}

p { margin-top: 0; line-height: 1.78; }

.page-shell { position: relative; min-height: 100vh; }
.site-wrap {
  display: grid;
  grid-template-columns: minmax(360px, 40%) 1fr;
  min-height: 100vh;
  transition: transform .3s ease;
}
.single-column-layout { grid-template-columns: 1fr; }

.sidebar-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(1, 7, 4, .12), rgba(2, 8, 5, .6) 38%, rgba(2, 8, 5, .92)),
    url('../img/daniel_biasoli.png') center top / cover no-repeat;
}

.sidebar-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 17, 11, 0.35), rgba(4, 17, 11, 0.56) 30%, rgba(4, 17, 11, 0.92));
}

.sidebar-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 34px 42px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
}

.sidebar-logo {
  width: min(250px, 82%);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.42));
}

.sidebar-copy {
  max-width: 560px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--primary-3);
  margin-bottom: 18px;
}

.eyebrow:before,
.section-kicker:before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-3));
}

.sidebar-content h1 {
  font-size: clamp(46px, 6vw, 84px);
  line-height: .95;
  margin-bottom: 18px;
  text-shadow: 0 0 24px rgba(34, 197, 94, .18);
}

.sidebar-lead {
  font-size: 18px;
  max-width: 520px;
  color: #eefcf1;
  opacity: .94;
}

.sidebar-badges,
.sidebar-actions,
.cta-actions,
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sidebar-badges { margin: 22px 0 30px; }

.sidebar-badges span,
.timeline-date {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  color: #f5fff8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.sidebar-actions { margin-bottom: 22px; }

.content-panel {
  position: relative;
  padding: 36px;
}

.full-width {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding-top: 82px;
}

.hero-card,
.glass-card,
.feature-strip,
.cta-card,
.timeline-card,
.contact-card,
.modern-portfolio-card,
.page-header,
.brand-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 34, 22, 0.92), rgba(6, 24, 15, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card:before,
.glass-card:before,
.feature-strip:before,
.cta-card:before,
.timeline-card:before,
.contact-card:before,
.modern-portfolio-card:before,
.page-header:before,
.brand-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(134,239,172,0.10), transparent 35%, transparent 70%, rgba(34,197,94,0.06));
  pointer-events: none;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 24px;
  padding: 34px;
  margin-bottom: 24px;
}

.hero-copy,
.hero-stats,
.feature-item,
.cta-card > div,
.brand-banner > div,
.timeline-card,
.page-header,
.glass-card,
.contact-card,
.modern-portfolio-card {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-copy h2 span {
  color: var(--primary-3);
  text-shadow: 0 0 20px rgba(34,197,94,.18);
}

.hero-copy p { font-size: 17px; max-width: 820px; }

.inline-profile {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.inline-profile img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 2px solid rgba(134,239,172,.22);
}

.inline-profile strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.inline-profile span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.stat-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  color: #fff;
  font-size: 28px;
  margin-bottom: 8px;
  font-family: "Sora", sans-serif;
}

.grid-section,
.portfolio-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.grid-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.glass-card,
.modern-portfolio-card,
.contact-card,
.timeline-card,
.page-header { padding: 30px; }

.glass-card h3,
.cta-card h3,
.timeline-card h2,
.page-header h1,
.brand-banner h2 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 12px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  gap: 18px;
  padding: 28px;
  border-right: 1px solid var(--line);
}
.feature-item:last-child { border-right: none; }

.feature-item i,
.contact-card i,
.portfolio-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 22px;
  box-shadow: 0 18px 30px rgba(22,163,74,.22);
}

.feature-item h4,
.contact-card h3,
.modern-portfolio-card h3,
.timeline-item h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
}

.btn {
  border: none;
  box-shadow: none !important;
  font-weight: 700;
  letter-spacing: .01em;
}

.btn-pill {
  padding: 14px 24px;
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(34,197,94,.28) !important;
}

.btn-outline-light,
.btn-outline-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
}

.btn-outline-light:hover,
.btn-outline-dark:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.offcanvas-toggle {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(6, 20, 13, 0.82);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}
.offcanvas-toggle:hover { color: #fff; }

.offcanvas_menu {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100vh;
  z-index: 250;
  background: rgba(5, 18, 12, 0.97);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(18px);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right .3s ease;
}
body.offcanvas-open .offcanvas_menu { right: 0; }
body.offcanvas-open .site-wrap { transform: translateX(-72px); }

.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 10px;
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
}
.brand-mini strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}
.brand-mini span {
  display: block;
  margin-top: 2px;
  color: var(--primary-3);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.menu-text,
.menu-footer {
  font-size: 14px;
  color: var(--text-soft);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.menu-list li { margin-bottom: 8px; }
.menu-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  font-weight: 600;
}
.menu-list li.active a,
.menu-list a:hover {
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(134,239,172,.08));
  border: 1px solid rgba(134,239,172,.12);
}

.social {
  list-style: none;
  padding: 0;
  margin: 0;
}
.social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.social a:hover {
  background: rgba(34,197,94,.18);
  transform: translateY(-2px);
}
.sidebar-social { margin-top: 4px; }

.brand-banner {
  display: grid;
  grid-template-columns: 1.2fr .7fr;
  gap: 24px;
  align-items: center;
  padding: 24px 30px;
  margin-bottom: 24px;
}

.brand-banner-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-banner-logo {
  width: 110px;
  max-width: 24%;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(0,0,0,.22));
}
.brand-banner-photo {
  display: flex;
  justify-content: flex-end;
}
.brand-banner-photo img {
  width: 210px;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-soft);
}

.page-header { margin-bottom: 24px; }

.timeline-section { margin-bottom: 24px; }
.timeline-list {
  position: relative;
  margin-top: 26px;
  padding-left: 26px;
}
.timeline-list:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(255,255,255,0.06));
}
.timeline-item {
  position: relative;
  padding: 0 0 26px 28px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  box-shadow: 0 0 0 6px rgba(34,197,94,.12);
}

.portfolio-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-icon { margin-bottom: 18px; }

.home-button.modern-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 12px 18px;
}
.home-button.modern-home:hover { background: rgba(255,255,255,0.10); }

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#loader.show { opacity: 1; visibility: visible; }
#loader {
  position: fixed;
  inset: 0;
  background: #07150d;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease-out;
}
#loader .circular {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.path {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
  stroke-linecap: round;
}
@keyframes dash {
  0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
  100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; }
}

@media (max-width: 1200px) {
  .site-wrap { grid-template-columns: 1fr; }
  .sidebar-panel { min-height: 88vh; }
}

@media (max-width: 991px) {
  .hero-card,
  .grid-section,
  .portfolio-grid,
  .contact-grid,
  .feature-strip,
  .cta-card,
  .brand-banner {
    grid-template-columns: 1fr;
    display: grid;
  }
  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .feature-item:last-child { border-bottom: none; }
  .cta-card { display: block; }
  .cta-actions { margin-top: 16px; }
  .brand-banner-photo { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .content-panel,
  .full-width,
  .sidebar-content { padding: 22px; }

  .hero-card,
  .glass-card,
  .feature-item,
  .cta-card,
  .timeline-card,
  .page-header,
  .brand-banner,
  .contact-card,
  .modern-portfolio-card { padding: 22px; }

  .sidebar-content h1 { font-size: 48px; }
  .hero-copy h2,
  .glass-card h3,
  .cta-card h3,
  .timeline-card h2,
  .page-header h1,
  .brand-banner h2 { font-size: 30px; }

  .sidebar-logo {
    width: min(220px, 90%);
  }

  .offcanvas-toggle {
    right: 14px;
    top: 14px;
    padding: 10px 14px;
    font-size: 11px;
  }

  .brand-banner-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-banner-logo {
    width: 130px;
    max-width: 100%;
  }

  .brand-banner-photo img {
    width: 100%;
  }

  body.offcanvas-open .site-wrap { transform: none; }
}


.site-wrap-home {
  display: block;
}

.home-main {
  max-width: 1440px;
  padding-top: 28px;
}

.saas-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 36px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 10%, rgba(134,239,172,0.11), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(34,197,94,0.15), transparent 20%),
    linear-gradient(135deg, rgba(9,24,16,0.96) 0%, rgba(7,20,13,0.94) 55%, rgba(5,14,10,0.98) 100%);
  box-shadow: var(--shadow);
}

.saas-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6,17,11,0.08), transparent 30%, rgba(134,239,172,0.05));
}

.saas-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: start;
  gap: 36px;
}

.hero-topbar {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.hero-brand-logo {
  width: min(340px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

.saas-hero-copy {
  max-width: 720px;
  padding-top: 4px;
}

.saas-hero-copy h1 {
  font-size: clamp(58px, 8vw, 104px);
  line-height: 0.92;
  margin-bottom: 20px;
  text-shadow: 0 0 28px rgba(34, 197, 94, .08);
}

.hero-lead {
  font-size: 21px;
  line-height: 1.7;
  max-width: 690px;
  color: #e6f5ea;
  margin-bottom: 22px;
}

.hero-badges { margin: 0 0 28px; }
.hero-actions { margin-bottom: 22px; }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(134,239,172,0.18);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.hero-mini-note {
  max-width: 590px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-soft);
  line-height: 1.7;
}
.hero-mini-note strong { color: #fff; }

.saas-hero-media {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.saas-hero-photo-frame {
  position: relative;
  width: 100%;
  min-height: 640px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(10,24,17,0.2), rgba(5,14,10,0.72));
  box-shadow: 0 30px 80px rgba(0,0,0,0.32);
}

.saas-hero-photo-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,17,11,0.1), transparent 20%, rgba(6,17,11,0.36));
}

.saas-hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hero-floating-card {
  position: absolute;
  max-width: 250px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(8, 27, 18, 0.86);
  border: 1px solid rgba(134,239,172,0.16);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.hero-floating-card strong {
  display: block;
  color: #fff;
  font-size: 22px;
  margin-bottom: 6px;
}
.hero-floating-card span { color: var(--text-soft); line-height: 1.55; }
.hero-floating-card-top { left: -18px; top: 26px; }
.hero-floating-card-bottom { right: -18px; bottom: 24px; }

@media (max-width: 1199px) {
  .saas-hero-grid { grid-template-columns: 1fr; }
  .saas-hero-media { min-height: auto; }
  .saas-hero-photo-frame { min-height: 520px; }
  .hero-floating-card-top { left: 18px; }
  .hero-floating-card-bottom { right: 18px; }
}

@media (max-width: 767px) {
  .home-main { padding-top: 18px; }
  .saas-hero { padding: 22px; border-radius: 26px; }
  .hero-brand-logo { width: min(250px, 100%); }
  .saas-hero-copy h1 { font-size: clamp(42px, 16vw, 66px); }
  .hero-lead { font-size: 18px; }
  .saas-hero-photo-frame { min-height: 420px; }
  .hero-floating-card {
    position: static;
    max-width: none;
    margin-top: 14px;
  }
  .saas-hero-media {
    display: block;
  }
}
