/* ============================================================
   style.css — Campagna Abu Safiya
   Palette: مستوحاة من الصورة — أخضر عميق / أحمر كريزم / كريمي / أسود
   Fonts: Source Serif 4 (عناوين) + Source Sans 3 (نصوص) — وضوح عالٍ
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&family=Cairo:wght@400;600;700;800&display=swap');

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

:root {
  /* ── Palette estratta dall'immagine ── */
  --green-deep:       #1B5E35;   /* sfondo verde dominante */
  --green-mid:        #245B3A;   /* verde leggermente più caldo */
  --green-dark:       #0F3B22;   /* verde quasi nero */
  --green-light:      #D6ECD8;   /* verde chiarissimo per sfondi */
  --red-crimson:      #C0392B;   /* rosso del cerchio */
  --red-dark:         #922B21;   /* rosso scuro per hover */
  --red-light:        #FDEDEC;   /* sfondo rosso chiarissimo */
  --cream:            #EDE8DC;   /* crema del viso */
  --cream-dark:       #D5CEBE;   /* crema più scura */
  --ink:              #1A1A1A;   /* quasi nero */
  --ink-mid:          #2C2C2C;   /* testo secondario scuro */
  --ink-soft:         #4A4A4A;   /* testo corpo */
  --white:            #FFFFFF;

  /* ── Mapping semantico ── */
  --color-bg:         var(--cream);         /* sfondo pagina — crema calda */
  --color-surface:    #F5F0E8;              /* card/sezione alternata */
  --color-surface-2:  #EDE8DA;
  --color-border:     var(--cream-dark);
  --color-text:       var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-text-light: #6B6B6B;
  --color-accent:     var(--red-crimson);
  --color-accent-dark:var(--red-dark);
  --color-accent-bg:  var(--red-light);
  --color-hero-bg:    var(--green-dark);   /* sfondo lato testo nell'hero */
  --color-badge-cam:  var(--green-deep);
  --color-badge-sen:  var(--red-dark);

  /* ── Tipografia — ampia per accessibilità ── */
  --font-serif:       'Source Serif 4', Georgia, serif;
  --font-sans:        'Source Sans 3', system-ui, sans-serif;

  /* ── Dimensioni base aumentate per leggibilità anziani ── */
  --text-base:        1.1rem;     /* 17.6px — base grande */
  --text-sm:          0.95rem;    /* 15.2px */
  --text-xs:          0.85rem;    /* 13.6px */
  --line-height:      1.78;

  --max-w:            780px;
  --max-w-wide:       1080px;
  --radius:           4px;
  --radius-md:        8px;
  --shadow-sm:        0 1px 4px rgba(26,26,26,.09);
  --shadow-md:        0 4px 20px rgba(26,26,26,.13);
  --t:                .2s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height);
  font-size: var(--text-base);
  position: relative;
  overflow-x: hidden;
}

.keffiyeh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('keffiyeh.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.03; /* Very subtle */
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }

/* ─── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-accent); color: var(--white);
  padding: .6rem 1.2rem; z-index: 9999;
  font-size: var(--text-sm); text-decoration: none;
  font-family: var(--font-sans);
}
.skip-link:focus { left: 0; }

/* ─── Header ─────────────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green-dark);
  border-bottom: 2px solid var(--green-deep);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--t);
}
#site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: .01em;
  line-height: 1.2;
  flex-shrink: 0;
}
.site-logo em {
  color: var(--red-crimson);
  font-style: normal;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  gap: .3rem;
  align-items: center;
  border: 1.5px solid rgba(237,232,220,.25);
  border-radius: 100px;
  padding: .25rem .3rem;
  background: rgba(237,232,220,.07);
}
.lang-btn {
  background: none;
  border: none;
  border-radius: 100px;
  padding: .32rem .85rem;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-sans);
  color: rgba(237,232,220,.65);
  cursor: pointer;
  transition: all var(--t);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lang-btn:hover { color: var(--cream); }
.lang-btn.active {
  background: var(--red-crimson);
  color: var(--white);
}

/* ─── Hero (Split Layout) ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--color-hero-bg);
}

.hero-img {
  position: relative;
  order: 2;
  background-image: url('drHossam.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  /* Sfumatura scura per fondere l'immagine con il pannello testo a sinistra */
  background: linear-gradient(to right, var(--green-dark) 0%, rgba(15,59,34,0) 25%);
}

.hero-content {
  position: relative;
  z-index: 1;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  color: var(--white);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(237,232,220,.55);
  margin-bottom: 1.6rem;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--red-crimson);
  flex-shrink: 0;
}
/* Separatore sottile tra testo e chiave --*/
.hero-key {
  display: inline-flex;
  align-items: center;
  color: rgba(237,232,220,.45);
  padding-left: .65rem;
  border-left: 1px solid rgba(237,232,220,.2);
  margin-left: .1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1.2rem;
  color: var(--cream);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(237,232,220,.78);
  max-width: 100%;
  margin-bottom: 2.6rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ─── CTA ────────────────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: linear-gradient(135deg, var(--red-crimson) 0%, #a82e21 100%);
  color: var(--white);
  text-decoration: none;
  padding: 1.1rem 2.4rem;
  border-radius: 50px; /* Pill shape per un look più moderno */
  font-weight: 700;
  font-size: var(--text-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.25);
  font-family: var(--font-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  width: fit-content;
}
.cta-btn svg {
  transition: transform 0.3s ease;
}
.cta-btn:hover {
  background: linear-gradient(135deg, #d34233 0%, var(--red-dark) 100%);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(192, 57, 43, 0.45);
  text-decoration: none;
}
.cta-btn:hover svg {
  transform: translate(3px, -3px) scale(1.1);
}
.cta-btn:active { transform: translateY(0); }

/* ─── Sezioni generali ───────────────────────────────────────── */
.section {
  padding: 5.5rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
}
.section:last-of-type { border-bottom: none; }
.section--surface { background: var(--color-surface); }

/* Sezione verde scuro (accento) */
.section--dark {
  background: var(--green-dark);
  color: var(--cream);
}
.section--dark .section-label { color: var(--red-crimson); }
.section--dark h2 { color: var(--cream); }
.section--dark p { color: rgba(237,232,220,.78); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1.75rem;
  letter-spacing: -.01em;
  color: var(--color-text);
}

.section p {
  color: var(--color-text-muted);
  margin-bottom: 1.3rem;
  font-size: var(--text-base);
  line-height: var(--line-height);
}

/* ─── "Chi è" ───────────────────────────────────────────────── */
.who-body {
  font-size: 1.1rem;
  line-height: 1.82;
  color: var(--color-text-muted);
  padding-left: 1.5rem;
  border-left: 3px solid var(--green-deep);
}
[dir="rtl"] .who-body {
  border-left: none;
  border-right: 3px solid var(--green-deep);
  padding-left: 0;
  padding-right: 1.5rem;
}

.quote-block {
  margin: 2.5rem auto;
  max-width: 90%;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--green-dark);
  font-style: italic;
  position: relative;
  padding: 1.5rem;
  background: rgba(27, 94, 53, 0.05); /* very light green background */
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(27,94,53,0.03);
}
.quote-block::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(27, 94, 53, 0.15);
  position: absolute;
  top: -10px;
  left: 10px;
}
.quote-block::after {
  content: '”';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(27, 94, 53, 0.15);
  position: absolute;
  bottom: -40px;
  right: 10px;
}
[dir="rtl"] .quote-block::before {
  left: auto;
  right: 10px;
  content: '”';
}
[dir="rtl"] .quote-block::after {
  right: auto;
  left: 10px;
  content: '“';
}

/* ─── Problema + Timeline ────────────────────────────────────── */
.problem-text {
  white-space: pre-line;
  line-height: 1.82;
  color: var(--color-text-muted);
  margin-bottom: 2.8rem;
  font-size: var(--text-base);
}

.timeline-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 1.3rem;
}

#timeline-list {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
}
[dir="rtl"] #timeline-list { padding-left: 0; padding-right: 1.75rem; }

#timeline-list::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 0;
  width: 2px;
  background: var(--green-light);
}
[dir="rtl"] #timeline-list::before { left: auto; right: 0; }

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
[dir="rtl"] .timeline-item { padding: 0 1.5rem 1.75rem 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red-crimson);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--red-crimson);
}
[dir="rtl"] .timeline-item::before { left: auto; right: -5px; }

.timeline-date {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--red-crimson);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.timeline-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* ─── Tabella statistiche ────────────────────────────────────── */
.stats-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}
.stats-table th {
  background: var(--green-dark);
  color: var(--cream);
  text-align: left;
  padding: .9rem 1.25rem;
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
}
 /* ─── Share Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 59, 34, 0.85); /* dark green transparent */
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--color-bg);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-md);
}
.modal-overlay.is-open .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none; border: none;
  font-size: 2rem; color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}
[dir="rtl"] .modal-close {
  right: auto; left: 15px;
}
.modal-content h3 {
  font-family: var(--font-serif);
  color: var(--green-deep);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.modal-content p {
  margin-bottom: 2rem;
  color: var(--ink-soft);
}
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.share-btn {
  display: block;
  padding: 1rem;
  border-radius: var(--radius);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity var(--t);
}
.share-btn:hover { opacity: 0.9; color: white; }
.share-btn.wa { background: #25D366; }
.share-btn.tw { background: #000000; }
.share-btn.fb { background: #1877F2; }

/* RTL Overrides for typography */
[dir="rtl"] {
  --font-sans: 'Cairo', system-ui, sans-serif;
  --font-serif: 'Cairo', system-ui, sans-serif;
}
[dir="rtl"] .stats-table th,
[dir="rtl"] .stats-table td { text-align: right; }
.stats-table td {
  padding: .82rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  line-height: 1.5;
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:nth-child(even) td { background: var(--color-surface); }
.stats-table td.num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
  font-family: var(--font-serif);
}

.stats-source {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-bottom: .7rem;
  font-style: italic;
  font-family: var(--font-sans);
}
.stats-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  padding-left: 1.1rem;
  border-left: 2px solid var(--green-light);
  font-family: var(--font-sans);
}
[dir="rtl"] .stats-note {
  padding-left: 0; padding-right: 1.1rem;
  border-left: none; border-right: 2px solid var(--green-light);
}

/* ─── Sezione Azione ─────────────────────────────────────────── */
.action-section { background: var(--green-dark); }
.action-section .section-label { color: var(--red-crimson); }
.action-section h2 { color: var(--cream); }
.action-intro {
  color: var(--white);
  margin-bottom: 1.75rem;
  font-size: var(--text-base);
}

.fetch-error {
  display: none;
  background: #FEF9E7;
  border: 1px solid #E0A800;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: var(--text-sm);
  color: #705A10;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

/* Selettore regione */
.region-select-wrap { margin-bottom: 1.75rem; }
.region-select-wrap label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(237,232,220,.85);
  margin-bottom: .55rem;
  font-family: var(--font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}
#region-select {
  width: 100%; max-width: 420px;
  padding: .85rem 1.1rem;
  border: 2px solid rgba(237,232,220,.25);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--cream);
  cursor: pointer;
  transition: border-color var(--t);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.5rem;
}
[dir="rtl"] #region-select {
  background-position: left .85rem center;
  padding-right: 1.1rem; padding-left: 2.5rem;
}
#region-select:focus {
  outline: none;
  border-color: var(--red-crimson);
  box-shadow: 0 0 0 3px rgba(192,57,43,.18);
}

/* Info destinatari */
#recipients-info {
  display: none;
  font-size: var(--text-sm);
  color: rgba(237,232,220,.75);
  margin-bottom: 1.1rem;
  font-family: var(--font-sans);
}
#recipients-info strong {
  color: var(--red-crimson);
  font-size: 1.3rem;
  font-family: var(--font-serif);
}

/* Toggle lista */
#list-toggle-btn {
  background: none; border: none;
  color: rgba(237,232,220,.65);
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; padding: 0;
  font-family: var(--font-sans);
  text-decoration: underline;
  margin-bottom: .9rem;
  display: block;
  letter-spacing: .02em;
}
#list-toggle-btn:hover { color: var(--cream); }

#list-section { margin-bottom: 1rem; }

.list-controls { display: flex; gap: 1.25rem; margin-bottom: .6rem; }
.link-btn {
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: var(--text-xs); font-weight: 700;
  color: rgba(237,232,220,.5);
  cursor: pointer; text-decoration: underline; padding: 0;
}
.link-btn:hover { color: var(--cream); }

.recipient-list {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(237,232,220,.2);
  border-radius: var(--radius);
  background: rgba(237,232,220,.07);
  padding: .4rem 0;
}
.recipient-list li {
  display: flex; align-items: center; gap: .65rem;
  padding: .45rem 1rem;
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(237,232,220,.1);
  font-family: var(--font-sans);
  color: rgba(237,232,220,.85);
}
.recipient-list li:last-child { border-bottom: none; }
.recipient-list li:hover { background: rgba(237,232,220,.1); }
.recipient-list input[type="checkbox"] {
  accent-color: var(--red-crimson);
  width: 16px; height: 16px;
  cursor: pointer; flex-shrink: 0;
}
.recipient-list label {
  cursor: pointer; display: flex; align-items: center;
  gap: .5rem; flex: 1; font-size: var(--text-sm);
}

.personal-send-btn {
  font-size: var(--text-xs) !important;
  padding: 0.35rem 0.6rem !important;
  width: auto !important;
  white-space: nowrap;
  opacity: 0.8;
}
.personal-send-btn:hover {
  opacity: 1;
}

.camera-badge {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 100px;
  color: var(--white); flex-shrink: 0;
  font-family: var(--font-sans);
}
.badge-camera { background: var(--green-deep); }
.badge-senate { background: var(--red-dark); }

/* Email textarea */
.email-text-label {
  display: block;
  font-size: var(--text-xs); font-weight: 700;
  color: rgba(237,232,220,.65);
  margin-bottom: .55rem; margin-top: 1.75rem;
  font-family: var(--font-sans);
  letter-spacing: .08em; text-transform: uppercase;
}
/* Form Dati Utente */
.user-data-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(237,232,220,.05);
  border: 1px solid rgba(237,232,220,.15);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cream);
  font-family: var(--font-sans);
}

.gender-toggle {
  display: flex;
  gap: 1rem;
  margin-top: 0.2rem;
}
.gender-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--cream);
}
.gender-option input[type="radio"] {
  accent-color: var(--red-crimson);
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.input-note {
  font-size: var(--text-sm);
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
}
.user-data-form input,
.user-data-form select {
  padding: 0.85rem 1rem;
  border: 2px solid rgba(237,232,220,.2);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  transition: border-color var(--t), box-shadow var(--t);
  background: transparent;
  color: var(--cream);
}
.user-data-form select option {
  background: var(--bg);
  color: var(--cream);
}
.user-data-form input:focus,
.user-data-form select:focus {
  outline: none;
  border-color: var(--red-crimson);
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}
.user-data-form input.error,
.user-data-form select.error {
  border-color: var(--red-crimson);
}
.error-msg {
  color: #ff6b6b; /* Un rosso più chiaro per contrasto su sfondo scuro */
  font-size: var(--text-xs);
  font-weight: 600;
  display: none;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
}

/* Anteprima email */
.email-preview-box {
  width: 100%; min-height: 180px;
  border: 2px solid rgba(237,232,220,.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  white-space: pre-wrap; /* Mantiene a capo */
  overflow-y: auto;
  opacity: 0.95;
}


/* Bottoni invio */
#send-buttons-container {
  display: flex; flex-wrap: wrap;
  gap: .8rem; margin-top: 1.4rem;
}
.send-btn { font-size: var(--text-sm); padding: .85rem 1.8rem; }
.send-btn.disabled,
.send-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(237,232,220,.15);
  border-color: transparent;
  color: rgba(237,232,220,.4);
  box-shadow: none;
}
.send-btn--secondary {
  background: rgba(237,232,220,.12);
  color: var(--cream);
  border: 1.5px solid rgba(237,232,220,.2);
}
.send-btn--secondary:hover {
  background: rgba(237,232,220,.2);
  color: var(--white);
  box-shadow: none; transform: none;
}

#action-panel { display: none; }

/* ─── Contatore ─────────────────────────────────────────────── */
.counter-box {
  margin-top: 2.2rem;
  padding: 1rem 1.4rem;
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: rgba(237,232,220,.75);
  display: flex; align-items: center;
  gap: .6rem; flex-wrap: wrap;
  font-family: var(--font-sans);
}
.counter-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red-crimson);
  line-height: 1;
}

/* ─── Accordion tutti i parlamentari ─────────────────────────── */
.accordion {
  border: 1px solid rgba(237,232,220,.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 2.5rem;
  background: rgba(237,232,220,.05);
}
#all-parl-toggle {
  width: 100%;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm); font-weight: 700;
  color: rgba(237,232,220,.8);
  cursor: pointer; text-align: left; gap: .5rem;
  transition: background var(--t);
}
[dir="rtl"] #all-parl-toggle { text-align: right; }
#all-parl-toggle:hover { background: rgba(237,232,220,.07); }
#all-parl-toggle .chevron { flex-shrink: 0; transition: transform var(--t); }
#all-parl-toggle.open .chevron { transform: rotate(180deg); }

#all-parl-body {
  display: none;
  padding: 1.1rem 1.4rem 1.4rem;
  border-top: 1px solid rgba(237,232,220,.15);
}
.all-parl-intro {
  font-size: var(--text-sm);
  color: rgba(237,232,220,.65);
  margin-bottom: 1.1rem;
  font-family: var(--font-sans);
}
#all-parl-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ─── Fonti (Design Creativo a Card) ───────────────────────── */
.sources-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
  counter-reset: src;
}
.sources-list li {
  counter-increment: src;
  background: var(--white);
  border: 1px solid rgba(27, 94, 53, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.2rem;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 2px 8px rgba(26,26,26,.04);
}
.sources-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(27, 94, 53, 0.1);
  border-color: rgba(27, 94, 53, 0.3);
}
/* Numero in filigrana (watermark) */
.sources-list li::before {
  content: counter(src, decimal-leading-zero);
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(27, 94, 53, 0.05); /* verde molto tenue */
  font-family: var(--font-serif);
  line-height: 1;
  pointer-events: none;
}
/* Contenuto testo in primo piano rispetto al numero */
.sources-list li > * {
  position: relative;
  z-index: 1;
}
/* Link in stile badge */
.sources-list a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red-crimson);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  background: rgba(192, 57, 43, 0.06);
  border-radius: 100px;
  transition: background var(--t), color var(--t);
  text-decoration: none;
}
.sources-list a:hover {
  background: var(--red-crimson);
  color: var(--white);
  text-decoration: none;
}
.sources-list a::after {
  content: '→';
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform var(--t);
}
.sources-list a:hover::after {
  transform: translateX(3px);
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--green-dark);
  border-top: 2px solid var(--green-deep);
  color: rgba(237,232,220,.55);
  padding: 2.8rem 1.75rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex; flex-wrap: wrap;
  gap: 1.75rem; align-items: flex-start;
  justify-content: space-between;
}
.footer-legal {
  font-size: var(--text-sm);
  max-width: 520px; line-height: 1.7;
  font-family: var(--font-sans);
}
.footer-petition {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-sm); font-weight: 700;
  color: rgba(237,232,220,.8); text-decoration: none;
  border: 1.5px solid rgba(237,232,220,.25);
  padding: .65rem 1.25rem; border-radius: 100px;
  transition: all var(--t); flex-shrink: 0;
  font-family: var(--font-sans);
}
.footer-petition:hover {
  background: rgba(237,232,220,.1);
  color: var(--cream);
  text-decoration: none;
}

/* ─── Hover states & Micro-animations ───────────────────────── */
tbody tr {
  transition: background-color var(--t), transform var(--t);
}
tbody tr:hover {
  background-color: rgba(237,232,220, 0.4);
}

/* ─── Scroll Animations ─────────────────────────────────────── */
.fade-up-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggering per liste */
ul li.fade-up-element,
tbody tr.fade-up-element {
  transition-delay: calc(var(--stagger-idx, 0) * 0.1s);
}

/* ─── Floating Animation (Olive Deco) ───────────────────────── */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.olive-deco {
  animation: float 6s ease-in-out infinite;
}

/* ─── Accessibilità ─────────────────────────────────────────── */
.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(--red-crimson);
  outline-offset: 3px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }
  .hero-img {
    order: 1;
    aspect-ratio: 4 / 3;
    width: 100%;
  }
  .hero-img::after {
    content: '';
    position: absolute; inset: 0;
    /* Sfumatura che va verso il basso per fondersi con la sezione sottostante */
    background: linear-gradient(to bottom, rgba(15,59,34,0) 60%, var(--green-dark) 100%);
  }
  .hero-content {
    order: 2;
    padding: 2.8rem 1.75rem 3.5rem;
    border-right: none;
    border-top: none; /* Rimuove la linea dura */
  }

  /* Ulivo "Chi è": riposizionato e più visibile */
  .olive-deco {
    width: 120px;
    right: -10px;
    opacity: 0.15;
  }

  /* Watermark azione: centrato in basso su tablet */
  .action-olive-watermark {
    width: 150px;
    right: 2%;
    opacity: 0.035;
  }
}

@media (max-width: 640px) {
  :root { --text-base: 1.05rem; }
  .header-inner { padding: .8rem 1rem; }
  .site-logo { font-size: 1rem; }
  .lang-btn { padding: .28rem .65rem; font-size: .72rem; }
  .hero-content { padding: 2.2rem 1.25rem 3rem; }
  .section { padding: 3.5rem 1.25rem; }
  .footer-inner { flex-direction: column; }
  #region-select { max-width: 100%; }
  .cta-btn { padding: .85rem 1.6rem; font-size: var(--text-sm); }
  .quote-block {
    font-size: 1.1rem;
    padding: 1.2rem;
    max-width: 100%;
  }
  .quote-block::before,
  .quote-block::after {
    font-size: 3rem;
  }

  /* ── Fix elementi decorativi su mobile ── */

  /* Ribbon: leggermente più alto per visibilità */
  .palestine-ribbon { height: 9px; }

  /* Tatreez band: leggermente più alto per leggibilità pattern */
  .tatreez-band { height: 32px; background-size: 32px 32px; }

  /* Ulivo "Chi è": nascosto su mobile — evita overflow e sovrapposizioni */
  .olive-deco { display: none; }

  /* Ornamento tatreez: linee più corte, gemme più visibili */
  .tatreez-ornament { margin: 1.2rem 0 1.4rem; gap: .5rem; }
  .tatreez-gems { font-size: 1rem; letter-spacing: .2em; }

  /* Watermark azione: nascosto su mobile per non sporcare il testo */
  .action-olive-watermark { display: none; }

  /* Footer olive: più piccolo e più dentro */
  .footer-olive {
    width: 65px;
    right: 20px;
    bottom: -10px;
    opacity: 0.06;
  }

  /* Puntini geometrici: più grandi per vederli su mobile */
  .section--surface::after {
    background-size: 20px 20px;
  }
}

/* ─── Scroll animation ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section {
  animation: fadeUp .5s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 18%;
}

/* ═══════════════════════════════════════════════════════════════
   ELEMENTI DECORATIVI PALESTINESI — tutti aria-hidden="true"
   ═══════════════════════════════════════════════════════════════ */

/* 1 ─── Ribbon solidarietà: 4 bande colori bandiera palestinese */
.palestine-ribbon {
  display: flex;
  width: 100%;
  height: 7px;
  flex-shrink: 0;
}
.pr-black { flex: 1; background: #1A1A1A; }
.pr-white { flex: 1; background: #EDE8DC; }
.pr-green { flex: 1; background: #1B5E35; }
.pr-red   { flex: 1; background: #C0392B; }

/* 2 ─── Fascia Tatreez: motivo ricamo tradizionale palestinese */
.tatreez-band {
  width: 100%;
  height: 38px;
  /* Pattern: croce con stella a 8 punte su sfondo verde — tatreez stilizzato */
  background-color: #1B5E35;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38'%3E%3Crect width='38' height='38' fill='%231B5E35'/%3E%3Crect x='13' y='17' width='12' height='4' fill='%23EDE8DC'/%3E%3Crect x='17' y='13' width='4' height='12' fill='%23EDE8DC'/%3E%3Ccircle cx='19' cy='19' r='2.5' fill='%23C0392B'/%3E%3Cpolygon points='19,11 22.5,15.5 27,19 22.5,22.5 19,27 15.5,22.5 11,19 15.5,15.5' fill='none' stroke='%23EDE8DC' stroke-width='0.9' opacity='0.55'/%3E%3Crect x='1' y='1' width='3' height='3' fill='%23EDE8DC' opacity='0.3'/%3E%3Crect x='34' y='1' width='3' height='3' fill='%23EDE8DC' opacity='0.3'/%3E%3Crect x='1' y='34' width='3' height='3' fill='%23EDE8DC' opacity='0.3'/%3E%3Crect x='34' y='34' width='3' height='3' fill='%23EDE8DC' opacity='0.3'/%3E%3Crect width='38' height='2' fill='%230F3B22'/%3E%3Crect y='36' width='38' height='2' fill='%230F3B22'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 38px 38px;
}

/* Variante footer: senza bordo superiore separato */
.tatreez-band--footer {
  border-top: none;
}

/* 3 ─── Ramo d'ulivo SVG decorativo (sezione Chi è) */
#who { position: relative; overflow: hidden; }
.olive-deco {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
[dir="rtl"] .olive-deco { right: auto; left: -24px; }
.olive-deco svg { display: block; width: 100%; height: auto; }

/* Forziamo il section-inner sopra il decorativo */
#who .section-inner { position: relative; z-index: 1; }

/* 4 ─── Ornamento tatreez: separatore capitolo con gemme */
.tatreez-ornament {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.5rem 0 1.75rem;
}
.tatreez-ornament::before,
.tatreez-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #1B5E35 40%, #C0392B 60%, transparent);
}
[dir="rtl"] .tatreez-ornament::before {
  background: linear-gradient(to left, transparent, #1B5E35 40%, #C0392B 60%, transparent);
}
[dir="rtl"] .tatreez-ornament::after {
  background: linear-gradient(to right, transparent, #1B5E35 40%, #C0392B 60%, transparent);
}
.tatreez-ornament--sm { margin: 2rem 0 0; }
.tatreez-gems {
  color: #C0392B;
  font-size: .85rem;
  letter-spacing: .25em;
  flex-shrink: 0;
  line-height: 1;
}

/* 5 ─── Puntini geometrici kuffiyeh sulle sezioni crema */
.section--surface { position: relative; }
.section--surface::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect x='11' y='11' width='2' height='2' fill='%231B5E35' opacity='0.09'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.section--surface .section-inner,
.section--surface > ol,
.section--surface > div { position: relative; z-index: 1; }

/* 6 ─── Watermark ulivo gigante nella sezione azione */
.action-section { position: relative; overflow: hidden; }
.action-olive-watermark {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
[dir="rtl"] .action-olive-watermark { right: auto; left: 3%; }
.action-olive-watermark svg { display: block; width: 100%; height: auto; }
.action-section .section-inner { position: relative; z-index: 1; }

/* 7 ─── Ulivo watermark nel footer */
footer { position: relative; overflow: hidden; }
.footer-olive {
  position: absolute;
  bottom: -15px;
  right: 50px;
  width: 90px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
[dir="rtl"] .footer-olive { right: auto; left: 50px; }
.footer-olive svg { display: block; width: 100%; height: auto; }
.footer-inner { position: relative; z-index: 1; }

/* Ripristina border-top del footer */
footer { border-top: 2px solid var(--green-deep); }

/* ═══ RILIEVI ARTISTICI PALESTINESI ═══════════════════════════
   Tutti con aria-hidden="true" — puramente decorativi
   ═══════════════════════════════════════════════════════════ */

/* 1 ── Miftah al-Awda — مفتاح العودة — Chiave del Ritorno
        Watermark grande dentro il pannello testo dell'hero  */
.hero-key-art {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 200px;
  opacity: 0.07;
  pointer-events: none;
  color: var(--cream);
}
.hero-key-art svg { display: block; width: 100%; height: auto; }

/* 2 ── Catene spezzate — simbolo della detenzione arbitraria
        Watermark sopra la sezione Problema (sfondo crema)   */
#problem { position: relative; overflow: hidden; }
.chains-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 600px;
  opacity: 0.04;
  pointer-events: none;
  color: var(--ink);
}
.chains-art svg { display: block; width: 100%; height: auto; }
#problem .section-inner { position: relative; z-index: 1; }

/* 3 ── Qubbat al-Sakhra — قبة الصخرة — Cupola della Roccia
        Silhouette artistica centrata nel footer              */
footer { position: relative; overflow: hidden; }
.footer-dome {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: 90vw;
  opacity: 0.06;
  pointer-events: none;
  color: var(--cream);
}
.footer-dome svg { display: block; width: 100%; height: auto; }
.footer-inner { position: relative; z-index: 1; }

/* Mobile: riduci dimensioni artwork */
@media (max-width: 900px) {
  .hero-key-art { width: 140px; right: 1.5rem; bottom: 1.5rem; }
  .chains-art { width: 90%; opacity: 0.035; }
  .footer-dome { width: 320px; opacity: 0.05; }
}
@media (max-width: 640px) {
  .hero-key-art { display: none; } /* troppo affollato su mobile */
  .chains-art { display: none; }
  .footer-dome { width: 240px; }
}


/* ─── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--green-deep);
  color: var(--cream);
  border: 2px solid rgba(237,232,220,0.2);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: var(--red-crimson);
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
[dir="rtl"] .back-to-top {
  right: auto;
  left: 30px;
}
@media (max-width: 600px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
  [dir="rtl"] .back-to-top {
    left: 20px;
  }
}
