:root{
  --paper:#FFFFFF;
  --surface:#F4F6F7;
  --surface-alt:#EAEEF0;
  --ink:#292C30;
  --ink-soft:#5B6169;
  --line:#D9DEE2;
  --accent:#2588AA;
  --accent-deep:#1B6E8C;
  --accent-soft:#E4EEF2;
  --on-accent:#FFFFFF;
  --shadow: 0 1px 0 rgba(41,44,48,0.04), 0 8px 24px -12px rgba(41,44,48,0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#1D2024;
    --surface:#292C30;
    --surface-alt:#32363B;
    --ink:#F4F6F7;
    --ink-soft:#A9AFB5;
    --line:#3D4147;
    --accent:#3FAED2;
    --accent-deep:#2588AA;
    --accent-soft:#23414B;
    --on-accent:#0F1214;
    --shadow: 0 1px 0 rgba(0,0,0,0.2), 0 8px 28px -12px rgba(0,0,0,0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --paper:#1D2024;
  --surface:#292C30;
  --surface-alt:#32363B;
  --ink:#F4F6F7;
  --ink-soft:#A9AFB5;
  --line:#3D4147;
  --accent:#3FAED2;
  --accent-deep:#2588AA;
  --accent-soft:#23414B;
  --on-accent:#0F1214;
  --shadow: 0 1px 0 rgba(0,0,0,0.2), 0 8px 28px -12px rgba(0,0,0,0.55);
  color-scheme: dark;
}
:root{
  /* fixed dark "stage" tokens: stay dark in both themes, for deliberately bold bands */
  --stage-bg:#20242A;
  --stage-bg-2:#272B31;
  --stage-ink:#F5F7F8;
  --stage-ink-soft:#9CA4AB;
  --stage-line:rgba(245,247,248,0.14);
  --stage-accent:#3FAED2;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:"Public Sans", -apple-system, "Segoe UI", sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%;}
[hidden]{display:none!important;}
a{color:inherit;}
h1,h2,h3{
  font-family:"Overpass","Segoe UI",sans-serif;
  text-wrap:balance;
  line-height:1.05;
  margin:0;
  letter-spacing:-0.015em;
  font-weight:800;
}
p{margin:0;}
ul{margin:0;padding:0;list-style:none;}
button{font:inherit;}

.wrap{
  width:100%;
  max-width:1180px;
  margin-inline:auto;
  padding-inline:20px;
}
@media (min-width:640px){ .wrap{padding-inline:32px;} }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-family:"IBM Plex Mono", monospace;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent-deep);
}
.eyebrow::before{
  content:"";
  width:18px;
  height:3px;
  background:var(--accent);
  flex:none;
}
.eyebrow-on-dark{color:var(--stage-accent);}
.eyebrow-on-dark::before{background:var(--stage-accent);}
.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:"IBM Plex Mono", monospace;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--ink-soft);
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 10px;
  background:var(--surface);
}
.pill-accent{
  color:var(--accent-deep);
  background:var(--accent-soft);
  border-color:transparent;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:"Overpass",sans-serif;
  font-weight:800;
  font-size:16px;
  letter-spacing:0.01em;
  padding:17px 30px;
  border-radius:5px;
  border:1px solid transparent;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active{transform:translateY(1px);}
.btn-primary{
  background:var(--accent);
  color:#0B1416;
  box-shadow:0 10px 26px -10px rgba(37,136,170,0.55);
}
.btn-primary:hover{background:var(--stage-accent);}
.btn-ghost{
  background:transparent;
  color:var(--ink);
  border-color:var(--line);
}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent-deep);}
.btn-ghost-on-dark{
  background:transparent;
  color:var(--stage-ink);
  border-color:var(--stage-line);
}
.btn-ghost-on-dark:hover{border-color:var(--stage-accent);color:var(--stage-accent);}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
a:focus-visible, button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* ---------- header ---------- */
.site-header{
  position:sticky;
  top:env(safe-area-inset-top,0px);
  z-index:50;
  background:color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-block:14px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;}
.logo-plate{
  display:inline-flex;
  align-items:center;
  background:#FFFFFF;
  border:1px solid var(--line);
  border-radius:8px;
  padding:6px 10px;
  line-height:0;
}
.logo-plate img{display:block;height:26px;width:auto;}
@media (min-width:960px){ .logo-plate img{height:30px;} }

.nav-desktop{display:none;}
@media (min-width:960px){
  .nav-desktop{
    display:flex;
    align-items:center;
    gap:30px;
  }
  .nav-desktop a{
    white-space:nowrap;
    font-size:14.5px;
    font-weight:600;
    text-decoration:none;
    color:var(--ink-soft);
    transition:color .15s ease;
  }
  .nav-desktop a:hover, .nav-desktop a[aria-current="page"]{color:var(--accent-deep);}
}
.header-cta{display:none;}
@media (min-width:1120px){ .header-cta{display:inline-flex;padding:10px 18px;font-size:14px;} }

.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;height:40px;
  border-radius:6px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
}
@media (min-width:960px){ .nav-toggle{display:none;} }

.nav-mobile{
  border-bottom:1px solid var(--line);
  background:var(--paper);
}
.nav-mobile ul{display:flex;flex-direction:column;padding-block:8px;}
.nav-mobile .wrap{padding-block:4px 14px;}
.nav-mobile a{
  display:block;
  padding:12px 4px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.nav-mobile li:last-child a{border-bottom:none;}
@media (min-width:960px){ .nav-mobile{display:none!important;} }

/* ---------- hero (home) ---------- */
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(120% 140% at 12% -10%, #2C333B 0%, var(--stage-bg) 46%, var(--stage-bg-2) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--stage-line) 39px, var(--stage-line) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--stage-line) 39px, var(--stage-line) 40px);
  background-blend-mode:normal;
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  padding-bottom:56px;
  margin-bottom:-56px;
}
@media (min-width:960px){ .hero{ clip-path:polygon(0 0, 100% 0, 100% calc(100% - 96px), 0 100%); padding-bottom:96px; margin-bottom:-96px; } }
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(100deg, rgba(37,136,170,0.16), transparent 55%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:36px;
  padding-block:52px 40px;
}
@media (min-width:960px){
  .hero-inner{
    flex-direction:row;
    align-items:center;
    gap:56px;
    padding-block:88px 64px;
  }
  .hero-copy{flex:0 0 46%;}
  .hero-art{flex:1;}
}
.hero-copy{
  display:flex;
  flex-direction:column;
  gap:22px;
  animation:fadeUp .6s ease-out both;
}
.hero h1{
  font-size:clamp(2.5rem, 6.4vw, 4.2rem);
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--stage-ink);
}
.hero-ctas{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:6px;}
.hero-art{
  position:relative;
  animation:fadeUp .7s .1s ease-out both;
}
.hero-art svg{display:block;width:100%;height:auto;}
@media (prefers-reduced-motion:reduce){
  .hero-copy,.hero-art{animation:none;}
}

/* ---------- service rotator (home hero) ---------- */
.rotator-copy{display:grid;}
/* rotator-art is deliberately NOT display:grid, and does not use the newer
   aspect-ratio property: both let a stacked <img>'s raw intrinsic pixel
   height (from its width/height attributes) win over the intended 3:2 box
   in this codebase's rendering. The classic padding-top spacer establishes
   the height instead (resolved against the element's own width, with no
   ambiguity), and the rot-art slides are pulled out of flow with absolute
   positioning so they can never feed back into that calculation. */
.rotator-art{position:relative;}
.rotator-art::before{content:"";display:block;padding-top:66.6667%;}
.rot-slide{
  grid-area:1/1;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding-left:18px;
  border-left:3px solid var(--stage-accent);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.rot-slide.is-active{opacity:1;visibility:visible;transform:none;transition-delay:0s;}
.rot-cat{
  font-family:"IBM Plex Mono",monospace;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--stage-accent);
}
.rot-name{
  font-family:"Overpass","Segoe UI",sans-serif;
  font-weight:800;
  font-size:clamp(1.35rem,2.6vw,1.75rem);
  line-height:1.15;
  letter-spacing:-0.01em;
  color:var(--stage-ink);
}
.rot-line{font-size:17px;color:var(--stage-ink-soft);max-width:44ch;}
.rot-art{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transform:scale(.97);
  transition:opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.rot-art.is-active{opacity:1;visibility:visible;transform:none;transition-delay:0s;}
.rot-controls{display:flex;align-items:center;gap:14px;margin-top:14px;}
.rot-dots{display:flex;flex-wrap:wrap;gap:4px;}
.rot-dot{
  appearance:none;
  background:none;
  border:0;
  padding:10px 0;
  width:30px;
  cursor:pointer;
}
.rot-bar{
  display:block;
  position:relative;
  height:3px;
  border-radius:2px;
  overflow:hidden;
  background:var(--stage-line);
}
.rot-dot:hover .rot-bar{background:rgba(245,247,248,0.32);}
.rot-fill{
  position:absolute;
  inset:0;
  background:var(--stage-accent);
  transform:scaleX(0);
  transform-origin:left center;
}
.rot-dot.is-active .rot-fill{animation:rotFill 3s linear forwards;}
.is-paused .rot-dot.is-active .rot-fill{animation-play-state:paused;}
@keyframes rotFill{to{transform:scaleX(1);}}
.rot-dot:focus-visible,.rot-pause:focus-visible{outline:2px solid var(--stage-accent);outline-offset:2px;}
.rot-pause{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:4px;
  border:1px solid var(--stage-line);
  background:transparent;
  color:var(--stage-ink);
  cursor:pointer;
}
.rot-pause:hover{border-color:var(--stage-accent);color:var(--stage-accent);}
.hero-art .rot-pause svg{width:14px;height:14px;}
.rot-pause .i-play,.is-paused .rot-pause .i-pause{display:none;}
.is-paused .rot-pause .i-play{display:block;}
@media (prefers-reduced-motion:reduce){
  .rot-slide,.rot-art{transition:none;transform:none;}
  .rot-dot.is-active .rot-fill{animation:none;transform:scaleX(1);}
  .rot-pause{display:none;}
}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}

/* .rot-art is the <img>/<svg> element itself (not a wrapper), so these must
   be element+class selectors, not ".rot-art img" descendant selectors -
   the latter never matches anything and silently drops every rule in it.
   Explicit width/height:100% (rather than relying on inset:0 alone) avoids
   the browser falling back to the <img>'s raw intrinsic 1536x1024 size. */
.rot-art{overflow:hidden;border-radius:10px;width:100%;height:100%;}
svg.rot-art{display:block;}
img.rot-art{display:block;object-fit:cover;border:1px solid var(--stage-line);box-sizing:border-box;}

/* ---------- page hero (subpages) ---------- */
.page-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(120% 160% at 15% -30%, #2C333B 0%, var(--stage-bg) 50%, var(--stage-bg-2) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--stage-line) 39px, var(--stage-line) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--stage-line) 39px, var(--stage-line) 40px);
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  padding-bottom:40px;
  margin-bottom:-40px;
}
@media (min-width:960px){ .page-hero{ clip-path:polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%); padding-bottom:64px; margin-bottom:-64px; } }
.page-hero-inner{
  position:relative;
  padding-block:38px 46px;
  display:flex;
  flex-direction:column;
  gap:16px;
  max-width:72ch;
}
@media (min-width:960px){ .page-hero-inner{padding-block:52px 70px;} }
.breadcrumb{
  font-family:"IBM Plex Mono",monospace;
  font-size:12px;
  letter-spacing:0.03em;
  color:var(--stage-ink-soft);
}
.breadcrumb a{color:var(--stage-accent);text-decoration:none;}
.breadcrumb a:hover{text-decoration:underline;}
.page-hero h1{
  font-size:clamp(2.1rem,4.6vw,3.1rem);
  color:var(--stage-ink);
}
.page-hero-sub{
  font-size:17px;
  color:var(--stage-ink-soft);
  max-width:64ch;
}
.page-hero-ctas{margin-top:6px;}

/* ---------- sections ---------- */
section{scroll-margin-top:76px;}
.section{padding-block:76px;}
.section-alt{background:var(--surface);}
.section-head{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:62ch;
  margin-bottom:44px;
}
.section-head h2{
  font-size:clamp(1.9rem,4vw,2.6rem);
}
.section-head p{color:var(--ink-soft);font-size:16.5px;}

.card-grid{
  display:grid;
  gap:22px;
  grid-template-columns:1fr;
}
@media (min-width:700px){ .card-grid{grid-template-columns:repeat(2,1fr);} }
@media (min-width:1020px){ .card-grid{grid-template-columns:repeat(3,1fr);} }

.card{
  display:flex;
  flex-direction:column;
  min-width:0;
  background:var(--paper);
  border:1.5px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
}
.card:hover{transform:translateY(-3px);box-shadow:0 16px 32px -14px rgba(41,44,48,0.28);}
.section-alt .card{background:var(--paper);}
.card-art{
  background:var(--surface);
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.card-art svg{display:block;width:100%;height:auto;}
.card-art.is-photo{padding:0;overflow:hidden;aspect-ratio:3/2;}
.card-art.is-photo img{display:block;width:100%;height:100%;object-fit:cover;}

/* card-level photo carousel (interno/esterno/esterno di sera): plain
   position:absolute stacking inside a position:relative box sized by
   aspect-ratio — no grid involved, so it can't hit the auto-row-sizing
   bug the hero carousel had with stacked, intrinsically-sized <img>s. */
.card-art.is-carousel{position:relative;padding:0;overflow:hidden;aspect-ratio:3/2;}
.card-art.is-carousel img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease;}
.card-art.is-carousel img.is-active{opacity:1;}
.card-carousel-dots{position:absolute;z-index:2;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:6px;padding:5px 7px;border-radius:20px;background:rgba(15,17,19,0.4);}
.card-carousel-dots button{appearance:none;border:0;background:rgba(255,255,255,0.45);width:6px;height:6px;border-radius:50%;padding:0;cursor:pointer;transition:background .15s ease, transform .15s ease;}
.card-carousel-dots button.is-active{background:#fff;transform:scale(1.3);}

.card-body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 20px;}
.card h3{font-size:18px;font-weight:700;}
.card p{color:var(--ink-soft);font-size:14.5px;}
.card[data-story]{cursor:pointer;}

/* quick WhatsApp action: a small chip sitting right next to the title
   itself (card h3, gallery caption, spec-card h3) instead of floating on
   the photo or sitting as a full-width button under the description. */
.card-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.card-title-row h3{margin:0;}
.quick-wa{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:none;
  font-family:"Overpass",sans-serif;
  font-size:12.5px;
  font-weight:700;
  color:var(--accent-deep);
  background:var(--accent-soft);
  text-decoration:none;
  padding:5px 10px 5px 8px;
  border-radius:999px;
  transition:background-color .15s ease, color .15s ease;
}
.quick-wa svg{width:13px;height:13px;flex:none;}
.quick-wa:hover{background:var(--accent);color:var(--on-accent);}
.quick-wa:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* CTA inside the open story modal: a focused screen the person already
   chose to open, so a clear full pill button is the right weight there. */
.card-request{
  display:inline-flex;
  align-items:center;
  gap:7px;
  align-self:flex-start;
  margin-top:6px;
  font-family:"Overpass",sans-serif;
  font-size:13.5px;
  font-weight:700;
  color:var(--on-accent);
  background:var(--accent);
  text-decoration:none;
  padding:9px 16px;
  border-radius:999px;
  transition:background-color .15s ease, transform .15s ease;
}
.card-request svg{width:14px;height:14px;flex:none;}
.card-request:hover{background:var(--accent-deep);transform:translateY(-1px);}

/* ---------- card story modal ---------- */
.story-modal{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px;}
.story-modal[hidden]{display:none;}
.story-modal-backdrop{position:absolute;inset:0;background:rgba(10,13,15,0.72);}
.story-modal-panel{
  position:relative;
  width:100%;
  max-width:620px;
  max-height:88vh;
  overflow-y:auto;
  background:var(--paper);
  border-radius:10px;
  box-shadow:0 40px 80px -24px rgba(0,0,0,0.55);
  animation:storyIn .25s ease-out both;
}
@keyframes storyIn{from{opacity:0;transform:translateY(12px) scale(.98);}to{opacity:1;transform:none;}}
.story-modal-art{aspect-ratio:3/2;overflow:hidden;background:var(--surface);}
.story-modal-art img{display:block;width:100%;height:100%;object-fit:cover;}
.story-modal-art svg{display:block;width:100%;height:100%;}
.story-modal-close{
  position:absolute;
  top:14px;right:14px;
  width:34px;height:34px;
  border-radius:50%;
  border:0;
  background:rgba(10,13,15,0.5);
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.story-modal-close:hover{background:rgba(10,13,15,0.75);}
.story-modal-body{padding:28px 30px 30px;display:flex;flex-direction:column;gap:12px;}
.story-modal-body h3{font-size:23px;font-weight:800;}
.story-modal-body p{color:var(--ink-soft);font-size:15.5px;line-height:1.65;}
.story-modal-body .card-request{margin-top:10px;}

/* ---------- specialization teasers (home) ---------- */
.spec-grid{
  display:grid;
  gap:24px;
  grid-template-columns:1fr;
}
@media (min-width:760px){ .spec-grid{grid-template-columns:1fr 1fr;} }
@media (min-width:1020px){ .spec-grid{grid-template-columns:1fr 1fr 1fr;} }
.spec-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  background:var(--paper);
  border:1.5px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease;
  box-shadow:var(--shadow);
}
.spec-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px -14px rgba(41,44,48,0.28);}
.spec-art{
  background:var(--surface);
  padding:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--line);
}
.spec-art svg{display:block;width:100%;max-width:280px;height:auto;}
.spec-art.is-photo{padding:0;overflow:hidden;aspect-ratio:3/2;}
.spec-art.is-photo img{display:block;width:100%;height:100%;object-fit:cover;}
.spec-body{padding:26px;display:flex;flex-direction:column;gap:10px;}
.spec-body h3{font-size:22px;font-weight:800;}
.spec-body p{color:var(--ink-soft);font-size:15px;}
.spec-link{margin-top:8px;font-weight:700;color:var(--accent-deep);font-size:14.5px;}
.spec-card:hover .spec-link{color:var(--accent);}

/* ---------- gallery ---------- */
.filter-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px;}
.filter-btn{
  font-family:"IBM Plex Mono",monospace;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.07em;
  text-transform:uppercase;
  padding:10px 18px;
  border-radius:3px;
  border:1.5px solid var(--line);
  background:var(--paper);
  color:var(--ink-soft);
  cursor:pointer;
  transition:all .15s ease;
}
.filter-btn:hover{border-color:var(--accent);color:var(--accent-deep);}
.filter-btn[aria-pressed="true"]{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--paper);
}
.gallery-grid{
  display:grid;
  gap:20px;
  grid-template-columns:1fr;
}
@media (min-width:640px){ .gallery-grid{grid-template-columns:repeat(2,1fr);} }
@media (min-width:1020px){ .gallery-grid{grid-template-columns:repeat(3,1fr);} }
.gallery-item{
  margin:0;
  min-width:0;
  border:1.5px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:var(--paper);
  box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
}
.gallery-item:hover{transform:translateY(-3px);box-shadow:0 16px 32px -14px rgba(41,44,48,0.28);
}
.gallery-art{
  background:var(--surface);
  padding:20px;
  display:flex;align-items:center;justify-content:center;
}
.gallery-art svg{display:block;width:100%;height:auto;}
.gallery-art.is-photo{padding:0;overflow:hidden;aspect-ratio:3/2;border-bottom:0;}
.gallery-art.is-photo img{display:block;width:100%;height:100%;object-fit:cover;}
.gallery-caption{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.gallery-caption p{font-size:14.5px;font-weight:600;}
.section-more{margin-top:28px;}
.section-more a{font-weight:700;font-size:15px;color:var(--accent-deep);text-decoration:none;}
.section-more a:hover{color:var(--accent);text-decoration:underline;}

.empty-state{
  max-width:680px;
  background:var(--surface);
  border:1.5px solid var(--line);
  border-top:3px solid var(--accent);
  border-radius:5px;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.empty-state h2{font-size:clamp(1.4rem,3vw,1.8rem);}
.empty-state p{color:var(--ink-soft);}

/* ---------- process ---------- */
.section-stage{
  background:
    radial-gradient(90% 140% at 90% 110%, #2C333B 0%, var(--stage-bg) 55%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--stage-line) 39px, var(--stage-line) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--stage-line) 39px, var(--stage-line) 40px);
  color:var(--stage-ink);
}
.section-stage .section-head h2{color:var(--stage-ink);}
.section-stage .section-head p{color:var(--stage-ink-soft);}
.process-rail{
  display:flex;
  flex-direction:column;
  gap:0;
}
@media (min-width:900px){
  .process-rail{
    flex-direction:row;
    align-items:stretch;
    gap:0;
  }
}
.process-step{
  position:relative;
  display:flex;
  gap:20px;
  padding-block:26px;
  border-top:1px solid var(--stage-line);
}
.process-step:last-child{border-bottom:1px solid var(--stage-line);}
@media (min-width:900px){
  .process-step{
    flex:1;
    flex-direction:column;
    gap:18px;
    border-top:none;
    border-left:1px solid var(--stage-line);
    padding:4px 28px 0;
  }
  .process-step:first-child{border-left:none;padding-left:0;}
  .process-step:last-child{border-bottom:none;}
}
.process-num{
  font-family:"IBM Plex Mono",monospace;
  font-weight:700;
  font-size:34px;
  line-height:1;
  color:var(--stage-accent);
  flex:none;
  width:56px;
}
@media (min-width:900px){ .process-num{width:auto;font-size:42px;} }
.process-body h3{font-size:17px;font-weight:700;margin-bottom:7px;color:var(--stage-ink);}
.process-body p{font-size:14.5px;color:var(--stage-ink-soft);}

/* ---------- contact ---------- */
.contact-grid{
  display:grid;
  gap:32px;
  grid-template-columns:1fr;
}
@media (min-width:900px){ .contact-grid{grid-template-columns:1.1fr 0.9fr;} }
.contact-copy p{color:var(--ink-soft);max-width:52ch;}
.contact-methods{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:22px;
}
.contact-method{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border:1.5px solid var(--line);
  border-radius:5px;
  background:var(--paper);
  text-decoration:none;
  color:var(--ink);
  transition:border-color .15s ease, transform .15s ease;
}
.contact-method:hover{border-color:var(--accent);transform:translateY(-2px);}
.contact-method .ic{flex:none;width:22px;height:22px;color:var(--accent-deep);}
.contact-method .label{font-size:12px;color:var(--ink-soft);font-family:"IBM Plex Mono",monospace;letter-spacing:.04em;text-transform:uppercase;}
.contact-method .value{font-weight:700;font-size:16.5px;}
.contact-panel{
  background:var(--surface);
  border:1.5px solid var(--line);
  border-top:3px solid var(--accent);
  border-radius:5px;
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.contact-panel h3{font-size:15px;font-weight:700;}
.checklist{display:flex;flex-direction:column;gap:10px;}
.checklist li{display:flex;gap:10px;font-size:14.5px;color:var(--ink-soft);align-items:flex-start;}
.checklist svg{flex:none;width:16px;height:16px;margin-top:3px;color:var(--accent-deep);}
.addr{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.addr .label{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);}
.addr .value{font-weight:600;font-size:15px;}
.contact-map{margin-top:2px;border-radius:5px;overflow:hidden;border:1px solid var(--line);}
.contact-map iframe{display:block;width:100%;height:190px;border:0;}

/* ---------- footer ---------- */
footer{
  background:var(--stage-bg);
  color:var(--stage-ink);
  padding-block:40px;
  position:relative;
  overflow:hidden;
}
footer .wrap{
  display:flex;
  flex-direction:column;
  gap:24px;
}
@media (min-width:700px){
  footer .wrap{flex-direction:row;justify-content:space-between;align-items:flex-start;}
}
.footer-col{display:flex;flex-direction:column;gap:6px;font-size:14px;color:#B7BEC3;}
.footer-col a{text-decoration:none;color:#B7BEC3;}
.footer-col a:hover{color:var(--accent);}
.footer-note{font-size:12.5px;color:#7B8288;margin-top:18px;}
.footer-note a{color:inherit;text-decoration:underline;}
.footer-note a:hover{color:var(--accent-deep);}

.footer-legal{font-size:12px;color:#848B91;margin-top:14px;}
.footer-legal a{color:inherit;}
.footer-legal a:hover{color:var(--stage-accent);}
.footer-sister{font-size:12.5px;color:#9CA4AB;margin-top:6px;max-width:46ch;}
.footer-sister a{color:var(--stage-accent);}

/* ---------- sister business (screen printing) ---------- */
.sister{display:grid;gap:32px;grid-template-columns:1fr;align-items:center;}
@media (min-width:900px){ .sister{grid-template-columns:1fr 1fr;gap:56px;} }
.sister-media img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px;border:1.5px solid var(--line);}
.sister-copy{display:flex;flex-direction:column;gap:16px;}
.sister-copy h2{font-size:clamp(1.8rem,3.6vw,2.4rem);}
.sister-copy p{color:var(--ink-soft);font-size:16.5px;}
.sister-copy .btn{align-self:flex-start;margin-top:4px;}

/* ---------- legal page ---------- */
.legal{max-width:78ch;display:flex;flex-direction:column;gap:14px;}
.legal h2{font-size:20px;font-weight:800;margin-top:22px;line-height:1.2;}
.legal h2:first-child{margin-top:0;}
.legal p,.legal li{color:var(--ink-soft);font-size:15.5px;}
.legal ol,.legal .legal-list{padding-left:22px;display:flex;flex-direction:column;gap:8px;}
.legal .legal-list{list-style:disc;}
.legal a{color:var(--accent-deep);}

/* ---------- galleria sfogliabile ---------- */
.flipbook{display:flex;flex-direction:column;gap:18px;}
.flipbook[hidden]{display:none;}
.book-stage{
  position:relative;
  height:clamp(440px, 78vh, 820px);
  display:grid;place-items:center;
  touch-action:pan-y;user-select:none;-webkit-user-select:none;
}
/* più libri per pagina: uno per categoria */
.books{display:flex;flex-direction:column;gap:clamp(56px,9vw,104px);}
.book-block{scroll-margin-top:96px;}
.book-block .section-head{margin-bottom:24px;}
.book-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:clamp(32px,5vw,48px);}
.book-tabs[hidden]{display:none;}
.book-tab{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border:1.5px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);font-weight:700;font-size:15px;text-decoration:none;transition:all .15s ease;}
.book-tab:hover{border-color:var(--accent);color:var(--accent-deep);}
.book-tab span{font-family:"IBM Plex Mono",monospace;font-size:12px;font-weight:600;color:var(--ink-soft);}
.book{width:100%;height:100%;filter:drop-shadow(0 30px 60px rgba(41,44,48,0.35));}
.stf__parent{position:relative;display:block;box-sizing:border-box;transform:translateZ(0);touch-action:pan-y;}
.sft__wrapper{position:relative;width:100%;box-sizing:border-box;}
.stf__parent canvas{position:absolute;width:100%;height:100%;left:0;top:0;}
.stf__block{position:absolute;width:100%;height:100%;box-sizing:border-box;perspective:2000px;}
.stf__item{display:none;position:absolute;transform-style:preserve-3d;}
.stf__outerShadow,.stf__innerShadow,.stf__hardShadow,.stf__hardInnerShadow{position:absolute;left:0;top:0;}

.book-page{background:#FFFFFF;color:#292C30;overflow:hidden;}
.book-page-inner{position:absolute;inset:0;display:flex;flex-direction:column;}
.book-photo{position:relative;flex:1;min-height:0;overflow:hidden;background:#1D2024;}
.book-photo .bg{position:absolute;inset:-20px;width:calc(100% + 40px);height:calc(100% + 40px);object-fit:cover;filter:blur(18px) brightness(.6);}
.book-photo .fg{position:relative;display:block;width:100%;height:100%;object-fit:contain;}
.book-caption{
  flex:none;padding:14px 18px 16px;border-top:3px solid #2588AA;
  display:flex;flex-direction:column;gap:4px;background:#FFFFFF;
}
.book-caption .tag-line{
  display:flex;justify-content:space-between;gap:10px;
  font-family:"IBM Plex Mono",monospace;font-size:11px;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;color:#1B6E8C;
}
.book-caption .tag-line span:last-child{color:#5B6169;}
.book-caption h3{font-size:clamp(15px,2.2vw,19px);font-weight:800;line-height:1.2;color:#292C30;}

.book-cover{background:linear-gradient(155deg,#1B6E8C 0%,#20313A 55%,#292C30 100%);color:#F4F6F7;}
.book-cover .book-page-inner{padding:10% 9%;justify-content:space-between;}
.book-cover .cover-logo{background:#FFFFFF;border-radius:4px;padding:10px 14px;align-self:flex-start;}
.book-cover .cover-logo img{display:block;height:34px;width:auto;}
.book-cover .cover-kicker{font-family:"IBM Plex Mono",monospace;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#3FAED2;}
.book-cover h2{font-size:clamp(26px,4.4vw,44px);line-height:1.05;color:#FFFFFF;margin-top:10px;}
.book-cover p{color:#A9AFB5;font-size:14.5px;margin-top:12px;max-width:30ch;}
.book-cover .cover-rule{height:3px;width:64px;background:#2588AA;}
.book-cover .btn{align-self:flex-start;}
.book-filler .book-page-inner{padding:12%;justify-content:center;align-items:center;text-align:center;gap:10px;background:#F4F6F7;}
.book-filler p{font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#5B6169;}

.book-controls{display:flex;align-items:center;justify-content:center;gap:12px;}
.book-btn{
  display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;
  border:1.5px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);
  cursor:pointer;transition:all .15s ease;
}
.book-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent-deep);}
.book-btn:disabled{opacity:.35;cursor:default;}
.book-btn svg{width:18px;height:18px;}
.book-counter{
  font-family:"IBM Plex Mono",monospace;font-size:13px;font-weight:600;letter-spacing:.1em;
  min-width:84px;text-align:center;color:var(--ink-soft);font-variant-numeric:tabular-nums;
}
.book-counter b{color:var(--accent-deep);}
.book-hint{
  text-align:center;font-family:"IBM Plex Mono",monospace;font-size:11px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);
}
.flipbook:fullscreen{background:var(--surface);padding:24px;justify-content:center;}
.flipbook:fullscreen .book-stage{height:calc(100vh - 150px);}
.book-cta{
  margin-top:8px;display:flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:4px;background:#2588AA;color:#FFFFFF;
  font-size:14px;font-weight:600;text-decoration:none;transition:background .15s ease;
}
.book-cta:hover{background:#1B6E8C;}
.book-cta svg{width:20px;height:20px;flex:none;}
.book-cta b{font-weight:800;text-decoration:underline;text-underline-offset:3px;}
button.book-photo{display:block;width:100%;border:0;padding:0;margin:0;cursor:zoom-in;font:inherit;}
.zoom-badge{
  position:absolute;right:12px;top:12px;width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;background:rgba(41,44,48,.72);color:#FFFFFF;
}
.zoom-badge svg{width:20px;height:20px;}
.lightbox{
  position:fixed;inset:0;z-index:1000;background:#0F1214;
  display:flex;flex-direction:column;
  padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.lightbox[hidden]{display:none;}
.lb-stage{flex:1;min-height:0;overflow:hidden;touch-action:none;display:grid;place-items:center;}
.lb-stage img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;user-select:none;-webkit-user-drag:none;}
.lb-close{
  position:absolute;right:14px;top:calc(14px + env(safe-area-inset-top));z-index:2;
  width:46px;height:46px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.14);color:#FFFFFF;display:grid;place-items:center;
}
.lb-close svg{width:22px;height:22px;}
.lb-bar{
  flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 18px;
  padding:14px 16px;
}
.lb-title{color:#F4F6F7;font-weight:800;font-size:16px;}
.lb-bar .book-cta{margin-top:0;}
.lb-hint{
  flex:none;text-align:center;padding:0 16px 14px;margin:0;
  font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#A9AFB5;
}
/* page-flip lascia passare il tocco solo se il bersaglio è proprio <a>/<button> */
.book-page .book-photo *, .book-page .book-cta *, .book-page .btn *{pointer-events:none;}
