/* ==========================================================================
   Frascoli Design — foglio di stile unico
   Ricavato dal tema WordPress "goarch" (wp-content/uploads/style.css)
   e dalle personalizzazioni del sito, senza Bootstrap e senza plugin.
   ========================================================================== */

:root {
  --rosso: #dc0000;
  --scuro: #3d3d3d;
  --testo: #747474;
  --pannello: #f6f5f3;
  --linee: #f4f4f4;
  --oro: rgba(197, 164, 126, .84);
  --font-titoli: 'Oswald', 'Arial Narrow', sans-serif;
  --font-testo: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-largo: 'Michroma', 'Eurostile', 'Arial', sans-serif;
  --larghezza: min(88vw, 1760px);   /* larghezza dell'intestazione e della home */
}

/* Michroma (Vernon Adams, licenza SIL Open Font License: vedi assets/fonts/Michroma-OFL.txt) */
@font-face {
  font-family: 'Michroma';
  src: url('/assets/fonts/michroma-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 75%; -webkit-font-smoothing: antialiased; }
@media (min-width: 768px)  { html { font-size: 85%; } }
@media (min-width: 992px)  { html { font-size: 92%; } }
@media (min-width: 1200px) { html { font-size: 100%; } }

body {
  margin: 0;
  font-family: var(--font-testo);
  font-weight: 300;
  font-size: 1em;
  line-height: 1.65;
  color: var(--testo);
  background: #fff;
}

html, body { overflow-x: clip; }   /* nessuno scorrimento orizzontale dalle animazioni */
img { max-width: 100%; height: auto; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1.6em; }

a { color: var(--rosso); text-decoration: none; transition: color .3s ease-out; }
a:hover, a:focus { color: var(--rosso); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }

::selection { background-color: var(--rosso); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--rosso); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.text-primary { color: var(--rosso); }

.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.layout { position: relative; overflow: hidden; }

/* --- Titoli di sezione ---------------------------------------------------- */

.section { position: relative; margin: 7.1em 0; }
.section-content { margin-top: 7.1em; }
.home .section-content { margin-top: 4em; }

.section-title {
  margin: 0 0 0 .32em;
  font-family: var(--font-titoli);
  font-weight: 400;
  font-size: 2.1875em;
  line-height: 1.1;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--scuro);
}

/* --- Pulsante ------------------------------------------------------------- */

.btn {
  display: inline-block;
  position: relative;
  padding: 1.1em 2.2em 1.05em;
  border: 0;
  border-radius: 30px;
  font-family: var(--font-testo);
  font-weight: 600;
  font-size: .875em;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--rosso);
  box-shadow: 0 15px 34px rgba(0, 0, 0, .18);
  transition: all .3s ease-out;
}
.btn:hover, .btn:focus { color: #fff; background-color: #323232; box-shadow: none; }
.btn .icon-next { position: relative; top: -.1em; margin-left: .6em; vertical-align: middle; }
.icon-next { display: inline-block; width: .94em; height: .75em; }

/* --- Linee verticali di sfondo -------------------------------------------- */

.page-lines {
  position: absolute; z-index: -1; left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.page-lines .container { display: flex; height: 100%; }
.page-lines .col-line { position: relative; width: 33.3333%; }
.page-lines .line {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 100%;
  background-color: var(--linee);
}
.page-lines .col-line:last-child .line:last-child { left: auto; right: 0; }
/* nella versione bianca le linee verticali del vecchio tema non si usano */
.page-lines { display: none; }

/* ==========================================================================
   Intestazione bianca: logo a sinistra, menu sulla stessa riga
   ========================================================================== */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: #fff;
  transition: box-shadow .3s;
}
.is-scrolled .site-header { box-shadow: 0 1px 0 #e6e6e6; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 3vw;
  width: var(--larghezza);
  margin: 0 auto;
  padding: clamp(18px, 3.4vw, 64px) 0 clamp(16px, 2.4vw, 44px);
  transition: padding .3s;
}
.is-scrolled .header-inner { padding: 14px 0; }

.header-logo { flex-shrink: 0; line-height: 0; }
.header-logo img {
  display: block;
  width: clamp(190px, 26.5vw, 470px);
  height: auto;
  max-width: none;
  transition: width .3s;
}
.is-scrolled .header-logo img { width: clamp(170px, 17vw, 300px); }
/* schermi medi: logo un po' più piccolo per lasciare spazio al menu */
@media (min-width: 1100px) and (max-width: 1439px) { .header-logo img { width: 20vw; } }

/* Menu desktop */
.nav-desktop { display: none; flex: 1; }
.menu {
  display: flex;
  justify-content: space-between;
  gap: 1.2em;
  white-space: nowrap;
  font-family: var(--font-largo);
  font-size: clamp(11px, .86vw, 16px);
  letter-spacing: .07em;
  text-transform: uppercase;
}
/* Michroma ha un solo peso: un contorno sottilissimo lo rende un po' più marcato */
.menu a { display: block; padding: .4em 0; color: #111; -webkit-text-stroke: .35px currentColor; }
.menu a:hover, .menu .active > a { color: var(--rosso); }
/* tra 1100 e 1199 px il menu è un po' più piccolo, così ci sta ancora sulla riga */
@media (min-width: 1100px) and (max-width: 1199px) { .menu { font-size: 10.5px; gap: 1em; } }

/* LARGHEZZA SOTTO LA QUALE COMPARE IL MENU MOBILE: 1100px (prima era 1200px) */
@media (min-width: 1100px) {
  .nav-desktop { display: block; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

/* Menu mobile (sotto i 1100px) */
.nav-toggle {
  margin-left: auto;
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 30px; height: 2px;
  background-color: #111;
  transition: background-color .3s;
}
.nav-toggle .bar + .bar { margin-top: 6px; }
.nav-open .nav-toggle .bar { background-color: var(--rosso); }

.menu-mobile {
  display: none;
  width: var(--larghezza);
  margin: 0 auto;
  padding-bottom: 1em;
  font-family: var(--font-largo);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-open .menu-mobile { display: block; }
.menu-mobile li { border-top: 1px solid #eee; }
.menu-mobile a { display: block; padding: 1em .2em; color: #111; -webkit-text-stroke: .35px currentColor; }
.menu-mobile a:hover, .menu-mobile .active > a { color: var(--rosso); }

/* ==========================================================================
   Home — schizzo con VISION / IDENTITY / FORM e quattro immagini
   Le misure sono in "cqw" (percentuale della larghezza del riquadro),
   così la composizione resta identica a ogni dimensione dello schermo.
   ========================================================================== */

.hero-home {
  width: var(--larghezza);
  margin: clamp(10px, 1.6vw, 30px) auto 0;
  container-type: inline-size;
}
.hero-home-inner {
  position: relative;
  aspect-ratio: 1762 / 1070;
}
.hero-schizzo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.hero-barra {
  position: absolute;
  left: .8cqw;
  top: -.9cqw;
  width: 16.7cqw;
  height: 1.25cqw;
  background: #f2f0ee;
}
.hero-parole {
  position: absolute;
  left: 1.7cqw;
  top: 2.7cqw;
  margin: 0;
  font-family: var(--font-largo);
  font-weight: 400;
  font-size: 4.1cqw;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #111;
}
.hero-parole span { display: block; margin-bottom: 5.5cqw; }
.hero-immagini {
  position: absolute;
  left: .1cqw;
  right: 0;
  bottom: 0;
  height: 31.5%;
  display: grid;
  grid-template-columns: 400fr 441fr 384fr 445fr;
  gap: 1.7cqw;
}
.hero-immagine { margin: 0; overflow: hidden; }
.hero-immagine img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* elementi che si muovono con il mouse (effetto profondità) */
.hero-schizzo, .hero-barra, .hero-parole, .hero-immagine {
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

/* Telefono: le quattro immagini vanno sotto lo schizzo, due per riga */
@media (max-width: 700px) {
  .hero-home-inner { aspect-ratio: auto; }
  .hero-schizzo { position: relative; height: auto; aspect-ratio: 1762 / 1070; }
  .hero-parole { font-size: 6cqw; top: 4cqw; }
  .hero-parole span { margin-bottom: 4.5cqw; }
  .hero-barra { width: 28cqw; height: 2cqw; top: -1.5cqw; }
  .hero-immagini {
    position: static;
    height: auto;
    margin-top: 3cqw;
    grid-template-columns: 1fr 1fr;
    gap: 3cqw;
  }
  .hero-immagine { aspect-ratio: 1.2; }
}

/* ==========================================================================
   Schede progetto e carosello
   ========================================================================== */

.projects { margin-bottom: 0; }

.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 480px) { .carousel-item { flex-basis: 50%; } }
@media (min-width: 769px) { .carousel-item { flex-basis: 33.3333%; } }
@media (min-width: 980px) { .carousel-item { flex-basis: 25%; } }

.carousel-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-titoli);
  font-size: 1em;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #fff;
  opacity: .7;
  transition: opacity .3s;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn svg { width: 1.3em; height: 1em; }
.carousel-prev { left: .8em; }
.carousel-next { right: .8em; }
@media (min-width: 768px) {
  .carousel-prev { left: 3.6em; }
  .carousel-next { right: 3.6em; }
}

.project { overflow: hidden; }
.project .link { display: block; }
.project figure { position: relative; overflow: hidden; }
.project figure img {
  display: block;
  width: 100%;
  aspect-ratio: 480 / 880;
  object-fit: cover;
  transition: transform 8s linear;
}
.project figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #111;
  /* velatura scura sulle copertine: nel sito originale era .7 (e .4 a schede alterne);
     ora .2, molto più tenue. 0 = nessuna, .35 = un po' più scura */
  opacity: .2;
  transition: opacity .5s;
}

.project figcaption {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: 3.2em 3.6em;
}
.project-title {
  position: relative;
  top: 0;
  margin: 0;
  font-family: var(--font-titoli);
  font-weight: 400;
  font-size: 1.56em;
  line-height: 1.45;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  transition: all .5s;
}
.project-category {
  position: absolute;
  left: 0; bottom: 0;
  margin: 0 0 -.8em;
  font-family: var(--font-titoli);
  font-weight: 400;
  font-size: 14px;
  line-height: 3;
  letter-spacing: .8em;
  white-space: nowrap;
  color: #fff;
  transform: rotate(-90deg);
  transform-origin: 0;
  transition: all .5s;
}
.project-zoom {
  position: absolute;
  left: 50%; top: 50%;
  width: 9em; height: 9em;
  margin: -4.5em;
  border-radius: 50%;
  background-color: var(--oro);
  opacity: 0;
  transform: scale(.5);
  transition: all .7s;
}
.project-zoom::before, .project-zoom::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.project-zoom::before { width: 2.625em; height: 2px; }
.project-zoom::after  { width: 2px; height: 2.625em; }

.project figure:hover img { transform: scale(1.4); }
/* passando il mouse il titolo e la categoria diventano rossi come il logo */
.project figure:hover .project-title,
.project figure:hover .project-category { color: #ff0000; }
.project figure:hover .project-zoom { opacity: 1; transform: scale(1); }

/* ==========================================================================
   Testata delle pagine interne (bianca, titolo in basso a sinistra)
   ========================================================================== */

.page-hero { position: relative; overflow: hidden; }
.page-hero-img { display: block; width: 100%; height: auto; max-width: none; }
.page-hero-inner {
  position: absolute;
  left: 0; right: 0;
  bottom: 9%;
  width: var(--larghezza);
  margin: 0 auto;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--font-largo);
  font-weight: 400;
  font-size: clamp(22px, 3.9vw, 72px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #111;
}
@media (max-width: 700px) {
  /* su telefono l'immagine sarebbe troppo bassa: la teniamo più alta e ritagliata */
  .page-hero-img { height: 46vw; object-fit: cover; object-position: 70% 50%; }
}

/* ==========================================================================
   Pagina Clients
   ========================================================================== */

.clients-page {
  width: 100%;
  margin: 80px auto 0;
  padding: 0 15px 200px;
}
@media (min-width: 768px) { .clients-page { width: 50%; } }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(6, 1fr); } }

.logo-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  animation: fade-in 1s both;
}
.logo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Portfolio
   ========================================================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 120px;
}
@media (min-width: 768px)  { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .portfolio-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Pagina progetto
   ========================================================================== */

/* Testata scura dei singoli progetti (come nel sito attuale) */
.project-hero {
  position: relative;
  overflow: hidden;
  padding: 16vmin 0 11vmin;
  background-color: #171717;
  background-size: cover;
  background-position: 50% 0;
}
.project-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #171717;
  opacity: .6;
}
.project-hero-header {
  position: relative;
  z-index: 2;
  text-align: right;
  color: #fff;
}
.project-hero h1 {
  margin: 0 -.2em 0 0;
  font-family: var(--font-titoli);
  font-weight: 400;
  font-size: 5.5vmin;
  line-height: 1.15;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
}
.project-hero .page-lines { z-index: 1; opacity: .08; }

.project-title-info {
  margin: 2.2em 0 0 -1.8em;
  font-family: var(--font-testo);
  font-weight: 700;
  font-size: 2vmin;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.project-info-item { display: inline-block; margin-left: 1.8em; }

.project-text {
  width: 100%;
  margin: 80px auto 0;
  padding: 0 15px;
  font-size: 1.1em;
}
@media (min-width: 768px) { .project-text { width: 50%; } }
.project-text h3 {
  font-family: var(--font-testo);
  font-weight: 600;
  font-size: 1.875em;
  line-height: 1.1;
  color: var(--scuro);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 100%;
  margin: 60px auto 0;
  padding: 0 15px;
}
@media (min-width: 768px) {
  .project-gallery { width: 50%; }
  .project-gallery.cols-1 { grid-template-columns: 1fr; }
  .project-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .project-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .project-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.project-gallery a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  animation: fade-in 1s both;
}
.project-gallery img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease-out;
}
.project-gallery a:hover img { transform: scale(1.05); }
.project-gallery.cols-1 { grid-template-columns: 1fr; }

.project-images, .project-videos, .project-button {
  width: 100%;
  margin: 60px auto 0;
  padding: 0 15px;
}
@media (min-width: 768px) {
  .project-images, .project-videos, .project-button { width: 50%; }
}
.project-images a { display: block; margin-bottom: 15px; }
.project-images img { display: block; width: 100%; height: auto; }
.project-videos .video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 30px; background: #000; }
.project-videos iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-button { text-align: center; }
.project-button .btn { background-image: linear-gradient(to right, #b70000, #dc0000); }
.project-button .btn:hover { background-image: none; }
.icon-download { width: 1.2em; height: 1.2em; margin-right: .6em; vertical-align: -.25em; }

/* ==========================================================================
   Pagine di testo: About me, My Father
   ========================================================================== */

.page-body {
  width: 100%;
  margin: 70px auto 0;
  padding: 0 15px;
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
}
@media (min-width: 768px) { .page-body { width: 50%; } }
.page-body p { margin-bottom: 1.4em; }

.about { display: grid; gap: 30px; }
.about-photo img { display: block; width: 100%; height: auto; }
@media (min-width: 992px) {
  .about { grid-template-columns: 2fr 1fr; align-items: start; }
}

.father { display: grid; gap: 30px; }
@media (min-width: 992px) { .father { grid-template-columns: 1fr 1fr; } }
.father-gallery { margin-top: 50px; margin-bottom: 70px; }

/* ==========================================================================
   Contacts
   ========================================================================== */

.contact-band {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background-color: #171717;
  background-size: cover;
  background-position: center;
}
.contact-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(23, 23, 23, .92) 0, rgba(23, 23, 23, .75) 45%, rgba(23, 23, 23, .25) 100%);
}
.contact-box {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 5.5em 0 6em;
  color: #fff;
}
.contact-box-title {
  position: absolute;
  top: 100%;
  left: 100%;
  margin-top: -.5em;
  margin-left: -2.3em;
  font-family: var(--font-titoli);
  font-size: 80px;
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  opacity: .1;
  transform: rotate(-90deg);
  transform-origin: 0;
  pointer-events: none;
}
@media (max-width: 767px) { .contact-box-title { display: none; } }
.contact-row { margin-bottom: 2.3em; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row h4 {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .8em;
  font-family: var(--font-testo);
  font-weight: 600;
  font-size: 1.125em;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
}
.contact-row h4 svg { width: 1.3em; height: 1.3em; color: var(--rosso); }
.contact-content { font-size: 1.3em; color: #fff; }
.contact-content a { color: #fff; }
.contact-content a:hover { color: var(--rosso); }
/* email e Instagram sulla stessa riga (vanno a capo da telefono) */
.contact-row-social { display: flex; flex-wrap: wrap; align-items: center; gap: .8em 2.2em; }
.contact-ig { display: inline-flex; align-items: center; gap: .5em; }
.contact-ig svg { width: 1.05em; height: 1.05em; color: var(--rosso); flex-shrink: 0; }

/* ==========================================================================
   Press release
   ========================================================================== */

.press-list { margin-top: 70px; }
.press-item {
  margin-bottom: 3em;
  padding: 2.6em 3em 2em;
  background: #fff;
  box-shadow: 0 1px 15px rgba(0, 0, 0, .08);
}
.press-title {
  margin: 0 0 .8em;
  font-family: var(--font-titoli);
  font-weight: 400;
  font-size: 1.75em;
  line-height: 1.3;
  color: var(--scuro);
}
.press-title a { color: inherit; }
.press-title a:hover { color: var(--rosso); }
.press-excerpt { color: #222; }
.press-excerpt p { margin: 0; }
.press-excerpt p:last-child::after { content: '...'; }
.press-excerpt strong { font-weight: 600; }
.press-meta {
  margin-top: 1.7em;
  padding-top: 1em;
  border-top: 1px solid #cfcfcf;
  font-size: .88em;
  color: #6b6b6b;
}
@media (max-width: 767px) { .press-item { padding: 2em 1.6em 1.6em; } }

/* --- Pagina 404 ------------------------------------------------------------ */

.nf {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4vw;
  align-items: center;
  width: var(--larghezza);
  margin: clamp(20px, 3vw, 60px) auto 0;
}
.nf-etichetta {
  margin: 0 0 1.4em;
  font-family: var(--font-largo);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rosso);
}
.nf-titolo {
  margin: 0 0 .6em;
  font-family: var(--font-largo);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 80px);
  line-height: 1.15;
  text-transform: uppercase;
  color: #111;
}
.nf-titolo span { display: block; }
.nf-frase { max-width: 26em; margin: 0 0 2.2em; font-size: 1.1em; line-height: 1.7; color: #333; }
.nf-link { display: grid; gap: .2em; }
.nf-link a {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  padding: .55em 0;
  font-family: var(--font-largo);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111;
  -webkit-text-stroke: .3px currentColor;
}
.nf-link svg { width: 1.6em; height: 1.2em; color: var(--rosso); transition: transform .3s; }
.nf-link a:hover { color: var(--rosso); }
.nf-link a:hover svg { transform: translateX(6px); }

.nf-schizzo { position: relative; container-type: inline-size; }
.nf-schizzo img { display: block; width: 100%; height: auto; opacity: .55; }
.nf-numero {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-largo);
  font-size: 27cqw;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--rosso);
  mix-blend-mode: multiply;
}

.nf-progetti {
  width: var(--larghezza);
  margin: clamp(60px, 8vw, 130px) auto 0;
  padding-top: 2.5em;
  border-top: 1px solid #e6e6e6;
}
.nf-sottotitolo {
  margin: 0 0 1.6em;
  font-family: var(--font-largo);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #111;
}
.nf-griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.7vw; }
.nf-scheda { display: block; color: #111; }
.nf-foto { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #f2f0ee; }
.nf-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease-out; }
.nf-scheda:hover img { transform: scale(1.05); }
.nf-nome {
  display: block;
  margin-top: 1em;
  font-family: var(--font-largo);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nf-scheda:hover .nf-nome { color: var(--rosso); }

@media (max-width: 800px) {
  .nf { grid-template-columns: 1fr; gap: 30px; }
  .nf-schizzo { order: -1; }
  .nf-griglia { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
}

/* ==========================================================================
   Cookie: banner e video bloccati
   ========================================================================== */

.cookie-banner {
  position: fixed;
  z-index: 90;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2em 2.5em;
  padding: 1.6em max(15px, calc((100vw - 1170px) / 2 + 15px));
  padding-right: max(50px, calc((100vw - 1170px) / 2 + 15px));
  background: rgba(10, 10, 10, .96);
  color: #ddd;
  font-size: .95em;
  line-height: 1.6;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, .25);
}
.cookie-banner[hidden] { display: none; }
.cookie-testo { flex: 1 1 480px; max-width: 760px; }
.cookie-testo h2 {
  margin: 0 0 .4em;
  font-family: var(--font-titoli);
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #fff;
}
.cookie-testo p { margin: 0; }
.cookie-testo a { color: #fff; text-decoration: underline; }
.cookie-opzioni { margin-top: 1em; display: grid; gap: .6em; }
.cookie-opzioni[hidden] { display: none; }
.cookie-voce { display: flex; gap: .7em; align-items: flex-start; cursor: pointer; }
.cookie-voce input { margin-top: .35em; accent-color: var(--rosso); width: 1.1em; height: 1.1em; }
.cookie-voce strong { color: #fff; font-weight: 600; }
.cookie-pulsanti { display: flex; flex-wrap: wrap; gap: .6em; }
.cookie-btn {
  min-width: 9em;
  padding: .85em 1.6em;
  border: 1px solid #fff;
  border-radius: 30px;
  background: #fff;
  color: #111;
  font-family: var(--font-testo);
  font-weight: 600;
  font-size: .8em;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.cookie-btn:hover { background: #ddd; border-color: #ddd; }
.cookie-btn[hidden] { display: none; }
.cookie-btn-primario { background: var(--rosso); border-color: var(--rosso); color: #fff; }
.cookie-btn-primario:hover { background: #b70000; border-color: #b70000; }
.cookie-chiudi {
  position: absolute;
  top: .3em; right: .5em;
  padding: .1em .3em;
  background: none;
  border: 0;
  color: #aaa;
  font-size: 2em;
  line-height: 1;
  cursor: pointer;
}
.cookie-chiudi:hover { color: #fff; }
@media (max-width: 600px) {
  .cookie-banner { padding: 1.4em 15px; }
  .cookie-pulsanti { width: 100%; }
  .cookie-btn { flex: 1 1 auto; min-width: 0; }
}

.video-bloccato {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 1.5em;
  text-align: center;
  color: #ccc;
  background: #151515;
  font-size: .95em;
}
.video-bloccato[hidden] { display: none; }
.video-bloccato p { margin: 0; }
.video-esterno { color: #fff; font-size: .9em; text-decoration: underline; }
.video-esterno:hover { color: var(--rosso); }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.6em; }
.footer-links button { padding: 0; background: none; border: 0; font-size: inherit; cursor: pointer; }
@media (min-width: 992px) { .footer-links { justify-content: flex-end; } }

/* --- Pagina Privacy --------------------------------------------------------- */

.privacy { max-width: 820px; width: 100%; }
@media (min-width: 768px) { .privacy { width: 100%; } }
.privacy h2 {
  margin: 2em 0 .6em;
  font-family: var(--font-titoli);
  font-weight: 400;
  font-size: 1.35em;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--scuro);
}
.privacy h2:first-child { margin-top: 0; }
.privacy ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1.4em; }
.privacy li { margin-bottom: .5em; }
.privacy .da-completare { background: #fff3c4; padding: 0 .2em; }
.privacy .aggiornamento { margin-top: 3em; font-size: .9em; color: #6b6b6b; }

/* --- Pagina progetto: ritorno al portfolio e progetto precedente/successivo -- */

.project-back {
  width: 100%;
  margin: 30px auto 0;
  padding: 0 15px;
}
@media (min-width: 768px) { .project-back { width: 50%; } }
.project-back a {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .6em 0;
  font-family: var(--font-titoli);
  font-size: 1em;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--scuro);
}
.project-back a:hover { color: var(--rosso); }
.project-back svg { width: 1.4em; height: 1.1em; }

.project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1em;
  width: 100%;
  margin: 70px auto 0;
  padding: 2em 15px 0;
  border-top: 1px solid #e3e3e3;
}
@media (min-width: 768px) { .project-nav { width: 50%; } }
.project-nav-prev, .project-nav-next { display: block; color: var(--scuro); line-height: 1.3; }
.project-nav-next { text-align: right; }
.project-nav-prev:hover, .project-nav-next:hover { color: var(--rosso); }
.project-nav-label {
  display: block;
  font-family: var(--font-titoli);
  font-size: .85em;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--rosso);
}
.project-nav-name { display: block; margin-top: .3em; font-size: .9em; }
@media (max-width: 600px) {
  .project-nav { grid-template-columns: 1fr 1fr; }
  .project-nav-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: .8em; }
  .project-nav-name { display: none; }
}

/* ==========================================================================
   Galleria a schermo intero (lightbox)
   ========================================================================== */

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 20, 20, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  box-shadow: 0 0 25px rgba(0, 0, 0, .6);
  transform: scale(.96);
  transition: transform .3s;
}
.lightbox.is-open img { transform: none; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 12px; right: 18px; font-size: 44px; line-height: 1; font-weight: 300; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); padding: 20px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-prev svg, .lightbox-next svg { width: 28px; height: 28px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-titoli);
  letter-spacing: .2em;
  font-size: 13px;
  color: #ccc;
}

/* ==========================================================================
   Piè di pagina
   ========================================================================== */

.footer { margin: 7.1em 0 5.5em; font-size: 12px; text-align: center; }
.footer-row { display: grid; gap: 3em; align-items: center; }
.footer .brand img { display: block; width: 220px; height: auto; margin: 0 auto; }
.author-link { font-family: var(--font-testo); font-weight: 400; color: inherit; }
.author-link:hover { color: var(--rosso); }
@media (min-width: 992px) {
  .footer-row { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .footer-row > :first-child { text-align: left; }
  .footer-row > :first-child img { margin: 0; }
  .footer-row > :last-child { text-align: right; }
}

/* ==========================================================================
   Versione bianca: Michroma anche per i nomi delle moto
   (schede del portfolio e dei caroselli, testata delle pagine progetto)
   ========================================================================== */

.project-title {
  font-family: var(--font-largo);
  font-size: 1.12em;
  line-height: 1.5;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.project-category { font-family: var(--font-largo); font-size: 11px; letter-spacing: .5em; }
.project-hero h1 {
  font-family: var(--font-largo);
  font-size: 4.4vmin;
  line-height: 1.25;
  letter-spacing: .04em;
  margin-right: 0;
}
.section-title { font-family: var(--font-largo); letter-spacing: .12em; font-size: 1.9em; }
.project-nav-label, .project-back a { font-family: var(--font-largo); letter-spacing: .1em; }
@media (max-width: 600px) {
  .project-title { font-size: 1.25em; }
  .project-hero h1 { font-size: 6vmin; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .carousel-track { scroll-behavior: auto; }
}
