/* Studio Catarraso 5.10.37 — editorial split for the authentic conference room photograph.
   No fades, no negative margins or oversized imagery on desktop. Mobile 5.10.35 preserved. */
.hero.sc-real-office-5134 { background:#edf5fc; }
.hero.sc-real-office-5134::before {
  background:linear-gradient(110deg,#fbfdff 0%,#f1f7fc 58%,#e8f2fa 100%);
}
.hero.sc-real-office-5134 .hero-grid {
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:clamp(32px,3.8vw,58px);
  min-height:610px;
  align-items:center;
  position:relative;
  z-index:1;
}
.hero.sc-real-office-5134 .hero-copy {
  position:relative;
  z-index:2;
  padding-right:0;
}
.hero.sc-real-office-5134 .hero-art {
  position:relative;
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio: 16 / 10;
  align-self:center;
  overflow:hidden;
  margin:0;
  border:1px solid rgba(89,126,157,.17);
  border-radius:14px;
  background:#e8eff4;
  box-shadow:0 15px 36px rgba(34,62,85,.09);
}
.hero.sc-real-office-5134 .hero-art .hero-photo {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  max-width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  object-position:49% 51%;
  opacity:1;
  filter:none;
  -webkit-mask:none;
  mask:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  pointer-events:none;
}
@media (min-width:761px) and (max-width:1120px) {
 .hero.sc-real-office-5134 .hero-grid {grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:28px;min-height:550px;}
 .hero.sc-real-office-5134 .hero-art {aspect-ratio: 4 / 3;}
}
@media (min-width:761px) and (max-width:900px) {
  .hero.sc-real-office-5134 .hero-grid {grid-template-columns:minmax(0,1fr);min-height:0;gap:0;}
  .hero.sc-real-office-5134 .hero-copy {padding:50px 0 26px;}
  .hero.sc-real-office-5134 .hero-art {aspect-ratio:16 / 9;margin-bottom:34px;}
}
@media (max-width:760px) {
  /* The previously approved phone treatment stays unchanged. */
  .hero.sc-real-office-5134 {background:#eaf2fa;}
  .hero.sc-real-office-5134::before {background:linear-gradient(105deg,#fbfdff 0%,#eef5fc 60%,#e4eff8 100%);}
  .hero.sc-real-office-5134 .hero-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    gap:0;
  }
  .hero.sc-real-office-5134 .hero-copy {padding:56px 0 35px;}
  .hero.sc-real-office-5134 .hero-art {
    display:block;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    margin:0 0 28px;
    min-height:0;
    height:auto;
    aspect-ratio:16 / 10;
    overflow:hidden;
    align-self:auto;
    border:1px solid rgba(84,125,158,.20);
    border-radius:14px;
    box-shadow:0 12px 28px rgba(33,72,107,.09);
  }
  .hero.sc-real-office-5134 .hero-art .hero-photo {
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:50% 53%;
    -webkit-mask:none;
    mask:none;
    -webkit-mask-composite:source-over;
    mask-composite:add;
  }
}

/* Studio Catarraso 5.10.39 — centered architectural split.
   Desktop: the hero uses the same centered axis as the site header and
   lower sections, instead of extending image and copy to viewport edges.
   Tablet and mobile: keep the already approved stacked presentation. */
@media (min-width:901px) {
  .hero.sc-real-office-5134 {
    background:linear-gradient(105deg,#fafcff 0%,#edf5fc 100%);
  }
  .hero.sc-real-office-5134::before {
    background:linear-gradient(105deg,#fafcff 0%,#edf5fc 100%);
    pointer-events:none;
  }
  .hero.sc-real-office-5134 > .hero-grid.wrap {
    box-sizing:border-box;
    width:100%;
    max-width:1200px;
    margin-inline:auto;
    padding:0 32px;
    display:grid;
    grid-template-columns:minmax(0,47fr) minmax(0,53fr);
    gap:0;
    min-height:600px;
    align-items:stretch;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy {
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-self:stretch;
    min-width:0;
    position:relative;
    z-index:1;
    margin:0;
    padding:58px 27px 58px 0;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy .eyebrow {
    font-size:12px;
    letter-spacing:.19em;
    margin:0 0 18px;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy h1 {
    font-size:clamp(47px,4.1vw,66px);
    font-weight:300;
    letter-spacing:-.045em;
    line-height:1.08;
    max-width:640px;
    margin:0 0 26px;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy > p {
    max-width:570px;
    margin:0 0 29px;
    font-size:clamp(14px,1.04vw,16px);
    line-height:1.85;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy .hero-actions {
    margin:0;
    gap:12px;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-art {
    position:relative;
    box-sizing:border-box;
    display:block;
    width:100%;
    height:100%;
    min-height:600px;
    max-width:none;
    margin:0;
    padding:0;
    align-self:stretch;
    aspect-ratio:auto;
    overflow:hidden;
    border:1px solid rgba(82,118,148,.14);
    border-radius:8px;
    box-shadow:none;
    background:#e8eff4;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-art .hero-photo {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    max-width:none;
    height:100%;
    max-height:none;
    margin:0;
    object-fit:cover;
    object-position:49% 50%;
    opacity:1;
    filter:none;
    mask:none;
    -webkit-mask:none;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
}
@media (min-width:901px) and (max-width:1199px) {
  .hero.sc-real-office-5134 > .hero-grid.wrap {
    width:100%;
    grid-template-columns:minmax(0,48fr) minmax(0,52fr);
    min-height:580px;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy {
    padding:50px 19px 50px 0;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy h1 {
    font-size:clamp(43px,4.7vw,60px);
    line-height:1.09;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy .hero-actions {gap:8px;}
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy .hero-actions .btn {
    padding:13px 12px;
    font-size:11px;
    white-space:normal;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-art {min-height:580px;}
}

/* Studio Catarraso 5.10.40 — approved natural home hero (desktop only).
   The original photo remains untouched, at its full aspect ratio.
   Text/buttons remain live WordPress content, not rasterized into artwork.
   A progressive left overlay blends into the real photograph without a
   hard vertical boundary. All body content remains aligned with .wrap.
   Mobile (<901px) continues to use the v5.10.35 framed photo layout. */
@media (min-width:901px) {
  .hero.sc-real-office-5134 {
    background-color:#edf5fc;
    background-image:url('../images/catarraso-74bcb1e2046a38.webp');
    background-repeat:no-repeat;
    /* More of the conference table and left side of the room is visible;
       the right edge is cropped near the chair, with the same approved fade.
       The minimum background width also covers 901–1199px desktops. */
    background-position:clamp(150px,13vw,210px) 49%;
    background-size:max(118%, 1500px) auto;
  }
  .hero.sc-real-office-5134::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(90deg,
      #f9fcff 0%,
      rgba(249,252,255,1) 30%,
      rgba(249,252,255,.975) 40%,
      rgba(247,251,255,.86) 50%,
      rgba(245,250,254,.60) 59%,
      rgba(244,249,253,.28) 68%,
      rgba(242,248,253,0) 80%
    );
    z-index:0;
  }
  .hero.sc-real-office-5134 > .hero-grid.wrap {
    box-sizing:border-box;
    width:100%;
    max-width:1200px;
    min-height:630px;
    margin-inline:auto;
    padding:0 32px;
    display:flex;
    align-items:center;
    position:relative;
    z-index:1;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy {
    box-sizing:border-box;
    flex:0 0 min(54%,620px);
    max-width:620px;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-self:stretch;
    margin:0;
    padding:62px 20px 62px 0;
    position:relative;
    z-index:2;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy h1 {
    font-size:clamp(48px,4.55vw,68px);
    line-height:1.09;
    letter-spacing:-.045em;
    font-weight:300;
    max-width:540px;
    margin:0 0 28px;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy .eyebrow {
    margin:0 0 22px;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy > p {
    max-width:565px;
    margin:0 0 28px;
    line-height:1.83;
    font-size:clamp(14px,1.05vw,16px);
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy .hero-actions {
    gap:12px;
    margin:0;
  }
  /* Photo exists in the markup for accessibility and for the mobile layout.
     Only the *desktop* is drawn from the same photo as a CSS background. */
  .hero.sc-real-office-5134 > .hero-grid > .hero-art { display:none; }
}
@media (min-width:901px) and (max-width:1199px) {
  .hero.sc-real-office-5134::before {
    background:linear-gradient(90deg,
      #f9fcff 0%,
      rgba(249,252,255,1) 37%,
      rgba(249,252,255,.97) 49%,
      rgba(249,252,255,.88) 59%,
      rgba(247,251,255,.56) 72%,
      rgba(247,251,255,.12) 89%,
      rgba(247,251,255,0) 100%);
  }
  .hero.sc-real-office-5134 > .hero-grid.wrap { min-height:590px; }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy {
    flex-basis:58%;
    padding:48px 18px 48px 0;
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy h1 {
    font-size:clamp(43px,4.6vw,57px);
  }
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy .hero-actions {gap:8px;}
  .hero.sc-real-office-5134 > .hero-grid > .hero-copy .hero-actions .btn {
    padding:13px 12px;
    font-size:11px;
    white-space:normal;
  }
}

/* v5.10.46 — Copied professionals section: component styles imported from
   assets/css/pages/it-studio.css. Loaded ONLY on the three homepages.
   No home-specific avatar crop, focal position, sizing or card redesign. */
/* Schede professionisti collegabili, allineate al sistema visivo Studio Catarraso */
a.studio-team-person{color:inherit;text-decoration:none;cursor:pointer;transition:border-color .22s,transform .22s,box-shadow .22s}
a.studio-team-person:hover,a.studio-team-person:focus-visible{transform:translateY(-3px);border-color:#93b8d5;box-shadow:0 16px 36px rgba(27,58,88,.10);outline:none}
a.studio-team-person:focus-visible{outline:2px solid #5687b6;outline-offset:3px}
.studio-team-person .studio-profile-action{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:23px;color:#4074a2;font-size:12px;font-weight:700;letter-spacing:.015em}
.studio-team-person .studio-profile-action .arrow{font-size:19px;line-height:1;transition:transform .2s}
a.studio-team-person:hover .arrow{transform:translate(2px,-2px)}

.studio-principles .studio-kicker,.studio-team-section .studio-kicker{color:#5b8eb7;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:700}
.studio-principles h2,.studio-team-section h2{color:#253f56;font-size:clamp(30px,3.5vw,47px);letter-spacing:-.024em;line-height:1.16;margin:12px 0 16px}
.studio-principles .studio-lead,.studio-team-section .studio-lead{color:#597287;font-size:15px;line-height:1.87;max-width:910px;margin:0}
.studio-team-section{padding:83px 0 91px;background:#fff;scroll-margin-top:155px}
/* Exact latest layout refinements from Lo Studio. */
main > .studio-team-section{padding:52px 0 60px!important}
.studio-team-section .studio-team-heading{margin-bottom:24px!important;max-width:925px}
.studio-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.studio-team-person{border:1px solid #dae7f0;border-radius:7px;background:linear-gradient(160deg,#fff,#f9fbfd);padding:30px 28px 27px;display:flex;flex-direction:column;align-items:flex-start;min-height:258px;position:relative;box-shadow:0 8px 28px rgba(27,58,88,.035)}
.studio-team-person::after{content:'';height:3px;position:absolute;left:28px;right:28px;top:0;background:linear-gradient(90deg,#4c88b7,#c7e2f3);border-radius:0 0 4px 4px}
.studio-team-person .studio-person-avatar{width:84px;height:84px;display:grid;place-items:center;margin-bottom:26px;border-radius:50%;border:1px solid #bcd5e7;background:radial-gradient(circle at 30% 25%,#fff,#dcecf7);color:#426f90;font:400 30px Georgia,'Times New Roman',serif;letter-spacing:-.025em}
.studio-team-person h3{font:400 26px/1.2 Georgia,'Times New Roman',serif;color:#29445a;margin:0 0 10px}
.studio-team-person p{margin:0;color:#758a9a;font-size:13px;letter-spacing:.04em}
.studio-team-action{margin-top:29px;display:flex;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap;border-top:1px solid #dce7ef;padding-top:25px}
.studio-team-action p{margin:0;max-width:780px;color:#5f7587;font-size:13px;line-height:1.75}
.studio-team-action a{color:#3576a7;font-size:13px;font-weight:700;white-space:nowrap}
.studio-team-action a:hover{text-decoration:underline}

/* These final sizes are shared by Lo Studio and the home via style.css. */
.studio-team-person .studio-person-avatar{box-sizing:border-box;width:101px;height:101px;flex:0 0 auto;font-size:33px}
.studio-person-avatar.sc-team-photo{overflow:hidden;padding:0;display:flex;align-items:center;justify-content:center;background:#edf4fa}
.studio-person-avatar.sc-team-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 23%;border-radius:inherit}
@media(max-width:980px){.studio-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-team-person{min-height:0}}
@media(max-width:760px){
 main > .studio-team-section{padding:38px 0 43px!important;scroll-margin-top:170px}
 .studio-team-grid{grid-template-columns:1fr;gap:12px}
 .studio-team-section .studio-team-heading{margin-bottom:20px!important}
 .studio-team-person{padding:26px;min-height:0}
 .studio-team-person .studio-person-avatar{width:92px;height:92px;font-size:31px;margin-bottom:20px}
 .studio-team-action{align-items:flex-start;flex-direction:column}
}
