/* ==========================================================================
   Gladinoro Iorio — Tributarista
   Palette: navy / avorio / oro brunito. Tipografia: Cormorant Garamond + EB Garamond.
   ========================================================================== */

:root {
  --navy:        #101c2e;
  --navy-2:      #16243a;
  --ink:         #1b2536;
  --ink-soft:    #3a4457;
  --muted:       #6b7280;
  --cream:       #f8f5ef;
  --cream-2:     #efeae0;
  --cream-3:     #e6e0d3;
  --paper:       #fdfcf9;
  --line:        #dcd5c7;
  --line-soft:   #e9e3d7;
  --gold:        #8a6b3d;
  --gold-hover:  #76592f;
  --gold-2:      #b8955a;
  --gold-light:  #cdb17d;
  --white:       #ffffff;

  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 40px; }
@media (max-width: 640px) { .container { padding-inline: 20px; } }

/* ---------- Tipografia di servizio ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold-light); }
.eyebrow--plain::after { display: none; }
.gold-rule { width: 44px; height: 1px; background: var(--gold-light); border: 0; margin: 22px 0 26px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-soft); }
.serif-italic { font-family: var(--font-display); font-style: italic; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 34px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arrow { font-size: 16px; line-height: 1; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold-2); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.link-more .arrow { transition: transform .25s var(--ease); }
.link-more:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(253,252,249,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 32px; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--navy); }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.brand-role { font-size: 9.5px; letter-spacing: .38em; text-transform: uppercase; margin-top: 5px; padding-left: 2px; color: var(--ink-soft); }
.brand--light, .brand--light .brand-role { color: #fff; }
.nav { display: flex; gap: 32px; }
.nav-link {
  position: relative; padding: 6px 0;
  font-size: 15px; color: var(--navy);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: none; border: 0; color: var(--navy); padding: 8px; display: inline-flex; align-items: center; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; justify-content: center; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Header trasparente (home) */
.site-header--transparent { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header--transparent .brand, .site-header--transparent .brand-role, .site-header--transparent .nav-link, .site-header--transparent .icon-btn { color: #fff; }
.site-header--transparent .nav-link.is-active { color: var(--gold-light); }
.site-header--transparent.is-scrolled { background: rgba(16,28,46,.94); backdrop-filter: blur(8px); border-bottom-color: rgba(255,255,255,.08); }
/* Con il menu aperto il backdrop-filter va rimosso: renderebbe l'header "containing block" del menu fixed, confinandolo nei 72px dell'header. */
.site-header.is-open, .site-header--transparent.is-scrolled.is-open { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line-soft); }
.site-header--transparent.is-open .brand, .site-header--transparent.is-open .brand-role, .site-header--transparent.is-open .icon-btn { color: var(--navy); }

/* Ricerca */
.search-overlay {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(16,28,46,.25);
  padding: 32px 0 36px;
}
.search-overlay .container { position: relative; }
.search-form .eyebrow { margin-bottom: 14px; }
.search-row { display: flex; gap: 12px; }
.search-row input { flex: 1; border: 1px solid var(--line); background: #fff; padding: 12px 16px; font-size: 18px; outline: none; }
.search-row input:focus { border-color: var(--gold-2); }
.search-close { position: absolute; right: 40px; top: -10px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted); }

/* ---------- Hero pagina interna ---------- */
.page-hero {
  position: relative; min-height: 300px; display: flex; align-items: center;
  background: var(--navy); color: #fff; overflow: hidden;
}
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,28,46,.94) 0%, rgba(16,28,46,.78) 38%, rgba(16,28,46,.25) 70%, rgba(16,28,46,.1) 100%);
}
.page-hero .container { position: relative; z-index: 1; padding-block: 56px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 56px); color: #fff; font-weight: 400; }
.page-hero .gold-rule { margin: 20px 0 22px; }
.page-hero p { font-size: 21px; line-height: 1.45; max-width: 480px; margin: 0; color: rgba(255,255,255,.92); }
.page-hero .quote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.35; max-width: 320px; }
.page-hero .quote cite { display: block; font-size: 18px; margin-top: 10px; }

/* ---------- Home ---------- */
.page-index .site-footer { position: relative; z-index: 2; }
.hero-home {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; background: var(--navy); overflow: hidden;
}
.hero-home__img {
  position: absolute; top: 0; right: 0; bottom: 0; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}
@media (min-aspect-ratio: 16/9) { .hero-home__img { height: 118%; top: -6%; } }
.hero-home::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,28,46,.55) 0%, rgba(16,28,46,.35) 35%, rgba(16,28,46,.12) 55%, rgba(16,28,46,0) 75%);
}
.hero-home .container { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 80px); padding-bottom: 80px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; justify-content: center; }
.hero-home__name { font-size: clamp(34px, 9.5vw, 76px); letter-spacing: .04em; text-transform: uppercase; color: #fff; line-height: 1; }
.hero-home__role { display: block; font-size: clamp(30px, 4vw, 48px); text-transform: none; letter-spacing: 0; color: var(--gold-light); margin-top: 6px; font-weight: 400; }
.hero-home .gold-rule { margin: 34px 0; width: 60px; }
.hero-home__claim { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; color: #fff; max-width: 560px; }
.hero-home__text { font-size: 19px; line-height: 1.5; max-width: 520px; margin: 0 0 16px; color: rgba(255,255,255,.92); }
.hero-home__claim + .hero-home__text { margin-top: 22px; }
.hero-home__text + div { margin-top: 14px; }
.hero-home__quote { margin: auto 0 0; padding-top: 120px; font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.35; max-width: 320px; }
.hero-home__quote cite { display: block; font-size: 19px; font-style: italic; margin-top: 10px; color: rgba(255,255,255,.85); }
.hero-home__quote::after { content: ""; display: block; width: 60px; height: 1px; background: var(--gold-light); margin-top: 34px; }

/* Griglia competenze in home */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-title { font-size: clamp(32px, 3.6vw, 40px); }
.section-title::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold-light); margin: 18px auto 0; }
.section-sub { color: var(--ink-soft); font-size: 19px; margin-top: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line-soft); padding: 40px 30px 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(16,28,46,.25); }
.card .icon { width: 44px; height: 44px; color: var(--navy); margin-bottom: 20px; }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { font-family: var(--font-body); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); font-weight: 600; margin-bottom: 14px; min-height: 2.6em; display: flex; align-items: center; }
.card p { font-size: 17px; color: var(--ink-soft); margin-bottom: 20px; flex: 1; }

/* Una direzione */
.direction-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.direction { text-align: center; padding: 22px 20px; border-left: 1px solid var(--line); }
.direction:first-child { border-left: 0; }
.direction .icon { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--navy); }
.direction .icon svg { width: 100%; height: 100%; }
.direction h3 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.direction p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* Approfondimenti in home */
.insight-featured-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.insight-featured { display: grid; grid-template-columns: 200px 1fr; gap: 26px; border: 1px solid var(--line-soft); background: var(--paper); padding: 24px; }
.insight-featured img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.insight-featured h3 { font-size: 24px; margin: 8px 0 8px; }
.insight-featured .fonte { font-size: 15px; color: var(--muted); font-style: italic; margin-bottom: 14px; }
.insight-featured .punto-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.insight-featured .punto { font-size: 16px; color: var(--ink-soft); margin-bottom: 16px; }
.insight-side { display: flex; flex-direction: column; gap: 20px; }
.insight-mini { border: 1px solid var(--line-soft); background: var(--paper); padding: 22px 24px; flex: 1; }
.insight-mini h3 { font-size: 21px; margin: 8px 0 6px; }
.insight-mini .fonte { font-size: 15px; color: var(--muted); font-style: italic; margin-bottom: 12px; }

/* Sottoponi (home) */
.submit-band { background: var(--cream-2); text-align: center; padding: 72px 0; }
.submit-band h2 { font-size: 36px; }
.submit-band .desc { color: var(--ink-soft); margin: 12px 0 22px; }
.submit-band .price { font-family: var(--font-display); font-size: 34px; color: var(--navy); margin-bottom: 24px; }
.submit-band .price small { font-family: var(--font-body); font-size: 16px; color: var(--ink-soft); margin-left: 6px; }

/* ---------- Competenze ---------- */
.competenza { display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: start; padding: 44px 0 48px; border-bottom: 1px solid var(--line); }
.competenza:last-of-type { border-bottom: 0; }
.competenza__media { position: sticky; top: calc(var(--header-h) + 24px); }
.competenza img { width: 100%; aspect-ratio: 400/260; object-fit: cover; }
.competenza .num { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); letter-spacing: .1em; margin-bottom: 14px; }
.competenza .num::after { content: ""; width: 34px; height: 1px; background: var(--line); }
.competenza h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 18px; }
.competenza__lead { font-size: 20px; line-height: 1.5; color: var(--ink); margin-bottom: 18px; }
.competenza__p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 14px; }
.competenza__p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cream-2); text-align: center; padding: 60px 0; }
.cta-title { font-size: 30px; margin-bottom: 26px; font-weight: 400; }

/* ---------- Gladinoro Iorio (chi sono) ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.about-text h2 { font-size: clamp(34px, 4vw, 46px); margin: 18px 0 22px; }
.about-text p { font-size: 19px; color: var(--ink-soft); }
.method-list { border-left: 1px solid var(--line); padding-left: 44px; display: flex; flex-direction: column; gap: 28px; padding-top: 10px; }
.method { display: grid; grid-template-columns: 44px 1fr; gap: 22px; align-items: start; }
.method .icon { width: 44px; height: 44px; color: var(--gold); }
.method .icon svg { width: 100%; height: 100%; }
.method h3 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.method p { font-size: 16px; color: var(--ink-soft); margin: 0; }

.principles { display: grid; grid-template-columns: 55% 45%; background: var(--cream-2); }
.principles img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.principles__text { padding: 60px 56px; align-self: center; }
.principles__text h2 { font-size: clamp(32px, 3.5vw, 40px); margin: 16px 0 18px; }
.principles__text p { font-size: 19px; color: var(--ink-soft); margin: 0; }

.collab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.collab-quote { border-left: 1px solid var(--line); padding-left: 44px; font-family: var(--font-display); font-style: italic; font-size: 28px; line-height: 1.4; color: var(--navy); }

/* ---------- Approfondimenti ---------- */
.featured-insight { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding-bottom: 20px; }
.featured-insight img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.featured-insight h2 { font-size: clamp(28px, 3vw, 34px); margin: 14px 0 10px; }
.featured-insight .fonte { font-size: 18px; color: var(--ink-soft); margin: 0 0 18px; line-height: 1.4; }
.punto-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.featured-insight .punto { font-size: 17px; color: var(--ink-soft); margin-bottom: 22px; }

/* Coppia di card sotto l'articolo in evidenza (impostazione originale) */
.insight-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.insight-cards .insight-card--row { display: grid; grid-template-columns: 180px 1fr; }
.insight-cards .insight-card--row .insight-card__img img { height: 100%; min-height: 190px; aspect-ratio: auto; }
.insight-cards .insight-card--row .insight-card__body { padding: 22px 24px; }
.insight-cards .insight-card--row h3 { font-size: 21px; }

/* Intestazione elenco e filtri */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 56px 0 24px; flex-wrap: wrap; }
.list-head h2 { display: inline-flex; align-items: center; gap: 18px; font-size: 28px; }
.list-head h2::after { content: ""; width: 44px; height: 1px; background: var(--gold-light); }
.filters { display: flex; align-items: center; gap: 22px; font-size: 15px; flex-wrap: wrap; }
.filters .lbl { color: var(--muted); }
.filter { position: relative; display: inline-block; padding: 4px 0; color: var(--navy); background: none; border: 0; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--navy); transform: scaleX(0); transition: transform .25s var(--ease); }
.filter.is-active { font-weight: 600; }
.filter.is-active::after, .filter:hover::after { transform: scaleX(1); }
.list-search { display: flex; align-items: center; gap: 12px; margin-top: 48px; padding: 8px 8px 8px 18px; border: 1px solid var(--line); background: #fff; }
.list-search:focus-within { border-color: var(--gold-2); }
.list-search__icon { display: inline-flex; width: 22px; height: 22px; color: var(--muted); flex: none; }
.list-search__icon svg { width: 100%; height: 100%; }
.list-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 18px; padding: 8px 0; }
.list-search + .list-head { margin-top: 36px; }
.insight-empty { padding: 30px 0; color: var(--muted); font-style: italic; }
.list-foot { text-align: center; margin-top: 36px; }

/* Griglia dei riquadri (elenco approfondimenti) */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.insight-card { display: flex; flex-direction: column; border: 1px solid var(--line-soft); background: var(--paper); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(16,28,46,.28); }
.insight-card__img { display: block; overflow: hidden; }
.insight-card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .6s var(--ease); }
.insight-card:hover .insight-card__img img { transform: scale(1.03); }
.insight-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.insight-card__body .eyebrow { margin-bottom: 10px; }
.insight-card h3 { font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.insight-card h3 a:hover { color: var(--gold); }
.insight-card .fonte { font-size: 15px; color: var(--muted); font-style: italic; line-height: 1.4; margin-bottom: 12px; }
.insight-card .punto { font-size: 16px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.insight-card .link-more { margin-top: auto; align-self: flex-start; }

.list-note { font-size: 16px; color: var(--ink-soft); margin: 0 0 22px; }
.list-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Paginazione */
.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 48px; flex-wrap: wrap; }
.pager__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pager__num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--navy); font-size: 16px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.pager__num:hover { border-color: var(--gold-2); color: var(--gold); }
.pager__num.is-current { background: var(--gold); border-color: var(--gold); color: #fff; }
.pager__arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pager__arrow:hover { color: var(--gold-hover); }
.pager__arrow.is-disabled { color: var(--line); pointer-events: none; }
.pager__info { text-align: center; font-size: 15px; color: var(--muted); margin: 16px 0 0; }

.quote-band { position: relative; min-height: 220px; display: flex; align-items: center; background: var(--cream-2); overflow: hidden; }
.quote-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.quote-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(239,234,224,0) 20%, rgba(239,234,224,.75) 55%, rgba(239,234,224,.98) 80%); }
.quote-band .container { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.quote-band blockquote { margin: 0; max-width: 340px; font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--navy); text-align: center; }

/* Articolo */
.article-header { padding: 48px 0 30px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.back-link:hover { color: var(--gold); }
.article-header h1 { font-size: clamp(32px, 4vw, 44px); margin: 14px 0 12px; max-width: 820px; }
.article-header .subtitle { font-family: var(--font-display); font-size: 22px; line-height: 1.4; color: var(--ink-soft); max-width: 820px; margin: 0 0 16px; }
.article-header .fonte { font-size: 17px; color: var(--ink-soft); margin: 0; }
.article-header .date { font-size: 16px; color: var(--muted); margin: 6px 0 0; }
.article-hero { width: 100%; max-width: 900px; aspect-ratio: 16/7; object-fit: cover; margin: 10px 0 40px; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 28px; line-height: 1.2; margin: 40px 0 14px; }
.article-body h2.label { font-family: var(--font-body); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; }
.article-body h3 { font-size: 22px; margin: 28px 0 10px; }
.article-body p { font-size: 18.5px; line-height: 1.65; color: var(--ink-soft); }
.article-body .punto { padding: 22px 26px; margin-bottom: 30px; background: var(--paper); border-left: 2px solid var(--gold-2); }
.article-body .punto p { font-size: 20px; line-height: 1.5; color: var(--ink); margin: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 24px; }
.article-body ul { list-style: none; padding-left: 22px; }
.article-body ul li { position: relative; font-size: 18px; line-height: 1.55; color: var(--ink-soft); margin-bottom: .45em; }
.article-body ul li::before { content: "•"; position: absolute; left: -20px; color: var(--gold); }
.article-body ol.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 10px; margin: 8px 0 28px; }
.article-body ol.steps li { counter-increment: step; position: relative; padding: 14px 18px 14px 58px; background: var(--paper); border: 1px solid var(--line-soft); font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.article-body ol.steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.article-body ol.steps li strong { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.article-nav { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.article-nav a { max-width: 45%; font-size: 16px; color: var(--navy); }
.article-nav a small { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* ---------- Sottoponi una questione ---------- */
.submit-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: start; padding-block: 48px 72px; }
.submit-intro img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 34px; }
.submit-intro h2 { font-size: clamp(32px, 3.6vw, 42px); margin-bottom: 22px; }
.submit-intro p { font-size: 19px; color: var(--ink-soft); }
.benefits { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; }
.benefit { display: grid; grid-template-columns: 40px 1fr; gap: 26px; align-items: start; }
.benefit .icon { width: 36px; height: 36px; color: var(--gold); }
.benefit .icon svg { width: 100%; height: 100%; }
.benefit h3 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.benefit p { font-size: 16px; color: var(--ink-soft); margin: 0; }

.form-panel { background: var(--paper); border: 1px solid var(--line-soft); padding: 34px 28px 30px; }
.form-panel h2 { font-size: 32px; margin-bottom: 10px; }
.form-panel > p { color: var(--ink-soft); font-size: 17px; margin-bottom: 22px; }
.form-step { display: grid; grid-template-columns: 34px 1fr; gap: 18px; margin-bottom: 22px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.form-step label.title, .form-step .title { display: block; font-size: 18px; color: var(--navy); line-height: 1.2; }
.form-step .hint { display: block; font-size: 15px; color: var(--muted); margin: 3px 0 10px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; padding: 10px 14px; font-size: 16px; color: var(--ink); outline: none;
  transition: border-color .2s;
}
.input::placeholder, .textarea::placeholder { color: #a7a39b; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-2); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field-stack { display: flex; flex-direction: column; gap: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-row .sublabel { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.dropzone {
  border: 1px dashed var(--line); background: #fff; padding: 26px 20px; text-align: center; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 16px; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--gold-2); background: var(--paper); }
.dropzone svg { width: 28px; height: 28px; color: var(--ink-soft); flex: none; }
.dropzone p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; text-align: left; }
.dropzone u { color: var(--gold); }
.dropzone input { display: none; }
.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 6px 10px; background: var(--cream-2); }
.file-list li button { background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; }
.file-list li.is-error { color: #a33; }
.checkbox { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); }
.checkbox a { text-decoration: underline; text-underline-offset: 3px; }
.form-submit { display: flex; justify-content: flex-end; padding-left: 52px; margin-top: 6px; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-error { color: #a33; font-size: 14px; margin-top: 6px; display: none; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: #c0504d; }
.field.is-invalid .form-error { display: block; }
.form-alert { padding: 16px 20px; margin-bottom: 22px; font-size: 16px; border: 1px solid; }
.form-alert--ok { border-color: #9cbf9a; background: #f0f7ef; color: #2f5d2c; }
.form-alert--err { border-color: #d9a3a1; background: #fbf0ef; color: #7a2e2b; }
.hp { position: absolute; left: -9999px; }

.how { background: var(--cream-2); padding: 48px 0 56px; }
.how h2 { text-align: center; font-size: 32px; margin-bottom: 36px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.how-step { text-align: center; padding: 8px 20px; border-left: 1px solid var(--line); }
.how-step:first-child { border-left: 0; }
.how-step .icon { width: 44px; height: 44px; margin: 0 auto 18px; color: var(--gold); }
.how-step .icon svg { width: 100%; height: 100%; }
.how-step h3 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.how-step p { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* ---------- Contatti ---------- */
.contact-page { padding-block: 56px 72px; }
.contact-page h1 { font-size: clamp(36px, 4vw, 46px); margin-bottom: 6px; }
.contact-page__name { font-family: var(--font-display); font-size: 24px; color: var(--ink-soft); margin: 0 0 40px; }
.contact-page__name::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold-light); margin-top: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-block h2 { font-family: var(--font-body); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; color: var(--gold); }
.contact-block address { font-style: normal; font-size: 18px; line-height: 1.5; color: var(--ink); margin-bottom: 14px; }
.contact-line { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; font-size: 17px; color: var(--ink); margin-bottom: 12px; overflow-wrap: anywhere; }
.contact-line svg { width: 22px; height: 22px; color: var(--gold); }
.contact-line small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-line:hover { color: var(--gold); }
.contact-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.submit-band .desc--wide { max-width: 640px; margin-inline: auto; font-size: 18px; }

/* ---------- Pagine legali ---------- */
.legal { max-width: 800px; padding-block: 56px 80px; }
.legal h1 { font-size: clamp(36px, 4vw, 46px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 17.5px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal ul li { margin-bottom: .35em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; gap: 34px; font-size: 15px; }
.footer-nav a { position: relative; opacity: .92; }
.footer-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--gold-light); transform: scaleX(0); transition: transform .3s var(--ease); }
.footer-nav a:hover::after { transform: scaleX(1); }
.footer-copy { margin: 0; font-size: 15px; opacity: .85; }

.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 60; max-width: 720px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(16,28,46,.35);
  padding: 16px 20px; display: flex; align-items: center; gap: 20px; font-size: 15px;
}
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .nav-link { font-size: 14px; }
  .competenza { grid-template-columns: 320px 1fr; gap: 36px; }
  .insight-featured-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-img { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 0; background: var(--paper); padding: 20px 40px;
    transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; z-index: 48;
  }
  .nav.is-open { transform: none; }
  .nav-link { font-size: 22px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--font-display); }
  .site-header--transparent .nav-link { color: var(--navy); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--gold); }
  .card-grid { grid-template-columns: 1fr; }
  .direction-grid, .how-grid { grid-template-columns: 1fr 1fr; }
  .direction:nth-child(3), .how-step:nth-child(3) { border-left: 0; }
  .direction:nth-child(n+3), .how-step:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; }
  .competenza { grid-template-columns: 1fr; gap: 24px; }
  .competenza img { aspect-ratio: 16/9; }
  .about-grid, .collab-grid, .featured-insight, .submit-layout { grid-template-columns: 1fr; gap: 36px; }
  .method-list { border-left: 0; padding-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .principles__text { padding: 40px 30px; }
  .collab-quote { border-left: 0; padding-left: 0; }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-cards { grid-template-columns: 1fr; }
  .insight-table td.cat { display: none; }
  .quote-band .container { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; gap: 18px; }
  .hero-home__quote { padding-top: 60px; }
  .hero-home__img { left: 0; width: 100%; object-fit: cover; object-position: 62% center; -webkit-mask-image: none; mask-image: none; height: 100%; top: 0; }
  .hero-home::after { background: linear-gradient(180deg, rgba(16,28,46,.82) 0%, rgba(16,28,46,.62) 55%, rgba(16,28,46,.8) 100%); }
  .cookie-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .direction-grid, .how-grid { grid-template-columns: 1fr; }
  .direction, .how-step { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 4px; }
  .direction:first-child, .how-step:first-child { border-top: 0; }
  .insight-featured { grid-template-columns: 1fr; }
  .insight-featured img { aspect-ratio: 16/9; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-cards .insight-card--row { grid-template-columns: 1fr; }
  .insight-cards .insight-card--row .insight-card__img img { min-height: 0; aspect-ratio: 16/10; }
  .pager { gap: 14px; }
  .pager__arrow span { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .form-panel { padding: 26px 18px; }
  .form-step { grid-template-columns: 30px 1fr; gap: 12px; }
  .step-num { width: 30px; height: 30px; font-size: 14px; }
  .form-submit { padding-left: 0; }
  .contact-cols { grid-template-columns: 1fr; gap: 28px; }
  .insight-table td.date { width: auto; display: block; padding-bottom: 0; }
  .insight-table td.title { display: block; padding-top: 4px; }
  .insight-table td.more { display: block; width: auto; text-align: left; padding-top: 0; }
  .search-close { right: 20px; }
  .article-nav a { max-width: 100%; }
}

/* ---------- Condividi ---------- */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.share__label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-right: 8px; }
.share__btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); color: var(--navy); border-radius: 50%; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); cursor: pointer; padding: 0; }
.share__btn svg { width: 18px; height: 18px; fill: currentColor; }
.share__btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.share__btn.is-copied { background: var(--navy); border-color: var(--navy); color: #fff; }
.share__toast { font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- Gladinoro Iorio: competenze integrate + manifesto ---------- */
.collab-grid--two { align-items: start; }
.collab-grid--two .about-text:last-child { border-left: 1px solid var(--line); padding-left: 44px; }
.collab-grid--two h2 { font-size: clamp(30px, 3.2vw, 38px); }
.manifesto { background: var(--navy); color: #fff; padding: 84px 0 88px; text-align: center; }
.manifesto .container { max-width: 900px; }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--light::after { background: var(--gold-light); }
.manifesto .eyebrow { margin-bottom: 28px; }
.manifesto p { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; color: rgba(255,255,255,.9); margin: 0 auto 22px; max-width: 800px; }
.manifesto__strong { font-size: clamp(32px, 3.8vw, 44px) !important; color: #fff !important; font-weight: 500; line-height: 1.2 !important; margin: 34px auto 30px !important; }
.manifesto__strong::after { content: ""; display: block; width: 60px; height: 1px; background: var(--gold-light); margin: 26px auto 0; }
.manifesto__close { font-style: italic; color: var(--gold-light) !important; }
@media (max-width: 900px) {
  .collab-grid--two .about-text:last-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .manifesto { padding: 60px 0; }
}

/* ---------- Testi giustificati (paragrafi lunghi) ---------- */
.competenza__lead, .competenza__p,
.about-text p, .principles__text p,
.article-body p, .article-body ul li, .article-header .subtitle,
.legal p, .legal li,
.submit-intro p,
.featured-insight .punto, .insight-featured .punto, .insight-card .fonte {
  text-align: justify;
  hyphens: auto; -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  /* Su colonne strette il giustificato crea "fiumi" di spazi: torna a bandiera */
  .competenza__lead, .competenza__p, .about-text p, .principles__text p,
  .article-body p, .article-body ul li, .article-header .subtitle, .legal p, .legal li, .submit-intro p,
  .featured-insight .punto, .insight-featured .punto, .insight-card .fonte { text-align: left; }
}

/* ---------- Link esterni nel testo ---------- */
.ext-link { color: inherit; border-bottom: 1px solid var(--gold-2); padding-bottom: 1px; transition: color .25s var(--ease), border-color .25s var(--ease); }
.ext-link:hover { color: var(--gold); border-color: var(--gold); }
.card h3 .ext-link, .direction h3 .ext-link { border-bottom-color: var(--gold-light); }

/* ---------- Pagamento: avviso nel modulo, esito, link di pagamento ---------- */
.pagamento-box { border: 1px solid var(--gold-light); background: #fbf7f0; padding: 18px 20px; margin-bottom: 24px; display: grid; gap: 10px; }
.pagamento-box__label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.pagamento-box__prezzo { font-family: var(--font-display); font-size: 32px; color: var(--navy); margin: 4px 0 0; line-height: 1; }
.pagamento-box__prezzo small { font-family: var(--font-body); font-size: 15px; color: var(--ink-soft); margin-left: 8px; }
.pagamento-box__nota { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.esito { max-width: 720px; padding-block: 90px 110px; text-align: center; }
.esito__icona { width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--muted); background: var(--paper); }
.esito__icona--ok { border-color: var(--gold-2); color: var(--gold); }
.esito__icona--err { border-color: #d9a3a1; color: #a33; }
.esito h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
.esito__lead { font-size: 20px; color: var(--ink); }
.esito__rif { font-size: 16px; color: var(--muted); }
.esito p { color: var(--ink-soft); }
.esito__azioni { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.paga-card { max-width: 520px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line-soft); padding: 40px 36px; text-align: left; }
.paga-card h1 { font-size: 30px; margin: 12px 0 10px; }
.paga-note { color: var(--ink-soft); font-size: 17px; }
.paga-importo { font-family: var(--font-display); font-size: 44px; color: var(--navy); margin: 18px 0 24px; line-height: 1; }
.paga-importo small { font-family: var(--font-body); font-size: 16px; color: var(--ink-soft); margin-left: 10px; }
.paga-campo span { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.paga-campo span small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.paga-card .btn { width: 100%; justify-content: center; margin-top: 16px; }
.paga-sicuro { font-size: 14.5px; color: var(--muted); margin: 20px 0 0; text-align: center; }
