/* =========================================================
   www.giorgiocarrozzini.it · Consulente di strategia digitale
   Tema corporate chiaro, blu (ottobre 2026)
   ========================================================= */

:root {
  --navy: #0a1f44;
  --navy-2: #0f2b5c;
  --blue: #0b5ed7;
  --blue-2: #1877f2;
  --blue-light: #e8f1fe;
  --sky: #f4f8fd;
  --line: #dfe7f2;
  --text: #1c2638;
  --muted: #5a6679;
  --white: #ffffff;
  --orange: #e65100;
  --orange-dark: #c24400;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 68, .08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, .16);
  --wrap: 1200px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; color: #fff; }

/* ---------- elementi comuni ---------- */
.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.accent { color: var(--blue); }
.script { font-family: var(--font-script); font-weight: 600; color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(230, 81, 0, .32); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--orange); color: var(--orange); background: #fff; }
.btn-ghost:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-white { background: var(--orange); color: #fff; }
.btn-white:hover { background: var(--orange-dark); color: #fff; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-sky { background: var(--sky); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.icon-circle {
  width: 64px; height: 64px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-2), var(--blue));
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 94, 215, .28);
}
.icon-circle svg { width: 30px; height: 30px; }

.more { margin-top: 18px; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(10, 31, 68, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-2), var(--blue));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.brand-role { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.brand:hover { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--navy); padding: 10px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--blue); background: var(--sky); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 10px; padding: 11px 20px; font-size: .85rem; color: #fff; }
.nav .btn:hover { background: var(--orange-dark); color: #fff; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1060px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 78px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; justify-content: center; border-radius: 999px; border-bottom: 0; }
}

/* ---------- hero home ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--sky);
  min-height: min(760px, 92vh);
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0 0 0 44%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--sky) 0%, rgba(244, 248, 253, .7) 18%, rgba(244, 248, 253, 0) 50%);
}
.hero-content { position: relative; z-index: 1; padding: 80px 0 90px; max-width: 640px; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .accent { display: block; }
.hero-sub { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; color: var(--navy); margin-bottom: 18px; }
.hero-rule { width: 64px; height: 4px; border-radius: 4px; background: var(--blue); margin: 0 0 22px; }
.hero-text { color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-script {
  position: absolute; z-index: 1; right: 5%; top: 14%;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; text-align: center;
  transform: rotate(-9deg);
  color: #fff; text-shadow: 0 2px 18px rgba(10, 31, 68, .45);
  max-width: 330px;
}
.hero-script::after {
  content: ""; display: block; height: 3px; width: 70%; margin: 10px auto 0;
  background: currentColor; border-radius: 3px; transform: rotate(-2deg);
}
.hero-corner {
  position: absolute; right: 0; top: 0; width: 180px; height: 180px; z-index: 1;
  background: linear-gradient(135deg, transparent 50%, var(--blue) 50%);
  clip-path: polygon(100% 0, 100% 100%, 0 0); opacity: .95;
  background: linear-gradient(225deg, var(--blue) 0 48%, transparent 48%);
  clip-path: none;
}
@media (max-width: 900px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; inset: auto; height: 300px; order: -1; }
  .hero-media::after { background: linear-gradient(0deg, var(--sky) 0%, rgba(244, 248, 253, 0) 45%); }
  .hero-content { padding: 10px 0 64px; }
  .hero-script { top: 60px; right: 16px; font-size: 1.5rem; max-width: 220px; }
  .hero-corner { width: 90px; height: 90px; }
}

/* ---------- barra numeri ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--blue); line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .stat { padding: 24px 14px; } .stat strong { font-size: 1.5rem; } }

/* ---------- problema (tre colonne) ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.problem {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; position: relative; box-shadow: var(--shadow);
}
.problem::before { content: ""; position: absolute; left: 30px; top: 0; width: 46px; height: 4px; background: var(--blue); border-radius: 0 0 4px 4px; }
.problem h3 { margin-top: 6px; }
.problem p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .problems { grid-template-columns: 1fr; } }

/* ---------- griglia ambiti (stile modello) ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); }
.area { display: flex; gap: 20px; padding: 34px 30px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); color: inherit; transition: background .2s; }
.area:nth-child(3n+1) { border-left: 0; }
.area:nth-child(-n+3) { border-top: 0; }
.area h3 { margin-bottom: 6px; }
.area p { color: var(--muted); margin: 0; font-size: .98rem; }
a.area:hover { background: var(--sky); color: inherit; }
a.area:hover h3 { color: var(--blue); }
@media (max-width: 960px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .area:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .area:nth-child(2n+1) { border-left: 0; }
  .area:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 620px) {
  .areas { grid-template-columns: 1fr; }
  .area:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0; }
  .area:first-child { border-top: 0; }
  .icon-circle { width: 54px; height: 54px; }
}

/* ---------- metodo in fasi ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  font-family: var(--font-head); font-weight: 800; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.steps-link { margin-top: 34px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- profilo (foto nel contesto curriculare) ---------- */
.profile { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; }
.profile-photo { position: relative; }
.profile-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1; object-fit: cover; }
.profile-photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius);
  border: 2px solid var(--blue); z-index: -1;
}
.profile-badge {
  position: absolute; left: -18px; bottom: 28px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; gap: 12px; align-items: center;
}
.profile-badge strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--blue); line-height: 1; }
.profile-badge span { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.profile-quote { font-size: 1.6rem; line-height: 1.2; margin: 6px 0 18px; }
.checks { list-style: none; display: grid; gap: 10px; margin: 20px 0 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5ed7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (max-width: 960px) {
  .profile { grid-template-columns: 1fr; gap: 48px; }
  .profile-photo { max-width: 400px; margin-inline: auto 22px; }
}

/* ---------- libro ---------- */
.book { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; background: #fff; border-radius: 20px; padding: 48px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.book img { border-radius: 6px; box-shadow: 0 22px 44px rgba(10, 31, 68, .28); transform: rotate(-3deg); }
.book h3 { font-size: 1.7rem; margin-bottom: 4px; }
.book .sub { font-style: italic; color: var(--muted); margin-bottom: 16px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 760px) {
  .book { grid-template-columns: 1fr; padding: 32px 22px; gap: 32px; }
  .book img { max-width: 200px; margin-inline: auto; }
}

/* ---------- banda CTA blu ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--navy); padding: 120px 0 80px; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 31, 68, .97) 0%, rgba(11, 94, 215, .88) 60%, rgba(11, 94, 215, .55) 100%),
              url("../img/grattacieli-blu-960.jpg") right center / cover no-repeat;
}
.cta-band .wave { position: absolute; top: -1px; left: 0; width: 100%; height: 70px; color: #fff; }
.cta-band.after-sky .wave { color: var(--sky); }
.cta-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.cta-globe { width: 72px; height: 72px; color: #fff; opacity: .95; }
.cta-text { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 34px; }
.cta-text small { display: block; font-family: var(--font-head); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; font-weight: 600; opacity: .85; margin-bottom: 6px; }
.cta-text h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 0; }
.cta-contacts { position: relative; display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .95rem; }
.cta-contacts a, .cta-contacts span { color: #fff; display: inline-flex; gap: 10px; align-items: center; opacity: .92; }
.cta-contacts svg { width: 18px; height: 18px; }
.cta-contacts a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 860px) {
  .cta-inner { grid-template-columns: 1fr; gap: 22px; }
  .cta-globe { display: none; }
  .cta-text { border-left: 0; padding-left: 0; }
}

/* ---------- testata pagine interne ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10, 31, 68, .96) 0%, rgba(10, 31, 68, .82) 45%, rgba(11, 94, 215, .45) 100%); }
.page-hero-inner { position: relative; padding: 90px 0 100px; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.page-hero .eyebrow { color: #9cc4ff; }
.page-hero p { color: rgba(255, 255, 255, .86); font-size: 1.15rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 26px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.page-hero .wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; color: #fff; }
.page-hero.to-sky .wave { color: var(--sky); }

/* ---------- schede ambito (pagina consulenza) ---------- */
.service { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service-num { font-family: var(--font-head); font-size: .8rem; letter-spacing: .2em; color: var(--blue); font-weight: 700; margin-top: 12px; }
.service h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.service-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.service-col { background: var(--sky); border-radius: 12px; padding: 22px 22px 20px; }
.service-col h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.service-col p, .service-col li { color: var(--text); font-size: .97rem; }
.service-col ul { list-style: none; display: grid; gap: 6px; }
.service-col li { padding-left: 16px; position: relative; }
.service-col li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service-cols { grid-template-columns: 1fr; }
  .service .icon-circle { width: 54px; height: 54px; }
}

.feature-box { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.feature-box img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature-box-text { padding: 52px 48px; }
.feature-box h2, .feature-box h3 { color: #fff; }
.feature-box p { color: rgba(255, 255, 255, .85); }
.feature-box .eyebrow { color: #9cc4ff; }
.feature-box .checks li::before { background-color: rgba(255, 255, 255, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
@media (max-width: 860px) {
  .feature-box { grid-template-columns: 1fr; }
  .feature-box img { min-height: 220px; max-height: 260px; }
  .feature-box-text { padding: 36px 24px; }
}

.structures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.structure { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.structure h3 { margin-bottom: 4px; }
.structure .tag { font-size: .82rem; color: var(--blue); font-weight: 600; margin-bottom: 10px; display: block; }
.structure p { color: var(--muted); font-size: .96rem; }
.structure a { font-weight: 600; font-size: .92rem; }
@media (max-width: 860px) { .structures { grid-template-columns: 1fr; } }

/* ---------- blueprint (pagina metodo) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.quote-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--navy); line-height: 1.3; border-left: 4px solid var(--blue); padding-left: 24px; margin: 0 0 24px; }
.blueprint { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.blueprint svg { width: 100%; height: auto; }
.blueprint figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }
.levels { list-style: none; display: grid; gap: 14px; margin: 22px 0 0; }
.levels li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; }
.levels li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; margin-top: 6px; background: var(--c, var(--blue)); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .plan-for { color: #fff; }
.plan.featured p, .plan.featured li { color: rgba(255, 255, 255, .86); }
.plan-label { font-family: var(--font-head); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 12px; }
.plan.featured .plan-label { color: #9cc4ff; }
.plan h3 { font-size: 1.45rem; }
.plan-for { font-weight: 600; color: var(--navy); font-size: .97rem; }
.plan p { color: var(--muted); }
.plan .checks { margin: 8px 0 26px; flex: 1; }
.plan.featured .checks li::before { background-color: rgba(255, 255, 255, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.plan .btn { align-self: flex-start; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } .plan.featured { transform: none; } }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.principle { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.principle .n { font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: 1.1rem; min-width: 28px; }
.principle h3 { font-size: 1.08rem; margin-bottom: 4px; }
.principle p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* ---------- esperienze ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sector { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.sector .icon-circle { width: 52px; height: 52px; margin-bottom: 18px; }
.sector .icon-circle svg { width: 24px; height: 24px; }
.sector h3 { font-size: 1.1rem; }
.sector p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 960px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .sectors { grid-template-columns: 1fr; } }

.projects { display: grid; gap: 0; border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 200px 1fr 220px; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.project-meta { font-size: .85rem; color: var(--blue); font-weight: 600; font-family: var(--font-head); letter-spacing: .04em; }
.project h3 { margin-bottom: 6px; }
.project p { color: var(--muted); margin: 0; }
.project-role { font-size: .92rem; color: var(--navy); }
.project-role strong { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; gap: 8px; } }

.note-box { background: var(--blue-light); border-radius: var(--radius); padding: 30px 32px; display: flex; gap: 22px; align-items: center; }
.note-box p { margin: 0; color: var(--navy); }
.note-box .icon-circle { width: 52px; height: 52px; }
@media (max-width: 620px) { .note-box { flex-direction: column; align-items: flex-start; } }

/* ---------- pubblicazioni ---------- */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.book-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.book-card .cover { aspect-ratio: 2 / 3; background: var(--sky); border-radius: 6px; overflow: hidden; display: grid; place-items: center; margin-bottom: 18px; }
.book-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card .cover.empty { background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; text-align: center; padding: 20px; }
.book-card .year { font-size: .8rem; color: var(--blue); font-weight: 600; font-family: var(--font-head); letter-spacing: .06em; }
.book-card h3 { font-size: 1.05rem; margin: 6px 0 6px; }
.book-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.book-card a { font-weight: 600; font-size: .9rem; }
@media (max-width: 960px) { .books { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .books { grid-template-columns: 1fr; } .book-card .cover { max-width: 220px; margin-inline: auto; width: 100%; } }

.mono-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; list-style: none; }
.mono-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--navy); }

.vision { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.vision-item { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.vision-item h3 { display: flex; gap: 14px; align-items: center; }
.vision-item h3 span { font-size: .8rem; color: var(--blue); letter-spacing: .18em; }
.vision-item p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .vision { grid-template-columns: 1fr; } }

/* ---------- chi sono ---------- */
.timeline { list-style: none; position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 30px 34px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline .when { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--blue); }
.timeline h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.timeline p { color: var(--muted); margin: 0; font-size: .97rem; }

.eras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.era { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.era .when { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 700; font-family: var(--font-head); }
.era h3 { margin: 8px 0 8px; }
.era p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .eras { grid-template-columns: 1fr; } }

.companies { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.company { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.company:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; }
.company h3 { font-size: 1.05rem; margin-bottom: 2px; }
.company .tag { font-size: .82rem; color: var(--blue); font-weight: 600; }
.company p { color: var(--muted); font-size: .92rem; margin: 8px 0 0; }

.certs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.certs li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; font-size: .97rem; }
.certs li span { color: var(--muted); white-space: nowrap; font-size: .9rem; }
@media (max-width: 760px) { .certs { grid-template-columns: 1fr; } .certs li { flex-direction: column; gap: 2px; } }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 18px; margin: 28px 0; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .icon-circle { width: 48px; height: 48px; box-shadow: none; }
.contact-list .icon-circle svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a, .contact-list b { font-weight: 600; color: var(--navy); }

.form-card { background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); scroll-margin-top: 100px; }
.form-card h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--text);
  border: 1px solid #cfd9e8; border-radius: 10px; padding: 13px 14px; background: #fbfdff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 94, 215, .14); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: .95rem; }
.form-msg.ok { background: #e7f6ec; color: #135c2c; }
.form-msg.err { background: #fdecec; color: #8a1c1c; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 28px 20px; } }

/* ---------- testo (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.08rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }

.sitemap-list { list-style: none; display: grid; gap: 12px; max-width: 640px; }
.sitemap-list a { font-weight: 600; font-family: var(--font-head); }
.sitemap-list span { color: var(--muted); display: block; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: #071733; color: rgba(255, 255, 255, .78); padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-role { color: rgba(255, 255, 255, .6); }
.footer-brand p { max-width: 30em; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
.cta-contacts svg { fill: none; }
.cta-contacts svg use[href^="#s-"] { fill: currentColor; }
.hero-corner { background: linear-gradient(225deg, var(--blue) 0 48%, transparent 48%); }
.nav .btn[aria-current="page"] { color: #fff; }
.profile-badge { max-width: 230px; }
.profile-badge span { white-space: nowrap; }
@media (max-width: 600px) {
  .hero-script { display: none; }
  .profile-badge { left: -10px; bottom: 18px; padding: 10px 14px; }
}
@media (max-width: 960px) { .profile-photo { width: calc(100% - 22px); } }
@media (max-width: 960px) { .profile-photo { margin-inline: auto; } }

/* ---------- banner cookie ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px rgba(10, 31, 68, .25);
  padding: 24px 28px 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin: 0 0 8px; padding-right: 30px; }
.cookie-banner p { font-size: .92rem; color: var(--muted); margin: 0 0 16px; }
.cookie-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-btn {
  min-width: 130px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
}
.cookie-btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.cookie-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--sky); color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.cookie-close:hover { background: var(--blue-light); }
@media (max-width: 560px) {
  .cookie-banner { bottom: 12px; padding: 20px 18px 18px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; min-width: 0; }
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover { color: #fff; text-decoration: underline; }
