/* ══════════════════════════════════════════════════════════════
   ICARE — Foglio stile unificato
   Versione pulita: nessun conflitto, mobile-first
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --blu:      #0077B6;
  --blu-sc:   #005F92;
  --blu-ch:   #E8F4FB;
  --blu-med:  #90C8E8;
  --bianco:   #FFFFFF;
  --crema:    #F8FAFB;
  --beige:    #EEF4F8;
  --grigio:   #3a4a54;       /* Unico valore — contrasto accessibile */
  --testo:    #1A2B35;
  --rosso:    #C0392B;
  --verde:    #2E9E5B;
  --font-d:   'Cormorant Garamond', Georgia, serif;
  --font-b:   'Nunito Sans', sans-serif;
  --r:        10px;
  --tr:       0.3s ease;
  /* Altezza navbar — usata ovunque per coerenza */
  --nav-h:    72px;
}

html {
  scroll-behavior: smooth;
  /* Base accessibile per anziani/mobile; scale down su desktop */
  font-size: 17px;
}

body {
  font-family: var(--font-b);
  color: var(--testo);
  background: var(--bianco);
  line-height: 1.75;
  overflow-x: hidden;
}


/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */

nav {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 100vw;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,119,182,0.1);
  height: var(--nav-h);
  display: flex; align-items: center; padding: 0 1.25rem;
  transition: box-shadow var(--tr);
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.09); }

/* ── READING PROGRESS BAR ── */
#read-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;          /* 100% del viewport — mai overflow */
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: linear-gradient(90deg,
    var(--blu-sc)  0%,
    var(--blu)     55%,
    var(--blu-med) 100%
  );
  z-index: 201;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 119, 182, 0.35);
}


.nav-inner {
  max-width: 1340px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  /* nessun flex-grow di default: il logo rimane a sinistra */
}

.logo-flag {
  width: 48px; height: 48px; border-radius: 6px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid rgba(0,0,0,0.1); flex-shrink: 0;
}
.lf-v { background: #009246; }
.lf-b { background: #fff; }
.lf-r { background: #CE2B37; }

.logo-image { width: 100px; height: 100px; border-radius: 6px; object-fit: contain; flex-shrink: 0; display: block; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-assoc { font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grigio); }
.logo-icare { font-family: var(--font-d); font-size: 20px; font-weight: 600; color: var(--testo); line-height: 1; }
.logo-sub { font-size: 9px; color: var(--blu); font-weight: 600; letter-spacing: 0.04em; margin-top: 2px; }

.nav-menu {
  display: flex; align-items: center; list-style: none;
}
.nav-menu a {
  text-decoration: none;
  color: var(--grigio);
  font-size: 12.5px; font-weight: 400;
  padding: 8px 11px;
  transition: color var(--tr);
  border-right: 1px solid rgba(0,0,0,0.1);
  white-space: nowrap;
  /* Nessun min-height artificiale sui link navbar */
}
.nav-menu li:last-child a { border-right: none; }
.nav-menu a:hover { color: var(--blu); }
.nav-menu a.cta { color: var(--blu); font-weight: 600; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--testo); border-radius: 2px; }


/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  min-height: 100dvh;
  /* Forza larghezza intera viewport indipendentemente da qualsiasi antenato */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background: linear-gradient(160deg, #c8dde8 0%, #a8c8d8 30%, #8ab0c0 60%, #6898b0 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 30% 65%, rgba(160,200,220,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 65% 55%, rgba(200,225,235,0.5) 0%, transparent 65%);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  background: linear-gradient(to right, rgba(20,40,60,0.25) 0%, rgba(5,15,30,0.08) 45%, rgba(0,20,50,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto; width: 100%;
  /* box-sizing garantisce che il padding non sfori mai la larghezza */
  box-sizing: border-box;
  padding: calc(var(--nav-h) + 50px) 1.5rem 80px;
  display: flex; justify-content: flex-end; flex-direction: column; align-items: center;
}
.hero-box {
  max-width: 540px;
  /* fondamentale: non può mai superare la larghezza del genitore */
  width: 100%;
  box-sizing: border-box;
  color: white;
}
.hero-title {
  font-family: var(--font-d);
  /* clamp con floor 1.9rem: usabile anche a 280px */
  font-size: clamp(1.9rem, 8vw, 4.8rem);
  font-weight: 600; line-height: 1.05; margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.hero-quote {
  font-family: var(--font-d); font-style: italic;
  /* clamp con floor 0.9rem */
  font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  color: rgba(255,255,255,0.9); line-height: 1.5; margin-bottom: 0.4rem;
  word-break: break-word;
}
.hero-author { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-chip {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 12px; padding: 5px 14px; border-radius: 100px; letter-spacing: 0.04em;
}
.hero-content h1, .hero-content p { color: #FFFFFF; }

.btn-nl {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blu); color: white; border: none;
  padding: 14px 28px;
  font-family: var(--font-b); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background var(--tr), transform var(--tr);
  border-radius: 6px; min-height: 48px;
}
.btn-nl:hover { background: var(--blu-sc); transform: translateY(-2px); }


/* ══════════════════════════════════════════════════════════════
   SECTIONS GENERALI
   ══════════════════════════════════════════════════════════════ */

section { padding: 80px 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

.sec-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blu); margin-bottom: 0.75rem;
}
.sec-title {
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 3.5vw, 2.9rem);
  font-weight: 600; line-height: 1.15; margin-bottom: 1rem;
}
.sec-lead { font-size: 1rem; color: var(--grigio); max-width: 580px; line-height: 1.75; }

/* Animazioni fade-in — unica definizione */
.fi {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.fi.vis { opacity: 1; transform: translateY(0); }

.stagger-item {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-item.vis { opacity: 1; transform: translateY(0); }

.scale-in {
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.vis { opacity: 1; transform: scale(1); }

.slide-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-left.vis, .slide-right.vis { opacity: 1; transform: translateX(0); }


/* ══════════════════════════════════════════════════════════════
   CHI SIAMO
   ══════════════════════════════════════════════════════════════ */

#chi-siamo { background: var(--crema); }
.chi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.data-fondazione {
  background: var(--blu); color: white; border-radius: var(--r);
  padding: 1.25rem 1.75rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.data-f-num { font-family: var(--font-d); font-size: 2.5rem; font-weight: 600; line-height: 1; }
.data-f-txt { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.4; }
.data-f-txt strong { display: block; color: white; font-size: 14px; }

.acronym-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.ac-card {
  background: var(--bianco); border-radius: var(--r); padding: 1.25rem;
  border: 1px solid rgba(0,119,182,0.1); border-top: 3px solid var(--blu);
  transition: transform var(--tr);
}
.ac-card:hover { transform: translateY(-3px); }
.ac-letter { font-family: var(--font-d); font-size: 2.2rem; font-weight: 600; color: var(--blu); line-height: 1; }
.ac-word { font-size: 13px; font-weight: 600; color: var(--testo); }
.ac-desc { font-size: 12px; color: var(--grigio); margin-top: 3px; line-height: 1.4; }

.chi-right { display: flex; flex-direction: column; gap: 1rem; }
.info-card { background: var(--bianco); border-radius: var(--r); padding: 1.5rem; border: 1px solid rgba(0,119,182,0.1); }
.info-card h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blu); margin-bottom: 0.75rem; }
.info-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0.6rem; font-size: 1rem; color: var(--grigio); }
.info-row:last-child { margin-bottom: 0; }
.info-dot { width: 6px; height: 6px; background: var(--blu); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
/* Il div testuale deve poter shrinkare — senza min-width:0 il flex item traborda */
.info-row > div:last-child { min-width: 0; overflow-wrap: break-word; word-break: break-all; }
.info-row strong { color: var(--testo); display: block; font-size: 0.9rem; }

.quote-blu {
  background: var(--blu-ch); border-left: 3px solid var(--blu);
  border-radius: 0 var(--r) var(--r) 0; padding: 1.25rem 1.5rem;
}
.quote-blu p { font-family: var(--font-d); font-style: italic; font-size: 1.05rem; color: var(--testo); line-height: 1.5; }
.quote-blu cite { font-family: var(--font-b); font-style: normal; font-size: 11px; color: var(--grigio); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; display: block; }


/* ══════════════════════════════════════════════════════════════
   COSA FACCIAMO
   ══════════════════════════════════════════════════════════════ */

#cosa-facciamo { background: var(--bianco); }
.cosa-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.cosa-card {
  background: var(--crema); border-radius: var(--r); padding: 1.75rem;
  border: 1px solid rgba(0,119,182,0.1); position: relative; overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
}
.cosa-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blu); transform: scaleX(0); transform-origin: left; transition: transform var(--tr);
}
.cosa-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,119,182,0.1); }
.cosa-card:hover::before { transform: scaleX(1); }
.cosa-num { font-family: var(--font-d); font-size: 2.5rem; font-weight: 600; color: var(--blu); opacity: 0.15; line-height: 1; margin-bottom: 0.75rem; }
.cosa-card h3 { font-family: var(--font-d); font-size: 1.2rem; font-weight: 600; color: var(--testo); margin-bottom: 0.6rem; }
.cosa-card p { font-size: 0.9rem; color: var(--grigio); line-height: 1.65; }


/* ══════════════════════════════════════════════════════════════
   CURE DEL DOLORE
   ══════════════════════════════════════════════════════════════ */

#cure { background: var(--beige); }
.cure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.cure-box { background: var(--bianco); border-radius: var(--r); padding: 2rem; border: 1px solid rgba(0,119,182,0.1); }
.cure-box-title {
  background: var(--blu); color: white;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 6px; margin-bottom: 1.25rem; display: inline-block;
}
.cure-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.cure-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--grigio); padding: 0.75rem 0; }
.cure-list li::before { content: '→'; color: var(--blu); flex-shrink: 0; font-weight: 600; margin-top: 2px; }
.cure-list li strong { color: var(--testo); }
.cure-sub { font-size: 12px; color: rgba(94,110,122,0.7); margin-top: 2px; }

.ospedali-box { background: var(--blu); color: white; border-radius: var(--r); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.osp-title { font-family: var(--font-d); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.25rem; }
.osp-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.osp-item { background: rgba(255,255,255,0.12); border-radius: 8px; padding: 1rem 1.25rem; }
.osp-item h5 { font-size: 14px; font-weight: 600; color: white; margin-bottom: 3px; }
.osp-item p { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.4; }


/* ══════════════════════════════════════════════════════════════
   TERAPIE
   ══════════════════════════════════════════════════════════════ */

#terapie { background: var(--bianco); }
.terapie-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
.terapie-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.ter-card {
  background: var(--blu-ch); border-radius: var(--r); padding: 1.25rem;
  border: 1px solid rgba(0,119,182,0.15); transition: transform var(--tr), background var(--tr);
}
.ter-card:hover { transform: translateY(-3px); background: #d4eaf5; }
.ter-icon { font-size: 1.5rem; margin-bottom: 8px; }
.ter-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--testo); margin-bottom: 4px; line-height: 1.3; }
.ter-card p { font-size: 0.8rem; color: var(--grigio); line-height: 1.45; }


/* ══════════════════════════════════════════════════════════════
   SOSTIENICI
   ══════════════════════════════════════════════════════════════ */

#come-sostenerci { background: var(--beige); }
.sostieni-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.banco-card { background: var(--testo); color: white; border-radius: var(--r); padding: 2rem; margin-top: 1.5rem; }
.banco-card h4 { font-family: var(--font-d); font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; }
.banco-row { display: flex; flex-direction: column; gap: 0.75rem; }
.banco-item { background: rgba(255,255,255,0.07); border-radius: 6px; padding: 0.75rem 1rem; }
.banco-item label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); display: block; margin-bottom: 2px; }
.banco-item span { font-size: 14px; color: rgba(255,255,255,0.9); font-family: var(--font-b); letter-spacing: 0.03em; }
.banco-item span.mono {
  font-size: 13px;
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
  word-break: break-all;
  line-height: 1.5;
}

.cinque-box { background: var(--blu); color: white; border-radius: var(--r); padding: 2rem; }
.cinque-box h4 { font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.cinque-cf {
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin: 0.75rem 0;
  overflow-wrap: break-word;
}
.cinque-box p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }

.sostieni-mods { display: flex; flex-direction: column; gap: 1rem; }
.mod-item {
  background: var(--bianco); border-radius: var(--r); padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.07); display: flex; gap: 1rem; align-items: flex-start;
  transition: border-color var(--tr), transform var(--tr);
}
.mod-item:hover { border-color: var(--blu); transform: translateX(4px); }
.mod-badge {
  background: var(--blu); color: white; border-radius: 5px; padding: 4px 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  flex-shrink: 0; white-space: nowrap; margin-top: 2px;
}
.mod-badge.verde { background: var(--verde); }
.mod-badge.grigio { background: #5a6a74; }
.mod-item h4 { font-size: 14px; font-weight: 600; color: var(--testo); margin-bottom: 3px; }
.mod-item p { font-size: 0.9rem; color: var(--grigio); line-height: 1.5; }


/* ══════════════════════════════════════════════════════════════
   VOLONTARI
   ══════════════════════════════════════════════════════════════ */

#volontari { background: var(--bianco); }
.vol-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
.step { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.step:last-child { border-bottom: none; }
.step-n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blu-ch);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 1rem; font-weight: 600; color: var(--blu); flex-shrink: 0;
}
.step h4 { font-size: 14px; font-weight: 600; color: var(--testo); margin-bottom: 3px; }
.step p { font-size: 0.9rem; color: var(--grigio); line-height: 1.5; }
.vol-visual { background: var(--blu-ch); border-radius: 16px; padding: 2.5rem; text-align: center; }
.vol-big { font-family: var(--font-d); font-size: 4.5rem; font-weight: 600; color: var(--blu); line-height: 1; }
.vol-label { font-size: 13px; color: var(--grigio); margin-top: 6px; }
.vol-quote {
  font-family: var(--font-d); font-style: italic; font-size: 1.05rem;
  color: var(--testo); line-height: 1.5; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(0,119,182,0.15);
}


/* ══════════════════════════════════════════════════════════════
   BLOG / EVENTI
   ══════════════════════════════════════════════════════════════ */

#blog-eventi { background: var(--crema); }
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card {
  background: var(--bianco); border-radius: var(--r); overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06); transition: transform var(--tr), box-shadow var(--tr);
  text-decoration: none; display: block; color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,119,182,0.1); }
.blog-img { height: 180px; position: relative; overflow: hidden; }
.blog-img.blu { background: linear-gradient(135deg, #0077B6, #005F92); }
.blog-img.verde { background: linear-gradient(135deg, #2E9E5B, #1a6e3c); }
.blog-img.oro { background: linear-gradient(135deg, #C9A84C, #a07828); }
.blog-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform 0.5s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 1.25rem 1.5rem; }
.blog-tag-s { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blu); margin-bottom: 5px; display: block; }
.blog-card h3 { font-family: var(--font-d); font-size: 1.05rem; font-weight: 600; color: var(--testo); line-height: 1.3; margin-bottom: 5px; }
.blog-card p { font-size: 0.85rem; color: var(--grigio); line-height: 1.5; }
.blog-date { font-size: 11px; color: rgba(94,110,122,0.55); margin-top: 7px; display: block; }


/* ══════════════════════════════════════════════════════════════
   CONTATTI / FOOTER
   ══════════════════════════════════════════════════════════════ */

#contatti { background: var(--testo); color: white; padding: 80px 1.5rem 40px; }
.cnt-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem;
}
.cnt-left .sec-title { color: white; }
.cnt-left .sec-lead { color: rgba(255,255,255,0.5); }
.cnt-left .sec-tag { color: rgba(255,255,255,0.35); }
.cnt-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.cnt-row { display: flex; gap: 1rem; align-items: flex-start; }
.cnt-ic {
  width: 36px; height: 36px; border-radius: 6px; background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cnt-ic svg { width: 16px; height: 16px; stroke: var(--blu-med); fill: none; stroke-width: 2; }
.cnt-row strong { display: block; font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 400; margin-bottom: 2px; }
.cnt-row span { font-size: 0.9rem; color: rgba(255,255,255,0.85); }

.form-c { display: flex; flex-direction: column; gap: 0.8rem; }
.form-c input, .form-c textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 14px 16px; color: white;
  font-family: var(--font-b); font-size: 1rem; outline: none;
  transition: border-color var(--tr); min-height: 52px; width: 100%;
}
.form-c input::placeholder, .form-c textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-c input:focus, .form-c textarea:focus {
  border-color: var(--blu); outline: 3px solid rgba(0,119,182,0.35); outline-offset: 2px;
}
.form-c textarea { min-height: 120px; resize: vertical; }
.fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.btn-invia {
  background: var(--blu); color: white; border: none;
  padding: 14px 28px; border-radius: 6px;
  font-family: var(--font-b); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background var(--tr), transform var(--tr);
  align-self: flex-start; min-height: 48px;
}
.btn-invia:hover { background: var(--blu-sc); transform: translateY(-2px); }

.foot-bot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.foot-logo { font-family: var(--font-d); font-size: 1.2rem; color: rgba(255,255,255,0.4); }
.foot-links { display: flex; gap: 1.5rem; list-style: none; }
.foot-links a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color var(--tr); padding: 8px 0; }
.foot-links a:hover { color: rgba(255,255,255,0.7); }
.foot-copy { font-size: 11px; color: rgba(255,255,255,0.2); }


/* ══════════════════════════════════════════════════════════════
   LINK — nessuna sottolineatura di default, accessibilità ok
   ══════════════════════════════════════════════════════════════ */

a { text-decoration: none; }
a:hover, a:focus { text-decoration: none; }

/* Link testuali nelle pagine (non bottoni, non card) */
.page-section a,
.article-content a,
.page-list li a,
.contact-cta a,
.doc-list a {
  color: #005a8c;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page-section a:hover,
.article-content a:hover,
.page-list li a:hover,
.contact-cta a:hover,
.doc-list a:hover {
  color: #003d5c;
  text-decoration-thickness: 2px;
}


/* ══════════════════════════════════════════════════════════════
   ICONE PLACEHOLDER
   ══════════════════════════════════════════════════════════════ */

.icon-placeholder { width: 48px; height: 48px; object-fit: contain; display: block; }
.icon-placeholder.sm { width: 24px; height: 24px; }
.icon-placeholder.md { width: 36px; height: 36px; }
.icon-placeholder.lg { width: 56px; height: 56px; }


/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITÀ — focus visibile
   ══════════════════════════════════════════════════════════════ */

*:focus-visible {
  outline: 3px solid #0077B6;
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  background: #0077B6; color: white;
  padding: 16px 24px; font-size: 1rem; font-weight: 600;
  z-index: 9999; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* Screen-reader only — accessibilità */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}



/* ══════════════════════════════════════════════════════════════
   PAGINE SECONDARIE — Layout
   ══════════════════════════════════════════════════════════════ */

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* Page header banner */
.page-header {
  background: linear-gradient(135deg, var(--testo) 0%, #0d2233 60%, #0a1e2e 100%);
  padding: calc(var(--nav-h) + 40px) 1.5rem 52px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(0,119,182,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,119,182,0.10) 0%, transparent 60%);
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,119,182,0.4), transparent);
}
.page-header-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }

.page-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.5rem; transition: color var(--tr);
}
.page-back:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.page-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.page-tag {
  display: inline-block;
  background: rgba(0,119,182,0.25); border: 1px solid rgba(0,119,182,0.4);
  color: var(--blu-med); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 1rem;
}
.page-h1 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 600; color: white; line-height: 1.1; margin-bottom: 0.75rem;
}
.page-lead {
  font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 580px;
}

/* Page body */
.page-body {
  flex: 1; max-width: 860px; margin: 0 auto; width: 100%;
  padding: 3rem 1.5rem 5rem;
}

/* Section blocks */
.page-section { margin-bottom: 3rem; }
.page-section:last-child { margin-bottom: 0; }

.event-list .event-item + .event-item {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blu); margin-bottom: 0.6rem;
}
.page-section h2 {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600; color: var(--testo); line-height: 1.2; margin-bottom: 1rem;
}
.page-section h3 {
  font-family: var(--font-d); font-size: 1.15rem; font-weight: 600;
  color: var(--testo); margin-bottom: 0.6rem; margin-top: 1.5rem;
}
.page-section p {
  font-size: 1rem; color: var(--grigio); line-height: 1.8; margin-bottom: 0.75rem;
}
.page-section p:last-child { margin-bottom: 0; }

.page-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--blu-ch), rgba(0,119,182,0.05));
  margin: 2.5rem 0;
}

/* Info panel */
.info-panel {
  background: var(--crema); border: 1px solid rgba(0,119,182,0.12);
  border-left: 3px solid var(--blu); border-radius: 0 var(--r) var(--r) 0;
  padding: 1.5rem 1.75rem; margin: 1.25rem 0;
}
.info-panel p { margin: 0; font-size: 0.95rem; }
.info-panel strong { color: var(--blu); }

/* Highlight box codice fiscale */
.highlight-box {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-sc) 100%);
  color: white; padding: 2rem 2.25rem; border-radius: var(--r); margin: 1.5rem 0;
  position: relative; overflow: hidden;
}
.highlight-box::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.06);
}
.highlight-box h2 {
  font-family: var(--font-b); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 0.5rem;
}
.highlight-box .cf-num {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 300; letter-spacing: 0.1em; color: white; font-family: var(--font-b);
  word-break: break-all;
}
.highlight-box p { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 0.5rem; line-height: 1.5; }

/* Steps list */
.steps-list {
  list-style: none; counter-reset: steps;
  display: flex; flex-direction: column; gap: 0; margin-top: 1rem;
}
.steps-list li {
  counter-increment: steps; display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(0,119,182,0.07);
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(steps); width: 30px; height: 30px; border-radius: 50%;
  background: var(--blu-ch); color: var(--blu);
  font-family: var(--font-d); font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.steps-list li span { font-size: 1rem; color: var(--grigio); line-height: 1.65; padding-top: 3px; }

/* Bullet list */
.page-list { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }
.page-list li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.75rem 0; font-size: 1rem; color: var(--grigio);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.page-list li:last-child { border-bottom: none; }
.page-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blu); flex-shrink: 0; margin-top: 9px;
}

/* Document list */
.doc-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--bianco); border: 1px solid rgba(0,119,182,0.1); border-radius: 8px;
  margin-bottom: 0.65rem; text-decoration: none; color: var(--testo);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  min-height: 64px;
}
.doc-item:hover { border-color: var(--blu); transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,119,182,0.08); }
.doc-icon {
  width: 36px; height: 36px; background: var(--blu-ch); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-icon svg { width: 18px; height: 18px; stroke: var(--blu); fill: none; stroke-width: 1.8; }
.doc-name { font-size: 14px; font-weight: 600; color: var(--testo); }
.doc-type { font-size: 11px; color: var(--grigio); margin-top: 1px; }
.doc-arrow { margin-left: auto; color: var(--blu); opacity: 0.4; }
.doc-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Contact CTA */
.contact-cta {
  display: flex; align-items: center; gap: 1rem;
  background: var(--crema); border: 1px solid rgba(0,119,182,0.12);
  border-radius: var(--r); padding: 1.25rem 1.5rem; margin-top: 1.5rem;
}
.contact-cta-icon {
  width: 42px; height: 42px; background: var(--blu); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-cta-icon svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 1.8; }
.contact-cta p { margin: 0; font-size: 0.9rem; color: var(--grigio); }

/* Principle cards */
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.principle-card {
  background: var(--bianco); border: 1px solid rgba(0,119,182,0.1);
  border-top: 3px solid var(--blu); border-radius: 0 0 var(--r) var(--r);
  padding: 1.25rem 1.5rem; transition: transform var(--tr), box-shadow var(--tr);
}
.principle-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,119,182,0.08); }
.principle-card p { font-size: 0.9rem; line-height: 1.6; margin: 0; color: var(--grigio); }

/* Cookie type */
.cookie-type {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem;
  background: var(--bianco); border: 1px solid rgba(0,0,0,0.06); border-radius: 8px; margin-bottom: 0.75rem;
}
.cookie-badge {
  flex-shrink: 0; padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px;
}
.cookie-badge.tecnico { background: #E8F4FB; color: var(--blu); }
.cookie-badge.analitico { background: #EDF7F1; color: var(--verde); }
.cookie-badge.terze { background: #FFF5E6; color: #C06C00; }
.cookie-type h4 { font-size: 14px; font-weight: 600; color: var(--testo); margin-bottom: 3px; }
.cookie-type p { font-size: 0.9rem; color: var(--grigio); line-height: 1.5; margin: 0; }


/* ══════════════════════════════════════════════════════════════
   BLOG ARTICLE CARD
   ══════════════════════════════════════════════════════════════ */

.blog-article-card {
  background: var(--bianco); border: 1px solid rgba(0,0,0,0.07); border-radius: var(--r);
  margin-bottom: 1.25rem; text-decoration: none; display: grid;
  grid-template-columns: 220px 1fr; min-height: 180px;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  position: relative; overflow: hidden;
}
.blog-article-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: var(--blu); transition: height 0.35s ease; z-index: 2;
}
.blog-article-card:hover::before { height: 100%; }
.blog-article-card:hover { transform: translateX(4px); box-shadow: 0 8px 32px rgba(0,119,182,0.09); border-color: rgba(0,119,182,0.2); }

.blog-card-img {
  position: relative; overflow: hidden; background: var(--blu-ch); flex-shrink: 0;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform 0.5s ease;
}
.blog-article-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img:not(:has(img)),
.blog-card-img:has(img[src=""]),
.blog-card-img.no-image {
  background: linear-gradient(135deg, var(--blu-ch) 0%, rgba(0,119,182,0.18) 100%);
}
.blog-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,119,182,0.15), transparent); pointer-events: none;
}
.blog-card-body {
  padding: 1.5rem 1.75rem; display: flex; flex-direction: column; justify-content: space-between;
}
.blog-article-card h2 {
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 600;
  color: var(--testo); margin-bottom: 0.4rem; line-height: 1.3;
}
.blog-article-card p { font-size: 0.9rem; color: var(--grigio); line-height: 1.6; margin: 0; flex: 1; }
.blog-card-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.75rem; }
.blog-cat-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blu); background: var(--blu-ch); padding: 3px 10px; border-radius: 100px;
}
.blog-date-s { font-size: 12px; color: rgba(94,110,122,0.6); }
.event-status {
  display: inline-flex; align-items: center; margin-left: 0.75rem;
  padding: 0.18rem 0.65rem; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.event-status.upcoming {
  color: #1D6F3A;
  background: rgba(29,111,58,0.12);
  border: 1px solid rgba(29,111,58,0.22);
}
.event-status.past {
  color: #9B1F24;
  background: rgba(155,31,36,0.12);
  border: 1px solid rgba(155,31,36,0.22);
}
.blog-read-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem;
  font-size: 12.5px; font-weight: 600; color: var(--blu); letter-spacing: 0.04em;
}
.blog-read-more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--tr); }
.blog-article-card:hover .blog-read-more svg { transform: translateX(4px); }


/* ══════════════════════════════════════════════════════════════
   NEWSLETTER FORM
   ══════════════════════════════════════════════════════════════ */

.nl-form-wrap {
  background: var(--crema); border: 1px solid rgba(0,119,182,0.1);
  border-radius: var(--r); padding: 2rem; margin-top: 1.5rem;
}
.nl-form-wrap label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--grigio); margin-bottom: 6px; margin-top: 1.25rem;
}
.nl-form-wrap label:first-child { margin-top: 0; }
.nl-form-wrap input {
  width: 100%; padding: 14px 16px;
  border: 1px solid rgba(0,119,182,0.2); border-radius: 6px;
  font-family: var(--font-b); font-size: 1rem; color: var(--testo);
  background: var(--bianco); outline: none; min-height: 52px;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.nl-form-wrap input:focus { border-color: var(--blu); box-shadow: 0 0 0 3px rgba(0,119,182,0.1); }
.nl-submit {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 10px;
  background: var(--blu); color: white; border: none;
  padding: 14px 28px; font-family: var(--font-b); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 4px;
  min-height: 48px; transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.nl-submit:hover { background: var(--blu-sc); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,119,182,0.3); }
.nl-privacy-note { margin-top: 1.25rem; font-size: 12.5px; color: rgba(94,110,122,0.7); line-height: 1.6; }


/* ══════════════════════════════════════════════════════════════
   THANK YOU PAGE
   ══════════════════════════════════════════════════════════════ */

.thankyou-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: calc(100vh - var(--nav-h)); padding: 3rem 1.5rem;
}
.ty-check {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #2E9E5B, #1a6e3c); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; box-shadow: 0 8px 24px rgba(46,158,91,0.3);
}
.ty-check svg { width: 32px; height: 32px; stroke: white; fill: none; stroke-width: 2.5; }
.ty-title {
  font-family: var(--font-d); font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600; color: var(--testo); margin-bottom: 0.75rem;
}
.ty-lead { font-size: 1rem; color: var(--grigio); max-width: 420px; line-height: 1.7; margin-bottom: 2rem; }


/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════════════════════════ */

.article-meta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.article-content { color: var(--testo); line-height: 1.85; font-size: 1rem; }
.article-content h2 {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 600;
  color: var(--testo); margin: 2rem 0 0.75rem; line-height: 1.2;
}
.article-content p { color: var(--grigio); margin-bottom: 1rem; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 1.5rem 0; }
.article-aside {
  margin-top: 3rem; padding: 1.5rem; background: var(--crema);
  border-radius: var(--r); border: 1px solid rgba(0,119,182,0.1);
  font-size: 0.9rem; color: var(--grigio);
}
.article-aside strong { color: var(--blu); }


/* ══════════════════════════════════════════════════════════════
   FOOTER PAGINE SECONDARIE
   ══════════════════════════════════════════════════════════════ */

.page-footer { background: var(--testo); padding: 1.5rem 1.5rem; text-align: center; }
.page-footer-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.pf-logo { font-family: var(--font-d); font-size: 1.1rem; color: rgba(255,255,255,0.35); text-decoration: none; }
.pf-links { display: flex; gap: 1.5rem; list-style: none; }
.pf-links a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color var(--tr); padding: 8px 0; }
.pf-links a:hover { color: rgba(255,255,255,0.7); }
.pf-copy { font-size: 11px; color: rgba(255,255,255,0.2); }


/* ══════════════════════════════════════════════════════════════
   COMPONENTI EXTRA
   ══════════════════════════════════════════════════════════════ */

.btn-secondary {
  display: inline-block; background: transparent;
  border: 1px solid var(--blu); color: var(--blu);
  padding: 10px 16px; border-radius: 6px; text-decoration: none; font-weight: 600;
  min-height: 44px; transition: background var(--tr), color var(--tr);
}
.btn-secondary:hover { background: var(--blu-ch); color: var(--testo); text-decoration: none; }

.blog-list { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.blog-card-compact { background: var(--bianco); border-radius: 10px; padding: 1rem; border: 1px solid rgba(0,0,0,0.05); }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (601–980px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .chi-grid, .cure-grid, .sostieni-grid, .vol-grid, .cnt-grid, .terapie-intro {
    grid-template-columns: 1fr; gap: 2rem;
  }
  .cosa-grid, .terapie-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  /* Navbar mobile */
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    right: 1rem;
    left: auto;
    width: min(340px, 88vw);
    max-height: calc(100vh - var(--nav-h) - 30px);
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 26px 68px rgba(0,0,0,0.18);
    border-radius: 22px;
    z-index: 9999;
    overflow-y: auto;
    padding: 1.25rem 1rem 1.25rem;
    gap: 0.8rem;
    transform: translateY(-18px) scale(0.98);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  }
  .nav-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-menu li {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .nav-menu li:last-child {
    margin-bottom: 0;
  }
  .nav-menu a {
    display: block;
    border-right: none;
    border-bottom: none;
    padding: 16px 1rem;
    font-size: 1rem;
    color: var(--testo);
    text-align: center;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,119,182,0.12);
    border-radius: 18px;
    transition: color var(--tr), background var(--tr), transform var(--tr), border-color var(--tr);
  }
  .nav-menu a:hover {
    color: var(--blu);
    background: rgba(0,119,182,0.06);
    border-color: rgba(0,119,182,0.2);
    transform: translateX(2px);
  }
  .nav-menu a.cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--bianco);
    background: var(--blu);
    border-color: transparent;
    border-radius: 999px;
    padding: 14px 1rem;
    font-weight: 700;
    margin: 0 auto;
    max-width: 220px;
  }
  .nav-menu a.cta:hover {
    background: var(--blu-sc);
  }
  .nav-toggle {
    display: flex;
    border: 1px solid rgba(0,119,182,0.14);
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    padding: 10px;
  }
  .nav-toggle:hover {
    background: rgba(255,255,255,1);
  }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤600px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  html { font-size: 16px; }

  :root { --nav-h: 64px; }

  nav { padding: 0 1rem; }

  .nav-inner {
    padding: 0;
    /* Logo centrato su mobile */
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
  }
  /* Colonna sinistra vuota — bilancia il toggle a destra */
  .nav-inner::before { content: ''; display: block; }

  .nav-logo {
    justify-content: center;
  }
  .logo-sub { display: none; }
  .logo-icare { font-size: 1.1rem; }
  .logo-assoc { font-size: 0.65rem; }
  .logo-image { width: 40px; height: 40px; }

  /* Griglia a colonna singola */
  .cosa-grid, .terapie-grid, .acronym-box { grid-template-columns: 1fr 1fr; }
  .fr2 { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; text-align: center; }
  .foot-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }

  /* Blog article card: verticale */
  .blog-article-card {
    grid-template-columns: 1fr;
    grid-template-rows: 160px auto;
  }
  .blog-card-img { width: 100%; height: 160px; }
  .blog-card-body { padding: 1.25rem; }

  /* Pagine secondarie */
  .page-header { padding: calc(var(--nav-h) + 28px) 1.2rem 36px; }
  .page-body { padding: 1.75rem 1.2rem 4rem; }
  .principles-grid { grid-template-columns: 1fr; }
  .page-footer-inner { flex-direction: column; text-align: center; }
  .pf-links { justify-content: center; flex-wrap: wrap; }

  /* Codice fiscale non fuoriesce */
  .highlight-box { padding: 1.25rem 1.5rem; }
  .highlight-box .cf-num { font-size: 1.3rem; letter-spacing: 0.06em; }

  /* Contatti */
  .cnt-grid { gap: 2rem; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — SCHERMI MOLTO PICCOLI (≤380px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
  .logo-icare { font-size: 1rem; }
  .cosa-grid, .terapie-grid, .acronym-box { grid-template-columns: 1fr; }
  .highlight-box .cf-num { font-size: 1.1rem; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — SCHERMI MOLTO PICCOLI (≤340px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 340px) {
  /* Hero: padding ridotto, niente overflow */
  .hero-content {
    padding: calc(var(--nav-h) + 20px) 0.75rem 40px;
    align-items: flex-start;
  }
  .hero-title   { font-size: 1.75rem; }
  .hero-quote   { font-size: 0.85rem; }
  .hero-author  { font-size: 10px; margin-bottom: 1rem; }
  .hero-chips   { gap: 5px; margin-bottom: 1.25rem; }
  .hero-chip    { font-size: 10px; padding: 3px 9px; }
  .btn-nl       { font-size: 12px; padding: 11px 16px; width: 100%; justify-content: center; box-sizing: border-box; }

  /* Navbar */
  .logo-icare { font-size: 0.88rem; }
  .logo-assoc { font-size: 0.56rem; }
  .logo-image { width: 30px; height: 30px; }

  /* Layout */
  .cosa-grid, .terapie-grid, .acronym-box,
  .chi-grid, .sostieni-grid, .vol-grid,
  .cure-grid, .cnt-grid, .fr2 { grid-template-columns: 1fr; }

  .sec-title { font-size: 1.5rem; }
  .sec-lead  { font-size: 0.85rem; }
  input, textarea { font-size: 14px; }
}
