/* ============================================================
   REALIZZA IL TUO CORTO — stylesheet
   Direzione visiva: sala di proiezione / set cinematografico.
   Palette: pece #131419, schermo #F1F2EF, rosso REC #E5392B,
            tungsteno #C9C5BA, grafite #1B1D24
   Tipografia: Anton (display), Archivo (testo), Courier Prime (sluglines)
   ============================================================ */

:root {
  --pece: #131419;
  --grafite: #1b1d24;
  --schermo: #f1f2ef;
  --tungsteno: #c9c5ba;
  --rec: #e5392b;
  --rec-scuro: #c22d21;
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--pece);
  color: var(--schermo);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rec); color: #fff; }

h1, h2, h3, .display-rtc {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

a { color: var(--rec); }
a:hover { color: var(--rec-scuro); }

/* ---------- Slugline: l'etichetta di scena in stile sceneggiatura ---------- */
.slugline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rec);
  display: inline-block;
  margin-bottom: 0.9rem;
}
.slugline::before { content: "// "; color: var(--tungsteno); }
.section-light .slugline { color: var(--rec-scuro); }

.timecode {
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--tungsteno);
}

/* ---------- Navbar ---------- */
.navbar-rtc {
  background: rgba(19, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(241, 242, 239, 0.08);
  padding-block: 0.9rem;
}
.navbar-rtc .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--schermo);
}
.navbar-rtc .brand-thin { color: var(--tungsteno); }
.brand-rec {
  display: inline-block;
  width: 0.62em; height: 0.62em;
  background: var(--rec);
  border-radius: 50%;
  margin-right: 0.45em;
  animation: rec-blink 1.6s steps(1) infinite;
  vertical-align: 6%;
}
@keyframes rec-blink { 50% { opacity: 0.25; } }

.navbar-rtc .nav-link {
  color: var(--schermo);
  font-size: 0.95rem;
  font-weight: 500;
  margin-inline: 0.25rem;
}
.navbar-rtc .nav-link:hover,
.navbar-rtc .nav-link.active { color: var(--rec); }
.navbar-rtc .navbar-toggler { border-color: rgba(241,242,239,.3); }
.navbar-rtc .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241,242,239,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Bottoni ---------- */
.btn-rec {
  background: var(--rec);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: 2px;
  padding: 0.65rem 1.5rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-rec:hover { background: var(--rec-scuro); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--schermo);
  border: 1px solid rgba(241,242,239,0.4);
  border-radius: 2px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--schermo); color: var(--schermo); background: rgba(241,242,239,0.06); }

/* ---------- Hero: inquadratura 2.39:1 con letterbox ---------- */
.hero {
  padding: 9.5rem 0 5rem;
  position: relative;
}
.hero-frame {
  position: relative;
  border-block: 14px solid #000;          /* bande letterbox */
  background:
    radial-gradient(ellipse 75% 90% at 30% 15%, rgba(229, 57, 43, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 90%, rgba(201, 197, 186, 0.10), transparent 55%),
    var(--grafite);
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
}
/* crocini d'inquadratura agli angoli, come nel mirino di una cinepresa */
.hero-frame::before, .hero-frame::after,
.hero-inner::before, .hero-inner::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid rgba(241,242,239,0.45);
}
.hero-frame::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.hero-frame::after  { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.hero-inner::before { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.hero-inner::after  { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

.hero-hud {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--tungsteno);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.hero-hud .rec-label { color: var(--rec); font-weight: 700; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  margin-bottom: 1.4rem;
}
.hero h1 .accent { color: var(--rec); }
.hero .lead {
  max-width: 38rem;
  color: var(--tungsteno);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-light { background: var(--schermo); color: var(--pece); }
.section-light h2, .section-light h3 { color: var(--pece); }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }

.lead-muted { color: var(--tungsteno); max-width: 42rem; }
.section-light .lead-muted { color: #4d4f56; }

/* ---------- Card "ciak" ---------- */
.card-ciak {
  background: var(--grafite);
  border: 1px solid rgba(241,242,239,0.08);
  border-top: 3px solid var(--rec);
  border-radius: 3px;
  padding: 1.8rem;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card-ciak:hover { transform: translateY(-4px); border-color: rgba(229,57,43,0.5); }
.card-ciak h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.card-ciak p { color: var(--tungsteno); margin-bottom: 0; font-size: 0.98rem; }
.card-ciak .icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.section-light .card-ciak {
  background: #fff;
  border-color: rgba(19,20,25,0.1);
  border-top-color: var(--rec);
}
.section-light .card-ciak p { color: #4d4f56; }

/* ---------- Programma: timeline sceneggiatura ---------- */
.script-block {
  border-left: 2px solid rgba(241,242,239,0.15);
  padding: 0 0 2.4rem 1.8rem;
  position: relative;
}
.script-block:last-child { padding-bottom: 0; }
.script-block::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  background: var(--rec);
  border-radius: 50%;
}
.script-block .slugline { margin-bottom: 0.4rem; }
.script-block h3 { font-size: 1.35rem; }
.script-block p { color: var(--tungsteno); max-width: 44rem; }
.script-block .ore {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--tungsteno);
  letter-spacing: 0.1em;
}

/* ---------- Docenti ---------- */
.docente-card {
  background: var(--grafite);
  border: 1px solid rgba(241,242,239,0.08);
  border-radius: 3px;
  overflow: hidden;
  height: 100%;
}
.docente-foto {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background:
    radial-gradient(ellipse 90% 90% at 30% 20%, rgba(229,57,43,0.25), transparent 60%),
    linear-gradient(160deg, #23252e, #15161c);
}
.docente-foto .ruolo-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  color: var(--schermo);
  padding: 0.25rem 0.6rem;
  border-left: 3px solid var(--rec);
}
.docente-card .body { padding: 1.4rem 1.6rem 1.7rem; }
.docente-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.docente-card .ruolo { color: var(--rec); font-weight: 600; font-size: 0.9rem; }
.docente-card p { color: var(--tungsteno); font-size: 0.95rem; margin: 0.6rem 0 0; }

/* ---------- Numeri / fatti ---------- */
.fact { border-left: 3px solid var(--rec); padding-left: 1.2rem; }
.fact .n { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; display: block; }
.fact .l { color: var(--tungsteno); font-size: 0.95rem; }
.section-light .fact .l { color: #4d4f56; }

/* ---------- FAQ / accordion ---------- */
.accordion-rtc .accordion-item {
  background: var(--grafite);
  border: 1px solid rgba(241,242,239,0.1);
  color: var(--schermo);
  margin-bottom: 0.8rem;
  border-radius: 3px;
  overflow: hidden;
}
.accordion-rtc .accordion-button {
  background: transparent;
  color: var(--schermo);
  font-weight: 600;
  box-shadow: none;
}
.accordion-rtc .accordion-button:not(.collapsed) { color: var(--rec); }
.accordion-rtc .accordion-button::after { filter: invert(1) grayscale(1); }
.accordion-rtc .accordion-body { color: var(--tungsteno); }

/* ---------- Form ---------- */
.form-rtc .form-control, .form-rtc .form-select {
  background: var(--grafite);
  border: 1px solid rgba(241,242,239,0.2);
  color: var(--schermo);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
}
.form-rtc .form-control:focus, .form-rtc .form-select:focus {
  background: var(--grafite);
  color: var(--schermo);
  border-color: var(--rec);
  box-shadow: 0 0 0 0.2rem rgba(229,57,43,0.2);
}
.form-rtc .form-control::placeholder { color: rgba(201,197,186,0.55); }
.form-rtc label { font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }

/* ---------- CTA finale ---------- */
.cta-banner {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(229,57,43,0.22), transparent 65%),
    var(--grafite);
  border-block: 14px solid #000;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 1rem;
}
.cta-banner h2 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ---------- Footer ---------- */
.footer-rtc {
  background: #0d0e12;
  border-top: 1px solid rgba(241,242,239,0.08);
  padding: 3.5rem 0 0;
  font-size: 0.95rem;
}
.footer-brand { font-family: var(--font-display); letter-spacing: 0.05em; font-size: 1.05rem; }
.footer-text { color: var(--tungsteno); max-width: 22rem; }
.footer-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--tungsteno);
  margin-bottom: 0.9rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; color: var(--tungsteno); }
.footer-links a { color: var(--schermo); text-decoration: none; }
.footer-links a:hover { color: var(--rec); }
.footer-bottom {
  border-top: 1px solid rgba(241,242,239,0.08);
  margin-top: 2.5rem;
  padding: 1.2rem 0;
  color: var(--tungsteno);
}

/* ---------- Pagine testuali (privacy, 404) ---------- */
.page-text h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.page-text p, .page-text li { color: var(--tungsteno); }

/* ---------- Accessibilità ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--rec);
  outline-offset: 3px;
}
