/* ── Tokens ──────────────────────────────────── */
:root {
  --yellow:    #ffcd3c;
  --dark:      #111111;
  --text:      #1a1a1a;
  --secondary: #666666;
  --surface:   #f7f7f7;
  --white:     #ffffff;
  --border:    #e0e0e0;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w:  1140px;
  --gutter: 1.5rem;
  --radius: 8px;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; padding: 0; }
ul { list-style: none; }

/* ── Utilities ───────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius);
  transition: opacity 0.15s, box-shadow 0.15s;
}
.btn:hover { opacity: 0.85; }

.btn-primary {
  background: var(--yellow);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  opacity: 1;
}

.btn-full { width: 100%; }

/* ── Header ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse at 65% 40%, #1c1c1c 0%, var(--dark) 65%);
  padding: 7rem var(--gutter) 6rem;
  min-height: min(80vh, 680px);
  display: flex;
  align-items: center;
}

.hero-inner { max-width: 740px; }

.hero-eyebrow {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--yellow);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.55);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── About ───────────────────────────────────── */
.about {
  background: var(--surface);
  padding: 5rem var(--gutter);
}

.about-inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.about-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.about p {
  font-size: 1.05rem;
  color: var(--secondary);
  line-height: 1.75;
  max-width: 56ch;
  margin-inline: auto;
}

/* ── Pillars ─────────────────────────────────── */
.pillars {
  padding: 5rem var(--gutter);
  background: var(--white);
}

.pillars-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pillars-header p {
  color: var(--secondary);
  max-width: 48ch;
  margin-inline: auto;
  margin-top: 0.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s;
}
.pillar-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  color: var(--yellow);
  flex-shrink: 0;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.pillar-desc {
  font-size: 0.87rem;
  color: var(--secondary);
  line-height: 1.6;
}

/* ── Cases ───────────────────────────────────── */
.cases {
  background: var(--surface);
  padding: 5rem var(--gutter);
}

.cases-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cases-header p {
  color: var(--secondary);
  margin-top: 0.5rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.case-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.case-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-sector {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.case-type {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
}
.case-type.b2c { background: var(--text); color: var(--white); }
.case-type.b2b { background: var(--yellow); color: var(--dark); }

.case-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.case-teaser {
  font-size: 0.85rem;
  color: var(--secondary);
  line-height: 1.55;
  flex: 1;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.75rem;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
  width: fit-content;
  transition: gap 0.15s;
}
.case-link:hover { gap: 0.5rem; }

/* ── Contact ─────────────────────────────────── */
.contact {
  padding: 5rem var(--gutter);
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
  max-width: 900px;
  margin-inline: auto;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--text);
}

.contact-copy > p {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-email {
  margin-top: 1rem;
}
.contact-email a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}
.contact-email a:hover { text-decoration-color: var(--text); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 205, 60, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 2.25rem var(--gutter);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-logo img {
  height: 22px;
  width: auto;
  opacity: 0.8;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}
.footer-info a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
}
.footer-info a:hover { color: var(--white); }

/* ── Case study page ─────────────────────────── */
.case-hero {
  background: radial-gradient(ellipse at 70% 30%, #1c1c1c 0%, var(--dark) 65%);
  padding: 4rem var(--gutter) 4.5rem;
}

.case-breadcrumb {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.case-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
}
.case-breadcrumb a:hover { color: var(--white); }

.case-hero-inner { max-width: 760px; }

.case-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.case-hero-sector {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.case-type-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.case-type-badge.b2c { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }
.case-type-badge.b2b { background: var(--yellow); color: var(--dark); }

.case-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.case-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.case-site-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.case-site-link:hover { opacity: 0.7; }

/* Screenshot */
.case-screenshot {
  background: var(--surface);
  padding: 3rem var(--gutter);
}

.case-screenshot-wrap {
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.case-screenshot-wrap img { width: 100%; height: auto; }

.case-screenshot-placeholder {
  background: var(--border);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.82rem;
}
.case-screenshot-placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--border);
  opacity: 0.5;
}

/* Content */
.case-content {
  max-width: 760px;
  margin-inline: auto;
  padding: 4.5rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.case-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.case-section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.case-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.case-section p {
  color: var(--secondary);
  line-height: 1.75;
}

/* Risultati */
.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.case-result-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.case-result-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.case-result-value em {
  font-style: normal;
  color: var(--yellow);
}

.case-result-label {
  font-size: 0.78rem;
  color: var(--secondary);
  line-height: 1.4;
}

/* Stack */
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.stack-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
}

/* CTA footer */
.case-cta {
  background: var(--dark);
  padding: 5rem var(--gutter);
  text-align: center;
}

.case-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.case-cta p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--white);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .case-results { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cases-grid   { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }

  .hero { padding-block: 5rem 4rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .case-card,
  .case-link,
  .pillar-card,
  .field input,
  .field textarea,
  .hamburger span { transition: none; }
}
