/* =====================================================================
   CHI SIAMO (page-chi-siamo.php)
   Pagina "di racconto": fondo chiaro, inchiostro scuro, e i pezzi che la
   distinguono — banda colorata, riconoscimenti, tappe, locandine che
   galleggiano ai lati. La base è in css/lrf.css.
   ===================================================================== */

.lrf-chi{
	--paper: #F5F5F7;
	--paper-2: #ffffff;
	--film: var(--paper);
	--film-rgb: 245, 245, 247;

	--ink: #171615;
	--ink-2: rgba(23, 22, 21, 0.72);
	--ink-3: rgba(23, 22, 21, 0.5);
	--line: rgba(23, 22, 21, 0.13);

	position: relative;
	background-color: var(--paper);
	overflow: hidden;   /* tiene dentro le locandine ai lati */
}
body{ background-color: #F5F5F7; }

/* Footer e menu di sito, come nelle altre pagine interne */
.menucontinside{ width: var(--centercolwidth); max-width: var(--maxwidth); }
.contfooterhome{ position: relative; background-color: #1d1d1d; }
.contfooterhomeinside{ width: var(--centercolwidth); max-width: var(--maxwidth); }


/* ---------------------------------------------------------------------
   APERTURA
   --------------------------------------------------------------------- */
.lrf-chihero{
	position: relative;
	z-index: 1;
	padding: clamp(140px, 19vh, 210px) 0 clamp(20px, 3vw, 36px);
	text-align: center;
}
.lrf-chihero > .lrf-wrap > :not(.lrf-chihero__title){ animation: lrf-rise 1.2s var(--ease) both; }
.lrf-chihero > .lrf-wrap > :nth-child(1){ animation-delay: .1s; }
.lrf-chihero > .lrf-wrap > :nth-child(2){ animation-delay: .2s; }
.lrf-chihero > .lrf-wrap > :nth-child(3){ animation-delay: .3s; }
.lrf-chihero > .lrf-wrap > :nth-child(4){ animation-delay: .4s; }

.lrf-chihero .lrf-tags{ justify-content: center; }

.lrf-chihero__title{
	/* la misura tiene "Oltre 600 film portati in sala" sulla prima riga */
	max-width: 20ch;
	margin: 20px auto clamp(24px, 3vw, 40px);
	font-size: clamp(2rem, 4.2vw, 3.6rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-wrap: pretty;
}
/* il titolo sta su due righe fisse ed entra in dissolvenza */
.lrf-riga{ display: block; white-space: nowrap; }
.lrf-chihero__title{
	animation: lrf-fade 1.6s ease both;
	animation-delay: .15s;
}
@keyframes lrf-fade{
	from{ opacity: 0; }
	to{ opacity: 1; }
}

.lrf-chihero__lead{
	max-width: 760px;
	margin: clamp(22px, 3vw, 34px) auto 0;
	font-size: clamp(1.05rem, 1.6vw, 1.4rem);
	line-height: 1.5;
	letter-spacing: -0.012em;
	color: var(--ink-2);
	text-wrap: balance;
}
.lrf-chihero__lead p{ margin: 0; }

/* banda colorata del marchio */
.lrf-rainbow{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	width: min(100%, 860px);
	height: 6px;
	margin: 0 auto;
	border-radius: 999px;
	overflow: hidden;
}
.lrf-rainbow span:nth-child(1){ background: #B8005D; }
.lrf-rainbow span:nth-child(2){ background: #F00000; }
.lrf-rainbow span:nth-child(3){ background: #FFB200; }
.lrf-rainbow span:nth-child(4){ background: #FFF400; }

/* etichette */
.lrf-tags{ display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.lrf-tags span{
	padding: 5px 8px 4px;
	border-radius: 3px;
	background: rgba(23, 22, 21, 0.07);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ink-2);
}


/* ---------------------------------------------------------------------
   TESTI
   --------------------------------------------------------------------- */
.lrf-chi .lrf-body{
	position: relative;
	z-index: 1;
	padding: clamp(40px, 5vw, 70px) 0 clamp(70px, 9vw, 120px);
}
.lrf-chi .lrf-section{ padding-top: clamp(56px, 7vw, 104px); }
.lrf-chi .lrf-kicker{ color: var(--ink-3); }
.lrf-chi .lrf-kicker a:hover{ color: var(--accent); }

.lrf-prose-chi{
	font-size: clamp(0.95rem, 1.05vw, 1.05rem);
	line-height: 1.75;
	color: var(--ink-2);
}
.lrf-prose-chi p{ margin: 0 0 1.1em; }
.lrf-prose-chi p:last-child{ margin-bottom: 0; }
.lrf-prose-chi strong{ color: var(--ink); font-weight: 600; }
.lrf-prose-chi a{ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* frase "a tutta pagina" (i vecchi testi in corsivo) */
.lrf-chisay{
	max-width: 900px;
	margin: clamp(48px, 6vw, 90px) auto 0;
	font-size: clamp(1.3rem, 2.4vw, 2.1rem);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.025em;
	text-align: center;
	text-wrap: balance;
	color: var(--ink);
}
.lrf-chisay p{ margin: 0; }
.lrf-chisay--tight{ margin-top: 0; }

/* ritratto + presentazione */
.lrf-chiintro{
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(28px, 4vw, 72px);
	align-items: center;
	margin-top: clamp(20px, 3vw, 40px);
}
.lrf-chiintro__foto{
	margin: 0;
	border-radius: 6px;
	overflow: hidden;
	background: rgba(23, 22, 21, 0.06);
	box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.45);
}
.lrf-chiintro__foto img{ display: block; width: 100%; height: auto; }
.lrf-chiintro__text{ max-width: 620px; }
.lrf-chiintro__text p:first-child{
	font-size: clamp(1.15rem, 1.8vw, 1.5rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--ink);
}


/* ---------------------------------------------------------------------
   RICONOSCIMENTI
   --------------------------------------------------------------------- */
.lrf-awards{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: rgba(23, 22, 21, 0.05);   /* è la riga sottile tra un premio e l'altro */
	border-radius: 6px;
	overflow: hidden;
}
.lrf-award{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: clamp(46px, 5.5vw, 76px) clamp(18px, 2vw, 30px);
	background: var(--paper-2);
	text-align: center;
}
.lrf-award__icon{
	width: auto;
	height: clamp(56px, 7vw, 84px);
	margin-bottom: 6px;
	object-fit: contain;
}
.lrf-award__n{
	margin: 0;
	font-size: clamp(2.4rem, 4.4vw, 3.6rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	color: #C9A227;
}
.lrf-award__t{
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
}
.lrf-award__d{
	margin: 0;
	max-width: 30ch;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--ink-3);
}


/* ---------------------------------------------------------------------
   GLI AUTORI
   --------------------------------------------------------------------- */
.lrf-chiautori__nomi{
	max-width: 980px;
	margin: clamp(28px, 3.5vw, 44px) auto 0;
	padding-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid var(--line);
	font-size: clamp(0.95rem, 1.15vw, 1.1rem);
	line-height: 1.85;
	text-align: center;
	color: var(--ink-2);
}


/* ---------------------------------------------------------------------
   DISTRIBUZIONE E PRODUZIONE
   --------------------------------------------------------------------- */
.lrf-chiblocchi{
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3.5vw, 48px);
}
.lrf-chiblocco{
	--ink: #f5f0e8;
	--ink-2: rgba(245, 240, 232, 0.78);
	--ink-3: rgba(245, 240, 232, 0.5);

	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(70vh, 620px);
	padding: clamp(24px, 3.2vw, 52px);
	border-radius: 6px;
	overflow: hidden;
	color: var(--ink);
	background: rgb(var(--tint, 20, 19, 18));
	isolation: isolate;
}
.lrf-chiblocco__media{
	position: absolute;
	inset: 0;
	z-index: -1;
	background: center / cover no-repeat;
}
.lrf-chiblocco__media::after{
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(var(--tint, 20, 19, 18), 0.96) 0%, rgba(var(--tint, 20, 19, 18), 0.86) 34%, rgba(var(--tint, 20, 19, 18), 0) 72%),
		linear-gradient(0deg, rgba(8, 7, 7, 0.55), rgba(8, 7, 7, 0) 45%);
}
.lrf-chiblocco__inner{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 560px;
}
.lrf-chiblocco__title{
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.035em;
}
.lrf-chiblocco__text{
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--ink-2);
}
.lrf-chiblocco__text p{ margin: 0 0 1em; }
.lrf-chiblocco__text p:last-child{ margin-bottom: 0; }
.lrf-chiblocco__cap{
	position: absolute;
	right: clamp(16px, 2vw, 28px);
	bottom: clamp(14px, 1.6vw, 22px);
	margin: 0;
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	color: rgba(245, 240, 232, 0.55);
}
.lrf-chiblocco__cap strong{ font-weight: 600; color: rgba(245, 240, 232, 0.8); }


/* ---------------------------------------------------------------------
   IL GRUPPO
   --------------------------------------------------------------------- */
.lrf-chigruppo__card{
	display: grid;
	grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
	padding: clamp(48px, 6vw, 84px) clamp(28px, 3.5vw, 56px);
	border: 1px solid rgba(23, 22, 21, 0.07);
	border-radius: 6px;
	background: var(--paper-2);
}
.lrf-chigruppo__logo{
	display: block;
	width: 100%;
	max-width: 380px;
	height: auto;
	margin: 0 auto;
}


/* ---------------------------------------------------------------------
   LE TAPPE
   --------------------------------------------------------------------- */
.lrf-chi .lrf-head{ align-items: center; }
.lrf-railnav{ display: flex; gap: 8px; }
.lrf-railnav .lrf-round{ color: var(--ink); }
.lrf-railnav .lrf-round:hover:not(:disabled){ background: rgba(23, 22, 21, 0.06); }
.lrf-railnav .lrf-round:disabled{ opacity: 0.3; cursor: default; }

.lrf-chitime__track,
.lrf-chinews__track{
	position: relative;   /* le frecce calcolano la meta con offsetLeft */
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 6px;
}

.lrf-tappa{
	flex: none;
	width: min(320px, 74vw);
	scroll-snap-align: start;
}
.lrf-tappa__img{
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	margin-bottom: 18px;
	border-radius: 6px;
	background: rgba(23, 22, 21, 0.06) center / cover no-repeat;
}
.lrf-tappa__img img{ width: 22%; height: auto; opacity: 0.35; }
.lrf-tappa__anno{
	position: relative;
	margin: 0 0 12px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}
.lrf-tappa__anno::before{
	content: "";
	position: absolute;
	left: 0;
	top: -4px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
}
.lrf-tappa__text{
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--ink-2);
}
.lrf-tappa__text p{ margin: 0 0 0.8em; }
.lrf-tappa__text p:last-child{ margin-bottom: 0; }


/* ---------------------------------------------------------------------
   ULTIME NOTIZIE
   --------------------------------------------------------------------- */
.lrf-chinews__card{
	flex: none;
	width: min(340px, 78vw);
	scroll-snap-align: start;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	background: var(--paper-2);
	transition: transform .4s var(--ease), box-shadow .4s ease;
}
.lrf-chinews__card:hover{
	transform: translateY(-3px);
	box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.3);
}
.lrf-chinews__card a{ display: block; height: 100%; }
.lrf-chinews__img{
	display: block;
	aspect-ratio: 16 / 9;
	background: rgba(23, 22, 21, 0.06) center / cover no-repeat;
}
.lrf-chinews__body{
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 20px 22px;
}
.lrf-chinews__title{
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--ink);
}
.lrf-chinews__text{
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--ink-3);
}
.lrf-chinews__more{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}
.lrf-chinews__card:hover .lrf-chinews__more{ color: var(--accent-hi); }


/* ---------------------------------------------------------------------
   LOCANDINE CHE GALLEGGIANO (solo desktop largo)
   --------------------------------------------------------------------- */
.floatcontainer{
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
.lrf-chi .float_movie{
	position: absolute;
	width: clamp(110px, 11vw, 180px);
	aspect-ratio: 2 / 3;
	border-radius: 8px;
	background-size: cover;
	background-position: center center;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
	opacity: 0.92;
	will-change: transform;
}
.lrf-chi .float_movie::before{ content: none; }
.lrf-chi #float1{ top: 12%; left: 1.5%; right: auto; }
.lrf-chi #float2{ top: 19%; left: auto; right: 1.5%; }
.lrf-chi #float3{ top: 32%; left: 2.5%; right: auto; }
.lrf-chi #float4{ top: 41%; left: auto; right: 2%; }
.lrf-chi #float5{ top: 55%; left: 1.5%; right: auto; }
.lrf-chi #float6{ top: 64%; left: auto; right: 1.5%; }

@media (max-width: 1400px){
	.lrf-chi .floatcontainer{ display: none; }
}


/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1000px){
	.lrf-chihero{ padding-top: clamp(120px, 16vh, 170px); }
	/* su schermo stretto le righe fisse devono poter andare a capo */
	.lrf-riga{ white-space: normal; }
	.lrf-chiintro{ grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.lrf-chiintro__foto{ max-width: 420px; }
	.lrf-awards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lrf-chiblocco{ min-height: 0; padding-top: 52%; }
	.lrf-chiblocco__media::after{
		background:
			linear-gradient(0deg, rgba(var(--tint, 20, 19, 18), 0.97) 0%, rgba(var(--tint, 20, 19, 18), 0.88) 38%, rgba(var(--tint, 20, 19, 18), 0) 78%);
	}
	.lrf-chiblocco__cap{ display: none; }
	.lrf-chigruppo__card{ grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.lrf-chiautori__nomi{ text-align: left; }
}
@media (max-width: 600px){
	.lrf-awards{ grid-template-columns: minmax(0, 1fr); }
	.lrf-award{ padding: 26px 18px 28px; }
	.lrf-chiblocco{ padding-top: 68%; }
	.lrf-chi .lrf-head{ flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce){
	.lrf-chihero > .lrf-wrap > *{ animation: none; }
	.lrf-chihero__title{ animation: none; opacity: 1; }
}
