/* ============================================================
   COMPARTE ONLUS — Design System
   style.css
   ============================================================ */

/* ------------------------------------------------------------
   1. Google Fonts
   ------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Instrument+Sans:wght@400;500;600&display=swap');


/* ------------------------------------------------------------
   2. Custom Properties
   ------------------------------------------------------------ */

:root {
  /* Colori */
  --arancione:   #E8621A;
  --rosa:        #D4547A;
  --blu:         #1A4A6B;
  --crema:       #F5EFE0;
  --crema-dark:  #EDE3CC;
  --testo:       #1C1612;
  --testo-muted: #6B5040;
  --white:       #FFFFFF;

  /* Fonts */
  --font-display: 'Fraunces', serif;
  --font-body:    'Instrument Sans', sans-serif;

  /* Spacing */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  /* Typography scale */
  --text-xs:   13px;
  --text-sm:   15px;
  --text-base: 17px;
  --text-lg:   20px;
  --text-xl:   26px;
  --text-2xl:  36px;
  --text-3xl:  48px;
  --text-4xl:  64px;
}


/* ------------------------------------------------------------
   3. Reset
   ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}


/* ------------------------------------------------------------
   4. Base Styles
   ------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--crema);
  color: var(--testo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--arancione);
  color: var(--white);
}


/* ------------------------------------------------------------
   5. Utility Classes
   ------------------------------------------------------------ */

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--s3);
}

.container-narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--s3);
}

.section {
  padding-block: var(--s7);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ------------------------------------------------------------
   6. Nav
   ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--crema);
  border-bottom: 1px solid rgba(28, 22, 18, 0.08);
  padding: var(--s2) var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

header.scrolled .nav {
  box-shadow: 0 2px 20px rgba(28, 22, 18, 0.08);
}

.nav-logo img {
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--s4);
}

.nav-links a,
.lang-switch {
  color: var(--testo);
  opacity: 0.6;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.lang-switch:hover {
  opacity: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.nav-cta {
  background: var(--blu);
  color: var(--white);
  padding: var(--s2) var(--s3);
  border-radius: 40px;
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: #0F3250;
}


/* ------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------ */

#hero {
  background: var(--crema);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-spiral {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
  object-fit: contain;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: var(--s6);
  align-items: center;
  padding: var(--s2) 0;
  position: relative;
  z-index: 1;
}

.hero-text {
  padding-right: var(--s4);
}

.hero-tag {
  display: inline-block;
  background: var(--arancione);
  color: var(--white);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: var(--s4);
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  color: var(--testo);
  line-height: 1.05;
  font-weight: 300;
  margin-bottom: var(--s3);
}

#hero h1 em {
  color: var(--arancione);
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--testo-muted);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: var(--s5);
}

.hero-actions {
  display: flex;
  gap: var(--s3);
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--arancione);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #C44E0E;
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--testo);
  font-size: var(--text-base);
  text-decoration: none;
  opacity: 0.6;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn-ghost:hover {
  opacity: 1;
}

.hero-photo {
  position: relative;
  padding-top: var(--s5);
}

.hero-img-frame {
  border-radius: 20px 20px 80px 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
  background: var(--crema-dark);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-caption {
  position: absolute;
  bottom: var(--s2);
  left: var(--s2);
  background: rgba(28, 22, 18, 0.6);
  color: var(--white);
  font-size: var(--text-xs);
  padding: 4px 12px;
  border-radius: 40px;
  letter-spacing: 0.06em;
}

.hero-pill {
  position: absolute;
  bottom: -20px;
  left: -32px;
  background: var(--blu);
  color: var(--white);
  padding: var(--s3) var(--s4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.hero-pill-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1;
}

.hero-pill-label {
  font-size: var(--text-xs);
  opacity: 0.75;
  margin-top: 4px;
  max-width: 120px;
  line-height: 1.4;
}


/* ------------------------------------------------------------
   8. Cinque x Mille
   ------------------------------------------------------------ */

#cinque-x-mille {
  background: var(--blu);
  padding: var(--s7) 0;
  color: var(--white);
}

.cxm-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s7);
  align-items: start;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: var(--s3);
}

#cinque-x-mille h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--s4);
  color: var(--white);
}

#cinque-x-mille h2 em {
  color: var(--rosa);
  font-style: italic;
}

.cxm-intro {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: var(--s5);
  max-width: 480px;
}

.cxm-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-bottom: var(--s4);
}

.cxm-step {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--rosa);
  line-height: 1;
  min-width: 48px;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.step-text strong {
  font-size: var(--text-base);
  color: var(--white);
  font-weight: 600;
}

.step-text span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.cxm-note {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--s3);
}

.cxm-card {
  background: var(--white);
  border-radius: 24px;
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  position: sticky;
  top: 100px;
}

.cf-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--testo-muted);
  font-weight: 600;
}

.cf-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  color: var(--testo);
  letter-spacing: 0.04em;
  line-height: 1;
}

.cf-copy-btn {
  width: 100%;
  background: var(--arancione);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.cf-copy-btn:hover {
  background: #C44E0E;
}

.cf-copy-btn .copy-done {
  display: none;
}

.cf-copy-btn.copied .copy-text {
  display: none;
}

.cf-copy-btn.copied .copy-done {
  display: inline;
}

.cf-copy-btn.copied {
  background: var(--blu);
}

.cf-divider {
  height: 1px;
  background: rgba(28, 22, 18, 0.08);
  margin: var(--s1) 0;
}

.cf-also {
  font-size: var(--text-sm);
  color: var(--testo-muted);
}

.cf-bank {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--crema);
  border-radius: 12px;
  padding: var(--s3);
}

.cf-bank-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--testo-muted);
  font-weight: 600;
}

.cf-bank-iban {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--testo);
  font-weight: 600;
  letter-spacing: 0.04em;
}


/* ------------------------------------------------------------
   9. Chi siamo
   ------------------------------------------------------------ */

#chi-siamo {
  background: var(--crema);
  padding: var(--s7) 0;
}

.chisiamo-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s7);
  align-items: center;
}

.chisiamo-photo {
  position: relative;
}

.chisiamo-img-wrap {
  border-radius: 80px 20px 20px 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--crema-dark);
}

.chisiamo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chisiamo-origin {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--rosa);
  color: var(--white);
  padding: var(--s2) var(--s3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.origin-flag {
  font-size: 20px;
  line-height: 1;
}

.origin-text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-tag--dark {
  background: rgba(28, 22, 18, 0.08);
  color: var(--testo-muted);
}

#chi-siamo h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--s4);
  color: var(--testo);
}

#chi-siamo h2 em {
  color: var(--arancione);
  font-style: italic;
}

#chi-siamo p {
  font-size: var(--text-base);
  color: var(--testo-muted);
  line-height: 1.8;
  margin-bottom: var(--s3);
}

.chisiamo-quote {
  border-left: 3px solid var(--rosa);
  padding-left: var(--s3);
  margin: var(--s4) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--testo);
  line-height: 1.6;
}

.chisiamo-meta {
  display: flex;
  gap: var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid rgba(28, 22, 18, 0.08);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--testo);
  line-height: 1;
}

.meta-label {
  font-size: var(--text-xs);
  color: var(--testo-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ------------------------------------------------------------
   10. Impatto
   ------------------------------------------------------------ */

#impatto {
  background: var(--crema-dark);
  padding: var(--s7) 0;
}

.impatto-header {
  text-align: center;
  margin-bottom: var(--s6);
}

.impatto-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--testo);
  line-height: 1.1;
  margin-top: var(--s3);
}

.impatto-header h2 em {
  color: var(--arancione);
  font-style: italic;
}

.impatto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.impatto-card {
  background: var(--white);
  border-radius: 20px;
  padding: var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.impatto-card--accent {
  background: var(--arancione);
  color: var(--white);
}

.impatto-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  color: var(--testo);
  line-height: 1;
}

.impatto-card--accent .impatto-number {
  color: var(--white);
}

.impatto-label {
  font-size: var(--text-sm);
  color: var(--testo-muted);
  line-height: 1.6;
  flex: 1;
}

.impatto-card--accent .impatto-label {
  color: rgba(255, 255, 255, 0.8);
}

.impatto-project {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--arancione);
  margin-top: auto;
}

.impatto-card--accent .impatto-project {
  color: rgba(255, 255, 255, 0.6);
}


/* ------------------------------------------------------------
   11. Progetti
   ------------------------------------------------------------ */

#progetti {
  background: var(--crema);
  padding: var(--s7) 0;
}

.progetti-header {
  margin-bottom: var(--s6);
}

.progetti-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--testo);
  line-height: 1.1;
  margin-top: var(--s3);
}

.progetti-header h2 em {
  color: var(--arancione);
  font-style: italic;
}

.progetti-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

.progetto-card {
  border-radius: 24px;
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: transform 0.2s;
}

.progetto-card:hover {
  transform: translateY(-4px);
}

.progetto-card--comunidad {
  background: #1A4A6B;
  color: var(--white);
}

.progetto-card--universidad {
  background: var(--crema-dark);
  color: var(--testo);
}

.progetto-card--educacion {
  background: var(--arancione);
  color: var(--white);
}

.progetto-card--cinema {
  background: #2C1810;
  color: var(--white);
}

.progetto-card-top {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.progetto-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 40px;
  align-self: flex-start;
}

.progetto-card--universidad .progetto-tag {
  background: rgba(28, 22, 18, 0.1);
  color: var(--testo-muted);
}

.progetto-tag--sospeso {
  background: rgba(255, 255, 255, 0.1);
}

.progetto-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.2;
}

.progetto-card--universidad h3 {
  color: var(--testo);
}

.progetto-card p {
  font-size: var(--text-sm);
  line-height: 1.75;
  opacity: 0.85;
}

.progetto-card--universidad p {
  color: var(--testo-muted);
  opacity: 1;
}

.progetto-card-bottom {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.progetto-card--universidad .progetto-card-bottom {
  border-top-color: rgba(28, 22, 18, 0.1);
}

.progetto-meta {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}

.progetto-meta span {
  font-size: var(--text-xs);
  opacity: 0.75;
}


/* ------------------------------------------------------------
   12. Galleria
   ------------------------------------------------------------ */

#galleria {
  background: var(--crema-dark);
  padding: var(--s7) 0;
}

.galleria-header {
  margin-bottom: var(--s5);
}

.galleria-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--testo);
  line-height: 1.1;
  margin-top: var(--s3);
}

.galleria-header h2 em {
  color: var(--arancione);
  font-style: italic;
}

.galleria-slider {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s4);
  align-items: start;
}

.galleria-main-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--crema);
}

.galleria-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.galleria-main-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 22, 18, 0.7);
  padding: var(--s3) var(--s4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#galleria-caption-project {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--arancione);
}

#galleria-caption-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.galleria-arrows {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s3);
}

.galleria-arrow {
  background: white;
  border: 1px solid rgba(28, 22, 18, 0.12);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.galleria-arrow:hover {
  background: var(--arancione);
  color: white;
  border-color: var(--arancione);
}

.galleria-counter {
  font-size: var(--text-sm);
  color: var(--testo-muted);
  font-weight: 500;
}

.galleria-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 100px;
  gap: 8px;
}

.galleria-thumb {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  position: relative;
  width: 100%;
  height: 100px;
}

.galleria-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 3px solid transparent;
  transition: border-color 0.2s;
  pointer-events: none;
}

.galleria-thumb:hover {
  opacity: 0.75;
  border: none;
}

.galleria-thumb.active {
  opacity: 1;
  border: none;
}

.galleria-thumb.active::after {
  border-color: var(--arancione);
}

.galleria-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  min-height: 100px;
  max-height: 100px;
}


/* ------------------------------------------------------------
   13. Partner
   ------------------------------------------------------------ */

#partner {
  background: var(--crema);
  padding: var(--s7) 0;
}

.partner-header {
  margin-bottom: var(--s6);
}

.partner-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--testo);
  line-height: 1.1;
  margin-top: var(--s3);
}

.partner-header h2 em {
  color: var(--arancione);
  font-style: italic;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.partner-item {
  background: var(--white);
  border-radius: 16px;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s;
}

.partner-item:hover {
  transform: translateY(-2px);
}

.partner-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--testo);
}

.partner-desc {
  font-size: var(--text-xs);
  color: var(--testo-muted);
  line-height: 1.5;
}


/* ------------------------------------------------------------
   14. Press
   ------------------------------------------------------------ */

#press {
  background: var(--crema-dark);
  padding: var(--s7) 0;
}

.press-header {
  margin-bottom: var(--s6);
}

.press-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--testo);
  line-height: 1.1;
  margin-top: var(--s3);
}

.press-header h2 em {
  color: var(--arancione);
  font-style: italic;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}

.press-item {
  background: var(--white);
  border-radius: 16px;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  text-decoration: none;
  transition: transform 0.2s;
}

.press-item:hover {
  transform: translateY(-2px);
}

.press-source {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--arancione);
}

.press-title {
  font-size: var(--text-base);
  color: var(--testo);
  line-height: 1.5;
  font-weight: 500;
  flex: 1;
}

.press-date {
  font-size: var(--text-xs);
  color: var(--testo-muted);
}


/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */

footer {
  background: var(--blu);
  color: var(--white);
  padding: var(--s7) 0 var(--s4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s6);
  margin-bottom: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  filter: invert(1);
  opacity: 0.9;
  margin-bottom: var(--s3);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: var(--s4);
}

.footer-social {
  display: flex;
  gap: var(--s3);
}

.footer-social a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--s3);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer-col ul li {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-cf {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-cf-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.footer-cf-number {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.footer-bottom span {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-lang {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-lang:hover {
  color: var(--white);
}


/* ------------------------------------------------------------
   16. Responsive
   ------------------------------------------------------------ */

@media (max-width: 768px) {
  .nav {
    padding: var(--s2);
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    display: none;
  }

  .hero-spiral {
    width: 400px;
    height: 400px;
    right: -80px;
    opacity: 0.6;
  }

  #hero h1 {
    font-size: clamp(36px, 8vw, 48px);
  }

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

  .cxm-card {
    position: static;
  }

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

  .chisiamo-photo {
    display: none;
  }

  .chisiamo-meta {
    gap: var(--s3);
  }

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

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

  .galleria-slider {
    grid-template-columns: 1fr;
  }

  .galleria-thumbs {
    grid-template-columns: repeat(4, 1fr);
    max-height: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
