/* ============================================================
   INCISUM — Main Stylesheet
   www.incisum.it
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --silver: #C8C8C2;
  --silver-light: #E8E8E4;
  --silver-dark: #9A9A94;
  --ink: #0E0E0C;
  --ink-soft: #1C1C18;
  --paper: #F5F4F0;
  --paper-warm: #EFEDE8;
  --muted: #8A8A84;
  --line: rgba(14,14,12,0.1);
  --fd: 'Syne', sans-serif;
  --fs: 'Cormorant Garamond', serif;
  --fm: 'DM Mono', monospace;

  /* Customizer overrides (PHP injette qui via wp_add_inline_style) */
  --color-primary: var(--ink);
  --color-accent: var(--silver-dark);
  --color-bg: var(--paper);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fd);
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ── UTILITIES ── */
.mono  { font-family: var(--fm); }
.serif { font-family: var(--fs); }
.muted { color: var(--muted); }
.lbl   { font-family: var(--fm); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ── NAV ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  background: rgba(245,244,240,.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: .5px solid var(--line);
  transition: padding .3s;
}
#site-nav.scrolled { padding: 16px 48px; }

.nav-logo {
  font-family: var(--fd); font-size: 17px; font-weight: 800;
  letter-spacing: .18em; text-decoration: none; color: var(--ink);
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--fm); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  border: .5px solid var(--ink); padding: 10px 20px; transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle {
  display: none; cursor: pointer; font-size: 22px; background: none;
  border: none; color: var(--ink); padding: 4px; line-height: 1;
}

/* ── HERO ── */
#hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: 80px;
}
.hero-left {
  padding: 80px 48px 80px 80px; display: flex; flex-direction: column;
  justify-content: center; border-right: .5px solid var(--line);
}
.hero-label {
  font-family: var(--fm); font-size: 10px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 48px;
  display: flex; align-items: center; gap: 16px;
}
.hero-label::before {
  content: ''; display: block; width: 32px; height: .5px;
  background: var(--muted); flex-shrink: 0;
}
.hero-h1 {
  font-family: var(--fd); font-size: clamp(48px, 5.8vw, 86px); font-weight: 800;
  line-height: .95; letter-spacing: -.025em; color: var(--ink); margin-bottom: 32px;
}
.hero-h1 em {
  font-style: italic; font-family: var(--fs); font-weight: 300;
  font-size: 1.06em; color: var(--silver-dark);
}
.hero-sub {
  font-family: var(--fs); font-size: 18px; font-weight: 300;
  line-height: 1.75; color: var(--muted); max-width: 400px; margin-bottom: 56px;
}

/* Buttons */
.btn-p {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--fm); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; color: var(--paper);
  background: var(--ink); padding: 16px 28px; width: fit-content; transition: background .2s;
}
.btn-p:hover { background: var(--ink-soft); }
.btn-p .arr { display: inline-block; transition: transform .2s; }
.btn-p:hover .arr { transform: translateX(5px); }
.btn-s {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--fm); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  border: .5px solid var(--ink); padding: 14px 24px; width: fit-content;
  transition: background .2s, color .2s;
}
.btn-s:hover { background: var(--ink); color: var(--paper); }

/* Hero right */
.hero-right {
  position: relative; background: var(--ink); overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 520px;
}
.hero-visual {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.hero-bg-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.ring-svg { width: 320px; height: 320px; opacity: .9; }
.hero-idx {
  position: absolute; bottom: 40px; right: 40px;
  font-family: var(--fm); font-size: 10px; letter-spacing: .15em; color: var(--silver-dark);
}

/* Ring animations */
@keyframes rot  { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes crot { from { transform: rotate(0deg);   } to { transform: rotate(-360deg); } }
@keyframes pop  { 0%,100% { opacity: .3; } 50% { opacity: .85; } }
.ring-outer { animation: rot  42s linear infinite; transform-origin: center; }
.ring-inner { animation: crot 28s linear infinite; transform-origin: center; }
.ring-dot   { animation: pop  3.2s ease-in-out infinite; }

/* ── MARQUEE ── */
.mq-wrap {
  border-top: .5px solid var(--line); border-bottom: .5px solid var(--line);
  padding: 18px 0; overflow: hidden; background: var(--paper-warm);
}
.mq-track { display: flex; white-space: nowrap; animation: mq 32s linear infinite; }
.mq-track span {
  font-family: var(--fm); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); padding: 0 48px; flex-shrink: 0;
}
.mq-track span::after { content: '·'; padding-left: 48px; color: var(--silver); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SEZIONI ── */
.incisum-section { padding: 120px 80px; }

.sec-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 80px; padding-bottom: 32px; border-bottom: .5px solid var(--line);
}
.sec-num {
  font-family: var(--fm); font-size: 10px; letter-spacing: .2em;
  color: var(--muted); flex-shrink: 0; padding-top: 8px;
}
.sec-title {
  font-family: var(--fd); font-size: clamp(28px, 3.8vw, 52px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05; text-align: right;
}
.sec-title em { font-style: italic; font-family: var(--fs); font-weight: 300; }

/* ── CONCEPT ── */
.section-concept { background: var(--ink); color: var(--paper); }
.section-concept .sec-title { color: var(--paper); }
.section-concept .sec-num  { color: var(--silver-dark); }
.section-concept .sec-hd   { border-bottom-color: rgba(255,255,255,.08); }

.cpt-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.cpt-card {
  padding: 48px; border-right: .5px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 24px;
}
.cpt-card:last-child { border-right: none; }
.cpt-icon { width: 48px; height: 48px; }
.cpt-tag  { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--silver-light); }
.cpt-stmt { font-family: var(--fs); font-size: 22px; font-weight: 300; font-style: italic; line-height: 1.45; color: var(--paper); margin-top: auto; }
.cpt-desc { font-size: 13px; color: var(--silver-dark); line-height: 1.75; }

/* ── COLLEZIONI ── */
.section-collezioni { background: var(--paper); }

.col-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--line); }
.col-card {
  background: var(--paper); padding: 56px 48px;
  display: flex; flex-direction: column; gap: 20px; transition: background .3s;
}
.col-card:hover { background: var(--paper-warm); }
.col-tag  { font-family: var(--fm); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.col-name { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.col-desc { font-family: var(--fs); font-size: 16px; font-weight: 300; color: var(--muted); line-height: 1.65; flex: 1; }

.col-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin: 8px 0; }
.gp {
  aspect-ratio: 1; background: var(--paper-warm);
  border: .5px dashed var(--silver); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.gp::after {
  content: attr(data-label); font-family: var(--fm); font-size: 8px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--silver);
}
.gp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gp.has-image::after { display: none; }

/* ── OGGETTI ── */
.section-oggetti { background: var(--paper-warm); }

.obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(14,14,12,.06); }
.obj-type  { background: var(--paper-warm); padding: 56px 48px; display: flex; flex-direction: column; gap: 16px; }
.obj-name  { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.obj-desc  { font-family: var(--fs); font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }

.pg4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.pslot {
  aspect-ratio: 1; background: var(--paper); border: .5px dashed var(--silver);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fm); font-size: 7px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--silver); overflow: hidden; position: relative;
}
.pslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pslot.has-image { color: transparent; border-color: transparent; }

/* ── CODICE ── */
.section-codice { background: var(--ink); color: var(--paper); }
.section-codice .sec-title { color: var(--paper); }
.section-codice .sec-num  { color: var(--silver-dark); }
.section-codice .sec-hd   { border-bottom-color: rgba(255,255,255,.08); }

.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: rgba(255,255,255,.05); margin-bottom: 64px; }
.step { background: var(--ink); padding: 48px; display: flex; flex-direction: column; gap: 20px; border: .5px solid rgba(255,255,255,.06); }
.step-num   { font-family: var(--fm); font-size: 48px; font-weight: 300; color: rgba(255,255,255,.1); line-height: 1; }
.step-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--silver-light); }
.step-opts  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sopt {
  font-family: var(--fm); font-size: 9px; letter-spacing: .15em; text-transform: uppercase;
  border: .5px solid rgba(255,255,255,.2); padding: 8px 14px; color: var(--silver-light);
  cursor: pointer; transition: background .2s, border-color .2s; background: none;
}
.sopt:hover, .sopt.active { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.step-desc  { font-family: var(--fs); font-size: 14px; font-weight: 300; color: var(--silver-dark); line-height: 1.75; }
.cho-stmt {
  font-family: var(--fs); font-size: clamp(18px,2.4vw,28px); font-weight: 300; font-style: italic;
  color: var(--silver-light); text-align: center; line-height: 1.55;
  padding: 56px 48px; border: .5px solid rgba(255,255,255,.08);
}

/* ── ESEMPI ── */
.section-esempi { background: var(--paper); }

.ex-intro {
  font-family: var(--fs); font-size: clamp(20px,2.8vw,34px); font-weight: 300;
  line-height: 1.45; color: var(--muted); max-width: 580px; margin-bottom: 64px;
}
.ex-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: var(--line); margin-bottom: 48px; }
.ex-card {
  background: var(--paper); aspect-ratio: 3/4; display: flex;
  flex-direction: column; justify-content: flex-end; padding: 24px;
  position: relative; overflow: hidden;
}
.ex-card-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6;
}
.ex-vis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px; }
.ex-lbl { position: relative; z-index: 1; font-family: var(--fm); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ── PROCESSO ── */
.section-processo { background: var(--paper-warm); }

.proc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: rgba(14,14,12,.06); }
.proc-step { background: var(--paper-warm); padding: 56px 48px; display: flex; flex-direction: column; gap: 16px; }
.proc-num   { font-family: var(--fm); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.proc-icon  { margin-bottom: 8px; }
.proc-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.proc-desc  { font-family: var(--fs); font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.75; }

/* ── CTA FINALE / CONTATTI ── */
.section-contatti {
  background: var(--ink); color: var(--paper); padding: 140px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center;
}
.cta-eye {
  font-family: var(--fm); font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--silver-dark); display: flex; align-items: center; gap: 18px;
}
.cta-eye::before, .cta-eye::after { content: ''; display: block; width: 48px; height: .5px; background: var(--silver-dark); }
.cta-h { font-family: var(--fd); font-size: clamp(46px,7vw,96px); font-weight: 800; letter-spacing: -.03em; line-height: .95; max-width: 780px; }
.cta-h em { font-style: italic; font-family: var(--fs); font-weight: 300; color: var(--silver-dark); }
.cta-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn-lt {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--fm); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  background: var(--paper); padding: 16px 28px; transition: background .2s;
}
.btn-lt:hover { background: var(--silver-light); }
.btn-ol {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--fm); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; color: var(--paper);
  border: .5px solid rgba(255,255,255,.3); padding: 16px 28px;
  transition: border-color .2s, background .2s;
}
.btn-ol:hover { border-color: var(--paper); background: rgba(255,255,255,.05); }
.cta-note { font-family: var(--fm); font-size: 10px; letter-spacing: .15em; color: var(--silver-dark); margin-top: 32px; }

/* ── FOOTER ── */
#site-footer {
  background: var(--ink); border-top: .5px solid rgba(255,255,255,.07);
  padding: 48px 80px; display: flex; align-items: center;
  justify-content: space-between; color: var(--silver-dark); flex-wrap: wrap; gap: 24px;
}
.f-logo { font-family: var(--fd); font-size: 16px; font-weight: 800; letter-spacing: .18em; color: var(--silver-light); text-decoration: none; }
.f-copy { font-family: var(--fm); font-size: 10px; letter-spacing: .14em; }
.f-nav a { font-family: var(--fm); font-size: 10px; letter-spacing: .12em; text-decoration: none; color: var(--silver-dark); transition: color .2s; margin-left: 32px; }
.f-nav a:first-child { margin-left: 0; }
.f-nav a:hover { color: var(--silver-light); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── WORDPRESS SPECIFICS ── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--fm); font-size: 10px; letter-spacing: .1em; color: var(--muted); padding: 8px 0; }
.aligncenter { margin: 0 auto; display: block; }
.alignleft  { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }

/* Gutenberg base */
.wp-block-image img { width: 100%; height: auto; }
.has-text-align-center { text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .incisum-section { padding: 80px 48px; }
  .hero-left { padding: 60px 40px; }
  #site-nav { padding: 20px 32px; }
  #site-nav.scrolled { padding: 14px 32px; }
  #site-footer { padding: 40px 48px; }
  .section-contatti { padding: 100px 48px; }
}
@media (max-width: 900px) {
  .col-grid, .obj-grid, .proc-grid, .steps-grid { grid-template-columns: 1fr; }
  .ex-grid  { grid-template-columns: repeat(2,1fr); }
  .cpt-grid { grid-template-columns: 1fr; }
  .cpt-card { border-right: none; border-bottom: .5px solid rgba(255,255,255,.08); }
  .cpt-card:last-child { border-bottom: none; }
  .sec-hd   { flex-direction: column; gap: 24px; }
  .sec-title { text-align: left; }
}
@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { height: 65vw; min-height: 300px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .incisum-section { padding: 60px 24px; }
  #site-footer { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .section-contatti { padding: 80px 24px; }
  #site-nav { padding: 16px 24px; }
  .hero-left { padding: 48px 24px 32px; }
  .col-card, .obj-type, .proc-step, .cpt-card, .step { padding: 40px 24px; }
  .ring-svg { width: 220px; height: 220px; }
  .f-nav a { margin-left: 16px; }
}
@media (max-width: 480px) {
  .pg4 { grid-template-columns: repeat(3,1fr); }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-lt, .btn-ol { justify-content: center; }
}
.nav-links.mob {
  display: flex !important; flex-direction: column; position: absolute;
  top: 64px; left: 0; right: 0; background: rgba(245,244,240,.98);
  padding: 24px; gap: 20px; border-bottom: .5px solid rgba(14,14,12,.1); z-index: 99;
}
