/*
Theme Name: Studio Giciarch
Theme URI: https://www.giciarch.com
Author: Arch. Giorgia Congiu — Studio Giciarch
Author URI: https://www.giciarch.com
Description: Tema ufficiale Studio Giciarch — Architetta & Interior Designer. Multi-pagina, palette antracite e tortora.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Privato
Text Domain: giciarch
*/

/* ══════════════════════════════
   PALETTE ANTRACITE / TORTORA
══════════════════════════════ */
:root {
  /* Antracite */
  --antr:      #2D2D2D;
  --antr-mid:  #3D3D3D;
  --antr-soft: #555555;
  /* Tortora */
  --tort:      #C4B5A2;
  --tort-dark: #A89880;
  --tort-pale: #EDE8E2;
  --tort-bg:   #F5F2EE;
  /* Utility */
  --white:     #FFFFFF;
  --border:    #DDD8D1;
  --mid-text:  #7A7570;
  --nav-h:     72px;
}

/* ══════════════════════════════
   RESET
══════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; color: var(--antr); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ══════════════════════════════
   TIPOGRAFIA
══════════════════════════════ */
.eyebrow {
  font-size: .6rem; letter-spacing: .36em; text-transform: uppercase;
  color: var(--tort-dark); font-weight: 500; display: block; margin-bottom: 14px;
}
.serif { font-family: 'Cormorant Garamond', serif; font-weight: 400; }
.t-white { color: var(--white); }
.t-tort { color: var(--tort); }
.body-text { font-size: .93rem; font-weight: 300; line-height: 1.9; color: var(--mid-text); }

.btn {
  display: inline-block; font-family: 'Jost', sans-serif;
  font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 38px; transition: all .25s; cursor: pointer;
}
.btn-dark { background: var(--antr); color: var(--white); }
.btn-dark:hover { background: var(--antr-mid); }
.btn-tort { background: var(--tort); color: var(--white); }
.btn-tort:hover { background: var(--tort-dark); }
.btn-outline { border: 1px solid var(--antr); color: var(--antr); }
.btn-outline:hover { background: var(--antr); color: var(--white); }
.btn-outline-wh { border: 1px solid rgba(255,255,255,.5); color: var(--white); }
.btn-outline-wh:hover { background: var(--white); color: var(--antr); }
.btn-white { background: var(--white); color: var(--antr); }
.btn-white:hover { background: var(--tort-bg); }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--border);
  transition: height .3s, box-shadow .3s;
}
#navbar.scrolled { height: 60px; box-shadow: 0 2px 28px rgba(45,45,45,.1); }

.nav-logo { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.nav-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; letter-spacing: .07em; color: var(--antr); }
.nav-logo-name span { color: var(--tort-dark); }
.nav-logo-sub { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--mid-text); margin-top: 1px; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a {
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mid-text); font-weight: 400; transition: color .2s; white-space: nowrap; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: all .2s;
}
.nav-menu a:hover, .nav-menu a.current-page { color: var(--antr); border-bottom-color: var(--tort); }

.nav-cta {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--antr); color: var(--white); padding: 11px 22px;
  font-weight: 500; transition: background .2s; white-space: nowrap;
  font-family: 'Jost', sans-serif; line-height: 1;
}
.nav-cta:hover { background: var(--antr-mid); }

/* Hamburger */
.nav-ham { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-ham span { display: block; width: 26px; height: 1.5px; background: var(--antr); transition: all .3s; }
.nav-ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer mobile */
.nav-drawer {
  display: none; position: fixed; inset: 0;
  background: var(--antr); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 300;
  color: rgba(255,255,255,.8); transition: color .2s; letter-spacing: .04em;
}
.nav-drawer a:hover { color: var(--tort); }
.nav-drawer .drawer-cta {
  font-family: 'Jost', sans-serif; font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; background: var(--tort); color: var(--white);
  padding: 14px 44px; font-weight: 500; margin-top: 14px;
}
.nav-drawer .drawer-close {
  position: absolute; top: 24px; right: 6%; background: none; border: none;
  color: rgba(255,255,255,.4); font-size: 2rem; cursor: pointer;
}

/* ══════════════════════════════
   PAGE HERO (header interno pagine)
══════════════════════════════ */
.page-hero {
  padding-top: var(--nav-h);
  min-height: 380px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-left: 8%; padding-right: 8%;
}
.page-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(45,45,45,.88) 0%, rgba(45,45,45,.55) 60%, rgba(45,45,45,.3) 100%);
  z-index: 1;
}
/* Se non c'è immagine, usa sfondo antracite piatto */
.page-hero-no-img {
  background: var(--antr);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 70px 0;
  max-width: 620px;
}
.page-hero-content .eyebrow { color: var(--tort); }
.page-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 18px;
}
.page-hero-content p { font-size: .94rem; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.85; }

/* Breadcrumb */
.breadcrumb {
  position: absolute; bottom: 28px; left: 8%; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35);
}
.breadcrumb a { color: rgba(255,255,255,.35); transition: color .2s; }
.breadcrumb a:hover { color: var(--tort); }
.breadcrumb span { color: var(--tort); }

/* ══════════════════════════════
   SECTION UTILITIES
══════════════════════════════ */
.sec-pad { padding: 96px 8%; }
.sec-pad-sm { padding: 72px 8%; }
.sec-bg-off { background: var(--tort-bg); }
.sec-bg-dark { background: var(--antr); }
.sec-bg-tort { background: var(--tort-pale); }

.sec-head { margin-bottom: 56px; }
.sec-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300; line-height: 1.2; color: var(--antr);
}
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 56px; }
.sec-head-row h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,3.5vw,3.2rem); font-weight: 300; line-height: 1.2; color: var(--antr); margin: 0; }

.divider-label { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-label span { font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mid-text); white-space: nowrap; }

/* ══════════════════════════════
   HOME — HERO
══════════════════════════════ */
#home-hero {
  min-height: 100vh; padding-top: var(--nav-h);
  display: grid; grid-template-columns: 55% 45%;
  overflow: hidden;
}
.hh-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 6% 80px 8%;
  background: var(--white);
}
.hh-tag { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.hh-tag-line { width: 48px; height: 1px; background: var(--tort); }
.hh-tag-text { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tort-dark); font-weight: 500; }

.hh-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300; line-height: 1.08; color: var(--antr);
  margin-bottom: 26px;
}
.hh-title em { font-style: italic; color: var(--tort-dark); }

.hh-desc { font-size: .93rem; font-weight: 300; line-height: 1.9; color: var(--mid-text); max-width: 420px; margin-bottom: 40px; }
.hh-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

.hh-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-top: 1px solid var(--border); padding-top: 40px;
}
.hh-stat { padding: 0 32px 0 0; border-right: 1px solid var(--border); }
.hh-stat:last-child { border-right: none; padding: 0 0 0 32px; }
.hh-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem; font-weight: 300; color: var(--antr); line-height: 1; display: block;
}
.hh-stat-num sup { color: var(--tort-dark); font-size: 1.8rem; }
.hh-stat-label { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mid-text); margin-top: 8px; display: block; line-height: 1.5; }

.hh-right {
  position: relative; overflow: hidden;
  background: var(--tort-bg);
}
.hh-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
}
.hh-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.hh-photo-placeholder .ph-icon { font-size: 4rem; opacity: .15; }
.hh-photo-placeholder p {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: .9rem; color: var(--mid-text); opacity: .5; text-align: center; padding: 0 28px;
}
.hh-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--antr); color: var(--white);
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.hh-badge-ig { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 300; }
.hh-badge-text { font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tort); }

/* Linee decorative */
.deco-lines { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.deco-lines svg { width: 100%; height: 100%; }

/* ══════════════════════════════
   HOME — SEZIONE FILOSOFIA
══════════════════════════════ */
#home-filosofia {
  background: var(--antr);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}
.hf-left {
  padding: 88px 56px 88px 8%;
  display: flex; flex-direction: column; justify-content: center;
}
.hf-left .eyebrow { color: var(--tort); }
.hf-left h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,3.5vw,3rem); font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 20px; }
.hf-left p { font-size: .93rem; font-weight: 300; line-height: 1.9; color: rgba(255,255,255,.58); margin-bottom: 32px; max-width: 460px; }
.hf-quote { border-left: 2px solid var(--tort); padding: 16px 22px; margin-bottom: 36px; }
.hf-quote p { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic; font-weight: 300; color: rgba(255,255,255,.78); line-height: 1.6; }

.hf-right {
  padding: 88px 8% 88px 56px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid rgba(255,255,255,.06);
}
.hf-values { display: flex; flex-direction: column; }
.hf-val {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.hf-val:last-child { border-bottom: none; }
.hf-val-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; color: var(--tort); line-height: 1; flex-shrink: 0; width: 40px; }
.hf-val-title { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); display: block; margin-bottom: 5px; }
.hf-val-desc { font-size: .8rem; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.45); }

/* ══════════════════════════════
   HOME — SERVIZI PREVIEW
══════════════════════════════ */
#home-servizi { background: var(--tort-bg); padding: 96px 8%; }
.hs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.hs-card {
  background: var(--white); padding: 48px 34px;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.hs-card:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(45,45,45,.1); }
.hs-card-num { position: absolute; top: 24px; right: 28px; font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; color: var(--tort-pale); line-height: 1; }
.hs-card-icon { font-size: 2rem; margin-bottom: 20px; display: block; }
.hs-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 500; color: var(--antr); margin-bottom: 14px; }
.hs-card-desc { font-size: .82rem; font-weight: 300; line-height: 1.78; color: var(--mid-text); }
.hs-card-bar { width: 32px; height: 1.5px; background: var(--tort); margin-top: 28px; transition: width .3s; }
.hs-card:hover .hs-card-bar { width: 56px; }

/* ══════════════════════════════
   HOME — PORTFOLIO PREVIEW
══════════════════════════════ */
#home-portfolio { padding: 96px 8%; background: var(--white); }
.hp-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  grid-auto-rows: 280px; gap: 14px;
}
.hp-item { position: relative; overflow: hidden; background: var(--tort-bg); }
.hp-item.wide { grid-column: span 2; }
.hp-item.tall { grid-row: span 2; }
.hp-item-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
}
.hp-item:hover .hp-item-bg { transform: scale(1.05); }
.hp-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(45,45,45,.82) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.hp-item:hover .hp-overlay { opacity: 1; }
.hp-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 20px; transform: translateY(8px); opacity: 0; transition: all .3s;
}
.hp-item:hover .hp-info { transform: translateY(0); opacity: 1; }
.hp-cat { font-size: .57rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tort); margin-bottom: 4px; display: block; }
.hp-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400; color: var(--white); }
.hp-badge { position: absolute; top: 12px; left: 12px; background: rgba(45,45,45,.75); color: var(--white); font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; z-index: 2; }
.hp-ph-icon { font-size: 2rem; opacity: .2; }
.hp-ph-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .82rem; color: var(--mid-text); opacity: .4; text-align: center; }

/* ══════════════════════════════
   HOME — ONLINE PREVIEW
══════════════════════════════ */
#home-online {
  background: var(--antr);
  display: grid; grid-template-columns: 1fr 1fr;
}
.ho-left {
  padding: 88px 56px 88px 8%;
  display: flex; flex-direction: column; justify-content: center;
}
.ho-left .eyebrow { color: var(--tort); }
.ho-left h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3.2vw,3rem); font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 20px; }
.ho-left p { font-size: .93rem; font-weight: 300; line-height: 1.9; color: rgba(255,255,255,.55); max-width: 440px; margin-bottom: 36px; }
.ho-feats { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.ho-feat { display: flex; gap: 14px; align-items: center; }
.ho-feat-dot { width: 7px; height: 7px; background: var(--tort); border-radius: 50%; flex-shrink: 0; }
.ho-feat-text { font-size: .83rem; font-weight: 300; color: rgba(255,255,255,.6); }

.ho-right {
  background: var(--tort);
  padding: 88px 8% 88px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.ho-right .eyebrow { color: rgba(255,255,255,.55); }
.ho-right h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3vw,2.8rem); font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 36px; }
.ho-steps { display: flex; flex-direction: column; }
.ho-step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.ho-step:last-child { border-bottom: none; }
.ho-step-num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; color: rgba(255,255,255,.22); line-height: 1; flex-shrink: 0; }
.ho-step-title { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; display: block; }
.ho-step-desc { font-size: .8rem; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.7); }

/* ══════════════════════════════
   HOME — TESTIMONIANZE PREVIEW
══════════════════════════════ */
#home-testimonianze { padding: 96px 8%; background: var(--tort-bg); }
.ht-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ht-card { background: var(--white); padding: 40px 32px; position: relative; }
.ht-card::before { content: '\201C'; font-family: 'Cormorant Garamond', serif; font-size: 5.5rem; line-height: .6; color: var(--tort); opacity: .18; position: absolute; top: 20px; left: 20px; }
.ht-stars { color: var(--tort-dark); font-size: .72rem; letter-spacing: 3px; margin-bottom: 16px; }
.ht-text { font-family: 'Cormorant Garamond', serif; font-size: 1.02rem; font-style: italic; font-weight: 300; line-height: 1.75; color: var(--antr); margin-bottom: 22px; }
.ht-author { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tort-dark); font-weight: 600; }
.ht-location { font-size: .7rem; color: var(--mid-text); margin-top: 3px; font-weight: 300; }

/* ══════════════════════════════
   HOME — BLOG PREVIEW
══════════════════════════════ */
#home-blog { padding: 96px 8%; background: var(--antr); }
#home-blog .eyebrow { color: var(--tort); }
#home-blog .sec-head-row h2 { color: var(--white); }
.hb-see-all { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 2px; font-weight: 500; transition: all .2s; }
.hb-see-all:hover { color: var(--tort); border-color: var(--tort); }
.hb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.hb-card {
  border: 1px solid rgba(255,255,255,.06); padding: 34px 28px;
  transition: border-color .3s, transform .3s; display: block;
}
.hb-card:hover { border-color: var(--tort); transform: translateY(-4px); }
.hb-cat { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tort); font-weight: 500; margin-bottom: 12px; display: block; }
.hb-date { font-size: .64rem; color: rgba(255,255,255,.25); margin-bottom: 12px; display: block; }
.hb-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--white); line-height: 1.4; margin-bottom: 14px; }
.hb-exc { font-size: .79rem; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,.38); margin-bottom: 22px; }
.hb-read { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tort); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.hb-read::after { content: '→'; transition: margin .2s; }
.hb-card:hover .hb-read::after { margin-left: 4px; }

/* ══════════════════════════════
   PAGINA FILOSOFIA
══════════════════════════════ */
.fil-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.fil-img {
  position: relative; min-height: 520px; overflow: hidden; background: var(--tort-bg);
}
.fil-img-inner { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fil-img-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.fil-img-ph span { font-size: 3rem; opacity: .15; }
.fil-img-ph p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .88rem; color: var(--mid-text); opacity: .5; text-align: center; padding: 0 24px; }
.fil-img-badge { position: absolute; bottom: 0; left: 0; background: var(--antr); color: var(--white); padding: 22px 30px; }
.fil-img-badge-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; line-height: 1; display: block; }
.fil-img-badge-label { font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tort); margin-top: 4px; display: block; }

.fil-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3vw,3rem); font-weight: 300; color: var(--antr); line-height: 1.2; margin-bottom: 22px; }
.fil-text .body-text { margin-bottom: 22px; }
.fil-quote { border-left: 2px solid var(--tort); padding: 18px 24px; margin: 28px 0; }
.fil-quote p { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic; font-weight: 300; color: var(--antr); line-height: 1.6; }

.fil-values {
  background: var(--antr); padding: 88px 8%;
}
.fil-values h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,3.5vw,3rem); font-weight: 300; color: var(--white); margin-bottom: 52px; text-align: center; }
.fil-values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.fil-val-card { padding: 44px 30px; border-right: 1px solid rgba(255,255,255,.07); }
.fil-val-card:last-child { border-right: none; }
.fil-val-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; color: var(--tort); opacity: .5; line-height: 1; margin-bottom: 14px; display: block; }
.fil-val-title { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; display: block; }
.fil-val-desc { font-size: .81rem; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.45); }

.fil-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.fil-step { padding: 38px 28px; border: 1px solid var(--border); border-right: none; transition: background .3s; }
.fil-step:last-child { border-right: 1px solid var(--border); }
.fil-step:hover { background: var(--tort-bg); }
.fil-step-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; color: var(--border); line-height: 1; display: block; margin-bottom: 14px; }
.fil-step-icon { font-size: 1.4rem; margin-bottom: 14px; display: block; }
.fil-step-title { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--antr); margin-bottom: 10px; display: block; }
.fil-step-desc { font-size: .79rem; font-weight: 300; line-height: 1.7; color: var(--mid-text); }
.fil-step-bar { width: 28px; height: 1.5px; background: var(--tort); margin-top: 20px; transition: width .3s; }
.fil-step:hover .fil-step-bar { width: 52px; }

/* ══════════════════════════════
   PAGINA SERVIZI
══════════════════════════════ */
.serv-tipologie-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 72px; }
.serv-tipo-card {
  background: var(--white); padding: 52px 34px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.serv-tipo-card:hover { transform: translateY(-6px); box-shadow: 0 22px 52px rgba(45,45,45,.1); }
.serv-tipo-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--tort); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.serv-tipo-card:hover::after { transform: scaleX(1); }
.serv-tipo-num { position: absolute; top: 20px; right: 24px; font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; color: var(--tort-pale); line-height: 1; }
.serv-tipo-icon { font-size: 2.2rem; margin-bottom: 22px; display: block; }
.serv-tipo-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500; color: var(--antr); margin-bottom: 16px; }
.serv-tipo-desc { font-size: .82rem; font-weight: 300; line-height: 1.8; color: var(--mid-text); margin-bottom: 24px; }
.serv-tipo-list { display: flex; flex-direction: column; gap: 8px; }
.serv-tipo-list li { font-size: .79rem; font-weight: 300; color: var(--mid-text); display: flex; align-items: center; gap: 12px; }
.serv-tipo-list li::before { content: ''; width: 14px; height: 1px; background: var(--tort); flex-shrink: 0; }

.serv-processo { background: var(--tort-bg); padding: 88px 8%; }
.serv-processo h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,3.5vw,3rem); font-weight: 300; color: var(--antr); margin-bottom: 52px; }
.serv-proc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.serv-proc-step { padding: 40px 28px; border: 1px solid var(--border); border-right: none; transition: background .3s; }
.serv-proc-step:last-child { border-right: 1px solid var(--border); }
.serv-proc-step:hover { background: var(--white); }
.serv-proc-num { font-family: 'Cormorant Garamond', serif; font-size: 3.2rem; font-weight: 300; color: var(--tort-pale); line-height: 1; display: block; margin-bottom: 16px; }
.serv-proc-icon { font-size: 1.4rem; margin-bottom: 14px; display: block; }
.serv-proc-title { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--antr); margin-bottom: 10px; display: block; }
.serv-proc-desc { font-size: .79rem; font-weight: 300; line-height: 1.72; color: var(--mid-text); }
.serv-proc-bar { width: 28px; height: 1.5px; background: var(--tort); margin-top: 20px; transition: width .3s; }
.serv-proc-step:hover .serv-proc-bar { width: 52px; }

/* ══════════════════════════════
   PAGINA PORTFOLIO
══════════════════════════════ */
.port-filters { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 40px; }
.pf-btn { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mid-text); background: none; border: 1px solid var(--border); padding: 10px 22px; font-weight: 500; transition: all .2s; margin-right: -1px; font-family: 'Jost', sans-serif; cursor: pointer; }
.pf-btn.active, .pf-btn:hover { background: var(--antr); border-color: var(--antr); color: var(--white); }
.port-full-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 280px; gap: 14px; }

/* ══════════════════════════════
   PAGINA ONLINE
══════════════════════════════ */
.onl-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh;
}
.onl-left { background: var(--antr-mid); padding: 88px 56px 88px 8%; display: flex; flex-direction: column; justify-content: center; }
.onl-left .eyebrow { color: var(--tort); }
.onl-left h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3.2vw,3rem); font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 20px; }
.onl-left p { font-size: .93rem; font-weight: 300; line-height: 1.9; color: rgba(255,255,255,.55); max-width: 440px; margin-bottom: 40px; }
.onl-feats { display: flex; flex-direction: column; }
.onl-feat { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.onl-feat:last-child { border-bottom: none; }
.onl-feat-icon { width: 44px; height: 44px; background: rgba(196,181,162,.12); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.onl-feat-title { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; display: block; }
.onl-feat-desc { font-size: .79rem; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.44); }

.onl-right { background: var(--tort); padding: 88px 8% 88px 56px; display: flex; flex-direction: column; justify-content: center; }
.onl-right .eyebrow { color: rgba(255,255,255,.55); }
.onl-right h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3vw,2.8rem); font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 36px; }
.onl-steps { display: flex; flex-direction: column; }
.onl-step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.onl-step:last-child { border-bottom: none; }
.onl-step-num { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; color: rgba(255,255,255,.2); line-height: 1; flex-shrink: 0; }
.onl-step-title { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; display: block; }
.onl-step-desc { font-size: .8rem; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.72); }
.onl-cta { margin-top: 36px; align-self: flex-start; display: inline-block; background: var(--white); color: var(--antr); padding: 14px 36px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; font-family: 'Jost', sans-serif; transition: background .2s; }
.onl-cta:hover { background: var(--tort-bg); }

.onl-competenze { padding: 88px 8%; background: var(--white); }
.onl-comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.onl-skills { display: flex; flex-direction: column; gap: 26px; }
.onl-skill-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.onl-skill-name { font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--antr); }
.onl-skill-pct { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--tort-dark); }
.onl-skill-track { height: 2px; background: var(--border); border-radius: 1px; overflow: hidden; }
.onl-skill-fill { height: 100%; background: var(--tort); width: 0; transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.onl-visual { position: relative; height: 500px; }
.onl-vis-main { position: absolute; inset: 0 80px 80px 0; background: var(--tort-bg); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; overflow: hidden; }
.onl-vis-main img { width: 100%; height: 100%; object-fit: cover; }
.onl-vis-accent { position: absolute; bottom: 0; right: 0; width: 200px; height: 200px; background: var(--antr); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.onl-vis-num { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300; color: var(--white); line-height: 1; }
.onl-vis-text { font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tort); text-align: center; }

/* ══════════════════════════════
   TESTIMONIANZE PAGE
══════════════════════════════ */
.test-full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ══════════════════════════════
   BLOG / ARCHIVE
══════════════════════════════ */
.blog-full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-full-card { border: 1px solid var(--border); overflow: hidden; transition: box-shadow .3s; display: block; }
.blog-full-card:hover { box-shadow: 0 12px 40px rgba(45,45,45,.1); }
.blog-full-thumb { height: 220px; background: var(--tort-bg); overflow: hidden; }
.blog-full-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-full-card:hover .blog-full-thumb img { transform: scale(1.04); }
.blog-full-body { padding: 28px 24px; }
.blog-full-cat { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tort-dark); font-weight: 500; margin-bottom: 8px; display: block; }
.blog-full-date { font-size: .64rem; color: var(--mid-text); margin-bottom: 12px; display: block; }
.blog-full-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--antr); line-height: 1.4; margin-bottom: 12px; }
.blog-full-exc { font-size: .81rem; font-weight: 300; line-height: 1.75; color: var(--mid-text); margin-bottom: 18px; }
.blog-full-read { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tort-dark); font-weight: 600; }

/* ══════════════════════════════
   SINGLE POST
══════════════════════════════ */
.single-inner { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 64px) 5% 90px; }
.single-cat { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tort-dark); font-weight: 500; display: block; margin-bottom: 16px; }
.single-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem,5vw,3.8rem); font-weight: 300; color: var(--antr); line-height: 1.1; margin-bottom: 18px; }
.single-meta { font-size: .7rem; color: var(--mid-text); letter-spacing: .06em; margin-bottom: 52px; }
.single-thumb { margin-bottom: 52px; }
.single-thumb img { width: 100%; }
.single-content { font-size: .95rem; font-weight: 300; line-height: 1.95; color: var(--mid-text); }
.single-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; color: var(--antr); margin: 48px 0 18px; }
.single-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: var(--antr); margin: 36px 0 14px; }
.single-content p { margin-bottom: 26px; }
.single-content img { max-width: 100%; margin: 36px auto; }
.single-content a { color: var(--tort-dark); border-bottom: 1px solid var(--tort-pale); }
.single-back { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--border); }

/* ══════════════════════════════
   CONTATTI PAGE
══════════════════════════════ */
.cont-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h) - 340px); }
.cont-left { background: var(--tort-bg); padding: 88px 56px 88px 8%; display: flex; flex-direction: column; justify-content: center; }
.cont-left h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3vw,3rem); font-weight: 300; color: var(--antr); line-height: 1.2; margin-bottom: 20px; }
.cont-left .body-text { margin-bottom: 44px; }
.cont-info { display: flex; flex-direction: column; gap: 24px; }
.cont-row { display: flex; gap: 18px; align-items: flex-start; }
.cont-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.cont-label { font-size: .57rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tort-dark); font-weight: 600; display: block; margin-bottom: 3px; }
.cont-val { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--antr); }
.cont-val a { color: var(--antr); transition: color .2s; }
.cont-val a:hover { color: var(--tort-dark); }

.cont-right { background: var(--antr); padding: 88px 8% 88px 56px; display: flex; flex-direction: column; justify-content: center; }
.cont-right .eyebrow { color: var(--tort); }
.cont-right h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3vw,2.8rem); font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 36px; }
.cf-row { border-bottom: 1px solid rgba(255,255,255,.15); padding: 13px 0; }
.cf-row input, .cf-row textarea, .cf-row select {
  width: 100%; background: transparent; border: none; outline: none;
  font-family: 'Jost', sans-serif; font-size: .88rem; font-weight: 300;
  color: var(--white); -webkit-appearance: none;
}
.cf-row input::placeholder, .cf-row textarea::placeholder { color: rgba(255,255,255,.35); font-size: .8rem; }
.cf-row select { color: rgba(255,255,255,.35); }
.cf-row select option { background: #3D3D3D; color: var(--white); }
.cf-row textarea { resize: none; height: 80px; }
.cf-row:focus-within { border-bottom-color: var(--tort); }
.cf-submit { margin-top: 28px; background: var(--tort); color: var(--white); border: none; padding: 14px 38px; font-family: 'Jost', sans-serif; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: background .2s; }
.cf-submit:hover { background: var(--tort-dark); }
/* CF7 */
.wpcf7-form .wpcf7-text, .wpcf7-form .wpcf7-email, .wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-textarea, .wpcf7-form .wpcf7-select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.15);
  outline: none; font-family: 'Jost', sans-serif; font-size: .88rem; font-weight: 300;
  color: var(--white); padding: 13px 0; -webkit-appearance: none;
}
.wpcf7-form p { margin: 0; }
.wpcf7-form .wpcf7-submit { background: var(--tort); color: var(--white); border: none; padding: 14px 38px; font-family: 'Jost', sans-serif; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-top: 28px; cursor: pointer; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
#site-footer {
  background: var(--antr);
  padding: 52px 8%;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--white); }
.footer-brand-name span { color: var(--tort); }
.footer-brand-sub { font-size: .54rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-top: 5px; display: block; }
.footer-copy { font-size: .62rem; color: rgba(255,255,255,.22); letter-spacing: .08em; text-align: center; }
.footer-links { display: flex; gap: 18px; justify-content: flex-end; }
.footer-links a { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.28); transition: color .2s; }
.footer-links a:hover { color: var(--tort); }

/* Back to top */
#back-top { position: fixed; bottom: 28px; right: 28px; z-index: 500; width: 46px; height: 46px; background: var(--antr); color: var(--white); border: none; font-size: 1rem; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px); cursor: pointer; }
#back-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
#back-top:hover { background: var(--tort); }

/* ══════════════════════════════
   ANIMAZIONI
══════════════════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }

/* ══════════════════════════════
   HOME — ABOUT / PROFILO
══════════════════════════════ */
#home-about {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 620px;
  background: var(--white);
}
.about-photo-col {
  position: relative;
  overflow: hidden;
  background: var(--tort-bg);
}
.about-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
}
.about-photo-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.about-photo-ph span { font-size: 3.5rem; opacity: .15; }
.about-photo-ph p {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: .88rem; color: var(--mid-text); opacity: .55; text-align: center; padding: 0 28px;
}
.about-photo-badge {
  position: absolute; bottom: 0; right: 0;
  background: var(--antr); color: var(--white);
  padding: 20px 28px; text-align: center;
}
.about-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem; font-weight: 300; line-height: 1; display: block;
}
.about-badge-label {
  font-size: .56rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tort); margin-top: 4px; display: block;
}
.about-text-col {
  padding: 80px 8% 80px 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-text-col h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 300;
  color: var(--antr); line-height: 1.2; margin-bottom: 24px;
}
.about-quote {
  border-left: 2px solid var(--tort);
  padding: 16px 22px; margin-bottom: 26px;
}
.about-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-style: italic; font-weight: 300;
  color: var(--antr-soft); line-height: 1.6;
}
.about-values {
  display: flex; gap: 36px; margin-top: 32px;
  padding-top: 28px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.about-val {
  display: flex; flex-direction: column; gap: 4px;
}
.about-val-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 300; color: var(--antr); line-height: 1;
}
.about-val span:last-child {
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mid-text); line-height: 1.5;
}

/* ══════════════════════════════
   PORTFOLIO — galleria nativa WP
══════════════════════════════ */
.sec-pad .wp-block-gallery { margin: 0 !important; }
.sec-pad .wp-block-gallery figure { overflow: hidden; }
.sec-pad .wp-block-gallery figure img,
.sec-pad .wp-block-gallery .wp-block-image img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
.sec-pad .wp-block-gallery figure:hover img { transform: scale(1.04); }

/* Galleria classica [gallery] */
.sec-pad .gallery {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 14px; margin: 0 !important;
}
.sec-pad .gallery-item {
  overflow: hidden; margin: 0 !important; aspect-ratio: 4/3;
}
.sec-pad .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.sec-pad .gallery-item:hover img { transform: scale(1.04); }
.sec-pad .gallery-caption,
.sec-pad .gallery-item .gallery-caption { display: none; }

@media (max-width: 640px) {
  .sec-pad .gallery { grid-template-columns: 1fr 1fr; }
}

/* Pratiche edilizie grid */
@media (max-width: 640px) {
  .serv-pratiche-grid { grid-template-columns: 1fr !important; }
  /* Guida admin portfolio */
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 1024px) {
  :root { --nav-h: 64px; }
  .nav-menu, .nav-cta { display: none; }
  .nav-ham { display: flex; }

  #home-hero { grid-template-columns: 1fr; min-height: auto; }
  .hh-left { padding: 60px 6% 52px; order: 2; }
  .hh-right { height: 340px; order: 1; }
  .hh-stats { grid-template-columns: 1fr 1fr; }

  #home-filosofia { grid-template-columns: 1fr; }
  .hf-left { padding: 70px 6%; }
  .hf-right { padding: 60px 6%; border-left: none; border-top: 1px solid rgba(255,255,255,.06); }

  #home-servizi, #home-portfolio, #home-testimonianze, #home-blog { padding: 72px 6%; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hs-grid { grid-template-columns: 1fr 1fr; }
  .hp-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .hp-item.wide { grid-column: span 1; }
  .ht-grid { grid-template-columns: 1fr; }
  .hb-grid { grid-template-columns: 1fr 1fr; }

  #home-online { grid-template-columns: 1fr; }
  .ho-left { padding: 70px 6%; }
  .ho-right { padding: 70px 6%; }

  .fil-intro { grid-template-columns: 1fr; gap: 52px; }
  .fil-values-grid { grid-template-columns: 1fr 1fr; }
  .fil-val-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 36px 24px; }
  .fil-val-card:last-child { border-bottom: none; }
  .fil-steps { grid-template-columns: 1fr 1fr; }
  .fil-step:nth-child(2) { border-right: none; }
  .fil-step:nth-child(3) { border-top: none; }
  .fil-step:nth-child(4) { border-right: 1px solid var(--border); border-top: none; }
  .fil-values { padding: 70px 6%; }

  #home-about { grid-template-columns: 1fr; min-height: auto; }
  .about-photo-col { height: 400px; }
  .about-text-col { padding: 60px 6%; }

  .serv-tipologie-grid { grid-template-columns: 1fr 1fr; }
  .serv-proc-grid { grid-template-columns: 1fr 1fr; }
  .serv-proc-step:nth-child(2) { border-right: none; }
  .serv-proc-step:nth-child(3) { border-top: none; }
  .serv-proc-step:nth-child(4) { border-right: 1px solid var(--border); border-top: none; }
  .serv-processo { padding: 70px 6%; }

  .onl-split { grid-template-columns: 1fr; }
  .onl-left { padding: 70px 6%; }
  .onl-right { padding: 70px 6%; }
  .onl-comp-grid { grid-template-columns: 1fr; gap: 52px; }
  .onl-visual { height: 380px; }
  .onl-competenze { padding: 70px 6%; }

  .port-full-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .hp-item.wide { grid-column: span 1; }

  .test-full-grid { grid-template-columns: 1fr 1fr; }
  .blog-full-grid { grid-template-columns: 1fr 1fr; }

  .cont-split { grid-template-columns: 1fr; }
  .cont-left { padding: 70px 6%; }
  .cont-right { padding: 70px 6%; }

  #site-footer { grid-template-columns: 1fr; text-align: center; gap: 16px; padding: 40px 6%; }
  .footer-links { justify-content: center; }

  .sec-pad { padding: 70px 6%; }
  .sec-pad-sm { padding: 56px 6%; }
}

/* ══════════════════════════════
   RESPONSIVE MOBILE (≤640px)
══════════════════════════════ */
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  #navbar { padding: 0 5%; }
  .nav-logo-sub { display: none; }
  .nav-logo-name { font-size: 1.25rem; }

  .hh-left { padding: 44px 5% 44px; }
  .hh-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hh-desc { font-size: .86rem; }
  .hh-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hh-right { height: 260px; }
  .hh-stats { grid-template-columns: 1fr; border: none; padding-top: 0; margin-top: 36px; }
  .hh-stat { border: none; border-bottom: 1px solid var(--border); padding: 0 0 18px; }
  .hh-stat:last-child { border-bottom: none; padding-left: 0; }
  .hh-badge { flex-direction: column; gap: 4px; align-items: flex-start; }

  .hf-left, .hf-right { padding: 56px 5%; }
  #home-servizi, #home-portfolio, #home-testimonianze, #home-blog { padding: 56px 5%; }
  .hs-grid { grid-template-columns: 1fr; gap: 2px; }
  .hp-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .hp-item.tall { grid-row: span 1; }
  .hb-grid { grid-template-columns: 1fr; }
  .ho-left { padding: 56px 5%; }
  .ho-right { padding: 56px 5%; }

  .page-hero { padding-left: 5%; padding-right: 5%; min-height: 300px; }
  .page-hero::after { display: none; }
  .page-hero-content { padding: 50px 0; }
  .breadcrumb { left: 5%; }

  .sec-pad { padding: 56px 5%; }
  .sec-pad-sm { padding: 44px 5%; }

  .fil-intro { gap: 40px; }
  .fil-img { min-height: 320px; }
  .fil-values { padding: 56px 5%; }
  .fil-values-grid { grid-template-columns: 1fr; }
  .fil-steps { grid-template-columns: 1fr; }
  .fil-step { border-right: 1px solid var(--border) !important; border-top: none; }
  .fil-step:first-child { border-top: 1px solid var(--border); }

  .about-photo-col { height: 320px; }
  .about-text-col { padding: 52px 5%; }
  .about-values { gap: 24px; }

  .serv-tipologie-grid { grid-template-columns: 1fr; }
  .serv-tipologie-grid { gap: 16px; }
  .serv-processo { padding: 56px 5%; }
  .serv-proc-grid { grid-template-columns: 1fr; }
  .serv-proc-step { border-right: 1px solid var(--border) !important; border-top: none; }
  .serv-proc-step:first-child { border-top: 1px solid var(--border); }

  .onl-left { padding: 56px 5%; }
  .onl-right { padding: 56px 5%; }
  .onl-competenze { padding: 56px 5%; }
  .onl-visual { height: 300px; }
  .onl-vis-main { inset: 0 60px 60px 0; }
  .onl-vis-accent { width: 130px; height: 130px; }
  .onl-vis-num { font-size: 2.5rem; }

  .port-full-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .hp-item.wide, .hp-item.tall { grid-column: span 1; grid-row: span 1; }
  .hp-overlay { opacity: 1 !important; }
  .hp-info { opacity: 1 !important; transform: translateY(0) !important; }
  .port-full-grid .hp-overlay { opacity: 1 !important; }
  .port-full-grid .hp-info { opacity: 1 !important; transform: translateY(0) !important; }

  .test-full-grid { grid-template-columns: 1fr; }
  .ht-grid { grid-template-columns: 1fr; }

  .blog-full-grid { grid-template-columns: 1fr; }

  .cont-left { padding: 56px 5%; }
  .cont-right { padding: 56px 5%; }

  #site-footer { padding: 32px 5%; }

  .single-inner { padding-left: 5%; padding-right: 5%; }
}
