/* =========================================================
   Floral Consulta — foglio di stile principale
   Tema istituzionale scuro: blu notte, blu acciaio, linee sottili.
   Nessuna dipendenza esterna: font di sistema, icone SVG inline.
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #0a1322;            /* fondo pagina */
  --bg-2: #0d182b;          /* sezioni alternate */
  --bg-deep: #070e19;       /* footer, bande profonde */
  --panel: #101d33;         /* card e pannelli */
  --panel-2: #14264a;
  --line: rgba(140, 178, 228, .16);
  --line-strong: rgba(150, 190, 240, .34);

  --head: #eef3fa;          /* titoli */
  --text: #b6c3d6;          /* testo */
  --muted: #8395af;
  --accent: #f5a53a;        /* ambra del logo: accenti, linee, evidenze */
  --accent-light: #fcc563;
  --accent-orange: #f0823a;
  --glow: rgba(245, 165, 58, .35);
  --steel: #6ea8e6;         /* blu acciaio: struttura, icone */
  --steel-deep: #2f5f9a;
  --ok: #86c9a4;
  --warn: #f0a39a;

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0, 0, 0, .35);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); text-underline-offset: 3px; text-decoration-color: rgba(252, 197, 99, .45); }
a:hover { color: #fff; text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--head);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3, .h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
strong { color: var(--head); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #1a1206; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 14, 25, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-orange) 30%, var(--accent-light) 50%, var(--accent-orange) 70%, transparent);
  opacity: .6;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.brand-text small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
@media (max-width: 420px) {
  .brand img { width: 34px; height: 34px; }
  .brand-text strong { font-size: 1rem; letter-spacing: .06em; }
  .brand-text small { font-size: .58rem; letter-spacing: .14em; }
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  display: block; padding: 8px 12px;
  color: #c9d4e3; text-decoration: none; font-weight: 500; font-size: .93rem; letter-spacing: .01em;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: #fff; background: rgba(110, 168, 230, .08); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-nav .btn { margin-left: 10px; }
.site-nav a.btn { color: #1a1206; box-shadow: 0 4px 14px rgba(240, 130, 58, .3), inset 0 1px 0 rgba(255,255,255,.35); border-radius: var(--radius-sm); }

/* Selettore lingua */
.site-nav .lang-switch { display: flex; gap: 2px; margin-left: 10px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.site-nav .lang-switch a { padding: 3px 9px; border-radius: 2px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.site-nav .lang-switch a[aria-current="true"] { background: var(--steel-deep); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 14px; font: inherit; font-size: .9rem; color: var(--head); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--head); border-radius: 2px; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
    display: none; padding: 8px var(--gutter) 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:hover { background: none; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .site-nav .btn { margin: 18px 0 0; text-align: center; }
  .site-nav .lang-switch { width: fit-content; margin: 18px auto 0; }
  .site-nav .lang-switch a, .site-nav .lang-switch a[aria-current="true"] { border-bottom: 0; padding: 6px 16px; box-shadow: none; }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none; line-height: 1.2;
  color: #1a1206;
  background: linear-gradient(180deg, #f9bf52 0%, #f0823a 100%);
  border: 1px solid rgba(255, 220, 160, .75);
  box-shadow: 0 6px 18px rgba(240, 130, 58, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: filter .2s, border-color .2s, background .2s, color .2s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { color: #1a1206; filter: brightness(1.08); border-color: #ffe3b0; }
.btn-ghost {
  background: rgba(10, 19, 34, .35); color: var(--head);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { color: #fff; background: rgba(245, 165, 58, .12); border-color: var(--accent-light); filter: none; }
.btn-light {
  background: linear-gradient(180deg, #f4f8fd, #d9e6f5); color: #0a1830;
  border-color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.btn-light:hover { color: #0a1830; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark {
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(47, 95, 154, .28), transparent 70%),
    linear-gradient(180deg, #0c1a31, #08111f);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { font-size: 1.06rem; color: var(--muted); }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 2px; margin-top: 18px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--accent), transparent); width: 120px; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.18rem); color: var(--text); }

/* ---------- Hero (home) ---------- */
.hero { padding: 28px 0 0; }
.hero-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius) var(--radius) 0 0;
  min-height: clamp(460px, 62vh, 620px);
  display: flex; align-items: center;
  background: #081220;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 12, 22, .92) 0%, rgba(6, 12, 22, .72) 38%, rgba(6, 12, 22, .15) 70%, rgba(6, 12, 22, 0) 100%),
    linear-gradient(0deg, rgba(6, 12, 22, .55), transparent 40%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: clamp(32px, 6vw, 72px); }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero .lead { color: #cfd9e7; }
@media (max-width: 760px) {
  .hero-frame { align-items: flex-end; min-height: 560px; }
  .hero-frame::before { background: linear-gradient(0deg, rgba(6, 12, 22, .96) 0%, rgba(6, 12, 22, .84) 55%, rgba(6, 12, 22, .66) 100%); }
  .hero-img { object-position: 50% 30%; }
}

/* Pagine interne */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 14, 25, .97) 0%, rgba(7, 14, 25, .9) 45%, rgba(7, 14, 25, .55) 100%),
    url("../img/grattacieli-1920.jpg") 50% 40% / cover no-repeat,
    var(--bg-deep);
}
.page-hero .lead { max-width: 760px; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 18px; letter-spacing: .02em; }
.breadcrumb a { color: var(--muted); }

/* ---------- Liste con spunta ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 11px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 19px; height: 19px; border-radius: 50%;
  border: 1px solid rgba(252, 197, 99, .45);
  background: rgba(245, 165, 58, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fcc563' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 11px;
}

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, #0d192d 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .5em; }
.card .more {
  margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-light); text-decoration: none;
}
.card .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4), 0 0 0 1px var(--glow); border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }

/* Griglia a colonne divise da linee sottili (stile istituzionale) */
.grid-divided {
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.grid-divided > .card {
  border: 0; border-radius: 0; background: var(--bg);
  align-items: center; text-align: center; padding: 40px 28px;
}
.section-alt .grid-divided > .card { background: var(--bg-2); }
.grid-divided > a.card:hover { transform: none; box-shadow: none; background: #0e1a2f; }
.grid-divided > .card .more {
  padding: 9px 18px; margin-top: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(249, 191, 82, .16), rgba(240, 130, 58, .1)); border-color: rgba(252, 197, 99, .45);
}
.grid-divided > .card .more::after { content: ""; }
.grid-divided > .card p { margin-bottom: 22px; }

/* Icone circolari */
.icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; margin-bottom: 22px;
  background: radial-gradient(circle at 34% 28%, #8dbdf0 0%, #3f76b6 45%, #1c3e6b 100%);
  border: 1px solid rgba(185, 215, 247, .6);
  box-shadow: 0 0 0 5px rgba(110, 168, 230, .08), 0 10px 26px rgba(10, 40, 90, .6), inset 0 1px 0 rgba(255,255,255,.35);
}
.icon svg { width: 28px; height: 28px; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-size: .86rem; padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(110, 168, 230, .07); color: #d3ddea; border: 1px solid var(--line);
}
.card .tag-list { margin-top: 16px; }
.grid-divided .tag-list { justify-content: center; }

/* ---------- Numeri ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(180deg, #0e1b31, #0a1426); overflow: hidden;
}
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.7rem); color: #fff; line-height: 1; display: block; margin-bottom: 10px; }
.stat-num small { font-size: .55em; color: var(--accent-light); margin-left: 2px; }
.stat p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Metodo (step) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 62px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: #fff; letter-spacing: .04em;
  border-radius: 50%; border: 1px solid rgba(185, 215, 247, .55);
  background: radial-gradient(circle at 34% 28%, #6fa6e2, #22497c);
  box-shadow: 0 0 0 5px rgba(110, 168, 230, .08);
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 60px; right: -12px; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.12rem; }
.steps p { font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / profilo ---------- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.split-rev { grid-template-columns: 1.3fr 1fr; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split, .split-rev { grid-template-columns: 1fr; gap: 32px; } }

.portrait { position: relative; max-width: 360px; margin: 0; }
.portrait img {
  width: 100%; border-radius: var(--radius); aspect-ratio: 1 / 1.05; object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
}
.portrait::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); border-radius: var(--radius); z-index: -1; opacity: .6;
}
@media (max-width: 900px) { .portrait { max-width: 240px; } .page-hero .portrait { max-width: 190px; } }

.quote {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; color: #fff;
  border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; margin: 0 0 24px;
}

/* ---------- Blocchi servizio ---------- */
.service { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
.service:nth-of-type(even) { background: var(--bg-2); }
.service-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.service-grid h2 { margin-bottom: .4em; }
.service-grid h3 { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.service-grid .panel + .panel { margin-top: 30px; }
.service-grid > div:last-child { border-left: 1px solid var(--line); padding-left: 48px; }
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-grid > div:last-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
}

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.subnav a, .case-index a {
  padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(10, 19, 34, .6);
  text-decoration: none; color: #d3ddea; font-size: .88rem; font-weight: 500;
}
.subnav a:hover, .case-index a:hover { border-color: var(--accent-light); color: #fff; background: rgba(245, 165, 58, .1); }

/* ---------- Casi ---------- */
.case {
  background: linear-gradient(180deg, var(--panel), #0c172a); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 46px); margin-bottom: 32px; scroll-margin-top: 100px;
}
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; }
.case-head h2 { margin-bottom: 6px; }
.case-meta { font-size: .92rem; color: var(--muted); margin: 0; }
.case-kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.kpi { background: rgba(245, 165, 58, .06); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius-sm); padding: 10px 16px; min-width: 124px; }
.kpi b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; color: #fff; line-height: 1.15; }
.kpi span { font-size: .78rem; color: var(--muted); }
.case-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 44px; }
.case-body h3 { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.case-body p, .case-body li { font-size: .98rem; }
@media (max-width: 760px) { .case-body { grid-template-columns: 1fr; } }
.case-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--accent), var(--line) 70%); }
.timeline li { position: relative; padding: 0 0 36px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent-light); box-shadow: 0 0 10px var(--glow);
}
.section-alt .timeline li::before { background: var(--bg-2); }
.timeline .when { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.timeline h3 { margin: 4px 0 4px; font-size: 1.2rem; }
.timeline .where { font-weight: 600; color: #dbe4f0; margin-bottom: 8px; }
.timeline p { margin-bottom: 0; }

/* ---------- Fatti rapidi ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin: 28px 0 0; }
.facts div { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.facts dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.facts dd { margin: 4px 0 0; color: var(--head); font-weight: 500; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: clamp(32px, 6vw, 60px);
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 22, 42, .96) 0%, rgba(10, 22, 42, .82) 60%, rgba(10, 22, 42, .6) 100%),
    url("../img/grattacieli-1920.jpg") 50% 60% / cover no-repeat,
    var(--panel);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}
.cta h2 { color: #fff; }
.cta p { margin: 0; color: #cfd9e7; }
.cta .btn-row { margin: 0; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- Media partner ---------- */
.monogram {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 20px;
  background: radial-gradient(circle at 34% 28%, #8dbdf0 0%, #3f76b6 45%, #1c3e6b 100%);
  border: 1px solid rgba(185, 215, 247, .6);
  box-shadow: 0 0 0 5px rgba(110, 168, 230, .08), 0 10px 26px rgba(10, 40, 90, .6);
}
.partner .url { font-size: .86rem; color: var(--accent); margin: -.3em 0 .9em; word-break: break-all; letter-spacing: .02em; }
.partner .ext { margin-top: auto; padding-top: 18px; font-weight: 600; text-decoration: none; }
.partner .ext:hover { text-decoration: underline; }

/* ---------- Contatti / form ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .icon { margin: 0; width: 46px; height: 46px; box-shadow: 0 0 0 4px rgba(110, 168, 230, .08); }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list b { display: block; color: var(--accent); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list a { text-decoration: none; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; color: #dbe4f0; margin-bottom: 6px; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--head);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #0a1426;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #62748f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(245, 165, 58, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; }
.form-status { font-size: .92rem; margin: 0; color: var(--ok); }
.form-status.is-error { color: var(--warn); }

/* ---------- Prose (privacy ecc.) ---------- */
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 72ch; }
.note {
  background: rgba(245, 165, 58, .08); border-left: 2px solid var(--accent); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem; color: var(--head);
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bg-deep); color: #93a3ba; padding: 64px 0 28px; font-size: .93rem; border-top: 1px solid var(--line); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent); opacity: .5;
}
.site-footer a { color: #d3ddea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h2 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.05rem; color: #fff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  :root { color-scheme: light; }
  .site-header, .site-footer, .cta, .btn-row, .nav-toggle, .hero-img { display: none !important; }
  body { background: #fff; color: #222; font-size: 12pt; }
  h1, h2, h3, h4, strong, .hero h1 { color: #000; text-shadow: none; }
  .page-hero, .hero-frame, .section-dark, .section-alt, .card, .case { background: #fff !important; border-color: #ccc; box-shadow: none; }
  .hero-frame::before { display: none; }
  .section { padding: 24px 0; }
}
