/* =========================================================
   SisSI dice NO — landing page
   Palette estratta dal segnalibro ufficiale della campagna
   ========================================================= */

/* Montserrat auto-ospitato: un solo file variable font (pesi 100-900),
   nessuna richiesta a fonts.googleapis.com dal browser di chi visita
   la pagina. Vedi ISTRUZIONI.txt, sezione GDPR / cookie banner. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/montserrat-variable.woff2") format("woff2");
}

:root {
  --navy: #004288; /* blu ufficiale Gedeon Richter, dal file vettoriale del logo */
  --navy-dark: #00356d;
  --coral: #ef4d22;
  --yellow: #f7c948;
  --yellow-soft: #fdf1cf;
  --pink: #f7aba4;
  --cream: #fffaf0;
  --ink: #202124;
  --ink-soft: #4a4d52;
  --white: #ffffff;

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 32px rgba(0, 51, 95, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--narrow { max-width: 620px; }

/* ---------- Header ---------- */

.site-header {
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: 14px;
  background: var(--cream);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-lockup__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 1px solid rgba(0, 73, 144, 0.25);
}

/* ---------- Introduzione (niente hero: si arriva subito al video) ---------- */

.intro {
  padding: calc(22px + env(safe-area-inset-top, 0px)) 0 22px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.intro__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1;
  color: var(--navy);
  margin: 0 0 8px;
}

.intro__title span { color: var(--ink); }

.intro__subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn[hidden] { display: none; }

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(239, 77, 34, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
}

/* ---------- Video section ---------- */

.video-section {
  padding: 36px 0 12px;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.player-wrapper:fullscreen,
.player-wrapper:-webkit-full-screen {
  border-radius: 0;
  width: 100vw;
  height: 100vh;
}

.yt-player,
.yt-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}

.player-facade__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.player-facade__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 40, 0.15) 0%, rgba(0, 20, 40, 0.55) 100%);
}

.player-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.player-facade:hover .player-facade__play { transform: translate(-50%, -50%) scale(1.06); }

.player-facade__label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.player-pause {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(0, 53, 109, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-pause[hidden] { display: none; }

.player-pause__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.player-pause:hover .player-pause__play { transform: scale(1.06); }

.player-consent {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 28px;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}

.player-consent[hidden] { display: none; }

.player-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
}

.player-consent__text a {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.player-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.player-consent__fallback {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.player-consent__fallback a {
  color: var(--white);
  font-weight: 600;
}

.player-consent__fallback[hidden] { display: none; }

.player-end {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}

.player-end[hidden] { display: none; }

.player-end__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 4vw, 24px);
  margin: 0;
}

.player-end__quote {
  font-style: italic;
  opacity: 0.9;
  max-width: 32ch;
  margin: 0 0 8px;
  font-size: 14px;
}

.player-end__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.video-hint {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ---------- Story section ---------- */

.story-section {
  padding: 56px 0 44px;
}

.story-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 14px;
}

.story-lead {
  font-weight: 700;
  font-style: italic;
  font-size: clamp(19px, 4.6vw, 23px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 24px;
}

.story-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.story-body strong { color: var(--navy); }

.story-body--italic {
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
}

.story-quote {
  margin: 32px 0 0;
  padding: 24px 26px;
  background: var(--yellow-soft);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy-dark);
  border-left: 5px solid var(--yellow);
}

/* ---------- Share section ---------- */

.share-section {
  padding: 8px 0 48px;
  text-align: center;
}

.share-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 6px;
}

.share-text {
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.share-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Credits ---------- */

.credits-section {
  padding: 36px 0 56px;
  border-top: 1px solid rgba(0, 73, 144, 0.12);
}

.credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.credits-list li { line-height: 1.4; }

.credits-list a {
  color: var(--ink-soft);
  text-decoration-color: rgba(74, 77, 82, 0.4);
  text-underline-offset: 2px;
}

.credits-list a:hover { color: var(--navy); }

.credits-list span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(0, 66, 136, 0.12);
  padding: 32px 0 28px;
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.site-footer__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 0 0 4px;
}

.brand-logo--footer {
  height: 30px;
  margin-bottom: 4px;
}

.site-footer__sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}

.site-footer__copy {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0;
}

.site-footer__legal {
  font-size: 11px;
  margin: 6px 0 0;
}

.site-footer__legal a {
  color: var(--ink-soft);
  text-decoration-color: rgba(74, 77, 82, 0.4);
}

/* ---------- Banner cookie ---------- */

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 560px;
  margin: 0 auto;
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.cookie-notice[hidden] { display: none; }

.cookie-notice p {
  flex: 1 1 220px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-notice a {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.cookie-notice .btn--sm {
  padding: 9px 16px;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive tweaks ---------- */

@media (min-width: 640px) {
  .player-facade__play { width: 92px; height: 92px; }
}

@media (min-width: 900px) {
  .wrap { max-width: 860px; }
  .credits-list { grid-template-columns: repeat(2, 1fr); }
}

/* Riduzione animazioni per chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
