/* ============================================================
   blu7-light.css — Design system condiviso Blu7 LIGHT
   Fonte UNICA di font, colori e studio grafico per tutte le
   pagine che usano get_header('blu7') / get_footer('blu7').
   Cambi un colore/font QUI = cambia su tutte le pagine.
   ============================================================ */

/* === RESET & TOKENS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:      #ffffff;
  --bg2:     #f4f7fb;
  --bg3:     #edf2f8;
  --txt:     #003452;    /* navy ufficiale Blu7 */
  --muted:   #4a6070;
  --light:   #7a94a8;
  --primary: #0066CC;    /* blu ufficiale Blu7 */
  --dark:    #004D79;    /* blu scuro ufficiale */
  --nav-bg:  #003452;    /* fondo nav scuro */
  --border:  rgba(0,52,82,.09);
  --shadow:  0 4px 24px rgba(0,52,82,.08);
  --grad:    linear-gradient(135deg,#0E74AE,#0066CC);
  --font-h:  'Unbounded', sans-serif;
  --font-b:  'Hanken Grotesk', sans-serif;
  --max:     1120px;
  --pad:     clamp(20px, 5vw, 64px);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--txt); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; cursor: pointer; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* === NAV (condivisa, override blindati contro Hello Elementor) === */
.site-nav { background: var(--nav-bg); border-bottom: none; position: sticky; top: 0; z-index: 100; }
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }
.site-nav .nav-inner { display: flex !important; align-items: center; justify-content: space-between; padding: 14px var(--pad); max-width: var(--max); margin: 0 auto; gap: 24px; }
.site-nav .nav-logo { display: flex; align-items: center; gap: 3px; flex-shrink: 0; text-decoration: none; }
.site-nav .nav-logo img { height: 40px !important; width: auto !important; max-width: none !important; display: block; }
.site-nav .nav-links { display: flex !important; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav .nav-links li { margin: 0; padding: 0; list-style: none; }
.site-nav .nav-links a { font-size: .85rem; font-weight: 600; color: #ffffff !important; transition: opacity .2s; white-space: nowrap; opacity: .82; }
.site-nav .nav-links a:hover { color: #ffffff !important; opacity: 1; }
.site-nav .nav-cta { background: var(--primary); color: #ffffff !important; padding: 10px 22px; border-radius: 4px; font-weight: 700; font-size: .85rem; flex-shrink: 0; transition: background .2s, transform .2s; }
.site-nav .nav-cta:hover { background: #0a86ff; transform: translateY(-1px); }
/* hamburger mobile — CSS-only (checkbox hack, niente JS → immune al delay JS di WP Rocket) */
.nav-toggle-cb { display: none; }
.nav-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; background: transparent; border: 0; cursor: pointer; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 0 auto; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle-cb:checked ~ .nav-right .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-cb:checked ~ .nav-right .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-cb:checked ~ .nav-right .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === NAV DROPDOWN === */
.site-nav .nav-dropdown { position: relative; }
.site-nav .nav-dropdown-toggle {
  background: transparent; border: none; color: #ffffff; font-size: .85rem; font-weight: 600;
  cursor: pointer; padding: 0; opacity: .82; transition: opacity .2s; display: flex; align-items: center; gap: 4px;
  white-space: nowrap; font-family: var(--font-b); line-height: 1; height: auto;
}
.site-nav .nav-dropdown-toggle::after {
  content: "\25BC"; font-size: .55rem; display: inline-block; margin-left: 4px;
  transition: transform .25s ease; transform: translateY(-1px);
}
.site-nav .nav-dropdown-toggle:hover { opacity: 1; }
.site-nav .nav-dropdown:hover .nav-dropdown-toggle::after { transform: translateY(1px); }
.site-nav .nav-submenu {
  position: absolute; top: 100%; left: 0; list-style: none; margin: 0; padding: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,52,82,.16); min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, visibility .2s, transform .2s; z-index: 101;
  padding: 8px 0; margin-top: 4px;
}
.site-nav .nav-dropdown:hover .nav-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .nav-submenu li { margin: 0; padding: 0; list-style: none; }
.site-nav .nav-submenu a {
  display: block; padding: 12px 18px; font-size: .82rem; font-weight: 500;
  color: var(--txt) !important; transition: background .15s, color .15s;
  white-space: nowrap; opacity: 1;
}
.site-nav .nav-submenu a:hover { background: var(--bg2); color: var(--primary) !important; }

/* === BOTTONI condivisi === */
.btn-primary {
  background: var(--grad); color: #fff;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  display: inline-block; box-shadow: 0 8px 28px rgba(0,102,204,.28);
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-secondary {
  background: rgba(0,102,204,.07); color: var(--txt);
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  display: inline-block; border: 1.5px solid rgba(0,102,204,.22);
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--primary); background: rgba(0,102,204,.11); }

/* === SECTION condivise === */
.section { padding: 76px 0; border-bottom: 1px solid var(--border); }
.section.bg2 { background: var(--bg2); }
.section.bg3 { background: var(--bg3); }
.section-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.section-title { font-family: var(--font-h); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 36px; }

/* ============================================================
   HOMEPAGE — componenti specifici
   ============================================================ */

/* === HERO === */
.hero { position: relative; overflow: hidden; min-height: 88vh; display: flex; align-items: center; padding: 72px 0 60px; background: var(--bg); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,102,204,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,77,121,.05) 0%, transparent 70%);
}
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; pointer-events: none; }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Articolo in evidenza (colonna destra) */
.hero-featured { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,52,82,.1); }
.hero-featured-img { height: 220px; background: linear-gradient(135deg,rgba(0,102,204,.1),rgba(0,77,121,.08)); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--light); letter-spacing: .1em; text-transform: uppercase; position: relative; overflow: hidden; }
.hero-featured-img::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(transparent,rgba(0,52,82,.06)); }
.hero-featured-badge { position: absolute; top: 16px; left: 16px; background: var(--primary); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; z-index: 2; }
.hero-featured-img .img-fallback { height: 56px !important; width: auto !important; max-width: 60% !important; opacity: .5; }
.hero-featured-body { padding: 24px 28px 28px; }
.hero-featured-cat { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.hero-featured-title { font-family: var(--font-h); font-size: 1.08rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--txt); margin-bottom: 12px; }
.hero-featured-excerpt { font-size: .87rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.hero-featured-meta { font-size: .73rem; color: var(--light); margin-bottom: 20px; }
.hero-featured-link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--primary); transition: gap .2s; }
.hero-featured-link:hover { gap: 10px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); padding: 8px 18px; border-radius: 999px;
  background: rgba(0,102,204,.09); border: 1px solid rgba(0,102,204,.2);
  margin-bottom: 28px;
}
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: blink 2s infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1.15)} }
.hero h1 { font-family: var(--font-h); font-size: clamp(2.1rem, 4.5vw, 3.7rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; margin-bottom: 22px; }
.hero-sub { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-sub strong { color: var(--txt); font-weight: 700; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 32px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-num { font-family: var(--font-h); font-weight: 800; font-size: 1.75rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-label { font-size: .73rem; color: var(--muted); margin-top: 5px; }

/* === SPECIALITÀ === */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.spec-card { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 36px 32px; position: relative; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.spec-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); border-radius: 20px 20px 0 0; }
.spec-card:hover { box-shadow: 0 16px 48px rgba(0,102,204,.13); transform: translateY(-3px); }
.spec-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; background: linear-gradient(135deg,rgba(0,102,204,.11),rgba(0,77,121,.11)); }
.spec-card h3 { font-family: var(--font-h); font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; line-height: 1.2; letter-spacing: -.02em; }
.spec-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { font-size: .68rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(0,102,204,.08); color: var(--primary); letter-spacing: .02em; }
.spec-link { font-size: .85rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.spec-link:hover { gap: 10px; }

/* === MAGAZINE === */
.mag-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.mag-all-link { font-size: .82rem; font-weight: 700; color: var(--primary); padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgba(0,102,204,.28); transition: all .2s; }
.mag-all-link:hover { background: rgba(0,102,204,.07); border-color: var(--primary); }
.mag-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; align-items: start; }
.art-img { background: linear-gradient(135deg,rgba(0,102,204,.07),rgba(0,77,121,.06)); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--light); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.art-img.tall { height: 205px; }
.art-img.short { height: 112px; }
.art-cat { font-size: .67rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.art-title { font-family: var(--font-h); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--txt); }
.art-hero .art-title { font-size: 1.1rem; margin-bottom: 10px; }
.art-side .art-title { font-size: .9rem; margin-bottom: 8px; }
.art-abstract { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.art-byline { font-size: .73rem; color: var(--light); margin-top: 10px; }
.nl-strip { margin-top: 28px; background: var(--grad); color: #fff; padding: 22px 28px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; box-shadow: 0 10px 32px rgba(0,102,204,.24); }
.nl-strip p { font-size: .92rem; line-height: 1.45; }
.nl-strip strong { display: block; font-family: var(--font-h); font-size: .9rem; margin-bottom: 4px; }
.nl-btn { flex-shrink: 0; background: #fff; color: var(--primary); padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap; transition: opacity .2s; }
.nl-btn:hover { opacity: .9; }

/* === NUMERI === */
.numeri-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.numero-card { text-align: center; padding: 36px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; transition: box-shadow .3s; }
.numero-card:hover { box-shadow: var(--shadow); }
.numero-num { font-family: var(--font-h); font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 10px; min-height: 1.2em; }
.numero-label { font-size: .87rem; color: var(--muted); font-weight: 500; line-height: 1.4; }

/* === MAGAZINE seconda riga === */
.mag-grid2 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.art-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.art-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.art-card-img { height: 140px; background: linear-gradient(135deg,rgba(0,102,204,.07),rgba(0,77,121,.06)); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--light); letter-spacing: .1em; text-transform: uppercase; }
.art-card-body { padding: 20px; }
.art-card .art-cat { margin-bottom: 8px; }
.art-card .art-title { font-size: .92rem; margin-bottom: 8px; }
.art-card .art-byline { margin-top: 8px; }

/* === PARTNER STRIP === */
.partner-strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.partner-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.partner-label { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--light); white-space: nowrap; }
.partner-sep { width: 1px; height: 32px; background: var(--border); }
.partner-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 18px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.partner-badge:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,102,204,.1); }
.partner-badge-icon { font-size: 1.3rem; line-height: 1; }
.partner-badge-name { font-family: var(--font-h); font-size: .78rem; font-weight: 700; color: var(--txt); line-height: 1.2; }
.partner-badge-sub { font-size: .68rem; color: var(--muted); margin-top: 2px; }

/* === CALENDARIO === */
.cal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cal-item { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); transition: transform .2s; }
.cal-item:hover { transform: translateY(-2px); }
.cal-date { font-family: var(--font-h); font-size: .68rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; }
.cal-title { font-size: .9rem; font-weight: 600; color: var(--txt); line-height: 1.45; }
.cal-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.cal-more { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--primary); transition: gap .2s; }
.cal-more:hover { gap: 10px; }
.cal-nl-hook { display: inline-flex; align-items: center; gap: 14px; background: rgba(0,102,204,.07); border: 1.5px solid rgba(0,102,204,.18); border-radius: 999px; padding: 10px 20px; }
.cal-nl-hook span { font-size: .82rem; color: var(--muted); }
.cal-nl-hook strong { color: var(--txt); font-weight: 700; }
.cal-nl-link { flex-shrink: 0; background: var(--primary); color: #fff !important; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .78rem; white-space: nowrap; transition: background .2s; }
.cal-nl-link:hover { background: #188757; color: #fff !important; }

/* === LOGO WALL === */
.clienti-intro { font-size: 1rem; color: var(--muted); margin-bottom: 32px; max-width: 480px; }
.logo-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.logo-tile { height: 72px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: var(--muted); text-align: center; padding: 12px; transition: border-color .2s, box-shadow .2s, color .2s; }
.logo-tile:hover { border-color: rgba(0,102,204,.3); box-shadow: 0 4px 16px rgba(0,102,204,.1); color: var(--primary); }
.clienti-cta { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.clienti-cta p { font-size: .95rem; color: var(--muted); }

/* === FINALE CTA (condivisa) === */
.finale-cta { background: linear-gradient(160deg,#09112a 0%,#111540 100%); color: #fff; padding: 88px var(--pad); text-align: center; }
.finale-cta h2 { font-family: var(--font-h); font-size: clamp(1.8rem,3.5vw,2.7rem); font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.finale-cta h2 .grad-light { background: linear-gradient(135deg,#07d4f5,#a29bfe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.finale-cta p { color: rgba(255,255,255,.6); font-size: 1.05rem; max-width: 520px; margin: 0 auto 36px; line-height: 1.65; }
.finale-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-wa { background: #25D366; color: #fff; padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: .95rem; box-shadow: 0 8px 24px rgba(37,211,102,.3); transition: opacity .2s; display: inline-block; }
.cta-wa:hover { opacity: .9; }
.cta-mail { background: rgba(255,255,255,.1); color: #fff; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1.5px solid rgba(255,255,255,.2); transition: border-color .2s; display: inline-block; }
.cta-mail:hover { border-color: rgba(255,255,255,.55); }

/* ============================================================
   PORTFOLIO — componenti specifici
   ============================================================ */
.pf-hero { position: relative; overflow: hidden; padding: 76px 0 56px; background: var(--bg); }
.pf-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(0,102,204,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(0,77,121,.05) 0%, transparent 70%);
}
.pf-hero .wrap { position: relative; z-index: 1; }
.pf-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); padding: 8px 18px; border-radius: 999px;
  background: rgba(0,102,204,.09); border: 1px solid rgba(0,102,204,.2);
  margin-bottom: 26px;
}
.pf-hero h1 { font-family: var(--font-h); font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; line-height: 1.07; letter-spacing: -.03em; margin-bottom: 14px; }
.pf-hero .sub { font-family: var(--font-h); font-weight: 600; font-size: clamp(1rem,1.8vw,1.35rem); color: var(--primary); margin-bottom: 24px; }
.pf-hero .intro { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 680px; }
.pf-hero .intro strong { color: var(--txt); font-weight: 700; }
.pf-stats { display: flex; gap: 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pf-stat-num { font-family: var(--font-h); font-weight: 800; font-size: 1.7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.pf-stat-label { font-size: .73rem; color: var(--muted); margin-top: 5px; }

/* Caso studio in evidenza */
.cs-card { background: var(--bg); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 12px 48px rgba(0,52,82,.1); overflow: hidden; display: grid; grid-template-columns: 320px 1fr; }
.cs-logo-col { background: linear-gradient(160deg,#f4f7fb,#edf2f8); display: flex; align-items: center; justify-content: center; padding: 40px; border-right: 1px solid var(--border); }
.cs-logo-col img { max-width: 200px; width: 100%; height: auto; }
.cs-body { padding: 40px 44px; }
.cs-badge { display: inline-block; background: var(--primary); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; }
.cs-body h3 { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.cs-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.cs-meta span { font-size: .76rem; color: var(--light); }
.cs-meta strong { color: var(--muted); font-weight: 700; }
.cs-body p { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.cs-result { background: rgba(0,102,204,.07); border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: .92rem; color: var(--txt); }
.cs-result strong { color: var(--primary); }

/* Sezione istituzionale */
.ist-card { background: var(--bg); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 1fr 300px; }
.ist-body { padding: 40px 44px; }
.ist-logo-col { background: linear-gradient(160deg,#f4f7fb,#edf2f8); display: flex; align-items: center; justify-content: center; padding: 40px; border-left: 1px solid var(--border); }
.ist-logo-col img { max-width: 180px; width: 100%; height: auto; }
.ist-card h3 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; line-height: 1.22; letter-spacing: -.02em; margin-bottom: 14px; }
.ist-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.ist-meta span { font-size: .76rem; color: var(--light); }
.ist-meta strong { color: var(--muted); }
.ist-body p { font-size: .93rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.ist-result { font-size: .92rem; color: var(--txt); }
.ist-result strong { color: var(--primary); font-weight: 700; }

/* Griglia clienti */
.pf-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.pf-card { background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 26px 26px 24px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.pf-card:hover { box-shadow: 0 16px 44px rgba(0,102,204,.12); transform: translateY(-3px); }
.pf-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pf-logo-box { width: 64px; height: 64px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; padding: 8px; }
.pf-logo-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pf-card-name { font-family: var(--font-h); font-size: .98rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--txt); }
.pf-card-sector { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-top: 5px; }
.pf-period { display: inline-block; font-size: .68rem; font-weight: 600; color: var(--light); background: var(--bg2); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start; }
.pf-intervento { font-size: .86rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex-grow: 1; }
.pf-risultato { font-size: .85rem; color: var(--txt); line-height: 1.55; padding-top: 14px; border-top: 1px solid var(--border); }
.pf-risultato::before { content: '\2197  '; color: var(--primary); font-weight: 800; }
.pf-risultato strong { color: var(--primary); font-weight: 800; }

/* ============================================================
   FOOTER (armonizzato, scuro come l'header)
   ============================================================ */
.blu7-footer { background: var(--nav-bg); color: rgba(255,255,255,.70); font-size: .87rem; line-height: 1.7; }
.blu7-footer a { color: rgba(255,255,255,.70); transition: color .2s; }
.blu7-footer a:hover { color: #fff; }
.blu7-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 44px; padding: 60px var(--pad); align-items: start; }
.blu7-footer-logo { height: auto; width: 120px; margin-bottom: 18px; display: block; }
.blu7-footer-legal { font-size: .84rem; line-height: 1.75; color: rgba(255,255,255,.62); }
.blu7-footer-legal strong { color: #fff; font-weight: 700; }
.blu7-footer-legal a { color: rgba(255,255,255,.85); text-decoration: underline; }
.blu7-footer-col { display: flex; flex-direction: column; gap: 12px; }
.blu7-footer-h { font-family: var(--font-h); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.blu7-footer-col a { font-weight: 500; }
.blu7-footer-side { gap: 16px; }
.blu7-footer-social { display: flex; gap: 12px; }
.blu7-footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, transform .2s; }
.blu7-footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.blu7-footer-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff !important; font-weight: 700; font-size: .82rem; padding: 9px 18px; border-radius: 999px; align-self: flex-start; transition: opacity .2s; }
.blu7-footer-wa:hover { opacity: .9; color: #fff !important; }
.blu7-footer-policy { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; }
.blu7-footer-policy a { color: rgba(255,255,255,.55); }
.blu7-footer-policy a:hover { color: #fff; }
.blu7-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.blu7-footer-bottom .wrap { padding-top: 22px; padding-bottom: 22px; font-size: .76rem; color: rgba(255,255,255,.42); }

/* ============================================================
   IMMAGINI ARTICOLO dinamiche (homepage) — featured image reale
   con fallback logo Blu7 quando l'articolo non ha immagine
   ============================================================ */
.hero-featured-img img.post-thumb,
.art-img img.post-thumb,
.art-card-img img.post-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-featured-img .img-fallback,
.art-img .img-fallback,
.art-card-img .img-fallback { height: 46px !important; width: auto !important; max-width: 55% !important; opacity: .45; object-fit: contain; }
.art-img, .art-card-img { overflow: hidden; }

/* ============================================================
   RESPONSIVE (unificato)
   ============================================================ */
@media (max-width: 980px) {
  .pf-grid { grid-template-columns: repeat(2,1fr); }
  .cs-card { grid-template-columns: 1fr; }
  .cs-logo-col { border-right: none; border-bottom: 1px solid var(--border); padding: 32px; }
  .cs-logo-col img { max-width: 160px; }
  .ist-card { grid-template-columns: 1fr; }
  .ist-logo-col { order: -1; border-left: none; border-bottom: 1px solid var(--border); padding: 32px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav .nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--nav-bg); border-top: 1px solid rgba(255,255,255,.1); max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: 0 12px 28px rgba(0,52,82,.25); }
  .nav-toggle-cb:checked ~ .nav-menu { max-height: 75vh; }
  .site-nav .nav-links { display: flex !important; flex-direction: column; gap: 0; padding: 6px var(--pad) 14px; }
  .site-nav .nav-links li { width: 100%; }
  .site-nav .nav-links a { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); opacity: 1; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-featured { max-width: 540px; }
}
@media (max-width: 768px) {
  .spec-grid { grid-template-columns: 1fr; }
  .mag-grid { grid-template-columns: 1fr; }
  .mag-grid2 { grid-template-columns: 1fr; }
  .numeri-grid { grid-template-columns: 1fr 1fr; }
  .cal-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3,1fr); }
  .hero-stats { gap: 20px; }
  .nl-strip { flex-direction: column; text-align: center; }
  /* FOOTER: impila a 1 colonna (evita overflow orizzontale su mobile) */
  .blu7-footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 44px var(--pad); }
  .blu7-footer-wa { align-self: flex-start; }
}
@media (max-width: 620px) {
  .pf-grid { grid-template-columns: 1fr; }
  .cs-body, .ist-body { padding: 28px 24px; }
  .pf-stats { gap: 22px; }
}
@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(2,1fr); }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
}
