/* ===========================================================
   DelocaNova — Site CSS
   Apple-style: minimale, tipografia grande, white space ampio
   =========================================================== */

:root {
  --bg:           #ffffff;
  --bg-soft:      #fafafa;
  --bg-dark:      #0a0a0a;
  --bg-dark-soft: #141414;
  --text:         #0a0a0a;
  --text-soft:    #6b6b6b;
  --text-muted:   #9a9a9a;
  --text-light:   #f5f5f7;
  --text-light-soft: #a1a1aa;
  --border:       #e5e5e7;
  --border-dark:  #1f1f1f;
  --accent:       #0d9488;
  --accent-hover: #0f766e;
  --accent-soft:  #ccfbf1;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow:    0 4px 24px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.06);

  --ease:      cubic-bezier(.22,.61,.36,1);
  --duration:  600ms;

  --container:        1200px;
  --container-narrow: 820px;

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* ===========================================================
   LAYOUT
   =========================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: var(--container-narrow); }

.section {
  padding: 140px 0;
  position: relative;
}
.section-light { background: var(--bg); color: var(--text); }
.section-dark  { background: var(--bg-dark); color: var(--text-light); }

.section-head {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.eyebrow-light { color: #2dd4bf; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--text);
}
.section-title-light { color: var(--text-light); }

.section-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 auto;
  max-width: 620px;
}
.section-dark .section-sub { color: var(--text-light-soft); }

/* ===========================================================
   NAV
   =========================================================== */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .3s ease;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.nav-brand-mark {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.nav-brand-mark svg { width: 100%; height: 100%; }

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--accent); }

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 28px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-link {
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-mobile-link:last-of-type { border-bottom: 0; }
.nav-mobile-cta {
  margin-top: 16px;
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 500;
}

/* ===========================================================
   HERO
   =========================================================== */

.hero {
  position: relative;
  padding: 120px 28px 140px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(13,148,136,.08), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--text);
}

.hero-accent {
  background: linear-gradient(120deg, var(--accent), #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ===========================================================
   BUTTONS
   =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--text);
}
.btn-light:hover {
  background: var(--accent);
  color: #fff;
}

.btn-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  transition: gap .2s ease;
}
.btn-text:hover { gap: 8px; }

.btn-text-light {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease, opacity .2s ease;
  opacity: .9;
}
.btn-text-light:hover { opacity: 1; gap: 10px; }

/* ===========================================================
   TRUST BAR
   =========================================================== */

.trust {
  padding: 48px 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  align-items: center;
}
.trust-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: -0.01em;
  transition: color .2s ease;
  white-space: nowrap;
}
.trust-name:hover { color: var(--text); }

/* ===========================================================
   PRODOTTI
   =========================================================== */

.section-products-intro { padding-bottom: 80px; }

.showcase {
  padding-top: 60px;
  padding-bottom: 60px;
}
.showcase-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
  padding: 100px 28px;
  max-width: none;
  margin: 0;
  width: 100%;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.showcase-grid-reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.showcase-grid-reverse .showcase-visual { order: -1; }

.showcase-copy { max-width: 480px; }

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 24px 0 18px;
  color: var(--text);
}

.showcase-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 24px;
}

.showcase-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.showcase-visual {
  position: relative;
}

.showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow:
    0 30px 60px -20px rgba(13,148,136,.18),
    0 18px 48px rgba(0,0,0,.10),
    0 2px 6px rgba(0,0,0,.04);
  transform: perspective(1400px) rotateY(0deg);
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
.showcase-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0,0,0,.06);
  pointer-events: none;
}
.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.showcase-grid:hover .showcase-frame {
  transform: translateY(-4px);
  box-shadow:
    0 40px 80px -20px rgba(13,148,136,.22),
    0 24px 60px rgba(0,0,0,.12),
    0 2px 6px rgba(0,0,0,.04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--text);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}

.product-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 28px;
}

.product-card-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 10px;
}
.product-card-feats li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text);
}
.product-card-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-card-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ===========================================================
   SVILUPPO / SERVIZI (dark)
   =========================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.service-card {
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform .3s var(--ease), border-color .25s ease, background .25s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13,148,136,.4);
  background: #1a1a1a;
}

.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.service-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text-light);
}
.service-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-light-soft);
  margin: 0;
}

/* ===========================================================
   AZIENDA
   =========================================================== */

.about-block {
  text-align: center;
  margin-top: -40px;
}
.about-text {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 24px;
}
.about-text:last-child { margin-bottom: 0; }

/* ===========================================================
   CONTATTI
   =========================================================== */

.section-contact {
  padding: 120px 0;
  background: var(--bg);
}

.contact-card {
  background:
    radial-gradient(circle at 30% 20%, rgba(13,148,136,.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(6,182,212,.12), transparent 60%),
    var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 96px 56px;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  position: relative;
}

.contact-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-light-soft);
  max-width: 540px;
  margin: 12px auto 36px;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ===========================================================
   FOOTER
   =========================================================== */

.site-footer {
  padding: 80px 0 40px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .nav-brand-name { font-size: 20px; }
.footer-tag {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

.footer-link {
  display: block;
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 14px;
  transition: color .15s ease;
}
.footer-link:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================================================
   REVEAL on SCROLL
   =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 980px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 56px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { padding: 40px 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .showcase-grid,
  .showcase-grid-reverse { grid-template-columns: 1fr; gap: 48px; }
  .showcase-grid-reverse .showcase-visual { order: 0; }
  .showcase-copy { max-width: none; }
  .showcase { padding: 40px 0; }
  .showcase-alt { padding: 80px 28px; }
}

@media (max-width: 720px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-shell.is-open .nav-mobile { display: flex; }

  .hero { padding: 80px 24px 100px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }

  .product-card { padding: 36px 24px; }
  .services-grid { grid-template-columns: 1fr; }

  .contact-card { padding: 64px 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .trust-list { gap: 10px 20px; }
  .trust-name { font-size: 15px; }
}
