:root {  
 --bg: #000;  
 --fg: #fff;  
 --accent: #f5e400;  
 --nav-hover: #82001d;  
 --gap: 6px;  
}  
  
* {  
 box-sizing: border-box;  
}  
  
html, body {  
 margin: 0;  
 padding: 0;  
 background: var(--bg);  
 color: var(--fg);  
 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;  
}  
  
a {  
 color: inherit;  
 text-decoration: none;  
}  
  
/* Header (used on inner pages) */  
.site-header {  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
 padding: 20px 30px;  
}  
  
.header-left {  
 font-size: 13px;  
 letter-spacing: 0.02em;  
}  
  
.header-nav {  
 display: flex;  
 gap: 26px;  
 font-size: 13px;  
}  
  
.header-nav a {  
 position: relative;  
 padding-bottom: 2px;  
 text-decoration: none;  
}  
  
.header-nav a::after {  
 content: "";  
 position: absolute;  
 left: 0;  
 right: 0;  
 bottom: -3px;  
 height: 1px;  
 background: currentColor;  
 transform: scaleX(0);  
 transform-origin: right;  
 transition: transform 0.25s ease;  
}  
  
.header-nav a.active {  
 text-decoration: underline;  
}  
  
.header-nav a:hover {  
 color: var(--nav-hover);  
}  
  
.menu-toggle {  
 display: none;  
 width: 38px;  
 height: 38px;  
 padding: 0;  
 border: 1px solid #444;  
 background: transparent;  
 color: var(--fg);  
 cursor: pointer;  
}  
  
.menu-toggle span,  
.menu-toggle::before,  
.menu-toggle::after {  
 display: block;  
 width: 15px;  
 height: 1px;  
 margin: 4px auto;  
 background: currentColor;  
 content: "";  
 transition: transform 0.2s ease, opacity 0.2s ease;  
}  
  
.menu-toggle.is-open span { opacity: 0; }  
.menu-toggle.is-open::before { transform: translateY(5px) rotate(45deg); }  
.menu-toggle.is-open::after { transform: translateY(-5px) rotate(-45deg); }  
  
.header-nav a:hover::after {  
 transform: scaleX(1);  
 transform-origin: left;  
}  
  
/* Hero (homepage header: handle+nav row, then centered big title + role) */  
.hero {  
 padding: 20px 30px 26px;  
}  
  
.hero-top {  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
 padding: 20px 30px;  
}  
  
.hero-top.no-side-pad {  
 padding-left: 0;  
 padding-right: 0;  
}  
  
.hero-handle {  
 font-size: 13px;  
 letter-spacing: 0.02em;  
}  
  
.hero-nav {  
 display: flex;  
 gap: 26px;  
 font-size: 15px;  
 white-space: nowrap;  
}  
  
.hero-nav a {  
 position: relative;  
 padding-bottom: 2px;  
 text-decoration: none;  
}  
  
.hero-nav a::after {  
 content: "";  
 position: absolute;  
 left: 0;  
 right: 0;  
 bottom: -3px;  
 height: 1px;  
 background: currentColor;  
 transform: scaleX(0);  
 transform-origin: right;  
 transition: transform 0.25s ease;  
}  
  
.hero-nav a.active {  
 text-decoration: underline;  
}  
  
.hero-nav a:hover {  
 color: var(--nav-hover);  
}  
  
.hero-nav a:hover::after {  
 transform: scaleX(1);  
 transform-origin: left;  
}  
  
@media (max-width: 700px) {  
 .site-header,  
 .hero-top {  
 padding-left: 18px;  
 padding-right: 18px;  
 position: relative;  
 flex-direction: row;  
 align-items: center;  
 row-gap: 0;  
 text-align: left;  
 }  
 .header-nav,  
 .hero-nav {  
 display: none;  
 position: absolute;  
 top: calc(100% + 1px);  
 right: 18px;  
 left: 18px;  
 z-index: 10;  
 grid-template-columns: 1fr;  
 justify-content: stretch;  
 gap: 0;  
 padding: 10px 18px;  
 border: 1px solid #333;  
 background: #000;  
 font-size: 12px;  
 }  
 .header-nav.is-open,  
 .hero-nav.is-open { display: grid; }  
 .header-nav a,  
 .hero-nav a { padding: 13px 0; }  
 .menu-toggle { display: block; }  
 .container,  
 .hero,  
 .grid,  
 .contact-form {  
 padding-left: 18px;  
 padding-right: 18px;  
 }  
}  
  
.hero-title-block {  
 width: fit-content;  
 max-width: 100%;  
 margin: 18px auto 0;  
}  
  
.hero-title-block h1 {  
 margin: 0;  
 font-weight: 800;  
 font-size: clamp(34px, 7vw, 84px);  
 letter-spacing: -0.01em;  
 line-height: 0.95;  
 white-space: nowrap;  
}  
  
.hero-title-block .role {  
 margin-top: 8px;  
 text-align: right;  
 font-size: 14px;  
 font-weight: 700;  
 letter-spacing: 0.03em;  
 color: var(--fg);  
}  
  
@media (max-width: 700px) {  
 .hero-title-block h1 {  
 white-space: normal;  
 text-align: center;  
 }  
 .hero-title-block .role {  
 text-align: center;  
 }  
}  
  
/* Grid */  
.grid {  
 display: grid;  
 grid-template-columns: repeat(3, 1fr);  
 gap: 24px 20px;  
 padding: 20px 30px 40px;  
}  
  
.tile {  
 display: block;  
}  
  
.tile .frame {  
 position: relative;  
 overflow: hidden;  
 background: #111;  
}  
  
.tile video {  
 width: 100%;  
 height: 100%;  
 object-fit: cover;  
 display: block;  
 transition: transform 0.6s ease;  
}  
  
.tile:hover video {  
 transform: scale(1.06);  
}  
  
.tile .frame::after {  
 content: "";  
 position: absolute;  
 inset: 0;  
 background: rgba(0, 0, 0, 0);  
 transition: background 0.35s ease;  
 pointer-events: none;  
}  
  
.tile:hover .frame::after {  
 background: rgba(0, 0, 0, 0.45);  
}  
  
.tile .play-label {  
 position: absolute;  
 top: 50%;  
 left: 50%;  
 transform: translate(-50%, -50%) scale(0.92);  
 opacity: 0;  
 color: #fff;  
 font-weight: 800;  
 font-size: 11px;  
 letter-spacing: 0.1em;  
 text-transform: uppercase;  
 border: 1px solid #fff;  
 padding: 10px 18px;  
 white-space: nowrap;  
 transition: opacity 0.3s ease, transform 0.3s ease;  
 pointer-events: none;  
}  
  
.tile:hover .play-label {  
 opacity: 1;  
 transform: translate(-50%, -50%) scale(1);  
}  
  
/* Scroll-in cascade animation for grid tiles */  
.tile {  
 opacity: 0;  
 transform: translateY(30px);  
 transition: opacity 0.6s ease, transform 0.6s ease;  
}  
  
.tile.in-view {  
 opacity: 1;  
 transform: translateY(0);  
}  
  
.tile:nth-child(3n+2) {  
 transition-delay: 0.08s;  
}  
  
.tile:nth-child(3n) {  
 transition-delay: 0.16s;  
}  
  
@media (prefers-reduced-motion: reduce) {  
 .tile {  
 opacity: 1;  
 transform: none;  
 transition: none;  
 }  
 .tile video,  
 .tile .frame::after,  
 .tile .play-label {  
 transition: none;  
 }  
}  
  
/* Riquadri orizzontali 16:9 (default) e verticali 9:16 (classe is-vertical).  
 Si usa una classe e non la posizione, così i filtri non alterano le proporzioni. */  
.grid .tile .frame {  
 aspect-ratio: 16 / 9;  
}  
  
.grid .tile.is-vertical .frame {  
 aspect-ratio: 9 / 16;  
}  
  
.tile[hidden] {  
 display: none;  
}  
  
.tile video {  
 width: 100%;  
 height: 100%;  
 object-fit: cover;  
 display: block;  
}  
  
.tile .caption {  
 display: block;  
 margin-top: 8px;  
 font-size: 12px;  
 font-weight: 700;  
 letter-spacing: 0.03em;  
 text-transform: uppercase;  
}  
  
/* Desktop: portfolio senza interruzioni, con titolo leggibile sull'immagine. */  
@media (min-width: 701px) {  
 .grid {  
 gap: 0;  
 }  
  
 .tile {  
 position: relative;  
 }  
  
 .tile .caption {  
 position: absolute;  
 left: 12px;  
 bottom: 11px;  
 z-index: 2;  
 margin: 0;  
 color: #fff;  
 text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);  
 }  
}  
  
@media (max-width: 700px) {  
 .grid {  
 grid-template-columns: 1fr;  
 gap: 22px;  
 }  
  
 /* Una sequenza editoriale, larga e ordinata, anche per i video verticali. */  
 .grid .tile .frame {  
 aspect-ratio: 16 / 9 !important;  
 }  
}  
  
/* Entrance effect: blur to sharp on load, once.  
 Applicato solo alla classe "intro-blur" (solo sul <body> di index.html),  
 così non riparte quando si naviga tra le altre pagine del sito. */  
.intro-blur {  
 animation: introReveal 2.6s ease-out;  
}  
  
@keyframes introReveal {  
 from {  
 filter: blur(18px);  
 opacity: 0;  
 }  
 to {  
 filter: blur(0);  
 opacity: 1;  
 }  
}  
  
@media (prefers-reduced-motion: reduce) {  
 body {  
 animation: none;  
 }  
}  
  
/* Page title (used on inner pages like About, Director, etc.) */  
.container {  
 max-width: 1400px;  
 margin: 0 auto;  
 padding: 0 30px;  
}  
  
.page-title {  
 padding: 30px 0 0;  
}  
  
.page-title h1 {  
 margin: 0;  
 font-weight: 800;  
 font-size: clamp(32px, 6vw, 66px);  
 line-height: 1.05;  
 letter-spacing: -0.01em;  
}  
  
/* About page body: photo + text columns */  
.about-body {  
 display: flex;  
 gap: 40px;  
 align-items: flex-start;  
 padding: 30px 0 60px;  
}  
  
.about-photo {  
 flex: 0 0 300px;  
 width: 300px;  
}  
  
.about-photo img {  
 width: 100%;  
 aspect-ratio: 3 / 4;  
 object-fit: cover;  
 display: block;  
}  
  
.about-text {  
 flex: 1;  
 font-size: 18px;  
 line-height: 1.7;  
 padding-top: 6px;  
}  
  
.about-text p {  
 margin: 0 0 20px;  
}  
  
.about-text .imdb-link {  
 display: inline-block;  
 margin-top: 4px;  
 opacity: 0.85;  
 transition: opacity 0.2s ease, transform 0.2s ease;  
}  
  
.about-text .imdb-link img {  
 display: block;  
 width: 44px;  
 height: auto;  
}  
  
.about-text .imdb-link:hover {  
 opacity: 1;  
 transform: translateY(-1px);  
}  
  
@media (max-width: 700px) {  
 .about-body {  
 flex-direction: column;  
 }  
 .about-photo {  
 width: 100%;  
 flex: none;  
 }  
}  
  
/* Contact form */  
.contact-form {  
 max-width: 640px;  
 margin: 0 auto;  
 padding: 30px 30px 90px;  
 display: flex;  
 flex-direction: column;  
 gap: 34px;  
}  
  
.contact-form > div + div {  
 border-top: none;  
 padding-top: 0;  
}  
  
.contact-form label {  
 display: block;  
 font-size: 11px;  
 font-weight: 500;  
 letter-spacing: 0.12em;  
 text-transform: uppercase;  
 margin-bottom: 10px;  
 color: var(--muted, rgba(255, 255, 255, 0.7));  
}  
  
.contact-form input,  
.contact-form textarea {  
 width: 100%;  
 background: transparent;  
 border: none;  
 border-bottom: 1px solid rgba(255, 255, 255, 0.35);  
 color: var(--fg);  
 font-family: inherit;  
 font-size: 17px;  
 padding: 8px 2px 12px;  
 border-radius: 0;  
 outline: none;  
 transition: border-color 0.25s ease;  
}  
  
.contact-form input:focus,  
.contact-form textarea:focus {  
 outline: none;  
 border-color: var(--nav-hover);  
}  
  
.contact-form textarea {  
 resize: vertical;  
 min-height: 110px;  
}  
  
.contact-form button {  
 align-self: center;  
 margin-top: 10px;  
 background: transparent;  
 color: var(--fg);  
 border: 1px solid var(--fg);  
 font-family: inherit;  
 font-weight: 500;  
 font-size: 13px;  
 letter-spacing: 0.1em;  
 text-transform: uppercase;  
 padding: 14px 44px;  
 cursor: pointer;  
 transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;  
}  
  
.contact-form button:hover {  
 background: var(--accent);  
 border-color: var(--accent);  
 color: #0a0a0a;  
}  
  
.contact-form .honeypot {  
 position: absolute;  
 left: -9999px;  
}  
  
/* Footer */  
.site-footer {  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
 padding: 24px 30px;  
 margin-top: 30px;  
 border-top: 1px solid #222;  
 font-size: 12px;  
 color: #999;  
}  
  
.site-footer a {  
 color: #999;  
}  
  
.site-footer a:hover {  
 color: var(--fg);  
}  
  
.site-footer .instagram-link {  
 display: inline-flex;  
 align-items: center;  
 justify-content: center;  
 color: var(--fg);  
}  
  
.instagram-link svg {  
 width: 17px;  
 height: 17px;  
 fill: none;  
 stroke: currentColor;  
 stroke-width: 1.8;  
 transition: color 0.2s ease, transform 0.2s ease;  
}  
  
.instagram-link .instagram-dot {  
 fill: currentColor;  
 stroke: none;  
}  
  
.instagram-link:hover svg {  
 color: var(--accent);  
 transform: translateY(-2px);  
}  
  
@media (max-width: 700px) {  
 .site-footer {  
 flex-direction: column;  
 gap: 8px;  
 text-align: center;  
 padding-left: 18px;  
 padding-right: 18px;  
 }  
}

/* Filtri del portfolio */
.filters {
 display: flex;
 gap: 26px;
 padding: 0 30px 6px;
}

.filter {
 padding: 6px 0;
 border: 0;
 background: transparent;
 color: #777;
 font: inherit;
 font-size: 15px;
 cursor: pointer;
 transition: color 0.2s ease;
}

.filter {
 position: relative;
}

.filter::after {
 content: "";
 position: absolute;
 left: 0;
 right: 0;
 bottom: -1px;
 height: 1px;
 background: currentColor;
 transform: scaleX(0);
 transform-origin: right;
 transition: transform 0.25s ease;
}

.filter.is-active {
 color: var(--fg);
}

.filter.is-active .count {
 color: #888;
}

/* Hover identico al menu in alto: testo rosso + sottolineatura che scorre */
.filter:hover,
.filter.is-active:hover {
 color: var(--nav-hover);
}

.filter:hover .count,
.filter.is-active:hover .count {
 color: var(--nav-hover);
}

.filter:hover::after {
 transform: scaleX(1);
 transform-origin: left;
}

.filter:focus-visible {
 outline: 1px solid var(--fg);
 outline-offset: 4px;
}

@media (max-width: 700px) {
 .filters {
 padding-left: 18px;
 padding-right: 18px;
 gap: 18px;
 overflow-x: auto;
 }
}
