/* ============================================================
   Claudione · Fotografo per l'Arte · redesign demo
   Direzione: monografia fotografica / galleria monocroma
   Skills applicate: frontend-design · taste-skill · impeccable · ui-ux-pro-max
   Palette: ui-ux-pro-max "Museum/Gallery" (neutra, nessun accento cromatico)
   Type: ui-ux-pro-max "Minimalist Monochrome Editorial"
   ============================================================ */

:root {
  /* Dark gallery palette · elegant monochrome, no chromatic accent */
  --bg: #0d0d0f;         /* near-black, neutral (not pure #000) */
  --surface: #16161a;    /* elevated surface (inputs) */
  --ink: #f3f2ef;        /* primary text, light */
  --ink-2: #d6d6d8;
  --muted: #a7a7ae;      /* secondary text, >=4.5:1 on --bg */
  --faint: #8f8f97;      /* form placeholders (WCAG AA on --surface) */
  --line: rgba(255,255,255,0.12);
  --line-2: rgba(255,255,255,0.22);
  --dark: #08080a;       /* deepest shade: filmstrip, closing, footer */
  --on-dark: #f3f2ef;    /* text on the deepest shade */
  --on-dark-muted: #a7a7ae;

  /* Type */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --space-section: clamp(4rem, 8vw, 8rem);

  /* z-index scale */
  --z-sticky: 100;
  --z-menu: 200;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-expo-ish */
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---- A11y helpers ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bg); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- Typography ---- */
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 500;
  line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
}
p { text-wrap: pretty; }
.kicker {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.lead { font-size: clamp(1.1rem, 1rem + 0.55vw, 1.45rem); line-height: 1.5; color: var(--muted); max-width: 52ch; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap;
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em; padding: 0.95rem 1.7rem;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: background .45s var(--ease), color .45s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--on-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--on-dark:hover { background: transparent; color: var(--ink); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--bg); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .3s var(--ease), opacity .3s var(--ease);
}
.textlink:hover { gap: 0.8rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
/* Brand: faithful recreation of Andrea Claudione's signature wordmark */
.brand { display: inline-flex; flex-direction: column; line-height: 1.05; padding-block: 2px; }
.brand__name { font-family: "Pinyon Script", "Snell Roundhand", cursive; font-size: 2rem; font-weight: 400; line-height: 1; }
.brand small {
  font-family: var(--mono); font-size: 0.5rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 0.15rem; align-self: center;
}
.site-footer .brand small { color: var(--on-dark-muted); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  position: relative; padding: 0.3rem 0; transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }

@media (max-width: 920px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.75rem; transform: translateY(-120%);
    transition: transform .45s var(--ease); z-index: var(--z-menu);
    max-height: calc(100dvh - 78px); overflow-y: auto;
  }
  .nav[data-open="true"] .nav-links { transform: translateY(0); }
  .nav-links a { display: block; font-size: 1.05rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { font-weight: 600; }
  .nav[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   Hero · asymmetric, photographic
   ============================================================ */
.hero { position: relative; min-height: min(92dvh, 880px); display: grid; align-items: end; color: var(--on-dark); overflow: hidden; }
@media (max-width: 640px) { .hero { min-height: 84dvh; } }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,8,10,0.30) 0%, rgba(8,8,10,0.10) 20%, rgba(8,8,10,0.48) 52%, rgba(8,8,10,0.90) 100%);
}
.hero h1, .hero .lead, .hero .kicker { text-shadow: 0 1px 22px rgba(0,0,0,0.45); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 6vw, 4.5rem); width: 100%; }
.hero h1 { font-size: clamp(2.7rem, 4.4vw + 1.4rem, 5.6rem); max-width: 15ch; }
.hero .lead { color: var(--on-dark); opacity: 0.9; margin-top: 1.25rem; }
.hero .kicker { color: rgba(244, 244, 245, 0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
/* ============================================================
   Reveal (single, restrained)
   ============================================================ */
/* Content is visible by default; reveal is a progressive enhancement only
   (gated on JS + motion preference) so nothing ships blank without scroll/JS. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .filmstrip__frame img, .gallery img { transition: none !important; }
}

/* ============================================================
   Statement (intro)
   ============================================================ */
.statement { display: grid; gap: 2rem; }
@media (min-width: 900px) { .statement { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.statement .display { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.5rem); max-width: 18ch; }
.statement p + p { margin-top: 1.1rem; color: var(--muted); }
.sign { font-family: var(--display); font-style: italic; font-size: 1.6rem; margin-top: 1.75rem; }

/* ============================================================
   Section head
   ============================================================ */
.section-head { max-width: 56ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); }
.section-head p { color: var(--muted); margin-top: 1rem; max-width: 52ch; }

/* ============================================================
   SERVICES · editorial index (not identical cards)
   ============================================================ */
.index { border-top: 1px solid var(--line-2); }
.index__row {
  display: grid; grid-template-columns: 1fr; gap: 0.4rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
@media (min-width: 760px) {
  .index__row { grid-template-columns: 0.7fr 1.6fr auto; gap: 2rem; align-items: baseline; }
  .index__row:hover { transform: translateX(0.75rem); }
}
.index__name { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); }
.index__desc { color: var(--muted); }
.index__go { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }

/* ============================================================
   FILMSTRIP / CONTACT SHEET · the signature element
   Real 35mm sequence: numbered frames in the sprocket margin.
   ============================================================ */
.filmstrip { background: var(--dark); padding: clamp(1rem, 2.4vw, 1.75rem) 0; }
.filmstrip__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: clamp(0.75rem, 1.5vw, 1.25rem); padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  scroll-padding-inline: var(--gutter);
}
@media (min-width: 760px) { .filmstrip__track { grid-auto-columns: 30%; } }
@media (min-width: 1200px) { .filmstrip__track { grid-auto-columns: 23%; } }
.filmstrip__frame { scroll-snap-align: start; }
.filmstrip__frame figure {
  position: relative; overflow: hidden; background: #1c1c20;
  border: 1px solid rgba(244,244,245,0.12);
}
.filmstrip__frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 1.1s var(--ease); }
.filmstrip__frame:hover img { transform: scale(1.04); }
.filmstrip__cap {
  display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.6rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted);
}

/* ============================================================
   GALLERY (standard editorial grid)
   ============================================================ */
.gallery { display: grid; gap: clamp(0.5rem, 1.2vw, 1rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { position: relative; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 1.1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark); background: linear-gradient(transparent, rgba(10,10,12,0.72));
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* ============================================================
   SPLIT (editorial text + image)
   ============================================================ */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); } }
.split--reverse > .split__media { order: -1; }
@media (max-width: 899px) { .split--reverse > .split__media { order: 0; } }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.split p { color: var(--muted); }
.split p + p { margin-top: 1rem; }

/* ============================================================
   DARK CLOSING MOVEMENT (single inversion → footer)
   ============================================================ */
.dark { background: var(--dark); color: var(--on-dark); }
.dark .kicker { color: var(--on-dark-muted); }
.dark .lead { color: var(--on-dark-muted); }
.quote blockquote {
  font-family: var(--display); font-style: italic; font-size: clamp(1.7rem, 1.1rem + 2.8vw, 3.2rem);
  line-height: 1.16; max-width: 22ch;
}
.quote cite { display: block; margin-top: 1.75rem; font-family: var(--mono); font-style: normal;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.cta { max-width: 46ch; }
.cta h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.8rem); }
.cta .lead { margin: 1.25rem 0 2rem; }

/* ============================================================
   PAGE HERO (interior)
   ============================================================ */
.page-hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.7rem, 1.8rem + 4.2vw, 5.6rem); }
.page-hero .lead { margin-top: 1.25rem; }
.breadcrumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--ink); }

/* ============================================================
   VOICES · real Google reviews (asymmetric, no card chrome)
   ============================================================ */
.voices { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 880px) { .voices { grid-template-columns: 1.25fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; } }
.voice blockquote { font-family: var(--display); font-style: italic; line-height: 1.3; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); }
.voice--lead blockquote { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.2; }
.voice cite { display: block; margin-top: 0.9rem; font-family: var(--mono); font-style: normal;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.voices__col { display: grid; gap: 1.75rem; align-content: start; }
.voices__col .voice { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.rating { display: flex; align-items: baseline; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.rating__stars { color: var(--ink); letter-spacing: 0.1em; font-size: 1.1rem; }
.rating__meta { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); }

/* ============================================================
   PROSE
   ============================================================ */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 2.75rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-top: 1.75rem; margin-bottom: 0.4rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 1.1rem; }
.prose ul { display: grid; gap: 0.55rem; margin: 1rem 0; }
.prose li { padding-left: 1.4rem; position: relative; }
.prose li::before { content: "-"; position: absolute; left: 0.2rem; color: var(--ink); }
.prose a { border-bottom: 1px solid var(--line-2); }

/* ============================================================
   FORM (contatti)
   ============================================================ */
.contact-layout { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.2fr 0.8fr; } }
.form-grid { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field .req { color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; padding: 0.9rem 1rem; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); transition: border-color .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.form-status { font-size: 0.95rem; color: var(--ink); border-left: 1px solid var(--ink); padding-left: 1rem; }
.contact-meta { display: grid; gap: 1.5rem; align-content: start; }
.contact-meta .row { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-meta .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-meta .v { font-size: 1.15rem; font-family: var(--display); margin-top: 0.35rem; }
.contact-meta a.v { border-bottom: 1px solid var(--line-2); display: inline-block; }

/* ============================================================
   FOOTER (dark · continues the closing movement)
   ============================================================ */
.site-footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer .brand { color: var(--on-dark); }
.site-footer h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1rem; }
.site-footer p { color: var(--on-dark-muted); }
.site-footer a { color: var(--on-dark); opacity: 0.85; transition: opacity .25s var(--ease); }
.site-footer a:hover { opacity: 1; }
.footer-links { display: grid; gap: 0.6rem; }
.socials { display: flex; gap: 0.7rem; margin-top: 1.25rem; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(244,244,245,0.2); transition: background .25s var(--ease), color .25s var(--ease); }
.socials a:hover { background: var(--on-dark); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,244,245,0.16);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.8rem; color: var(--on-dark-muted); }

/* ============================================================
   FILM GRAIN · fixed, pointer-events none (darkroom atmosphere)
   ============================================================ */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: 0.06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

