/*
Theme Name: Fidimpresa
Theme URI: https://fidimpresa.it
Author: Fidimpresa
Description: Tema ufficiale Fidimpresa — Confidi Calabria. Compatibile con Elementor.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fidimpresa
Tags: business, finance, elementor, custom-menu, post-thumbnails
*/

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── VARIABLES ── */
:root {
  --blue:       #2961c8;
  --blue-dark:  #1a46a0;
  --blue-mid:   #3b72e0;
  --blue-light: #e8eefa;
  --blue-pale:  #f0f5ff;
  --ink:        #101828;
  --ink-mid:    #2d3748;
  --muted:      #6b7a93;
  --line:       #e4e8f0;
  --fog:        #f7f8fc;
  --white:      #ffffff;
  --teal:       #0891b2;
  --teal-light: #e0f5fa;
  --font-body:  'Sora', sans-serif;
  --font-disp:  'DM Serif Display', serif;
  --r-sm:  6px;
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --s1: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(41,97,200,.05);
  --s2: 0 4px 16px rgba(0,0,0,.07), 0 16px 48px rgba(41,97,200,.08);
  --s3: 0 8px 32px rgba(0,0,0,.08), 0 32px 80px rgba(41,97,200,.1);
  --ease: cubic-bezier(.22,1,.36,1);
  --pad: clamp(64px,9vw,112px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--font-disp); font-weight: 400; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.3rem,5vw,3.8rem); }
h2 { font-size: clamp(1.85rem,3.2vw,2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--muted); margin-bottom: 1rem; line-height: 1.72; }
p:last-child { margin-bottom: 0; }
a  { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── LAYOUT ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px,4vw,48px); }
.sec  { padding: var(--pad) 0; }
.sec--fog       { background: var(--fog); }
.sec--blue      { background: var(--blue); }
.sec--blue-pale { background: var(--blue-pale); }

/* ── OVERLINE ── */
.ol {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.ol::before { content:''; width:20px; height:2px; background:var(--blue); flex-shrink:0; border-radius:2px; }

/* ── PAGE HERO ── */
.phero {
  background: var(--fog);
  padding: 120px 0 72px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.phero::after {
  content: '';
  position: absolute; right: -200px; top: -200px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41,97,200,.06) 0%, transparent 65%);
  pointer-events: none;
}
.phero .wrap { position: relative; z-index: 1; }
.phero .ol { color: var(--blue); }
.phero h1 { max-width: 760px; margin: 8px 0 18px; }
.phero > .wrap > p { color: var(--muted); max-width: 580px; font-size: 1.05rem; }

/* ── SECTION INTRO ── */
.si { margin-bottom: 52px; }
.si.c { text-align: center; }
.si.c .ol { display: flex; justify-content: center; }
.si h2 { margin: 6px 0 14px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .22s var(--ease);
  white-space: nowrap; text-decoration: none; letter-spacing: .01em;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(41,97,200,.3); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-light); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink-mid); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.btn-sm { padding: 9px 18px; font-size: .8rem; }

/* ── NAVBAR ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.08); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nbrand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nbrand img { height: 40px; width: auto; max-width: 180px; object-fit: contain; background: transparent; border-radius: 0; padding: 0; border: none; box-shadow: none; flex-shrink: 0; }
.nlinks { display: flex; align-items: center; gap: 1px; list-style: none; }
.nlinks a {
  display: block; padding: 7px 13px;
  font-size: .82rem; font-weight: 500; color: var(--ink-mid);
  border-radius: var(--r-sm); transition: color .18s, background .18s; text-decoration: none;
}
.nlinks a:hover  { color: var(--blue); background: var(--blue-pale); }
.nlinks a.act    { color: var(--blue); font-weight: 600; }
.nlinks .current-menu-item > a,
.nlinks .current_page_item > a { color: var(--blue); font-weight: 600; }
.ncta { background: var(--blue) !important; color: var(--white) !important; font-weight: 600 !important; margin-left: 8px !important; padding: 8px 18px !important; border-radius: var(--r-sm) !important; }
.ncta:hover { background: var(--blue-dark) !important; color: var(--white) !important; }
.hb { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hb span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all .28s; }
.hb.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hb.open span:nth-child(2) { opacity: 0; }
.hb.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,.5); padding: 64px 0 32px; }
.fg { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 28px; }
.fbrand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.fbrand img { height: 32px; width: auto; max-width: 160px; object-fit: contain; background: transparent; border-radius: 0; padding: 0; filter: brightness(0) invert(1); opacity: .85; }
.fabout > p { font-size: .83rem; line-height: 1.75; max-width: 260px; }
.fpec { margin-top: 14px; font-size: .75rem; }
.fpec a { color: rgba(255,255,255,.6); }
.fc h5 { font-family: var(--font-body); font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.fc ul { list-style: none; }
.fc ul li { margin-bottom: 8px; }
.fc ul a { color: rgba(255,255,255,.42); font-size: .82rem; transition: color .18s; }
.fc ul a:hover { color: rgba(255,255,255,.85); }
.fbot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.fleg { font-size: .72rem; }
.fbadges { display: flex; gap: 8px; }
.fbadge { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 4px 11px; font-size: .67rem; letter-spacing: .07em; color: rgba(255,255,255,.35); }

/* ── ALERT ── */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: .84rem; }
.aw { background: #fffbeb; border: 1px solid #f59e0b; color: #78350f; }
.ai { background: var(--blue-pale); border: 1px solid rgba(41,97,200,.2); color: var(--blue-dark); }
.aico { font-size: 1rem; flex-shrink: 0; }

/* ── TABLES ── */
.dtable { width: 100%; border-collapse: collapse; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--s1); }
.dtable thead th { background: var(--ink); color: rgba(255,255,255,.75); font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 14px 20px; text-align: left; }
.dtable tbody td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .875rem; vertical-align: top; background: var(--white); }
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable tbody tr:hover td { background: var(--fog); }
.tdname { font-weight: 600; color: var(--ink); }
.tdsub { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.sok  { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; padding: 4px 11px; border-radius: 100px; background: #d1fae5; color: #065f46; }
.swip { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; padding: 4px 11px; border-radius: 100px; background: #e0f0ff; color: var(--blue-dark); }
.dlbtn { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; color: var(--blue); background: var(--blue-pale); border: 1px solid rgba(41,97,200,.2); padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; transition: background .2s; white-space: nowrap; }
.dlbtn:hover { background: var(--blue-light); }
.dloff { opacity: .4; cursor: not-allowed; }
.itable { width: 100%; border-collapse: collapse; }
.itable tr:nth-child(even) td { background: var(--fog); }
.itable td { padding: 11px 16px; border: 1px solid var(--line); font-size: .84rem; }
.itable td:first-child { font-weight: 600; color: var(--ink-mid); width: 38%; background: var(--blue-pale); }

/* ── FORM ── */
.fg2 { margin-bottom: 18px; }
.fg2 label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-mid); margin-bottom: 7px; }
.fc2 { width: 100%; padding: 11px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: var(--font-body); font-size: .875rem; background: var(--white); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.fc2:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41,97,200,.1); }
textarea.fc2 { height: 110px; resize: vertical; }
.fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fck { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.fck input { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }
.fck label { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.fck a { color: var(--blue); }

/* ── TIMELINE ── */
.tl { position: relative; padding-left: 28px; }
.tl::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1.5px; background: linear-gradient(to bottom, var(--blue), rgba(41,97,200,.1)); }
.tli { position: relative; margin-bottom: 36px; }
.tli:last-child { margin-bottom: 0; }
.tld { position: absolute; left: -35px; top: 5px; width: 12px; height: 12px; background: var(--blue); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--blue); }
.tly { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: 5px; display: block; }
.tli h4 { color: var(--ink); font-size: .97rem; margin-bottom: 6px; }
.tli p { font-size: .855rem; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: var(--ink); color: var(--white); padding: 14px 20px; border-radius: var(--r); font-size: .85rem; font-weight: 500; box-shadow: var(--s3); border-left: 3px solid var(--blue); transform: translateY(80px); opacity: 0; transition: all .35s var(--ease); display: flex; align-items: center; gap: 10px; max-width: 340px; pointer-events: none; }
.toast.show { transform: none; opacity: 1; pointer-events: auto; }

/* ── CHIPS ── */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; color: var(--blue-dark); background: var(--blue-light); padding: 5px 13px; border-radius: 100px; border: 1px solid rgba(41,97,200,.18); font-weight: 500; }
.chip .dot { width: 5px; height: 5px; background: var(--blue); border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── HOME HERO ── */
.hero {
  min-height: 100svh;
  background: linear-gradient(160deg, var(--blue-pale) 0%, var(--white) 55%);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero-orb1 { position: absolute; right: -80px; top: 10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(41,97,200,.12) 0%, transparent 65%); pointer-events: none; }
.hero-orb2 { position: absolute; right: 140px; top: 5%; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(41,97,200,.12); pointer-events: none; }
.hero-orb3 { position: absolute; right: 80px; top: 15%; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(41,97,200,.07); pointer-events: none; }
.hero-dots { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-image: radial-gradient(rgba(41,97,200,.09) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom right, transparent 30%, black 70%); -webkit-mask-image: linear-gradient(to bottom right, transparent 30%, black 70%); pointer-events: none; }
.hero-body { flex: 1; display: flex; align-items: center; position: relative; z-index: 2; padding: 56px 0 48px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(41,97,200,.08); border: 1px solid rgba(41,97,200,.18); border-radius: 100px; padding: 6px 16px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 28px; }
.hero-badge::before { content:''; width:5px; height:5px; background:var(--blue); border-radius:50%; flex-shrink:0; }
.hero h1 { max-width: 680px; margin-bottom: 24px; color: var(--ink); }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { color: var(--muted); font-size: 1.05rem; max-width: 520px; line-height: 1.8; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.htag { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 100px; padding: 5px 14px; font-size: .73rem; font-weight: 600; color: var(--ink-mid); box-shadow: var(--s1); }
.htag::before { content:'✓'; color: var(--blue); font-weight: 700; }

/* ── STATS BAR ── */
.stats-bar { background: var(--white); border-top: 1px solid var(--line); position: relative; z-index: 2; box-shadow: 0 -1px 0 var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { text-align: center; padding: 28px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-n { font-family: var(--font-disp); font-size: 2rem; color: var(--blue); display: block; line-height: 1; }
.stat-l { font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 7px; display: block; }

/* ── SERVICES GRID ── */
.svcs { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); margin-top: 52px; }
.svc { background: var(--white); padding: 40px 32px 36px; cursor: pointer; position: relative; transition: background .2s; text-decoration: none; display: block; color: inherit; overflow: hidden; }
.svc:hover { background: var(--blue-pale); }
.svc-bar { position:absolute; top:0; left:0; width:0; height:3px; background:var(--blue); transition:width .3s var(--ease); }
.svc:hover .svc-bar { width:100%; }
.svc-ico { width: 52px; height: 52px; background: var(--blue-light); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.svc h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 10px; }
.svc p { font-size: .86rem; line-height: 1.65; }
.svc-arr { position:absolute; bottom:24px; right:26px; color:var(--blue); font-size:.95rem; opacity:0; transition:opacity .2s, transform .2s; font-weight:700; }
.svc:hover .svc-arr { opacity:1; transform:translateX(3px); }

/* ── NETWORK ── */
.net { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.net-card { background: var(--blue); border-radius: var(--r-xl); padding: 48px; position: relative; overflow: hidden; }
.net-card::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 70% 60% at 80% 40%, rgba(255,255,255,.07) 0%, transparent 60%); pointer-events:none; }
.net-card::after { content:''; position:absolute; bottom:-60px; left:-60px; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.04); pointer-events:none; }
.net-lbl { font-size:.67rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.6); margin-bottom:8px; display:block; }
.net-val { font-family:var(--font-disp); font-size:2.8rem; color:var(--white); display:block; margin:4px 0 6px; line-height:1; }
.net-sub { font-size:.72rem; color:rgba(255,255,255,.5); margin-bottom:28px; display:block; }
.net-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; color: rgba(255,255,255,.8); background: rgba(255,255,255,.1); padding: 5px 13px; border-radius: 100px; border: 1px solid rgba(255,255,255,.15); }
.net-chip.hi { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.25); color:var(--white); font-weight:600; }
.net-chip .d { width:5px; height:5px; background:rgba(255,255,255,.6); border-radius:50%; }
.net-chip.hi .d { background:var(--white); }

/* ── NEWS CARDS ── */
.news-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.nc { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; text-decoration: none; display: block; color: inherit; background: var(--white); }
.nc:hover { transform: translateY(-4px); box-shadow: var(--s2); border-color: var(--blue-light); }
.nc-th { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.nc-th.blue { background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-light) 100%); }
.nc-body { padding: 22px; }
.nc-cat { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 9px; display: block; }
.nc h4 { color: var(--ink); font-size: .98rem; line-height: 1.35; margin-bottom: 8px; }
.nc p { font-size: .81rem; }
.nc-dt { font-size: .71rem; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: block; }

/* ── NEWS ARCHIVE ── */
.nfilters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.ft { padding: 7px 18px; border-radius: 100px; font-size: .78rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--line); color: var(--muted); background: var(--white); transition: all .18s; }
.ft:hover { border-color: var(--blue); color: var(--blue); }
.ft.on { background: var(--blue); color: var(--white); border-color: var(--blue); }
.ni { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; background: var(--white); }
.ni:hover { transform: translateY(-4px); box-shadow: var(--s2); border-color: var(--blue-light); }
.ni-th { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.ni-th.blue { background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-light) 100%); }
.ni-th.teal { background: linear-gradient(135deg, var(--teal-light) 0%, rgba(8,145,178,.12) 100%); }
.ni-body { padding: 24px; }
.ni-cat { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 9px; display: block; }
.ni h4 { color: var(--ink); font-size: 1.02rem; line-height: 1.35; margin-bottom: 10px; }
.ni p { font-size: .83rem; }
.ni-dt { font-size: .71rem; color: var(--muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: block; }
.ni-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ── CTA BAND ── */
.cband { background: var(--blue); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.cband::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 80% 80% at 50% 50%, rgba(255,255,255,.06) 0%, transparent 65%); pointer-events:none; }
.cband .wrap { position: relative; z-index: 1; }
.cband h2 { color: var(--white); max-width: 540px; margin: 8px auto 18px; }
.cband p { color: rgba(255,255,255,.7); max-width: 440px; margin: 0 auto 36px; }
.cband-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cband .ol { color: rgba(255,255,255,.7); justify-content: center; }
.cband .ol::before { background: rgba(255,255,255,.5); }

/* ── CHI SIAMO specific ── */
.gv { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.gc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; text-align: center; box-shadow: var(--s1); }
.gc-ico { font-size: 2rem; margin-bottom: 14px; }
.gc h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.gc p { font-size: .81rem; }
.nums { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.nm { background: var(--blue); border-radius: var(--r-lg); padding: 32px 24px; text-align: center; position: relative; overflow: hidden; }
.nm::after { content:''; position:absolute; bottom:-30px; right:-30px; width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,.05); pointer-events:none; }
.nm-n { font-family: var(--font-disp); font-size: 2.2rem; color: var(--white); display: block; line-height: 1; margin-bottom: 8px; }
.nm-l { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.partners { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pk { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--s1); }
.pk-ico { font-size: 1.6rem; }
.pk-n { font-weight: 700; font-size: .82rem; color: var(--ink); text-align: center; }
.pk-r { font-size: .74rem; color: var(--muted); text-align: center; }
.terr { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.tc { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 28px; }
.tclbl { font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 10px; display: block; }
.tc p { color: rgba(255,255,255,.75); font-size: .88rem; margin: 0; }

/* ── SERVIZI specific ── */
.sd { display: grid; grid-template-columns: 64px 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.sd:last-child { border-bottom: none; }
.sd-num { font-family: var(--font-disp); font-size: 2.8rem; color: var(--blue-light); line-height: 1; padding-top: 4px; }
.sd h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; }
.sn { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line); }
.sn:first-of-type { border-top: none; margin-top: 14px; }
.sn2 { color: var(--blue); font-weight: 700; flex-shrink: 0; }
.banks { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.bk { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--s1); }
.bk-n { font-family: var(--font-disp); font-size: 1.2rem; color: var(--ink); display: block; margin-bottom: 6px; }
.bk p { font-size: .8rem; margin: 0; }

/* ── MODULISTICA specific ── */
.doc-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.doc-sec { margin-bottom: 48px; }
.doc-sec-title { font-family: var(--font-body); font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* doc card grid */
.mod-section { margin-bottom: 56px; }
.mod-section-hdr { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--blue-light); }
.mod-section-ico { font-size: 1.5rem; }
.mod-section-title { font-family: var(--font-disp); font-size: 1.3rem; color: var(--ink); margin: 0; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-bottom: 8px; }
.mod-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--s1); transition: box-shadow .2s, border-color .2s; }
.mod-card:hover { box-shadow: var(--s2); border-color: rgba(41,97,200,.25); }
.mod-card-ico { font-size: 1.7rem; line-height: 1; }
.mod-card h4 { color: var(--ink); font-size: .92rem; margin: 0; line-height: 1.35; font-family: var(--font-body); font-weight: 600; }
.mod-card-desc { font-size: .78rem; color: var(--muted); margin: 0; flex: 1; line-height: 1.55; }
.mod-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.mod-card-note { font-size: .68rem; color: var(--muted); font-style: italic; line-height: 1.4; }
.mod-notice { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: var(--r); padding: 16px 20px; margin-bottom: 36px; font-size: .88rem; line-height: 1.65; }
.mod-notice strong { color: var(--ink); }
.mod-notice a { color: var(--blue); font-weight: 600; }

/* ── DIVENTA SOCIO specific ── */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.req { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--s1); }
.req-ico { font-size: 1.4rem; flex-shrink: 0; }
.req h4 { color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.req p { font-size: .8rem; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { text-align: center; }
.step-n { width: 48px; height: 48px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-disp); font-size: 1.4rem; margin: 0 auto 16px; }
.step h4 { color: var(--ink); font-size: .93rem; margin-bottom: 8px; }
.step p { font-size: .8rem; }
.vantaggi { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.vg { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 22px; box-shadow: var(--s1); }
.vg-ico { font-size: 1.6rem; margin-bottom: 14px; }
.vg h4 { color: var(--ink); margin-bottom: 8px; }
.vg p { font-size: .82rem; }

/* ── TRASPARENZA specific ── */
.tcat { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.tcat-nav { position: sticky; top: 96px; }
.tcat-nav-item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); cursor: pointer; font-size: .85rem; font-weight: 500; color: var(--muted); transition: all .18s; border: none; background: none; width: 100%; text-align: left; }
.tcat-nav-item:hover { color: var(--blue); background: var(--blue-pale); }
.tcat-nav-item.on { color: var(--blue); background: var(--blue-light); font-weight: 600; }
.tcat-nav-ico { font-size: 1rem; }
.doc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 12px; box-shadow: var(--s1); }
.doc-card h4 { color: var(--ink); font-size: .93rem; margin-bottom: 4px; }
.doc-meta { font-size: .75rem; color: var(--muted); margin-bottom: 14px; }

/* ── CONTATTI specific ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.cinfo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--s1); margin-bottom: 16px; }
.cinfo-card h4 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cinfo-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.cinfo-item:last-child { margin-bottom: 0; }
.cinfo-ico { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.cinfo-item p { font-size: .85rem; margin: 0; color: var(--ink-mid); }
.cinfo-item a { color: var(--blue); font-size: .85rem; }

/* ── SINGLE POST ── */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.post-content { max-width: 720px; }
.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.2rem; font-size: .95rem; color: var(--ink-mid); }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.5rem; color: var(--muted); font-size: .95rem; }
.post-content li { margin-bottom: .4rem; }
.post-sidebar { position: sticky; top: 96px; }
.post-meta-bar { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-meta-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.post-tag { display: inline-flex; background: var(--blue-pale); color: var(--blue-dark); border: 1px solid rgba(41,97,200,.15); border-radius: 100px; padding: 4px 13px; font-size: .72rem; font-weight: 600; }
.related-title { font-family: var(--font-body); font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .tcat { grid-template-columns: 1fr; }
  .tcat-nav { position: static; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 900px) {
  .fg { grid-template-columns: 1fr 1fr; }
  .fr2 { grid-template-columns: 1fr; }
  .svcs { grid-template-columns: 1fr; }
  .net { grid-template-columns: 1fr; gap: 40px; }
  .news-row { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .gv { grid-template-columns: 1fr 1fr; }
  .nums { grid-template-columns: repeat(2,1fr); }
  .partners { grid-template-columns: repeat(2,1fr); }
  .terr { grid-template-columns: 1fr; }
  .banks { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .vantaggi { grid-template-columns: 1fr 1fr; }
  .ni-grid { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nlinks { display: none; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.10); z-index: 799; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nlinks.open { display: flex; }
  .nlinks li { width: 100%; }
  .nlinks a { display: block; width: 100%; padding: 11px 14px; font-size: .9rem; border-radius: var(--r-sm); }
  .hb { display: flex; }
  .fg { grid-template-columns: 1fr; gap: 28px; }
  .fbot { flex-direction: column; align-items: flex-start; }
  .news-row { grid-template-columns: 1fr; }
  .hero-body { padding: 48px 0 40px; }
  .gv { grid-template-columns: 1fr; }
  .nums { grid-template-columns: 1fr 1fr; }
  .banks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .vantaggi { grid-template-columns: 1fr; }
  .ni-grid { grid-template-columns: 1fr; }
}

/* ── WORDPRESS ALIGNMENT ── */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 6px; }

/* ── ELEMENTOR COMPAT ── */
.elementor-section.elementor-section-stretched { width: 100% !important; max-width: 100% !important; left: 0 !important; }
body.elementor-page #nav { z-index: 9999; }
/* rimuove lo spazio bianco sotto il footer generato da Elementor su mobile */
html, body { height: auto !important; }
.elementor-inner, .elementor-canvas, .elementor-page-content { min-height: 0 !important; height: auto !important; }

/* ══════════════════════════════════════════════════════
   FUNZIONALITÀ AVANZATE (da Minds)
   ══════════════════════════════════════════════════════ */

/* ── Nav hide-on-scroll ── */
#nav { transition: transform .36s cubic-bezier(.22,1,.36,1), box-shadow .3s, background .3s; }
#nav.fi-nav-hidden { transform: translateY(-100%); }

/* ── Mobile fullscreen overlay ── */
.fi-mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--blue-dark);
  display: flex; flex-direction: column;
  padding: 84px 32px 40px;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  visibility: hidden;
}
.fi-mobile-menu.open { transform: none; visibility: visible; }
body.fi-nav-open { overflow: hidden; }

.fi-mobile-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  padding: 0;
}
.fi-mobile-close span {
  display: block; width: 18px; height: 1.5px; background: #fff; transition: none;
}
.fi-mobile-close span:nth-child(1) { transform: translateY(0.75px) rotate(45deg); }
.fi-mobile-close span:nth-child(2) { transform: translateY(-0.75px) rotate(-45deg); }
.fi-mobile-close:hover { background: rgba(255,255,255,.2); }

.fi-mobile-brand { margin-bottom: 32px; color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.fi-mnlinks { list-style: none; padding: 0; margin: 0; flex: 1; }
.fi-mnlinks li { border-bottom: 1px solid rgba(255,255,255,.08); }
.fi-mnlinks a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; font-size: 1.05rem; font-weight: 600;
  color: rgba(255,255,255,.8); text-decoration: none; transition: color .15s;
}
.fi-mnlinks a::after { content: '›'; font-size: 1.2rem; opacity: .4; }
.fi-mnlinks a:hover, .fi-mnlinks a.act { color: #fff; }
.fi-mnlinks a.ncta { color: #fff; }

.fi-mobile-footer { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.fi-mobile-cta {
  display: block; text-align: center; padding: 13px;
  background: #fff; color: var(--blue-dark) !important; font-weight: 700;
  border-radius: var(--r); text-decoration: none; font-size: .92rem;
}
.fi-mobile-cta::after { display: none !important; }
.fi-mobile-meta { font-size: .7rem; color: rgba(255,255,255,.35); text-align: center; }

/* Hide old dropdown on mobile — replaced by overlay */
@media (max-width: 640px) {
  .nlinks { display: none !important; }
}

/* ── Sticky CTA bar (appare dopo lo scroll della hero) ── */
.fi-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 890;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(100%); transition: transform .3s ease;
}
.fi-sticky-bar.visible { transform: none; }
.fi-sticky-bar.fi-hidden-by-menu { transform: translateY(100%) !important; }
.fi-sticky-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.fi-sticky-text { font-size: .8rem; color: rgba(255,255,255,.6); }
.fi-sticky-btns { display: flex; gap: 8px; flex-shrink: 0; }
.fi-sticky-btn {
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: .78rem; font-weight: 600; text-decoration: none;
  background: var(--blue); color: #fff; transition: background .2s; white-space: nowrap;
}
.fi-sticky-btn:hover { background: var(--blue-dark); }
.fi-sticky-btn--ghost {
  background: transparent; color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.18);
}
.fi-sticky-btn--ghost:hover { background: rgba(255,255,255,.07); color: #fff; }

@media (max-width: 640px) {
  .fi-sticky-text { display: none; }
  .fi-sticky-btn--ghost { display: none; }
  .fi-sticky-btns { width: 100%; }
  .fi-sticky-btn { flex: 1; text-align: center; padding: 12px; }
  .toast { bottom: 72px; right: 16px; }
}

/* ── Reveal on scroll ── */
.fi-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.fi-reveal.fi-revealed { opacity: 1; transform: none; }
/* staggered children */
.fi-reveal:nth-child(2) { transition-delay: .08s; }
.fi-reveal:nth-child(3) { transition-delay: .16s; }
.fi-reveal:nth-child(4) { transition-delay: .24s; }

/* rispetta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fi-reveal { opacity: 1; transform: none; transition: none; }
  #nav { transition: box-shadow .3s; }
  .fi-mobile-menu { transition: none; }
  .fi-sticky-bar { transition: none; }
}
