/* =============================================
   SHORTS TO FUTURE — COMPLETE STYLESHEET
   Based on Calabria Movie WebKit
   by darioenchelli.me
   ============================================= */

/* ---- FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
  --c-bg:           #050505;
  --c-bg-alt:       #0A0A0A;
  --c-bg-card:      #111111;
  --c-white:        #ffffff;
  --c-accent:       #D15F33;   /* S2F brand orange */
  --c-gold:         #EFC984;   /* CMW gold */
  --c-text:         #ffffff;
  --c-text-muted:   rgba(255, 255, 255, 0.55);
  --c-border:       rgba(255, 255, 255, 0.08);
  --c-dark-text:    #212121;

  --font: 'Google Sans Flex', system-ui, -apple-system, sans-serif;

  --container-w:  1200px;
  --section-py:   5rem;
  --header-h:     68px;

  --r-sm:   4px;
  --r-md:   12px;
  --r-lg:   24px;
  --r-full: 9999px;

  --t:      0.25s ease;
  --t-slow: 0.55s ease;
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}


/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}


/* =============================================
   ACCESSIBILITY UTILITY
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* =============================================
   HEADER
   ============================================= */
.ic-header.cmw-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: height var(--t), box-shadow var(--t), background var(--t);
}

.ic-header.cmw-header.is-scrolled {
  height: 56px;
  background: rgba(5, 5, 5, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.cmw-header-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.5rem;
  gap: 1.5rem;
}

/* Logo */
.cmw-header-logo.ic-header-logo {
  flex-shrink: 0;
}
.cmw-header-logo.ic-header-logo img {
  height: 30px;
  width: auto;
  transition: opacity var(--t);
}
.cmw-header-logo.ic-header-logo:hover img {
  opacity: 0.75;
}

/* Desktop nav */
.cmw-main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.cmw-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.cmw-menu li a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--t);
  position: relative;
  padding-bottom: 2px;
}

.cmw-menu li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-accent);
  transition: width var(--t);
}

.cmw-menu li a:hover {
  color: var(--c-accent);
}
.cmw-menu li a:hover::after {
  width: 100%;
}

/* Desktop CTA button */
.cmw-header-cta.ic-header-cta-cmw {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--t);
}
.cmw-header-cta.ic-header-cta-cmw:hover {
  color: var(--c-accent);
}
.cmw-header-cta-arrow { font-size: 0.85rem; }

/* Mobile CTA - hidden on desktop */
.cmw-mobile-cta { display: none !important; }

/* ISCRIVITI pill button (header CTA) */
.cmw-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 1.1rem;
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.cmw-header-btn:hover {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(209, 95, 51, 0.35);
}

/* Hamburger */
.cmw-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
  flex-shrink: 0;
}
.cmw-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.cmw-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.cmw-hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.cmw-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =============================================
   HERO
   ============================================= */
.ic-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ic-hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ic-hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.25) 0%,
    rgba(5, 5, 5, 0.50) 55%,
    rgba(5, 5, 5, 0.95) 100%
  );
}

.ic-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  padding-top: calc(var(--header-h) + 2rem);
}

.ic-hero-logo {
  width: min(420px, 70vw);
  height: auto;
  filter: brightness(1.1) drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.ic-hero-subtitle-wrap { margin-top: 2rem; }

.ic-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.ic-scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  animation: bounce 2.2s ease infinite;
  z-index: 1;
  padding: 0.5rem;
  transition: color var(--t);
}
.ic-scroll-down:hover { color: var(--c-accent); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55%       { transform: translateX(-50%) translateY(9px); }
}


/* =============================================
   SECTIONS — BASE
   ============================================= */
.ic-section { width: 100%; }

.ic-section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* =============================================
   FORMAT SECTION — COS'È S2F
   ============================================= */
.ic-format-section {
  padding: var(--section-py) 0;
}

.ic-format-highlights {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  margin-top: 2rem;
}


/* =============================================
   FUNDING / CON IL CONTRIBUTO DI
   ============================================= */
.s2f-funding-section {
  padding: 2.5rem 0;
  background: var(--c-bg-alt);
  text-align: center;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.s2f-funding-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 1.75rem;
}

.s2f-funding-logos {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Single combined logo image (SIAE / MiC / PerChiCrea) */
.s2f-funding-logo-single {
  height: auto;
  max-height: 100px;
  width: auto;
  max-width: min(520px, 90vw);
  object-fit: contain;
  /* The source image is on a dark background — keep as-is */
  opacity: 0.9;
  transition: opacity var(--t);
}
.s2f-funding-logo-single:hover { opacity: 1; }


/* =============================================
   EDITIONS GRID
   ============================================= */
.ic-cta-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.ic-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.55);
}
.ic-cta-card--with-image { position: relative; }
.ic-cta-card--with-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.ic-cta-card--with-image:hover img {
  transform: scale(1.06);
}


/* =============================================
   FAQ SECTION
   ============================================= */
.s2f-faq-item {
  background: #111;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t);
}
.s2f-faq-item:hover {
  border-color: rgba(209, 95, 51, 0.35);
}
.s2f-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.s2f-faq-question::-webkit-details-marker { display: none; }
.s2f-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform var(--t);
}
.s2f-faq-item[open] .s2f-faq-question::after {
  transform: rotate(45deg);
}
.s2f-faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.75;
}
.s2f-faq-answer strong { color: rgba(255, 255, 255, 0.85); }


/* =============================================
   EDITION MODAL (progetti selezionati)
   ============================================= */
.ic-edition-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ic-edition-modal.is-open {
  pointer-events: all;
  opacity: 1;
}

.ic-edition-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.ic-edition-modal__dialog {
  position: relative;
  z-index: 1;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.ic-edition-modal.is-open .ic-edition-modal__dialog {
  transform: translateY(0) scale(1);
}

.ic-edition-modal__header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  background: #111;
  z-index: 1;
}
.ic-edition-modal__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.3rem;
}
.ic-edition-modal__title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -0.02em;
}

.ic-edition-modal__body {
  padding: 1.5rem 2rem 2rem;
}

/* Project list inside edition modal */
.ic-edition-project-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}
.ic-edition-project-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  gap: 1rem;
  transition: border-color var(--t);
}
.ic-edition-project-item:hover {
  border-color: rgba(209, 95, 51, 0.35);
}
.ic-edition-project-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
}
.ic-edition-project-item__author {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  text-align: right;
  flex-shrink: 0;
}
.ic-edition-project-item--special {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
}
.ic-edition-project-item--special .ic-edition-project-item__badge {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.2rem;
}

/* Edition cards — show pointer cursor */
.ic-edition-trigger { cursor: pointer; }

/* =============================================
   DECISION MAKERS GRID
   ============================================= */
.ic-dm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.ic-dm-card {
  display: block;
  background: var(--c-bg-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
  border: 1px solid rgba(209, 95, 51, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  outline: none;
  text-align: left;
}
.ic-dm-card-trigger {
  cursor: pointer;
}
.ic-dm-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(209, 95, 51, 0.25);
  border-color: rgba(209, 95, 51, 0.45);
}
.ic-dm-card:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.ic-dm-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0.6rem 0.6rem 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
}
.ic-dm-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.35s ease;
}
.ic-dm-card:hover .ic-dm-photo { transform: scale(1.03); }

.ic-dm-info {
  padding: 1.25rem 1.25rem 1.4rem;
  text-align: center;
}
.ic-dm-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.ic-dm-company {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.ic-dm-subtitle {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* Bio source — hidden in DOM, used by modal */
.ic-dm-bio-source { display: none; }


/* =============================================
   DM MODAL
   ============================================= */
.ic-dm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.ic-dm-modal.is-open {
  display: flex;
}

.ic-dm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.ic-dm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1220px, 96vw);
  max-height: calc(100vh - 2.4rem);
  background: linear-gradient(150deg, rgba(20, 20, 20, 0.99), rgba(7, 7, 7, 0.99));
  border: 1px solid rgba(209, 95, 51, 0.35);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ic-dm-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color var(--t), color var(--t);
  line-height: 1;
}
.ic-dm-modal__close:hover {
  border-color: rgba(209, 95, 51, 0.75);
  color: var(--c-accent);
}

.ic-dm-modal__layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  max-height: inherit;
}

.ic-dm-modal__sidebar {
  display: grid;
  grid-template-rows: 1fr auto;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ic-dm-modal__media {
  background: radial-gradient(circle at 50% 8%, rgba(209, 95, 51, 0.12), rgba(255, 255, 255, 0));
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.ic-dm-modal__media.is-empty::after {
  content: "—";
  color: var(--c-text-muted);
  font-size: 2rem;
}
.ic-dm-modal__media img {
  width: 100%;
  max-height: calc(100vh - 14rem);
  object-fit: contain;
  border-radius: 12px;
}

.ic-dm-modal__identity {
  padding: 0.45rem 1.25rem 1.5rem;
  text-align: center;
}
.ic-dm-modal__name {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.65rem);
  font-weight: 800;
  color: var(--c-white);
  margin: 0 0 0.3rem;
  line-height: 1.2;
}
.ic-dm-modal__role {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.25rem;
  line-height: 1.4;
}
.ic-dm-modal__company {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin: 0;
}

.ic-dm-modal__content {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  max-height: inherit;
}
.ic-dm-modal__bio {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.97rem;
  line-height: 1.78;
}
.ic-dm-modal__bio > * + * { margin-top: 0.9rem; }
.ic-dm-modal__bio > *:first-child { margin-top: 0; }
.ic-dm-modal__bio h3 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.ic-dm-modal__bio h3:first-child { margin-top: 0; }
.ic-dm-modal__bio b,
.ic-dm-modal__bio strong { color: var(--c-white); font-weight: 600; }
.ic-dm-modal__bio p { margin: 0; }
.ic-dm-modal__bio p + p { margin-top: 0.75rem; }
.ic-dm-modal__bio i { font-style: italic; }


/* =============================================
   FILM ACCORDION — EDITION MODAL
   ============================================= */

/* Section divider inside modal body */
.s2f-em-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-border);
}
.s2f-em-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.85rem;
}

/* Film list */
.s2f-film-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.s2f-film-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t);
}
.s2f-film-item.is-open {
  border-color: rgba(209, 95, 51, 0.4);
}

/* Collapsed trigger row */
.s2f-film-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background var(--t);
}
.s2f-film-trigger:hover { background: rgba(255, 255, 255, 0.06); }

.s2f-film-thumb {
  width: 40px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s2f-film-thumb img { width: 100%; height: 100%; object-fit: cover; }
.s2f-film-thumb-placeholder { color: rgba(255, 255, 255, 0.2); font-size: 1.25rem; }

.s2f-film-trigger-info { flex: 1; min-width: 0; }
.s2f-film-special-badge {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.15rem;
}
.s2f-film-trigger-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s2f-film-trigger-author {
  display: block;
  font-size: 0.75rem;
  color: var(--c-text-muted);
}
.s2f-film-trigger-arrow {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}
.s2f-film-item.is-open .s2f-film-trigger-arrow {
  transform: rotate(90deg);
  color: var(--c-accent);
}

/* Expanded card */
.s2f-film-expanded { border-top: 1px solid var(--c-border); }

.s2f-film-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.15rem;
  padding: 1rem 0.85rem 1.25rem;
}
@media (max-width: 480px) {
  .s2f-film-card { grid-template-columns: 1fr; }
}

.s2f-film-visual { position: relative; }
.s2f-film-locandina-wrap,
.s2f-film-still-wrap {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.s2f-film-locandina-wrap img,
.s2f-film-still-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.s2f-film-still-wrap          { display: none; }
.s2f-film-still-wrap.is-visible { display: block; }
.s2f-film-locandina-wrap.is-hidden { display: none; }

.s2f-film-details { display: flex; flex-direction: column; }
.s2f-film-title-large {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-white);
  margin: 0 0 0.2rem;
  line-height: 1.25;
}
.s2f-film-author-large {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  margin: 0 0 0.65rem;
}
.s2f-film-sinossi {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  flex: 1;
}
.s2f-film-sinossi-empty {
  color: rgba(255, 255, 255, 0.28);
  font-style: italic;
  font-size: 0.83rem;
}
.s2f-film-still-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.7rem;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.s2f-film-still-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* Gallery grid in edition modal */
.s2f-em-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}
.s2f-em-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.s2f-em-gallery-grid img:hover { transform: scale(1.04); }

/* YouTube embed */
.s2f-em-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}
.s2f-em-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Mini person grid (mentori + DM in modal) */
.s2f-em-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.85rem;
}
.s2f-em-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}
.s2f-em-person-photo {
  width: 72px;
  height: 88px;
  object-fit: contain;
  object-position: center bottom;
  flex-shrink: 0;
}
.s2f-em-person-photo-placeholder {
  width: 72px;
  height: 88px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 2.5rem;
  flex-shrink: 0;
}
.s2f-em-person-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.25;
}
.s2f-em-person-company {
  font-size: 0.67rem;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.s2f-em-person-role {
  font-size: 0.65rem;
  color: var(--c-text-muted);
  line-height: 1.3;
}


/* =============================================
   FOOTER
   ============================================= */
.cmw-footer {
  background: #020202;
  color: var(--c-text);
  border-top: 1px solid var(--c-border);
}

.cmw-footer-main {
  padding: 4rem 0 2.5rem;
}

.cmw-footer-main-card {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3.5rem;
}

.cmw-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cmw-footer-brand h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 0;
}

.cmw-footer-org-text p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}
.cmw-footer-org-text p + p { margin-top: 0.65rem; }

.cmw-footer-pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 1rem;
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background var(--t), color var(--t);
  width: fit-content;
}
.cmw-footer-pill-link:hover {
  background: var(--c-accent);
  color: white;
}

/* Footer nav columns */
.cmw-footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 2rem;
}

.cmw-footer-nav-group h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.9rem;
}
.cmw-footer-nav-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cmw-footer-nav-group ul li a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.52);
  transition: color var(--t);
}
.cmw-footer-nav-group ul li a:hover { color: var(--c-white); }

/* Footer bottom bar */
.cmw-footer-bottom {
  background: black;
  border-top: 1px solid var(--c-border);
  padding: 0.85rem 1.5rem;
}
.cmw-footer-bottom .footer-content {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.cmw-footer-bottom .logo,
.cmw-footer-bottom .logotitolo,
.cmw-footer-bottom .made-possible {
  height: 20px;
  width: auto;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity var(--t);
}
.cmw-footer-bottom .logo:hover,
.cmw-footer-bottom .logotitolo:hover,
.cmw-footer-bottom .made-possible:hover {
  opacity: 1;
}


/* =============================================
   RESPONSIVE — TABLET / MOBILE NAV
   ============================================= */
@media (max-width: 900px) {
  .cmw-hamburger { display: flex; }

  /*
   * FIX: backdrop-filter on the header creates a new containing block
   * for position:fixed children. On mobile we switch to a solid bg
   * so the nav overlay can anchor to the viewport correctly.
   */
  .ic-header.cmw-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 5, 5, 0.98);
  }
  .ic-header.cmw-header.is-scrolled {
    background: #050505;
  }

  /* Mobile nav — fullscreen overlay */
  .cmw-main-nav {
    /* Reset desktop flex-child properties */
    flex: none;
    /* Full viewport overlay */
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* dynamic viewport on mobile browsers */
    background: rgba(5, 5, 5, 0.98);
    z-index: 9000;
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--header-h) 2rem 2rem;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .cmw-main-nav.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  /* Hamburger on top of overlay */
  .cmw-hamburger {
    position: relative;
    z-index: 9001;
  }

  .cmw-menu {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
  }
  .cmw-menu li a {
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.80);
    letter-spacing: 0.05em;
  }
  .cmw-menu li a:hover,
  .cmw-menu li a:active {
    color: var(--c-accent);
  }

  /* Hide desktop ISCRIVITI from header on mobile — it lives only in the nav overlay */
  .cmw-header-inner > .cmw-header-btn { display: none !important; }

  .cmw-mobile-cta {
    display: inline-flex !important;
    margin-top: 0;
  }

  /* Footer */
  .cmw-footer-main-card { grid-template-columns: 1fr; gap: 2.5rem; }

  /* DM modal — stacked on tablet */
  .ic-dm-modal {
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .ic-dm-modal.is-open { display: block; }
  .ic-dm-modal__dialog {
    width: calc(100vw - 2.5rem);
    max-height: none;
    margin: 0 auto;
    overflow: visible;
  }
  .ic-dm-modal__layout {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .ic-dm-modal__sidebar {
    grid-template-rows: auto auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ic-dm-modal__media {
    padding: 0.9rem 0.9rem 0.2rem;
  }
  .ic-dm-modal__media img { max-height: 40vh; }
  .ic-dm-modal__identity {
    padding: 0.35rem 1rem 1rem;
  }
  .ic-dm-modal__content {
    padding: 1rem 1.25rem 1.5rem;
    overflow: visible;
    max-height: none;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 580px) {
  :root {
    --section-py: 3.5rem;
    --header-h: 60px;
  }

  .ic-hero-logo { width: min(280px, 78vw); }

  .s2f-funding-logos { gap: 1.5rem 2rem; }

  .ic-dm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .ic-dm-modal__media img { max-height: 35vh; }
  .ic-dm-modal__identity { text-align: center; }

  /* Hamburger menu font on small screens */
  .cmw-menu li a { font-size: 1.15rem; }
}
