/* ============================================================
   Casa Baldi — page styles (ported from the design's page <style> blocks)
   ============================================================ */

/* light heroes (Studio · Servizi · Progetti · Contatti) */
body.ported .phero.light h1{ font-weight:400; font-size:clamp(40px,5.2vw,80px); line-height:1; }
body.ported .reveal.d1{ transition-delay:.08s; } body.ported .reveal.d2{ transition-delay:.1s; } body.ported .reveal.d3{ transition-delay:.16s; }

/* ---------- HOME (Versione 2) ---------- */
body.ported.home{ background:var(--ink); overflow:hidden; }
body.ported .e-con.cb-home{ position:fixed; inset:0; overflow:hidden; background-size:cover; background-position:center; background-color:var(--ink); }
body.admin-bar.ported .e-con.cb-home{ top:32px; }
body.ported .e-con.cb-home .frame{ position:absolute; inset:0; z-index:5; flex-direction:column; align-items:center; justify-content:center; gap:34px; padding:40px; }
body.ported .cb-home .brand{ width:auto; }
body.ported .cb-home .brand img{ width:clamp(220px,20vw,300px); height:auto; }
body.ported .cb-home-nav{ width:auto; }
body.ported .cb-home-nav .elementor-nav-menu--main .elementor-nav-menu{ display:flex; gap:clamp(24px,3vw,48px); }
body.ported .cb-home-nav .elementor-item{ padding:6px 0 !important; font-family:var(--ff-sans); font-size:13px; font-weight:600; letter-spacing:.3em;
  text-transform:uppercase; color:var(--bordeaux); transition:color .3s ease; }
body.ported .cb-home-nav .elementor-item::after, body.ported .cb-home-nav .elementor-item::before{ display:none !important; }
body.ported .cb-home-nav .elementor-nav-menu--main .elementor-item:hover{ color:var(--ink); }
body.ported .anim{ opacity:0; transform:translateY(20px); animation:cbRise .9s .15s cubic-bezier(.2,.7,.2,1) forwards; }
body.ported .anim.d2{ animation-delay:.32s; }
@keyframes cbRise{ to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ body.ported .anim{ animation:none; opacity:1; transform:none; } }
.elementor-editor-active .anim{ opacity:1; transform:none; animation:none; }
/* home mobile menu (≤767) */
body.ported .cb-home-nav .elementor-menu-toggle{ position:fixed; top:26px; right:26px; z-index:30; background:none; padding:8px; color:var(--bordeaux); font-size:28px; }
body.admin-bar.ported .cb-home-nav .elementor-menu-toggle{ top:72px; }
body.ported .cb-home-nav .elementor-menu-toggle svg{ fill:var(--bordeaux); }
body.ported .cb-home-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container{ position:fixed; inset:0; z-index:20; margin:0 !important; max-height:none !important; height:100vh;
  transform:translateX(100%) !important; transition:transform .5s cubic-bezier(.2,.7,.2,1) !important; background:rgba(231,226,222,.97);
  display:flex; align-items:center; justify-content:center; }
body.ported .cb-home-nav .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown.elementor-nav-menu__container{ transform:none !important; }
body.ported .cb-home-nav .elementor-nav-menu--dropdown .elementor-nav-menu{ display:flex; flex-direction:column; gap:30px; }
body.ported .cb-home-nav .elementor-nav-menu--dropdown .elementor-item{ background:none !important; color:var(--bordeaux) !important; justify-content:center; font-size:20px; letter-spacing:.3em; border:0; }

/* ---------- STUDIO ---------- */
body.ported .e-con.manifesto{ display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(40px,6vw,110px); align-items:start; }
body.ported .e-con.manifesto .lhs{ position:sticky; top:120px; }
body.ported .manifesto .num{ font-family:var(--ff-display); font-size:clamp(60px,9vw,150px); font-weight:300; line-height:.8; color:var(--bordeaux); letter-spacing:-.04em; }
body.ported .manifesto .lhs h2{ font-family:var(--ff-display); font-weight:500; font-size:clamp(28px,3.2vw,46px); line-height:1.05; letter-spacing:-.015em; margin:22px 0 0; }
body.ported .manifesto .big{ font-family:var(--ff-display); font-weight:400; font-size:clamp(24px,2.7vw,40px); line-height:1.24; letter-spacing:-.01em; margin:0 0 30px; }
body.ported .manifesto .big em{ color:var(--bordeaux); }

body.ported .e-con.founders{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(34px,5vw,72px); }
body.ported .e-con.founder{ display:block; }
body.ported .e-con.portrait{ position:relative; aspect-ratio:4/5; overflow:hidden; background:var(--paper-pure); border:1px solid var(--line-strong); display:block; }
body.ported .portrait .elementor-widget-image{ position:absolute; inset:0; }
body.ported .portrait .elementor-widget-image .elementor-widget-container, body.ported .portrait .elementor-widget-image a{ height:100%; }
body.ported .portrait img{ width:100%; height:100%; object-fit:cover; }
/* hover: black & white → colour */
body.ported .portrait .pt-col{ opacity:0; transition:opacity .6s ease; }
body.ported .founder:hover .portrait .pt-col, body.ported .founder.tap .portrait .pt-col{ opacity:1; }
body.ported .portrait img{ transition:transform 1.2s cubic-bezier(.2,.7,.2,1); }
body.ported .founder:hover .portrait img{ transform:scale(1.03); }
body.ported .founder .name{ font-family:var(--ff-display); font-weight:600; font-size:clamp(26px,2.6vw,38px); margin:26px 0 4px; letter-spacing:-.01em; }
body.ported .founder .role{ font-size:11px; font-weight:700; letter-spacing:.26em; text-transform:uppercase; color:var(--bordeaux); }
body.ported .founder .edu .elementor-heading-title{ margin:18px 0 14px; font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted); display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
body.ported .founder .edu .sep{ width:5px; height:5px; border-radius:50%; background:var(--sage); }
body.ported .founder .bio p{ font-size:clamp(14px,1.05vw,16px); line-height:1.75; color:color-mix(in srgb,var(--ink) 76%, var(--paper)); margin:0 0 14px; }

body.ported .e-con.values{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(26px,3vw,52px); }
body.ported .e-con.val{ display:block; }
body.ported .val .vk{ font-family:var(--ff-display); font-size:clamp(40px,5vw,76px); font-weight:300; color:var(--bordeaux); line-height:.9; letter-spacing:-.03em; }
body.ported .val h3{ font-family:var(--ff-display); font-weight:600; font-size:clamp(20px,1.7vw,26px); margin:18px 0 10px; }
body.ported .val p{ font-size:14px; line-height:1.7; color:color-mix(in srgb,var(--paper) 72%, transparent); margin:0; }
body.ported .cta .wrap{ align-items:center; text-align:center; }

@media (max-width:820px){
  body.ported .e-con.manifesto{ grid-template-columns:1fr; }
  body.ported .e-con.manifesto .lhs{ position:static; }
  body.ported .e-con.founders{ grid-template-columns:1fr; }
  body.ported .e-con.values{ grid-template-columns:1fr; gap:40px; }
}

/* ---------- SERVIZI ---------- */
body.ported .e-con.concept{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,4vw,64px); }
body.ported .e-con.concept .card{ position:relative; display:block; padding:clamp(32px,3.2vw,48px); border:1px solid var(--line);
  background:var(--paper-pure); overflow:hidden; color:inherit; cursor:pointer;
  transition:transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, opacity .8s cubic-bezier(.2,.7,.2,1); }
body.ported .e-con.concept .card:hover{ transform:translateY(-4px); box-shadow:0 40px 80px -40px rgba(20,19,20,.35); }
body.ported .concept .card .tagn{ font-family:var(--ff-display); font-size:13px; letter-spacing:.3em; text-transform:uppercase; color:var(--bordeaux); font-weight:600; }
body.ported .concept .card h3{ font-family:var(--ff-display); font-weight:500; font-size:clamp(28px,3vw,44px); margin:12px 0 14px; letter-spacing:-.015em; }
body.ported .concept .card p{ font-size:clamp(14px,1.05vw,16px); line-height:1.7; color:color-mix(in srgb,var(--ink) 74%,var(--paper)); margin:0; }
body.ported .e-con.concept .card .text{ position:relative; z-index:1; max-width:56%; display:block; }
body.ported .e-con.concept .card .arc{ position:absolute; right:-64px; bottom:-64px; width:300px; height:300px; border-radius:50%; overflow:hidden; background:var(--sabbia); display:block; }
body.ported .concept .card .arc .elementor-widget-image, body.ported .concept .card .arc .elementor-widget-container{ height:100%; }
body.ported .concept .card .arc img{ width:100%; height:100%; object-fit:cover; display:block; }
body.ported #progetto, body.ported #materia{ scroll-margin-top:120px; }

/* accordion — Elementor nested accordion restyled as the design's .acc */
body.ported .acc{ counter-reset:acc; border-top:1px solid var(--line-strong); }
body.ported .band.dark .acc{ border-top-color:color-mix(in srgb,var(--paper) 30%,transparent); }
body.ported .acc .e-n-accordion{ gap:0; }
body.ported .acc .e-n-accordion-item{ counter-increment:acc; border:0; border-bottom:1px solid var(--line); margin:0; }
body.ported .band.dark .acc .e-n-accordion-item{ border-bottom-color:color-mix(in srgb,var(--paper) 16%,transparent); }
body.ported .acc .e-n-accordion-item-title{ display:grid !important; grid-template-columns:auto 1fr auto; align-items:center; gap:clamp(18px,2.4vw,44px);
  padding:clamp(22px,2.4vw,34px) 0 !important; background:none !important; border:0 !important; color:inherit !important; cursor:pointer; list-style:none; }
body.ported .acc .e-n-accordion-item-title::-webkit-details-marker{ display:none; }
body.ported .acc .e-n-accordion-item-title::before{ content:counter(acc, decimal-leading-zero); font-family:var(--ff-display); font-size:clamp(15px,1.1vw,18px); font-weight:600; color:var(--bordeaux); }
body.ported .acc .e-n-accordion-item-title-header{ display:block; }
body.ported .acc .e-n-accordion-item-title-text{ font-family:var(--ff-display); font-weight:500; font-size:clamp(22px,2.5vw,38px); letter-spacing:-.01em; line-height:1.1; color:inherit !important; }
body.ported .acc .e-n-accordion-item-title-icon{ display:none !important; }
body.ported .acc .e-n-accordion-item-title::after{ content:''; width:38px; height:38px; flex:0 0 auto; border-radius:50%; box-sizing:border-box;
  border:1px solid var(--line-strong); background:transparent;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141314' stroke-width='1.6'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center; background-size:16px; transition:background-color .35s ease, border-color .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
body.ported .band.dark .acc .e-n-accordion-item-title::after{ border-color:color-mix(in srgb,var(--paper) 36%,transparent);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F7F5' stroke-width='1.6'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
body.ported .acc .e-n-accordion-item[open] > .e-n-accordion-item-title::after{ background-color:var(--bordeaux); border-color:var(--bordeaux); transform:rotate(135deg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F7F5' stroke-width='1.6'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
body.ported .acc .e-n-accordion-item > .e-con{ border:0 !important; background:none !important; }
body.ported .e-con.acc-inner{ display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(24px,3vw,52px); padding:0 0 clamp(26px,2.6vw,38px) clamp(34px,5vw,62px); }
body.ported .acc-inner p{ font-size:clamp(14px,1.05vw,16.5px); line-height:1.75; color:color-mix(in srgb,var(--ink) 74%,var(--paper)); margin:0; }
body.ported .band.dark .acc-inner p{ color:color-mix(in srgb,var(--paper) 80%,transparent); }
body.ported .acc-inner ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
body.ported .acc-inner li{ position:relative; padding-left:22px; font-size:clamp(13px,1vw,15px); line-height:1.6; color:color-mix(in srgb,var(--ink) 70%,var(--paper)); }
body.ported .band.dark .acc-inner li{ color:color-mix(in srgb,var(--paper) 72%,transparent); }
body.ported .acc-inner li::before{ content:''; position:absolute; left:0; top:8px; width:8px; height:8px; background:var(--bordeaux); }
body.ported .band.dark .acc-inner li::before{ background:var(--sage); }
body.ported .acc-inner li b, body.ported .acc-inner li strong{ color:var(--ink); font-weight:600; }
body.ported .band.dark .acc-inner li b, body.ported .band.dark .acc-inner li strong{ color:var(--paper); }
@media (max-width:820px){
  body.ported .e-con.concept{ grid-template-columns:1fr; }
  body.ported .e-con.concept .card .text{ max-width:100%; }
  body.ported .e-con.concept .card .arc{ display:none; }
  body.ported .e-con.acc-inner{ grid-template-columns:1fr; }
}

/* ---------- CONTATTI ---------- */
body.ported .e-con.contact{ display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(40px,6vw,96px); align-items:start; }
body.ported .e-con.info{ display:block; }
body.ported .e-con.info .row{ display:block; padding:24px 0; border-top:1px solid var(--line); }
body.ported .e-con.info .row:first-child{ border-top:none; padding-top:0; }
body.ported .info .k{ font-size:11px; font-weight:700; letter-spacing:.28em; text-transform:uppercase; color:var(--bordeaux); margin-bottom:10px; }
body.ported .info .v{ font-family:var(--ff-display); font-size:clamp(20px,1.8vw,27px); font-weight:500; line-height:1.3; }
body.ported .info .v p{ margin:0; }
body.ported .info .v small{ display:block; font-family:var(--ff-sans); font-size:13px; font-weight:600; letter-spacing:.04em; color:var(--muted); margin-top:8px; }
body.ported .info .v a{ transition:color .3s ease; }
body.ported .info .v a:hover{ color:var(--bordeaux); }
body.ported .socials .elementor-social-icons-wrapper{ display:flex; gap:12px; margin-top:6px; }
body.ported .socials .elementor-grid-item{ margin:0 !important; }
body.ported .socials .elementor-social-icon{ width:46px; height:46px; border-radius:50%; border:1px solid var(--line-strong); background:transparent !important;
  color:var(--ink) !important; display:flex; align-items:center; justify-content:center; font-size:19px; padding:0;
  transition:background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
body.ported .socials .elementor-social-icon i{ color:inherit; font-size:18px; }
body.ported .socials .elementor-social-icon svg{ fill:currentColor; width:18px; height:18px; }
body.ported .socials .elementor-social-icon:hover{ background:var(--bordeaux) !important; border-color:var(--bordeaux); color:var(--paper) !important; transform:translateY(-2px); opacity:1; }

/* form box */
body.ported .e-con.form{ display:block; background:var(--paper-pure); border:1px solid var(--line); padding:clamp(30px,3.4vw,52px); }
body.ported .form h3{ font-family:var(--ff-display); font-weight:500; font-size:clamp(24px,2.4vw,34px); margin:0 0 6px; }
body.ported .form .sub p{ font-size:14px; color:var(--muted); margin:0 0 28px; }
body.ported .cb-form .elementor-form-fields-wrapper{ margin:0 -12px; }
body.ported .cb-form .elementor-field-group{ padding:0 12px; margin-bottom:24px; }
body.ported .cb-form .elementor-field-label{ display:block; font-family:var(--ff-sans); font-size:11px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; padding:0; line-height:normal; }
body.ported .cb-form .elementor-field-textual{ width:100%; border:none; border-bottom:1.5px solid var(--line-strong); border-radius:0; background:transparent;
  font-family:var(--ff-sans); font-size:16px; color:var(--ink); padding:10px 0; min-height:0; line-height:normal; box-shadow:none; transition:border-color .3s ease; }
body.ported .cb-form textarea.elementor-field-textual{ resize:vertical; min-height:96px; }
body.ported .cb-form .elementor-field-textual:focus{ outline:none; border-color:var(--bordeaux); box-shadow:none; }
body.ported .cb-form .elementor-field-textual::placeholder{ color:#757575; opacity:1; }
body.ported .cb-form .e-form__buttons{ margin-top:6px; }
body.ported .cb-form .elementor-button{ width:100%; display:inline-flex; justify-content:center; align-items:center; gap:14px; padding:18px 34px; border-radius:40px; border:0;
  background:var(--ink); color:var(--paper); font-family:var(--ff-sans); font-size:13px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; line-height:normal; min-height:0;
  transition:background .35s ease, transform .35s ease; }
body.ported .cb-form .elementor-button:hover{ background:var(--bordeaux); transform:translateY(-2px); }
body.ported .cb-form .elementor-button-content-wrapper{ min-height:17px; align-items:center; }
body.ported .cb-form .elementor-button::after{ content:''; width:16px; height:16px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
body.ported .cb-form .elementor-message{ padding:16px; background:var(--sabbia); border-left:3px solid var(--bordeaux); font-size:14px; line-height:1.6; margin-top:18px; color:var(--ink); }
body.ported .cb-form .elementor-message::before{ display:none; }
body.ported .cb-form .elementor-message.elementor-message-danger{ border-left-color:#b00020; }

/* quote band */
body.ported .quoteband .wrap{ text-align:center; align-items:center; }
body.ported .quoteband .q p{ font-family:var(--ff-display); font-weight:400; font-size:clamp(26px,3.6vw,56px); line-height:1.2; letter-spacing:-.015em; max-width:20ch; margin:0 auto; color:var(--paper); }
body.ported .quoteband .q em{ color:var(--bordeaux); }
body.ported .quoteband .by{ margin-top:30px; font-size:12px; font-weight:600; letter-spacing:.3em; text-transform:uppercase; color:color-mix(in srgb,var(--paper) 64%, transparent); }

@media (max-width:820px){
  body.ported .e-con.contact{ grid-template-columns:1fr; }
  body.ported .cb-form .elementor-field-group{ width:100% !important; }
}
/* Contatti keeps the large hero title */
body.ported.page-id-121 .phero.light h1{ font-weight:500; font-size:clamp(52px,8vw,128px); line-height:.92; }

/* ---------- SINGLE PROGETTO ---------- */
body.ported .e-con.phero.proj{ min-height:100svh; padding:0 clamp(22px,4vw,72px) clamp(48px,6vw,84px); background-color:var(--ink); background-size:cover; background-position:center; }
body.ported .e-con.phero.proj::before{ content:''; position:absolute; inset:0; z-index:0; background:inherit; background-size:cover; background-position:center; transform:scale(1.04); }
@media (prefers-reduced-motion:no-preference){ body.ported .e-con.phero.proj::before{ animation:cbSlowzoom 14s ease-out forwards; } }
@keyframes cbSlowzoom{ from{ transform:scale(1.12); } to{ transform:scale(1); } }
body.ported .e-con.phero.proj::after{ background:linear-gradient(to bottom, rgba(20,19,20,.5) 0%, rgba(20,19,20,.1) 30%, rgba(20,19,20,.15) 55%, rgba(20,19,20,.78) 100%); }
body.ported .phero.proj .meta{ margin-bottom:26px; }
body.ported .phero.proj h1{ font-size:clamp(58px,9vw,150px); line-height:.9; }
body.ported .phero.proj .lead{ margin-top:30px; }
body.ported .phero.proj .lead p{ margin:0 0 1em; }
body.ported .e-con.eb-row{ flex-direction:row; gap:0; width:auto; }
body.ported .eb-row .eyebrow .elementor-heading-title{ white-space:pre; }
body.ported .phero .crumb{ width:auto; margin-bottom:24px; }
body.ported .phero .crumb .elementor-heading-title{ display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:color-mix(in srgb,var(--paper) 78%, transparent); transition:color .3s ease; }
body.ported .phero .crumb a{ color:inherit; }
body.ported .phero .crumb .elementor-heading-title::before{ content:''; width:15px; height:15px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; }
body.ported .phero .crumb .elementor-heading-title:hover{ color:var(--bordeaux); }
body.ported .pill:has(.elementor-heading-title:empty){ display:none; }
body.ported .e-con.scrollcue{ position:absolute; left:50%; bottom:26px; z-index:3; transform:translateX(-50%); width:auto; align-items:center; gap:8px;
  color:color-mix(in srgb,var(--paper) 64%, transparent); }
body.ported .scrollcue .mono .elementor-heading-title{ color:inherit; }
body.ported .e-con.scrollcue::after{ content:''; width:1px; height:42px; background:linear-gradient(var(--paper),transparent); animation:cbDrop 1.8s ease-in-out infinite; }
@keyframes cbDrop{ 0%{ transform:scaleY(0); transform-origin:top; } 50%{ transform:scaleY(1); transform-origin:top; } 50.1%{ transform-origin:bottom; } 100%{ transform:scaleY(0); transform-origin:bottom; } }

body.ported .e-con.intro{ max-width:1300px; width:100%; margin:0 auto; padding:clamp(64px,8vw,120px) clamp(22px,4vw,72px) clamp(30px,4vw,56px);
  display:grid; grid-template-columns:1.4fr 1fr; gap:clamp(40px,6vw,100px); align-items:start; }
body.ported .e-con.intro > .e-con{ display:block; }
body.ported .intro .col-l .eyebrow{ margin-bottom:22px; }
body.ported .intro h2{ font-family:var(--ff-display); font-weight:500; font-size:clamp(30px,3.4vw,52px); line-height:1.08; letter-spacing:-.015em; margin:0; }
body.ported .intro h2 em{ color:var(--bordeaux); }
body.ported .intro p{ font-size:clamp(15px,1.2vw,18px); line-height:1.75; color:color-mix(in srgb,var(--ink) 76%, var(--paper)); margin:0 0 18px; }
body.ported .intro .cb-facts-w{ margin-top:24px; }
body.ported .facts{ border-top:1px solid var(--line-strong); }
body.ported .fact{ display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); }
body.ported .fact .k{ font-size:11px; font-weight:700; letter-spacing:.24em; text-transform:uppercase; color:var(--muted); }
body.ported .fact .v{ font-family:var(--ff-display); font-size:clamp(18px,1.5vw,23px); font-weight:600; text-align:right; }

body.ported .e-con.sec-head.proj-sh{ max-width:1300px; width:100%; margin:0 auto; padding:clamp(40px,5vw,76px) clamp(22px,4vw,72px) 30px; }
body.ported .proj-sh h3{ font-family:var(--ff-display); font-weight:500; font-size:clamp(26px,2.8vw,40px); margin:0; letter-spacing:-.01em; }
body.ported .proj-sh .eyebrow{ margin-bottom:12px; }
body.ported .proj-sh .note p{ font-size:13px; line-height:1.6; }

/* masonry gallery — Elementor Basic Gallery */
body.ported .e-con.proj-gallery{ max-width:1300px; width:100%; margin:0 auto; padding:6px clamp(22px,4vw,72px) clamp(40px,5vw,72px); display:block; }
body.ported .cb-gallery .gallery{ display:block !important; columns:3; column-gap:18px; margin:0 !important; }
@media (max-width:1000px){ body.ported .cb-gallery .gallery{ columns:2; } }
@media (max-width:620px){ body.ported .cb-gallery .gallery{ columns:1; } }
body.ported .cb-gallery .gallery-item{ position:relative; display:block !important; width:auto !important; max-width:none !important; padding:0 !important; margin:0 0 18px !important;
  break-inside:avoid; overflow:hidden; background:var(--sabbia); opacity:0; transform:translateY(34px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
body.ported .cb-gallery .gallery-item.in, .elementor-editor-active .cb-gallery .gallery-item{ opacity:1; transform:none; }
body.ported .cb-gallery .gallery-icon, body.ported .cb-gallery .gallery-icon a{ display:block; }
body.ported .cb-gallery .gallery-item img{ width:100% !important; height:auto; display:block; border:0 !important; transition:transform .9s cubic-bezier(.2,.7,.2,1); }
body.ported .cb-gallery .gallery-item:hover img{ transform:scale(1.05); }
body.ported .cb-gallery .gallery-caption{ position:absolute; left:0; right:0; bottom:0; margin:0; padding:40px 20px 16px; text-align:left;
  background:linear-gradient(transparent, rgba(20,19,20,.66)); color:var(--paper); font-size:11px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; line-height:normal;
  opacity:0; transform:translateY(8px); transition:opacity .4s ease, transform .4s ease; pointer-events:none; }
body.ported .cb-gallery .gallery-item:hover .gallery-caption{ opacity:1; transform:none; }
body.ported .cb-gallery br{ display:none; }

body.ported .e-con.cta.proj-cta{ max-width:1300px; width:100%; margin:0 auto; padding:clamp(70px,9vw,140px) clamp(22px,4vw,72px); }
body.ported .proj-cta h2{ font-size:clamp(36px,5.5vw,86px); line-height:1; max-width:18ch; }
@media (max-width:820px){ body.ported .e-con.intro{ grid-template-columns:1fr; } }

/* ---------- PROGETTI (archive) ---------- */
body.ported.page-id-120 .e-con.phero.light{ min-height:64svh; }
body.ported .sec-head .count .elementor-heading-title, body.ported .sec-head .count{ font-size:12px; font-weight:700; letter-spacing:.24em; text-transform:uppercase; color:var(--muted); }
body.ported .archive .elementor-loop-container{ display:grid !important; grid-template-columns:1fr 1fr !important; gap:clamp(22px,2.6vw,40px) !important; }
body.ported .archive .e-loop-item{ min-width:0; }
body.ported .archive .e-loop-item > .e-con{ height:100%; }
body.ported .e-con.work{ position:relative; border:1px solid var(--line); background:var(--paper-pure); overflow:hidden; display:flex; flex-direction:column; color:inherit; }
body.ported .work .media{ position:relative; aspect-ratio:4/3; overflow:hidden; display:block; }
body.ported .work .media .elementor-widget, body.ported .work .media .elementor-widget-container{ position:absolute; inset:0; }
body.ported .work .media img{ position:absolute; inset:0; width:100%; height:100% !important; object-fit:cover; max-width:none; transition:transform 1s cubic-bezier(.2,.7,.2,1); }
body.ported .work:hover .media img{ transform:scale(1.05); }
body.ported .e-con.work .body{ padding:clamp(22px,2.4vw,32px); display:flex; flex-direction:column; gap:12px; flex:1; }
body.ported .e-con.tagrow{ flex-direction:row; align-items:center; gap:14px; }
body.ported .tagrow .num .elementor-heading-title{ font-family:var(--ff-display); font-size:14px; font-weight:600; color:var(--bordeaux); }
body.ported .e-con.tagrow .ln{ flex:1; height:1px; background:var(--line); }
body.ported .tagrow .yr .elementor-heading-title{ font-size:11px; font-weight:600; letter-spacing:.2em; color:var(--muted); }
body.ported .work h3{ font-family:var(--ff-display); font-weight:500; font-size:clamp(22px,2.2vw,30px); line-height:1.05; letter-spacing:-.015em; margin:2px 0 0; }
body.ported .work .place .elementor-heading-title{ font-size:11px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--muted); }
body.ported .work .desc{ display:none; }
body.ported .work .go{ margin-top:auto; }
body.ported .work .go .elementor-heading-title{ display:inline-flex; align-items:center; gap:10px; font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; transition:gap .3s ease, color .3s ease; }
body.ported .work .go .elementor-heading-title::after{ content:''; width:16px; height:16px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
body.ported .work:hover .go .elementor-heading-title{ color:var(--bordeaux); gap:16px; }
/* first project = featured card */
body.ported .archive .e-loop-item:first-of-type{ grid-column:1 / -1; }
body.ported .archive .e-loop-item:first-of-type .e-con.work{ display:grid; grid-template-columns:1.45fr 1fr; gap:0; }
body.ported .archive .e-loop-item:first-of-type .work .media{ aspect-ratio:auto; min-height:clamp(320px,40vw,560px); }
body.ported .archive .e-loop-item:first-of-type .e-con.work .body{ padding:clamp(34px,3.4vw,60px); justify-content:space-between; gap:0; }
body.ported .archive .e-loop-item:first-of-type .e-con.tagrow{ gap:16px; }
body.ported .archive .e-loop-item:first-of-type .tagrow .num .elementor-heading-title{ font-size:clamp(15px,1.1vw,18px); }
body.ported .archive .e-loop-item:first-of-type .tagrow .yr .elementor-heading-title{ font-size:12px; letter-spacing:.22em; }
body.ported .archive .e-loop-item:first-of-type .work h3{ font-size:clamp(34px,4vw,64px); line-height:.98; letter-spacing:-.02em; margin:22px 0 18px; }
body.ported .archive .e-loop-item:first-of-type .work .place{ margin-bottom:18px; }
body.ported .archive .e-loop-item:first-of-type .work .place .elementor-heading-title{ letter-spacing:.26em; }
body.ported .archive .e-loop-item:first-of-type .work .desc{ display:block; }
body.ported .work .desc .elementor-heading-title{ font-size:clamp(14px,1.1vw,16.5px); line-height:1.75; color:color-mix(in srgb,var(--ink) 74%,var(--paper)); font-weight:400; }
body.ported .archive .e-loop-item:first-of-type .work .go{ margin-top:38px; }
body.ported .archive .e-loop-item:first-of-type .work .go .elementor-heading-title{ gap:12px; font-size:13px; letter-spacing:.18em; }
@media (max-width:820px){
  body.ported .archive .elementor-loop-container{ grid-template-columns:1fr !important; }
  body.ported .archive .e-loop-item:first-of-type .e-con.work{ grid-template-columns:1fr; }
  body.ported .archive .e-loop-item:first-of-type .work .media{ min-height:300px; }
}
/* card span headings: no stray line box */
body.ported .work .tagrow .elementor-widget-heading, body.ported .work .go{ font-size:0; line-height:0; }
body.ported .work .tagrow .elementor-heading-title{ line-height:normal; }
body.ported .work .go .elementor-heading-title{ line-height:normal; }
/* project page fixes */
body.ported .e-con > .elementor-widget.lead{ max-width:60ch !important; }
body.ported .phero .crumb{ font-size:0; line-height:0; }
body.ported .phero .crumb .elementor-heading-title{ line-height:normal; }
body.ported .ba-inner .sub{ margin:1em 0; }
/* gallery: source keeps the default figure side margins */
body.ported .cb-gallery .gallery-item{ margin:0 40px 18px !important; }

/* cb-nav-hide-fix: closed full-screen menu must never peek in (Elementor sets inline width/left on the dropdown) */
body.ported .cb-home-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container{ width:100vw !important; left:0 !important; right:auto !important; visibility:hidden; pointer-events:none; transition:transform .5s cubic-bezier(0.2,0.7,0.2,1), visibility 0s linear .5s !important; }
body.ported .cb-home-nav .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown.elementor-nav-menu__container{ visibility:visible; pointer-events:auto; transition:transform .5s cubic-bezier(0.2,0.7,0.2,1), visibility 0s !important; }
