/* ============================================================
   STARE · strategie urbane — Design System condiviso
   ============================================================ */

:root {
  --stare-black: #0c0c0b;
  --stare-dark-surface: #141413;
  --stare-dark-card: #1a1a19;
  --stare-white: #ffffff;
  --stare-ivory: #f8f7f4;
  --stare-sand: #f0eee9;
  --stare-grey-muted: #88877f;
  --stare-grey-text: #45443f;
  --stare-red: #e52421;
  --stare-red-glow: rgba(229, 36, 33, 0.22);
  --stare-border-on-dark: rgba(255, 255, 255, 0.16);
  --stare-border-on-light: rgba(12, 12, 11, 0.12);
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--stare-black);
  background-color: var(--stare-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease; }

section { padding: clamp(5rem, 8vw, 8.5rem) clamp(1.5rem, 7vw, 7.5rem); position: relative; }

/* ---------- NAVBAR FISSA ---------- */
.stare-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(12, 12, 11, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stare-border-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.stare-nav-brand {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--stare-white);
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
}
.stare-nav-brand .red-dot { color: var(--stare-red); }

/* Pallino rosso inline dopo "STARE" — sempre un cerchio disegnato via CSS,
   mai il carattere tipografico "." (che cambia forma da font a font/peso).
   Si scala automaticamente con em, quindi funziona identico ovunque compaia. */
.stare-dot-inline {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  min-width: 6px;
  min-height: 6px;
  background-color: var(--stare-red);
  border-radius: 50%;
  vertical-align: baseline;
  margin-left: 0.05em;
}

.stare-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}

.stare-nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.4rem 0.1rem;
  position: relative;
}
.stare-nav-links a:hover { color: var(--stare-white); }

.stare-nav-links a.active { color: var(--stare-white); }
.stare-nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background-color: var(--stare-red);
  border-radius: 2px;
}

.stare-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.stare-nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--stare-white);
  display: block;
  border-radius: 2px;
}

/* Sottomenu a tendina (es. "Progetti") — desktop, on hover/focus */
.stare-nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.stare-nav-parent-link::after {
  content: "▾";
  font-size: 0.6rem;
  margin-left: 0.35rem;
  opacity: 0.55;
  position: relative;
  top: -1px;
}
.stare-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--stare-black);
  border: 1px solid var(--stare-border-on-dark);
  border-radius: 6px;
  min-width: 200px;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 1001;
}
.stare-nav-item-dropdown:hover .stare-nav-dropdown-menu,
.stare-nav-item-dropdown:focus-within .stare-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.stare-nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}
.stare-nav-dropdown-menu a:hover { color: var(--stare-white); background: rgba(255, 255, 255, 0.06); }
.stare-nav-dropdown-menu a.active { color: var(--stare-red); }

/* Sotto-voci nel pannello mobile */
.stare-nav-mobile-sub {
  padding-left: 1.4rem !important;
  font-size: 0.88rem !important;
  color: rgba(255, 255, 255, 0.58) !important;
}

.stare-nav-mobile-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background-color: var(--stare-black);
  border-bottom: 1px solid var(--stare-border-on-dark);
  z-index: 999;
  flex-direction: column;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
}
.stare-nav-mobile-panel.is-open { display: flex; }
.stare-nav-mobile-panel a {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--stare-border-on-dark);
}
.stare-nav-mobile-panel a:last-child { border-bottom: none; }
.stare-nav-mobile-panel a.active { color: var(--stare-red); }

@media (max-width: 760px) {
  .stare-nav-links { display: none; }
  .stare-nav-toggle { display: flex; }
}

/* ---------- ETICHETTE E TESTATA DI SEZIONE ---------- */
.stare-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stare-grey-muted);
  margin-bottom: 1.2rem;
}
.stare-eyebrow .stare-index-dot {
  width: 6px; height: 6px;
  background-color: var(--stare-red);
  border-radius: 50%;
  display: inline-block;
}

.stare-section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 820px;
}

.stare-section-intro {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--stare-grey-text);
  max-width: 720px;
  margin-top: 1.5rem;
}

/* ---------- PAGE HEADER (Metodo / Progetti / Blog) ---------- */
.stare-page-header {
  background-color: var(--stare-black);
  color: var(--stare-white);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.stare-page-header .stare-eyebrow { color: rgba(255,255,255,0.6); }
.stare-page-header .stare-section-title { color: var(--stare-white); }
.stare-page-header .stare-section-intro { color: rgba(255,255,255,0.78); }

/* ---------- HERO / LOGO ANIMATO (Home) ---------- */
.stare-hero {
  background-color: var(--stare-black);
  color: var(--stare-white);
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--stare-border-on-dark);
}

.stare-top-badge {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stare-border-on-dark);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 2.5rem;
}
.stare-top-badge-dot { width: 6px; height: 6px; background-color: var(--stare-red); border-radius: 50%; }

.stare-brand {
  display: inline-flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
  margin-bottom: 2.5rem;
}
.stare-brand:hover { transform: translateY(-1px); }

.stare-brand-top-row { display: inline-flex; align-items: baseline; line-height: 0.9; }

.stare-brand-letters {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--stare-white);
}

.stare-slot { position: relative; display: inline-block; }

/* Ancoraggio a larghezza zero: si appoggia sulla base del testo esattamente
   come .stare-dot-inline, garantendo che il puntino animato sia sempre
   alla stessa identica altezza di tutti gli altri pallini del sito */
.stare-dot-anchor {
  display: inline-block;
  width: 0;
  overflow: visible;
  vertical-align: baseline;
  position: relative;
}

.stare-char { display: inline-block; transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }

.stare-runner-dot {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-50%, 0) scale(0.4);
  width: clamp(8px, 1.2vw, 12px);
  height: clamp(8px, 1.2vw, 12px);
  background-color: var(--stare-red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--stare-red);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease, transform 0.15s ease;
}

.stare-logo-period {
  width: clamp(9px, 1.3vw, 13px);
  height: clamp(9px, 1.3vw, 13px);
  background-color: var(--stare-red);
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.12em;
  box-shadow: 0 0 10px var(--stare-red-glow);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stare-brand-sub {
  font-size: clamp(0.85rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.15rem;
  line-height: 1;
  white-space: nowrap;
  display: block;
  transition: opacity 0.4s ease;
}

.stare-hero-content { max-width: 980px; }

.stare-hero-headline {
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--stare-white);
  overflow-wrap: break-word;
  word-break: break-word;
}

.stare-hero-manifesto {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2rem;
  max-width: 780px;
}
.stare-hero-manifesto strong { font-weight: 600; color: var(--stare-white); }

.stare-qualities-wrapper {
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--stare-border-on-dark);
}

.stare-qualities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 0;
  font-size: clamp(1.2rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--stare-white);
}

.stare-q-unit { display: inline-flex; align-items: center; white-space: nowrap; }
.stare-q-item { display: inline-block; }
.stare-q-dot {
  width: clamp(7px, 1vw, 10px); height: clamp(7px, 1vw, 10px);
  background-color: var(--stare-red); border-radius: 50%; display: inline-block;
  margin: 0 clamp(1.1rem, 2.2vw, 2rem); flex-shrink: 0;
  box-shadow: 0 0 10px var(--stare-red-glow);
}
.stare-q-ellipsis {
  display: inline-flex; align-items: center; gap: clamp(0.35rem, 0.6vw, 0.55rem);
  margin-left: clamp(0.8rem, 1.4vw, 1.6rem); vertical-align: middle;
}
.stare-q-dot-end {
  width: clamp(7px, 1vw, 10px); height: clamp(7px, 1vw, 10px);
  background-color: var(--stare-red); border-radius: 50%; display: inline-block;
  box-shadow: 0 0 10px var(--stare-red-glow);
}

/* ---------- POSIZIONAMENTO (Home) ---------- */
.stare-posizionamento { background-color: var(--stare-ivory); border-bottom: 1px solid var(--stare-border-on-light); }
.stare-posizionamento-text {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500; line-height: 1.4; letter-spacing: -0.01em;
  color: var(--stare-black); max-width: 880px;
}

/* ---------- PROGETTI: teaser (Home) ---------- */
.stare-progetti-teaser { background-color: var(--stare-white); border-bottom: 1px solid var(--stare-border-on-light); }
.stare-teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3.5rem; }
@media (max-width: 820px) { .stare-teaser-grid { grid-template-columns: 1fr; gap: 2rem; } }

.stare-teaser-media {
  background: var(--stare-ivory);
  border: 1px dashed var(--stare-border-on-light);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--stare-grey-muted); font-size: 0.85rem; letter-spacing: 0.03em;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  margin-bottom: 1.4rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.stare-teaser-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.stare-teaser-card:hover .stare-teaser-media { opacity: 0.86; transform: scale(1.02); }

.stare-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stare-black);
}
.stare-teaser-cta .arrow { color: var(--stare-red); transition: transform 0.2s ease; }
.stare-teaser-card:hover .stare-teaser-cta { color: var(--stare-red); }
.stare-teaser-card:hover .stare-teaser-cta .arrow { transform: translateX(4px); }

.stare-teaser-place {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--stare-red); margin-bottom: 0.5rem;
}
.stare-teaser-card { display: block; color: var(--stare-black); }
.stare-teaser-card h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.7rem; }
.stare-teaser-card p { font-size: 0.98rem; line-height: 1.55; color: var(--stare-grey-text); }
.stare-teaser-note { margin-top: 2.5rem; font-size: 0.95rem; color: var(--stare-grey-muted); font-style: italic; }

/* ---------- CHIUSURA (Home) ---------- */
.stare-chiusura { background-color: var(--stare-black); color: var(--stare-white); padding-bottom: clamp(4rem, 6vw, 6rem); }
.stare-chiusura-text { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; color: var(--stare-white); }

/* ---------- FOOTER CONDIVISO ---------- */
.stare-footer-bar {
  margin-top: 5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.2rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.45);
}
.stare-footer-bar.on-light { border-top-color: var(--stare-border-on-light); color: var(--stare-grey-muted); }
.stare-footer-brand { font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.stare-footer-bar.on-light .stare-footer-brand { color: var(--stare-black); }
.stare-footer-brand .red-dot { color: var(--stare-red); }

/* ============================================================
   PAGINA METODO
   ============================================================ */
.stare-triangolo { background-color: var(--stare-white); border-bottom: 1px solid var(--stare-border-on-light); }

.stare-actors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4rem; }
@media (max-width: 900px) { .stare-actors-grid { grid-template-columns: 1fr; gap: 2rem; } }

.stare-actor-card { border-top: 3px solid var(--stare-black); padding-top: 1.8rem; display: flex; flex-direction: column; justify-content: space-between; }
.stare-actor-card.is-featured { border-top-color: var(--stare-red); }
.stare-actor-num { font-size: 0.9rem; font-weight: 700; color: var(--stare-red); letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.stare-actor-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.stare-actor-card p { font-size: 1.02rem; line-height: 1.6; color: var(--stare-grey-text); }
.stare-actor-tag { margin-top: 1.8rem; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stare-black); display: inline-flex; align-items: center; gap: 0.4rem; }
.stare-actor-tag::before { content: "—"; color: var(--stare-red); }

.stare-metodo { background-color: var(--stare-ivory); border-bottom: 1px solid var(--stare-border-on-light); }

.stare-principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 4rem; margin-top: 4.5rem; border-top: 1px solid var(--stare-border-on-light); }
@media (max-width: 820px) { .stare-principles-grid { grid-template-columns: 1fr; gap: 0; } }

.stare-principle { padding: 2.2rem 0; border-bottom: 1px solid var(--stare-border-on-light); display: flex; flex-direction: column; gap: 0.6rem; }
.stare-principle-header { display: flex; align-items: baseline; gap: 1rem; }
.stare-principle-idx { font-size: 1.1rem; font-weight: 800; color: var(--stare-red); font-feature-settings: "tnum"; min-width: 2.2ch; }
.stare-principle h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--stare-black); }
.stare-principle p { font-size: 0.98rem; line-height: 1.6; color: var(--stare-grey-text); padding-left: calc(2.2ch + 1rem); }
@media (max-width: 600px) { .stare-principle p { padding-left: 0; } }

.stare-pratica { background-color: var(--stare-white); }

.stare-dimensions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 4.5rem; }
@media (max-width: 860px) { .stare-dimensions-grid { grid-template-columns: 1fr; gap: 3rem; } }

.stare-dimension-box { background: var(--stare-sand); padding: clamp(2rem, 4vw, 3.2rem); border-left: 4px solid var(--stare-black); display: flex; flex-direction: column; justify-content: space-between; }
.stare-dimension-box.is-spatial { border-left-color: var(--stare-red); }
.stare-dim-badge { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--stare-grey-muted); margin-bottom: 0.8rem; }
.stare-dimension-box h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.2rem; }
.stare-dimension-box p { font-size: 1.02rem; line-height: 1.65; color: var(--stare-grey-text); margin-bottom: 1.8rem; }

.stare-dim-list { list-style: none; padding-top: 1.5rem; border-top: 1px solid var(--stare-border-on-light); display: flex; flex-direction: column; gap: 0.75rem; }
.stare-dim-list li { font-size: 0.94rem; font-weight: 500; display: flex; align-items: baseline; gap: 0.6rem; color: var(--stare-black); }
.stare-dim-list li::before { content: ""; width: 5px; height: 5px; background-color: var(--stare-red); border-radius: 50%; flex-shrink: 0; transform: translateY(-2px); }


/* ============================================================
   PAGINA CONTATTI
   ============================================================ */
.stare-contatti { background-color: var(--stare-black); color: var(--stare-white); padding-bottom: clamp(4rem, 6vw, 6rem); }
.stare-contatti .stare-section-intro { color: rgba(255, 255, 255, 0.78); }

.stare-contatti-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; margin-top: 4rem; padding-top: 3.5rem; border-top: 1px solid var(--stare-border-on-dark); }
@media (max-width: 860px) { .stare-contatti-grid { grid-template-columns: 1fr; gap: 3rem; } }

.stare-contact-col h3 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.5); margin-bottom: 1rem; }
.stare-contact-item { margin-bottom: 2rem; }
.stare-contact-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 0.35rem; }
.stare-contact-val { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; color: var(--stare-white); }
.stare-contact-val a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 2px; }
.stare-contact-val a:hover { color: var(--stare-red); border-bottom-color: var(--stare-red); }

.stare-territorio-box { background: var(--stare-dark-card); border: 1px solid var(--stare-border-on-dark); padding: 2.2rem; }
.stare-territorio-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.stare-territorio-title .red-dot { width: 7px; height: 7px; background-color: var(--stare-red); border-radius: 50%; display: inline-block; }
.stare-territorio-desc { font-size: 0.98rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); margin-bottom: 1.5rem; }
.stare-territorio-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stare-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); padding: 0.35rem 0.75rem; border-radius: 4px; }

/* ============================================================
   PAGINA BLOG
   ============================================================ */
.stare-blog-empty { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--stare-border-on-light); max-width: 560px; }
.stare-blog-empty p { font-size: 1.05rem; color: var(--stare-grey-text); }

/* ============================================================
   PAGINA CHI SIAMO
   ============================================================ */
.stare-team-section { background-color: var(--stare-white); }

.stare-team-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3.5rem;
}

.stare-team-row {
  display: flex;
  align-items: flex-start;
  gap: 2.2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--stare-border-on-light);
}
.stare-team-list .stare-team-row:first-child { border-top: none; padding-top: 0; }

@media (max-width: 640px) {
  .stare-team-row { flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; }
}

.stare-team-photo {
  background: var(--stare-ivory);
  border: 1px dashed var(--stare-border-on-light);
  width: clamp(100px, 12vw, 140px);
  height: clamp(100px, 12vw, 140px);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stare-grey-muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  transition: opacity 0.2s ease;
}
.stare-team-photo:hover { opacity: 0.85; }
.stare-team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.stare-team-info { flex: 1; padding-top: 0.3rem; }

.stare-team-info h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.stare-team-role {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stare-red);
  margin-bottom: 1rem;
}

.stare-team-info p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--stare-grey-text);
  max-width: 720px;
}

/* ============================================================
   PAGINA PROGETTI — indice (Formativi / Nostri)
   ============================================================ */
.stare-progetti-index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 3.5rem;
}
@media (max-width: 780px) { .stare-progetti-index-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.stare-progetti-index-card {
  display: block;
  border: 1px solid var(--stare-border-on-light);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--stare-black);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stare-progetti-index-card:hover { border-color: var(--stare-black); transform: translateY(-2px); }
.stare-progetti-index-card.is-empty { border-style: dashed; }

.stare-progetti-index-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stare-red);
  margin-bottom: 0.8rem;
}
.stare-progetti-index-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.stare-progetti-index-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--stare-grey-text);
  margin-bottom: 1.4rem;
}
.stare-progetti-index-arrow {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.stare-progetti-index-arrow::after { content: "→"; color: var(--stare-red); transition: transform 0.2s ease; }
.stare-progetti-index-card:hover .stare-progetti-index-arrow::after { transform: translateX(4px); }

/* ============================================================
   PAGINA PROGETTI — griglia stile portfolio (cerchi con overlay)
   ============================================================ */
.stare-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem 1.5rem;
  margin-top: 3.5rem;
}

.stare-portfolio-card {
  display: block;
  color: var(--stare-black);
  text-align: center;
}

.stare-portfolio-cover {
  position: relative;
  background: var(--stare-ivory);
  border: 1px dashed var(--stare-border-on-light);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}
.stare-portfolio-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.stare-portfolio-placeholder {
  color: var(--stare-grey-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 1rem;
}

/* Overlay con titolo + luogo, sopra l'immagine */
.stare-portfolio-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(12, 12, 11, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.stare-portfolio-overlay-title {
  color: var(--stare-white);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.stare-portfolio-overlay-place {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

/* Desktop: overlay visibile solo in hover */
@media (hover: hover) {
  .stare-portfolio-card:hover .stare-portfolio-overlay { opacity: 1; }
}

/* Mobile: overlay sempre visibile, immagine già scurita */
@media (hover: none) {
  .stare-portfolio-overlay { opacity: 1; }
}

.stare-projects-note { margin-top: 3rem; font-size: 0.98rem; color: var(--stare-grey-muted); font-style: italic; text-align: center; }

/* ============================================================
   PAGINA DETTAGLIO PROGETTO
   ============================================================ */
.stare-project-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.stare-project-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.stare-project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 11, 0.2) 0%, rgba(12, 12, 11, 0.55) 60%, rgba(12, 12, 11, 0.92) 100%);
  z-index: 1;
}
.stare-project-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 7vw, 7.5rem) clamp(3.5rem, 7vw, 5rem);
  color: var(--stare-white);
}
.stare-project-hero-content .stare-eyebrow { color: rgba(255, 255, 255, 0.75); }
.stare-project-hero-content h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--stare-white);
}
.stare-project-hero-content .stare-project-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.7rem;
}

.stare-scroll-hint {
  position: absolute;
  bottom: clamp(0.9rem, 2.5vw, 1.4rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.stare-scroll-hint-arrow {
  font-size: 1.05rem;
  line-height: 1;
  animation: stareScrollBounce 1.8s ease-in-out infinite;
}
@keyframes stareScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (max-width: 640px) {
  .stare-project-hero { min-height: 52vh; }
}

.stare-project-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  background-color: var(--stare-white);
}
@media (max-width: 900px) { .stare-project-body { grid-template-columns: 1fr; gap: 2.5rem; } }

.stare-project-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--stare-grey-text);
  margin-bottom: 1.3rem;
}
.stare-project-text p:last-child { margin-bottom: 0; }

.stare-project-meta {
  border-top: 2px solid var(--stare-black);
  padding-top: 1.5rem;
  height: fit-content;
}
.stare-project-meta-item { padding: 1rem 0; border-bottom: 1px solid var(--stare-border-on-light); }
.stare-project-meta-item:last-child { border-bottom: none; }
.stare-project-meta-label {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--stare-grey-muted); margin-bottom: 0.3rem;
}
.stare-project-meta-value { font-size: 0.98rem; font-weight: 600; color: var(--stare-black); line-height: 1.4; }

.stare-project-gallery {
  background-color: var(--stare-ivory);
}
.stare-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 720px) { .stare-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.stare-gallery-item {
  background: var(--stare-sand);
  border: 1px dashed var(--stare-border-on-light);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--stare-grey-muted); font-size: 0.75rem; text-align: center; padding: 0.6rem;
  overflow: hidden;
}
.stare-gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.stare-project-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stare-black);
  margin-top: 3rem;
}
.stare-project-nav-back::before { content: "←"; color: var(--stare-red); }
.stare-project-nav-back:hover { color: var(--stare-red); }

/* ---------- Per saperne di più — link di riferimento esterni ---------- */
.stare-refs-section { background-color: var(--stare-ivory); }

.stare-refs-list {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
  border-top: 1px solid var(--stare-border-on-light);
}

.stare-ref-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--stare-border-on-light);
  color: var(--stare-black);
  transition: color 0.2s ease;
}
.stare-ref-item:hover { color: var(--stare-red); }

.stare-ref-platform {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--stare-red);
  min-width: 90px;
}
.stare-ref-item:hover .stare-ref-platform { color: var(--stare-red); }

.stare-ref-title {
  font-size: 0.98rem;
  font-weight: 600;
  flex: 1;
}

.stare-ref-arrow {
  font-size: 0.9rem;
  color: var(--stare-grey-muted);
}
.stare-ref-item:hover .stare-ref-arrow { color: var(--stare-red); }
/* ---------- Rassegna stampa ---------- */
.stare-press-section { background-color: var(--stare-white); }

.stare-press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.stare-press-item {
  border: 1px solid var(--stare-border-on-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stare-press-thumb {
  background: var(--stare-ivory);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.stare-press-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.stare-press-caption { padding: 1rem 1.1rem 1.2rem; }
.stare-press-source {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--stare-red);
}
.stare-press-date {
  font-size: 0.74rem;
  color: var(--stare-grey-muted);
  margin-top: 0.15rem;
}
.stare-press-headline {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.5rem;
  color: var(--stare-black);
}

/* ============================================================
   LIGHTBOX — ingrandimento immagini con navigazione a frecce
   ============================================================ */
.stare-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 8, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: clamp(1rem, 5vw, 3rem);
}
.stare-lightbox.is-open { opacity: 1; visibility: visible; }

.stare-lightbox-content {
  max-width: min(92vw, 1150px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.stare-lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  background: var(--stare-white);
}
.stare-lightbox-caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  text-align: center;
  max-width: 640px;
  line-height: 1.4;
}

.stare-lightbox-close,
.stare-lightbox-prev,
.stare-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--stare-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}
.stare-lightbox-close:hover,
.stare-lightbox-prev:hover,
.stare-lightbox-next:hover {
  background: var(--stare-red);
  border-color: var(--stare-red);
}

.stare-lightbox-close {
  top: clamp(0.8rem, 3vw, 1.6rem);
  right: clamp(0.8rem, 3vw, 1.6rem);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
}

.stare-lightbox-prev,
.stare-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.7rem;
}
.stare-lightbox-prev { left: clamp(0.6rem, 3vw, 1.8rem); }
.stare-lightbox-next { right: clamp(0.6rem, 3vw, 1.8rem); }
.stare-lightbox.is-solo .stare-lightbox-prev,
.stare-lightbox.is-solo .stare-lightbox-next { display: none; }

@media (max-width: 640px) {
  .stare-lightbox-prev, .stare-lightbox-next { width: 40px; height: 40px; font-size: 1.4rem; }
  .stare-lightbox-close { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* I trigger (gallery/press) diventano bottoni: azzero lo stile nativo */
button.stare-gallery-item,
button.stare-press-item {
  border: none;
  background: none;
  padding: 0;
  text-align: inherit;
  font: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
}
button.stare-gallery-item { border-radius: 50%; }
button.stare-press-item { display: flex; flex-direction: column; }

/* ============================================================
   RESPONSIVE GENERALE
   ============================================================ */
@media (max-width: 640px) {
  section { padding: 3.8rem 1.25rem; }
  .stare-teaser-grid { margin-top: 2.5rem; gap: 2rem; }
  .stare-actors-grid, .stare-principles-grid, .stare-dimensions-grid, .stare-contatti-grid {
    margin-top: 2.5rem; gap: 2rem;
  }
  .stare-dimension-box { padding: 1.8rem 1.25rem; }
  .stare-territorio-box { padding: 1.5rem 1.25rem; }
  .stare-contact-val a { display: inline-block; padding: 0.35rem 0; min-height: 44px; line-height: 1.35; }
  .stare-footer-bar { margin-top: 3.5rem; padding-top: 1.5rem; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}
