:root {
  --ink: #211B16;
  --paper: #F3E9D2;
  --paper-2: #EADFC2;
  --orange: #E64714;
  --orange-dark: #C13A0F;
  --yellow: #FED018;
  --white: #FFFDF8;
  --line: rgba(33,27,22,0.14);
  --radius: 2px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.eyebrow {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
button, .btn { font-family: 'Inter', sans-serif; cursor: pointer; border: none; }

/* ---------- NAV ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243,233,210,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 65px; width: auto; }
nav.menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
nav.menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
nav.menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
nav.menu a:hover::after,
nav.menu a.active::after { transform: scaleX(1); }
nav.menu a.active { color: var(--orange-dark); }
.nav-cta {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--orange-dark); }
.nav-cta--mobile { display: none; }
.nav-toggle { display: none; background: none; font-size: 26px; color: var(--ink); }
@media (max-width: 900px) {
  nav.menu { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-cta--mobile {
    display: inline-block;
    margin-top: 6px;
    text-align: center;
  }
}

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 76px 0 64px;
  position: relative;
}
.page-hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(33,27,22,0.5);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero .eyebrow::before { background: var(--yellow); }
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-top: 16px;
  max-width: 760px;
}
.page-hero--article h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}
.page-hero p.lede {
  margin-top: 18px;
  max-width: 620px;
  font-size: 17.5px;
  color: rgba(255,253,248,0.82);
}

/* ---------- HOME HERO ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; padding: 0; }
.hero-cover {
  width: 100%;
  height: clamp(260px, 40vw, 460px);
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.9;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(33,27,22,0.94) 0%, rgba(33,27,22,0.75) 38%, rgba(33,27,22,0.15) 72%);
}
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; width: 100%; }
.hero-inner .eyebrow { color: var(--yellow); margin-bottom: 18px; }
.hero-inner .eyebrow::before { background: var(--yellow); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.02; max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lede { max-width: 560px; margin-top: 22px; font-size: 18px; color: rgba(255,253,248,0.86); }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  padding: 15px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid rgba(255,253,248,0.5);
  color: var(--white);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-block;
}
.btn-ghost:hover { background: rgba(255,253,248,0.12); border-color: var(--white); }

/* ---------- SECTION SCAFFOLDING ---------- */
section { padding: 96px 0; position: relative; }
section.tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 14px; }
.section-head p { margin-top: 16px; color: rgba(33,27,22,0.72); font-size: 17px; }
.band-dark { background: var(--ink); color: var(--white); }
.band-dark .eyebrow { color: var(--yellow); }
.band-dark .eyebrow::before { background: var(--yellow); }
.band-dark .section-head p { color: rgba(255,253,248,0.72); }
.band-paper2 { background: var(--paper-2); }

/* ---------- CHI SIAMO ---------- */
.chisiamo-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.chisiamo-text p { font-size: 18.5px; color: rgba(33,27,22,0.85); }
.chisiamo-text .signoff { margin-top: 24px; font-family: 'Fraunces', serif; font-style: italic; font-size: 20px; color: var(--orange-dark); }
.chisiamo-photo { position: relative; }
.chisiamo-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.chisiamo-photo .tag {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--yellow); color: var(--ink);
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12.5px;
  padding: 10px 16px; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 860px) {
  .chisiamo-grid { grid-template-columns: 1fr; }
  .chisiamo-photo { order: -1; }
}

/* ---------- VALORI / PATTO ---------- */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.valore-card { background: var(--white); padding: 30px 22px; }
.valore-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(230,71,20,0.08);
  color: var(--orange);
  font-size: 16px;
}
.valore-card h3 { font-size: 17px; margin-bottom: 8px; line-height:1.1em; }
.valore-card p { font-size: 14px; color: rgba(33,27,22,0.66); margin: 0; }
@media (max-width: 900px) { .valori-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .valori-grid { grid-template-columns: 1fr; } }

/* ---------- PRIORITA ---------- */
.priorita-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.priorita-card { background: var(--paper); padding: 38px 28px; display: flex; flex-direction: column; gap: 16px; transition: background 0.25s ease; }
.priorita-card:hover { background: var(--white); }
.priorita-num { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; color: var(--orange); }
.priorita-card h3 { font-size: 21px; line-height: 1.25; }
.priorita-card p { font-size: 15px; color: rgba(33,27,22,0.68); margin: 0; }
@media (max-width: 900px) { .priorita-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .priorita-grid { grid-template-columns: 1fr; } }

/* ---------- IDEE / MANIFESTO ACCORDION ---------- */
.principi-list { border-top: 1px solid var(--line); }
.principio { border-bottom: 1px solid var(--line); }
.principio summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 22px; padding: 26px 4px;
}
.principio summary::-webkit-details-marker { display: none; }
.principio-index { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--orange); font-size: 15px; min-width: 34px; }
.principio-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(230,71,20,0.08);
  color: var(--orange);
}
.principio-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principio[open] .principio-icon { background: var(--orange); color: var(--white); }
.principio-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; flex: 1; }
.principio-plus { font-family: 'Space Mono', monospace; font-size: 20px; color: var(--orange); transition: transform 0.2s ease; }
.principio[open] .principio-plus { transform: rotate(45deg); }
.principio-body { padding: 0 4px 30px 62px; color: rgba(33,27,22,0.75); font-size: 16px; max-width: 720px; }
.principio-body ul { padding-left: 20px; margin: 12px 0 0; }
.principio-body li { margin-bottom: 6px; }

/* ---------- METODO / PATTO ---------- */
.metodo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255,253,248,0.16);
  border-bottom: 1px solid rgba(255,253,248,0.16);
}
.metodo-step {
  flex: 1;
  min-width: 140px;
  padding: 26px 20px;
  border-right: 1px solid rgba(255,253,248,0.16);
  text-align: center;
}
.metodo-step:last-child { border-right: none; }
.metodo-step .principio-index { color: var(--yellow); display: block; margin-bottom: 10px; }
.metodo-step p { margin: 0; font-size: 15px; color: rgba(255,253,248,0.85); }
@media (max-width: 760px) {
  .metodo-step { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,253,248,0.16); }
}

/* ---------- IN EVIDENZA (gallery) ---------- */
.gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.gallery-grid .g-main { grid-row: span 2; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
  color: var(--white); font-size: 14px; font-weight: 600;
}
.gallery-item.g-main { aspect-ratio: unset; min-height: 480px; }
.gallery-item.g-side { aspect-ratio: 16/10; }
@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-main { grid-row: auto; min-height: 320px; }
}

.gallery-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-simple .gallery-item { aspect-ratio: 4/3; }
@media (max-width: 760px) { .gallery-simple { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-simple { grid-template-columns: 1fr; } }

/* ---------- NOTIZIE ---------- */
.notizie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.notizia-card { background: var(--white); border: 1px solid var(--line); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.notizia-date { font-family: 'Space Mono', monospace; font-size: 12.5px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.notizia-card h3 { font-size: 19px; line-height: 1.3; }
.notizia-card p { font-size: 15px; color: rgba(33,27,22,0.68); margin: 0; flex: 1; }
.notizia-link { font-size: 14px; font-weight: 700; color: var(--orange); text-decoration: none; }
@media (max-width: 900px) { .notizie-grid { grid-template-columns: 1fr; } }

.notizia-full {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
  margin-bottom: 24px;
}
.notizia-full:last-child { margin-bottom: 0; }
.notizia-full h3 { font-size: 24px; margin: 10px 0 14px; }
.notizia-full p { color: rgba(33,27,22,0.72); font-size: 16px; }

/* ---------- PARTECIPA ---------- */
.partecipa { background: var(--orange); color: var(--white); text-align: center; padding: 90px 0; }
.partecipa h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 760px; margin: 0 auto; }
.partecipa p { max-width: 560px; margin: 20px auto 0; color: rgba(255,253,248,0.9); font-size: 17.5px; }
.partecipa .btn-primary { background: var(--ink); margin-top: 34px; }
.partecipa .btn-primary:hover { background: #000; }

.impegni-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.impegno-card { background: var(--paper); padding: 32px 22px; }
.impegno-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(230,71,20,0.08);
  color: var(--orange);
  font-size: 16px;
}
.impegno-card h3 { font-size: 17px; margin-bottom: 8px; }
.impegno-card p { font-size: 14px; color: rgba(33,27,22,0.66); margin: 0; }
@media (max-width: 900px) { .impegni-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .impegni-grid { grid-template-columns: 1fr; } }

.ruoli-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ruolo-card { background: var(--white); border: 1px solid var(--line); padding: 30px 26px; }
.ruolo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(230,71,20,0.08);
  color: var(--orange);
  font-size: 16px;
}
.ruolo-card h3 { font-size: 18px; margin-bottom: 10px; }
.ruolo-card p { font-size: 15px; color: rgba(33,27,22,0.68); margin: 0; }
@media (max-width: 860px) { .ruoli-grid { grid-template-columns: 1fr; } }

/* ---------- CONTATTI ---------- */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contatti-grid > * { min-width: 0; }
.contatti-form form { position: relative; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-family: 'Space Mono', monospace; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; color: rgba(255,253,248,0.6);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1.5px solid rgba(255,253,248,0.3);
  color: var(--white); font-family: 'Inter', sans-serif; font-size: 16px; padding: 10px 2px; outline: none;
  transition: border-color 0.2s ease;
}
.form-field select option { color: var(--ink); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--yellow); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-submit {
  margin-top: 12px; background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: 15px 32px; border-radius: var(--radius); font-size: 15px;
}
.form-submit:hover { background: #FFDD4E; }
.contatti-info { min-width: 0; max-width: 100%; }
.contatti-info .eyebrow { margin-bottom: 18px; }
.contatti-info h3 { font-size: 26px; margin-bottom: 20px; }
.info-row { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 16px 0; border-top: 1px solid rgba(255,253,248,0.16); min-width: 0; max-width: 100%; }
.info-row:last-of-type { border-bottom: 1px solid rgba(255,253,248,0.16); }
.info-row .k {
  font-family: 'Space Mono', monospace; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--yellow); min-width: 110px;
}
.info-row .v {
  font-size: 15.5px;
  color: rgba(255,253,248,0.88);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 200px;
}
.social-row { display: flex; gap: 14px; margin-top: 26px; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,253,248,0.3);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { background: var(--orange); border-color: var(--orange); }
.social-row img { width: 20px; height: 20px; }
.social-row svg { width: 19px; height: 19px; fill: var(--white); }
@media (max-width: 860px) { .contatti-grid { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
footer { background: #17120E; color: rgba(255,253,248,0.55); padding: 40px 0; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner img { height: 65px; opacity: 0.85; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(255,253,248,0.55); }
.footer-links a:hover { color: var(--white); }