/* ==========================================================================
   M3D PRINT LAB — Design tokens
   Palette derivata dal logo: blueprint navy + nastro filamento arcobaleno
   ========================================================================== */

:root {
  /* Colore */
  --navy: #0B1E33;
  --navy-soft: #1B4965;
  --paper: #F7F5F1;
  --paper-dim: #EFEBE3;
  --white: #FFFFFF;

  --fil-orange: #FF6B35;
  --fil-pink: #FF3D7F;
  --fil-purple: #7B2FF7;
  --fil-blue: #00B4D8;

  --filament-gradient: linear-gradient(115deg, var(--fil-orange) 0%, var(--fil-pink) 35%, var(--fil-purple) 65%, var(--fil-blue) 100%);

  --ink: var(--navy);
  --ink-soft: #3D5A73;
  --border-soft: rgba(11, 30, 51, 0.12);
  --border-strong: rgba(11, 30, 51, 0.22);

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --wrap-w: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 32px;
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-soft);
  display: inline-block;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--filament-gradient);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 0;
}

.btn-primary span, .btn-primary {
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(11, 30, 51, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--fil-blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  height: 38px;
  width: 38px;
  object-fit: contain;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand-word em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--filament-gradient);
  transition: width 0.3s var(--ease);
}

.main-nav a:not(.nav-cta):hover {
  color: var(--navy);
}

.main-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy);
  color: var(--paper) !important;
  padding: 9px 20px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 0%, transparent 70%);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--filament-gradient);
  flex-shrink: 0;
}

.filament-text {
  background: var(--filament-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: filamentShift 6s ease infinite;
}

@keyframes filamentShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-lead {
  font-size: 1.13rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-logo-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  isolation: isolate;
}

.hero-logo-glow {
  position: absolute;
  inset: 8% 6% 8% 6%;
  background: var(--filament-gradient);
  filter: blur(42px);
  opacity: 0.28;
  border-radius: 32px;
  z-index: 0;
  animation: glowPulse 4.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50% { opacity: 0.38; transform: scale(1.04); }
}

.hero-logo-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(11,30,51,0.08);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow:
    0 18px 48px -18px rgba(11,30,51,0.22),
    0 4px 16px -6px rgba(11,30,51,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: cardEntrance 0.9s var(--ease) both, cardFloat 5.5s ease-in-out 0.9s infinite;
  transform-style: preserve-3d;
}

.hero-logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: var(--filament-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  pointer-events: none;
}

.hero-logo-card::after {
  content: '';
  position: absolute;
  inset: -60% -40% auto -40%;
  height: 55%;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.85) 50%, transparent 70%);
  transform: translateX(-100%) rotate(6deg);
  animation: shimmerSweep 3.2s ease-in-out 1.4s infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(22px) scale(0.96) rotateX(6deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  25% { transform: translateY(-6px) rotateX(1deg) rotateY(-1deg); }
  50% { transform: translateY(-2px) rotateX(0) rotateY(0); }
  75% { transform: translateY(-8px) rotateX(-1deg) rotateY(1deg); }
}

@keyframes shimmerSweep {
  0% { transform: translateX(-100%) rotate(6deg); }
  55% { transform: translateX(120%) rotate(6deg); }
  100% { transform: translateX(120%) rotate(6deg); }
}

.hero-logo-img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(11,30,51,0.08));
  animation: logoBreathe 5.5s ease-in-out infinite;
}

@keyframes logoBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

.hero-logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  border: 1px dashed rgba(27,73,101,0.14);
  z-index: 0;
  animation: ringRotate 24s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Sections shared
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--paper-dim);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  margin-top: 14px;
}

.section-label {
  padding-top: 6px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.about-content {
  max-width: 640px;
}

.about-content h2 {
  margin-bottom: 24px;
}

/* Services */

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -14px rgba(11, 30, 51, 0.18);
  border-color: transparent;
}

.service-card p { margin-bottom: 0; font-size: 0.96rem; }

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  background: var(--filament-gradient);
  -webkit-mask-size: 60%;
  mask-size: 60%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  opacity: 0;
}

/* simple geometric icon shapes via clip-path per type, layered on gradient swatch */
.service-icon {
  -webkit-mask-image: var(--icon-svg);
  mask-image: var(--icon-svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.service-icon[data-icon="model"] { --icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2 L21 7 V17 L12 22 L3 17 V7 Z'/%3E%3Cpath d='M12 12 L21 7 M12 12 V22 M12 12 L3 7'/%3E%3C/svg%3E"); }
.service-icon[data-icon="custom"] { --icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7 v5 l3 3'/%3E%3C/svg%3E"); }
.service-icon[data-icon="gadget"] { --icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cline x1='9' y1='19' x2='15' y2='19'/%3E%3C/svg%3E"); }
.service-icon[data-icon="parts"] { --icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.66 5.66l-6 6a2 2 0 1 0 2.83 2.83l6-6a4 4 0 0 0 5.66-5.66l-2.12 2.12-2.83-2.83Z'/%3E%3C/svg%3E"); }
.service-icon[data-icon="spares"] { --icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1.04 1.56V21a2 2 0 1 1-4 0v-.09A1.7 1.7 0 0 0 9 19.4a1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.56-1.04H3a2 2 0 1 1 0-4h.09A1.7 1.7 0 0 0 4.6 9a1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1.04-1.56V3a2 2 0 1 1 4 0v.09A1.7 1.7 0 0 0 15 4.6a1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9a1.7 1.7 0 0 0 1.56 1.04H21a2 2 0 1 1 0 4h-.09A1.7 1.7 0 0 0 19.4 15Z'/%3E%3C/svg%3E"); }
.service-icon[data-icon="decor"] { --icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2 C 8 6, 8 10, 12 12 C 16 10, 16 6, 12 2 Z'/%3E%3Cpath d='M12 12 v10 M8 22 h8'/%3E%3C/svg%3E"); }

/* Process */

.process-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-line::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--border-strong) 0%, var(--border-strong) 100%);
  z-index: 0;
}

.process-step {
  position: relative;
  padding: 0 24px 0 0;
  z-index: 1;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--navy);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
}

.process-step:nth-child(1) .process-num { border-image: none; background: var(--navy); color: var(--paper); }

.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.94rem; margin-bottom: 0; }

/* Galleria */

.gallery-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.gallery-placeholder {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--paper) 0%, var(--white) 100%);
  border: 1.5px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  overflow: hidden;
}

.gallery-placeholder:has(> a) {
  aspect-ratio: auto;
  background: none;
  border: none;
  display: block;
  padding: 0;
}

.gallery-placeholder > a {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.gallery-cta {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.pricing-content {
  max-width: 680px;
}

.pricing-content h2 { margin-bottom: 20px; }

.pricing-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 36px;
}

.pricing-point {
  border-left: 3px solid;
  border-image: var(--filament-gradient) 1;
  padding-left: 16px;
}

.pricing-point h4 { margin-bottom: 6px; }
.pricing-point p { font-size: 0.9rem; margin-bottom: 0; }

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-answer > p {
  overflow: hidden;
  margin: 0;
  padding-bottom: 0;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
}

.faq-question[aria-expanded="true"] + .faq-answer > p {
  padding-bottom: 22px;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
}

.faq-answer > p {
  min-height: 0;
}

/* Contact */

.contact-section {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--filament-gradient);
  filter: blur(120px);
  opacity: 0.25;
  border-radius: 50%;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-intro .tag-mono { color: rgba(247,245,241,0.6); }
.contact-intro h2 { color: var(--paper); margin-top: 14px; }
.contact-intro p { color: rgba(247,245,241,0.75); }

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: rgba(247,245,241,0.06);
  border: 1px solid rgba(247,245,241,0.14);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-card:hover {
  transform: translateX(6px);
  background: rgba(247,245,241,0.1);
  border-color: rgba(247,245,241,0.3);
}

.contact-card-primary {
  background: var(--filament-gradient);
  border: none;
}

.contact-card-primary:hover {
  transform: translateX(6px) scale(1.01);
}

.contact-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: var(--paper);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.contact-icon[data-icon="whatsapp"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.6 6.3A8.9 8.9 0 0 0 3.7 16.9L2 22l5.3-1.4a8.9 8.9 0 0 0 4.3 1.1h0a8.9 8.9 0 0 0 8.9-8.9 8.9 8.9 0 0 0-2.9-6.5ZM12 20.2h0a7.4 7.4 0 0 1-3.8-1l-.3-.2-2.8.8.8-2.7-.2-.3a7.4 7.4 0 1 1 13.7-4A7.4 7.4 0 0 1 12 20.2Zm4-5.4c-.2-.1-1.3-.6-1.5-.7-.2-.1-.3-.1-.5.1-.1.2-.5.7-.6.8-.1.1-.2.2-.4.1a6 6 0 0 1-1.8-1.1 6.6 6.6 0 0 1-1.2-1.5c-.1-.2 0-.3.1-.4l.3-.4.2-.3v-.3c0-.1-.5-1.3-.7-1.7-.2-.4-.4-.4-.5-.4h-.4c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 1.9s.8 2.2.9 2.4c.1.1 1.6 2.5 4 3.5.5.2 1 .4 1.3.5.6.2 1.1.1 1.5.1.5-.1 1.3-.5 1.5-1 .2-.5.2-.9.1-1l-.3-.2Z'/%3E%3C/svg%3E"); }
.contact-icon[data-icon="email"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7 L12 13 L21 7'/%3E%3C/svg%3E"); }
.contact-icon[data-icon="instagram"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E"); }

.contact-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
  display: block;
}

.contact-card-primary .contact-card-title,
.contact-card-primary .contact-card-sub { color: var(--navy); }

.contact-card-sub {
  font-size: 0.85rem;
  color: rgba(247,245,241,0.6);
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(247,245,241,0.1);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
}

.footer-mark {
  height: 26px;
  width: 26px;
  object-fit: contain;
}

.footer-tagline {
  color: rgba(247,245,241,0.5);
  font-size: 0.9rem;
  margin: 0;
}

.footer-copy {
  color: rgba(247,245,241,0.4);
  font-size: 0.85rem;
  margin: 0;
}

.footer-disclaimer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(247,245,241,0.08);
}

.footer-disclaimer p {
  color: rgba(247,245,241,0.45);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
  max-width: 780px;
}

.footer-disclaimer strong {
  color: rgba(247,245,241,0.7);
  font-weight: 600;
}

/* Hobby badge & notes */

.hobby-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--paper-dim);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.hobby-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--filament-gradient);
  flex-shrink: 0;
}

.pricing-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

.contact-hobby-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: rgba(247,245,241,0.55) !important;
  font-style: italic;
}

.contact-card-text {
  display: flex;
  flex-direction: column;
}

/* Hero contact box - visibile subito */

.hero-contact-box {
  margin-top: 28px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px -12px rgba(11,30,51,0.12);
}

.hero-contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0 0 14px;
}

.hero-contact-box .hero-actions {
  margin-bottom: 10px;
}

.hero-contact-hint {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0;
}

.hint-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hint-link:hover {
  color: var(--navy-soft);
}

.btn-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.btn-ico[data-icon="whatsapp"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.6 6.3A8.9 8.9 0 0 0 3.7 16.9L2 22l5.3-1.4a8.9 8.9 0 0 0 4.3 1.1h0a8.9 8.9 0 0 0 8.9-8.9 8.9 8.9 0 0 0-2.9-6.5ZM12 20.2h0a7.4 7.4 0 0 1-3.8-1l-.3-.2-2.8.8.8-2.7-.2-.3a7.4 7.4 0 1 1 13.7-4A7.4 7.4 0 0 1 12 20.2Zm4-5.4c-.2-.1-1.3-.6-1.5-.7-.2-.1-.3-.1-.5.1-.1.2-.5.7-.6.8-.1.1-.2.2-.4.1a6 6 0 0 1-1.8-1.1 6.6 6.6 0 0 1-1.2-1.5c-.1-.2 0-.3.1-.4l.3-.4.2-.3v-.3c0-.1-.5-1.3-.7-1.7-.2-.4-.4-.4-.5-.4h-.4c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 1.9s.8 2.2.9 2.4c.1.1 1.6 2.5 4 3.5.5.2 1 .4 1.3.5.6.2 1.1.1 1.5.1.5-.1 1.3-.5 1.5-1 .2-.5.2-.9.1-1l-.3-.2Z'/%3E%3C/svg%3E"); }
.btn-ico[data-icon="instagram"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E"); }
.btn-ico[data-icon="email"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7 L12 13 L21 7'/%3E%3C/svg%3E"); }

.btn-wa {
  background: #25D366;
  color: #0B1E33 !important;
  border: none;
}

.btn-wa:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
}

.btn-ig {
  background: var(--white);
}

.btn-email {
  background: var(--white);
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

/* Barra mobile fissa sticky */

.mobile-cta-bar {
  display: none;
}

.mobile-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.mobile-cta-wa {
  background: #25D366;
  color: #0B1E33;
}

.mobile-cta-email {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border-strong);
}

.mobile-cta-ig {
  background: var(--navy);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.12);
}

.mobile-cta-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.mobile-cta-ico[data-icon="whatsapp"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.6 6.3A8.9 8.9 0 0 0 3.7 16.9L2 22l5.3-1.4a8.9 8.9 0 0 0 4.3 1.1h0a8.9 8.9 0 0 0 8.9-8.9 8.9 8.9 0 0 0-2.9-6.5ZM12 20.2h0a7.4 7.4 0 0 1-3.8-1l-.3-.2-2.8.8.8-2.7-.2-.3a7.4 7.4 0 1 1 13.7-4A7.4 7.4 0 0 1 12 20.2Zm4-5.4c-.2-.1-1.3-.6-1.5-.7-.2-.1-.3-.1-.5.1-.1.2-.5.7-.6.8-.1.1-.2.2-.4.1a6 6 0 0 1-1.8-1.1 6.6 6.6 0 0 1-1.2-1.5c-.1-.2 0-.3.1-.4l.3-.4.2-.3v-.3c0-.1-.5-1.3-.7-1.7-.2-.4-.4-.4-.5-.4h-.4c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 1.9s.8 2.2.9 2.4c.1.1 1.6 2.5 4 3.5.5.2 1 .4 1.3.5.6.2 1.1.1 1.5.1.5-.1 1.3-.5 1.5-1 .2-.5.2-.9.1-1l-.3-.2Z'/%3E%3C/svg%3E"); }
.mobile-cta-ico[data-icon="email"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7 L12 13 L21 7'/%3E%3C/svg%3E"); }
.mobile-cta-ico[data-icon="instagram"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E"); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-logo-wrap { max-width: 420px; padding: 14px; }
  .hero-logo-card { padding: 22px 18px; }
  .about-grid, .pricing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-line::before { display: none; }
  .gallery-placeholder-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-points { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 90;
    overflow-y: auto;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav a { font-size: 1.15rem; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-cta { align-self: stretch; justify-content: center; padding: 14px 20px; }

  .nav-toggle { display: flex; }

  .hero { padding: 28px 0 32px; }
  .hero-lead { font-size: 1.02rem; }
  .hero-visual { max-width: 360px; }
  .hero-logo-wrap { padding: 10px; }
  .hero-logo-card { padding: 18px 16px; border-radius: 20px; }
  .hero-logo-card::before { border-radius: 20px; }
  .hero-logo-img { max-height: 240px; }
  .hero-contact-box { padding: 16px; margin-top: 20px; }
  .hero-contact-box .hero-actions { flex-direction: column; }
  .hero-contact-box .btn { width: 100%; justify-content: center; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }

  h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }

  .services-grid { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; gap: 28px; }
  .gallery-placeholder-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .contact-card { padding: 18px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hobby-badge { font-size: 0.72rem; border-radius: 12px; }

  /* mostra barra fissa contatto su mobile */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 120;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247,245,241,0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -6px 24px rgba(11,30,51,0.08);
  }

  body { padding-bottom: 78px; }

  .site-footer { padding-bottom: 28px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; width: 100%; }
  .wrap { padding: 0 16px; }
  .gallery-placeholder-grid { grid-template-columns: 1fr; }
  .gallery-placeholder { min-height: 180px; }
  .hero-contact-title { font-size: 0.9rem; }
  .mobile-cta { font-size: 0.9rem; padding: 12px 8px; }
}
