/* ============================================================
   SHARE Italy — foglio di stile
   Palette: navy istituzionale + teal + oro (accento dati)
   Tipografia: Source Serif 4 (titoli) + Public Sans (testo/UI)
   ============================================================ */

:root {
  --color-ink: #16233d;
  --color-navy: #1f3a5f;
  --color-navy-dark: #142338;
  --color-teal: #2e6e71;
  --color-teal-dark: #1f4c4e;
  --color-gold: #a97c34;
  --color-bg: #f5f6f2;
  --color-surface: #ffffff;
  --color-border: #dbded4;
  --color-muted: #5b6470;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --content-width: 1320px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
}

img { max-width: 100%; display: block; }

a {
  color: var(--color-teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--color-gold); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-navy-dark);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em 0;
}

h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em 0; max-width: none; }
.no-measure { max-width: none; }

.eyebrow {
  color: var(--color-teal-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4em;
}

.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Navigazione ---------- */

.site-header {
  background: var(--color-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--color-gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  flex: none;
}
.brand:hover { color: #fff; }
.logo-badge {
  flex: none;
  background: #fff;
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.brand-tag {
  font-size: 0.78rem;
  color: #cdd8e6;
  white-space: nowrap;
}
.brand-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}


.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

.site-nav {
  display: none;
}
.site-nav.is-open {
  display: block;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-navy-dark);
  border-bottom: 3px solid var(--color-gold);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}
.site-nav a {
  display: block;
  color: #e7ecf3;
  text-decoration: none;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.98rem;
}
.site-nav a[aria-current="page"] {
  color: var(--color-gold);
  font-weight: 600;
}

@media (min-width: 960px) {
  .site-nav {
    display: block !important;
    position: static;
    background: none;
    border: none;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    gap: 1.15rem;
  }
  .site-nav a {
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .site-nav a:hover { color: #fff; border-bottom-color: var(--color-gold); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--color-gold); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--color-navy);
  color: #fff;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
}
.hero .waves-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lede {
  color: #dbe4ef;
  font-size: 1.15rem;
  max-width: none;
}
.page-hero {
  background: var(--color-navy);
  color: #fff;
  padding: 2.6rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero .waves-bg { position: absolute; inset: 0; opacity: 0.35; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p.lede { color: #dbe4ef; font-size: 1.05rem; max-width: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--color-gold); color: #22190c; }
.btn-primary:hover { background: #bd8c3e; color: #22190c; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { color: #fff; border-color: #fff; }

/* ---------- Sezioni generiche ---------- */

section { padding: 3rem 0; }
section.alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
section.tight { padding: 2.2rem 0; }

/* ---------- Striscia statistiche ---------- */

@media (max-width: 479px) {
  .brand-tag { display: none; }
  .nav-toggle-label { display: none; }
  .brand-logo { height: 28px; }
  .logo-badge { padding: 0.3rem 0.55rem; }
  .brand-mark { font-size: 1.15rem; }
}

.stat-strip.cols-3 ul { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .stat-strip.cols-3 ul { grid-template-columns: repeat(3, 1fr); }
}
.stat-strip-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.3rem;
}
.stat-strip-heading img {
  width: 34px;
  height: auto;
  border: 1px solid var(--color-border);
  flex: none;
}
.stat-strip-heading h2 { margin: 0; }

.stat-strip.italy-strip {
  position: relative;
  background-image: url('../images/italy-flag-bg.jpg');
  background-size: cover;
  background-position: 50% 50%;
  border-top: none;
  border-bottom: none;
  overflow: hidden;
  animation: italyFlagWave 7s ease-in-out infinite;
}
@keyframes italyFlagWave {
  0%, 100% { background-position: 48% 50%; background-size: 102% 102%; }
  50% { background-position: 52% 48%; background-size: 108% 108%; }
}
.italy-strip .wrap { position: relative; z-index: 1; }
.italy-strip h2 {
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 3px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,0.9), 0 3px 10px rgba(0,0,0,0.7);
}
.stat-strip.italy-strip .label {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,0.9), 0 3px 10px rgba(0,0,0,0.7);
}
.stat-strip.italy-strip .num {
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,0.9), 0 3px 10px rgba(0,0,0,0.7);
}
.italy-strip li { border-left-color: rgba(255,255,255,0.45) !important; }
.italy-strip li:nth-child(2) .num {
  color: var(--color-navy-dark);
  text-shadow: none;
}
.italy-strip li:nth-child(2) .label {
  color: var(--color-ink);
  text-shadow: none;
}
@media (min-width: 720px) {
  .italy-strip li.nudge-right { padding-left: calc(3.5rem + 1cm); }
}
@media (max-width: 719px) {
  .stat-strip.italy-strip {
    background-image: none;
    background-color: #23b14d;
    animation: none;
    padding-bottom: 0;
  }
  .stat-strip.italy-strip ul {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 -1.5rem;
    padding: 0.5rem 0 0;
  }
  .stat-strip.italy-strip li { padding: 1.1rem 1.5rem; }
  .stat-strip.italy-strip li:nth-child(2) { background: #ffffff; }
  .stat-strip.italy-strip li:nth-child(3) { background: #ed1b24; }
}

.media-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .media-split { grid-template-columns: 0.9fr 1.1fr; }
  .media-split.reverse { grid-template-columns: 1.1fr 0.9fr; }
}
.media-split > img { width: 100%; max-width: 420px; margin: 0 auto; }
.media-split .media-text p:last-child { margin-bottom: 0; }

.photo-figure { margin: 0; }
.photo-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-border);
}
.photo-figure figcaption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}
.photo-figure figcaption a { color: inherit; }
.photo-figure.narrow { max-width: 400px; margin: 0 auto; }
.photo-figure.medium { max-width: 480px; margin: 0 auto; }
.cta-band .photo-figure img { border-color: rgba(255, 255, 255, 0.35); }
.cta-band .photo-figure figcaption { color: #dcece9; }
.cta-band .photo-figure figcaption a:hover { color: #fff; }

.stat-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat-strip ul {
  list-style: none;
  margin: 0; padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
}
@media (min-width: 720px) {
  .stat-strip ul { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .stat-strip li { border-left: 1px solid var(--color-border); padding-left: 1.25rem; }
  .stat-strip li:first-child { border-left: none; padding-left: 0; }
}
.stat-strip .num {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.stat-strip .label {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* ---------- Righe con divisore (feature list a due colonne) ---------- */

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature {
  border-top: 2px solid var(--color-navy);
  padding-top: 1rem;
}
.feature h3 { margin-bottom: 0.4em; }
.feature p { margin-bottom: 0; color: var(--color-muted); }

/* ---------- Elenco a definizione con riga verticale ---------- */

.topics-list {
  list-style: none;
  margin: 1.5rem 0 0; padding: 0;
  display: grid;
  gap: 0;
}
.topics-list li {
  border-left: 3px solid var(--color-teal);
  padding: 0.9rem 0 0.9rem 1.1rem;
  margin-bottom: 0.1rem;
}
.topics-list strong { color: var(--color-navy-dark); }

/* ---------- Card semplice (senza ombre, con bordo netto) ---------- */

.plain-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.5rem 1.6rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Persone / Team ---------- */

.person-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 2rem;
}
@media (min-width: 640px) {
  .person-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .person-grid { grid-template-columns: repeat(3, 1fr); }
}
.person-grid .person.featured { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .person-grid .person.featured { justify-content: center; }
}
@media (min-width: 960px) {
  .person-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

.person {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.person:last-child { border-bottom: none; }
.avatar {
  flex: none;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  overflow: hidden;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.person-body h4 { margin-bottom: 0.15em; }
.person-body h4 a { color: var(--color-navy-dark); text-decoration-thickness: 1px; }
.person-body h4 a:hover { color: var(--color-gold); }
.person-role { color: var(--color-muted); font-size: 0.92rem; margin-bottom: 0.15em; }
.person-email { font-size: 0.9rem; color: var(--color-muted); }

.simple-name-list {
  list-style: none;
  margin: 0.75rem 0 0; padding: 0;
  columns: 1;
}
@media (min-width: 640px) { .simple-name-list { columns: 2; } }
.simple-name-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  break-inside: avoid;
}

.institution-block { margin-bottom: 2.5rem; }
.institution-block:last-child { margin-bottom: 0; }
.institution-block h3 { color: var(--color-teal-dark); }

/* ---------- Timeline (Eventi) ---------- */

.timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1.6rem;
  border-left: 2px solid var(--color-border);
}
.timeline-item { position: relative; padding-bottom: 1.9rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 0.35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-navy);
}
.timeline-date {
  font-weight: 600;
  color: var(--color-navy-dark);
  font-size: 0.95rem;
  margin-bottom: 0.2em;
}
.timeline-date a {
  color: var(--color-teal-dark);
  text-decoration-thickness: 1px;
}
.timeline-date a:hover { color: var(--color-gold); }
.timeline-item p { color: var(--color-muted); margin-bottom: 0; }
.timeline-photo {
  margin-top: 0.75rem;
  border: 1px solid var(--color-border);
  max-width: 640px;
  overflow: hidden;
}
.timeline-photo img { width: 100%; display: block; }
.timeline-photo.portrait { max-width: 420px; }

/* ---------- Processo numerato (Dati) ---------- */

.steps {
  list-style: none;
  margin: 1.5rem 0 0; padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.step-num {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-navy);
  background: #fff;
  border: 2px solid var(--color-navy);
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.step h4 { margin-bottom: 0.3em; }
.step p { margin-bottom: 0.4em; color: var(--color-muted); }

/* ---------- Documenti scaricabili ---------- */

.doc-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.25rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.doc-card h4 { margin-bottom: 0.25em; }
.doc-card p { margin-bottom: 0; color: var(--color-muted); font-size: 0.95rem; }
.doc-download {
  flex: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  border: 1px solid var(--color-teal-dark);
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.doc-download:hover { background: var(--color-teal-dark); color: #fff; }

/* ---------- Pubblicazioni ---------- */

.pub-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.pub-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.98rem;
  color: var(--color-ink);
}
.pub-list li:last-child { border-bottom: none; }
.pub-highlight {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.4rem 1.5rem;
}
.pub-highlight h4 { margin-bottom: 0.35em; }
.pub-highlight p { margin-bottom: 0; color: var(--color-muted); }

/* ---------- FAQ Accordion ---------- */

.faq-group { margin-bottom: 2.5rem; }
.faq-group:last-child { margin-bottom: 0; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.05rem 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q .icon {
  flex: none;
  width: 1.4rem; height: 1.4rem;
  border: 1.5px solid var(--color-navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--color-navy);
  transition: transform 0.15s ease;
}
.faq-item[data-open="true"] .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--color-muted);
}
.faq-item[data-open="true"] .faq-a {
  max-height: 40em;
  padding-bottom: 1.1rem;
}
.faq-a p { margin: 0; }

/* ---------- Link utili ---------- */

.link-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.link-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
}
.link-item a { font-weight: 600; font-size: 1.02rem; }
.link-item span { color: var(--color-muted); font-size: 0.94rem; }

/* ---------- Nota / avviso ---------- */

.notice {
  border-left: 3px solid var(--color-gold);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.1rem 1.4rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- CTA banda finale ---------- */

.cta-band {
  background: var(--color-teal-dark);
  color: #fff;
  padding: 2.4rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcece9; }
.cta-band .btn-primary { background: var(--color-gold); color: #22190c; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy-dark);
  color: #cfd8e3;
  padding: 2.4rem 0 1.6rem;
  font-size: 0.9rem;
}
.site-footer p { color: #cfd8e3; max-width: none; }
.site-footer .funders {
  margin-top: 0.6rem;
  color: #a9b8ca;
}
.site-footer .foot-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding: 0; margin: 0 0 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 1.4rem;
}
.site-footer .foot-nav a { color: #e7ecf3; text-decoration: none; font-size: 0.92rem; }
.site-footer .foot-nav a:hover { color: var(--color-gold); }
.site-footer .copyright { margin-top: 1rem; color: #8fa0b5; font-size: 0.82rem; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-muted { color: var(--color-muted); }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Persona in evidenza: occupa la colonna centrale della riga a 3 colonne */
@media (min-width:960px){
  .person-grid:not(.cols-2) .person.featured { width:calc((100% - 4rem) / 3); justify-self:center; }
}
@media (min-width:960px){
  .person-grid:not(.cols-2) .person.featured { justify-content:flex-start; }
}

/* Home: titolo + pulsante affiancati */
.hero-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:1rem 2rem; }
.hero-title-row h1 { margin:0; max-width:none; }

/* Striscia numeri europei: 5 voci */
@media (min-width: 720px) {
  .stat-strip:not(.cols-3) ul { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Spaziatura compatta (meno scroll verticale) ---------- */
section { padding: 1.9rem 0; }
section.tight { padding: 1.3rem 0; }
.hero { padding: 2.4rem 0 2.1rem; }
.page-hero { padding: 1.7rem 0; }
.cta-band { padding: 1.7rem 0; }
.btn-row { margin-top: 1.1rem; }
h1, h2, h3, h4 { margin-bottom: 0.45em; }
p { margin-bottom: 0.8em; }
.stat-strip ul { padding: 1.2rem 0; }
.feature-grid { gap: 1.2rem; }
.feature { padding-top: 0.7rem; }
.card-grid { gap: 0.9rem; }
.person { padding: 0.7rem 0; }
.institution-block { margin-bottom: 1.5rem; }
.faq-group { margin-bottom: 1.5rem; }
.timeline-item { padding-bottom: 1.2rem; }
.link-list { margin-top: 0.8rem; }
.site-footer { margin-top: 0; }

/* ---------- Numeri per l'Italia: bandiera compatta e centrata (desktop/tablet) ---------- */
@media (min-width: 720px) {
  .stat-strip.italy-strip {
    background: none;
    animation: none;
    overflow: visible;
    padding: 1.2rem 0;
  }
  .stat-strip.italy-strip .italy-flag {
    padding: 0.9rem 1.5rem 0.2rem;
    background-image: url('../images/italy-flag-bg.jpg');
    background-size: cover;
    background-position: 50% 50%;
    border-radius: 4px;
    overflow: hidden;
  }
  .stat-strip.italy-strip h2 { font-size: 1.2rem; margin-bottom: 0.2rem; }
  .stat-strip.italy-strip ul { padding: 0.6rem 0 0.8rem; }
  .stat-strip.italy-strip .num { font-size: 1.45rem; }
  .stat-strip.italy-strip .label { font-size: 0.8rem; }
  .stat-strip.italy-strip li { padding-left: 1rem; }
  .stat-strip.italy-strip li:first-child { padding-left: 0; }
  .italy-strip li.nudge-right { padding-left: calc(1rem + 0.5cm); }
}

/* Bandiera allineata: dal bordo sinistro della mappa al bordo destro del testo sotto */
@media (min-width: 760px) {
  .stat-strip.italy-strip .italy-flag {
    margin-left: max(0px, calc((100% - 2rem) * 0.225 - 210px));
  }
}
@media (min-width: 720px) {
  .stat-strip.italy-strip .num { font-size: 1.7rem; }
  .stat-strip.italy-strip .label { font-size: 0.88rem; }
  .stat-strip.italy-strip h2 { font-size: 1.35rem; }
}

/* Numeri per l'Italia: nessuna linea di separazione tra i numeri */
.stat-strip.italy-strip li { border-left: none !important; }

/* Elenco temi su 3 colonne e 2 righe (Pubblicazioni) */
.topics-list.cols-3 { margin-top: 0.8rem; }
@media (min-width: 720px) {
  .topics-list.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 0.6rem 1.5rem; }
  .topics-list.cols-3 li { margin-bottom: 0; padding: 0.7rem 0 0.7rem 1.1rem; }
}

/* Coppia di foto affiancate (Materiale informativo) */
.photo-pair { display:grid; grid-template-columns:1fr 1fr; gap:1rem; align-items:start; }

/* Foto piccole affiancate al testo (pagina Dati) */
.with-photo { display:grid; grid-template-columns:1fr; gap:1.2rem; align-items:start; }
.photo-figure.small { max-width:240px; }
@media (min-width: 720px) {
  .with-photo { grid-template-columns: 1fr 240px; gap:2rem; }
  .with-photo.left { grid-template-columns: 240px 1fr; }
}

/* Crediti delle foto: minuscoli e attaccati all'immagine */
.photo-figure figcaption { margin-top: 0.15rem; font-size: 0.62rem; line-height: 1.1; }
.with-photo.align-end { align-items: end; }
.with-photo.align-end { align-items: start; }
@media (min-width: 720px) {
  .with-photo.align-end { grid-template-columns: 1fr 180px; }
  .with-photo.align-end .topics-list { margin-top: 0; }
}
.with-photo.align-end .photo-figure.small { max-width: 180px; }

/* Interviste: elenco video su 2 colonne con miniatura YouTube */
.video-list { list-style:none; margin:1rem 0 0; padding:0; display:grid; grid-template-columns:1fr; gap:1.1rem 2rem; }
@media (min-width: 720px) { .video-list { grid-template-columns: 1fr 1fr; } }
.video-list li { display:flex; gap:1rem; align-items:flex-start; border-top:1px solid var(--color-border); padding-top:0.9rem; }
.video-thumb { position:relative; flex:none; width:168px; aspect-ratio:16/9; background:#1c2433; display:block; overflow:hidden; }
.video-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.video-info { min-width:0; }
.video-title { font-weight:600; color:var(--color-navy-dark); text-decoration:underline; text-underline-offset:2px; }
.video-title:hover { color:var(--color-teal); }
.video-meta { display:block; margin-top:0.25rem; font-size:0.9rem; color:var(--color-muted); }
@media (max-width: 480px) { .video-thumb { width:120px; } }

/* ---------- Selettore lingua IT / EN ---------- */
.lang-switch { display:inline-flex; gap:0.3rem; flex:none; }
.lang-switch a {
  display:inline-block; padding:0.18rem 0.55rem; min-width:2.1rem; text-align:center;
  font-size:0.78rem; font-weight:600; letter-spacing:0.04em; line-height:1.3;
  color:#e7ecf3; text-decoration:none;
  border:1px solid rgba(255,255,255,0.4); border-radius:3px;
}
.lang-switch a:hover { color:#fff; border-color:#fff; }
.lang-switch a[aria-current="true"] { background:var(--color-gold); border-color:var(--color-gold); color:#22190c; }
.site-header .wrap { position:relative; }
.lang-switch { margin-left:auto; margin-right:0.7rem; }
@media (min-width: 960px) {
  .lang-switch { position:absolute; top:8px; right:1.5rem; margin:0; }
}

/* Font ospitati localmente (nessuna chiamata a Google) */
@font-face { font-family:"Source Serif 4"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family:"Source Serif 4"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family:"Source Serif 4"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family:"Public Sans"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"Public Sans"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family:"Public Sans"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family:"Public Sans"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
.site-footer .privacy { margin:0.4rem 0; } .site-footer .privacy a { color:inherit; text-decoration:underline; }

/* Foto grandi affiancate al testo */
.photo-figure.big { max-width: 100%; }
@media (min-width: 720px) {
  .with-photo.big, .with-photo.align-end.big { grid-template-columns: 1fr 360px; gap: 2rem; }
  .with-photo.big.left { grid-template-columns: 360px 1fr; }
  .with-photo.align-end.big .photo-figure.big { max-width: 360px; }
}
.with-photo.big .photo-figure img { width: 100%; height: auto; }

/* Prima persona di ogni gruppo: da sola in riga, allineata a sinistra */
@media (min-width:640px){
  .person-grid .person.featured { justify-content:flex-start; }
}
@media (min-width:960px){
  .person-grid:not(.cols-2) .person.featured { justify-self:start; }
}

/* Foto centrata rispetto ai paragrafi (titolo sopra, a tutta larghezza) */
.with-photo.big.center { align-items: center; }
@media (min-width: 720px) {
  .with-photo.big.center { grid-template-columns: 1fr 460px; }
  .with-photo.big.center .photo-figure { max-width: 460px; }
}
.with-photo.big.center > div > p:first-child { margin-top: 0; }

/* Foto a sinistra con il testo che scorre anche sotto */
.float-wrap::after { content: ""; display: block; clear: both; }
@media (min-width: 720px) {
  .float-wrap .photo-figure.float-left { float: left; width: 460px; max-width: 460px; margin: 3.2rem 2rem 0.6rem 0; }
}
.float-wrap > p:first-of-type { margin-top: 0; }

@media (min-width: 720px) {
  .with-photo.big.center.left { grid-template-columns: 460px 1fr; }
}
.with-photo.big.center .doc-card { margin-top: 1rem; }

/* Titolo e testo vicini; foto media accanto */
.tight-head h2 { margin-bottom: 0.3rem; }
.tight-head p { margin-top: 0; }
@media (min-width: 720px) {
  .with-photo.mid { grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
}
.photo-figure.mid { max-width: 300px; }
.with-photo.mid .photo-figure img { width: 100%; height: auto; }
.with-photo.mid .tight-head h2 { margin-top: 0; }

/* Banner cookie */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #fff; color: var(--color-ink); border-top: 3px solid var(--color-gold); box-shadow: 0 -4px 18px rgba(20,35,56,0.18); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: center; justify-content: space-between; }
.cookie-banner .cookie-text { flex: 1 1 380px; font-size: 0.9rem; line-height: 1.45; }
.cookie-banner .cookie-text p { margin: 0.2rem 0 0; }
.cookie-banner .cookie-text a { color: var(--color-teal-dark); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions button { font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.5rem 0.9rem; border-radius: 4px; cursor: pointer; background: #fff; color: var(--color-navy); border: 1px solid var(--color-navy); }
.cookie-actions button:hover { background: #eef1f6; }
.cookie-actions button.primary { background: var(--color-navy); color: #fff; }
.cookie-actions button.primary:hover { background: var(--color-navy-dark); }

/* Pagina norme sui cookie */
.policy { max-width: 820px; }
.policy-index { background: #fff; border: 1px solid var(--color-border); border-radius: 6px; padding: 0.8rem 1.2rem; margin: 0 0 1.5rem; }
.policy-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.policy h2 { margin-top: 1.8rem; scroll-margin-top: 1rem; }
.policy h3 { margin: 1.2rem 0 0.2rem; font-size: 1.1rem; }
.policy-date { margin-top: 2rem; color: var(--color-muted); font-size: 0.9rem; }

/* Titolo accessibile ma non visibile (bandiera "Numeri per l'Italia") */
.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; }

/* Titolo "Numeri per l'Italia" sopra la bandiera */
.italy-title { padding: 1.4rem 0 0; }
.italy-title h2 { margin: 0; }
@media (min-width: 720px) {
  .stat-strip.italy-strip { padding-top: 0.8rem; }
}
@media (min-width: 760px) {
  .italy-title h2 { margin-left: max(0px, calc((100% - 2rem) * 0.225 - 210px)); }
}

/* Team: la prima persona di ogni gruppo non occupa più una riga a sé; le altre scorrono subito dopo, senza spazi vuoti */
.person-grid .person.featured { grid-column: auto !important; width: auto !important; justify-self: stretch !important; justify-content: flex-start !important; }

/* Team: la foto si ingrandisce al passaggio del mouse */
.avatar { position: relative; z-index: 1; transition: transform 0.25s ease, box-shadow 0.25s ease; will-change: transform; }
@media (hover: hover) {
  .avatar:hover {
    transform: scale(2.1);
    z-index: 20;
    box-shadow: 0 8px 24px rgba(20, 35, 56, 0.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .avatar { transition: none; }
}

/* Menu: le voci si ingrandiscono al passaggio del mouse */
@media (hover: hover) and (min-width: 960px) {
  .site-nav ul { padding: 0.4rem 0.35rem; gap: 1.05rem; }
  .site-nav a { display: inline-block; transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
  .site-nav a:hover { transform: scale(1.18); }
  .site-footer .foot-nav a { display: inline-block; transition: transform 0.2s ease, color 0.2s ease; }
  .site-footer .foot-nav a:hover { transform: scale(1.15); }
}
@media (hover: hover) and (max-width: 959px) {
  .site-footer .foot-nav a { display: inline-block; transition: transform 0.2s ease, color 0.2s ease; }
  .site-footer .foot-nav a:hover { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav a, .site-footer .foot-nav a { transition: none; }
}

/* Tasti e collegamenti: si ingrandiscono al passaggio del mouse */
.btn, .doc-download, .lang-switch a, .cookie-actions button, .video-thumb, .zoom-link {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.zoom-link { display: inline-block; }
@media (hover: hover) {
  .btn:hover, .doc-download:hover, .cookie-actions button:hover { transform: scale(1.08); }
  .lang-switch a:hover { transform: scale(1.12); }
  .video-thumb:hover { transform: scale(1.04); box-shadow: 0 6px 16px rgba(20,35,56,0.3); }
  .zoom-link:hover { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .doc-download, .lang-switch a, .cookie-actions button, .video-thumb, .zoom-link { transition: none; }
}

/* ---------- Bandiera: numeri e descrizione si ingrandiscono al passaggio del mouse ---------- */
.stat-strip.italy-strip li .num,
.stat-strip.italy-strip li .label { transition: transform 0.25s ease; transform-origin: left center; }
.stat-strip.italy-strip li .label { display: inline-block; }
@media (hover: hover) and (min-width: 720px) {
  .stat-strip.italy-strip li:hover .num { transform: scale(1.22); }
  .stat-strip.italy-strip li:hover .label { transform: scale(1.22); }
}

/* ---------- Numeri in totale: ogni riquadro si ingrandisce ---------- */
.stat-strip:not(.italy-strip) li { transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease; position: relative; }
@media (hover: hover) and (min-width: 720px) {
  .stat-strip:not(.italy-strip) li { padding-top: 0.4rem; padding-bottom: 0.4rem; padding-right: 0.8rem; }
  .stat-strip:not(.italy-strip) li:hover {
    transform: scale(1.12);
    z-index: 10;
    background: var(--color-bg);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(20, 35, 56, 0.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat-strip li { transition: none !important; }
}
