/* Studio Fazi – foglio di stile */
:root {
  --ivory: #f7f3ea;
  --ivory-2: #efe8d8;
  --paper: #fffdf8;
  --navy: #002e60;
  --navy-2: #0b2447;
  --navy-ink: #14213d;
  --gold: #cc922f;
  --gold-soft: #e3c27a;
  --text: #2a2f3a;
  --muted: #5d6675;
  --line: rgba(0, 46, 96, .14);
  --serif: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

.eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px;
  font-family: var(--sans); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--navy); color: var(--navy); background: transparent; border-radius: var(--radius);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--navy); color: var(--ivory); }
.btn.solid { background: var(--navy); color: var(--ivory); }
.btn.solid:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.light { border-color: rgba(255,255,255,.55); color: var(--ivory); }
.btn.light:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn svg { width: 16px; height: 16px; }

/* Header */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.78); font-size: 13px; letter-spacing: .02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 20px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--gold-soft); }
.topbar span + span::before { content: "·"; margin: 0 10px; color: var(--gold); }
@media (max-width: 760px) { .topbar .right { display: none; } }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,234,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 24px; }
.brand img { height: 60px; width: auto; }
nav.main ul { list-style: none; display: flex; gap: 38px; margin: 0; padding: 0; }
nav.main a {
  font-family: var(--sans); font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--navy-ink); padding: 8px 0; position: relative;
}
nav.main a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--gold); transition: right .3s; }
nav.main a:hover::after, nav.main a[aria-current]::after { right: 0; }
nav.main a[aria-current] { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .3s; }
@media (max-width: 860px) {
  .brand img { height: 44px; }
  .nav-toggle { display: block; }
  nav.main { position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line);
    display: none; padding: 10px 24px 24px; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 0; }
  nav.main a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  nav.main li:last-child a { border-bottom: 0; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(204,146,47,.14), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
}
.hero .wrap { padding: 48px 0 80px; }
.hero-copy { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8px 64px; align-items: start; margin-bottom: 44px; }
.hero-copy .eyebrow { grid-column: 1 / -1; }
.hero-side { padding-top: 14px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); font-weight: 500; line-height: 1.04; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 48ch; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; aspect-ratio: 21 / 9; margin-right: 18px; }
.hero-visual .frame {
  position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(18px, 18px);
}
.hero-visual .card {
  position: absolute; inset: 0; background: var(--navy) url("../img/studio.jpg") center/cover no-repeat;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,46,96,.45);
}
.hero-visual .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-visual .card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,46,96,0) 55%, rgba(0,46,96,.55) 100%);
}
.hero-visual .mark {
  position: absolute; top: 18px; left: 18px; width: 54px; z-index: 2;
  opacity: .9;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.hero-visual .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px; z-index: 2;
  color: rgba(255,255,255,.85); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.18); background: rgba(0,46,96,.55); backdrop-filter: blur(6px);
}
.hero-visual .caption b { color: var(--gold-soft); font-weight: 600; }
@media (max-width: 900px) {
  .hero .wrap { padding: 48px 0 64px; }
  .hero-copy { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .hero-visual { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .hero-video { display: none; }
}

/* Sections */
section { padding: 104px 0; }
@media (max-width: 760px) { section { padding: 72px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4vw, 50px); }
.section-head .sub { font-family: var(--serif); font-size: 23px; font-style: italic; color: var(--gold); margin-top: 14px; }

.studio { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.studio .grid > div:first-child { position: sticky; top: 120px; }
.studio .copy p { color: var(--text); }
.studio .copy p:first-of-type { font-size: 19px; }
.studio .copy p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.6em; float: left; line-height: .85; padding: 6px 10px 0 0; color: var(--gold);
}
.pillars { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.pillars li { padding-left: 20px; position: relative; font-size: 15.5px; color: var(--navy-ink); }
.pillars li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 900px) {
  .studio .grid { grid-template-columns: 1fr; gap: 36px; }
  .studio .grid > div:first-child { position: static; }
  .pillars { grid-template-columns: 1fr; }
}

/* Approach – dark band */
.approach { background: var(--navy); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.approach::after {
  content: ""; position: absolute; right: -8%; top: -20%; width: 55%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(204,146,47,.28); pointer-events: none;
}
.approach::before {
  content: ""; position: absolute; right: 4%; top: 4%; width: 36%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(204,146,47,.18); pointer-events: none;
}
.approach h2, .approach h3 { color: #fff; }
.approach .eyebrow { color: var(--gold-soft); }
.approach .eyebrow::before { background: var(--gold-soft); }
.approach .section-head .sub { color: var(--gold-soft); }
.approach .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 20px; position: relative; }
.approach .col { border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; }
.approach .col .n { font-family: var(--serif); font-size: 40px; color: var(--gold-soft); line-height: 1; margin-bottom: 14px; }
.approach .col h3 { font-size: 24px; margin-bottom: 12px; }
.approach .col p { font-size: 15.5px; color: rgba(255,255,255,.72); }
@media (max-width: 860px) { .approach .cols { grid-template-columns: 1fr; gap: 28px; } }

/* Guida */
.guida .grid { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; }
.portrait { position: sticky; top: 120px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; filter: saturate(.9) contrast(1.03); }
.portrait::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(16px, 16px); pointer-events: none; }
.portrait .tag { position: absolute; left: 0; bottom: 28px; background: var(--navy); color: #fff; padding: 14px 20px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transform: translateX(-24px); }
.portrait .tag b { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.guida h2 { font-size: clamp(34px, 4vw, 50px); }
.guida .role { font-family: var(--serif); font-size: 22px; color: var(--gold); margin: 12px 0 28px; }
.guida h2 .phd { font-size: .78em; }
.quals { list-style: none; padding: 0; margin: 30px 0; border-top: 1px solid var(--line); }
.quals li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; font-size: 16px; color: var(--navy-ink); }
.quals li svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.linkedin { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.linkedin svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .guida .grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 360px; position: relative; top: auto; }
  .portrait .tag { transform: none; }
}

/* Aree preview */
.aree { background: var(--paper); border-top: 1px solid var(--line); }
.aree .list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.aree .item { background: var(--paper); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; transition: background .25s; }
.aree .item:hover { background: var(--ivory); }
.aree .item .n { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.aree .item h3 { font-size: 22px; line-height: 1.2; }
.aree .item p { font-size: 14.5px; color: var(--muted); margin: 0; }
.aree .more { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.aree .more p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 960px) { .aree .list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .aree .list { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--ivory-2); border-top: 1px solid var(--line); }
.cta .box { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(32px, 3.6vw, 46px); }
.cta p { color: var(--muted); margin: 14px 0 0; max-width: 58ch; }
.cta .contacts { display: flex; flex-direction: column; gap: 14px; }
.cta .contacts a { font-family: var(--serif); font-size: 24px; color: var(--navy); }
.cta .contacts small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
@media (max-width: 860px) { .cta .box { grid-template-columns: 1fr; } }

/* Footer */
footer.site { background: var(--navy-2); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.14); }
footer.site h4 { color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
footer.site .brand-f { font-family: var(--serif); font-size: 30px; color: #fff; letter-spacing: .04em; }
footer.site .brand-f small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin-top: 6px; }
footer.site p { margin: 14px 0 0; max-width: 46ch; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site a { color: rgba(255,255,255,.85); }
footer.site a:hover { color: var(--gold-soft); }
footer.site .legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.55); }
footer.site .legal a { color: rgba(255,255,255,.7); }
footer.site .legal span + span::before { content: "|"; margin: 0 10px; color: rgba(255,255,255,.3); }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr; gap: 32px; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
h1,h2,h3,h4,.n { font-variant-numeric: lining-nums; }
.cta .contacts a, .topbar, footer.site { font-variant-numeric: lining-nums; }


/* ---------- pagine interne ---------- */
.page-hero { padding: 0; background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); position: relative; overflow: hidden; }
.page-hero .wrap { padding: 56px 0 72px; }
.page-hero h1 { font-size: clamp(38px, 4.8vw, 64px); font-weight: 500; line-height: 1.06; }
.page-hero .lead { font-size: 18px; color: var(--muted); max-width: 58ch; margin-top: 22px; }
.page-hero.compact .wrap { padding: 56px 0 56px; }
.ph-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ph-img { position: relative; margin: 0; }
.ph-img::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(16px, 16px); pointer-events: none; }
.ph-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; box-shadow: 0 30px 60px -30px rgba(0,46,96,.35); }
.ph-text { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); columns: 2; column-gap: 56px; color: var(--muted); font-size: 16.5px; }
.ph-text p { break-inside: avoid; margin: 0 0 16px; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; gap: 36px; } .ph-text { columns: 1; margin-top: 40px; } }

/* accordion aree */
.aree-list { background: var(--paper); }
.aree-list .section-head h2 em { font-style: italic; color: var(--gold); }
.area-acc { border-top: 1px solid var(--line); }
.area-item { border-bottom: 1px solid var(--line); }
.area-item h3 { margin: 0; font: inherit; }
.area-toggle {
  width: 100%; display: grid; grid-template-columns: 56px 44px 1fr 40px; gap: 18px; align-items: center;
  padding: 26px 8px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--navy); font: inherit;
  transition: background .25s;
}
.area-toggle:hover { background: rgba(204,146,47,.06); }
.area-toggle .num { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--gold); font-variant-numeric: lining-nums; }
.area-toggle .ic { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); }
.area-toggle .ic svg { width: 22px; height: 22px; }
.area-toggle .txt .t { display: block; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.2; }
.area-toggle .txt .s { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 70ch; }
.area-toggle .chev { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; transition: transform .35s, background .25s; }
.area-toggle .chev svg { width: 18px; height: 18px; }
.area-item.open .chev { transform: rotate(45deg); background: var(--gold); }
.area-panel .inner { padding: 0 8px 36px calc(56px + 44px + 36px); max-width: 900px; }
.area-panel .tagline { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--gold); margin: 0 0 18px; }
.area-panel .sub { font-weight: 500; color: var(--navy); }
.area-panel p { color: var(--muted); }
.area-panel h4 { margin: 26px 0 12px; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.ambiti { list-style: none; margin: 0; padding: 0; }
.ambiti li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); color: var(--ink); }
.ambiti li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.area-cta { margin-top: 26px; }
@media (max-width: 760px) {
  .area-toggle { grid-template-columns: 40px 1fr 36px; padding: 20px 4px; gap: 14px; }
  .area-toggle .ic { display: none; }
  .area-toggle .num { font-size: 24px; }
  .area-panel .inner { padding: 0 4px 28px 0; }
}

/* fascia assistenza integrata */
.integrata { background: var(--ivory-2); }
.int-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.int-img { margin: 0; position: relative; }
.int-img::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(-16px, 16px); pointer-events: none; }
.int-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.integrata h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 20px; }
.integrata p { color: var(--muted); }
@media (max-width: 900px) { .int-grid { grid-template-columns: 1fr; gap: 40px; } }

/* contatti */
.contatti { background: var(--paper); }
.ct-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.ct-info > p { color: var(--muted); }
.ct-block { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.ct-block h3 { font-size: 24px; margin: 0 0 12px; }
.ct-block address { font-style: normal; font-size: 17px; }
.ct-block .note { color: var(--muted); font-size: 15px; margin-top: 10px; }
.ct-list { list-style: none; margin: 0; padding: 0; }
.ct-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ct-list small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ct-list a { color: var(--navy); text-decoration: none; font-weight: 500; font-variant-numeric: lining-nums; }
.ct-list a:hover { color: var(--gold); }
.ct-img { margin: 40px 0 0; position: relative; max-width: 360px; }
.ct-img::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(14px, 14px); pointer-events: none; }
.ct-img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ct-form { background: #fff; border: 1px solid var(--line); padding: 44px; box-shadow: 0 30px 60px -40px rgba(0,46,96,.35); position: relative; }
.ct-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.form-head h2 { font-size: 32px; margin: 0 0 8px; }
.form-head p { color: var(--muted); margin: 0 0 28px; }
.ct-form .row { margin-bottom: 18px; }
.ct-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-form label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.ct-form .req { color: var(--gold); }
.ct-form input[type=text], .ct-form input[type=email], .ct-form input[type=tel], .ct-form select, .ct-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0; outline: none; transition: border-color .2s, box-shadow .2s;
  letter-spacing: 0; text-transform: none;
}
.ct-form textarea { resize: vertical; min-height: 150px; }
.ct-form :is(input, select, textarea):focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(204,146,47,.15); }
.ct-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-form .consent label.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; color: var(--muted); }
.ct-form .consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.ct-form .consent a { color: var(--navy); }
.ct-form .small { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.ct-form .submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 0; }
.ct-form .btn { font-size: 13px; }
.form-msg { font-size: 15px; color: var(--muted); }
.form-msg.ok { color: #1f6b3a; font-weight: 500; }
.form-msg.err { color: #9b2c2c; font-weight: 500; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr; gap: 48px; } .ct-form { padding: 30px 22px; } .ct-form .row.two { grid-template-columns: 1fr; } }

/* pagine legali */
.legal-page { background: var(--paper); }
.legal-grid { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: start; }
.legal-side { position: sticky; top: 120px; }
.legal-card { background: var(--ivory); border: 1px solid var(--line); padding: 28px; font-size: 15px; }
.legal-card small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.legal-card strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--navy); margin-bottom: 10px; line-height: 1.25; }
.legal-card p { margin: 10px 0 0; color: var(--muted); }
.legal-card a { color: var(--navy); }
.legal-card .upd { font-size: 13px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-variant-numeric: lining-nums; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 28px; margin: 44px 0 14px; display: flex; gap: 14px; align-items: baseline; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 .n { color: var(--gold); font-variant-numeric: lining-nums; }
.legal-body h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--navy); margin: 22px 0 6px; }
.legal-body p { color: var(--ink); margin: 0 0 14px; }
.legal-body p.base { color: var(--muted); font-size: 15px; padding-left: 16px; border-left: 2px solid var(--gold-soft); }
.legal-body a { color: var(--navy); }
.legal-body .ambiti li { color: var(--ink); }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; gap: 36px; } .legal-side { position: static; } }

/* dialog cookie */
.cookie-dialog { border: 1px solid var(--line); padding: 0; max-width: 520px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,46,96,.5); }
.cookie-dialog::backdrop { background: rgba(0,46,96,.45); backdrop-filter: blur(3px); }
.cookie-dialog form { padding: 36px; }
.cookie-dialog h2 { font-size: 30px; margin: 0 0 12px; }
.cookie-dialog p { color: var(--muted); font-size: 15px; }
.cookie-dialog ul { list-style: none; margin: 18px 0; padding: 0; border-top: 1px solid var(--line); }
.cookie-dialog li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cookie-dialog li span { color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.cookie-dialog .small { font-size: 13px; }
.cookie-dialog .small a { color: var(--navy); }
.cd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.cd-actions .btn { font-size: 12px; padding: 12px 18px; }

/* testo giustificato (richiesta cliente 10/11/2026): sillabazione solo dove la colonna è stretta */
.studio .copy p, .guida .grid p, .approach .col p, .ph-text p, .integrata p,
.area-panel .inner > p:not(.tagline):not(.area-cta), .ct-info > p, .legal-body p {
  text-align: justify;
}
.approach .col p, .ph-text p { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 4; }
.studio .copy p { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
@media (max-width: 760px) {
  .studio .copy p, .guida .grid p, .integrata p, .area-panel .inner > p:not(.tagline):not(.area-cta), .ct-info > p, .legal-body p {
    -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 4;
  }
}
@media (max-width: 760px) {
  .guida .role { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 4; }
}
