/* ============================================================
   SOLIDALI — Design System v2.0
   Movimento Politico | Presidente: Emiliano Abramo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..900;1,14..32,300..900&family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700&display=swap');


/* ------------------------------------------------------------
   1. CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  /* Palette ufficiale */
  --color-orange:       #FF5C00;
  --color-orange-light: rgba(255, 92, 0, 0.07);
  --color-orange-mid:   rgba(255, 92, 0, 0.13);
  --color-green:        #2E8B00;
  --color-green-light:  rgba(46, 139, 0, 0.09);
  --color-blue:         #1C72C0;
  --color-blue-light:   rgba(28, 114, 192, 0.09);
  --color-red:          #A80000;
  --color-red-light:    rgba(168, 0, 0, 0.08);
  --color-amber:        #D4920A;
  --color-amber-light:  rgba(212, 146, 10, 0.09);

  /* Varianti da usare quando il colore è *testo* e non fondo.
     I colori della palette sono scelti per riempire: come scritta su chiaro
     nessuno di loro arriva al 4.5:1 che la WCAG 2.2 AA chiede per il testo
     normale (l'arancio su crema si ferma a 2.9:1). Queste varianti tengono la
     stessa tinta e superano il 4.5:1 su tutti i fondi chiari del sito, tinte
     delle pill comprese. Regola pratica: `background`/`border` usano il colore
     pieno, `color` usa la variante -text.
     Il rosso non ha variante perché già a 7.4:1. */
  --color-orange-text:  #B54100;
  --color-green-text:   #277600;
  --color-blue-text:    #1A69B2;
  --color-amber-text:   #8A5F06;
  /* Testo grande (≥24px, o ≥19px in grassetto): lì la soglia è 3:1 e basta
     questo, che a occhio è ancora il colore del marchio. Arancio e ambra sono
     gli unici due che non ce la fanno nemmeno a quella soglia: verde, blu e
     rosso pieni vanno bene sul testo grande così come sono. */
  --color-orange-display: #EE5600;
  --color-amber-display:  #B77E09;

  /* Neutrali */
  --color-black:        #0D0B08;
  --color-dark:         #161412;
  --color-mid:          #6E6762;
  --color-border:       #E8E2D9;
  --color-bg:           #FAF8F4;
  --color-bg-section:   #F4EFE8;
  --color-white:        #FFFFFF;

  /* Tipografia */
  --font-display: 'Barlow Condensed', 'Arial Black', Gadget, sans-serif;
  --font-sans:    'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;

  /* Spaziatura */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   48px;
  --space-xxl:  80px;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* Ombre */
  --shadow-xs:    0 1px 2px rgba(16, 14, 10, 0.05);
  --shadow-card:  0 1px 4px rgba(16, 14, 10, 0.06), 0 4px 16px rgba(16, 14, 10, 0.04);
  --shadow-hover: 0 8px 32px rgba(255, 92, 0, 0.14), 0 2px 8px rgba(16, 14, 10, 0.06);
  --shadow-nav:   0 1px 0 rgba(16, 14, 10, 0.06), 0 2px 16px rgba(16, 14, 10, 0.04);

  /* Transizioni */
  --transition:      0.16s ease;
  --transition-slow: 0.28s ease;

  /* Layout */
  --max-width:      1200px;
  --content-padding: 0 40px;
  /* Margine laterale delle sezioni di pagina. Molte pagine lo scrivono
     dentro uno `style` inline, che nessuna media query può riscrivere:
     passando da qui la stessa dichiarazione si adatta da sola. */
  --gutter:          32px;
}


/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Un numero di tessera, un'email o il nome di un file non hanno spazi:
     senza questo su un telefono allargano la pagina invece di andare a capo. */
  overflow-wrap: break-word;
}

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

a {
  color: var(--color-orange-text);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover { opacity: 0.78; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Indicatore di focus visibile da tastiera (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Rispetta la preferenza utente per ridurre le animazioni (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------------------------------------------------
   3. TIPOGRAFIA
   ------------------------------------------------------------ */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 80px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.5px;
  color: var(--color-black);
}

.text-display .accent { color: var(--color-orange-display); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: -0.5px;
  line-height: 0.96;
  color: var(--color-black);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--color-black);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
  line-height: 1.25;
  color: var(--color-black);
}

.label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-mid);
}

.label--orange { color: var(--color-orange-text); }

.body-lg {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-mid);
}

.body-md {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-mid);
}

.body-sm {
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-mid);
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-black);
}

.quote-sm {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
}

.meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-mid);
  font-family: var(--font-sans);
  letter-spacing: 0.2px;
}


/* ------------------------------------------------------------
   4. LAYOUT & GRID
   ------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

.section { padding: var(--space-xl) 0; }
.section--white    { background: var(--color-white); }
.section--bg       { background: var(--color-bg); }
.section--alt      { background: var(--color-bg-section); }
.section--dark     { background: var(--color-dark); }
.section--orange   { background: var(--color-orange); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.divider {
  height: 0.5px;
  background: var(--color-border);
  border: none;
  margin: 0;
}


/* ------------------------------------------------------------
   5. COMPONENTE: TICKER
   ------------------------------------------------------------ */
.ticker {
  background: var(--color-orange);
  height: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker__live {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.9);
  padding: 0 16px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker__track {
  overflow: hidden;
  flex: 1;
}

.ticker__items {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.ticker__item {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.92);
  padding: 0 28px;
}

.ticker__sep {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 4px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ------------------------------------------------------------
   6. COMPONENTE: NAVBAR
   ------------------------------------------------------------ */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-orange);
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 92, 0, 0.3);
}

.navbar__logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1;
}

.navbar__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-black);
  letter-spacing: -0.3px;
  line-height: 1;
}

.navbar__sub {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-mid);
  text-transform: uppercase;
  margin-top: 2px;
}

.navbar__nav {
  display: flex;
  gap: 2px;
}

.navbar__link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-mid);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.1px;
}

.navbar__link:hover {
  background: var(--color-orange-light);
  color: var(--color-orange-text);
  opacity: 1;
}

.navbar__link.active {
  background: var(--color-orange-light);
  color: var(--color-orange-text);
  font-weight: 600;
  opacity: 1;
}


/* ------------------------------------------------------------
   7. COMPONENTE: HERO
   ------------------------------------------------------------ */
.hero {
  background: var(--color-white);
  padding: 60px 40px 56px;
  border-bottom: 0.5px solid var(--color-border);
}

.hero > div {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.15);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 7.5vw, 76px);
  line-height: 0.88;
  letter-spacing: -0.5px;
  color: var(--color-black);
  margin-bottom: 4px;
}

.hero__title--accent { color: var(--color-orange-display); }

.hero__lead {
  font-size: 16px;
  line-height: 1.72;
  color: var(--color-mid);
  max-width: 480px;
  margin-bottom: 32px;
  margin-top: 22px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Box presidente */
.hero__president {
  background: var(--color-orange);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.hero__president::before {
  content: 'S';
  position: absolute;
  right: 20px;
  bottom: -16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 120px;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -2px;
}

.hero__president-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.hero__president-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.hero__president-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* Stat box */
.hero__stats {
  background: var(--color-white);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.hero__stat {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 14px 10px;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--color-black);
}

.hero__stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-mid);
  margin-top: 4px;
}


/* ------------------------------------------------------------
   8. COMPONENTE: PRINCIPI
   ------------------------------------------------------------ */
.principles {
  display: flex;
  flex-direction: column;
}

.principle-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 0.5px solid var(--color-border);
  align-items: start;
  transition: background var(--transition);
}

.principle-item:last-child { border-bottom: 0.5px solid var(--color-border); }

.principle-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  opacity: 0.14;
}

.principle-number--orange { color: var(--color-orange-text); }
.principle-number--green  { color: var(--color-green-text); }
.principle-number--amber  { color: var(--color-amber-text); }
.principle-number--blue   { color: var(--color-blue-text); }
.principle-number--red    { color: var(--color-red); }

.principle-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-black);
  margin-bottom: 6px;
}

.principle-body {
  font-size: 13px;
  line-height: 1.68;
  color: var(--color-mid);
}


/* ------------------------------------------------------------
   9. COMPONENTE: CARD NOTIZIE
   ------------------------------------------------------------ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
  box-shadow: var(--shadow-xs);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 92, 0, 0.25);
}

.news-card__stripe {
  height: 4px;
}

.news-card__stripe--green   { background: var(--color-green); }
.news-card__stripe--orange  { background: var(--color-orange); }
.news-card__stripe--blue    { background: var(--color-blue); }
.news-card__stripe--red     { background: var(--color-red); }
.news-card__stripe--amber   { background: var(--color-amber); }

.news-card__body { padding: 20px; }

.news-card__meta { margin-bottom: 12px; }

.news-card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.38;
  color: var(--color-black);
  margin-bottom: 8px;
}

.news-card__summary {
  font-size: 13px;
  line-height: 1.58;
  color: var(--color-mid);
  margin-bottom: 14px;
}

.news-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Cover image (estende .news-card) */
.news-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-section);
}

.news-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.news-card:hover .news-card__cover img { transform: scale(1.04); }

/* Filtri */
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: var(--color-bg-section);
  color: var(--color-mid);
}

.filter-btn:hover {
  background: var(--color-border);
  color: var(--color-black);
}

.filter-btn--active {
  background: var(--color-black);
  color: #fff;
}

.filter-btn--green  { background: var(--color-green-light);  color: var(--color-green-text); }
.filter-btn--orange { background: var(--color-orange-light); color: var(--color-orange-text); }
.filter-btn--blue   { background: var(--color-blue-light);   color: var(--color-blue-text); }
.filter-btn--red    { background: var(--color-red-light);    color: var(--color-red); }
.filter-btn--amber  { background: var(--color-amber-light);  color: var(--color-amber-text); }


/* ------------------------------------------------------------
   11. COMPONENTE: CARD EVENTI
   ------------------------------------------------------------ */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
  box-shadow: var(--shadow-xs);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 92, 0, 0.2);
}

.event-card__stripe { height: 3px; }

.event-card__body {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 18px;
  align-items: center;
}

.event-card--detailed .event-card__body { align-items: start; }

.event-date {
  border-radius: var(--radius-md);
  padding: 10px 0;
  text-align: center;
  flex-shrink: 0;
}

.event-date--primary  { background: var(--color-orange); }
.event-date--secondary {
  background: var(--color-bg-section);
  border: 0.5px solid var(--color-border);
}

.event-date__day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}

.event-date--primary .event-date__day   { color: var(--color-black); }
.event-date--secondary .event-date__day { color: var(--color-black); }

.event-date__month {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.event-date--primary .event-date__month  { color: rgba(13, 11, 8, 0.88); }
.event-date--secondary .event-date__month { color: var(--color-mid); }

.event-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-black);
  margin-bottom: 4px;
}

.event-location {
  font-size: 13px;
  color: var(--color-mid);
}

.event-desc {
  font-size: 14px;
  line-height: 1.58;
  color: var(--color-mid);
  margin-top: 8px;
}

.event-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   12. COMPONENTE: CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  background: var(--color-orange);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: 'SOLIDALI';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 18vw, 240px);
  color: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -3px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
}

.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 72px);
  color: #fff;
  line-height: 0.88;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  position: relative;
}

.cta-banner__lead {
  font-size: 15px;
  color: rgba(13, 11, 8, 0.86);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

.cta-banner__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}


/* ------------------------------------------------------------
   13. COMPONENTE: PILLS / BADGE
   ------------------------------------------------------------ */
.pill {
  display: inline-block;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
}

.pill--comunicato { background: var(--color-green-light);  color: var(--color-green-text); }
.pill--evento     { background: var(--color-orange-light); color: var(--color-orange-text); }
.pill--notizia    { background: var(--color-blue-light);   color: var(--color-blue-text); }

.pill--open     { background: rgba(46, 139, 0, 0.09);  color: var(--color-green-text); }
.pill--free     { background: var(--color-orange-light); color: var(--color-orange-text); }
.pill--booking  { background: var(--color-blue-light);   color: var(--color-blue-text); }
.pill--sovrano  { background: var(--color-orange-light); color: var(--color-orange-text); }


/* ------------------------------------------------------------
   14. COMPONENTE: BOTTONI
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1px;
  padding: 11px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1.2;
}

.btn--orange {
  background: var(--color-orange);
  color: var(--color-black);
  box-shadow: 0 2px 8px rgba(255, 92, 0, 0.28);
}

.btn--orange:hover {
  background: #e85200;
  box-shadow: 0 4px 16px rgba(255, 92, 0, 0.36);
  opacity: 1;
  color: var(--color-black);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--color-black);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 14, 10, 0.18);
}

.btn--dark:hover {
  background: #2a2720;
  opacity: 1;
  color: #fff;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-black);
}

.btn--outline:hover {
  border-color: var(--color-orange);
  color: var(--color-orange-text);
  background: var(--color-orange-light);
  opacity: 1;
}

.btn--outline-white {
  background: transparent;
  border: 1.5px solid rgba(13, 11, 8, 0.45);
  color: var(--color-black);
}

.btn--outline-white:hover {
  border-color: var(--color-black);
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
  color: var(--color-black);
}

.btn--white {
  background: #fff;
  color: var(--color-orange-text);
  box-shadow: 0 2px 10px rgba(16,14,10,0.1);
}

.btn--white:hover {
  box-shadow: 0 4px 18px rgba(16,14,10,0.14);
  opacity: 1;
  color: var(--color-orange-text);
  transform: translateY(-1px);
}

.btn--sm {
  font-size: 12px;
  padding: 7px 16px;
}

.btn--full {
  width: 100%;
  text-align: center;
}

.link {
  color: var(--color-orange-text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition);
}

.link:hover { text-decoration: underline; }


/* ------------------------------------------------------------
   15. COMPONENTE: FORM
   ------------------------------------------------------------ */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-mid);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-black);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-orange);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 13px;
  color: var(--color-mid);
  line-height: 1.6;
}

.contact-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.contact-box__label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-orange-text);
  margin-bottom: 6px;
}

.contact-box__value {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  overflow-wrap: anywhere;
}

a.contact-box__value { text-decoration: none; }
a.contact-box__value:hover { color: var(--color-orange-text); opacity: 1; }

.contact-box--orange {
  background: var(--color-orange);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 92, 0, 0.2);
}

.contact-box--orange .contact-box__label  { color: rgba(13, 11, 8, 0.86); }
.contact-box--orange .contact-box__value  { color: var(--color-black); }


/* ------------------------------------------------------------
   15b. COMPONENTE: MODALE
   ------------------------------------------------------------ */
/* Il riquadro scorre da solo e su schermo basso parte dall'alto: centrato
   e senza scorrimento, con la tastiera aperta, il campo attivo e il tasto
   di invio finivano sotto la tastiera stessa. */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 14, 10, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.site-modal__box {
  position: relative;
  background: var(--color-white);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  /* vh come rete per i browser che non conoscono dvh: senza un tetto,
     con l'overlay centrato il bordo alto del riquadro finirebbe fuori
     schermo e non ci si potrebbe arrivare. `margin:auto` centra senza
     tagliare, cosa che `align-items:center` da solo non garantisce. */
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 60px rgba(13, 11, 8, 0.28);
}

.site-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  color: var(--color-mid);
  cursor: pointer;
}

.site-modal__close:hover {
  background: var(--color-bg-section);
  color: var(--color-black);
}

@media (max-width: 600px) {
  .site-modal { padding: 12px; align-items: flex-start; }
  .site-modal__box {
    padding: 22px 18px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
}


/* ------------------------------------------------------------
   16. COMPONENTE: FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--color-dark);
  padding: 40px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  /* Nasce come filigrana, ma resta testo: al 5% era 1.2:1, invisibile. */
  color: rgba(255, 255, 255, 0.36);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: -6px;
}

.footer__brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.32);
}

.footer__social { display: flex; gap: 8px; }

.footer__social-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all var(--transition);
}

.footer__social-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.65);
}

.footer__grid {
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__link:hover { color: rgba(255, 255, 255, 0.86); }

.footer__bottom {
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
}

.footer__copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
}


/* ------------------------------------------------------------
   17. UTILITIES
   ------------------------------------------------------------ */
.text-orange { color: var(--color-orange-text); }
.text-green  { color: var(--color-green-text); }
.text-blue   { color: var(--color-blue-text); }
.text-red    { color: var(--color-red); }
.text-amber  { color: var(--color-amber-text); }
.text-mid    { color: var(--color-mid); }
.text-white  { color: #fff; }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap-sm  { gap: var(--space-sm); }
.flex-gap-md  { gap: var(--space-md); }
.flex-wrap    { flex-wrap: wrap; }

.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.section-divider {
  height: 0.5px;
  background: var(--color-border);
  border: none;
}

.manifesto-box {
  background: var(--color-dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.manifesto-box__label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-orange-text);
  margin-bottom: 18px;
}

.manifesto-box__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  border-left: 3px solid var(--color-orange);
  padding-left: 22px;
  margin-bottom: 16px;
}

.manifesto-box__attribution {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.36);
  margin-bottom: 22px;
  padding-left: 25px;
}

.values-box {
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-left: 4px solid var(--color-orange);
}

.org-table {
  display: flex;
  flex-direction: column;
}

.org-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--color-border);
  font-size: 13px;
}

.org-row:last-child { border-bottom: none; }

.org-row__name { color: var(--color-black); font-weight: 500; }
.org-row__role { color: var(--color-mid); font-size: 12px; }


/* ------------------------------------------------------------
   18. TOCCO
   ------------------------------------------------------------ */
/* Criterio: il puntatore, non la larghezza. Un portatile con schermo
   touch ha bisogno degli stessi bersagli di un telefono, e un telefono
   in orizzontale resta un telefono. */
@media (pointer: coarse) {
  /* Sotto i 16px iOS ingrandisce la pagina appena si tocca un campo, e
     non la rimpicciolisce più: da lì in poi si scrive di traverso. */
  input, select, textarea,
  .form-input, .form-select, .form-textarea {
    font-size: 16px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .btn--sm { min-height: 40px; }

  .link {
    display: inline-block;
    padding: 9px 0;
  }

  .filter-btn {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 12px;
  }

  .form-checkbox { padding: 6px 0; }

  .form-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 0;
  }

  /* Un tocco deve lasciare un segno: senza, il ritardo di rete sembra
     un tocco andato a vuoto e l'utente tocca di nuovo. */
  .news-card:active,
  .event-card:active { transform: scale(0.995); }
}


/* ------------------------------------------------------------
   19. MEDIA QUERIES
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  :root {
    --content-padding: 0 24px;
    --gutter: 24px;
  }

  .hero {
    padding: 40px 20px 36px;
  }

  .grid-2-1,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --content-padding: 0 16px;
    --gutter: 18px;
  }

  .hero__title {
    font-size: 46px;
  }

  .section { padding: var(--space-lg) 0; }

  .section-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .grid-3,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 28px 20px;
  }

  /* Testata e piede del footer: due flex senza wrap che a 360px si
     schiacciavano a vicenda. */
  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__social { flex-wrap: wrap; }
  .footer__social-btn { padding: 9px 16px; }
  .footer__links { gap: 2px; }
  .footer__link { padding: 8px 0; font-size: 13px; }

  /* La riga evento perde la colonna del bottone, non il bottone: prima
     `display:none` toglieva "Iscriviti" e "Scopri di più", cioè l'unico
     invito all'azione della lista eventi. */
  .event-card__body {
    grid-template-columns: 52px 1fr;
    row-gap: 12px;
    padding: 16px 18px;
  }

  .event-card .btn--sm {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .cta-banner {
    padding: 48px 20px;
  }

  .cta-banner__title {
    font-size: 44px;
  }

  .quote { font-size: 16px; }
}

/* Telefoni stretti (iPhone SE, 320-400px): qui le due colonne rimaste
   non hanno più larghezza da dividere. */
@media (max-width: 430px) {
  :root { --gutter: 14px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero__stats { grid-template-columns: 1fr; }

  .hero__title { font-size: 40px; }
  .cta-banner__title { font-size: 36px; }
}
