/*
Theme Name: Fotografo Bergamo
Theme URI: https://fotografobergamo.it
Author: Fotografo Bergamo
Description: Tema editoriale personalizzato per il portfolio Fotografo Bergamo.
Version: 1.2.2
Text Domain: fotografo-bergamo
*/

:root {
  --ink: #181817;
  --paper: #f5f3ed;
  --stone: #dedbd2;
  --orange: #e25c36;
  --line: rgba(24, 24, 23, .18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 10px 14px; color: white; background: var(--ink); }
.skip-link:focus { top: 20px; }
.site-header { position: absolute; z-index: 10; top: 0; left: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 24px 4vw; color: white; transition: .25s ease; }
.site-header.is-scrolled { position: fixed; color: var(--ink); background: rgba(245,243,237,.94); backdrop-filter: blur(12px); box-shadow: 0 2px 18px rgba(0,0,0,.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; font-weight: 700; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.brand-mark { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.13em; }
.brand-mark span { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); font-size: 13px; font-weight: 600; }
.main-nav a { text-decoration: none; }
.main-nav > a:not(.nav-cta):hover { opacity: .6; }
.nav-cta { padding: 10px 14px; border: 1px solid currentColor; border-radius: 100px; }
.nav-cta span, .text-link span { color: var(--orange); }
.menu-button { display: none; }
.hero { position: relative; display: grid; min-height: max(680px, 100svh); overflow: hidden; color: white; background: var(--ink); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.01); animation: settle 1.5s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.12) 100%), linear-gradient(0deg, rgba(0,0,0,.46), transparent 45%); }
.hero-content { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding-bottom: 54px; }
.eyebrow { margin: 0 0 20px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.light { color: rgba(255,255,255,.76); }
.hero h1 { max-width: 700px; margin: 0; font-family: var(--serif); font-size: clamp(68px, 10.5vw, 156px); font-weight: 500; line-height: .82; letter-spacing: -.07em; }
h1 em, h2 em, blockquote em { color: var(--orange); font-weight: inherit; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: clamp(50px, 11vh, 130px); }
.hero-bottom p { max-width: 335px; margin: 0; font-size: 16px; }
.round-link { display: grid; width: 98px; height: 98px; place-content: center; gap: 4px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: white; font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; text-transform: uppercase; transition: .2s; }
.round-link:hover { color: var(--ink); background: white; }
.round-link span { font-size: 18px; }
.hero-caption { position: absolute; right: 4vw; bottom: 25px; margin: 0; color: rgba(255,255,255,.72); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.proof-points { background: var(--paper); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { display: grid; justify-items: center; gap: 18px; padding: 62px 30px 30px; text-align: center; }
.proof-icon { display: grid; width: 94px; height: 94px; place-items: center; border-radius: 50%; background: var(--orange); box-shadow: 0 10px 24px rgba(226,92,54,.24); }
.proof-icon svg { width: 44px; height: 44px; fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.35; }
.proof-item strong { font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.proof-item span { max-width: 230px; color: rgba(24,24,23,.65); font-size: 13px; }
.proof-points + .intro.section-space { padding-top: clamp(60px, 7vw, 100px); }
.section-space { padding-block: clamp(92px, 12vw, 180px); }
.intro-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: min(12vw, 170px); align-items: end; }
h2 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 82px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.intro-grid > div > p { margin: 0 0 28px; font-size: 17px; }
.text-link { display: inline-flex; gap: 13px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.work-section { background: #e7e4dc; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.section-heading .eyebrow { grid-column: 1/-1; }
.section-note { align-self: end; max-width: 285px; margin: 0; font-size: 14px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 60px; }
.work-card { position: relative; min-height: 570px; overflow: hidden; background: #292927; }
.work-card img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.3,1); }
.work-card:hover img { transform: scale(1.045); }
.work-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(0,0,0,.62), transparent 55%); pointer-events: none; }
.work-card a { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: white; text-decoration: none; }
.work-card a span { position: absolute; top: 24px; left: 26px; font-family: var(--mono); font-size: 11px; }
.work-card strong { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: .92; letter-spacing: -.05em; }
.work-card i { position: absolute; right: 26px; bottom: 25px; font-size: 22px; font-style: normal; }
.work-card-wide, .work-card-tall, .work-card-studio, .work-card-event { min-height: 570px; }
.work-card-studio { background: #ba5235; }
.abstract-art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 73% 76%, #edbc7e 0 14%, transparent 14.4%), #a64530; }
.abstract-art span { position: absolute; display: block; border-radius: 50%; background: #192c34; }
.abstract-art span:nth-child(1) { width: 270px; height: 270px; top: -80px; right: 13%; }
.abstract-art span:nth-child(2) { width: 148px; height: 148px; top: 40%; left: 20%; background: #e8e0cc; }
.abstract-art span:nth-child(3) { width: 36px; height: 360px; bottom: -160px; left: 50%; border-radius: 30px; background: #222e31; transform: rotate(45deg); }
.services { color: var(--paper); background: var(--ink); }
.services-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: min(10vw, 150px); }
.services h2 { color: white; }
.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.service-list li { display: grid; grid-template-columns: 45px 1fr 22px; gap: 16px; padding: 21px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.service-list span { padding-top: 5px; color: var(--orange); font-family: var(--mono); font-size: 11px; }
.service-list h3 { margin: 0; color: white; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.service-list p { margin: 7px 0 0; color: rgba(255,255,255,.66); font-size: 14px; }
.service-list b { color: var(--orange); font-weight: 400; }
.approach { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; }
.approach-image img { height: 100%; object-fit: cover; }
.approach-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 10vw, 150px); background: #d9d5ca; }
.approach-copy > p:not(.eyebrow) { max-width: 480px; margin: 28px 0 48px; font-size: 16px; }
.approach-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.approach-facts span { padding: 7px 10px; border: 1px solid rgba(24,24,23,.4); border-radius: 99px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.quote { text-align: center; }
.quote .eyebrow { margin-bottom: 38px; }
blockquote { margin: 0; font-family: var(--serif); font-size: clamp(39px, 5vw, 70px); font-weight: 500; line-height: 1.02; letter-spacing: -.055em; }
.contact { color: white; background: #242421; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: min(11vw, 180px); padding-block: clamp(90px, 11vw, 160px); }
.contact h2 { max-width: 560px; }
.contact-lead { max-width: 420px; margin: 34px 0 0; color: rgba(255,255,255,.68); }
.contact-form { display: grid; gap: 23px; align-content: center; }
.contact-form label { display: grid; gap: 8px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); outline: none; color: white; background: transparent; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); }
.button-light { display: inline-flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 8px; padding: 14px 16px; border: 0; color: var(--ink); background: var(--paper); cursor: pointer; font-size: 13px; font-weight: 700; }
.button-light span { color: var(--orange); font-size: 18px; }
.form-note { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 600; }
.form-note[hidden] { display: none; }
.form-note--error { color: #ffc7b8; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; padding-block: 26px; font-size: 11px; }
.site-footer p { margin: 0; color: rgba(24,24,23,.65); }
.site-footer p:last-child { text-align: right; }
.footer-brand { font-size: 11px; }
@keyframes settle { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1.01); opacity: 1; } }
@media (max-width: 760px) {
  .wrap { width: min(100% - 40px, 590px); }
  .site-header { padding: 18px 20px; }
  .site-header.is-scrolled { padding-block: 14px; }
  .menu-button { z-index: 2; display: grid; grid-template-columns: auto 22px; column-gap: 7px; align-items: center; padding: 0; border: 0; color: inherit; background: none; font-size: 11px; font-weight: 700; text-transform: uppercase; }
  .menu-button i { grid-column: 2; display: block; width: 22px; height: 1px; background: currentColor; transition: .2s; }
  .menu-button i:last-child { margin-top: -7px; }
  .menu-button[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: absolute; top: 0; left: 0; display: none; width: 100%; padding: 100px 24px 26px; color: var(--ink); background: var(--paper); box-shadow: 0 7px 20px rgba(0,0,0,.1); }
  .main-nav.is-open { display: grid; gap: 20px; }
  .nav-cta { width: max-content; }
  .hero, .hero-content { min-height: 730px; }
  .hero-content { padding-bottom: 42px; }
  .hero h1 { font-size: clamp(66px, 19vw, 102px); }
  .hero-bottom { align-items: start; flex-direction: column; margin-top: 48px; }
  .round-link { width: 76px; height: 76px; }
  .hero-caption { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { grid-template-columns: 94px 1fr; justify-items: start; align-items: center; gap: 0 20px; padding: 27px 20px; text-align: left; }
  .proof-icon { grid-row: 1 / span 2; width: 68px; height: 68px; }
  .proof-icon svg { width: 34px; height: 34px; }
  .proof-item strong { font-size: 25px; }
  .proof-item span { margin-top: 5px; }
  .proof-points + .intro.section-space { padding-top: 64px; }
  .intro-grid, .services-layout, .contact-grid, .approach { grid-template-columns: 1fr; gap: 40px; }
  .section-heading { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .work-card, .work-card-wide, .work-card-tall, .work-card-studio, .work-card-event { min-height: 0; aspect-ratio: 4 / 5; }
  .services-layout { gap: 55px; }
  .approach-image { min-height: 450px; }
  .approach-copy { padding: 76px 20px; }
  .site-footer { grid-template-columns: 1fr; padding-block: 32px; }
  .site-footer p:last-child { text-align: left; }
}
