/* =========================================================
   2photoswithshay — Sharon Demarku
   Stile: editoriale, caldo, minimale
   ========================================================= */

:root {
  --bg:        #f6f3ee;   /* carta calda */
  --bg-alt:    #fffdfa;   /* bianco caldo */
  --dark:      #161412;   /* sezioni scure */
  --dark-2:    #211e1a;
  --ink:       #1c1b19;   /* testo principale */
  --muted:     #6f6a63;   /* testo secondario */
  --line:      #e4ddd2;   /* bordi sottili */
  --accent:    #b08d57;   /* oro/ottone */
  --accent-dk: #95743f;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px -22px rgba(30, 25, 18, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: .2px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin: 0 0 18px;
}
.eyebrow-light { color: var(--accent); }

.section-title { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }

.section { padding: clamp(70px, 11vw, 140px) 0; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-sm { padding: 11px 22px; font-size: .72rem; }
.btn-block { width: 100%; padding: 16px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(246, 243, 238, .92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; transition: color .4s var(--ease); }
.site-header.scrolled .brand { color: var(--ink); }
.brand-mark { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .5px; }
.brand-sub { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; opacity: .8; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  position: relative;
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.site-header.scrolled .nav-link { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent); transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

.nav-ig { color: #fff; display: inline-flex; transition: color .3s var(--ease), transform .3s var(--ease); }
.site-header.scrolled .nav-ig { color: var(--ink); }
.nav-ig:hover { color: var(--accent); transform: translateY(-2px); }

.nav-cta { color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 0;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease), background .4s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,.55) 0%, rgba(15,12,9,.35) 40%, rgba(15,12,9,.7) 100%);
}
.hero-content { position: relative; color: #fff; padding-top: 80px; padding-bottom: 80px; max-width: 820px; }
.hero-title {
  font-size: clamp(3rem, 9vw, 6.6rem);
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.5vw, 2rem); margin: 6px 0 0; opacity: .92; }
.hero-tagline { font-size: 1.12rem; font-weight: 300; max-width: 48ch; margin: 26px 0 36px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
  display: flex; justify-content: center;
}
.scroll-cue span { width: 3px; height: 8px; background: #fff; border-radius: 2px; margin-top: 8px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* =========================================================
   CHI SONO
   ========================================================= */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; bottom: -24px; right: -10px;
  background: var(--accent); color: #fff; text-align: center;
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-family: var(--serif); box-shadow: var(--shadow);
}
.about-badge-num { font-size: 1.05rem; font-style: italic; }
.about-badge-txt { font-size: 1.35rem; font-weight: 600; letter-spacing: .5px; }

.about-text p { color: var(--muted); margin: 0 0 18px; }
.about-text strong { color: var(--ink); font-weight: 500; }
.credentials { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.credentials li {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink);
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .section-lead { margin-inline: auto; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 100px;
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; aspect-ratio: 1; background: var(--line);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:nth-child(4n+1) { grid-row: span 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 18px 16px;
  background: linear-gradient(0deg, rgba(15,12,9,.82), transparent);
  color: #fff; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }
.g-cat { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.g-title { font-family: var(--serif); font-size: 1.25rem; }
.gallery-item.hide { display: none; }

/* =========================================================
   SERVIZI
   ========================================================= */
.services { background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(176,141,87,.12); color: var(--accent-dk); margin-bottom: 22px;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* =========================================================
   CONTATTI
   ========================================================= */
.contact { background: var(--dark); color: #efe9df; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact .section-title { color: #fff; }
.contact-lead { color: #b9b1a4; max-width: 42ch; margin-bottom: 36px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: #ded6c9; }
.contact-list svg { color: var(--accent); flex-shrink: 0; }
.contact-list a { transition: color .3s var(--ease); }
.contact-list a:hover { color: var(--accent); }

.contact-form { background: var(--dark-2); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.07); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #b9b1a4; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); color: #fff;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 13px 15px; font-family: var(--sans); font-size: .98rem; font-weight: 300;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b08d57' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.field select option { background: var(--dark-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.07); }
.field input::placeholder, .field textarea::placeholder { color: #8a8278; }
.form-note { font-size: .88rem; margin: 14px 0 0; min-height: 1em; }
.form-note.ok { color: #8fcf9a; }
.form-note.err { color: #e6a07a; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0f0d0b; color: #cfc8bc; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-block: 56px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #cfc8bc; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: .92rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { text-align: center; font-size: .82rem; color: #8a8278; padding-block: 22px; margin: 0; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 10, 8, .94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  padding: 30px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-img { max-width: 88vw; max-height: 82vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #efe9df; font-family: var(--serif); font-size: 1.2rem; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%; width: 50px; height: 50px; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .3s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin-inline: auto; }
  .about-badge { right: 10px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    background: var(--dark); flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 8px; padding: 80px 40px; transform: translateX(100%);
    transition: transform .45s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.3);
  }
  .nav-open .nav { transform: translateX(0); }
  .nav-link, .site-header.scrolled .nav-link { color: #efe9df; font-size: 1.1rem; padding: 8px 0; }
  .nav-link::after { display: none; }
  .nav-ig, .site-header.scrolled .nav-ig { color: #efe9df; margin-top: 8px; }
  .nav-cta { margin-top: 14px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .gallery { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-contact { text-align: left; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb-close { top: 14px; right: 14px; }
}
