/* =========================================================
   AM INGEGNERIA — Design System
   Base: reset, tokens, typography

   NOTE: this file (site.css) is a concatenation of the
   individual, commented source files in this same folder
   (base.css, header.css, hero.css, about.css, services.css,
   expertise.css, process.css, studio.css, contact.css).
   Edit those individual files, then re-concatenate, e.g.:

     cat base.css header.css hero.css about.css services.css \
         expertise.css process.css studio.css contact.css > site.css

   Only site.css is actually linked from the HTML pages.
   ========================================================= */

@import url("../fonts/fonts.css");

:root{
  /* --- Palette ---------------------------------------------------
     Ink   : near-black instrument panel
     Paper : cool off-white (not warm cream — deliberately)
     Copper: the accent — literally the colour of the windings and
             traces photographed throughout this site
     Circuit: a deep PCB green, used sparingly
  ----------------------------------------------------------------- */
  --ink:        #10151A;
  --ink-soft:   #1A2128;
  --ink-softer: #232B32;
  --paper:      #EEF1EE;
  --paper-dim:  #E3E8E2;
  --white:      #FFFFFF;

  --copper:       #BE5F27;
  --copper-deep:  #8A4118;
  --copper-light: #E0894C;
  --copper-wash:  #F4E4D6;

  --circuit:       #2B6E55;
  --circuit-light: #4C9078;

  --slate:       #56666A;
  --slate-dim:   #7C8A8C;
  --slate-light: #A7B4B1;

  --line:      #D7DED8;
  --line-dark: #2A343B;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --wrap-narrow: 860px;
  --gutter: clamp(20px, 5vw, 48px);

  --radius-s: 3px;
  --radius-m: 4px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,p,figure{ margin: 0; }
button, input, textarea, select{ font-family: inherit; font-size: inherit; color: inherit; }
button{ cursor: pointer; background: none; border: none; }
svg{ display: block; }

/* --- Selection --- */
::selection{ background: var(--copper); color: var(--white); }

/* --- Focus (keep visible, keyboard users) --- */
:focus-visible{ outline: 2px solid var(--copper); outline-offset: 3px; }

/* --- Skip link (visible only on keyboard focus) --- */
.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus{
  position: fixed;
  top: 10px; left: 10px;
  z-index: 1000;
  width: auto; height: auto;
  clip: auto;
  background: var(--copper);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: .8rem;
}

/* --- Type scale --- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
  box-shadow: 0 0 0 3px var(--copper-wash);
}
section.on-dark .eyebrow::before{ box-shadow: 0 0 0 3px rgba(190,95,39,.25); }

h1, .h1{
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.05;
  font-size: clamp(2.35rem, 4.6vw, 4.1rem);
  overflow-wrap: break-word;
}
h2, .h2{
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.12;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  overflow-wrap: break-word;
}
h3, .h3{
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  font-size: 1.28rem;
}
.lead{
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--slate);
  max-width: 46em;
}
section.on-dark .lead{ color: var(--slate-light); }
p{ color: var(--slate); }
p + p{ margin-top: 1em; }
section.on-dark p{ color: var(--slate-light); }

.mono{ font-family: var(--font-mono); }
.accent{
  color: var(--copper);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* --- Layout --- */
.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow{ max-width: var(--wrap-narrow); }

section{ position: relative; }
.section-pad{ padding-block: clamp(64px, 10vw, 128px); }
/* Sections that end in a wave-divider: padding-bottom must live on .wrap,
   not the section itself, so the wave sits flush against the true edge. */
.section-pad.has-wave{ padding-bottom: 0; }
.section-pad.has-wave > .wrap{ padding-bottom: clamp(64px, 10vw, 128px); }
.on-dark{ background: var(--ink); color: var(--paper); }
.on-paper-dim{ background: var(--paper-dim); }
.on-white{ background: var(--white); }

.section-head{
  max-width: 46em;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2{ margin-top: .55em; }
.section-head .lead{ margin-top: 1em; }
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head.center .eyebrow{ justify-content: center; }
.section-head.split{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: none;
}
.section-head.split .lead{ margin-top: 0; max-width: 26em; }
@media (max-width: 700px){
  .section-head.split{ flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head.split .lead{ max-width: none; }
}

/* --- Buttons --- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .95em 1.5em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 15px; height: 15px; flex: none; transition: transform .18s var(--ease); }
.btn:hover svg{ transform: translate(2px,-2px); }
.btn-copper{ background: var(--copper); color: var(--white); }
.btn-copper:hover{ background: var(--copper-deep); }
.btn-ghost{ border-color: var(--line-dark); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--ink); }
section.on-dark .btn-ghost{ border-color: var(--line-dark); color: var(--paper); }
section.on-dark .btn-ghost:hover{ border-color: var(--slate-light); }
.btn-light{ background: var(--paper); color: var(--ink); }
.btn-light:hover{ background: var(--white); }

/* --- Reveal-on-scroll (restrained: fade + 12px rise, once) --- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible{ transition-delay: .08s; }
.reveal-delay-2.is-visible{ transition-delay: .16s; }
.reveal-delay-3.is-visible{ transition-delay: .24s; }
/* =========================================================
   Topbar + Header + Nav + Language switcher
   ========================================================= */

.topbar{
  background: var(--ink);
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .02em;
}
.topbar .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 16px;
}
.topbar-contact{
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.topbar-contact a{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  white-space: nowrap;
  transition: color .15s var(--ease);
}
.topbar-contact a:hover{ color: var(--copper-light); }
.topbar-contact svg{ width: 12px; height: 12px; flex: none; opacity: .8; }

.lang-switch{
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.lang-switch a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  opacity: .5;
  transition: opacity .15s var(--ease), outline-color .15s var(--ease);
  outline: 1px solid transparent;
  outline-offset: 2px;
}
.lang-switch a img{ width: 100%; height: 100%; object-fit: cover; }
.lang-switch a:hover{ opacity: .85; }
.lang-switch a.is-active{
  opacity: 1;
  outline-color: var(--copper);
}

header.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238,241,238,.86);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
header.site-header.is-scrolled{
  border-bottom-color: var(--line);
}
header.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand img{ height: 30px; width: auto; }
.brand-word{
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
  line-height: 1.05;
  white-space: nowrap;
}
.brand-word small{
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--slate);
  margin-top: 2px;
}

nav.primary-nav{ flex: 1; display: flex; justify-content: center; min-width: 0; }
nav.primary-nav ul{ display: flex; align-items: center; gap: 30px; }
nav.primary-nav a{
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
  transition: color .15s var(--ease);
  white-space: nowrap;
}
nav.primary-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--copper);
  transition: right .22s var(--ease);
}
nav.primary-nav a:hover{ color: var(--ink); }
nav.primary-nav a:hover::after{ right: 0; }
nav.primary-nav a[aria-current]{ color: var(--ink); }
nav.primary-nav a[aria-current]::after{ right: 0; }

.header-cta{ display: flex; align-items: center; gap: 18px; flex: none; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  flex: none;
}
.nav-toggle span{
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1){ width: 22px; }
.nav-toggle span:nth-child(2){ width: 16px; margin-left: auto; }
.nav-toggle span:nth-child(3){ width: 22px; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); width: 22px; }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

@media (max-width: 1100px){
  nav.primary-nav{
    flex: none;
    position: fixed;
    inset: 76px 0 0 0;
    height: calc(100vh - 76px);
    background: var(--paper);
    display: flex;
    justify-content: flex-start;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  nav.primary-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  nav.primary-nav ul{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px var(--gutter) 28px;
  }
  nav.primary-nav li{ border-bottom: 1px solid var(--line); }
  nav.primary-nav a{
    display: block;
    padding: 16px 2px;
    font-size: .85rem;
  }
  nav.primary-nav a::after{ display: none; }
  nav.primary-nav a[aria-current]{ color: var(--copper-deep); }
  .header-cta .btn-copper span.btn-label{ display: none; }
  .header-cta .btn-copper{ padding: .7em; }
  .header-cta{ gap: 10px; }
  .nav-toggle{ display: flex; }
  .brand-word small{ display: none; }
}
@media (max-width: 560px){
  .topbar-contact a.tel-full{ display: none; }
}
@media (max-width: 360px){
  .topbar .wrap{ flex-wrap: wrap; height: auto; padding-block: 8px; row-gap: 6px; }
  .topbar-contact{ gap: 14px; }
}

/* Simplified header used on standalone pages (privacy, etc.) that have no
   marketing nav or hamburger toggle to fall back on — just wrap instead. */
@media (max-width: 480px){
  header.site-header.header-simple .wrap{
    flex-wrap: wrap;
    height: auto;
    padding-block: 14px;
    row-gap: 10px;
  }
  header.site-header.header-simple .header-cta{ width: 100%; }
  header.site-header.header-simple .btn-ghost{
    width: 100%;
    justify-content: center;
  }
}
/* =========================================================
   Hero
   ========================================================= */

.hero{
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
}
.hero::before{
  /* faint schematic grid, instrument-panel texture */
  content:"";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(238,241,238,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,241,238,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-grid{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(64px, 9vw, 110px);
}
.hero-eyebrow{ color: var(--copper-light); }
.hero-eyebrow::before{ background: var(--copper-light); box-shadow: 0 0 0 3px rgba(224,137,76,.2); }

.hero h1{ margin-top: .5em; color: var(--white); }
.hero h1 .accent{ font-size: .58em; display: inline-block; }
.hero .lead{ margin-top: 1.2em; color: var(--slate-light); font-size: 1.14rem; max-width: 34em; }

.hero-ctas{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.2em;
}

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line-dark);
}
.hero-stat b{
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.hero-stat > span{
  display: block;
  margin-top: .3em;
  font-size: .74rem;
  color: var(--slate-light);
  letter-spacing: .02em;
}

/* --- Hero photo card + schematic annotation --- */
.hero-visual{
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}
.hero-photo-frame{
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
.hero-photo-frame img{
  width: 100%; height: 100%; object-fit: cover;
}
.hero-photo-frame::after{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(16,21,26,0) 55%, rgba(16,21,26,.75) 100%);
}
.corner-tick{
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--copper-light);
  z-index: 2;
  opacity: .9;
}
.corner-tick.tl{ top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-tick.br{ bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero-callout{
  position: absolute;
  left: -14px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
}
.hero-callout .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper-light);
  box-shadow: 0 0 0 4px rgba(224,137,76,.22);
  flex: none;
}
.hero-callout-card{
  background: rgba(16,21,26,.92);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-s);
  padding: 10px 13px;
  backdrop-filter: blur(6px);
}
.hero-callout-card b{
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--white);
  font-weight: 500;
}
.hero-callout-card span{
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem;
  color: var(--slate-light);
  margin-top: 3px;
}

.hero-fig{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  color: rgba(238,241,238,.75);
  background: rgba(16,21,26,.55);
  border: 1px solid rgba(238,241,238,.18);
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* --- Wave divider ---
   A single filled SVG shape sitting at a section seam: PWM/switching
   pulses on the left settling into a clean sine wave on the right —
   literally what the inverters this company builds do to raw power.
   The fill colour is the colour of the section that follows. */
.wave-divider{
  position: relative;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.wave-divider svg{ width: 100%; height: clamp(46px, 7vw, 96px); display: block; }
.wave-divider.into-paper path{ fill: var(--paper); }
.wave-divider.into-white path{ fill: var(--white); }
.wave-divider.into-ink path{ fill: var(--ink); }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; width: min(100%, 340px); margin-inline: auto; }
  .hero-stats{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .hero-stats{ grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .hero-callout{ max-width: 200px; left: -8px; }
}
/* =========================================================
   About / Chi siamo
   ========================================================= */

.about-grid{
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.about-photo{
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-photo img{ width: 100%; height: 100%; object-fit: cover; }
.about-photo-cap{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(16,21,26,.82), transparent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
}

.about-copy .lead{ margin-top: 1.1em; color: var(--slate); font-size: 1.05rem; }
.about-copy p + p{ margin-top: 1em; }

.fact-grid{
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.fact-card{
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 22px 24px;
}
.fact-card b{
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--copper-deep);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.fact-card .fact-icon{
  width: 26px; height: 26px;
  color: var(--copper-deep);
  margin-bottom: 4px;
}
.fact-card h4{
  margin-top: .6em;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
}
.fact-card p{
  margin-top: .5em;
  font-size: .87rem;
  line-height: 1.55;
}
.fact-card .tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: .6em;
}
.tag{
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .03em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--slate);
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ max-width: 380px; }
  .fact-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px){
  .fact-grid{ grid-template-columns: 1fr; }
}
/* =========================================================
   Services
   ========================================================= */

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--paper);
  padding: 30px 28px 32px;
  transition: background .2s var(--ease);
}
.service-card:hover{ background: var(--white); }
.service-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.service-icon{
  width: 40px; height: 40px;
  flex: none;
  color: var(--copper);
}
.service-icon svg{ width: 100%; height: 100%; }
.service-no{
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--slate-dim);
  letter-spacing: .04em;
}
.service-card h3{ margin-top: 20px; }
.service-card p{ margin-top: 10px; font-size: .92rem; }

@media (max-width: 900px){
  .service-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .service-grid{ grid-template-columns: 1fr; }
}
/* =========================================================
   Expertise / Competenze
   ========================================================= */

.expertise-layout{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.82fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.expertise-list{ border-top: 1px solid var(--line-dark); }
section.on-dark .expertise-list{ border-top-color: var(--line-dark); }
.expertise-row{
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.expertise-row .num{
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--copper-light);
  flex: none;
  width: 2ch;
}
.expertise-row .name{
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  flex: 1 1 auto;
  min-width: 0;
}
.expertise-row .desc{
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--slate-light);
  text-align: right;
  flex: none;
  white-space: nowrap;
}

.expertise-note{
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--copper);
  background: rgba(190,95,39,.08);
  font-size: .88rem;
  color: var(--slate-light);
}
.expertise-note b{ color: var(--paper); font-weight: 600; }

.sector-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.sector-tags .tag{
  color: var(--slate-light);
  border-color: var(--line-dark);
}

.gallery-stack{
  display: grid;
  gap: 16px;
}
.gallery-stack figure{
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 5/4;
}
.gallery-stack figure img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-stack figure:hover img{ transform: scale(1.045); }
.gallery-stack figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 13px;
  background: linear-gradient(0deg, rgba(16,21,26,.85), transparent);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .04em;
  color: var(--slate-light);
}
.gallery-two{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 980px){
  .expertise-layout{ grid-template-columns: 1fr; }
  .expertise-row .desc{ display: none; }
}
@media (max-width: 560px){
  .gallery-two{ grid-template-columns: 1fr; }
}
/* =========================================================
   Process / Metodo
   ========================================================= */

.process-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(24px, 3vw, 32px);
  counter-reset: step;
  position: relative;
}
.process-grid::before{
  content:"";
  position: absolute;
  top: 15px; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.process-step{ position: relative; z-index: 1; }
.process-step .step-no{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--copper);
  color: var(--copper-deep);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .78rem;
}
.process-step h3{ margin-top: 20px; font-size: 1.1rem; }
.process-step p{ margin-top: 8px; font-size: .89rem; }
.process-step .step-arrow{
  display: none;
}

@media (max-width: 900px){
  .process-grid{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); row-gap: 36px; }
  .process-grid::before{ display: none; }
}
@media (max-width: 560px){
  .process-grid{ grid-template-columns: 1fr; }
}
/* =========================================================
   Studio / location
   ========================================================= */

.studio-photo{
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.studio-photo img{ width: 100%; height: 100%; object-fit: cover; }
.studio-photo::after{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16,21,26,.55) 0%, rgba(16,21,26,0) 38%);
}
.studio-photo-tag{
  position: absolute;
  left: 20px; bottom: 18px;
  color: var(--white);
  z-index: 1;
}
.studio-photo-tag b{
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}
.studio-photo-tag span{
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--slate-light);
  margin-top: 3px;
  letter-spacing: .03em;
}

.studio-body{ margin-top: clamp(36px, 5vw, 52px); }
.studio-cols{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.studio-cols .lead{ font-size: 1.06rem; }
.studio-cols p{ font-size: .96rem; }

.location-card{
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
}
.location-card svg{ width: 22px; height: 22px; color: var(--copper); flex: none; margin-top: 2px; }
.location-card b{ display: block; font-size: .95rem; font-weight: 600; }
.location-card p{ margin-top: 4px; font-size: .87rem; }
.location-card + .location-card{ margin-top: 14px; }

@media (max-width: 900px){
  .studio-cols{ grid-template-columns: 1fr; }
}
/* =========================================================
   Contact + Footer
   ========================================================= */

.contact-grid{
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info-list{ margin-top: clamp(32px, 4vw, 44px); display: grid; gap: 18px; }
.contact-info-item{ display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item svg{ width: 20px; height: 20px; color: var(--copper-light); flex: none; margin-top: 3px; }
.contact-info-item b{ display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-light); font-family: var(--font-mono); font-weight: 500; }
.contact-info-item a, .contact-info-item p{ margin-top: 4px; font-size: 1rem; color: var(--white); }
.contact-info-item a:hover{ color: var(--copper-light); }

.contact-form{
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: clamp(24px, 3vw, 36px);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ margin-top: 18px; }
.form-row .field{ margin-top: 0; }
.field label{
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea{
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-s);
  padding: 12px 13px;
  color: var(--paper);
  font-size: .92rem;
  transition: border-color .15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder{ color: var(--slate-dim); }
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--copper); outline: none; }
.field textarea{ resize: vertical; min-height: 100px; }
.field select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237C8A8C' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }

.field-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}
.field-check input{ margin-top: 3px; accent-color: var(--copper); flex: none; }
.field-check label{ font-size: .82rem; color: var(--slate-light); text-transform: none; letter-spacing: 0; font-family: var(--font-sans); }
.field-check label a{ color: var(--copper-light); text-decoration: underline; text-underline-offset: 2px; }
.field-check label a:hover{ color: var(--white); }

.form-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.form-note{ font-size: .76rem; color: var(--slate-dim); max-width: 26em; }
.form-status{ font-size: .85rem; font-family: var(--font-mono); }
.form-status[data-state="ok"]{ color: var(--circuit-light); }

/* --- Footer --- */
footer.site-footer{
  background: var(--ink);
  color: var(--slate-light);
  padding-block: 56px 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-top{
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);
  gap: 32px;
  padding-bottom: 44px;
}
.footer-brand{ display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img{ height: 28px; margin-top: 3px; }
.footer-brand-word{ font-weight: 700; color: var(--white); font-size: 1rem; }
.footer-brand p{ margin-top: 8px; font-size: .85rem; max-width: 28ch; }
.footer-col h5{
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: 14px;
}
.footer-col ul{ display: grid; gap: 10px; }
.footer-col a{ font-size: .87rem; transition: color .15s var(--ease); }
.footer-col a:hover{ color: var(--copper-light); }
.footer-col p{ font-size: .87rem; }

.footer-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: .76rem;
  color: var(--slate-dim);
}
.footer-bottom .lang-switch a{ width: 20px; height: 20px; }

.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .15s var(--ease);
  z-index: 90;
}
.back-to-top.is-visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover{ background: var(--copper); }
.back-to-top svg{ width: 16px; height: 16px; }

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); row-gap: 32px; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .form-row{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .form-foot{ flex-direction: column; align-items: stretch; }
}
