/* Frank Prochilo Photography — impaginazione come il vecchio sito wfolio:
   grigio scuro, testi Roboto, titoli Forum, colonna centrale, foto con angoli arrotondati. */

:root {
  --bg: #1e1e1e;
  --surface: #262626;
  --line: #353535;
  --text: #ffffff;
  --soft: #e6e6e6;
  --muted: #a8a8a8;
  --title: 'Forum', Georgia, serif;
  --sans: 'Roboto', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --col: 600px;      /* colonna dei testi */
  --wide: 960px;     /* foto dentro il testo */
  --grid: 1240px;    /* gallerie e categorie */
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1.1em; }

.col { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.grid-wrap { max-width: calc(var(--grid) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- testata: logo in alto al centro, menu sotto con i pallini ---------- */
.top { position: relative; z-index: 5; background: var(--bg); padding: 22px var(--gutter) 30px; text-align: center; }
.logo { display: inline-block; text-decoration: none; }
.logo img { height: 44px; width: auto; margin: 0 auto; }
.logo span { font: 400 22px/1 var(--title); letter-spacing: .08em; text-transform: uppercase; }
.top nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.top nav a { font: 400 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; padding: 6px 0; }
.top nav a + a::before { content: '•'; display: inline-block; margin: 0 28px; color: var(--muted); }
.top nav a span { padding-bottom: 3px; border-bottom: 1px solid transparent; }
.top nav a:hover span, .top nav a[aria-current="page"] span { border-bottom-color: currentColor; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); text-align: left; }
  .logo img { height: 34px; }
  .menu-btn { display: grid; gap: 6px; width: 40px; height: 40px; place-content: center; background: none; border: 0; padding: 0; cursor: pointer; }
  .menu-btn span { width: 22px; height: 1.5px; background: var(--text); transition: transform .25s; }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .top nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .top nav a { font-size: 15px; }
  .top nav a + a::before { content: none; }
  .menu-open .top nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* ---------- foto grande che resta ferma mentre la pagina le scorre sopra ---------- */
.hero { position: sticky; top: 0; z-index: 0; height: 100svh; min-height: 420px; overflow: hidden; background: #000; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero.dim::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.hero-arrow {
  position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 22px; text-decoration: none; opacity: .8; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
.sheet { position: relative; z-index: 1; background: var(--bg); padding-top: clamp(48px, 7vw, 80px); }

/* ---------- home: testo e foto alternati in colonna ---------- */
.motto { font: 400 clamp(28px, 3.6vw, 38px)/1.15 var(--title); text-transform: uppercase; letter-spacing: .02em; text-align: center; margin-bottom: 26px; }
.story p { color: var(--soft); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 50px); margin: clamp(32px, 5vw, 50px) auto; }
.pair img, .single img { width: 100%; border-radius: var(--radius); }
.pair img { aspect-ratio: 1; object-fit: cover; }
.single { margin: clamp(32px, 5vw, 50px) auto; }

/* ---------- titoli di sezione ---------- */
.section-title { font: 400 22px/1 var(--title); text-transform: uppercase; letter-spacing: .02em; text-align: center; margin: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.page-title { font: 400 clamp(30px, 4vw, 42px)/1.1 var(--title); text-transform: uppercase; letter-spacing: .02em; text-align: center; margin: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 44px); }
.lead { text-align: center; color: var(--muted); margin: -16px auto 36px; max-width: 60ch; }

/* ---------- categorie: quadrati con il titolo al centro ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 40px); }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.tile::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); transition: background .4s; }
.tile-title { position: relative; z-index: 1; font: 700 clamp(17px, 2vw, 24px)/1.2 var(--sans); text-shadow: 0 1px 12px rgba(0,0,0,.55); padding-bottom: 2px; border-bottom: 2px solid transparent; transition: border-color .3s; }
.tile:hover img { transform: scale(1.05); }
.tile:hover::after { background: rgba(0, 0, 0, .28); }
.tile:hover .tile-title { border-bottom-color: currentColor; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- citazione ---------- */
.quote { margin: clamp(64px, 9vw, 110px) auto; padding: 0 var(--gutter); max-width: 760px; text-align: center; }
.quote blockquote { margin: 0; font: 400 clamp(24px, 3vw, 30px)/1.3 var(--title); }
.quote figcaption { margin-top: 12px; color: var(--muted); }

/* ---------- galleria a righe giustificate (nessun ritaglio) ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; --row: clamp(170px, 26vw, 400px); }
.gallery::after { content: ''; flex-grow: 1000000; }
.gallery a { position: relative; flex-grow: var(--r); flex-basis: calc(var(--row) * var(--r)); aspect-ratio: var(--r); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 560px) { .gallery { --row: 130px; gap: 5px; } }

/* ---------- servizi ---------- */
.strip { display: flex; gap: 10px; height: clamp(150px, 22vw, 300px); margin-bottom: clamp(40px, 6vw, 64px); }
.strip img { flex: var(--r) 1 0; min-width: 0; height: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 560px) { .strip { height: 110px; gap: 5px; } }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.pack { padding: 34px 30px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.pack h2 { font: 400 28px/1 var(--title); text-transform: uppercase; margin-bottom: 20px; }
.pack ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.pack li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--soft); }
.pack .price { font: 400 34px/1 var(--title); }

/* ---------- testimonianze ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.testimonial { margin: 0; padding: 30px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.testimonial blockquote { margin: 0; font: 400 21px/1.4 var(--title); }
.testimonial figcaption { font-weight: 500; color: var(--muted); }
.testimonial figcaption a { text-decoration: none; }

/* ---------- pulsante ---------- */
.btn {
  display: inline-block; padding: 14px 34px; border: 1px solid var(--text); border-radius: 999px;
  background: transparent; color: var(--text); font: 400 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn:disabled { opacity: .5; cursor: wait; }
.cta { text-align: center; margin: clamp(56px, 8vw, 96px) auto; }
.cta h2 { font: 400 clamp(24px, 3vw, 32px)/1.2 var(--title); text-transform: uppercase; margin-bottom: 22px; }
.notfound { min-height: 45vh; text-align: center; }

/* ---------- contatti ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 70px); align-items: start; }
.contact .story p { color: var(--soft); }
.portrait { width: 100%; max-width: 360px; border-radius: var(--radius); margin-bottom: 26px; }
.contact-name { font: 400 30px/1.1 var(--title); text-transform: uppercase; margin-bottom: 16px; }
.ig { text-decoration: none; border-bottom: 1px solid currentColor; }
.contact-form { padding: clamp(24px, 4vw, 38px); border-radius: var(--radius); background: var(--surface); }
.contact-form h2 { font: 400 26px/1.15 var(--title); text-transform: uppercase; }
.contact-form .muted { margin: 10px 0 22px; font-size: 15px; }
.contact-form label { display: block; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  font: 400 16px/1.5 var(--sans); outline: none; transition: border-color .2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--text); }
.contact-form .btn { margin-top: 6px; width: 100%; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 16px 0 0; min-height: 1.6em; font-size: 15px; }
.form-msg.ok { color: #9fd4a6; }
.form-msg.err { color: #f0a29b; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- piè di pagina ---------- */
.foot { position: relative; z-index: 1; background: var(--bg); padding: 56px var(--gutter) 40px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 18px; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-copy { font-size: 12px; color: #7a7a7a; }

/* ---------- visore a schermo intero ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(12, 12, 12, .97); display: grid; place-items: center; opacity: 0; transition: opacity .25s; touch-action: pan-y; }
.lb.open { opacity: 1; }
.lb img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lb img.loading { opacity: .35; }
.lb button { position: absolute; background: none; border: 0; color: var(--text); cursor: pointer; width: 56px; height: 56px; font: 300 30px/1 var(--sans); opacity: .7; transition: opacity .2s; }
.lb button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .lb-prev, .lb-next { display: none; } .lb img { max-width: 100vw; } }

/* ---------- comparsa morbida allo scorrimento e passaggio tra le pagine ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-arrow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
