* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f9fafb;
  background: radial-gradient(circle at top, #00140f 0, #00140f 42%, #00140f 60%, #000 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============ LAYOUT BASE ============ */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 64px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-head .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  background: rgba(5, 24, 15, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #dcfce7;
}

.pill i {
  font-size: .85rem;
  color: #4ade80;
}

/* ================= BG DINAMICO ================= */

.bg-blur,
.bg-orbit {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.bg-blur {
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(52, 211, 153, 0.16), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.14), transparent 55%);
  mix-blend-mode: screen;
  opacity: .9;
}

.bg-orbit {
  width: 420px;
  height: 420px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 80px rgba(34, 197, 94, 0.4);
  opacity: .18;
}

.orbit-1 {
  top: 10%;
  left: -10%;
}

.orbit-2 {
  bottom: -12%;
  right: -8%;
}

/* ================= HEADER ================= */

#site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(5, 24, 15, 0.94), rgba(5, 24, 15, 0.86), transparent);
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
}

.logo-box {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 0, #ecfdf3, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(5, 24, 15, 0.9);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.6);
}

.logo-box img {
  width: 72%;
}

.menu {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .86rem;
}

.menu a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #e5e5eb;
  opacity: .9;
}

.menu a:hover {
  background: rgba(5, 24, 15, 0.85);
  opacity: 1;
}

.menu .cta {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #052e16;
  font-weight: 600;
  padding-inline: 16px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
}

.menu .cta:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .menu {
    display: none;
  }
}

/* ================= BUTTON BASE ================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.15), rgb(5, 24, 15));
  color: #ebe5f5;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn.primary {
  border-color: rgba(34, 197, 94, 0.85);
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #00140f;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.7);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(5, 24, 15, 0.85);
}

.btn.primary:hover {
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.9);
}

/* =============== HERO ================= */

.hero {
  padding-top: 110px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .hero-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.hero-copy .kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: #bbf7d0;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.hero-title-row h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: .16em;
  margin: 0;
}

.hero-title-row .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #4ade80);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.9);
}

.hero-underline {
  width: 100%;
  max-width: 260px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #4ade80, transparent);
  opacity: .8;
  margin: 6px 0 14px;
}

.hero .lead {
  max-width: 440px;
  font-size: .98rem;
  color: #ebe5f5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.actions .btn.secondary-ghost {
  background: rgba(5, 24, 15, 0.7);
  border-style: dashed;
  border-color: rgba(34, 197, 94, 0.7);
  font-size: .85rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(5, 24, 15, 0.96);
  font-size: .78rem;
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge i {
  font-size: .8rem;
  color: #4ade80;
}

/* ======= HERO VISUAL / BANNER ======= */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.32);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.20), transparent 55%),
    rgba(3, 20, 12, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  isolation: isolate;
}

.hero-banner img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  opacity: .96;
  filter: saturate(1.1);
}

@media (max-width: 600px) {
  .hero-banner img {
    height: 190px;
  }
}

.hero-banner-top {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.hero-pill {
  pointer-events: auto;
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(2, 20, 12, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ebe5f5;
}

.hero-pill i {
  font-size: .75rem;
  color: #4ade80;
}

.hero-stack {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hero-tag {
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255,255,255,.22);
  color: #ebe5f5;
}

.hero-banner-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  background: linear-gradient(to top, rgba(4, 20, 12, 0.97), transparent);
}

.hero-banner-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-banner-title span {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #a7f3d0;
}

.hero-banner-title strong {
  font-size: .92rem;
}

.hero-mini-metrics {
  display: flex;
  gap: 10px;
  font-size: .75rem;
}

.hero-mini-metrics div {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: right;
}

.hero-mini-metrics b {
  font-size: .86rem;
}

.hero-mini-metrics small {
  font-size: .7rem;
  color: #a7f3d0;
}

/* ====== HERO STAT BAR SOTTO ====== */
.hero-stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
}

.hero-stat-pill {
  flex: 1;
  min-width: 160px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.38);
  background: radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.12), rgba(5, 24, 15, 0.98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-stat-pill span {
  color: #a7f3d0;
  font-size: .8rem;
}

.hero-stat-pill strong {
  font-size: .88rem;
}

@media (max-width: 600px) {
  .hero-stat-bar {
    flex-direction: column;
  }
}

/* ============== TRUST BAR ============== */

.trust {
  border-top: 1px solid rgba(34, 197, 94, 0.35);
  border-bottom: 1px solid rgba(34, 197, 94, 0.18);
  background: radial-gradient(circle at top, rgba(5, 24, 15, 0.96), rgba(5, 24, 15, 0.96));
}

.trust .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px 0;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #a7f3d0;
}

.trust span {
  color: #4ade80;
}

/* ============== SERVICES ============== */

#servizi {
  padding-top: 56px;
  padding-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.project-card {
  position: relative;
  border-radius: 18px;
  padding: 10px 10px 14px;
  background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent, #4ade80) 20%, #00140f 80%), #00140f);
  border: 1px solid rgb(5, 24, 15);
  box-shadow: 0 16px 32px rgba(5, 24, 15, 0.9);
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--accent, #4ade80) 45%, transparent);
  opacity: .7;
  pointer-events: none;
}

.project-image {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-card p {
  font-size: .86rem;
  margin: 0;
  color: #dcfce7;
}

/* ==== “ECOSISTEMA NOS” RIGA SEPARATORE ===== */

.ecosystem-strip {
  margin: 40px auto 0;
  max-width: 880px;
  border-radius: 999px;
  padding: 10px 18px;
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.3), rgb(5, 24, 15));
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}

.ecosystem-strip span.label {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
  font-size: .75rem;
  color: #d9f99d;
}

.ecosystem-strip .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ecosystem-strip .tags span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(5, 24, 15, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #e5e5eb;
}

/* ============== PROJECTS / PORTFOLIO ============== */

.projects {
  padding-top: 52px;
  padding-bottom: 44px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.project-card a img {
  transition: transform .25s ease;
}

.project-card:hover a img {
  transform: translateY(-4px) scale(1.02);
}

.project-socials {
  display: flex;
  gap: 6px;
  margin: 6px 0 8px;
}

.social-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  background: rgba(5, 24, 15, 0.96);
}

.social-btn i {
  color: #e5e5eb;
}

.social-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent, #4ade80) 60%, #e5e7eb 40%);
}

/* ============== CONTACT ============== */

#contatti {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(34, 197, 94, 0.25);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0,1fr);
  }
}

.panel {
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.15), rgba(5, 24, 15, 0.98));
  box-shadow: 0 20px 40px rgba(5, 24, 15, 0.9);
  padding: 18px 18px 20px;
}

#contact-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  #contact-form .row {
    grid-template-columns: minmax(0,1fr);
  }
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  padding: 9px 10px;
  background: rgba(5, 24, 15, 0.96);
  color: #e5e5eb;
  font-size: .9rem;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.7);
}

textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hint {
  margin-top: 6px;
  font-size: .8rem;
  color: #bbf7d0;
}

.hint a {
  color: #4ade80;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.panel p.small {
  font-size: .86rem;
  color: #e5e5eb;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.socials a {
  font-size: .82rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  background: rgba(5, 24, 15, 0.96);
}

.socials a:hover {
  border-color: #4ade80;
}

/* ============== FOOTER ============== */

.footer {
  border-top: 1px solid rgba(34, 197, 94, 0.3);
  background: radial-gradient(circle at top, rgb(5, 24, 15), #00140f);
  padding: 26px 0 20px;
}

.footer-inner {
  font-size: .86rem;
  color: #a7f3d0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.footer-logo h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 10px;
  font-size: 1rem;
}

.footer-socials a {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 24, 15, 0.96);
}

.footer-socials a i {
  color: #e5e5eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .7fr);
  gap: 18px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.footer-grid h4 {
  margin: 0 0 6px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #e5e5eb;
}

.footer-grid p.small a {
  color: #e5e5eb;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: .78rem;
  color: #a7f3d0;
  border-top: 1px solid rgba(34, 197, 94, 0.35);
  padding-top: 8px;
  margin-top: 6px;
}

.footer-bottom p {
  margin: 0;
}

/* ====== COLOR OVERRIDE ONMI ====== */
body.page-onmi .hero-title-row .dot {
  background: radial-gradient(circle at 30% 30%, #ffffff, #4ade80);
  box-shadow: 0 0 18px #4ade80e6;
}

body.page-onmi .hero-underline {
  background: linear-gradient(90deg, #22c55e, #4ade80, transparent);
}

body.page-onmi .btn.primary {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  border-color: #22c55e;
  box-shadow: 0 0 25px #4ade80cc;
  color: #00140f;
}

body.page-onmi .badge i,
body.page-onmi .hero-pill i {
  color: #4ade80;
}

body.page-onmi .trust span {
  color: #4ade80;
}

body.page-onmi .hero-banner {
  background:
    radial-gradient(circle at top left, #4ade8033, transparent 55%),
    rgba(3, 20, 12, 0.98);
}

/* ============================
   LISTINO PREZZI — NOS DESIGN
============================== */

#listino {
  padding: 64px 0;
  border-top: 1px solid rgba(34,197,94,0.25);
}

.listino-category {
  margin: 36px 0 16px;
  font-size: 1.1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #bbf7d0;
  text-align: center;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.price-card {
  border-radius: 18px;
  padding: 18px;
  background: radial-gradient(circle at 0 0,
    rgba(34,197,94,0.18),
    rgba(5,24,15,0.98)
  );
  border: 1px solid rgba(34,197,94,0.35);
  box-shadow: 0 16px 32px rgba(5,24,15,0.85);
}

.price-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: .08em;
  color: #ecfdf3;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: .88rem;
  color: #dcfce7;
  line-height: 1.45;
}

.price-addons {
  text-align: center;
  margin-bottom: 30px;
}

.price-addons h4 {
  margin: 0;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .9rem;
  color: #bbf7d0;
}

.price-addons p {
  margin: 6px 0 0;
  font-size: .86rem;
  color: #a7f3d0;
}